@syncfusion/ej2-dropdowns 22.1.38 → 22.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/.eslintrc.json +260 -0
- package/CHANGELOG.md +20 -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 +37 -8
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +37 -8
- 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 +11 -11
- package/src/drop-down-base/drop-down-base.d.ts +4 -4
- package/src/drop-down-list/drop-down-list.js +3 -0
- package/src/drop-down-tree/drop-down-tree-model.d.ts +1 -1
- package/src/drop-down-tree/drop-down-tree.js +28 -4
- package/src/list-box/list-box.js +1 -1
- package/src/multi-select/checkbox-selection.js +6 -4
- package/tslint.json +111 -0
|
@@ -3623,6 +3623,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3623
3623
|
}
|
|
3624
3624
|
}
|
|
3625
3625
|
});
|
|
3626
|
+
if (this.isReact && this.isFiltering() && this.itemTemplate != null) {
|
|
3627
|
+
this.actionCompleteData.ulElement = this.ulElement.cloneNode(true);
|
|
3628
|
+
}
|
|
3626
3629
|
};
|
|
3627
3630
|
DropDownList.prototype.destroyPopup = function () {
|
|
3628
3631
|
this.isPopupOpen = false;
|
|
@@ -5406,7 +5409,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
5406
5409
|
data += temp;
|
|
5407
5410
|
temp = this.overFlowWrapper.innerHTML;
|
|
5408
5411
|
if (this.enableHtmlSanitizer) {
|
|
5409
|
-
this.overFlowWrapper.innerText = data;
|
|
5412
|
+
this.overFlowWrapper.innerText = SanitizeHtmlHelper.sanitize(data);
|
|
5410
5413
|
}
|
|
5411
5414
|
else {
|
|
5412
5415
|
this.overFlowWrapper.innerHTML = data;
|
|
@@ -6132,7 +6135,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
6132
6135
|
var isFooter = closest(target, '.' + FOOTER);
|
|
6133
6136
|
var isScroller = target.classList.contains(DROPDOWN) ? true :
|
|
6134
6137
|
(matches(target, '.e-ddt .e-popup') || matches(target, '.e-ddt .e-treeview'));
|
|
6135
|
-
if ((this.isPopupOpen && (this.inputWrapper.contains(target) || isTree || isScroller || isHeader || isFooter)) ||
|
|
6138
|
+
if ((this.isPopupOpen && ((!isNullOrUndefined(this.inputWrapper) && this.inputWrapper.contains(target)) || isTree || isScroller || isHeader || isFooter)) ||
|
|
6136
6139
|
((this.allowMultiSelection || this.showCheckBox) && (this.isPopupOpen && target.classList.contains(CHIP_CLOSE) ||
|
|
6137
6140
|
(this.isPopupOpen && (target.classList.contains(CHECKALLPARENT) || target.classList.contains(ALLTEXT)
|
|
6138
6141
|
|| target.classList.contains(CHECKBOXFRAME)))))) {
|
|
@@ -6770,7 +6773,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
6770
6773
|
var chipContent = this.createElement('span', { className: CHIP_CONTENT });
|
|
6771
6774
|
var chipClose = this.createElement('span', { className: CHIP_CLOSE + ' ' + ICONS });
|
|
6772
6775
|
if (this.enableHtmlSanitizer) {
|
|
6773
|
-
chipContent.innerText = text;
|
|
6776
|
+
chipContent.innerText = SanitizeHtmlHelper.sanitize(text);
|
|
6774
6777
|
}
|
|
6775
6778
|
else {
|
|
6776
6779
|
chipContent.innerHTML = text;
|
|
@@ -7428,10 +7431,34 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
7428
7431
|
Input.setValue(null, this.inputEle, this.floatLabelType);
|
|
7429
7432
|
detach(this.inputWrapper);
|
|
7430
7433
|
detach(this.popupDiv);
|
|
7434
|
+
detach(this.hiddenElement);
|
|
7431
7435
|
this.element.classList.remove('e-input');
|
|
7432
7436
|
if (this.showCheckBox || this.allowMultiSelection) {
|
|
7433
7437
|
this.element.classList.remove(CHIP_INPUT);
|
|
7434
7438
|
}
|
|
7439
|
+
this.inputObj = null;
|
|
7440
|
+
while (this.hiddenElement.options.length > 0) {
|
|
7441
|
+
this.hiddenElement.remove(0);
|
|
7442
|
+
}
|
|
7443
|
+
this.hiddenElement.innerHTML = '';
|
|
7444
|
+
this.hiddenElement = null;
|
|
7445
|
+
this.inputWrapper = null;
|
|
7446
|
+
this.popupDiv = null;
|
|
7447
|
+
this.tree = null;
|
|
7448
|
+
this.popupObj = null;
|
|
7449
|
+
this.treeObj = null;
|
|
7450
|
+
this.overAllClear = null;
|
|
7451
|
+
this.chipWrapper = null;
|
|
7452
|
+
this.chipCollection = null;
|
|
7453
|
+
this.checkAllParent = null;
|
|
7454
|
+
this.selectAllSpan = null;
|
|
7455
|
+
this.checkBoxElement = null;
|
|
7456
|
+
this.checkWrapper = null;
|
|
7457
|
+
this.popupEle = null;
|
|
7458
|
+
this.header = null;
|
|
7459
|
+
this.footer = null;
|
|
7460
|
+
this.overFlowWrapper = null;
|
|
7461
|
+
this.keyboardModule = null;
|
|
7435
7462
|
_super.prototype.destroy.call(this);
|
|
7436
7463
|
};
|
|
7437
7464
|
DropDownTree.prototype.destroyFilter = function () {
|
|
@@ -13813,10 +13840,12 @@ var CheckBoxSelection = /** @__PURE__ @class */ (function () {
|
|
|
13813
13840
|
clearElement.parentElement.insertBefore(this.filterInput, clearElement);
|
|
13814
13841
|
};
|
|
13815
13842
|
CheckBoxSelection.prototype.setPopupFullScreen = function () {
|
|
13816
|
-
|
|
13817
|
-
|
|
13818
|
-
|
|
13819
|
-
|
|
13843
|
+
if (this.parent && this.parent.popupObj) {
|
|
13844
|
+
attributes(this.parent.popupObj.element, { style: 'left:0px;right:0px;top:0px;bottom:0px;' });
|
|
13845
|
+
addClass([document.body, this.parent.popupObj.element], popupFullScreen);
|
|
13846
|
+
this.parent.popupObj.element.style.maxHeight = '100%';
|
|
13847
|
+
this.parent.popupObj.element.style.width = '100%';
|
|
13848
|
+
}
|
|
13820
13849
|
};
|
|
13821
13850
|
CheckBoxSelection.prototype.targetElement = function () {
|
|
13822
13851
|
if (!isNullOrUndefined(this.clearIconElement)) {
|
|
@@ -14440,7 +14469,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
14440
14469
|
if ((boundRect.y + scrollParent.offsetHeight) - (event.clientY + scrollMoved) < 1) {
|
|
14441
14470
|
scrollParent.scrollTop = scrollParent.scrollTop + scrollHeight;
|
|
14442
14471
|
}
|
|
14443
|
-
else if ((event.
|
|
14472
|
+
else if ((event.clientY - scrollMoved) - boundRect.y < 1) {
|
|
14444
14473
|
scrollParent.scrollTop = scrollParent.scrollTop - scrollHeight;
|
|
14445
14474
|
}
|
|
14446
14475
|
}
|