@syncfusion/ej2-dropdowns 32.2.6 → 32.2.8
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 +73 -28
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +73 -28
- 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 +5 -5
- package/src/common/virtual-scroll.js +1 -1
- package/src/drop-down-list/drop-down-list.d.ts +2 -0
- package/src/drop-down-list/drop-down-list.js +20 -4
- package/src/drop-down-tree/drop-down-tree-model.d.ts +13 -0
- package/src/drop-down-tree/drop-down-tree.d.ts +14 -0
- package/src/drop-down-tree/drop-down-tree.js +12 -12
- package/src/list-box/list-box.d.ts +1 -0
- package/src/list-box/list-box.js +6 -2
- package/src/mention/mention.d.ts +4 -0
- package/src/mention/mention.js +27 -6
- package/src/multi-select/multi-select.d.ts +1 -0
- package/src/multi-select/multi-select.js +6 -2
- package/styles/drop-down-base/material3-dark.css +0 -6
- package/styles/drop-down-base/material3.css +0 -6
- package/styles/drop-down-list/material3-dark.css +0 -1
- package/styles/drop-down-list/material3.css +0 -1
- package/styles/drop-down-tree/material3-dark.css +0 -2
- package/styles/drop-down-tree/material3.css +0 -2
- package/styles/material3-dark-lite.css +0 -9
- package/styles/material3-dark.css +0 -9
- package/styles/material3-lite.css +0 -9
- package/styles/material3.css +0 -9
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 32.2.
|
|
3
|
+
* version : 32.2.8
|
|
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": "32.2.
|
|
3
|
+
"version": "32.2.8",
|
|
4
4
|
"description": "Essential JS 2 DropDown Components",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@syncfusion/ej2-base": "~32.2.6",
|
|
12
12
|
"@syncfusion/ej2-data": "~32.2.3",
|
|
13
|
-
"@syncfusion/ej2-inputs": "~32.2.
|
|
14
|
-
"@syncfusion/ej2-lists": "~32.2.
|
|
15
|
-
"@syncfusion/ej2-navigations": "~32.2.
|
|
13
|
+
"@syncfusion/ej2-inputs": "~32.2.8",
|
|
14
|
+
"@syncfusion/ej2-lists": "~32.2.7",
|
|
15
|
+
"@syncfusion/ej2-navigations": "~32.2.8",
|
|
16
16
|
"@syncfusion/ej2-notifications": "~32.2.3",
|
|
17
|
-
"@syncfusion/ej2-popups": "~32.2.
|
|
17
|
+
"@syncfusion/ej2-popups": "~32.2.8"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {},
|
|
20
20
|
"keywords": [
|
|
@@ -156,7 +156,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
156
156
|
if (this.component === 'combobox') {
|
|
157
157
|
var totalData = 0;
|
|
158
158
|
if (this.parent.dataSource instanceof DataManager) {
|
|
159
|
-
totalData = this.parent.
|
|
159
|
+
totalData = this.parent.dataSource.dataSource.json.length;
|
|
160
160
|
}
|
|
161
161
|
else if (this.parent.dataSource && this.parent.dataSource.length > 0) {
|
|
162
162
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -133,6 +133,7 @@ export declare class DropDownList extends DropDownBase implements IInput {
|
|
|
133
133
|
private filterArgs;
|
|
134
134
|
private isReactTemplateUpdate;
|
|
135
135
|
private iOSscrollPosition;
|
|
136
|
+
private resizeHandler;
|
|
136
137
|
/**
|
|
137
138
|
* Sets CSS classes to the root element of the component that allows customization of appearance.
|
|
138
139
|
*
|
|
@@ -603,6 +604,7 @@ export declare class DropDownList extends DropDownBase implements IInput {
|
|
|
603
604
|
private updateSelectionList;
|
|
604
605
|
protected removeFocus(): void;
|
|
605
606
|
protected renderPopup(e?: MouseEvent | KeyboardEventArgs | TouchEvent | Object): void;
|
|
607
|
+
protected getAppendToElement(): HTMLElement;
|
|
606
608
|
private checkCollision;
|
|
607
609
|
private getOffsetValue;
|
|
608
610
|
private createPopup;
|
|
@@ -593,7 +593,8 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
593
593
|
EventHandler.add(this.inputWrapper.container, 'mousedown', this.dropDownClick, this);
|
|
594
594
|
EventHandler.add(this.inputWrapper.container, 'focus', this.focusIn, this);
|
|
595
595
|
EventHandler.add(this.inputWrapper.container, 'keypress', this.onSearch, this);
|
|
596
|
-
|
|
596
|
+
this.resizeHandler = this.windowResize.bind(this);
|
|
597
|
+
window.addEventListener('resize', this.resizeHandler);
|
|
597
598
|
this.bindCommonEvent();
|
|
598
599
|
};
|
|
599
600
|
DropDownList.prototype.bindCommonEvent = function () {
|
|
@@ -1383,7 +1384,10 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1383
1384
|
EventHandler.remove(this.inputWrapper.container, 'mousedown', this.dropDownClick);
|
|
1384
1385
|
EventHandler.remove(this.inputWrapper.container, 'keypress', this.onSearch);
|
|
1385
1386
|
EventHandler.remove(this.inputWrapper.container, 'focus', this.focusIn);
|
|
1386
|
-
|
|
1387
|
+
if (this.resizeHandler) {
|
|
1388
|
+
window.removeEventListener('resize', this.resizeHandler);
|
|
1389
|
+
this.resizeHandler = null;
|
|
1390
|
+
}
|
|
1387
1391
|
}
|
|
1388
1392
|
this.unBindCommonEvent();
|
|
1389
1393
|
};
|
|
@@ -2650,7 +2654,8 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2650
2654
|
_this.setFooterTemplate(popupEle_1);
|
|
2651
2655
|
_this.isUpdateFooterHeight = _this.footer.offsetHeight !== 0;
|
|
2652
2656
|
}
|
|
2653
|
-
|
|
2657
|
+
var appendToElement = _this.getAppendToElement();
|
|
2658
|
+
appendToElement.appendChild(popupEle_1);
|
|
2654
2659
|
popupEle_1.style.top = '0px';
|
|
2655
2660
|
initialPopupHeight = popupEle_1.clientHeight;
|
|
2656
2661
|
if (_this.enableVirtualization && (_this.itemTemplate || _this.isAngular)) {
|
|
@@ -2912,6 +2917,16 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2912
2917
|
}
|
|
2913
2918
|
});
|
|
2914
2919
|
};
|
|
2920
|
+
DropDownList.prototype.getAppendToElement = function () {
|
|
2921
|
+
if (this.isAngular) {
|
|
2922
|
+
var cdkPane = this.element && this.element.closest ? this.element.closest('.cdk-overlay-pane') : null;
|
|
2923
|
+
var popoverEl = this.element && this.element.closest ? this.element.closest('[popover]') : null;
|
|
2924
|
+
if (cdkPane && popoverEl) {
|
|
2925
|
+
return cdkPane;
|
|
2926
|
+
}
|
|
2927
|
+
}
|
|
2928
|
+
return document.body;
|
|
2929
|
+
};
|
|
2915
2930
|
DropDownList.prototype.checkCollision = function (popupEle) {
|
|
2916
2931
|
if (!Browser.isDevice || (Browser.isDevice && !(this.getModuleName() === 'dropdownlist' || this.isDropDownClick))) {
|
|
2917
2932
|
var collision = isCollide(popupEle);
|
|
@@ -3686,7 +3701,8 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
3686
3701
|
var listParentHeight = formatUnit(this.popupHeight);
|
|
3687
3702
|
listParent.style.height = (parseInt(listParentHeight, 10)).toString() + 'px';
|
|
3688
3703
|
listParent.appendChild(item);
|
|
3689
|
-
|
|
3704
|
+
var appendToElement = this.getAppendToElement();
|
|
3705
|
+
appendToElement.appendChild(listParent);
|
|
3690
3706
|
this.virtualListHeight = listParent.getBoundingClientRect().height;
|
|
3691
3707
|
var listItemHeight = Math.ceil(item.getBoundingClientRect().height) +
|
|
3692
3708
|
parseInt(window.getComputedStyle(item).marginBottom, 10);
|
|
@@ -410,10 +410,23 @@ export interface DropDownTreeModel extends ComponentModel{
|
|
|
410
410
|
* Specifies whether to display or remove the untrusted HTML values in the Dropdown Tree component.
|
|
411
411
|
* If 'enableHtmlSanitizer' set to true, the component will sanitize any suspected untrusted strings and scripts before rendering them.
|
|
412
412
|
*
|
|
413
|
+
* **Note:** To correctly remove untrusted HTML values, `disableHtmlEncode` must also be set to true. When `enableHtmlSanitizer` is set to false, `disableHtmlEncode` must also be set to false.
|
|
414
|
+
*
|
|
413
415
|
* @default true
|
|
414
416
|
*/
|
|
415
417
|
enableHtmlSanitizer?: boolean;
|
|
416
418
|
|
|
419
|
+
/**
|
|
420
|
+
* Enables rendering of raw text content in the Dropdown Tree component without HTML encoding.
|
|
421
|
+
* When set to true, the text will be displayed exactly as provided (including HTML tags or special characters),
|
|
422
|
+
* instead of being encoded or truncated (e.g., `hiiih<hihi` will be shown as-is).
|
|
423
|
+
*
|
|
424
|
+
* **Note:** To preserve and render raw HTML content correctly, `enableHtmlSanitizer` must also be set to false.
|
|
425
|
+
*
|
|
426
|
+
* @default true
|
|
427
|
+
*/
|
|
428
|
+
disableHtmlEncode?: boolean
|
|
429
|
+
|
|
417
430
|
/**
|
|
418
431
|
* Specifies whether to show or hide the clear icon in textbox.
|
|
419
432
|
* When the clear button is clicked, `value`, `text` properties will be reset to null.
|
|
@@ -580,9 +580,21 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
|
|
|
580
580
|
* Specifies whether to display or remove the untrusted HTML values in the Dropdown Tree component.
|
|
581
581
|
* If 'enableHtmlSanitizer' set to true, the component will sanitize any suspected untrusted strings and scripts before rendering them.
|
|
582
582
|
*
|
|
583
|
+
* **Note:** To correctly remove untrusted HTML values, `disableHtmlEncode` must also be set to true. When `enableHtmlSanitizer` is set to false, `disableHtmlEncode` must also be set to false.
|
|
584
|
+
*
|
|
583
585
|
* @default true
|
|
584
586
|
*/
|
|
585
587
|
enableHtmlSanitizer: boolean;
|
|
588
|
+
/**
|
|
589
|
+
* Enables rendering of raw text content in the Dropdown Tree component without HTML encoding.
|
|
590
|
+
* When set to true, the text will be displayed exactly as provided (including HTML tags or special characters),
|
|
591
|
+
* instead of being encoded or truncated (e.g., `hiiih<hihi` will be shown as-is).
|
|
592
|
+
*
|
|
593
|
+
* **Note:** To preserve and render raw HTML content correctly, `enableHtmlSanitizer` must also be set to false.
|
|
594
|
+
*
|
|
595
|
+
* @default true
|
|
596
|
+
*/
|
|
597
|
+
disableHtmlEncode: boolean;
|
|
586
598
|
/**
|
|
587
599
|
* Specifies whether to show or hide the clear icon in textbox.
|
|
588
600
|
* When the clear button is clicked, `value`, `text` properties will be reset to null.
|
|
@@ -898,6 +910,8 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
|
|
|
898
910
|
private updateText;
|
|
899
911
|
private updateModelMode;
|
|
900
912
|
private updateOption;
|
|
913
|
+
private getDomSetter;
|
|
914
|
+
private getSanitizedText;
|
|
901
915
|
/**
|
|
902
916
|
* Dynamically change the value of properties.
|
|
903
917
|
*
|
|
@@ -1072,12 +1072,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1072
1072
|
temp = this.getOverflowVal(index);
|
|
1073
1073
|
data += temp;
|
|
1074
1074
|
temp = this.overFlowWrapper.innerHTML;
|
|
1075
|
-
|
|
1076
|
-
this.overFlowWrapper.innerText = SanitizeHtmlHelper.sanitize(data);
|
|
1077
|
-
}
|
|
1078
|
-
else {
|
|
1079
|
-
this.overFlowWrapper.innerHTML = data;
|
|
1080
|
-
}
|
|
1075
|
+
this.overFlowWrapper[this.getDomSetter()] = this.getSanitizedText(data);
|
|
1081
1076
|
wrapperleng = this.overFlowWrapper.offsetWidth;
|
|
1082
1077
|
overAllContainer = this.inputWrapper.offsetWidth;
|
|
1083
1078
|
if ((wrapperleng + downIconWidth + this.clearIconWidth) > overAllContainer) {
|
|
@@ -1657,6 +1652,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1657
1652
|
dataBound: this.OnDataBound.bind(this),
|
|
1658
1653
|
allowMultiSelection: this.allowMultiSelection,
|
|
1659
1654
|
enableHtmlSanitizer: this.enableHtmlSanitizer,
|
|
1655
|
+
disableHtmlEncode: this.disableHtmlEncode,
|
|
1660
1656
|
showCheckBox: this.showCheckBox,
|
|
1661
1657
|
autoCheck: this.treeSettings.autoCheck,
|
|
1662
1658
|
sortOrder: this.sortOrder,
|
|
@@ -2643,12 +2639,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2643
2639
|
});
|
|
2644
2640
|
var chipContent = this.createElement('span', { className: CHIP_CONTENT });
|
|
2645
2641
|
var chipClose = this.createElement('span', { className: CHIP_CLOSE + ' ' + ICONS });
|
|
2646
|
-
|
|
2647
|
-
chipContent.innerText = SanitizeHtmlHelper.sanitize(text);
|
|
2648
|
-
}
|
|
2649
|
-
else {
|
|
2650
|
-
chipContent.innerHTML = text;
|
|
2651
|
-
}
|
|
2642
|
+
chipContent[this.getDomSetter()] = this.getSanitizedText(text);
|
|
2652
2643
|
chip.appendChild(chipContent);
|
|
2653
2644
|
this.chipCollection.appendChild(chip);
|
|
2654
2645
|
if (this.showClearButton) {
|
|
@@ -3087,6 +3078,12 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
3087
3078
|
this.hiddenElement.removeAttribute('multiple');
|
|
3088
3079
|
}
|
|
3089
3080
|
};
|
|
3081
|
+
DropDownTree.prototype.getDomSetter = function () {
|
|
3082
|
+
return this.disableHtmlEncode ? 'textContent' : 'innerHTML';
|
|
3083
|
+
};
|
|
3084
|
+
DropDownTree.prototype.getSanitizedText = function (text) {
|
|
3085
|
+
return this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(text) : text;
|
|
3086
|
+
};
|
|
3090
3087
|
/**
|
|
3091
3088
|
* Dynamically change the value of properties.
|
|
3092
3089
|
*
|
|
@@ -3556,6 +3553,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
3556
3553
|
__decorate([
|
|
3557
3554
|
Property(true)
|
|
3558
3555
|
], DropDownTree.prototype, "enableHtmlSanitizer", void 0);
|
|
3556
|
+
__decorate([
|
|
3557
|
+
Property(true)
|
|
3558
|
+
], DropDownTree.prototype, "disableHtmlEncode", void 0);
|
|
3559
3559
|
__decorate([
|
|
3560
3560
|
Property(true)
|
|
3561
3561
|
], DropDownTree.prototype, "showClearButton", void 0);
|
|
@@ -138,6 +138,7 @@ export declare class ListBox extends DropDownBase {
|
|
|
138
138
|
private timer;
|
|
139
139
|
private inputFormName;
|
|
140
140
|
private selectedListItemCount;
|
|
141
|
+
private boundResizeHandler;
|
|
141
142
|
/**
|
|
142
143
|
* Sets the CSS classes to root element of this component, which helps to customize the
|
|
143
144
|
* complete styles.
|
package/src/list-box/list-box.js
CHANGED
|
@@ -1236,7 +1236,8 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1236
1236
|
if (form) {
|
|
1237
1237
|
EventHandler.add(form, 'reset', this.formResetHandler, this);
|
|
1238
1238
|
}
|
|
1239
|
-
|
|
1239
|
+
this.boundResizeHandler = this.resizeHandler.bind(this);
|
|
1240
|
+
window.addEventListener('resize', this.boundResizeHandler);
|
|
1240
1241
|
};
|
|
1241
1242
|
ListBox.prototype.wireToolbarEvent = function () {
|
|
1242
1243
|
if (this.toolbarSettings.items.length) {
|
|
@@ -1258,7 +1259,10 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1258
1259
|
if (form) {
|
|
1259
1260
|
EventHandler.remove(form, 'reset', this.formResetHandler);
|
|
1260
1261
|
}
|
|
1261
|
-
|
|
1262
|
+
if (this.boundResizeHandler) {
|
|
1263
|
+
window.removeEventListener('resize', this.boundResizeHandler);
|
|
1264
|
+
this.boundResizeHandler = null;
|
|
1265
|
+
}
|
|
1262
1266
|
};
|
|
1263
1267
|
ListBox.prototype.clickHandler = function (e) {
|
|
1264
1268
|
var li = closest(e.target, '.' + 'e-list-item');
|
package/src/mention/mention.d.ts
CHANGED
|
@@ -59,6 +59,9 @@ export declare class Mention extends DropDownBase {
|
|
|
59
59
|
private isUpDownKey;
|
|
60
60
|
private isRTE;
|
|
61
61
|
private keyEventName;
|
|
62
|
+
private keyupHandler;
|
|
63
|
+
private keydownHandler;
|
|
64
|
+
private popupAppendTo;
|
|
62
65
|
/**
|
|
63
66
|
* Defines class/multiple classes separated by a space for the mention component.
|
|
64
67
|
*
|
|
@@ -410,6 +413,7 @@ export declare class Mention extends DropDownBase {
|
|
|
410
413
|
hidePopup(e?: MouseEvent | KeyboardEventArgs): void;
|
|
411
414
|
private closePopup;
|
|
412
415
|
private renderPopup;
|
|
416
|
+
protected getAppendToElement(): HTMLElement;
|
|
413
417
|
private setHeight;
|
|
414
418
|
private checkCollision;
|
|
415
419
|
private getTriggerCharPosition;
|
package/src/mention/mention.js
CHANGED
|
@@ -145,16 +145,21 @@ var Mention = /** @class */ (function (_super) {
|
|
|
145
145
|
this.wireEvent();
|
|
146
146
|
};
|
|
147
147
|
Mention.prototype.wireEvent = function () {
|
|
148
|
-
|
|
148
|
+
this.keyupHandler = this.onKeyUp.bind(this);
|
|
149
|
+
EventHandler.add(this.inputElement, 'keyup', this.keyupHandler, this);
|
|
149
150
|
this.bindCommonEvent();
|
|
150
151
|
};
|
|
151
152
|
Mention.prototype.unWireEvent = function () {
|
|
152
|
-
|
|
153
|
+
if (this.keyupHandler) {
|
|
154
|
+
EventHandler.remove(this.inputElement, 'keyup', this.keyupHandler);
|
|
155
|
+
this.keyupHandler = null;
|
|
156
|
+
}
|
|
153
157
|
this.unBindCommonEvent();
|
|
154
158
|
};
|
|
155
159
|
Mention.prototype.bindCommonEvent = function () {
|
|
156
160
|
if (!Browser.isDevice) {
|
|
157
|
-
this.
|
|
161
|
+
this.keydownHandler = this.keyDownHandler.bind(this);
|
|
162
|
+
this.inputElement.addEventListener('keydown', this.keydownHandler, !this.isRTE);
|
|
158
163
|
}
|
|
159
164
|
};
|
|
160
165
|
/**
|
|
@@ -343,8 +348,9 @@ var Mention = /** @class */ (function (_super) {
|
|
|
343
348
|
return !isNullOrUndefined(element);
|
|
344
349
|
};
|
|
345
350
|
Mention.prototype.unBindCommonEvent = function () {
|
|
346
|
-
if (!Browser.isDevice) {
|
|
347
|
-
this.inputElement.removeEventListener('keydown', this.
|
|
351
|
+
if (!Browser.isDevice && this.keydownHandler) {
|
|
352
|
+
this.inputElement.removeEventListener('keydown', this.keydownHandler, !this.isRTE);
|
|
353
|
+
this.keydownHandler = null;
|
|
348
354
|
}
|
|
349
355
|
};
|
|
350
356
|
Mention.prototype.onKeyUp = function (e) {
|
|
@@ -827,9 +833,11 @@ var Mention = /** @class */ (function (_super) {
|
|
|
827
833
|
addClass([popupEle_1], 'e-rte-elements');
|
|
828
834
|
}
|
|
829
835
|
}
|
|
836
|
+
var appendToElement = _this.getAppendToElement();
|
|
837
|
+
_this.popupAppendTo = appendToElement;
|
|
830
838
|
if ((!_this.popupObj || !document.body.contains(_this.popupObj.element)) ||
|
|
831
839
|
!document.contains(popupEle_1) && isNullOrUndefined(_this.target)) {
|
|
832
|
-
|
|
840
|
+
appendToElement.appendChild(popupEle_1);
|
|
833
841
|
}
|
|
834
842
|
var coordinates_1;
|
|
835
843
|
popupEle_1.style.visibility = 'hidden';
|
|
@@ -902,6 +910,19 @@ var Mention = /** @class */ (function (_super) {
|
|
|
902
910
|
}
|
|
903
911
|
});
|
|
904
912
|
};
|
|
913
|
+
Mention.prototype.getAppendToElement = function () {
|
|
914
|
+
if (this.popupAppendTo) {
|
|
915
|
+
return this.popupAppendTo;
|
|
916
|
+
}
|
|
917
|
+
if (this.isAngular) {
|
|
918
|
+
var cdkPane = this.element && this.element.closest ? this.element.closest('.cdk-overlay-pane') : null;
|
|
919
|
+
var popoverEl = this.element && this.element.closest ? this.element.closest('[popover]') : null;
|
|
920
|
+
if (cdkPane && popoverEl) {
|
|
921
|
+
return cdkPane;
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
return document.body;
|
|
925
|
+
};
|
|
905
926
|
Mention.prototype.setHeight = function (popupEle) {
|
|
906
927
|
if (this.popupHeight !== 'auto' && this.list) {
|
|
907
928
|
this.list.style.maxHeight = (parseInt(this.listHeight, 10) - 2).toString() + 'px'; // due to box-sizing property
|
|
@@ -75,6 +75,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
75
75
|
private isFilterPrevented;
|
|
76
76
|
private isFilteringAction;
|
|
77
77
|
private headerTemplateHeight;
|
|
78
|
+
private resizeHandler;
|
|
78
79
|
/**
|
|
79
80
|
* The `fields` property maps the columns of the data table and binds the data to the component.
|
|
80
81
|
* * text - Maps the text column from data table for each list item.
|
|
@@ -3577,7 +3577,8 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3577
3577
|
};
|
|
3578
3578
|
MultiSelect.prototype.wireEvent = function () {
|
|
3579
3579
|
EventHandler.add(this.componentWrapper, 'mousedown', this.wrapperClick, this);
|
|
3580
|
-
|
|
3580
|
+
this.resizeHandler = this.windowResize.bind(this);
|
|
3581
|
+
window.addEventListener('resize', this.resizeHandler);
|
|
3581
3582
|
EventHandler.add(this.inputElement, 'focus', this.focusInHandler, this);
|
|
3582
3583
|
EventHandler.add(this.inputElement, 'keydown', this.onKeyDown, this);
|
|
3583
3584
|
EventHandler.add(this.inputElement, 'keyup', this.keyUp, this);
|
|
@@ -4888,7 +4889,10 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
4888
4889
|
if (!isNullOrUndefined(this.componentWrapper)) {
|
|
4889
4890
|
EventHandler.remove(this.componentWrapper, 'mousedown', this.wrapperClick);
|
|
4890
4891
|
}
|
|
4891
|
-
|
|
4892
|
+
if (this.resizeHandler) {
|
|
4893
|
+
window.removeEventListener('resize', this.resizeHandler);
|
|
4894
|
+
this.resizeHandler = null;
|
|
4895
|
+
}
|
|
4892
4896
|
if (!isNullOrUndefined(this.inputElement)) {
|
|
4893
4897
|
EventHandler.remove(this.inputElement, 'focus', this.focusInHandler);
|
|
4894
4898
|
EventHandler.remove(this.inputElement, 'keydown', this.onKeyDown);
|
|
@@ -230,7 +230,6 @@
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
.e-mention.e-popup {
|
|
233
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.11)), to(rgba(var(--color-sf-primary), 0.11))), rgba(var(--color-sf-surface));
|
|
234
233
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.11), rgba(var(--color-sf-primary), 0.11)), rgba(var(--color-sf-surface));
|
|
235
234
|
border: 0;
|
|
236
235
|
-webkit-box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.21);
|
|
@@ -402,7 +401,6 @@
|
|
|
402
401
|
}
|
|
403
402
|
.e-dropdownbase {
|
|
404
403
|
border-color: #e0e0e0;
|
|
405
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.11)), to(rgba(var(--color-sf-primary), 0.11))), rgba(var(--color-sf-surface));
|
|
406
404
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.11), rgba(var(--color-sf-primary), 0.11)), rgba(var(--color-sf-surface));
|
|
407
405
|
}
|
|
408
406
|
.e-dropdownbase .e-list-item {
|
|
@@ -417,7 +415,6 @@
|
|
|
417
415
|
min-height: 32px;
|
|
418
416
|
padding-right: 16px;
|
|
419
417
|
text-indent: 16px;
|
|
420
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.11)), to(rgba(var(--color-sf-primary), 0.11))), rgba(var(--color-sf-surface));
|
|
421
418
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.11), rgba(var(--color-sf-primary), 0.11)), rgba(var(--color-sf-surface));
|
|
422
419
|
}
|
|
423
420
|
|
|
@@ -434,7 +431,6 @@
|
|
|
434
431
|
padding-right: 16px;
|
|
435
432
|
overflow: hidden;
|
|
436
433
|
text-overflow: ellipsis;
|
|
437
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.11)), to(rgba(var(--color-sf-primary), 0.11))), rgba(var(--color-sf-surface));
|
|
438
434
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.11), rgba(var(--color-sf-primary), 0.11)), rgba(var(--color-sf-surface));
|
|
439
435
|
}
|
|
440
436
|
|
|
@@ -483,7 +479,6 @@
|
|
|
483
479
|
}
|
|
484
480
|
|
|
485
481
|
.e-multi-column.e-ddl.e-popup.e-popup-open .e-ddl-header {
|
|
486
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.11)), to(rgba(var(--color-sf-primary), 0.11))), rgba(var(--color-sf-surface));
|
|
487
482
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.11), rgba(var(--color-sf-primary), 0.11)), rgba(var(--color-sf-surface));
|
|
488
483
|
border-color: #e0e0e0;
|
|
489
484
|
border-style: solid;
|
|
@@ -543,7 +538,6 @@
|
|
|
543
538
|
}
|
|
544
539
|
|
|
545
540
|
.e-ddl.e-popup.e-multiselect-group .e-list-group-item {
|
|
546
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.11)), to(rgba(var(--color-sf-primary), 0.11))), rgba(var(--color-sf-surface));
|
|
547
541
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.11), rgba(var(--color-sf-primary), 0.11)), rgba(var(--color-sf-surface));
|
|
548
542
|
border-bottom: 0;
|
|
549
543
|
border-color: rgba(var(--color-sf-surface));
|
|
@@ -234,7 +234,6 @@
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
.e-mention.e-popup {
|
|
237
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-surface), 1)), to(rgba(var(--color-sf-surface), 1))), rgba(var(--color-sf-surface));
|
|
238
237
|
background: linear-gradient(0deg, rgba(var(--color-sf-surface), 1), rgba(var(--color-sf-surface), 1)), rgba(var(--color-sf-surface));
|
|
239
238
|
border: 0;
|
|
240
239
|
-webkit-box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.21);
|
|
@@ -408,7 +407,6 @@
|
|
|
408
407
|
}
|
|
409
408
|
.e-dropdownbase {
|
|
410
409
|
border-color: #e0e0e0;
|
|
411
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-surface), 1)), to(rgba(var(--color-sf-surface), 1))), rgba(var(--color-sf-surface));
|
|
412
410
|
background: linear-gradient(0deg, rgba(var(--color-sf-surface), 1), rgba(var(--color-sf-surface), 1)), rgba(var(--color-sf-surface));
|
|
413
411
|
}
|
|
414
412
|
.e-dropdownbase .e-list-item {
|
|
@@ -423,7 +421,6 @@
|
|
|
423
421
|
min-height: 32px;
|
|
424
422
|
padding-right: 16px;
|
|
425
423
|
text-indent: 16px;
|
|
426
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-surface), 1)), to(rgba(var(--color-sf-surface), 1))), rgba(var(--color-sf-surface));
|
|
427
424
|
background: linear-gradient(0deg, rgba(var(--color-sf-surface), 1), rgba(var(--color-sf-surface), 1)), rgba(var(--color-sf-surface));
|
|
428
425
|
}
|
|
429
426
|
|
|
@@ -440,7 +437,6 @@
|
|
|
440
437
|
padding-right: 16px;
|
|
441
438
|
overflow: hidden;
|
|
442
439
|
text-overflow: ellipsis;
|
|
443
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-surface), 1)), to(rgba(var(--color-sf-surface), 1))), rgba(var(--color-sf-surface));
|
|
444
440
|
background: linear-gradient(0deg, rgba(var(--color-sf-surface), 1), rgba(var(--color-sf-surface), 1)), rgba(var(--color-sf-surface));
|
|
445
441
|
}
|
|
446
442
|
|
|
@@ -489,7 +485,6 @@
|
|
|
489
485
|
}
|
|
490
486
|
|
|
491
487
|
.e-multi-column.e-ddl.e-popup.e-popup-open .e-ddl-header {
|
|
492
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-surface), 1)), to(rgba(var(--color-sf-surface), 1))), rgba(var(--color-sf-surface));
|
|
493
488
|
background: linear-gradient(0deg, rgba(var(--color-sf-surface), 1), rgba(var(--color-sf-surface), 1)), rgba(var(--color-sf-surface));
|
|
494
489
|
border-color: #e0e0e0;
|
|
495
490
|
border-style: solid;
|
|
@@ -549,7 +544,6 @@
|
|
|
549
544
|
}
|
|
550
545
|
|
|
551
546
|
.e-ddl.e-popup.e-multiselect-group .e-list-group-item {
|
|
552
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-surface), 1)), to(rgba(var(--color-sf-surface), 1))), rgba(var(--color-sf-surface));
|
|
553
547
|
background: linear-gradient(0deg, rgba(var(--color-sf-surface), 1), rgba(var(--color-sf-surface), 1)), rgba(var(--color-sf-surface));
|
|
554
548
|
border-bottom: 0;
|
|
555
549
|
border-color: rgba(var(--color-sf-surface));
|
|
@@ -643,7 +643,6 @@
|
|
|
643
643
|
}
|
|
644
644
|
|
|
645
645
|
.e-ddl.e-popup {
|
|
646
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.11)), to(rgba(var(--color-sf-primary), 0.11))), rgba(var(--color-sf-surface));
|
|
647
646
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.11), rgba(var(--color-sf-primary), 0.11)), rgba(var(--color-sf-surface));
|
|
648
647
|
border-radius: calc(var(--e-radius) * 0.25);
|
|
649
648
|
position: absolute;
|
|
@@ -647,7 +647,6 @@
|
|
|
647
647
|
}
|
|
648
648
|
|
|
649
649
|
.e-ddl.e-popup {
|
|
650
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-surface), 1)), to(rgba(var(--color-sf-surface), 1))), rgba(var(--color-sf-surface));
|
|
651
650
|
background: linear-gradient(0deg, rgba(var(--color-sf-surface), 1), rgba(var(--color-sf-surface), 1)), rgba(var(--color-sf-surface));
|
|
652
651
|
border-radius: calc(var(--e-radius) * 0.25);
|
|
653
652
|
position: absolute;
|
|
@@ -641,7 +641,6 @@
|
|
|
641
641
|
/* 15px */
|
|
642
642
|
/* 16px */
|
|
643
643
|
.e-ddt .e-chips {
|
|
644
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.05)), to(rgba(var(--color-sf-primary), 0.05))), rgba(var(--color-sf-surface));
|
|
645
644
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.05), rgba(var(--color-sf-primary), 0.05)), rgba(var(--color-sf-surface));
|
|
646
645
|
border-color: rgba(var(--color-sf-outline));
|
|
647
646
|
border: 1px solid;
|
|
@@ -656,7 +655,6 @@
|
|
|
656
655
|
color: #757575;
|
|
657
656
|
}
|
|
658
657
|
.e-ddt.e-popup {
|
|
659
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.11)), to(rgba(var(--color-sf-primary), 0.11))), rgba(var(--color-sf-surface));
|
|
660
658
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.11), rgba(var(--color-sf-primary), 0.11)), rgba(var(--color-sf-surface));
|
|
661
659
|
border-color: rgba(var(--color-sf-outline-variant));
|
|
662
660
|
}
|
|
@@ -647,7 +647,6 @@
|
|
|
647
647
|
|
|
648
648
|
|
|
649
649
|
.e-ddt .e-chips {
|
|
650
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-surface), 1)), to(rgba(var(--color-sf-surface), 1))), rgba(var(--color-sf-surface));
|
|
651
650
|
background: linear-gradient(0deg, rgba(var(--color-sf-surface), 1), rgba(var(--color-sf-surface), 1)), rgba(var(--color-sf-surface));
|
|
652
651
|
border-color: rgba(var(--color-sf-outline));
|
|
653
652
|
border: 1px solid;
|
|
@@ -662,7 +661,6 @@
|
|
|
662
661
|
color: #757575;
|
|
663
662
|
}
|
|
664
663
|
.e-ddt.e-popup {
|
|
665
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-surface), 1)), to(rgba(var(--color-sf-surface), 1))), rgba(var(--color-sf-surface));
|
|
666
664
|
background: linear-gradient(0deg, rgba(var(--color-sf-surface), 1), rgba(var(--color-sf-surface), 1)), rgba(var(--color-sf-surface));
|
|
667
665
|
border-color: rgba(var(--color-sf-outline-variant));
|
|
668
666
|
}
|
|
@@ -230,7 +230,6 @@
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
.e-mention.e-popup {
|
|
233
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.11)), to(rgba(var(--color-sf-primary), 0.11))), rgba(var(--color-sf-surface));
|
|
234
233
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.11), rgba(var(--color-sf-primary), 0.11)), rgba(var(--color-sf-surface));
|
|
235
234
|
border: 0;
|
|
236
235
|
-webkit-box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.21);
|
|
@@ -402,7 +401,6 @@
|
|
|
402
401
|
}
|
|
403
402
|
.e-dropdownbase {
|
|
404
403
|
border-color: #e0e0e0;
|
|
405
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.11)), to(rgba(var(--color-sf-primary), 0.11))), rgba(var(--color-sf-surface));
|
|
406
404
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.11), rgba(var(--color-sf-primary), 0.11)), rgba(var(--color-sf-surface));
|
|
407
405
|
}
|
|
408
406
|
.e-dropdownbase .e-list-item {
|
|
@@ -417,7 +415,6 @@
|
|
|
417
415
|
min-height: 32px;
|
|
418
416
|
padding-right: 16px;
|
|
419
417
|
text-indent: 16px;
|
|
420
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.11)), to(rgba(var(--color-sf-primary), 0.11))), rgba(var(--color-sf-surface));
|
|
421
418
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.11), rgba(var(--color-sf-primary), 0.11)), rgba(var(--color-sf-surface));
|
|
422
419
|
}
|
|
423
420
|
|
|
@@ -434,7 +431,6 @@
|
|
|
434
431
|
padding-right: 16px;
|
|
435
432
|
overflow: hidden;
|
|
436
433
|
text-overflow: ellipsis;
|
|
437
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.11)), to(rgba(var(--color-sf-primary), 0.11))), rgba(var(--color-sf-surface));
|
|
438
434
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.11), rgba(var(--color-sf-primary), 0.11)), rgba(var(--color-sf-surface));
|
|
439
435
|
}
|
|
440
436
|
|
|
@@ -483,7 +479,6 @@
|
|
|
483
479
|
}
|
|
484
480
|
|
|
485
481
|
.e-multi-column.e-ddl.e-popup.e-popup-open .e-ddl-header {
|
|
486
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.11)), to(rgba(var(--color-sf-primary), 0.11))), rgba(var(--color-sf-surface));
|
|
487
482
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.11), rgba(var(--color-sf-primary), 0.11)), rgba(var(--color-sf-surface));
|
|
488
483
|
border-color: #e0e0e0;
|
|
489
484
|
border-style: solid;
|
|
@@ -543,7 +538,6 @@
|
|
|
543
538
|
}
|
|
544
539
|
|
|
545
540
|
.e-ddl.e-popup.e-multiselect-group .e-list-group-item {
|
|
546
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.11)), to(rgba(var(--color-sf-primary), 0.11))), rgba(var(--color-sf-surface));
|
|
547
541
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.11), rgba(var(--color-sf-primary), 0.11)), rgba(var(--color-sf-surface));
|
|
548
542
|
border-bottom: 0;
|
|
549
543
|
border-color: rgba(var(--color-sf-surface));
|
|
@@ -1130,7 +1124,6 @@
|
|
|
1130
1124
|
}
|
|
1131
1125
|
|
|
1132
1126
|
.e-ddl.e-popup {
|
|
1133
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.11)), to(rgba(var(--color-sf-primary), 0.11))), rgba(var(--color-sf-surface));
|
|
1134
1127
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.11), rgba(var(--color-sf-primary), 0.11)), rgba(var(--color-sf-surface));
|
|
1135
1128
|
border-radius: calc(var(--e-radius) * 0.25);
|
|
1136
1129
|
position: absolute;
|
|
@@ -2012,7 +2005,6 @@ ejs-dropdownlist {
|
|
|
2012
2005
|
/* 15px */
|
|
2013
2006
|
/* 16px */
|
|
2014
2007
|
.e-ddt .e-chips {
|
|
2015
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.05)), to(rgba(var(--color-sf-primary), 0.05))), rgba(var(--color-sf-surface));
|
|
2016
2008
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.05), rgba(var(--color-sf-primary), 0.05)), rgba(var(--color-sf-surface));
|
|
2017
2009
|
border-color: rgba(var(--color-sf-outline));
|
|
2018
2010
|
border: 1px solid;
|
|
@@ -2027,7 +2019,6 @@ ejs-dropdownlist {
|
|
|
2027
2019
|
color: #757575;
|
|
2028
2020
|
}
|
|
2029
2021
|
.e-ddt.e-popup {
|
|
2030
|
-
background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.11)), to(rgba(var(--color-sf-primary), 0.11))), rgba(var(--color-sf-surface));
|
|
2031
2022
|
background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.11), rgba(var(--color-sf-primary), 0.11)), rgba(var(--color-sf-surface));
|
|
2032
2023
|
border-color: rgba(var(--color-sf-outline-variant));
|
|
2033
2024
|
}
|