@syncfusion/ej2-dropdowns 28.2.4 → 28.2.5
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 +15 -7
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +15 -7
- 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.js +3 -1
- package/src/drop-down-tree/drop-down-tree.js +12 -6
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.5
|
|
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.4",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-wNFdoVKhrqgBPo0G2N2ic+Kzc0gUdRC/pgcwKGt2aCIH0kA8fdYR7iJEwwx0omyK3vTtEt4Hc3xBiLiyAiLJAw==",
|
|
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.4.tgz",
|
|
40
|
+
"_shasum": "57f885c886d4f3cf9f2066fa1665c5bbacab7e74",
|
|
41
41
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
42
42
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
|
43
43
|
"author": {
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
},
|
|
46
46
|
"bundleDependencies": false,
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@syncfusion/ej2-base": "~28.2.
|
|
48
|
+
"@syncfusion/ej2-base": "~28.2.5",
|
|
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.5",
|
|
53
53
|
"@syncfusion/ej2-notifications": "~28.2.3",
|
|
54
54
|
"@syncfusion/ej2-popups": "~28.2.3"
|
|
55
55
|
},
|
|
@@ -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.5",
|
|
80
80
|
"sideEffects": false,
|
|
81
81
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
82
82
|
}
|
|
@@ -2564,6 +2564,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2564
2564
|
}
|
|
2565
2565
|
var args = { cancel: false };
|
|
2566
2566
|
this.trigger('beforeOpen', args, function (args) {
|
|
2567
|
+
var initialPopupHeight;
|
|
2567
2568
|
if (!args.cancel) {
|
|
2568
2569
|
var popupEle = _this.createElement('div', {
|
|
2569
2570
|
id: _this.element.id + '_popup', className: 'e-ddl e-popup ' + (_this.cssClass !== null ? _this.cssClass : '')
|
|
@@ -2584,6 +2585,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2584
2585
|
}
|
|
2585
2586
|
document.body.appendChild(popupEle);
|
|
2586
2587
|
popupEle.style.top = '0px';
|
|
2588
|
+
initialPopupHeight = popupEle.clientHeight;
|
|
2587
2589
|
if (_this.enableVirtualization && _this.itemTemplate) {
|
|
2588
2590
|
var listitems = popupEle.querySelectorAll('li.e-list-item:not(.e-virtual-list)');
|
|
2589
2591
|
_this.listItemHeight = listitems.length > 0 ? Math.ceil(listitems[0].getBoundingClientRect().height) +
|
|
@@ -2781,7 +2783,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2781
2783
|
// Add the resizer div to the popup
|
|
2782
2784
|
if (_this.list && _this.list.parentElement) {
|
|
2783
2785
|
_this.list.parentElement.classList.add('e-resize');
|
|
2784
|
-
if (_this.popupHeight.toString().toLowerCase() !== 'auto') {
|
|
2786
|
+
if (_this.popupHeight.toString().toLowerCase() !== 'auto' && initialPopupHeight > parseInt(_this.popupHeight.toString(), 10)) {
|
|
2785
2787
|
_this.list.parentElement.style.height = '100%';
|
|
2786
2788
|
}
|
|
2787
2789
|
_this.list.parentElement.style.paddingBottom = (_this.getModuleName() === 'dropdownlist' && _this.allowFiltering && _this.searchBoxHeight) ? (_this.searchBoxHeight + resizePaddingBottom).toString() + 'px' : resizePaddingBottom.toString() + 'px';
|
|
@@ -1347,7 +1347,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1347
1347
|
this.inputEle.setAttribute('aria-label', this.getModuleName());
|
|
1348
1348
|
var id = this.element.getAttribute('id');
|
|
1349
1349
|
this.hiddenElement.id = id + '_hidden';
|
|
1350
|
-
this.inputWrapper.setAttribute('tabindex', '0');
|
|
1350
|
+
this.inputWrapper.setAttribute('tabindex', this.inputWrapper.classList.contains('e-disabled') ? '-1' : '0');
|
|
1351
1351
|
this.inputWrapper.setAttribute('aria-label', this.getModuleName());
|
|
1352
1352
|
attributes(this.inputWrapper, this.getAriaAttributes());
|
|
1353
1353
|
};
|
|
@@ -1715,9 +1715,11 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1715
1715
|
removeClass([_this.popupEle], DDTHIDEICON);
|
|
1716
1716
|
_this.updatePopupHeight();
|
|
1717
1717
|
_this.popupObj.refreshPosition();
|
|
1718
|
-
if (
|
|
1719
|
-
|
|
1720
|
-
|
|
1718
|
+
if (_this.showSelectAll && !_this.allowFiltering) {
|
|
1719
|
+
_this.checkAllParent.focus();
|
|
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;
|
|
1721
1723
|
if (focusedElement) {
|
|
1722
1724
|
_this.treeObj.element.querySelector('li').setAttribute('tabindex', '-1');
|
|
1723
1725
|
focusedElement.setAttribute('tabindex', '0');
|
|
@@ -2057,7 +2059,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2057
2059
|
this.updateTemplate();
|
|
2058
2060
|
}
|
|
2059
2061
|
this.treeObj.fields = this.getTreeFields(this.fields);
|
|
2062
|
+
this.setProperties({ value: this.oldValue }, true);
|
|
2060
2063
|
this.treeObj.dataBind();
|
|
2064
|
+
this.updateValue(this.value);
|
|
2061
2065
|
};
|
|
2062
2066
|
DropDownTree.prototype.getEventArgs = function (args) {
|
|
2063
2067
|
var checkData = args.data;
|
|
@@ -3074,8 +3078,10 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
3074
3078
|
this.updateFilterPlaceHolder();
|
|
3075
3079
|
break;
|
|
3076
3080
|
case 'value':
|
|
3077
|
-
|
|
3078
|
-
|
|
3081
|
+
if (JSON.stringify(oldProp.value) !== JSON.stringify(newProp.value)) {
|
|
3082
|
+
this.oldValue = oldProp.value;
|
|
3083
|
+
this.updateValue(newProp.value);
|
|
3084
|
+
}
|
|
3079
3085
|
break;
|
|
3080
3086
|
case 'text':
|
|
3081
3087
|
this.updateText(newProp.text);
|