@syncfusion/ej2-dropdowns 24.2.5 → 24.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist/ej2-dropdowns.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +38 -16
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +38 -16
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/drop-down-list/drop-down-list.d.ts +1 -1
- package/src/drop-down-list/drop-down-list.js +4 -4
- package/src/drop-down-tree/drop-down-tree.js +2 -2
- package/src/list-box/list-box.js +0 -1
- package/src/mention/mention.js +20 -6
- package/src/multi-select/multi-select.d.ts +1 -0
- package/src/multi-select/multi-select.js +12 -3
|
@@ -2730,15 +2730,15 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
2730
2730
|
DropDownList.prototype.focusOutAction = function (e) {
|
|
2731
2731
|
this.isInteracted = false;
|
|
2732
2732
|
this.focusOut(e);
|
|
2733
|
-
this.onFocusOut();
|
|
2733
|
+
this.onFocusOut(e);
|
|
2734
2734
|
};
|
|
2735
|
-
DropDownList.prototype.onFocusOut = function () {
|
|
2735
|
+
DropDownList.prototype.onFocusOut = function (e) {
|
|
2736
2736
|
if (!this.enabled) {
|
|
2737
2737
|
return;
|
|
2738
2738
|
}
|
|
2739
2739
|
if (this.isSelected) {
|
|
2740
2740
|
this.isSelectCustom = false;
|
|
2741
|
-
this.onChangeEvent(
|
|
2741
|
+
this.onChangeEvent(e);
|
|
2742
2742
|
}
|
|
2743
2743
|
this.floatLabelChange();
|
|
2744
2744
|
this.dispatchEvent(this.hiddenElement, 'change');
|
|
@@ -3451,7 +3451,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3451
3451
|
this.hidePopup(e);
|
|
3452
3452
|
this.isInteracted = false;
|
|
3453
3453
|
if (!isActive) {
|
|
3454
|
-
this.onFocusOut();
|
|
3454
|
+
this.onFocusOut(e);
|
|
3455
3455
|
this.inputWrapper.container.classList.remove(dropDownListClasses.inputFocus);
|
|
3456
3456
|
}
|
|
3457
3457
|
}
|
|
@@ -7408,7 +7408,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
7408
7408
|
this.ensurePlaceHolder();
|
|
7409
7409
|
ariaState = state === 'check' ? 'true' : 'false';
|
|
7410
7410
|
if (!isNullOrUndefined(ariaState)) {
|
|
7411
|
-
wrapper.setAttribute('aria-checked', ariaState);
|
|
7411
|
+
wrapper.parentElement.setAttribute('aria-checked', ariaState);
|
|
7412
7412
|
}
|
|
7413
7413
|
};
|
|
7414
7414
|
DropDownTree.prototype.setLocale = function (unSelect) {
|
|
@@ -8199,7 +8199,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
8199
8199
|
}
|
|
8200
8200
|
if (this.showSelectAll && this.checkBoxElement) {
|
|
8201
8201
|
var nodes = this.treeObj.element.querySelectorAll('li');
|
|
8202
|
-
var checkedNodes = this.treeObj.element.querySelectorAll('li
|
|
8202
|
+
var checkedNodes = this.treeObj.element.querySelectorAll('li[aria-checked=true]');
|
|
8203
8203
|
var wrap = closest(this.checkBoxElement, '.' + CHECKBOXWRAP);
|
|
8204
8204
|
if (wrap && args.action === 'uncheck' && (args.isInteracted || checkedNodes.length === 0 || (!isNullOrUndefined(args.data[0]) && args.data[0].isChecked === 'false'))) {
|
|
8205
8205
|
this.isReverseUpdate = true;
|
|
@@ -11659,7 +11659,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
11659
11659
|
};
|
|
11660
11660
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11661
11661
|
MultiSelect.prototype.openClick = function (e) {
|
|
11662
|
-
if (!this.openOnClick && this.mode !== 'CheckBox') {
|
|
11662
|
+
if (!this.openOnClick && this.mode !== 'CheckBox' && !this.isPopupOpen()) {
|
|
11663
11663
|
if (this.targetElement() !== '') {
|
|
11664
11664
|
this.showPopup();
|
|
11665
11665
|
}
|
|
@@ -12831,7 +12831,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
12831
12831
|
_this.trigger('removed', eventArgs);
|
|
12832
12832
|
var targetEle_1 = eve && eve.currentTarget;
|
|
12833
12833
|
var isSelectAll = (targetEle_1 && targetEle_1.classList.contains('e-selectall-parent')) ? true : null;
|
|
12834
|
-
if (!_this.changeOnBlur && !isClearAll && (eve && length && !isSelectAll)) {
|
|
12834
|
+
if (!_this.changeOnBlur && !isClearAll && (eve && length && !isSelectAll && _this.isSelectAllTarget)) {
|
|
12835
12835
|
_this.updateValueState(eve, _this.value, _this.tempValues);
|
|
12836
12836
|
}
|
|
12837
12837
|
if (length) {
|
|
@@ -13506,6 +13506,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13506
13506
|
this.backCommand = true;
|
|
13507
13507
|
this.isCustomRendered = false;
|
|
13508
13508
|
this.isRemoteSelection = false;
|
|
13509
|
+
this.isSelectAllTarget = true;
|
|
13509
13510
|
};
|
|
13510
13511
|
MultiSelect.prototype.updateData = function (delimiterChar, e) {
|
|
13511
13512
|
var data = '';
|
|
@@ -14423,6 +14424,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14423
14424
|
count_1 = state ? this.maximumSelectionLength - (this.value ? this.value.length : 0) : this.maximumSelectionLength;
|
|
14424
14425
|
}
|
|
14425
14426
|
if (!beforeSelectArgs.preventSelectEvent) {
|
|
14427
|
+
this.isSelectAllTarget = (length === index_1 + 1);
|
|
14426
14428
|
while (index_1 < length && index_1 <= 50 && index_1 < count_1) {
|
|
14427
14429
|
this.updateListSelection(li[index_1], event, length - index_1);
|
|
14428
14430
|
if (this.enableGroupCheckBox) {
|
|
@@ -14433,6 +14435,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14433
14435
|
if (length > 50) {
|
|
14434
14436
|
setTimeout(function () {
|
|
14435
14437
|
while (index_1 < length && index_1 < count_1) {
|
|
14438
|
+
_this.isSelectAllTarget = (length === index_1 + 1);
|
|
14436
14439
|
_this.updateListSelection(li[index_1], event, length - index_1);
|
|
14437
14440
|
if (_this.enableGroupCheckBox) {
|
|
14438
14441
|
_this.findGroupStart(li[index_1]);
|
|
@@ -14445,6 +14448,12 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14445
14448
|
_this.isSelectAll = _this.isSelectAll ? !_this.isSelectAll : _this.isSelectAll;
|
|
14446
14449
|
}
|
|
14447
14450
|
_this.updateHiddenElement();
|
|
14451
|
+
if (_this.popupWrapper && li[index_1 - 1].classList.contains('e-item-focus')) {
|
|
14452
|
+
var selectAllParent = document.getElementsByClassName('e-selectall-parent')[0];
|
|
14453
|
+
if (selectAllParent && selectAllParent.classList.contains('e-item-focus')) {
|
|
14454
|
+
li[index_1 - 1].classList.remove('e-item-focus');
|
|
14455
|
+
}
|
|
14456
|
+
}
|
|
14448
14457
|
}, 0);
|
|
14449
14458
|
}
|
|
14450
14459
|
}
|
|
@@ -14543,7 +14552,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14543
14552
|
}
|
|
14544
14553
|
if (this.mode === 'CheckBox') {
|
|
14545
14554
|
this.updateDelimView();
|
|
14546
|
-
if (!(isRemoveAll || this.isSelectAll)) {
|
|
14555
|
+
if (!(isRemoveAll || this.isSelectAll) && this.isSelectAllTarget) {
|
|
14547
14556
|
this.updateDelimeter(this.delimiterChar, event);
|
|
14548
14557
|
}
|
|
14549
14558
|
this.refreshInputHight();
|
|
@@ -17550,7 +17559,6 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
17550
17559
|
if (tListBox.mainList.childElementCount !== tListBox.jsonData.length) {
|
|
17551
17560
|
tListBox.mainList = tListBox.ulElement;
|
|
17552
17561
|
}
|
|
17553
|
-
fListBox.updateMainList();
|
|
17554
17562
|
var tJsonData = [].slice.call(tListBox.jsonData);
|
|
17555
17563
|
tSortData = [].slice.call(tListBox.sortedData);
|
|
17556
17564
|
this.selectNextList(elems, dataLiIdx, dataIdx, fListBox);
|
|
@@ -19354,6 +19362,20 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
19354
19362
|
range.collapse(false);
|
|
19355
19363
|
rect = range.getBoundingClientRect().top === 0 ? range.startContainer.getClientRects()[0] : range.getBoundingClientRect();
|
|
19356
19364
|
}
|
|
19365
|
+
var rectTop = rect.top;
|
|
19366
|
+
var rectLeft = rect.left;
|
|
19367
|
+
var iframes = document.querySelectorAll('iframe');
|
|
19368
|
+
if (iframes.length > 0) {
|
|
19369
|
+
for (var i = 0; i < iframes.length; i++) {
|
|
19370
|
+
// eslint-disable-next-line security/detect-object-injection
|
|
19371
|
+
var iframe = iframes[i];
|
|
19372
|
+
if (iframe.contentDocument && iframe.contentDocument.contains(element)) {
|
|
19373
|
+
var iframeRect = iframe.getBoundingClientRect();
|
|
19374
|
+
rectTop += iframeRect.top;
|
|
19375
|
+
rectLeft += iframeRect.left;
|
|
19376
|
+
}
|
|
19377
|
+
}
|
|
19378
|
+
}
|
|
19357
19379
|
var doc = document.documentElement;
|
|
19358
19380
|
var windowLeft = (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
|
|
19359
19381
|
var windowTop = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
|
|
@@ -19375,23 +19397,23 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
19375
19397
|
}
|
|
19376
19398
|
if (!this.isContentEditable(this.inputElement)) {
|
|
19377
19399
|
coordinates = {
|
|
19378
|
-
top:
|
|
19400
|
+
top: rectTop + windowTop + span.offsetTop + parseInt(computed.borderTopWidth, 10) +
|
|
19379
19401
|
parseInt(computed.fontSize, 10) + 3 - element.scrollTop - (this.isCollided ? 10 : 0),
|
|
19380
|
-
left:
|
|
19402
|
+
left: rectLeft + windowLeft + span.offsetLeft + parseInt(computed.borderLeftWidth, 10)
|
|
19381
19403
|
};
|
|
19382
19404
|
document.body.removeChild(div);
|
|
19383
19405
|
}
|
|
19384
19406
|
else {
|
|
19385
19407
|
if (this.collision && this.collision.length > 0 && this.collision.indexOf('right') > -1 && this.collision.indexOf('bottom') === -1) {
|
|
19386
19408
|
coordinates = {
|
|
19387
|
-
top:
|
|
19388
|
-
left:
|
|
19409
|
+
top: rectTop + windowTop + parseInt(getComputedStyle(this.inputElement).fontSize, 10),
|
|
19410
|
+
left: rectLeft + windowLeft + width
|
|
19389
19411
|
};
|
|
19390
19412
|
}
|
|
19391
19413
|
else {
|
|
19392
19414
|
coordinates = {
|
|
19393
|
-
top:
|
|
19394
|
-
left:
|
|
19415
|
+
top: rectTop + windowTop + parseInt(getComputedStyle(this.inputElement).fontSize, 10) - (this.isCollided ? 10 : 0),
|
|
19416
|
+
left: rectLeft + windowLeft + width
|
|
19395
19417
|
};
|
|
19396
19418
|
}
|
|
19397
19419
|
}
|