Skip to content

Commit 342f114

Browse files
author
pipeline
committed
v32.1.22 is released
1 parent 313283d commit 342f114

File tree

442 files changed

+5177
-1607
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

442 files changed

+5177
-1607
lines changed

controls/barcodegenerator/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 32.1.21 (2025-12-30)
5+
## 32.1.22 (2026-01-06)
66

77
### Barcode
88

controls/blockeditor/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 32.1.21 (2025-12-30)
5+
## 32.1.22 (2026-01-06)
66

77
### Block Editor
88

controls/blockeditor/spec/renderer/table.spec.ts

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2150,24 +2150,29 @@ describe('Table Block', () => {
21502150
}, 0);
21512151
});
21522152

2153-
it('Table insert handles/hover lines hidden after applying addColumnAt', (done) => {
2153+
it('Table insert handles/hover lines hidden after applying addColumnAt (click + mouseleave)', (done) => {
21542154
setupTable();
21552155
const cell = domHelpers.query(editorElement, 'tbody tr td[role="gridcell"]');
21562156
cell.dispatchEvent(new MouseEvent('mousemove', { bubbles: true }));
21572157
domHelpers.query(editorElement, '.e-block .e-col-dot-hit').dispatchEvent(new MouseEvent('mouseenter', { bubbles: true }));
21582158
const insert = domHelpers.query(editorElement, '.e-block .e-col-insert-handle') as HTMLElement;
21592159
expect(insert.style.display !== 'none').toBe(true);
2160+
21602161
insert.dispatchEvent(new MouseEvent('click', { bubbles: true }));
2161-
setTimeout(() => {
2162-
const insert2 = domHelpers.query(editorElement, '.e-block .e-col-insert-handle') as HTMLElement;
2163-
const line = domHelpers.query(editorElement, '.e-block .e-col-hover-line') as HTMLElement;
2164-
expect(insert2.style.display === 'none' || insert2.style.display === '').toBe(true);
2165-
expect(line.style.display === 'none' || line.style.display === '').toBe(true);
2166-
done();
2167-
}, 0);
2162+
let insert2 = domHelpers.query(editorElement, '.e-block .e-col-insert-handle') as HTMLElement;
2163+
let line = domHelpers.query(editorElement, '.e-block .e-col-hover-line') as HTMLElement;
2164+
expect(insert2.style.display === 'none' || insert2.style.display === '').toBe(true);
2165+
expect(line.style.display === 'none' || line.style.display === '').toBe(true);
2166+
2167+
insert.dispatchEvent(new MouseEvent('mouseleave', { bubbles: true }));
2168+
insert2 = domHelpers.query(editorElement, '.e-block .e-col-insert-handle') as HTMLElement;
2169+
line = domHelpers.query(editorElement, '.e-block .e-col-hover-line') as HTMLElement;
2170+
expect(insert2.style.display === 'none' || insert2.style.display === '').toBe(true);
2171+
expect(line.style.display === 'none' || line.style.display === '').toBe(true);
2172+
done();
21682173
});
21692174

2170-
it('Table insert handles/hover lines hidden after applying addRowAt', (done) => {
2175+
it('Table insert handles/hover lines hidden after applying addRowAt (click + mouseleave)', (done) => {
21712176
setupTable();
21722177
const firstDataCell = domHelpers.query(editorElement, 'tbody tr:first-child td[role="gridcell"]');
21732178
firstDataCell.dispatchEvent(new MouseEvent('mousemove', { bubbles: true }));
@@ -2180,11 +2185,18 @@ describe('Table Block', () => {
21802185
expect(insertHandle.style.display !== 'none').toBe(true);
21812186
insertHandle.dispatchEvent(new MouseEvent('click', { bubbles: true }));
21822187
setTimeout(() => {
2183-
const insertHandleAfter = domHelpers.query(editorElement, '.e-block .e-row-insert-handle') as HTMLElement;
2184-
const hoverLineAfter = domHelpers.query(editorElement, '.e-block .e-row-hover-line') as HTMLElement;
2188+
let insertHandleAfter = domHelpers.query(editorElement, '.e-block .e-row-insert-handle') as HTMLElement;
2189+
let hoverLineAfter = domHelpers.query(editorElement, '.e-block .e-row-hover-line') as HTMLElement;
21852190
expect(insertHandleAfter && (insertHandleAfter.style.display === 'none' || insertHandleAfter.style.display === '')).toBe(true);
21862191
expect(hoverLineAfter && (hoverLineAfter.style.display === 'none' || hoverLineAfter.style.display === '')).toBe(true);
2187-
done();
2192+
insertHandle.dispatchEvent(new MouseEvent('mouseleave', { bubbles: true }));
2193+
setTimeout(() => {
2194+
insertHandleAfter = domHelpers.query(editorElement, '.e-block .e-row-insert-handle') as HTMLElement;
2195+
hoverLineAfter = domHelpers.query(editorElement, '.e-block .e-row-hover-line') as HTMLElement;
2196+
expect(insertHandleAfter && (insertHandleAfter.style.display === 'none' || insertHandleAfter.style.display === '')).toBe(true);
2197+
expect(hoverLineAfter && (hoverLineAfter.style.display === 'none' || hoverLineAfter.style.display === '')).toBe(true);
2198+
done();
2199+
}, 0);
21882200
}, 0);
21892201
});
21902202

controls/blockeditor/src/block-manager/plugins/table/ui-manager.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,6 @@ export class TableUIManager {
233233
this.rowInsertHandle.style.display = 'none';
234234
this.rowTopDot.style.visibility = '';
235235
this.rowBottomDot.style.visibility = '';
236-
this.rowTopHit.style.display = 'block';
237-
this.rowBottomHit.style.display = 'block';
238236
};
239237

240238
this.rowTopHit.addEventListener('mouseenter', () => showRowLine('top'));
@@ -289,8 +287,6 @@ export class TableUIManager {
289287
this.colInsertHandle.style.display = 'none';
290288
this.colLeftDot.style.visibility = '';
291289
this.colRightDot.style.visibility = '';
292-
this.colLeftHit.style.display = 'block';
293-
this.colRightHit.style.display = 'block';
294290
};
295291

296292
this.colLeftHit.addEventListener('mouseenter', () => showColLine('left'));

controls/calendars/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 32.1.21 (2025-12-30)
5+
## 32.1.19 (2025-12-16)
66

77
### DateRangePicker
88

controls/calendars/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-calendars",
3-
"version": "32.1.1",
3+
"version": "32.1.19",
44
"description": "A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/calendars/spec/datepicker/datepicker.spec.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5678,4 +5678,29 @@ describe('DatePicker - Full Screen Layout in Mobile Mode', function () {
56785678
expect(document.getElementsByClassName(' e-datepicker e-popup-wrapper')[0].classList.contains('e-popup-expand')).toBe(true);
56795679
});
56805680
});
5681+
describe('EJ2-69736', function () {
5682+
let datePicker: any;
5683+
beforeEach(function () {
5684+
let element: HTMLElement = createElement('input', { id: 'date' });
5685+
document.body.appendChild(element);
5686+
});
5687+
afterEach(function () {
5688+
if (datePicker) {
5689+
datePicker.destroy();
5690+
}
5691+
document.body.innerHTML = '';
5692+
});
5693+
it('Error class is not applied immediately when we set the max date dynamically', function () {
5694+
datePicker = new DatePicker({
5695+
value: new Date(2024, 11, 1)
5696+
});
5697+
datePicker.appendTo('#date');
5698+
datePicker.max = new Date('11/25/2024');
5699+
datePicker.dataBind();
5700+
expect(datePicker.inputWrapper.container.classList.contains("e-error")).toBe(true);
5701+
datePicker.max = null;
5702+
datePicker.dataBind();
5703+
expect(datePicker.inputWrapper.container.classList.contains("e-error")).toBe(false);
5704+
});
5705+
});
56815706
});

