@syncfusion/ej2-dropdowns 28.1.33 → 28.1.35
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 +17 -4
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +17 -4
- 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 +6 -6
- package/src/combo-box/combo-box.js +1 -0
- package/src/drop-down-list/drop-down-list.d.ts +1 -0
- package/src/drop-down-list/drop-down-list.js +12 -1
- package/src/drop-down-tree/drop-down-tree.d.ts +1 -0
- package/src/drop-down-tree/drop-down-tree.js +4 -3
- package/styles/bootstrap5-dark-lite.css +1 -0
- package/styles/bootstrap5-dark.css +1 -0
- package/styles/bootstrap5-lite.css +1 -0
- package/styles/bootstrap5.3-lite.css +1 -0
- package/styles/bootstrap5.3.css +1 -0
- package/styles/bootstrap5.css +1 -0
- package/styles/drop-down-list/_layout.scss +1 -1
- package/styles/drop-down-list/tailwind3.css +1 -0
- package/styles/fluent-dark-lite.css +1 -0
- package/styles/fluent-dark.css +1 -0
- package/styles/fluent-lite.css +1 -0
- package/styles/fluent.css +1 -0
- package/styles/multi-select/_layout.scss +1 -3
- package/styles/multi-select/bootstrap5-dark.css +1 -0
- package/styles/multi-select/bootstrap5.3.css +1 -0
- package/styles/multi-select/bootstrap5.css +1 -0
- package/styles/multi-select/fluent-dark.css +1 -0
- package/styles/multi-select/fluent.css +1 -0
- package/styles/tailwind3-lite.css +1 -0
- package/styles/tailwind3.css +1 -0
|
@@ -4634,6 +4634,9 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
4634
4634
|
if (this.isFiltering() && this.getModuleName() === 'combobox' && isNullOrUndefined(this.list)) {
|
|
4635
4635
|
this.getInitialData = true;
|
|
4636
4636
|
this.renderList();
|
|
4637
|
+
if (!this.isSecondClick && !this.isDropDownClick) {
|
|
4638
|
+
this.executeCloneElements();
|
|
4639
|
+
}
|
|
4637
4640
|
}
|
|
4638
4641
|
this.typedString = this.filterInput.value;
|
|
4639
4642
|
this.preventAutoFill = false;
|
|
@@ -4891,6 +4894,9 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
4891
4894
|
this.getFilteringSkeletonCount();
|
|
4892
4895
|
}
|
|
4893
4896
|
this.renderReactTemplates();
|
|
4897
|
+
if (this.filterInput && this.filterInput.value === '' && this.getModuleName() === 'combobox') {
|
|
4898
|
+
this.executeCloneElements();
|
|
4899
|
+
}
|
|
4894
4900
|
}
|
|
4895
4901
|
}
|
|
4896
4902
|
setSearchBox(popupElement) {
|
|
@@ -6755,10 +6761,15 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
6755
6761
|
isOpen: true
|
|
6756
6762
|
});
|
|
6757
6763
|
}
|
|
6764
|
+
if (!this.isSecondClick && !this.isDropDownClick) {
|
|
6765
|
+
this.executeCloneElements();
|
|
6766
|
+
}
|
|
6767
|
+
}
|
|
6768
|
+
executeCloneElements() {
|
|
6758
6769
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
6759
6770
|
const proxy = this;
|
|
6760
6771
|
const duration = (this.element.tagName === this.getNgDirective() && this.itemTemplate) ? 500 : 100;
|
|
6761
|
-
if (
|
|
6772
|
+
if (this.isReact && this.isFiltering() && this.itemTemplate != null) {
|
|
6762
6773
|
setTimeout(() => {
|
|
6763
6774
|
proxy.cloneElements();
|
|
6764
6775
|
proxy.isSecondClick = true;
|
|
@@ -7293,6 +7304,7 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
7293
7304
|
this.selectedData = [];
|
|
7294
7305
|
this.filterDelayTime = 300;
|
|
7295
7306
|
this.isClicked = false;
|
|
7307
|
+
this.documentClickContext = this.onDocumentClick.bind(this);
|
|
7296
7308
|
// Specifies if the checkAll method has been called
|
|
7297
7309
|
this.isCheckAllCalled = false;
|
|
7298
7310
|
this.isFromFilterChange = false;
|
|
@@ -7803,7 +7815,7 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
7803
7815
|
if (this.showSelectAll && this.checkAllParent) {
|
|
7804
7816
|
EventHandler.remove(this.checkAllParent, 'mouseup', this.clickHandler);
|
|
7805
7817
|
}
|
|
7806
|
-
|
|
7818
|
+
document.removeEventListener('mousedown', this.documentClickContext);
|
|
7807
7819
|
}
|
|
7808
7820
|
/* Trigger when the dropdown is clicked */
|
|
7809
7821
|
dropDownClick(e) {
|
|
@@ -8817,7 +8829,7 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
8817
8829
|
if (this.treeObj.checkedNodes.length > 0 && !this.isFilterRestore) {
|
|
8818
8830
|
const nodes = this.treeObj.element.querySelectorAll('li');
|
|
8819
8831
|
const checkedNodes = this.treeObj.element.querySelectorAll('li[aria-checked=true]');
|
|
8820
|
-
if ((checkedNodes.length === nodes.length
|
|
8832
|
+
if ((checkedNodes.length === nodes.length) && this.checkBoxElement) {
|
|
8821
8833
|
const wrap = closest(this.checkBoxElement, '.' + CHECKBOXWRAP);
|
|
8822
8834
|
this.changeState(wrap, 'check');
|
|
8823
8835
|
this.checkSelectAll = false;
|
|
@@ -8879,7 +8891,7 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
8879
8891
|
this.isPopupOpen = false;
|
|
8880
8892
|
},
|
|
8881
8893
|
open: () => {
|
|
8882
|
-
|
|
8894
|
+
document.addEventListener('mousedown', this.documentClickContext);
|
|
8883
8895
|
this.isPopupOpen = true;
|
|
8884
8896
|
},
|
|
8885
8897
|
targetExitViewport: () => {
|
|
@@ -11148,6 +11160,7 @@ let ComboBox = class ComboBox extends DropDownList {
|
|
|
11148
11160
|
super.clearAll(e);
|
|
11149
11161
|
}
|
|
11150
11162
|
if (this.isFiltering() && !isNullOrUndefined(e) && e.target === this.inputWrapper.clearButton) {
|
|
11163
|
+
this.typedString = this.filterInput.value;
|
|
11151
11164
|
this.searchLists(e);
|
|
11152
11165
|
}
|
|
11153
11166
|
}
|