@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
|
@@ -3559,6 +3559,9 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
3559
3559
|
}
|
|
3560
3560
|
}
|
|
3561
3561
|
});
|
|
3562
|
+
if (this.isReact && this.isFiltering() && this.itemTemplate != null) {
|
|
3563
|
+
this.actionCompleteData.ulElement = this.ulElement.cloneNode(true);
|
|
3564
|
+
}
|
|
3562
3565
|
}
|
|
3563
3566
|
destroyPopup() {
|
|
3564
3567
|
this.isPopupOpen = false;
|
|
@@ -5304,7 +5307,7 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
5304
5307
|
data += temp;
|
|
5305
5308
|
temp = this.overFlowWrapper.innerHTML;
|
|
5306
5309
|
if (this.enableHtmlSanitizer) {
|
|
5307
|
-
this.overFlowWrapper.innerText = data;
|
|
5310
|
+
this.overFlowWrapper.innerText = SanitizeHtmlHelper.sanitize(data);
|
|
5308
5311
|
}
|
|
5309
5312
|
else {
|
|
5310
5313
|
this.overFlowWrapper.innerHTML = data;
|
|
@@ -6025,7 +6028,7 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
6025
6028
|
const isFooter = closest(target, '.' + FOOTER);
|
|
6026
6029
|
const isScroller = target.classList.contains(DROPDOWN) ? true :
|
|
6027
6030
|
(matches(target, '.e-ddt .e-popup') || matches(target, '.e-ddt .e-treeview'));
|
|
6028
|
-
if ((this.isPopupOpen && (this.inputWrapper.contains(target) || isTree || isScroller || isHeader || isFooter)) ||
|
|
6031
|
+
if ((this.isPopupOpen && ((!isNullOrUndefined(this.inputWrapper) && this.inputWrapper.contains(target)) || isTree || isScroller || isHeader || isFooter)) ||
|
|
6029
6032
|
((this.allowMultiSelection || this.showCheckBox) && (this.isPopupOpen && target.classList.contains(CHIP_CLOSE) ||
|
|
6030
6033
|
(this.isPopupOpen && (target.classList.contains(CHECKALLPARENT) || target.classList.contains(ALLTEXT)
|
|
6031
6034
|
|| target.classList.contains(CHECKBOXFRAME)))))) {
|
|
@@ -6663,7 +6666,7 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
6663
6666
|
const chipContent = this.createElement('span', { className: CHIP_CONTENT });
|
|
6664
6667
|
const chipClose = this.createElement('span', { className: CHIP_CLOSE + ' ' + ICONS });
|
|
6665
6668
|
if (this.enableHtmlSanitizer) {
|
|
6666
|
-
chipContent.innerText = text;
|
|
6669
|
+
chipContent.innerText = SanitizeHtmlHelper.sanitize(text);
|
|
6667
6670
|
}
|
|
6668
6671
|
else {
|
|
6669
6672
|
chipContent.innerHTML = text;
|
|
@@ -7320,10 +7323,34 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
7320
7323
|
Input.setValue(null, this.inputEle, this.floatLabelType);
|
|
7321
7324
|
detach(this.inputWrapper);
|
|
7322
7325
|
detach(this.popupDiv);
|
|
7326
|
+
detach(this.hiddenElement);
|
|
7323
7327
|
this.element.classList.remove('e-input');
|
|
7324
7328
|
if (this.showCheckBox || this.allowMultiSelection) {
|
|
7325
7329
|
this.element.classList.remove(CHIP_INPUT);
|
|
7326
7330
|
}
|
|
7331
|
+
this.inputObj = null;
|
|
7332
|
+
while (this.hiddenElement.options.length > 0) {
|
|
7333
|
+
this.hiddenElement.remove(0);
|
|
7334
|
+
}
|
|
7335
|
+
this.hiddenElement.innerHTML = '';
|
|
7336
|
+
this.hiddenElement = null;
|
|
7337
|
+
this.inputWrapper = null;
|
|
7338
|
+
this.popupDiv = null;
|
|
7339
|
+
this.tree = null;
|
|
7340
|
+
this.popupObj = null;
|
|
7341
|
+
this.treeObj = null;
|
|
7342
|
+
this.overAllClear = null;
|
|
7343
|
+
this.chipWrapper = null;
|
|
7344
|
+
this.chipCollection = null;
|
|
7345
|
+
this.checkAllParent = null;
|
|
7346
|
+
this.selectAllSpan = null;
|
|
7347
|
+
this.checkBoxElement = null;
|
|
7348
|
+
this.checkWrapper = null;
|
|
7349
|
+
this.popupEle = null;
|
|
7350
|
+
this.header = null;
|
|
7351
|
+
this.footer = null;
|
|
7352
|
+
this.overFlowWrapper = null;
|
|
7353
|
+
this.keyboardModule = null;
|
|
7327
7354
|
super.destroy();
|
|
7328
7355
|
}
|
|
7329
7356
|
destroyFilter() {
|
|
@@ -13629,10 +13656,12 @@ class CheckBoxSelection {
|
|
|
13629
13656
|
clearElement.parentElement.insertBefore(this.filterInput, clearElement);
|
|
13630
13657
|
}
|
|
13631
13658
|
setPopupFullScreen() {
|
|
13632
|
-
|
|
13633
|
-
|
|
13634
|
-
|
|
13635
|
-
|
|
13659
|
+
if (this.parent && this.parent.popupObj) {
|
|
13660
|
+
attributes(this.parent.popupObj.element, { style: 'left:0px;right:0px;top:0px;bottom:0px;' });
|
|
13661
|
+
addClass([document.body, this.parent.popupObj.element], popupFullScreen);
|
|
13662
|
+
this.parent.popupObj.element.style.maxHeight = '100%';
|
|
13663
|
+
this.parent.popupObj.element.style.width = '100%';
|
|
13664
|
+
}
|
|
13636
13665
|
}
|
|
13637
13666
|
targetElement() {
|
|
13638
13667
|
if (!isNullOrUndefined(this.clearIconElement)) {
|
|
@@ -14226,7 +14255,7 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
14226
14255
|
if ((boundRect.y + scrollParent.offsetHeight) - (event.clientY + scrollMoved) < 1) {
|
|
14227
14256
|
scrollParent.scrollTop = scrollParent.scrollTop + scrollHeight;
|
|
14228
14257
|
}
|
|
14229
|
-
else if ((event.
|
|
14258
|
+
else if ((event.clientY - scrollMoved) - boundRect.y < 1) {
|
|
14230
14259
|
scrollParent.scrollTop = scrollParent.scrollTop - scrollHeight;
|
|
14231
14260
|
}
|
|
14232
14261
|
}
|