@syncfusion/ej2-dropdowns 22.1.37 → 22.1.39
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 +25 -5
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +41 -21
- 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 +10 -10
- package/src/drop-down-list/drop-down-list.js +20 -16
- package/src/drop-down-tree/drop-down-tree.js +6 -0
- package/src/list-box/list-box.js +1 -1
- package/src/multi-select/checkbox-selection.js +6 -4
- package/src/multi-select/multi-select.js +8 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 22.1.
|
|
3
|
+
* version : 22.1.39
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@22.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@22.1.38",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-rmkxzqNkvxi1OGMnjl9YUz5iTrvaS4pff5fMYdq1xCccizycwqdNnL5+MNimnSWJqDxpST+SwPiL86NMgVlt6A==",
|
|
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.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-22.1.
|
|
38
|
-
"_shasum": "
|
|
37
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-22.1.38.tgz",
|
|
38
|
+
"_shasum": "ce2897f653685a6c96d27245ebab2d45771b75df",
|
|
39
39
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
40
40
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
41
41
|
"author": {
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
},
|
|
44
44
|
"bundleDependencies": false,
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@syncfusion/ej2-base": "~22.1.
|
|
47
|
-
"@syncfusion/ej2-data": "~22.1.
|
|
48
|
-
"@syncfusion/ej2-inputs": "~22.1.
|
|
46
|
+
"@syncfusion/ej2-base": "~22.1.38",
|
|
47
|
+
"@syncfusion/ej2-data": "~22.1.38",
|
|
48
|
+
"@syncfusion/ej2-inputs": "~22.1.39",
|
|
49
49
|
"@syncfusion/ej2-lists": "~22.1.34",
|
|
50
|
-
"@syncfusion/ej2-navigations": "~22.1.
|
|
51
|
-
"@syncfusion/ej2-popups": "~22.1.
|
|
50
|
+
"@syncfusion/ej2-navigations": "~22.1.39",
|
|
51
|
+
"@syncfusion/ej2-popups": "~22.1.38"
|
|
52
52
|
},
|
|
53
53
|
"deprecated": false,
|
|
54
54
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"module": "./index.js",
|
|
74
74
|
"name": "@syncfusion/ej2-dropdowns",
|
|
75
75
|
"typings": "index.d.ts",
|
|
76
|
-
"version": "22.1.
|
|
76
|
+
"version": "22.1.39",
|
|
77
77
|
"sideEffects": false,
|
|
78
78
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
79
79
|
}
|
|
@@ -1677,20 +1677,20 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1677
1677
|
var args = { cancel: false };
|
|
1678
1678
|
this.trigger('beforeOpen', args, function (args) {
|
|
1679
1679
|
if (!args.cancel) {
|
|
1680
|
-
var
|
|
1680
|
+
var popupEle_1 = _this.createElement('div', {
|
|
1681
1681
|
id: _this.element.id + '_popup', className: 'e-ddl e-popup ' + (_this.cssClass !== null ? _this.cssClass : '')
|
|
1682
1682
|
});
|
|
1683
|
-
var searchBox = _this.setSearchBox(
|
|
1683
|
+
var searchBox = _this.setSearchBox(popupEle_1);
|
|
1684
1684
|
_this.listHeight = formatUnit(_this.popupHeight);
|
|
1685
1685
|
if (_this.headerTemplate) {
|
|
1686
|
-
_this.setHeaderTemplate(
|
|
1686
|
+
_this.setHeaderTemplate(popupEle_1);
|
|
1687
1687
|
}
|
|
1688
|
-
append([_this.list],
|
|
1688
|
+
append([_this.list], popupEle_1);
|
|
1689
1689
|
if (_this.footerTemplate) {
|
|
1690
|
-
_this.setFooterTemplate(
|
|
1690
|
+
_this.setFooterTemplate(popupEle_1);
|
|
1691
1691
|
}
|
|
1692
|
-
document.body.appendChild(
|
|
1693
|
-
|
|
1692
|
+
document.body.appendChild(popupEle_1);
|
|
1693
|
+
popupEle_1.style.visibility = 'hidden';
|
|
1694
1694
|
if (_this.popupHeight !== 'auto') {
|
|
1695
1695
|
_this.searchBoxHeight = 0;
|
|
1696
1696
|
if (!isNullOrUndefined(searchBox.container)) {
|
|
@@ -1698,20 +1698,20 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1698
1698
|
_this.listHeight = (parseInt(_this.listHeight, 10) - (_this.searchBoxHeight)).toString() + 'px';
|
|
1699
1699
|
}
|
|
1700
1700
|
if (_this.headerTemplate) {
|
|
1701
|
-
_this.header = _this.header ? _this.header :
|
|
1701
|
+
_this.header = _this.header ? _this.header : popupEle_1.querySelector('.e-ddl-header');
|
|
1702
1702
|
var height = Math.round(_this.header.getBoundingClientRect().height);
|
|
1703
1703
|
_this.listHeight = (parseInt(_this.listHeight, 10) - (height + _this.searchBoxHeight)).toString() + 'px';
|
|
1704
1704
|
}
|
|
1705
1705
|
if (_this.footerTemplate) {
|
|
1706
|
-
_this.footer = _this.footer ? _this.footer :
|
|
1706
|
+
_this.footer = _this.footer ? _this.footer : popupEle_1.querySelector('.e-ddl-footer');
|
|
1707
1707
|
var height = Math.round(_this.footer.getBoundingClientRect().height);
|
|
1708
1708
|
_this.listHeight = (parseInt(_this.listHeight, 10) - (height + _this.searchBoxHeight)).toString() + 'px';
|
|
1709
1709
|
}
|
|
1710
1710
|
_this.list.style.maxHeight = (parseInt(_this.listHeight, 10) - 2).toString() + 'px'; // due to box-sizing property
|
|
1711
|
-
|
|
1711
|
+
popupEle_1.style.maxHeight = formatUnit(_this.popupHeight);
|
|
1712
1712
|
}
|
|
1713
1713
|
else {
|
|
1714
|
-
|
|
1714
|
+
popupEle_1.style.height = 'auto';
|
|
1715
1715
|
}
|
|
1716
1716
|
var offsetValue = 0;
|
|
1717
1717
|
var left = void 0;
|
|
@@ -1723,7 +1723,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1723
1723
|
}
|
|
1724
1724
|
if (Browser.isDevice && (!_this.allowFiltering && (_this.getModuleName() === 'dropdownlist' ||
|
|
1725
1725
|
(_this.isDropDownClick && _this.getModuleName() === 'combobox')))) {
|
|
1726
|
-
offsetValue = _this.getOffsetValue(
|
|
1726
|
+
offsetValue = _this.getOffsetValue(popupEle_1);
|
|
1727
1727
|
var firstItem = _this.isEmptyList() ? _this.list : _this.liCollections[0];
|
|
1728
1728
|
if (!isNullOrUndefined(_this.inputElement)) {
|
|
1729
1729
|
left = -(parseInt(getComputedStyle(firstItem).textIndent, 10) -
|
|
@@ -1732,8 +1732,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|
|
1734
1734
|
_this.getFocusElement();
|
|
1735
|
-
_this.createPopup(
|
|
1736
|
-
_this.checkCollision(
|
|
1735
|
+
_this.createPopup(popupEle_1, offsetValue, left);
|
|
1736
|
+
_this.checkCollision(popupEle_1);
|
|
1737
|
+
var popupLeft_1 = _this.enableRtl ? parseFloat(popupEle_1.style.left) - (_this.ulElement.parentElement.offsetWidth - _this.inputWrapper.container.offsetWidth) : 0;
|
|
1737
1738
|
if (Browser.isDevice) {
|
|
1738
1739
|
_this.popupObj.element.classList.add(dropDownListClasses.device);
|
|
1739
1740
|
if (_this.getModuleName() === 'dropdownlist' || (_this.getModuleName() === 'combobox'
|
|
@@ -1753,8 +1754,8 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1753
1754
|
EventHandler.add(_this.clearIconElement, 'click', _this.clearText, _this);
|
|
1754
1755
|
}
|
|
1755
1756
|
}
|
|
1756
|
-
|
|
1757
|
-
addClass([
|
|
1757
|
+
popupEle_1.style.visibility = 'visible';
|
|
1758
|
+
addClass([popupEle_1], 'e-popup-close');
|
|
1758
1759
|
var scrollParentElements = _this.popupObj.getScrollableParent(_this.inputWrapper.container);
|
|
1759
1760
|
for (var _i = 0, scrollParentElements_1 = scrollParentElements; _i < scrollParentElements_1.length; _i++) {
|
|
1760
1761
|
var element = scrollParentElements_1[_i];
|
|
@@ -1787,6 +1788,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1787
1788
|
_this.beforePopupOpen = false;
|
|
1788
1789
|
_this.destroyPopup();
|
|
1789
1790
|
}
|
|
1791
|
+
if (_this.enableRtl && popupLeft_1 > 0) {
|
|
1792
|
+
popupEle_1.style.left = popupLeft_1 + "px";
|
|
1793
|
+
}
|
|
1790
1794
|
});
|
|
1791
1795
|
}
|
|
1792
1796
|
else {
|
|
@@ -428,6 +428,12 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
428
428
|
}
|
|
429
429
|
_this.treeObj.fields = _this.getTreeFields(fields);
|
|
430
430
|
_this.treeObj.dataBind();
|
|
431
|
+
if (_this.hasTemplate && _this.portals) {
|
|
432
|
+
_this.portals = [].concat(_this.treeObj.portals);
|
|
433
|
+
if (_this.isReact) {
|
|
434
|
+
_this.renderReactTemplates();
|
|
435
|
+
}
|
|
436
|
+
}
|
|
431
437
|
}
|
|
432
438
|
});
|
|
433
439
|
};
|
package/src/list-box/list-box.js
CHANGED
|
@@ -462,7 +462,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
462
462
|
if ((boundRect.y + scrollParent.offsetHeight) - (event.clientY + scrollMoved) < 1) {
|
|
463
463
|
scrollParent.scrollTop = scrollParent.scrollTop + scrollHeight;
|
|
464
464
|
}
|
|
465
|
-
else if ((event.
|
|
465
|
+
else if ((event.clientY - scrollMoved) - boundRect.y < 1) {
|
|
466
466
|
scrollParent.scrollTop = scrollParent.scrollTop - scrollHeight;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
@@ -343,10 +343,12 @@ var CheckBoxSelection = /** @class */ (function () {
|
|
|
343
343
|
clearElement.parentElement.insertBefore(this.filterInput, clearElement);
|
|
344
344
|
};
|
|
345
345
|
CheckBoxSelection.prototype.setPopupFullScreen = function () {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
346
|
+
if (this.parent && this.parent.popupObj) {
|
|
347
|
+
attributes(this.parent.popupObj.element, { style: 'left:0px;right:0px;top:0px;bottom:0px;' });
|
|
348
|
+
addClass([document.body, this.parent.popupObj.element], popupFullScreen);
|
|
349
|
+
this.parent.popupObj.element.style.maxHeight = '100%';
|
|
350
|
+
this.parent.popupObj.element.style.width = '100%';
|
|
351
|
+
}
|
|
350
352
|
};
|
|
351
353
|
CheckBoxSelection.prototype.targetElement = function () {
|
|
352
354
|
if (!isNullOrUndefined(this.clearIconElement)) {
|
|
@@ -264,6 +264,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
264
264
|
if (_this.isFirstClick) {
|
|
265
265
|
_this.loadTemplate();
|
|
266
266
|
}
|
|
267
|
+
if (_this.enableRtl) {
|
|
268
|
+
_this.popupWrapper.style.visibility = 'hidden';
|
|
269
|
+
}
|
|
267
270
|
}
|
|
268
271
|
});
|
|
269
272
|
};
|
|
@@ -2132,6 +2135,11 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2132
2135
|
},
|
|
2133
2136
|
open: function () {
|
|
2134
2137
|
_this.popupObj.resolveCollision();
|
|
2138
|
+
if (_this.enableRtl) {
|
|
2139
|
+
var popupLeft = parseFloat(_this.popupWrapper.style.left) - (_this.popupWrapper.offsetWidth - _this.overAllWrapper.offsetWidth);
|
|
2140
|
+
_this.popupWrapper.style.left = popupLeft > 0 ? popupLeft + "px" : _this.popupWrapper.style.left;
|
|
2141
|
+
_this.popupWrapper.style.visibility = 'hidden';
|
|
2142
|
+
}
|
|
2135
2143
|
if (!_this.isFirstClick) {
|
|
2136
2144
|
var ulElement = _this.list.querySelector('ul');
|
|
2137
2145
|
if (ulElement) {
|