controls/calendars/src/datepicker/datepicker.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2274,7 +2274,7 @@ export class DatePicker extends Calendar implements IInput {
22742274
}
22752275
if (label) {
22762276
const labelWidth: number = (this.element.parentElement.offsetWidth) - width;
2277-
if (labelWidth) {
2277+
if (labelWidth && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
22782278
label.style.width = `${labelWidth}px`;
22792279
}
22802280
}
@@ -2529,16 +2529,20 @@ export class DatePicker extends Calendar implements IInput {
25292529
}
25302530
}
25312531
break;
2532-
default:
2533-
if (this.calendarElement && this.isCalendar()) {
2534-
super.onPropertyChanged(newProp, oldProp);
2535-
}
2532+
case 'min':
2533+
case 'max':
25362534
if (prop === 'min' && isNullOrUndefined(this.min)) {
25372535
this.min = new Date(1900, 0, 1);
25382536
}
25392537
if (prop === 'max' && isNullOrUndefined(this.max)) {
25402538
this.max = new Date(2099, 11, 31);
25412539
}
2540+
this.errorClass();
2541+
break;
2542+
default:
2543+
if (this.calendarElement && this.isCalendar()) {
2544+
super.onPropertyChanged(newProp, oldProp);
2545+
}
25422546
break;
25432547
}
25442548
if (!this.isDynamicValueChanged) {

controls/calendars/src/daterangepicker/daterangepicker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4588,7 +4588,7 @@ export class DateRangePicker extends CalendarBase {
45884588
}
45894589
if (label) {
45904590
const labelWidth: number = (this.element.parentElement.offsetWidth) - width;
4591-
if (labelWidth) {
4591+
if (labelWidth && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
45924592
label.style.width = `${labelWidth}px`;
45934593
}
45944594
}

controls/calendars/src/datetimepicker/datetimepicker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2208,7 +2208,7 @@ export class DateTimePicker extends DatePicker {
22082208
}
22092209
if (label) {
22102210
const labelWidth: number = (this.element.parentElement.offsetWidth) - width;
2211-
if (labelWidth) {
2211+
if (labelWidth && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
22122212
label.style.width = `${labelWidth}px`;
22132213
}
22142214
}

0 commit comments

Comments
 (0)