@syncfusion/ej2-dropdowns 32.1.19 → 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 +10 -1
- package/dist/ej2-dropdowns.umd.min.js +10 -1
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +33 -6
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +34 -6
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +10 -1
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +9 -0
- package/package.json +2 -2
- package/src/common/virtual-scroll.js +4 -0
- package/src/drop-down-base/drop-down-base.js +4 -2
- package/src/drop-down-list/drop-down-list.d.ts +1 -0
- package/src/drop-down-list/drop-down-list.js +10 -0
- package/src/drop-down-tree/drop-down-tree.js +4 -1
- 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/drop-down-list/_layout.scss +1 -1
- package/styles/drop-down-list/material3-dark.css +1 -1
- package/styles/drop-down-list/material3.css +1 -1
- package/styles/list-box/_bootstrap5.3-definition.scss +1 -1
- package/styles/list-box/bootstrap5.3.css +1 -1
- package/styles/material3-dark-lite.css +1 -1
- package/styles/material3-dark.css +1 -1
- package/styles/material3-lite.css +1 -1
- package/styles/material3.css +1 -1
|
@@ -521,6 +521,10 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
521
521
|
this.parent.totalItemsCount();
|
|
522
522
|
}
|
|
523
523
|
if (isListUpdated) {
|
|
524
|
+
if (this.component === 'multiselect' && this.parent.itemCount * 2 > this.parent.totalItemCount) {
|
|
525
|
+
this.parent.viewPortInfo.endIndex = endIndex = this.parent.totalItemCount;
|
|
526
|
+
this.parent.isVirtualTrackHeight = true;
|
|
527
|
+
}
|
|
524
528
|
for (var i = this.parent.viewPortInfo.startIndex; i < endIndex; i++) {
|
|
525
529
|
var index = i;
|
|
526
530
|
if (this.component === 'multiselect' && this.parent.mode === 'CheckBox') {
|
|
@@ -1735,8 +1739,10 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1735
1739
|
for (var queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
|
|
1736
1740
|
if (_this.getModuleName() === 'multiselect' && _this.isCheckBoxSelection && (newQuery.queries[queryElements].e && (newQuery.queries[queryElements].e.operator === 'notequal' ||
|
|
1737
1741
|
newQuery.queries[queryElements].e.operator === 'equal' || newQuery.queries[queryElements].e.condition === 'or' || newQuery.queries[queryElements].e.condition === 'and') && !_this.isCustomFiltering)) {
|
|
1738
|
-
|
|
1739
|
-
|
|
1742
|
+
if (_this.totalItemCount > (_this.itemCount * 2)) {
|
|
1743
|
+
isReOrder = false;
|
|
1744
|
+
break;
|
|
1745
|
+
}
|
|
1740
1746
|
}
|
|
1741
1747
|
if (newQuery.queries[queryElements].fn === 'onTake') {
|
|
1742
1748
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -5760,6 +5766,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5760
5766
|
}
|
|
5761
5767
|
var args = { cancel: false };
|
|
5762
5768
|
this.trigger('beforeOpen', args, function (args) {
|
|
5769
|
+
_this.iOSscrollPosition = { x: document.documentElement.scrollLeft, y: document.documentElement.scrollTop };
|
|
5763
5770
|
var initialPopupHeight;
|
|
5764
5771
|
if (!args.cancel) {
|
|
5765
5772
|
var popupEle_1 = _this.createElement('div', {
|
|
@@ -5982,6 +5989,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5982
5989
|
}
|
|
5983
5990
|
}, 15);
|
|
5984
5991
|
}
|
|
5992
|
+
if (_this.allowFiltering && _this.isDeviceFullScreen && Browser.isDevice && Browser.isIos) {
|
|
5993
|
+
document.documentElement.scrollIntoView();
|
|
5994
|
+
}
|
|
5985
5995
|
}
|
|
5986
5996
|
else {
|
|
5987
5997
|
_this.beforePopupOpen = false;
|
|
@@ -6518,6 +6528,12 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
6518
6528
|
_this.fixedHeaderElement = null;
|
|
6519
6529
|
}
|
|
6520
6530
|
if (!eventArgs.cancel) {
|
|
6531
|
+
if (_this.isPopupOpen && _this.allowFiltering && _this.isDeviceFullScreen && Browser.isDevice && Browser.isIos) {
|
|
6532
|
+
document.documentElement.scrollTo({
|
|
6533
|
+
top: _this.iOSscrollPosition.y,
|
|
6534
|
+
left: _this.iOSscrollPosition.x
|
|
6535
|
+
});
|
|
6536
|
+
}
|
|
6521
6537
|
if (_this.getModuleName() === 'autocomplete') {
|
|
6522
6538
|
_this.rippleFun();
|
|
6523
6539
|
}
|
|
@@ -10186,7 +10202,10 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
10186
10202
|
selectedValues = selectedValues.filter(function (selectedValue) {
|
|
10187
10203
|
var nodeData = _this.treeObj.getTreeData(selectedValue);
|
|
10188
10204
|
if (Array.isArray(nodeData)) {
|
|
10189
|
-
return nodeData.every(function (nodeSelectedData) {
|
|
10205
|
+
return nodeData.every(function (nodeSelectedData) {
|
|
10206
|
+
return nodeSelectedData.selected === true ||
|
|
10207
|
+
_this.selectedData.some(function (sel) { return sel.id === String(nodeSelectedData[_this.fields.value]); });
|
|
10208
|
+
});
|
|
10190
10209
|
}
|
|
10191
10210
|
return true;
|
|
10192
10211
|
});
|
|
@@ -19115,7 +19134,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
19115
19134
|
if (_this.hideSelectedItem && _this.value && Array.isArray(_this.value) && _this.value.length > 0) {
|
|
19116
19135
|
_this.totalItemsCount();
|
|
19117
19136
|
}
|
|
19118
|
-
if (!_this.preventSetCurrentData &&
|
|
19137
|
+
if (!_this.preventSetCurrentData &&
|
|
19119
19138
|
!isNullOrUndefined(_this.viewPortInfo.startIndex) &&
|
|
19120
19139
|
!isNullOrUndefined(_this.viewPortInfo.endIndex)) {
|
|
19121
19140
|
_this.notify('setCurrentViewDataAsync', {
|
|
@@ -23807,11 +23826,11 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
23807
23826
|
this.searchLists(e);
|
|
23808
23827
|
if (!this.isPopupOpen && this.queryString.length >= this.minLength) {
|
|
23809
23828
|
if (!this.isContentEditable(this.inputElement)) {
|
|
23810
|
-
this.
|
|
23829
|
+
this.showPopupWithDebounce();
|
|
23811
23830
|
}
|
|
23812
23831
|
else if (this.isContentEditable(this.inputElement) && this.range &&
|
|
23813
23832
|
this.range.startContainer !== this.inputElement && e.keyCode !== 9) {
|
|
23814
|
-
this.
|
|
23833
|
+
this.showPopupWithDebounce();
|
|
23815
23834
|
}
|
|
23816
23835
|
}
|
|
23817
23836
|
}
|
|
@@ -23849,6 +23868,15 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
23849
23868
|
}
|
|
23850
23869
|
this.isListResetted = false;
|
|
23851
23870
|
};
|
|
23871
|
+
Mention.prototype.showPopupWithDebounce = function () {
|
|
23872
|
+
var _this = this;
|
|
23873
|
+
if (this.minLength > 0 && this.minLength === this.queryString.length) {
|
|
23874
|
+
setTimeout(function () { _this.showPopup(); }, this.debounceDelay);
|
|
23875
|
+
}
|
|
23876
|
+
else {
|
|
23877
|
+
this.showPopup();
|
|
23878
|
+
}
|
|
23879
|
+
};
|
|
23852
23880
|
Mention.prototype.isMatchedText = function () {
|
|
23853
23881
|
var isMatched = false;
|
|
23854
23882
|
for (var i = 0; i < (this.liCollections && this.liCollections.length); i++) {
|