@syncfusion/ej2-dropdowns 32.1.20 → 32.1.21
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 +19 -5
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +20 -5
- 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 +1 -1
- package/src/common/virtual-scroll.js +4 -0
- package/src/drop-down-base/drop-down-base.js +4 -2
- package/src/mention/mention.d.ts +1 -0
- package/src/mention/mention.js +11 -2
- package/src/multi-select/multi-select.js +1 -1
- package/styles/bootstrap5.3-lite.css +1 -1
- package/styles/bootstrap5.3.css +1 -1
- package/styles/list-box/_bootstrap5.3-definition.scss +1 -1
- package/styles/list-box/bootstrap5.3.css +1 -1
|
@@ -473,6 +473,10 @@ class VirtualScroll {
|
|
|
473
473
|
this.parent.totalItemsCount();
|
|
474
474
|
}
|
|
475
475
|
if (isListUpdated) {
|
|
476
|
+
if (this.component === 'multiselect' && this.parent.itemCount * 2 > this.parent.totalItemCount) {
|
|
477
|
+
this.parent.viewPortInfo.endIndex = endIndex = this.parent.totalItemCount;
|
|
478
|
+
this.parent.isVirtualTrackHeight = true;
|
|
479
|
+
}
|
|
476
480
|
for (let i = this.parent.viewPortInfo.startIndex; i < endIndex; i++) {
|
|
477
481
|
const index = i;
|
|
478
482
|
if (this.component === 'multiselect' && this.parent.mode === 'CheckBox') {
|
|
@@ -1651,8 +1655,10 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
1651
1655
|
for (let queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
|
|
1652
1656
|
if (this.getModuleName() === 'multiselect' && this.isCheckBoxSelection && (newQuery.queries[queryElements].e && (newQuery.queries[queryElements].e.operator === 'notequal' ||
|
|
1653
1657
|
newQuery.queries[queryElements].e.operator === 'equal' || newQuery.queries[queryElements].e.condition === 'or' || newQuery.queries[queryElements].e.condition === 'and') && !this.isCustomFiltering)) {
|
|
1654
|
-
|
|
1655
|
-
|
|
1658
|
+
if (this.totalItemCount > (this.itemCount * 2)) {
|
|
1659
|
+
isReOrder = false;
|
|
1660
|
+
break;
|
|
1661
|
+
}
|
|
1656
1662
|
}
|
|
1657
1663
|
if (newQuery.queries[queryElements].fn === 'onTake') {
|
|
1658
1664
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -18833,7 +18839,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
18833
18839
|
if (this.hideSelectedItem && this.value && Array.isArray(this.value) && this.value.length > 0) {
|
|
18834
18840
|
this.totalItemsCount();
|
|
18835
18841
|
}
|
|
18836
|
-
if (!this.preventSetCurrentData &&
|
|
18842
|
+
if (!this.preventSetCurrentData &&
|
|
18837
18843
|
!isNullOrUndefined(this.viewPortInfo.startIndex) &&
|
|
18838
18844
|
!isNullOrUndefined(this.viewPortInfo.endIndex)) {
|
|
18839
18845
|
this.notify('setCurrentViewDataAsync', {
|
|
@@ -23434,11 +23440,11 @@ let Mention = class Mention extends DropDownBase {
|
|
|
23434
23440
|
this.searchLists(e);
|
|
23435
23441
|
if (!this.isPopupOpen && this.queryString.length >= this.minLength) {
|
|
23436
23442
|
if (!this.isContentEditable(this.inputElement)) {
|
|
23437
|
-
this.
|
|
23443
|
+
this.showPopupWithDebounce();
|
|
23438
23444
|
}
|
|
23439
23445
|
else if (this.isContentEditable(this.inputElement) && this.range &&
|
|
23440
23446
|
this.range.startContainer !== this.inputElement && e.keyCode !== 9) {
|
|
23441
|
-
this.
|
|
23447
|
+
this.showPopupWithDebounce();
|
|
23442
23448
|
}
|
|
23443
23449
|
}
|
|
23444
23450
|
}
|
|
@@ -23476,6 +23482,14 @@ let Mention = class Mention extends DropDownBase {
|
|
|
23476
23482
|
}
|
|
23477
23483
|
this.isListResetted = false;
|
|
23478
23484
|
}
|
|
23485
|
+
showPopupWithDebounce() {
|
|
23486
|
+
if (this.minLength > 0 && this.minLength === this.queryString.length) {
|
|
23487
|
+
setTimeout(() => { this.showPopup(); }, this.debounceDelay);
|
|
23488
|
+
}
|
|
23489
|
+
else {
|
|
23490
|
+
this.showPopup();
|
|
23491
|
+
}
|
|
23492
|
+
}
|
|
23479
23493
|
isMatchedText() {
|
|
23480
23494
|
let isMatched = false;
|
|
23481
23495
|
for (let i = 0; i < (this.liCollections && this.liCollections.length); i++) {
|