@syncfusion/ej2-dropdowns 28.2.5 → 28.2.6
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/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 +26 -17
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +26 -17
- 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-base/drop-down-base.js +2 -1
- package/src/drop-down-tree/drop-down-tree.d.ts +2 -0
- package/src/drop-down-tree/drop-down-tree.js +23 -15
- package/src/multi-select/multi-select.js +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 28.2.
|
|
3
|
+
* version : 28.2.6
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. 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@28.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@28.2.5",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-PEYRLr+QeaImw6iVHWRMDP1EndPRaamD7tIxEYFXUClMXROKTg3Qg8CW4Wn3h+KhF+xt2N+TFlpxlMjzEcgsgg==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"/@syncfusion/ej2-spreadsheet",
|
|
37
37
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
38
38
|
],
|
|
39
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-28.2.
|
|
40
|
-
"_shasum": "
|
|
39
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-28.2.5.tgz",
|
|
40
|
+
"_shasum": "254f237a6d180239a7288b2413ae5dbcfe4186ec",
|
|
41
41
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
42
42
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
|
43
43
|
"author": {
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"@syncfusion/ej2-data": "~28.2.3",
|
|
50
50
|
"@syncfusion/ej2-inputs": "~28.2.3",
|
|
51
51
|
"@syncfusion/ej2-lists": "~28.2.3",
|
|
52
|
-
"@syncfusion/ej2-navigations": "~28.2.
|
|
52
|
+
"@syncfusion/ej2-navigations": "~28.2.6",
|
|
53
53
|
"@syncfusion/ej2-notifications": "~28.2.3",
|
|
54
|
-
"@syncfusion/ej2-popups": "~28.2.
|
|
54
|
+
"@syncfusion/ej2-popups": "~28.2.6"
|
|
55
55
|
},
|
|
56
56
|
"deprecated": false,
|
|
57
57
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"module": "./index.js",
|
|
77
77
|
"name": "@syncfusion/ej2-dropdowns",
|
|
78
78
|
"typings": "index.d.ts",
|
|
79
|
-
"version": "28.2.
|
|
79
|
+
"version": "28.2.6",
|
|
80
80
|
"sideEffects": false,
|
|
81
81
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
82
82
|
}
|
|
@@ -450,7 +450,8 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
450
450
|
};
|
|
451
451
|
DropDownBase.prototype.getSkeletonCount = function (retainSkeleton) {
|
|
452
452
|
this.virtualListHeight = this.listContainerHeight != null ? parseInt(this.listContainerHeight, 10) : this.virtualListHeight;
|
|
453
|
-
var actualCount = this.virtualListHeight > 0
|
|
453
|
+
var actualCount = this.virtualListHeight > 0 && this.listItemHeight > 0 ?
|
|
454
|
+
Math.floor(this.virtualListHeight / this.listItemHeight) : 0;
|
|
454
455
|
this.skeletonCount = actualCount * 4 < this.itemCount ? this.itemCount : actualCount * 4;
|
|
455
456
|
this.itemCount = retainSkeleton ? this.itemCount : this.skeletonCount;
|
|
456
457
|
this.virtualItemCount = this.itemCount;
|
|
@@ -826,6 +826,8 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
|
|
|
826
826
|
private getChildType;
|
|
827
827
|
private renderTree;
|
|
828
828
|
private renderPopup;
|
|
829
|
+
private removeFocus;
|
|
830
|
+
private updateFocus;
|
|
829
831
|
private reactCallBack;
|
|
830
832
|
private updatePopupHeight;
|
|
831
833
|
private createPopup;
|
|
@@ -1715,11 +1715,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1715
1715
|
removeClass([_this.popupEle], DDTHIDEICON);
|
|
1716
1716
|
_this.updatePopupHeight();
|
|
1717
1717
|
_this.popupObj.refreshPosition();
|
|
1718
|
-
if (_this.showSelectAll && !_this.
|
|
1719
|
-
_this.
|
|
1720
|
-
|
|
1721
|
-
if ((!_this.popupDiv.classList.contains(NODATA) && _this.treeItems.length > 0)) {
|
|
1722
|
-
var focusedElement = _this.value != null || _this.text != null ? _this.treeObj.element.querySelector('[data-uid="' + _this.value[0] + '"]') : null;
|
|
1718
|
+
if (!(_this.showSelectAll || _this.allowFiltering) && (!_this.popupDiv.classList.contains(NODATA)
|
|
1719
|
+
&& _this.treeItems.length > 0)) {
|
|
1720
|
+
var focusedElement = _this.value != null && _this.text != null ? _this.treeObj.element.querySelector('[data-uid="' + _this.value[0] + '"]') : null;
|
|
1723
1721
|
if (focusedElement) {
|
|
1724
1722
|
_this.treeObj.element.querySelector('li').setAttribute('tabindex', '-1');
|
|
1725
1723
|
focusedElement.setAttribute('tabindex', '0');
|
|
@@ -1728,17 +1726,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1728
1726
|
var oldFocussedNode = _this.treeObj.element.querySelector('.e-node-focus');
|
|
1729
1727
|
focusedElement = _this.treeObj.element.querySelector('li[tabindex="0"]:not(.e-disable)') ||
|
|
1730
1728
|
_this.treeObj.element.querySelector('li:not(.e-disable)');
|
|
1731
|
-
|
|
1732
|
-
oldFocussedNode.setAttribute('tabindex', '-1');
|
|
1733
|
-
removeClass([oldFocussedNode], 'e-node-focus');
|
|
1734
|
-
}
|
|
1735
|
-
}
|
|
1736
|
-
if (!isNOU(focusedElement)) {
|
|
1737
|
-
if (!_this.allowFiltering) {
|
|
1738
|
-
focusedElement.focus();
|
|
1739
|
-
}
|
|
1740
|
-
addClass([focusedElement], ['e-node-focus']);
|
|
1729
|
+
_this.removeFocus(focusedElement, oldFocussedNode);
|
|
1741
1730
|
}
|
|
1731
|
+
_this.updateFocus(focusedElement);
|
|
1742
1732
|
}
|
|
1743
1733
|
if (_this.treeObj.checkedNodes.length > 0 && !_this.isFilterRestore) {
|
|
1744
1734
|
var nodes = _this.treeObj.element.querySelectorAll('li');
|
|
@@ -1749,6 +1739,12 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1749
1739
|
_this.checkSelectAll = false;
|
|
1750
1740
|
}
|
|
1751
1741
|
}
|
|
1742
|
+
if (_this.showSelectAll && !_this.allowFiltering) {
|
|
1743
|
+
var oldFocussedNode = _this.treeObj.element.querySelector('.e-node-focus');
|
|
1744
|
+
var focusedElement = _this.popupEle.querySelector('.e-selectall-parent');
|
|
1745
|
+
_this.removeFocus(focusedElement, oldFocussedNode);
|
|
1746
|
+
_this.updateFocus(focusedElement);
|
|
1747
|
+
}
|
|
1752
1748
|
if (_this.allowFiltering) {
|
|
1753
1749
|
removeClass([_this.inputWrapper], [INPUTFOCUS]);
|
|
1754
1750
|
_this.filterObj.element.focus();
|
|
@@ -1758,6 +1754,18 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1758
1754
|
}
|
|
1759
1755
|
});
|
|
1760
1756
|
};
|
|
1757
|
+
DropDownTree.prototype.removeFocus = function (focusedElement, oldFocusedElement) {
|
|
1758
|
+
if (oldFocusedElement && oldFocusedElement !== focusedElement) {
|
|
1759
|
+
oldFocusedElement.setAttribute('tabindex', '-1');
|
|
1760
|
+
removeClass([oldFocusedElement], 'e-node-focus');
|
|
1761
|
+
}
|
|
1762
|
+
};
|
|
1763
|
+
DropDownTree.prototype.updateFocus = function (focusedElement) {
|
|
1764
|
+
if (!isNOU(focusedElement)) {
|
|
1765
|
+
focusedElement.focus();
|
|
1766
|
+
addClass([focusedElement], ['e-node-focus']);
|
|
1767
|
+
}
|
|
1768
|
+
};
|
|
1761
1769
|
DropDownTree.prototype.reactCallBack = function () {
|
|
1762
1770
|
if (!isNOU(this.popupObj)) {
|
|
1763
1771
|
this.updatePopupHeight();
|
|
@@ -3837,7 +3837,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3837
3837
|
(this.mode === 'Box' || this.mode === 'Default'))) ||
|
|
3838
3838
|
(this.enableVirtualization && value != null && text != null && !isCustomData)) {
|
|
3839
3839
|
var currentText = [];
|
|
3840
|
-
var textValues = this.isDynamicRemoteVirtualData && text != null && text !== '' ? text : this.text != null && this.text !== '' ? this.text + this.delimiterChar + text : text;
|
|
3840
|
+
var textValues = this.isDynamicRemoteVirtualData && text != null && text !== '' ? text : this.text != null && this.text !== '' && !this.text.includes(text) ? this.text + this.delimiterChar + text : text;
|
|
3841
3841
|
currentText.push(textValues);
|
|
3842
3842
|
this.setProperties({ text: currentText.toString() }, true);
|
|
3843
3843
|
this.addChip(text, value);
|