@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
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 24.2.
|
|
3
|
+
* version : 24.2.7
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-dropdowns@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-dropdowns@24.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@24.2.6",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-kpe97YspOpxho03cZHTvb9PMfHFW1AzulVU2WjKkcu9hWsnO2dDfr3WTTJvuqSAUXNLkk//71q81j3qFdKQ35g==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"/@syncfusion/ej2-spreadsheet",
|
|
35
35
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
36
36
|
],
|
|
37
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-24.2.
|
|
38
|
-
"_shasum": "
|
|
37
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-24.2.6.tgz",
|
|
38
|
+
"_shasum": "890abdc1d9f968194287b33258c071719ac88f5f",
|
|
39
39
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
40
40
|
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
41
41
|
"author": {
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
},
|
|
44
44
|
"bundleDependencies": false,
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@syncfusion/ej2-base": "~24.2.
|
|
46
|
+
"@syncfusion/ej2-base": "~24.2.7",
|
|
47
47
|
"@syncfusion/ej2-data": "~24.2.3",
|
|
48
|
-
"@syncfusion/ej2-inputs": "~24.2.
|
|
48
|
+
"@syncfusion/ej2-inputs": "~24.2.7",
|
|
49
49
|
"@syncfusion/ej2-lists": "~24.2.4",
|
|
50
50
|
"@syncfusion/ej2-navigations": "~24.2.4",
|
|
51
51
|
"@syncfusion/ej2-notifications": "~24.2.4",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"module": "./index.js",
|
|
75
75
|
"name": "@syncfusion/ej2-dropdowns",
|
|
76
76
|
"typings": "index.d.ts",
|
|
77
|
-
"version": "24.2.
|
|
77
|
+
"version": "24.2.7",
|
|
78
78
|
"sideEffects": false,
|
|
79
79
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
80
80
|
}
|
|
@@ -1242,7 +1242,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1242
1242
|
this.ensurePlaceHolder();
|
|
1243
1243
|
ariaState = state === 'check' ? 'true' : 'false';
|
|
1244
1244
|
if (!isNOU(ariaState)) {
|
|
1245
|
-
wrapper.setAttribute('aria-checked', ariaState);
|
|
1245
|
+
wrapper.parentElement.setAttribute('aria-checked', ariaState);
|
|
1246
1246
|
}
|
|
1247
1247
|
};
|
|
1248
1248
|
DropDownTree.prototype.setLocale = function (unSelect) {
|
|
@@ -2033,7 +2033,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2033
2033
|
}
|
|
2034
2034
|
if (this.showSelectAll && this.checkBoxElement) {
|
|
2035
2035
|
var nodes = this.treeObj.element.querySelectorAll('li');
|
|
2036
|
-
var checkedNodes = this.treeObj.element.querySelectorAll('li
|
|
2036
|
+
var checkedNodes = this.treeObj.element.querySelectorAll('li[aria-checked=true]');
|
|
2037
2037
|
var wrap = closest(this.checkBoxElement, '.' + CHECKBOXWRAP);
|
|
2038
2038
|
if (wrap && args.action === 'uncheck' && (args.isInteracted || checkedNodes.length === 0 || (!isNOU(args.data[0]) && args.data[0].isChecked === 'false'))) {
|
|
2039
2039
|
this.isReverseUpdate = true;
|
package/src/mention/mention.js
CHANGED
|
@@ -899,7 +899,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
899
899
|
for (var i = 0; i < iframes.length; i++) {
|
|
900
900
|
// eslint-disable-next-line security/detect-object-injection
|
|
901
901
|
var iframe = iframes[i];
|
|
902
|
-
if (iframe.contentDocument.contains(element)) {
|
|
902
|
+
if (iframe.contentDocument && iframe.contentDocument.contains(element)) {
|
|
903
903
|
var iframeRect = iframe.getBoundingClientRect();
|
|
904
904
|
rectTop += iframeRect.top;
|
|
905
905
|
rectLeft += iframeRect.left;
|
|
@@ -51,6 +51,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
51
51
|
private focusFirstListItem;
|
|
52
52
|
private isCustomRendered;
|
|
53
53
|
private isRemoteSelection;
|
|
54
|
+
private isSelectAllTarget;
|
|
54
55
|
/**
|
|
55
56
|
* The `fields` property maps the columns of the data table and binds the data to the component.
|
|
56
57
|
* * text - Maps the text column from data table for each list item.
|
|
@@ -632,7 +632,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
632
632
|
};
|
|
633
633
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
634
634
|
MultiSelect.prototype.openClick = function (e) {
|
|
635
|
-
if (!this.openOnClick && this.mode !== 'CheckBox') {
|
|
635
|
+
if (!this.openOnClick && this.mode !== 'CheckBox' && !this.isPopupOpen()) {
|
|
636
636
|
if (this.targetElement() !== '') {
|
|
637
637
|
this.showPopup();
|
|
638
638
|
}
|
|
@@ -1804,7 +1804,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
1804
1804
|
_this.trigger('removed', eventArgs);
|
|
1805
1805
|
var targetEle_1 = eve && eve.currentTarget;
|
|
1806
1806
|
var isSelectAll = (targetEle_1 && targetEle_1.classList.contains('e-selectall-parent')) ? true : null;
|
|
1807
|
-
if (!_this.changeOnBlur && !isClearAll && (eve && length && !isSelectAll)) {
|
|
1807
|
+
if (!_this.changeOnBlur && !isClearAll && (eve && length && !isSelectAll && _this.isSelectAllTarget)) {
|
|
1808
1808
|
_this.updateValueState(eve, _this.value, _this.tempValues);
|
|
1809
1809
|
}
|
|
1810
1810
|
if (length) {
|
|
@@ -2479,6 +2479,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2479
2479
|
this.backCommand = true;
|
|
2480
2480
|
this.isCustomRendered = false;
|
|
2481
2481
|
this.isRemoteSelection = false;
|
|
2482
|
+
this.isSelectAllTarget = true;
|
|
2482
2483
|
};
|
|
2483
2484
|
MultiSelect.prototype.updateData = function (delimiterChar, e) {
|
|
2484
2485
|
var data = '';
|
|
@@ -3396,6 +3397,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3396
3397
|
count_1 = state ? this.maximumSelectionLength - (this.value ? this.value.length : 0) : this.maximumSelectionLength;
|
|
3397
3398
|
}
|
|
3398
3399
|
if (!beforeSelectArgs.preventSelectEvent) {
|
|
3400
|
+
this.isSelectAllTarget = (length === index_1 + 1);
|
|
3399
3401
|
while (index_1 < length && index_1 <= 50 && index_1 < count_1) {
|
|
3400
3402
|
this.updateListSelection(li[index_1], event, length - index_1);
|
|
3401
3403
|
if (this.enableGroupCheckBox) {
|
|
@@ -3406,6 +3408,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3406
3408
|
if (length > 50) {
|
|
3407
3409
|
setTimeout(function () {
|
|
3408
3410
|
while (index_1 < length && index_1 < count_1) {
|
|
3411
|
+
_this.isSelectAllTarget = (length === index_1 + 1);
|
|
3409
3412
|
_this.updateListSelection(li[index_1], event, length - index_1);
|
|
3410
3413
|
if (_this.enableGroupCheckBox) {
|
|
3411
3414
|
_this.findGroupStart(li[index_1]);
|
|
@@ -3418,6 +3421,12 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3418
3421
|
_this.isSelectAll = _this.isSelectAll ? !_this.isSelectAll : _this.isSelectAll;
|
|
3419
3422
|
}
|
|
3420
3423
|
_this.updateHiddenElement();
|
|
3424
|
+
if (_this.popupWrapper && li[index_1 - 1].classList.contains('e-item-focus')) {
|
|
3425
|
+
var selectAllParent = document.getElementsByClassName('e-selectall-parent')[0];
|
|
3426
|
+
if (selectAllParent && selectAllParent.classList.contains('e-item-focus')) {
|
|
3427
|
+
li[index_1 - 1].classList.remove('e-item-focus');
|
|
3428
|
+
}
|
|
3429
|
+
}
|
|
3421
3430
|
}, 0);
|
|
3422
3431
|
}
|
|
3423
3432
|
}
|
|
@@ -3516,7 +3525,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3516
3525
|
}
|
|
3517
3526
|
if (this.mode === 'CheckBox') {
|
|
3518
3527
|
this.updateDelimView();
|
|
3519
|
-
if (!(isRemoveAll || this.isSelectAll)) {
|
|
3528
|
+
if (!(isRemoveAll || this.isSelectAll) && this.isSelectAllTarget) {
|
|
3520
3529
|
this.updateDelimeter(this.delimiterChar, event);
|
|
3521
3530
|
}
|
|
3522
3531
|
this.refreshInputHight();
|