@syncfusion/ej2-dropdowns 28.2.3 → 28.2.4
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 +24 -4
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +25 -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/drop-down-base/drop-down-base.d.ts +2 -0
- package/src/drop-down-base/drop-down-base.js +9 -2
- package/src/drop-down-tree/drop-down-tree.js +6 -0
- package/src/list-box/list-box.d.ts +1 -0
- package/src/list-box/list-box.js +6 -2
- package/src/multi-select/multi-select.d.ts +1 -0
- package/src/multi-select/multi-select.js +4 -0
|
@@ -901,6 +901,7 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
901
901
|
this.CurrentEvent = null;
|
|
902
902
|
this.isDynamicData = false;
|
|
903
903
|
this.isPrimitiveData = false;
|
|
904
|
+
this.isCustomFiltering = false;
|
|
904
905
|
this.virtualListInfo = {
|
|
905
906
|
currentPageNumber: null,
|
|
906
907
|
direction: null,
|
|
@@ -1483,7 +1484,7 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
1483
1484
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1484
1485
|
newQuery.queries[queryElements].e.nos = e.count;
|
|
1485
1486
|
}
|
|
1486
|
-
if (this.getModuleName() === 'multiselect' && (newQuery.queries[queryElements].e.condition === 'or' || newQuery.queries[queryElements].e.operator === 'equal')) {
|
|
1487
|
+
if (this.getModuleName() === 'multiselect' && (newQuery.queries[queryElements].e.condition === 'or' || newQuery.queries[queryElements].e.operator === 'equal') && !this.isCustomFiltering) {
|
|
1487
1488
|
isReOrder = false;
|
|
1488
1489
|
}
|
|
1489
1490
|
}
|
|
@@ -1507,6 +1508,7 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
1507
1508
|
this.trigger('actionComplete', e, (e) => {
|
|
1508
1509
|
if (!e.cancel) {
|
|
1509
1510
|
this.isRequesting = false;
|
|
1511
|
+
this.isCustomFiltering = false;
|
|
1510
1512
|
const listItems = e.result;
|
|
1511
1513
|
if (this.isIncrementalRequest) {
|
|
1512
1514
|
ulElement = this.renderItems(listItems, fields);
|
|
@@ -1544,6 +1546,7 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
1544
1546
|
}
|
|
1545
1547
|
if (this.isVirtualizationEnabled) {
|
|
1546
1548
|
this.getFilteringSkeletonCount();
|
|
1549
|
+
this.updatePopupPosition();
|
|
1547
1550
|
}
|
|
1548
1551
|
if (this.virtualSelectAll && this.virtualSelectAllData) {
|
|
1549
1552
|
this.virtualSelectionAll(this.virtualSelectAllState, this.liCollections, this.CurrentEvent);
|
|
@@ -1585,7 +1588,7 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
1585
1588
|
newQuery.queries[queryElements].e.nos = listItems.count;
|
|
1586
1589
|
listItems = (newQuery).executeLocal(dataManager);
|
|
1587
1590
|
}
|
|
1588
|
-
if (this.getModuleName() === 'multiselect' && (newQuery.queries[queryElements].e.condition === 'or' || newQuery.queries[queryElements].e.operator === 'equal')) {
|
|
1591
|
+
if (this.getModuleName() === 'multiselect' && (newQuery.queries[queryElements].e.condition === 'or' || newQuery.queries[queryElements].e.operator === 'equal') && !this.isCustomFiltering) {
|
|
1589
1592
|
isReOrder = false;
|
|
1590
1593
|
}
|
|
1591
1594
|
}
|
|
@@ -1618,6 +1621,7 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
1618
1621
|
const localDataArgs = { cancel: false, result: listItems };
|
|
1619
1622
|
this.isPreventChange = this.isAngular && this.preventChange ? true : this.isPreventChange;
|
|
1620
1623
|
this.trigger('actionComplete', localDataArgs, (localDataArgs) => {
|
|
1624
|
+
this.isCustomFiltering = false;
|
|
1621
1625
|
if (this.isIncrementalRequest) {
|
|
1622
1626
|
ulElement = this.renderItems(localDataArgs.result, fields);
|
|
1623
1627
|
return;
|
|
@@ -1652,6 +1656,9 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
1652
1656
|
updatePopupState() {
|
|
1653
1657
|
// Used this method in component side.
|
|
1654
1658
|
}
|
|
1659
|
+
updatePopupPosition() {
|
|
1660
|
+
// Used this method in component side.
|
|
1661
|
+
}
|
|
1655
1662
|
virtualSelectionAll(state, li, event) {
|
|
1656
1663
|
// Used this method in component side.
|
|
1657
1664
|
}
|
|
@@ -9759,6 +9766,9 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
9759
9766
|
}
|
|
9760
9767
|
chip.appendChild(chipContent);
|
|
9761
9768
|
this.chipCollection.appendChild(chip);
|
|
9769
|
+
if (this.isReact) {
|
|
9770
|
+
this.renderReactTemplates();
|
|
9771
|
+
}
|
|
9762
9772
|
}
|
|
9763
9773
|
setSelectAllWrapper(state) {
|
|
9764
9774
|
if (this.isFirstRender) {
|
|
@@ -10485,6 +10495,9 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
10485
10495
|
addClass([this.inputWrapper], [INPUTFOCUS]);
|
|
10486
10496
|
}
|
|
10487
10497
|
}
|
|
10498
|
+
if (this.isFilteredData) {
|
|
10499
|
+
this.treeObj['treeData'] = this.treeData;
|
|
10500
|
+
}
|
|
10488
10501
|
if (this.destroyPopupOnHide) {
|
|
10489
10502
|
this.isFirstRender = true;
|
|
10490
10503
|
this.destroyPopup();
|
|
@@ -13994,6 +14007,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
13994
14007
|
break;
|
|
13995
14008
|
}
|
|
13996
14009
|
}
|
|
14010
|
+
updatePopupPosition() {
|
|
14011
|
+
this.refreshPopup();
|
|
14012
|
+
}
|
|
13997
14013
|
updateAriaAttribute() {
|
|
13998
14014
|
const focusedItem = this.list.querySelector('.' + dropDownBaseClasses.focus);
|
|
13999
14015
|
if (!isNullOrUndefined(focusedItem)) {
|
|
@@ -15850,6 +15866,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
15850
15866
|
this.isFiltered = true;
|
|
15851
15867
|
this.customFilterQuery = query;
|
|
15852
15868
|
this.remoteFilterAction = true;
|
|
15869
|
+
this.isCustomFiltering = true;
|
|
15853
15870
|
this.dataUpdater(dataSource, query, fields);
|
|
15854
15871
|
},
|
|
15855
15872
|
event: e,
|
|
@@ -19479,6 +19496,7 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
19479
19496
|
constructor(options, element) {
|
|
19480
19497
|
super(options, element);
|
|
19481
19498
|
this.isValidKey = false;
|
|
19499
|
+
this.isBackSpace = false;
|
|
19482
19500
|
this.isDataSourceUpdate = false;
|
|
19483
19501
|
this.keyDownStatus = false;
|
|
19484
19502
|
}
|
|
@@ -19809,8 +19827,9 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
19809
19827
|
}
|
|
19810
19828
|
filterElem.selectionStart = txtLength;
|
|
19811
19829
|
filterElem.selectionEnd = txtLength;
|
|
19812
|
-
if (filterElem.value !== '') {
|
|
19830
|
+
if (filterElem.value !== '' || (filterElem.value === '' && this.isBackSpace)) {
|
|
19813
19831
|
filterElem.focus();
|
|
19832
|
+
setTimeout(() => { this.isBackSpace = false; });
|
|
19814
19833
|
}
|
|
19815
19834
|
}
|
|
19816
19835
|
}
|
|
@@ -21388,7 +21407,7 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
21388
21407
|
}
|
|
21389
21408
|
}
|
|
21390
21409
|
KeyUp(e) {
|
|
21391
|
-
if (this.allowFiltering &&
|
|
21410
|
+
if (this.allowFiltering && e.ctrlKey && e.keyCode === 65) {
|
|
21392
21411
|
e.preventDefault();
|
|
21393
21412
|
return;
|
|
21394
21413
|
}
|
|
@@ -21397,6 +21416,7 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
21397
21416
|
if (!isNullOrUndefined(isWordCharacter)) {
|
|
21398
21417
|
this.isValidKey = true;
|
|
21399
21418
|
}
|
|
21419
|
+
this.isBackSpace = e.keyCode === 8;
|
|
21400
21420
|
this.isValidKey = (e.keyCode === 8) || (e.keyCode === 46) || this.isValidKey;
|
|
21401
21421
|
if (this.isValidKey) {
|
|
21402
21422
|
this.isValidKey = false;
|