@syncfusion/ej2-dropdowns 32.2.9 → 33.1.46
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 +450 -124
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +425 -99
- 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 +8 -8
- package/src/combo-box/combo-box.js +3 -0
- package/src/common/virtual-scroll.d.ts +1 -0
- package/src/common/virtual-scroll.js +18 -2
- package/src/drop-down-base/drop-down-base.d.ts +2 -0
- package/src/drop-down-base/drop-down-base.js +48 -0
- package/src/drop-down-list/drop-down-list.js +98 -14
- package/src/drop-down-tree/drop-down-tree-model.d.ts +1 -1
- package/src/drop-down-tree/drop-down-tree.d.ts +1 -1
- package/src/mention/mention.js +8 -4
- package/src/multi-select/float-label.js +8 -2
- package/src/multi-select/multi-select.d.ts +2 -0
- package/src/multi-select/multi-select.js +242 -77
- package/styles/bds-lite.css +17 -9
- package/styles/bds.css +29 -15
- package/styles/bootstrap-dark-lite.css +17 -9
- package/styles/bootstrap-dark.css +27 -14
- package/styles/bootstrap-lite.css +17 -9
- package/styles/bootstrap.css +27 -14
- package/styles/bootstrap4-lite.css +17 -9
- package/styles/bootstrap4.css +27 -14
- package/styles/bootstrap5-dark-lite.css +17 -9
- package/styles/bootstrap5-dark.css +27 -14
- package/styles/bootstrap5-lite.css +17 -9
- package/styles/bootstrap5.3-lite.css +19 -9
- package/styles/bootstrap5.3.css +29 -14
- package/styles/bootstrap5.css +27 -14
- package/styles/drop-down-base/_bds-definition.scss +2 -2
- package/styles/drop-down-base/_bigger.scss +3 -3
- package/styles/drop-down-base/_bootstrap-dark-definition.scss +3 -3
- package/styles/drop-down-base/_bootstrap-definition.scss +3 -3
- package/styles/drop-down-base/_bootstrap4-definition.scss +3 -3
- package/styles/drop-down-base/_bootstrap5-dark-definition.scss +3 -3
- package/styles/drop-down-base/_bootstrap5-definition.scss +3 -3
- package/styles/drop-down-base/_bootstrap5.3-definition.scss +6 -3
- package/styles/drop-down-base/_fabric-dark-definition.scss +3 -3
- package/styles/drop-down-base/_fabric-definition.scss +3 -3
- package/styles/drop-down-base/_fluent-dark-definition.scss +3 -3
- package/styles/drop-down-base/_fluent-definition.scss +3 -3
- package/styles/drop-down-base/_fluent2-definition.scss +8 -5
- package/styles/drop-down-base/_fusionnew-definition.scss +2 -2
- package/styles/drop-down-base/_highcontrast-definition.scss +3 -3
- package/styles/drop-down-base/_highcontrast-light-definition.scss +3 -3
- package/styles/drop-down-base/_layout.scss +12 -1
- package/styles/drop-down-base/_material-dark-definition.scss +2 -2
- package/styles/drop-down-base/_material-definition.scss +2 -2
- package/styles/drop-down-base/_material3-dark-definition.scss +6 -4
- package/styles/drop-down-base/_material3-definition.scss +6 -4
- package/styles/drop-down-base/_tailwind-dark-definition.scss +4 -4
- package/styles/drop-down-base/_tailwind-definition.scss +4 -4
- package/styles/drop-down-base/_tailwind3-definition.scss +5 -2
- package/styles/drop-down-base/_theme.scss +6 -0
- package/styles/drop-down-base/bds.css +21 -11
- package/styles/drop-down-base/bootstrap-dark.css +19 -10
- package/styles/drop-down-base/bootstrap.css +19 -10
- package/styles/drop-down-base/bootstrap4.css +19 -10
- package/styles/drop-down-base/bootstrap5-dark.css +19 -10
- package/styles/drop-down-base/bootstrap5.3.css +21 -10
- package/styles/drop-down-base/bootstrap5.css +19 -10
- package/styles/drop-down-base/fabric-dark.css +19 -10
- package/styles/drop-down-base/fabric.css +19 -10
- package/styles/drop-down-base/fluent-dark.css +19 -10
- package/styles/drop-down-base/fluent.css +19 -10
- package/styles/drop-down-base/fluent2.css +28 -12
- package/styles/drop-down-base/highcontrast-light.css +19 -10
- package/styles/drop-down-base/highcontrast.css +19 -10
- package/styles/drop-down-base/material-dark.css +17 -9
- package/styles/drop-down-base/material.css +17 -9
- package/styles/drop-down-base/material3-dark.css +19 -9
- package/styles/drop-down-base/material3.css +19 -9
- package/styles/drop-down-base/tailwind-dark.css +21 -11
- package/styles/drop-down-base/tailwind.css +21 -11
- package/styles/drop-down-base/tailwind3.css +19 -9
- package/styles/drop-down-list/bds.css +4 -2
- package/styles/drop-down-list/bootstrap-dark.css +4 -2
- package/styles/drop-down-list/bootstrap.css +4 -2
- package/styles/drop-down-list/bootstrap4.css +4 -2
- package/styles/drop-down-list/bootstrap5-dark.css +4 -2
- package/styles/drop-down-list/bootstrap5.3.css +4 -2
- package/styles/drop-down-list/bootstrap5.css +4 -2
- package/styles/drop-down-list/fabric-dark.css +4 -2
- package/styles/drop-down-list/fabric.css +4 -2
- package/styles/drop-down-list/fluent-dark.css +4 -2
- package/styles/drop-down-list/fluent.css +4 -2
- package/styles/drop-down-list/fluent2.css +4 -2
- package/styles/drop-down-list/highcontrast-light.css +4 -2
- package/styles/drop-down-list/highcontrast.css +4 -2
- package/styles/drop-down-list/material-dark.css +4 -2
- package/styles/drop-down-list/material.css +4 -2
- package/styles/drop-down-list/material3-dark.css +4 -2
- package/styles/drop-down-list/material3.css +4 -2
- package/styles/drop-down-list/tailwind-dark.css +4 -2
- package/styles/drop-down-list/tailwind.css +4 -2
- package/styles/drop-down-list/tailwind3.css +4 -2
- package/styles/drop-down-tree/bds.css +4 -2
- package/styles/drop-down-tree/bootstrap-dark.css +4 -2
- package/styles/drop-down-tree/bootstrap.css +4 -2
- package/styles/drop-down-tree/bootstrap4.css +4 -2
- package/styles/drop-down-tree/bootstrap5-dark.css +4 -2
- package/styles/drop-down-tree/bootstrap5.3.css +4 -2
- package/styles/drop-down-tree/bootstrap5.css +4 -2
- package/styles/drop-down-tree/fabric-dark.css +4 -2
- package/styles/drop-down-tree/fabric.css +4 -2
- package/styles/drop-down-tree/fluent-dark.css +4 -2
- package/styles/drop-down-tree/fluent.css +4 -2
- package/styles/drop-down-tree/fluent2.css +4 -2
- package/styles/drop-down-tree/highcontrast-light.css +4 -2
- package/styles/drop-down-tree/highcontrast.css +4 -2
- package/styles/drop-down-tree/material-dark.css +4 -2
- package/styles/drop-down-tree/material.css +4 -2
- package/styles/drop-down-tree/material3-dark.css +4 -2
- package/styles/drop-down-tree/material3.css +4 -2
- package/styles/drop-down-tree/tailwind-dark.css +4 -2
- package/styles/drop-down-tree/tailwind.css +4 -2
- package/styles/drop-down-tree/tailwind3.css +4 -2
- package/styles/fabric-dark-lite.css +17 -9
- package/styles/fabric-dark.css +27 -14
- package/styles/fabric-lite.css +17 -9
- package/styles/fabric.css +27 -14
- package/styles/fluent-dark-lite.css +17 -9
- package/styles/fluent-dark.css +27 -14
- package/styles/fluent-lite.css +17 -9
- package/styles/fluent.css +27 -14
- package/styles/fluent2-lite.css +24 -10
- package/styles/fluent2.css +36 -16
- package/styles/highcontrast-light-lite.css +17 -9
- package/styles/highcontrast-light.css +27 -14
- package/styles/highcontrast-lite.css +17 -9
- package/styles/highcontrast.css +27 -14
- package/styles/list-box/bds.css +4 -2
- package/styles/list-box/bootstrap-dark.css +4 -2
- package/styles/list-box/bootstrap.css +4 -2
- package/styles/list-box/bootstrap4.css +4 -2
- package/styles/list-box/bootstrap5-dark.css +4 -2
- package/styles/list-box/bootstrap5.3.css +4 -2
- package/styles/list-box/bootstrap5.css +4 -2
- package/styles/list-box/fabric-dark.css +4 -2
- package/styles/list-box/fabric.css +4 -2
- package/styles/list-box/fluent-dark.css +4 -2
- package/styles/list-box/fluent.css +4 -2
- package/styles/list-box/fluent2.css +4 -2
- package/styles/list-box/highcontrast-light.css +4 -2
- package/styles/list-box/highcontrast.css +4 -2
- package/styles/list-box/material-dark.css +4 -2
- package/styles/list-box/material.css +4 -2
- package/styles/list-box/material3-dark.css +4 -2
- package/styles/list-box/material3.css +4 -2
- package/styles/list-box/tailwind-dark.css +4 -2
- package/styles/list-box/tailwind.css +4 -2
- package/styles/list-box/tailwind3.css +4 -2
- package/styles/material-dark-lite.css +17 -9
- package/styles/material-dark.css +25 -13
- package/styles/material-lite.css +17 -9
- package/styles/material.css +25 -13
- package/styles/material3-dark-lite.css +19 -9
- package/styles/material3-dark.css +27 -13
- package/styles/material3-lite.css +19 -9
- package/styles/material3.css +27 -13
- package/styles/mention/bds.css +4 -2
- package/styles/mention/bootstrap-dark.css +4 -2
- package/styles/mention/bootstrap.css +4 -2
- package/styles/mention/bootstrap4.css +4 -2
- package/styles/mention/bootstrap5-dark.css +4 -2
- package/styles/mention/bootstrap5.3.css +4 -2
- package/styles/mention/bootstrap5.css +4 -2
- package/styles/mention/fabric-dark.css +4 -2
- package/styles/mention/fabric.css +4 -2
- package/styles/mention/fluent-dark.css +4 -2
- package/styles/mention/fluent.css +4 -2
- package/styles/mention/fluent2.css +4 -2
- package/styles/mention/highcontrast-light.css +4 -2
- package/styles/mention/highcontrast.css +4 -2
- package/styles/mention/material-dark.css +4 -2
- package/styles/mention/material.css +4 -2
- package/styles/mention/material3-dark.css +4 -2
- package/styles/mention/material3.css +4 -2
- package/styles/mention/tailwind-dark.css +4 -2
- package/styles/mention/tailwind.css +4 -2
- package/styles/mention/tailwind3.css +4 -2
- package/styles/multi-select/bds.css +12 -6
- package/styles/multi-select/bootstrap-dark.css +12 -6
- package/styles/multi-select/bootstrap.css +12 -6
- package/styles/multi-select/bootstrap4.css +12 -6
- package/styles/multi-select/bootstrap5-dark.css +12 -6
- package/styles/multi-select/bootstrap5.3.css +12 -6
- package/styles/multi-select/bootstrap5.css +12 -6
- package/styles/multi-select/fabric-dark.css +12 -6
- package/styles/multi-select/fabric.css +12 -6
- package/styles/multi-select/fluent-dark.css +12 -6
- package/styles/multi-select/fluent.css +12 -6
- package/styles/multi-select/fluent2.css +12 -6
- package/styles/multi-select/highcontrast-light.css +12 -6
- package/styles/multi-select/highcontrast.css +12 -6
- package/styles/multi-select/material-dark.css +12 -6
- package/styles/multi-select/material.css +12 -6
- package/styles/multi-select/material3-dark.css +12 -6
- package/styles/multi-select/material3.css +12 -6
- package/styles/multi-select/tailwind-dark.css +12 -6
- package/styles/multi-select/tailwind.css +12 -6
- package/styles/multi-select/tailwind3.css +12 -6
- package/styles/tailwind-dark-lite.css +17 -9
- package/styles/tailwind-dark.css +29 -15
- package/styles/tailwind-lite.css +17 -9
- package/styles/tailwind.css +29 -15
- package/styles/tailwind3-lite.css +19 -9
- package/styles/tailwind3.css +27 -13
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 33.1.46
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-dropdowns",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "33.1.46",
|
|
4
4
|
"description": "Essential JS 2 DropDown Components",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"module": "./index.js",
|
|
9
9
|
"es2015": "./dist/es6/ej2-dropdowns.es5.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@syncfusion/ej2-base": "~
|
|
12
|
-
"@syncfusion/ej2-data": "~
|
|
13
|
-
"@syncfusion/ej2-inputs": "~
|
|
14
|
-
"@syncfusion/ej2-lists": "~
|
|
15
|
-
"@syncfusion/ej2-navigations": "~
|
|
16
|
-
"@syncfusion/ej2-notifications": "~
|
|
17
|
-
"@syncfusion/ej2-popups": "~
|
|
11
|
+
"@syncfusion/ej2-base": "~33.1.45",
|
|
12
|
+
"@syncfusion/ej2-data": "~33.1.45",
|
|
13
|
+
"@syncfusion/ej2-inputs": "~33.1.44",
|
|
14
|
+
"@syncfusion/ej2-lists": "~33.1.44",
|
|
15
|
+
"@syncfusion/ej2-navigations": "~33.1.46",
|
|
16
|
+
"@syncfusion/ej2-notifications": "~33.1.44",
|
|
17
|
+
"@syncfusion/ej2-popups": "~33.1.44"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {},
|
|
20
20
|
"keywords": [
|
|
@@ -841,6 +841,9 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
841
841
|
break;
|
|
842
842
|
case 'allowCustom':
|
|
843
843
|
break;
|
|
844
|
+
case 'placeholder':
|
|
845
|
+
Input.setPlaceholder(newProp.placeholder, this.inputElement, this.getModuleName());
|
|
846
|
+
break;
|
|
844
847
|
default: {
|
|
845
848
|
// eslint-disable-next-line max-len
|
|
846
849
|
var comboProps = this.getPropObject(prop, newProp, oldProp);
|
|
@@ -104,7 +104,8 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
104
104
|
this.touchModule = new Touch(this.parent.popupContentElement, {
|
|
105
105
|
scroll: this.popupScrollHandler.bind(this)
|
|
106
106
|
});
|
|
107
|
-
|
|
107
|
+
this.scrollHandler = this.virtualScrollHandler(callback);
|
|
108
|
+
EventHandler.add(this.parent.popupContentElement, 'scroll', this.scrollHandler, this);
|
|
108
109
|
};
|
|
109
110
|
VirtualScroll.prototype.getModuleName = function () {
|
|
110
111
|
return 'VirtualScroll';
|
|
@@ -243,6 +244,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
243
244
|
this.parent.resetList(this.parent.dataSource, this.parent.fields, query);
|
|
244
245
|
isListUpdated = false;
|
|
245
246
|
this.parent.appendUncheckList = this.parent.dataSource instanceof DataManager ? this.parent.appendUncheckList : false;
|
|
247
|
+
oldUlElement = null;
|
|
246
248
|
}
|
|
247
249
|
}
|
|
248
250
|
else {
|
|
@@ -258,11 +260,12 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
258
260
|
this.parent.setCurrentView = false;
|
|
259
261
|
this.parent.resetList(this.parent.dataSource, this.parent.fields, query);
|
|
260
262
|
isListUpdated = false;
|
|
263
|
+
reOrderList = null;
|
|
261
264
|
}
|
|
262
265
|
this.parent.totalItemsCount();
|
|
263
266
|
}
|
|
264
267
|
if (isListUpdated) {
|
|
265
|
-
if (this.component === 'multiselect' && this.parent.itemCount * 2 > this.parent.totalItemCount) {
|
|
268
|
+
if (this.component === 'multiselect' && this.parent.itemCount * 2 > this.parent.totalItemCount && !(this.parent.dataSource instanceof DataManager)) {
|
|
266
269
|
this.parent.viewPortInfo.endIndex = endIndex = this.parent.totalItemCount;
|
|
267
270
|
this.parent.isVirtualTrackHeight = true;
|
|
268
271
|
}
|
|
@@ -273,6 +276,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
273
276
|
if (oldUlElement) {
|
|
274
277
|
this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(oldUlElement);
|
|
275
278
|
}
|
|
279
|
+
oldUlElement = null;
|
|
276
280
|
}
|
|
277
281
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
278
282
|
var alreadyAddedData = this.parent.generatedDataObject[index];
|
|
@@ -606,6 +610,18 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
606
610
|
};
|
|
607
611
|
};
|
|
608
612
|
VirtualScroll.prototype.destroy = function () {
|
|
613
|
+
if (this.parent.popupContentElement) {
|
|
614
|
+
EventHandler.remove(this.parent.popupContentElement, 'wheel mousedown', this.popupScrollHandler);
|
|
615
|
+
EventHandler.remove(this.parent.popupContentElement, 'scroll', this.scrollHandler);
|
|
616
|
+
}
|
|
617
|
+
// Destroy touch module
|
|
618
|
+
if (this.touchModule) {
|
|
619
|
+
this.touchModule.destroy();
|
|
620
|
+
this.touchModule = null;
|
|
621
|
+
}
|
|
622
|
+
// Clear references
|
|
623
|
+
this.containerElementRect = null;
|
|
624
|
+
this.scrollHandler = null;
|
|
609
625
|
this.removeEventListener();
|
|
610
626
|
};
|
|
611
627
|
return VirtualScroll;
|
|
@@ -302,6 +302,7 @@ export declare class DropDownBase extends Component<HTMLElement> implements INot
|
|
|
302
302
|
protected isPrimitiveData: boolean;
|
|
303
303
|
protected isCustomFiltering: boolean;
|
|
304
304
|
protected debounceTimer: ReturnType<typeof setTimeout> | null;
|
|
305
|
+
private skeletonInstances;
|
|
305
306
|
protected virtualListInfo: VirtualInfo;
|
|
306
307
|
protected viewPortInfo: VirtualInfo;
|
|
307
308
|
protected selectedValueInfo: VirtualInfo;
|
|
@@ -532,6 +533,7 @@ export declare class DropDownBase extends Component<HTMLElement> implements INot
|
|
|
532
533
|
protected GetVirtualTrackHeight(): string;
|
|
533
534
|
protected getTransformValues(): string;
|
|
534
535
|
protected UpdateSkeleton(isSkeletonCountChange?: boolean, skeletonCount?: number): void;
|
|
536
|
+
protected destroySkeletons(): void;
|
|
535
537
|
protected getLocaleName(): string;
|
|
536
538
|
protected getTextByValue(value: string | number | boolean): string;
|
|
537
539
|
protected getFormattedValue(value: string): string | number | boolean;
|
|
@@ -385,6 +385,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
+
ele = null;
|
|
388
389
|
};
|
|
389
390
|
DropDownBase.prototype.checkAndResetCache = function () {
|
|
390
391
|
if (this.isVirtualizationEnabled) {
|
|
@@ -481,12 +482,21 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
481
482
|
translateY = translateY - (this.skeletonCount * this.listItemHeight);
|
|
482
483
|
translateY = ((this.viewPortInfo.startIndex === 0 && this.listData && this.listData.length === 0) ||
|
|
483
484
|
this.skeletonCount === 0) ? 0 : translateY;
|
|
485
|
+
var virtualElement = this.list.getElementsByClassName('e-virtual-ddl')[0];
|
|
486
|
+
var style = virtualElement && virtualElement.style && virtualElement.style.height;
|
|
487
|
+
if (this.getModuleName() === 'multiselect' && !isNullOrUndefined(style) && style === '' &&
|
|
488
|
+
this.dataSource instanceof DataManager) {
|
|
489
|
+
translateY = 0;
|
|
490
|
+
}
|
|
484
491
|
var styleText = "transform: translate(0px, " + translateY + "px);";
|
|
485
492
|
return styleText;
|
|
486
493
|
};
|
|
487
494
|
DropDownBase.prototype.UpdateSkeleton = function (isSkeletonCountChange, skeletonCount) {
|
|
488
495
|
var isContainSkeleton = this.list.querySelector('.e-virtual-ddl-content');
|
|
489
496
|
var isContainVirtualList = this.list.querySelector('.e-virtual-list');
|
|
497
|
+
if (!this.skeletonInstances) {
|
|
498
|
+
this.skeletonInstances = [];
|
|
499
|
+
}
|
|
490
500
|
if (isContainSkeleton && (!isContainVirtualList || isSkeletonCountChange) && this.isVirtualizationEnabled) {
|
|
491
501
|
var totalSkeletonCount = isSkeletonCountChange ? skeletonCount : this.skeletonCount;
|
|
492
502
|
for (var i = 0; i < totalSkeletonCount; i++) {
|
|
@@ -500,6 +510,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
500
510
|
width: '95%',
|
|
501
511
|
cssClass: 'e-skeleton-text'
|
|
502
512
|
});
|
|
513
|
+
this.skeletonInstances.push(skeleton);
|
|
503
514
|
skeleton.appendTo(this.createElement('div'));
|
|
504
515
|
liElement.appendChild(skeleton.element);
|
|
505
516
|
if (isContainSkeleton.firstChild) {
|
|
@@ -532,6 +543,16 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
532
543
|
}
|
|
533
544
|
}
|
|
534
545
|
};
|
|
546
|
+
DropDownBase.prototype.destroySkeletons = function () {
|
|
547
|
+
if (this.skeletonInstances && this.skeletonInstances.length > 0) {
|
|
548
|
+
this.skeletonInstances.forEach(function (skeleton) {
|
|
549
|
+
if (skeleton && !skeleton.isDestroyed) {
|
|
550
|
+
skeleton.destroy();
|
|
551
|
+
}
|
|
552
|
+
});
|
|
553
|
+
this.skeletonInstances = [];
|
|
554
|
+
}
|
|
555
|
+
};
|
|
535
556
|
DropDownBase.prototype.getLocaleName = function () {
|
|
536
557
|
return 'drop-down-base';
|
|
537
558
|
};
|
|
@@ -665,6 +686,8 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
665
686
|
}
|
|
666
687
|
this.updateFields(fields.text, fields.value, isSelectGroupCheck ? fields.groupBy : this.fields.groupBy, this.fields.htmlAttributes, this.fields.iconCss, this.fields.disabled);
|
|
667
688
|
this.resetList(jsonElement, fields);
|
|
689
|
+
element = null;
|
|
690
|
+
group = null;
|
|
668
691
|
};
|
|
669
692
|
DropDownBase.prototype.updateFields = function (text, value, groupBy, htmlAttributes, iconCss, disabled) {
|
|
670
693
|
var field = {
|
|
@@ -1203,6 +1226,12 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1203
1226
|
this.ulElement = this.list.querySelector('ul');
|
|
1204
1227
|
this.postRender(this.list, list, this.bindEvent);
|
|
1205
1228
|
}
|
|
1229
|
+
else if (this.getModuleName() === 'dropdownlist' && this.isVirtualizationEnabled) {
|
|
1230
|
+
this.list.innerHTML = '';
|
|
1231
|
+
this.createVirtualContent();
|
|
1232
|
+
this.list.querySelector('.e-virtual-ddl-content').appendChild(ulElement);
|
|
1233
|
+
this.updateListElements(this.listData);
|
|
1234
|
+
}
|
|
1206
1235
|
}
|
|
1207
1236
|
if (this.getModuleName() === 'multiselect' && this.isAngular && this.ngEle) {
|
|
1208
1237
|
var popupHolder_1 = this.list;
|
|
@@ -1460,6 +1489,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1460
1489
|
}
|
|
1461
1490
|
this.fixedHeaderElement.innerHTML = groupData.innerHTML;
|
|
1462
1491
|
this.renderGroupTemplate(this.fixedHeaderElement);
|
|
1492
|
+
groupData = null;
|
|
1463
1493
|
};
|
|
1464
1494
|
DropDownBase.prototype.updateGroupFixedHeader = function (element, target) {
|
|
1465
1495
|
if (this.fixedHeaderElement && this.list && this.list.parentElement) {
|
|
@@ -1580,6 +1610,8 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1580
1610
|
this.list.querySelector('.e-virtual-ddl-content').appendChild(ulElement);
|
|
1581
1611
|
this.updateListElements(listData);
|
|
1582
1612
|
}
|
|
1613
|
+
oldUlElement = null;
|
|
1614
|
+
virtualUlElement = null;
|
|
1583
1615
|
}
|
|
1584
1616
|
}
|
|
1585
1617
|
return ulElement;
|
|
@@ -2110,6 +2142,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
2110
2142
|
this.updateSelection();
|
|
2111
2143
|
}
|
|
2112
2144
|
this.addedNewItem = true;
|
|
2145
|
+
liCollections = null;
|
|
2113
2146
|
};
|
|
2114
2147
|
/**
|
|
2115
2148
|
* Checks if the given HTML element is disabled.
|
|
@@ -2227,13 +2260,28 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
2227
2260
|
detach(this.list);
|
|
2228
2261
|
}
|
|
2229
2262
|
}
|
|
2263
|
+
if (this.generatedDataObject) {
|
|
2264
|
+
this.generatedDataObject = {};
|
|
2265
|
+
}
|
|
2266
|
+
this.destroySkeletons();
|
|
2230
2267
|
this.liCollections = null;
|
|
2268
|
+
this.incrementalLiCollections = null;
|
|
2269
|
+
this.incrementalUlElement = null;
|
|
2231
2270
|
this.ulElement = null;
|
|
2271
|
+
this.fixedHeaderElement = null;
|
|
2232
2272
|
this.list = null;
|
|
2273
|
+
this.item = null;
|
|
2233
2274
|
this.enableRtlElements = null;
|
|
2234
2275
|
this.groupHeaderItems = null;
|
|
2235
2276
|
this.fiteredGroupHeaderItems = null;
|
|
2236
2277
|
this.rippleFun = null;
|
|
2278
|
+
this.popupContentElement = null;
|
|
2279
|
+
this.virtualListInfo = null;
|
|
2280
|
+
this.viewPortInfo = null;
|
|
2281
|
+
this.selectedValueInfo = null;
|
|
2282
|
+
this.virtualGroupDataSource = null;
|
|
2283
|
+
this.virtualSelectAllData = null;
|
|
2284
|
+
this.incrementalListData = null;
|
|
2237
2285
|
_super.prototype.destroy.call(this);
|
|
2238
2286
|
};
|
|
2239
2287
|
__decorate([
|
|
@@ -197,6 +197,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
197
197
|
else if (floatElement) {
|
|
198
198
|
classList(floatElement, ['e-label-bottom'], ['e-label-top']);
|
|
199
199
|
}
|
|
200
|
+
floatElement = null;
|
|
200
201
|
}
|
|
201
202
|
};
|
|
202
203
|
DropDownList.prototype.resetHandler = function (e) {
|
|
@@ -477,6 +478,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
477
478
|
else {
|
|
478
479
|
this.setSelection(element, null);
|
|
479
480
|
}
|
|
481
|
+
element = null;
|
|
480
482
|
}
|
|
481
483
|
else {
|
|
482
484
|
this.setSelection(this.liCollections[this.activeIndex], null);
|
|
@@ -525,6 +527,11 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
525
527
|
this.isActive = false;
|
|
526
528
|
this.beforePopupOpen = false;
|
|
527
529
|
}
|
|
530
|
+
// Cancel any pending debounced filtering when focus leaves the component.
|
|
531
|
+
if (this.debounceTimer !== null) {
|
|
532
|
+
clearTimeout(this.debounceTimer);
|
|
533
|
+
this.debounceTimer = null;
|
|
534
|
+
}
|
|
528
535
|
this.isFocused = false;
|
|
529
536
|
};
|
|
530
537
|
DropDownList.prototype.focusOutAction = function (e) {
|
|
@@ -633,7 +640,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
633
640
|
if (formElement) {
|
|
634
641
|
EventHandler.remove(formElement, 'reset', this.resetValueHandler);
|
|
635
642
|
}
|
|
636
|
-
if (!Browser.isDevice) {
|
|
643
|
+
if (!Browser.isDevice && !isNullOrUndefined(this.keyboardModule)) {
|
|
637
644
|
this.keyboardModule.destroy();
|
|
638
645
|
}
|
|
639
646
|
if (this.showClearButton) {
|
|
@@ -754,10 +761,12 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
754
761
|
var delay = 100;
|
|
755
762
|
this.closePopup(delay, e);
|
|
756
763
|
}
|
|
764
|
+
li = null;
|
|
757
765
|
};
|
|
758
766
|
DropDownList.prototype.onMouseOver = function (e) {
|
|
759
767
|
var currentLi = closest(e.target, '.' + dropDownBaseClasses.li);
|
|
760
768
|
this.setHover(currentLi);
|
|
769
|
+
currentLi = null;
|
|
761
770
|
};
|
|
762
771
|
DropDownList.prototype.setHover = function (li) {
|
|
763
772
|
if (this.enabled && this.isValidLI(li) && !li.classList.contains(dropDownBaseClasses.hover)) {
|
|
@@ -895,6 +904,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
895
904
|
this.list.getElementsByClassName('e-virtual-ddl-content')[0].style = this.getTransformValues();
|
|
896
905
|
this.list.scrollTop = 0;
|
|
897
906
|
}
|
|
907
|
+
li = null;
|
|
898
908
|
}
|
|
899
909
|
else {
|
|
900
910
|
var li = void 0;
|
|
@@ -909,6 +919,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
909
919
|
this.setSelection(li, e);
|
|
910
920
|
this.setScrollPosition();
|
|
911
921
|
}
|
|
922
|
+
li = null;
|
|
912
923
|
}
|
|
913
924
|
}
|
|
914
925
|
};
|
|
@@ -1142,6 +1153,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1142
1153
|
this.ulElement = this.list.querySelector('ul');
|
|
1143
1154
|
this.handleVirtualKeyboardActions(e, this.pageCount);
|
|
1144
1155
|
}
|
|
1156
|
+
nextItem = null;
|
|
1145
1157
|
}
|
|
1146
1158
|
if (this.allowFiltering && !this.enableVirtualization && this.getModuleName() !== 'autocomplete') {
|
|
1147
1159
|
var value = this.getItemData().value;
|
|
@@ -1178,6 +1190,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1178
1190
|
this.updateUpDownAction(e);
|
|
1179
1191
|
}
|
|
1180
1192
|
e.preventDefault();
|
|
1193
|
+
focusEle = null;
|
|
1181
1194
|
};
|
|
1182
1195
|
DropDownList.prototype.updateHomeEndAction = function (e, isVirtualKeyAction) {
|
|
1183
1196
|
if (this.getModuleName() === 'dropdownlist') {
|
|
@@ -1298,6 +1311,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1298
1311
|
}
|
|
1299
1312
|
this.hidePopup(e);
|
|
1300
1313
|
this.focusDropDown(e);
|
|
1314
|
+
li = null;
|
|
1301
1315
|
}
|
|
1302
1316
|
else {
|
|
1303
1317
|
this.showPopup();
|
|
@@ -1495,6 +1509,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1495
1509
|
ulElement = ulElement.cloneNode ? ulElement.cloneNode(true) : ulElement;
|
|
1496
1510
|
this.actionCompleteData.ulElement = ulElement;
|
|
1497
1511
|
}
|
|
1512
|
+
ulElement = null;
|
|
1498
1513
|
}
|
|
1499
1514
|
};
|
|
1500
1515
|
DropDownList.prototype.updateSelectedItem = function (li, e, preventSelect, isSelection) {
|
|
@@ -1533,6 +1548,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1533
1548
|
this.setSelectOptions(li, e);
|
|
1534
1549
|
}
|
|
1535
1550
|
}
|
|
1551
|
+
li = null;
|
|
1536
1552
|
};
|
|
1537
1553
|
DropDownList.prototype.selectEventCallback = function (li, e, preventSelect, selectedData, value) {
|
|
1538
1554
|
this.previousItemData = (!isNullOrUndefined(this.itemData)) ? this.itemData : null;
|
|
@@ -1567,6 +1583,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1567
1583
|
}
|
|
1568
1584
|
this.activeIndex = this.getIndexByValue(value);
|
|
1569
1585
|
}
|
|
1586
|
+
focusedItem = null;
|
|
1570
1587
|
};
|
|
1571
1588
|
DropDownList.prototype.activeItem = function (li) {
|
|
1572
1589
|
if (this.isValidLI(li) && !li.classList.contains(dropDownBaseClasses.selected)) {
|
|
@@ -2289,6 +2306,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2289
2306
|
EventHandler.add(this.filterInput, 'keydown', this.onFilterDown, this);
|
|
2290
2307
|
EventHandler.add(this.filterInput, 'blur', this.onBlurHandler, this);
|
|
2291
2308
|
EventHandler.add(this.filterInput, 'paste', this.pasteHandler, this);
|
|
2309
|
+
parentElement = null;
|
|
2292
2310
|
return this.filterInputObj;
|
|
2293
2311
|
}
|
|
2294
2312
|
else {
|
|
@@ -2452,6 +2470,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2452
2470
|
this.activeIndex = this.getIndexByValue(value);
|
|
2453
2471
|
var element = this.findListElement(this.list, 'li', 'data-value', value);
|
|
2454
2472
|
this.selectedLI = element;
|
|
2473
|
+
element = null;
|
|
2455
2474
|
}
|
|
2456
2475
|
else if (this.enableVirtualization && this.getModuleName() === 'autocomplete') {
|
|
2457
2476
|
this.activeIndex = this.skeletonCount;
|
|
@@ -2632,6 +2651,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2632
2651
|
if (!(this.enableVirtualization && isNullOrUndefined(element))) {
|
|
2633
2652
|
this.removeFocus();
|
|
2634
2653
|
}
|
|
2654
|
+
element = null;
|
|
2635
2655
|
};
|
|
2636
2656
|
DropDownList.prototype.updateSelection = function () {
|
|
2637
2657
|
var selectedItem = this.list.querySelector('.' + dropDownBaseClasses.selected);
|
|
@@ -2650,6 +2670,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2650
2670
|
}
|
|
2651
2671
|
this.list.querySelector('.' + dropDownBaseClasses.li).classList.add(dropDownListClasses.focus);
|
|
2652
2672
|
}
|
|
2673
|
+
selectedItem = null;
|
|
2653
2674
|
};
|
|
2654
2675
|
DropDownList.prototype.updateSelectionList = function () {
|
|
2655
2676
|
var selectedItem = this.list && this.list.querySelector('.' + 'e-active');
|
|
@@ -2793,6 +2814,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2793
2814
|
parseInt(getComputedStyle(_this.inputElement).paddingLeft, 10) +
|
|
2794
2815
|
parseInt(getComputedStyle(_this.inputElement.parentElement).borderLeftWidth, 10));
|
|
2795
2816
|
}
|
|
2817
|
+
firstItem = null;
|
|
2796
2818
|
}
|
|
2797
2819
|
_this.createPopup(popupEle_1, offsetValue, left);
|
|
2798
2820
|
_this.popupContentElement = _this.popupObj.element.querySelector('.e-content');
|
|
@@ -3046,6 +3068,8 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
3046
3068
|
}
|
|
3047
3069
|
}
|
|
3048
3070
|
_this.activeStateChange();
|
|
3071
|
+
actionList = null;
|
|
3072
|
+
ulElement = null;
|
|
3049
3073
|
},
|
|
3050
3074
|
targetExitViewport: function () {
|
|
3051
3075
|
if (!Browser.isDevice) {
|
|
@@ -3085,6 +3109,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
3085
3109
|
var clearElement = this.filterInput.parentElement.querySelector('.' + dropDownListClasses.clearIcon);
|
|
3086
3110
|
detach(this.filterInput);
|
|
3087
3111
|
clearElement.parentElement.insertBefore(this.filterInput, clearElement);
|
|
3112
|
+
clearElement = null;
|
|
3088
3113
|
};
|
|
3089
3114
|
DropDownList.prototype.setPopupPosition = function (border) {
|
|
3090
3115
|
var offsetValue;
|
|
@@ -3113,6 +3138,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
3113
3138
|
}
|
|
3114
3139
|
var inputHeight = this.inputWrapper.container.offsetHeight;
|
|
3115
3140
|
offsetValue = offsetValue + liHeight + popupOffset - ((liHeight - inputHeight) / 2);
|
|
3141
|
+
selectedLI = null;
|
|
3142
|
+
firstItem = null;
|
|
3143
|
+
lastItem = null;
|
|
3116
3144
|
return -offsetValue;
|
|
3117
3145
|
};
|
|
3118
3146
|
DropDownList.prototype.setWidth = function () {
|
|
@@ -3127,6 +3155,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
3127
3155
|
width = (parseInt(width, 10) + (parseInt(getComputedStyle(firstItem).textIndent, 10) -
|
|
3128
3156
|
parseInt(getComputedStyle(this.inputElement).paddingLeft, 10) +
|
|
3129
3157
|
parseInt(getComputedStyle(this.inputElement.parentElement).borderLeftWidth, 10)) * 2) + 'px';
|
|
3158
|
+
firstItem = null;
|
|
3130
3159
|
}
|
|
3131
3160
|
return width;
|
|
3132
3161
|
};
|
|
@@ -3383,7 +3412,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
3383
3412
|
EventHandler.remove(this.filterInput, 'blur', this.onBlurHandler);
|
|
3384
3413
|
EventHandler.remove(this.filterInput, 'paste', this.pasteHandler);
|
|
3385
3414
|
}
|
|
3386
|
-
if (this.allowFiltering && this.getModuleName() === 'dropdownlist') {
|
|
3415
|
+
if (this.allowFiltering && !isNullOrUndefined(this.filterInput) && this.getModuleName() === 'dropdownlist') {
|
|
3387
3416
|
this.filterInput.removeAttribute('aria-activedescendant');
|
|
3388
3417
|
this.filterInput.removeAttribute('aria-disabled');
|
|
3389
3418
|
this.filterInput.removeAttribute('role');
|
|
@@ -3391,7 +3420,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
3391
3420
|
this.filterInput.removeAttribute('autocapitalize');
|
|
3392
3421
|
this.filterInput.removeAttribute('spellcheck');
|
|
3393
3422
|
}
|
|
3394
|
-
if (this.filterInput.parentNode) {
|
|
3423
|
+
if (!isNullOrUndefined(this.filterInput) && this.filterInput.parentNode) {
|
|
3395
3424
|
this.filterInput.parentNode.removeChild(this.filterInput);
|
|
3396
3425
|
var attrs = Array.prototype.slice.call(this.filterInput.attributes);
|
|
3397
3426
|
for (var n = 0; n < attrs.length; n++) {
|
|
@@ -3542,6 +3571,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
3542
3571
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3543
3572
|
this.list.getElementsByClassName('e-virtual-ddl-content')[0].style = this.getTransformValues();
|
|
3544
3573
|
}
|
|
3574
|
+
ulElement = null;
|
|
3545
3575
|
};
|
|
3546
3576
|
DropDownList.prototype.destroyPopup = function () {
|
|
3547
3577
|
this.isPopupOpen = false;
|
|
@@ -3580,6 +3610,12 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
3580
3610
|
}
|
|
3581
3611
|
else {
|
|
3582
3612
|
this.inputElement = this.createElement('input', { attrs: { role: 'combobox', type: 'text' } });
|
|
3613
|
+
if (this.element.tagName === this.getNgDirective()) {
|
|
3614
|
+
// Pre-populate id so Input.createInput/createFloatingInput can wire label.for correctly
|
|
3615
|
+
var ngId = this.element.getAttribute('id') ? this.element.getAttribute('id') : getUniqueID('ej2_dropdownlist');
|
|
3616
|
+
this.element.id = ngId;
|
|
3617
|
+
this.inputElement.id = ngId + '_input';
|
|
3618
|
+
}
|
|
3583
3619
|
if (this.element.tagName !== this.getNgDirective()) {
|
|
3584
3620
|
this.element.style.display = 'none';
|
|
3585
3621
|
}
|
|
@@ -3643,6 +3679,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
3643
3679
|
var id = this.element.getAttribute('id') ? this.element.getAttribute('id') : getUniqueID('ej2_dropdownlist');
|
|
3644
3680
|
this.element.id = id;
|
|
3645
3681
|
this.hiddenElement.id = id + '_hidden';
|
|
3682
|
+
if (this.element.tagName === this.getNgDirective() && !this.inputElement.id) {
|
|
3683
|
+
this.inputElement.id = id + '_input';
|
|
3684
|
+
}
|
|
3646
3685
|
this.targetElement().setAttribute('tabindex', this.tabIndex);
|
|
3647
3686
|
if ((this.getModuleName() === 'autocomplete' || this.getModuleName() === 'combobox') && !this.readonly) {
|
|
3648
3687
|
if (!this.inputElement.hasAttribute('aria-label')) {
|
|
@@ -3748,6 +3787,8 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
3748
3787
|
var listItemHeight = Math.ceil(item.getBoundingClientRect().height) +
|
|
3749
3788
|
parseInt(window.getComputedStyle(item).marginBottom, 10);
|
|
3750
3789
|
listParent.remove();
|
|
3790
|
+
listParent = null;
|
|
3791
|
+
item = null;
|
|
3751
3792
|
return listItemHeight;
|
|
3752
3793
|
};
|
|
3753
3794
|
DropDownList.prototype.setFooterTemplate = function (popupEle) {
|
|
@@ -3801,6 +3842,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
3801
3842
|
}
|
|
3802
3843
|
var contentEle = popupEle.querySelector('div.e-content');
|
|
3803
3844
|
popupEle.insertBefore(this.header, contentEle);
|
|
3845
|
+
contentEle = null;
|
|
3804
3846
|
};
|
|
3805
3847
|
/**
|
|
3806
3848
|
* Sets the enabled state to DropDownBase.
|
|
@@ -3865,6 +3907,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
3865
3907
|
((props.dataSource instanceof DataManager) || (!isNullOrUndefined(props) && Array.isArray(props.dataSource) &&
|
|
3866
3908
|
!isNullOrUndefined(oldProps) && Array.isArray(oldProps.dataSource) && props.dataSource.length !== oldProps.dataSource.length))) {
|
|
3867
3909
|
this.typedString = '';
|
|
3910
|
+
this.selectData = null;
|
|
3868
3911
|
this.resetList(this.dataSource);
|
|
3869
3912
|
}
|
|
3870
3913
|
if (!this.isCustomFilter && !this.isFilterFocus && document.activeElement !== this.filterInput) {
|
|
@@ -4017,9 +4060,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
4017
4060
|
return { value: void 0 };
|
|
4018
4061
|
}
|
|
4019
4062
|
if (this_1.enableVirtualization) {
|
|
4063
|
+
var isOfflineMode = this_1.dataSource instanceof DataManager &&
|
|
4064
|
+
this_1.dataSource.dataSource.offline === true;
|
|
4020
4065
|
if (newProp.value && this_1.dataSource instanceof DataManager) {
|
|
4021
|
-
var isOfflineMode = this_1.dataSource instanceof DataManager &&
|
|
4022
|
-
this_1.dataSource.dataSource.offline === true;
|
|
4023
4066
|
var checkField = isNullOrUndefined(this_1.fields.value) ? this_1.fields.text : this_1.fields.value;
|
|
4024
4067
|
var value = this_1.allowObjectBinding && !isNullOrUndefined(newProp.value) ?
|
|
4025
4068
|
getValue(checkField, newProp.value) : newProp.value;
|
|
@@ -4103,6 +4146,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
4103
4146
|
}
|
|
4104
4147
|
}
|
|
4105
4148
|
this_1.updateInputFields();
|
|
4149
|
+
element = null;
|
|
4106
4150
|
}
|
|
4107
4151
|
break;
|
|
4108
4152
|
case 'footerTemplate':
|
|
@@ -4194,6 +4238,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
4194
4238
|
}
|
|
4195
4239
|
}
|
|
4196
4240
|
};
|
|
4241
|
+
li = null;
|
|
4197
4242
|
};
|
|
4198
4243
|
DropDownList.prototype.updatePopupState = function () {
|
|
4199
4244
|
if (this.beforePopupOpen) {
|
|
@@ -4366,6 +4411,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
4366
4411
|
this.setValueTemplate();
|
|
4367
4412
|
}
|
|
4368
4413
|
}
|
|
4414
|
+
element = null;
|
|
4369
4415
|
}
|
|
4370
4416
|
else {
|
|
4371
4417
|
this.resetSelection();
|
|
@@ -4491,6 +4537,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
4491
4537
|
this.clear();
|
|
4492
4538
|
}
|
|
4493
4539
|
}
|
|
4540
|
+
li = null;
|
|
4494
4541
|
}
|
|
4495
4542
|
}
|
|
4496
4543
|
}
|
|
@@ -4526,7 +4573,8 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
4526
4573
|
if (this.inputElement) {
|
|
4527
4574
|
var attrArray = ['readonly', 'aria-disabled', 'placeholder', 'aria-labelledby',
|
|
4528
4575
|
'aria-expanded', 'autocomplete', 'aria-readonly', 'autocapitalize',
|
|
4529
|
-
'spellcheck', 'aria-autocomplete', 'aria-live', 'aria-describedby', 'aria-label'
|
|
4576
|
+
'spellcheck', 'aria-autocomplete', 'aria-live', 'aria-describedby', 'aria-label',
|
|
4577
|
+
'role', 'value', 'style', 'type'];
|
|
4530
4578
|
for (var i = 0; i < attrArray.length; i++) {
|
|
4531
4579
|
this.inputElement.removeAttribute(attrArray[i]);
|
|
4532
4580
|
}
|
|
@@ -4607,6 +4655,43 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
4607
4655
|
detach(this.popupObj.element);
|
|
4608
4656
|
this.popupObj.element = null;
|
|
4609
4657
|
}
|
|
4658
|
+
if (this.list) {
|
|
4659
|
+
while (this.list.firstChild) {
|
|
4660
|
+
this.list.removeChild(this.list.firstChild);
|
|
4661
|
+
}
|
|
4662
|
+
if (this.list.parentNode) {
|
|
4663
|
+
this.list.parentNode.removeChild(this.list);
|
|
4664
|
+
}
|
|
4665
|
+
detach(this.list);
|
|
4666
|
+
}
|
|
4667
|
+
if (this.ulElement) {
|
|
4668
|
+
while (this.ulElement.firstChild) {
|
|
4669
|
+
this.ulElement.removeChild(this.ulElement.firstChild);
|
|
4670
|
+
}
|
|
4671
|
+
if (this.ulElement.parentNode) {
|
|
4672
|
+
this.ulElement.parentNode.removeChild(this.ulElement);
|
|
4673
|
+
}
|
|
4674
|
+
detach(this.ulElement);
|
|
4675
|
+
}
|
|
4676
|
+
if (this.actionData && this.actionData.ulElement) {
|
|
4677
|
+
while (this.actionData.ulElement.firstChild) {
|
|
4678
|
+
this.actionData.ulElement.removeChild(this.actionData.ulElement.firstChild);
|
|
4679
|
+
}
|
|
4680
|
+
detach(this.actionData.ulElement);
|
|
4681
|
+
this.actionData.ulElement = null;
|
|
4682
|
+
this.actionData.list = null;
|
|
4683
|
+
this.actionData = null;
|
|
4684
|
+
}
|
|
4685
|
+
if (this.actionCompleteData && this.actionCompleteData.ulElement) {
|
|
4686
|
+
while (this.actionCompleteData.ulElement.firstChild) {
|
|
4687
|
+
this.actionCompleteData.ulElement.removeChild(this.actionCompleteData.ulElement.firstChild);
|
|
4688
|
+
}
|
|
4689
|
+
detach(this.actionCompleteData.ulElement);
|
|
4690
|
+
this.actionCompleteData.ulElement = null;
|
|
4691
|
+
this.actionCompleteData.list = null;
|
|
4692
|
+
this.actionCompleteData = null;
|
|
4693
|
+
}
|
|
4694
|
+
this.listData = null;
|
|
4610
4695
|
this.ulElement = null;
|
|
4611
4696
|
this.list = null;
|
|
4612
4697
|
this.clearIconElement = null;
|
|
@@ -4620,20 +4705,19 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
4620
4705
|
this.header = null;
|
|
4621
4706
|
this.previousSelectedLI = null;
|
|
4622
4707
|
this.valueTempElement = null;
|
|
4623
|
-
|
|
4624
|
-
detach(this.actionData.ulElement);
|
|
4625
|
-
}
|
|
4626
|
-
this.actionData.ulElement = null;
|
|
4627
|
-
if (this.actionCompleteData.ulElement) {
|
|
4628
|
-
detach(this.actionCompleteData.ulElement);
|
|
4629
|
-
}
|
|
4630
|
-
this.actionCompleteData.ulElement = null;
|
|
4708
|
+
this.resizer = null;
|
|
4631
4709
|
if (this.inputElement && !isNullOrUndefined(this.inputElement.onchange)) {
|
|
4632
4710
|
this.inputElement.onchange = null;
|
|
4633
4711
|
}
|
|
4634
4712
|
if (this.inputElement && !isNullOrUndefined(this.inputElement.onselect)) {
|
|
4635
4713
|
this.inputElement.onselect = null;
|
|
4636
4714
|
}
|
|
4715
|
+
if (this.enableVirtualization) {
|
|
4716
|
+
this.notify('destroy', { module: 'VirtualScroll' });
|
|
4717
|
+
this.virtualGroupDataSource = null;
|
|
4718
|
+
this.viewPortInfo = null;
|
|
4719
|
+
this.selectedValueInfo = null;
|
|
4720
|
+
}
|
|
4637
4721
|
Input.destroy({
|
|
4638
4722
|
element: this.inputElement,
|
|
4639
4723
|
floatLabelType: this.floatLabelType,
|
|
@@ -417,7 +417,7 @@ export interface DropDownTreeModel extends ComponentModel{
|
|
|
417
417
|
enableHtmlSanitizer?: boolean;
|
|
418
418
|
|
|
419
419
|
/**
|
|
420
|
-
* Enables rendering of raw text content in the Dropdown
|
|
420
|
+
* Enables rendering of raw text content in the Dropdown component without HTML encoding.
|
|
421
421
|
* When set to true, the text will be displayed exactly as provided (including HTML tags or special characters),
|
|
422
422
|
* instead of being encoded or truncated (e.g., `hiiih<hihi` will be shown as-is).
|
|
423
423
|
*
|
|
@@ -586,7 +586,7 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
|
|
|
586
586
|
*/
|
|
587
587
|
enableHtmlSanitizer: boolean;
|
|
588
588
|
/**
|
|
589
|
-
* Enables rendering of raw text content in the Dropdown
|
|
589
|
+
* Enables rendering of raw text content in the Dropdown component without HTML encoding.
|
|
590
590
|
* When set to true, the text will be displayed exactly as provided (including HTML tags or special characters),
|
|
591
591
|
* instead of being encoded or truncated (e.g., `hiiih<hihi` will be shown as-is).
|
|
592
592
|
*
|