@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
package/dist/global/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* filename: index.d.ts
|
|
3
|
+
* version : 32.1.21
|
|
4
|
+
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
|
+
* Use of this code is subject to the terms of our license.
|
|
6
|
+
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
+
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
+
* applicable laws.
|
|
9
|
+
*/
|
|
1
10
|
import * as _dropdowns from '@syncfusion/ej2-dropdowns';
|
|
2
11
|
|
|
3
12
|
export declare namespace ej {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-dropdowns",
|
|
3
|
-
"version": "32.1.
|
|
3
|
+
"version": "32.1.21",
|
|
4
4
|
"description": "Essential JS 2 DropDown Components",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@syncfusion/ej2-base": "~32.1.19",
|
|
12
12
|
"@syncfusion/ej2-data": "~32.1.19",
|
|
13
|
-
"@syncfusion/ej2-inputs": "~32.1.
|
|
13
|
+
"@syncfusion/ej2-inputs": "~32.1.20",
|
|
14
14
|
"@syncfusion/ej2-lists": "~32.1.19",
|
|
15
15
|
"@syncfusion/ej2-navigations": "~32.1.19",
|
|
16
16
|
"@syncfusion/ej2-notifications": "~32.1.19",
|
|
@@ -262,6 +262,10 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
262
262
|
this.parent.totalItemsCount();
|
|
263
263
|
}
|
|
264
264
|
if (isListUpdated) {
|
|
265
|
+
if (this.component === 'multiselect' && this.parent.itemCount * 2 > this.parent.totalItemCount) {
|
|
266
|
+
this.parent.viewPortInfo.endIndex = endIndex = this.parent.totalItemCount;
|
|
267
|
+
this.parent.isVirtualTrackHeight = true;
|
|
268
|
+
}
|
|
265
269
|
for (var i = this.parent.viewPortInfo.startIndex; i < endIndex; i++) {
|
|
266
270
|
var index = i;
|
|
267
271
|
if (this.component === 'multiselect' && this.parent.mode === 'CheckBox') {
|
|
@@ -875,8 +875,10 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
875
875
|
for (var queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
|
|
876
876
|
if (_this.getModuleName() === 'multiselect' && _this.isCheckBoxSelection && (newQuery.queries[queryElements].e && (newQuery.queries[queryElements].e.operator === 'notequal' ||
|
|
877
877
|
newQuery.queries[queryElements].e.operator === 'equal' || newQuery.queries[queryElements].e.condition === 'or' || newQuery.queries[queryElements].e.condition === 'and') && !_this.isCustomFiltering)) {
|
|
878
|
-
|
|
879
|
-
|
|
878
|
+
if (_this.totalItemCount > (_this.itemCount * 2)) {
|
|
879
|
+
isReOrder = false;
|
|
880
|
+
break;
|
|
881
|
+
}
|
|
880
882
|
}
|
|
881
883
|
if (newQuery.queries[queryElements].fn === 'onTake') {
|
|
882
884
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -132,6 +132,7 @@ export declare class DropDownList extends DropDownBase implements IInput {
|
|
|
132
132
|
private isUpdateFooterHeight;
|
|
133
133
|
private filterArgs;
|
|
134
134
|
private isReactTemplateUpdate;
|
|
135
|
+
private iOSscrollPosition;
|
|
135
136
|
/**
|
|
136
137
|
* Sets CSS classes to the root element of the component that allows customization of appearance.
|
|
137
138
|
*
|
|
@@ -2617,6 +2617,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
var args = { cancel: false };
|
|
2619
2619
|
this.trigger('beforeOpen', args, function (args) {
|
|
2620
|
+
_this.iOSscrollPosition = { x: document.documentElement.scrollLeft, y: document.documentElement.scrollTop };
|
|
2620
2621
|
var initialPopupHeight;
|
|
2621
2622
|
if (!args.cancel) {
|
|
2622
2623
|
var popupEle_1 = _this.createElement('div', {
|
|
@@ -2839,6 +2840,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2839
2840
|
}
|
|
2840
2841
|
}, 15);
|
|
2841
2842
|
}
|
|
2843
|
+
if (_this.allowFiltering && _this.isDeviceFullScreen && Browser.isDevice && Browser.isIos) {
|
|
2844
|
+
document.documentElement.scrollIntoView();
|
|
2845
|
+
}
|
|
2842
2846
|
}
|
|
2843
2847
|
else {
|
|
2844
2848
|
_this.beforePopupOpen = false;
|
|
@@ -3377,6 +3381,12 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
3377
3381
|
_this.fixedHeaderElement = null;
|
|
3378
3382
|
}
|
|
3379
3383
|
if (!eventArgs.cancel) {
|
|
3384
|
+
if (_this.isPopupOpen && _this.allowFiltering && _this.isDeviceFullScreen && Browser.isDevice && Browser.isIos) {
|
|
3385
|
+
document.documentElement.scrollTo({
|
|
3386
|
+
top: _this.iOSscrollPosition.y,
|
|
3387
|
+
left: _this.iOSscrollPosition.x
|
|
3388
|
+
});
|
|
3389
|
+
}
|
|
3380
3390
|
if (_this.getModuleName() === 'autocomplete') {
|
|
3381
3391
|
_this.rippleFun();
|
|
3382
3392
|
}
|
|
@@ -2372,7 +2372,10 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2372
2372
|
selectedValues = selectedValues.filter(function (selectedValue) {
|
|
2373
2373
|
var nodeData = _this.treeObj.getTreeData(selectedValue);
|
|
2374
2374
|
if (Array.isArray(nodeData)) {
|
|
2375
|
-
return nodeData.every(function (nodeSelectedData) {
|
|
2375
|
+
return nodeData.every(function (nodeSelectedData) {
|
|
2376
|
+
return nodeSelectedData.selected === true ||
|
|
2377
|
+
_this.selectedData.some(function (sel) { return sel.id === String(nodeSelectedData[_this.fields.value]); });
|
|
2378
|
+
});
|
|
2376
2379
|
}
|
|
2377
2380
|
return true;
|
|
2378
2381
|
});
|
package/src/mention/mention.d.ts
CHANGED
|
@@ -377,6 +377,7 @@ export declare class Mention extends DropDownBase {
|
|
|
377
377
|
private isSelectFocusItem;
|
|
378
378
|
private unBindCommonEvent;
|
|
379
379
|
private onKeyUp;
|
|
380
|
+
private showPopupWithDebounce;
|
|
380
381
|
private isMatchedText;
|
|
381
382
|
private getCurrentRange;
|
|
382
383
|
protected performFiltering(e: KeyboardEventArgs | MouseEvent): void;
|
package/src/mention/mention.js
CHANGED
|
@@ -430,11 +430,11 @@ var Mention = /** @class */ (function (_super) {
|
|
|
430
430
|
this.searchLists(e);
|
|
431
431
|
if (!this.isPopupOpen && this.queryString.length >= this.minLength) {
|
|
432
432
|
if (!this.isContentEditable(this.inputElement)) {
|
|
433
|
-
this.
|
|
433
|
+
this.showPopupWithDebounce();
|
|
434
434
|
}
|
|
435
435
|
else if (this.isContentEditable(this.inputElement) && this.range &&
|
|
436
436
|
this.range.startContainer !== this.inputElement && e.keyCode !== 9) {
|
|
437
|
-
this.
|
|
437
|
+
this.showPopupWithDebounce();
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
}
|
|
@@ -472,6 +472,15 @@ var Mention = /** @class */ (function (_super) {
|
|
|
472
472
|
}
|
|
473
473
|
this.isListResetted = false;
|
|
474
474
|
};
|
|
475
|
+
Mention.prototype.showPopupWithDebounce = function () {
|
|
476
|
+
var _this = this;
|
|
477
|
+
if (this.minLength > 0 && this.minLength === this.queryString.length) {
|
|
478
|
+
setTimeout(function () { _this.showPopup(); }, this.debounceDelay);
|
|
479
|
+
}
|
|
480
|
+
else {
|
|
481
|
+
this.showPopup();
|
|
482
|
+
}
|
|
483
|
+
};
|
|
475
484
|
Mention.prototype.isMatchedText = function () {
|
|
476
485
|
var isMatched = false;
|
|
477
486
|
for (var i = 0; i < (this.liCollections && this.liCollections.length); i++) {
|
|
@@ -5867,7 +5867,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
5867
5867
|
if (_this.hideSelectedItem && _this.value && Array.isArray(_this.value) && _this.value.length > 0) {
|
|
5868
5868
|
_this.totalItemsCount();
|
|
5869
5869
|
}
|
|
5870
|
-
if (!_this.preventSetCurrentData &&
|
|
5870
|
+
if (!_this.preventSetCurrentData &&
|
|
5871
5871
|
!isNullOrUndefined(_this.viewPortInfo.startIndex) &&
|
|
5872
5872
|
!isNullOrUndefined(_this.viewPortInfo.endIndex)) {
|
|
5873
5873
|
_this.notify('setCurrentViewDataAsync', {
|
|
@@ -2928,7 +2928,7 @@ ejs-listbox {
|
|
|
2928
2928
|
.e-listbox-container.e-list-template .e-list-item.e-selected .e-list-content,
|
|
2929
2929
|
.e-listboxtool-wrapper.e-list-template .e-list-item.e-selected .e-list-item-header,
|
|
2930
2930
|
.e-listboxtool-wrapper.e-list-template .e-list-item.e-selected .e-list-content {
|
|
2931
|
-
color:
|
|
2931
|
+
color: var(--color-sf-content-text-color-selected);
|
|
2932
2932
|
}
|
|
2933
2933
|
.e-listbox-wrapper.e-rtl.e-list-template .e-list-wrapper.e-list-avatar .e-avatar,
|
|
2934
2934
|
.e-listbox-container.e-rtl.e-list-template .e-list-wrapper.e-list-avatar .e-avatar,
|
package/styles/bootstrap5.3.css
CHANGED
|
@@ -3539,7 +3539,7 @@ ejs-listbox {
|
|
|
3539
3539
|
.e-listbox-container.e-list-template .e-list-item.e-selected .e-list-content,
|
|
3540
3540
|
.e-listboxtool-wrapper.e-list-template .e-list-item.e-selected .e-list-item-header,
|
|
3541
3541
|
.e-listboxtool-wrapper.e-list-template .e-list-item.e-selected .e-list-content {
|
|
3542
|
-
color:
|
|
3542
|
+
color: var(--color-sf-content-text-color-selected);
|
|
3543
3543
|
}
|
|
3544
3544
|
.e-listbox-wrapper.e-rtl.e-list-template .e-list-wrapper.e-list-avatar .e-avatar,
|
|
3545
3545
|
.e-listbox-container.e-rtl.e-list-template .e-list-wrapper.e-list-avatar .e-avatar,
|
|
@@ -102,8 +102,8 @@ $listbox-border-right-color: transparent !default;
|
|
|
102
102
|
$listbox-border-left-color: transparent !default;
|
|
103
103
|
$listbox-text-hover-color: $content-text-color !default;
|
|
104
104
|
$listbox-item-active-bg: $content-bg-color-selected !default;
|
|
105
|
-
$listbox-text-active-color: rgba($content-text-color, .87) !default;
|
|
106
105
|
$listbox-text-selected-color: $content-text-color-selected !default;
|
|
106
|
+
$listbox-text-active-color: $listbox-text-selected-color !default;
|
|
107
107
|
$listbox-header-text-color: $content-text-color-alt2 !default;
|
|
108
108
|
$listbox-header-text-disabled: $content-text-color-disabled !default;
|
|
109
109
|
$listbox-header-bg: $content-bg-color-alt2 !default;
|
|
@@ -842,7 +842,7 @@ ejs-listbox {
|
|
|
842
842
|
.e-listbox-container.e-list-template .e-list-item.e-selected .e-list-content,
|
|
843
843
|
.e-listboxtool-wrapper.e-list-template .e-list-item.e-selected .e-list-item-header,
|
|
844
844
|
.e-listboxtool-wrapper.e-list-template .e-list-item.e-selected .e-list-content {
|
|
845
|
-
color:
|
|
845
|
+
color: var(--color-sf-content-text-color-selected);
|
|
846
846
|
}
|
|
847
847
|
.e-listbox-wrapper.e-rtl.e-list-template .e-list-wrapper.e-list-avatar .e-avatar,
|
|
848
848
|
.e-listbox-container.e-rtl.e-list-template .e-list-wrapper.e-list-avatar .e-avatar,
|