@syncfusion/ej2-dropdowns 24.2.6 → 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 +14 -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 +15 -6
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +15 -6
- 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-tree/drop-down-tree.js +2 -2
- package/src/mention/mention.js +1 -1
- package/src/multi-select/multi-select.d.ts +1 -0
- package/src/multi-select/multi-select.js +12 -3
|
@@ -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();
|
|
@@ -19360,7 +19369,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
19360
19369
|
for (var i = 0; i < iframes.length; i++) {
|
|
19361
19370
|
// eslint-disable-next-line security/detect-object-injection
|
|
19362
19371
|
var iframe = iframes[i];
|
|
19363
|
-
if (iframe.contentDocument.contains(element)) {
|
|
19372
|
+
if (iframe.contentDocument && iframe.contentDocument.contains(element)) {
|
|
19364
19373
|
var iframeRect = iframe.getBoundingClientRect();
|
|
19365
19374
|
rectTop += iframeRect.top;
|
|
19366
19375
|
rectLeft += iframeRect.left;
|