@syncfusion/ej2-dropdowns 29.1.40 → 29.2.4
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 +229 -96
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +240 -105
- 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 +12 -12
- package/src/auto-complete/auto-complete.d.ts +1 -0
- package/src/auto-complete/auto-complete.js +9 -1
- package/src/combo-box/combo-box-model.d.ts +0 -8
- package/src/combo-box/combo-box.d.ts +0 -7
- package/src/combo-box/combo-box.js +0 -3
- package/src/common/virtual-scroll.js +8 -3
- package/src/drop-down-base/drop-down-base.d.ts +5 -1
- package/src/drop-down-base/drop-down-base.js +54 -10
- package/src/drop-down-list/drop-down-list-model.d.ts +7 -0
- package/src/drop-down-list/drop-down-list.d.ts +7 -0
- package/src/drop-down-list/drop-down-list.js +52 -28
- package/src/drop-down-tree/drop-down-tree.d.ts +1 -0
- package/src/drop-down-tree/drop-down-tree.js +11 -0
- package/src/mention/mention-model.d.ts +7 -0
- package/src/mention/mention.d.ts +8 -0
- package/src/mention/mention.js +29 -16
- package/src/multi-select/multi-select-model.d.ts +7 -0
- package/src/multi-select/multi-select.d.ts +9 -0
- package/src/multi-select/multi-select.js +77 -44
- package/styles/bds-lite.css +1 -1
- package/styles/bds.css +1 -1
- package/styles/multi-select/_bds-definition.scss +1 -0
- package/styles/multi-select/_layout.scss +6 -1
- package/styles/multi-select/_tailwind-definition.scss +1 -0
- package/styles/multi-select/bds.css +1 -1
- package/styles/multi-select/tailwind-dark.css +1 -1
- package/styles/multi-select/tailwind.css +1 -1
- package/styles/tailwind-dark-lite.css +1 -1
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind-lite.css +1 -1
- package/styles/tailwind.css +1 -1
package/src/mention/mention.js
CHANGED
|
@@ -38,7 +38,9 @@ var Mention = /** @class */ (function (_super) {
|
|
|
38
38
|
* @private
|
|
39
39
|
*/
|
|
40
40
|
function Mention(options, element) {
|
|
41
|
-
|
|
41
|
+
var _this = _super.call(this, options, element) || this;
|
|
42
|
+
_this.debounceTimer = null;
|
|
43
|
+
return _this;
|
|
42
44
|
}
|
|
43
45
|
/**
|
|
44
46
|
* When property value changes happened, then onPropertyChanged method will execute the respective changes in this component.
|
|
@@ -473,22 +475,8 @@ var Mention = /** @class */ (function (_super) {
|
|
|
473
475
|
this.range = this.inputElement.ownerDocument.getSelection().getRangeAt(0);
|
|
474
476
|
return this.range;
|
|
475
477
|
};
|
|
476
|
-
Mention.prototype.
|
|
478
|
+
Mention.prototype.performFiltering = function (e) {
|
|
477
479
|
var _this = this;
|
|
478
|
-
this.isDataFetched = false;
|
|
479
|
-
if (isNullOrUndefined(this.list)) {
|
|
480
|
-
_super.prototype.render.call(this);
|
|
481
|
-
this.unWireListEvents();
|
|
482
|
-
this.wireListEvents();
|
|
483
|
-
}
|
|
484
|
-
if (e.type !== 'mousedown' && (e.keyCode === 40 || e.keyCode === 38)) {
|
|
485
|
-
this.queryString = this.queryString === '' ? null : this.queryString;
|
|
486
|
-
this.beforePopupOpen = true;
|
|
487
|
-
this.resetList(this.dataSource, this.fields);
|
|
488
|
-
return;
|
|
489
|
-
}
|
|
490
|
-
this.isSelected = false;
|
|
491
|
-
this.activeIndex = null;
|
|
492
480
|
var eventArgs = {
|
|
493
481
|
preventDefaultAction: false,
|
|
494
482
|
text: this.queryString,
|
|
@@ -507,6 +495,28 @@ var Mention = /** @class */ (function (_super) {
|
|
|
507
495
|
}
|
|
508
496
|
});
|
|
509
497
|
};
|
|
498
|
+
Mention.prototype.searchLists = function (e) {
|
|
499
|
+
this.isDataFetched = false;
|
|
500
|
+
if (isNullOrUndefined(this.list)) {
|
|
501
|
+
_super.prototype.render.call(this);
|
|
502
|
+
this.unWireListEvents();
|
|
503
|
+
this.wireListEvents();
|
|
504
|
+
}
|
|
505
|
+
if (e.type !== 'mousedown' && (e.keyCode === 40 || e.keyCode === 38)) {
|
|
506
|
+
this.queryString = this.queryString === '' ? null : this.queryString;
|
|
507
|
+
this.beforePopupOpen = true;
|
|
508
|
+
this.resetList(this.dataSource, this.fields);
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
this.isSelected = false;
|
|
512
|
+
this.activeIndex = null;
|
|
513
|
+
if (this.queryString !== '' && this.debounceDelay > 0) {
|
|
514
|
+
this.debouncedFiltering(e, this.debounceDelay);
|
|
515
|
+
}
|
|
516
|
+
else {
|
|
517
|
+
this.performFiltering(e);
|
|
518
|
+
}
|
|
519
|
+
};
|
|
510
520
|
Mention.prototype.filterAction = function (dataSource, query, fields) {
|
|
511
521
|
this.beforePopupOpen = true;
|
|
512
522
|
if (this.queryString.length >= this.minLength) {
|
|
@@ -1704,6 +1714,9 @@ var Mention = /** @class */ (function (_super) {
|
|
|
1704
1714
|
__decorate([
|
|
1705
1715
|
Property('300px')
|
|
1706
1716
|
], Mention.prototype, "popupHeight", void 0);
|
|
1717
|
+
__decorate([
|
|
1718
|
+
Property(300)
|
|
1719
|
+
], Mention.prototype, "debounceDelay", void 0);
|
|
1707
1720
|
__decorate([
|
|
1708
1721
|
Property(null)
|
|
1709
1722
|
], Mention.prototype, "displayTemplate", void 0);
|
|
@@ -298,6 +298,13 @@ export interface MultiSelectModel extends DropDownBaseModel{
|
|
|
298
298
|
*/
|
|
299
299
|
allowFiltering?: boolean;
|
|
300
300
|
|
|
301
|
+
/**
|
|
302
|
+
* Specifies the delay time in milliseconds for filtering operations.
|
|
303
|
+
*
|
|
304
|
+
* @default 300
|
|
305
|
+
*/
|
|
306
|
+
debounceDelay?: number;
|
|
307
|
+
|
|
301
308
|
/**
|
|
302
309
|
* Defines whether the popup opens in fullscreen mode on mobile devices when filtering is enabled. When set to false, the popup will display similarly on both mobile and desktop devices.
|
|
303
310
|
*
|
|
@@ -74,6 +74,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
74
74
|
private isBlurDispatching;
|
|
75
75
|
private isFilterPrevented;
|
|
76
76
|
private isFilteringAction;
|
|
77
|
+
private headerTemplateHeight;
|
|
77
78
|
/**
|
|
78
79
|
* The `fields` property maps the columns of the data table and binds the data to the component.
|
|
79
80
|
* * text - Maps the text column from data table for each list item.
|
|
@@ -341,6 +342,12 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
341
342
|
* @default null
|
|
342
343
|
*/
|
|
343
344
|
allowFiltering: boolean;
|
|
345
|
+
/**
|
|
346
|
+
* Specifies the delay time in milliseconds for filtering operations.
|
|
347
|
+
*
|
|
348
|
+
* @default 300
|
|
349
|
+
*/
|
|
350
|
+
debounceDelay: number;
|
|
344
351
|
/**
|
|
345
352
|
* Defines whether the popup opens in fullscreen mode on mobile devices when filtering is enabled. When set to false, the popup will display similarly on both mobile and desktop devices.
|
|
346
353
|
*
|
|
@@ -663,6 +670,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
663
670
|
private preventSetCurrentData;
|
|
664
671
|
private virtualCustomData;
|
|
665
672
|
private isSelectAllLoop;
|
|
673
|
+
private initialPopupHeight;
|
|
666
674
|
private enableRTL;
|
|
667
675
|
requiredModules(): ModuleDeclaration[];
|
|
668
676
|
private updateHTMLAttribute;
|
|
@@ -807,6 +815,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
807
815
|
protected wireEvent(): void;
|
|
808
816
|
private onInput;
|
|
809
817
|
private pasteHandler;
|
|
818
|
+
protected performFiltering(e: KeyboardEventArgs | MouseEvent): void;
|
|
810
819
|
protected search(e: KeyboardEventArgs): void;
|
|
811
820
|
protected preRender(): void;
|
|
812
821
|
protected getLocaleName(): string;
|
|
@@ -615,7 +615,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
615
615
|
valuecheck = this.presentItemValue(this.ulElement);
|
|
616
616
|
}
|
|
617
617
|
if (valuecheck.length > 0 && this.dataSource instanceof DataManager && !isNullOrUndefined(this.value)
|
|
618
|
-
&& this.listData != null) {
|
|
618
|
+
&& this.listData != null && !(valuecheck.length === 1 && valuecheck[0] == null)) {
|
|
619
619
|
this.isaddNonPresentItems = true;
|
|
620
620
|
this.addNonPresentItems(valuecheck, this.ulElement, this.listData);
|
|
621
621
|
this.isaddNonPresentItems = false;
|
|
@@ -1493,7 +1493,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
1493
1493
|
MultiSelect.prototype.pageDownSelection = function (steps, isVirtualKeyAction) {
|
|
1494
1494
|
var list = this.getItems();
|
|
1495
1495
|
var collection = this.list.querySelectorAll('li.'
|
|
1496
|
-
+ dropDownBaseClasses.li + ':not(.' + HIDE_LIST + ')' + ':not(.e-reorder-hide)');
|
|
1496
|
+
+ dropDownBaseClasses.li + ':not(.' + HIDE_LIST + ')' + ':not(.e-reorder-hide)' + ':not(.e-virtual-list-end)');
|
|
1497
1497
|
var previousItem = steps <= collection.length ? collection[steps - 1] : collection[collection.length - 1];
|
|
1498
1498
|
if (this.fields.disabled && previousItem && !this.enableVirtualization) {
|
|
1499
1499
|
while (previousItem && (previousItem.classList.contains('e-disabled') || previousItem.classList.contains(HIDE_LIST) ||
|
|
@@ -1510,6 +1510,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
1510
1510
|
if (this.enableVirtualization && isVirtualKeyAction) {
|
|
1511
1511
|
previousItem = steps <= list.length ? this.liCollections[steps] : this.liCollections[list.length - 1];
|
|
1512
1512
|
}
|
|
1513
|
+
if (this.enableVirtualization && previousItem && previousItem.classList.contains('e-virtual-list-end')) {
|
|
1514
|
+
previousItem = collection[collection.length - 1];
|
|
1515
|
+
}
|
|
1513
1516
|
this.isKeyBoardAction = true;
|
|
1514
1517
|
this.addListFocus(previousItem);
|
|
1515
1518
|
this.previousFocusItem = previousItem;
|
|
@@ -1994,9 +1997,10 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
1994
1997
|
var selectedListMargin = selectedLI && !isNaN(parseInt(window.getComputedStyle(selectedLI).marginBottom, 10)) ?
|
|
1995
1998
|
parseInt(window.getComputedStyle(selectedLI).marginBottom, 10) : 0;
|
|
1996
1999
|
this.isUpwardScrolling = false;
|
|
1997
|
-
var virtualListCount = this.list.querySelectorAll('.e-virtual-list').length;
|
|
1998
|
-
var
|
|
1999
|
-
|
|
2000
|
+
var virtualListCount = this.list.querySelectorAll('.e-virtual-list:not(.e-virtual-list-end)').length;
|
|
2001
|
+
var liItems = this.list.querySelectorAll('li:not(.e-virtual-list-end)');
|
|
2002
|
+
var lastElementValue = liItems && liItems.length > 0 && liItems[liItems.length - 1] ?
|
|
2003
|
+
liItems[liItems.length - 1].getAttribute('data-value') : null;
|
|
2000
2004
|
var selectedLiOffsetTop = this.virtualListInfo && this.virtualListInfo.startIndex ?
|
|
2001
2005
|
selectedLI.offsetTop + (this.virtualListInfo.startIndex * (selectedLI.offsetHeight + selectedListMargin))
|
|
2002
2006
|
: selectedLI.offsetTop;
|
|
@@ -2052,7 +2056,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2052
2056
|
};
|
|
2053
2057
|
MultiSelect.prototype.scrollTop = function (selectedLI, activeIndex, keyCode) {
|
|
2054
2058
|
if (keyCode === void 0) { keyCode = null; }
|
|
2055
|
-
var virtualListCount = this.list.querySelectorAll('.e-virtual-list').length;
|
|
2059
|
+
var virtualListCount = this.list.querySelectorAll('.e-virtual-list:not(.e-virtual-list-end)').length;
|
|
2056
2060
|
var selectedListMargin = selectedLI && !isNaN(parseInt(window.getComputedStyle(selectedLI).marginBottom, 10)) ?
|
|
2057
2061
|
parseInt(window.getComputedStyle(selectedLI).marginBottom, 10) : 0;
|
|
2058
2062
|
var selectedLiOffsetTop = (this.virtualListInfo && this.virtualListInfo.startIndex) ?
|
|
@@ -2281,11 +2285,11 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2281
2285
|
if (this.list) {
|
|
2282
2286
|
var elements = this.list.querySelectorAll('li.'
|
|
2283
2287
|
+ dropDownBaseClasses.li
|
|
2284
|
-
+ ':not(.' + HIDE_LIST + ')' + ':not(.e-reorder-hide)');
|
|
2288
|
+
+ ':not(.' + HIDE_LIST + ')' + ':not(.e-reorder-hide)' + ':not(.e-virtual-list-end)');
|
|
2285
2289
|
if (this.mode === 'CheckBox' && this.enableGroupCheckBox && !isNullOrUndefined(this.fields.groupBy)) {
|
|
2286
2290
|
elements = this.list.querySelectorAll('li.'
|
|
2287
2291
|
+ dropDownBaseClasses.li + ',li.' + dropDownBaseClasses.group
|
|
2288
|
-
+ ':not(.' + HIDE_LIST + ')' + ':not(.e-reorder-hide)');
|
|
2292
|
+
+ ':not(.' + HIDE_LIST + ')' + ':not(.e-reorder-hide)' + ':not(.e-virtual-list-end)');
|
|
2289
2293
|
}
|
|
2290
2294
|
var selectedElem = this.list.querySelector('li.' + dropDownBaseClasses.focus);
|
|
2291
2295
|
if (this.enableVirtualization && isVirtualKeyAction && !isNullOrUndefined(this.currentFocuedListElement)) {
|
|
@@ -2984,7 +2988,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2984
2988
|
var inputWidth = (this.componentWrapper.offsetWidth) * parseFloat(width) / 100;
|
|
2985
2989
|
width = inputWidth.toString() + 'px';
|
|
2986
2990
|
}
|
|
2987
|
-
return width;
|
|
2991
|
+
return (this.allowResize && this.resizeWidth) ? this.resizeWidth + 'px' : width;
|
|
2988
2992
|
};
|
|
2989
2993
|
MultiSelect.prototype.mouseIn = function () {
|
|
2990
2994
|
if (this.enabled && !this.readonly) {
|
|
@@ -3259,7 +3263,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3259
3263
|
MultiSelect.prototype.updateInitialData = function () {
|
|
3260
3264
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3261
3265
|
var currentData = this.selectData;
|
|
3262
|
-
var ulElement = this.renderItems(currentData, this.fields);
|
|
3266
|
+
var ulElement = this.renderItems(currentData, this.fields, false, this.isClearAllAction);
|
|
3263
3267
|
this.list.scrollTop = 0;
|
|
3264
3268
|
this.virtualListInfo = {
|
|
3265
3269
|
currentPageNumber: null,
|
|
@@ -3480,8 +3484,40 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3480
3484
|
_this.search(event);
|
|
3481
3485
|
});
|
|
3482
3486
|
};
|
|
3483
|
-
MultiSelect.prototype.
|
|
3487
|
+
MultiSelect.prototype.performFiltering = function (e) {
|
|
3484
3488
|
var _this = this;
|
|
3489
|
+
var eventArgs = {
|
|
3490
|
+
preventDefaultAction: false,
|
|
3491
|
+
text: this.targetElement(),
|
|
3492
|
+
updateData: function (dataSource, query, fields) {
|
|
3493
|
+
if (eventArgs.cancel) {
|
|
3494
|
+
return;
|
|
3495
|
+
}
|
|
3496
|
+
_this.isFiltered = true;
|
|
3497
|
+
_this.customFilterQuery = query;
|
|
3498
|
+
_this.remoteFilterAction = true;
|
|
3499
|
+
_this.isCustomFiltering = true;
|
|
3500
|
+
_this.dataUpdater(dataSource, query, fields);
|
|
3501
|
+
},
|
|
3502
|
+
event: e,
|
|
3503
|
+
cancel: false
|
|
3504
|
+
};
|
|
3505
|
+
this.trigger('filtering', eventArgs, function (eventArgs) {
|
|
3506
|
+
_this.isFilterPrevented = eventArgs.cancel;
|
|
3507
|
+
if (!eventArgs.cancel) {
|
|
3508
|
+
if (!_this.isFiltered && !eventArgs.preventDefaultAction) {
|
|
3509
|
+
_this.filterAction = true;
|
|
3510
|
+
_this.isFilteringAction = true;
|
|
3511
|
+
if (_this.dataSource instanceof DataManager && _this.allowCustomValue) {
|
|
3512
|
+
_this.isCustomRendered = false;
|
|
3513
|
+
}
|
|
3514
|
+
_this.dataUpdater(_this.dataSource, null, _this.fields);
|
|
3515
|
+
_this.isFilteringAction = false;
|
|
3516
|
+
}
|
|
3517
|
+
}
|
|
3518
|
+
});
|
|
3519
|
+
};
|
|
3520
|
+
MultiSelect.prototype.search = function (e) {
|
|
3485
3521
|
this.preventSetCurrentData = false;
|
|
3486
3522
|
this.firstItem = this.dataSource && this.dataSource.length > 0 ? this.dataSource[0] : null;
|
|
3487
3523
|
if (!isNullOrUndefined(e)) {
|
|
@@ -3502,36 +3538,12 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3502
3538
|
}
|
|
3503
3539
|
this.checkAndResetCache();
|
|
3504
3540
|
this.isRequesting = false;
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
}
|
|
3512
|
-
_this.isFiltered = true;
|
|
3513
|
-
_this.customFilterQuery = query;
|
|
3514
|
-
_this.remoteFilterAction = true;
|
|
3515
|
-
_this.isCustomFiltering = true;
|
|
3516
|
-
_this.dataUpdater(dataSource, query, fields);
|
|
3517
|
-
},
|
|
3518
|
-
event: e,
|
|
3519
|
-
cancel: false
|
|
3520
|
-
};
|
|
3521
|
-
this.trigger('filtering', eventArgs_1, function (eventArgs) {
|
|
3522
|
-
_this.isFilterPrevented = eventArgs.cancel;
|
|
3523
|
-
if (!eventArgs.cancel) {
|
|
3524
|
-
if (!_this.isFiltered && !eventArgs.preventDefaultAction) {
|
|
3525
|
-
_this.filterAction = true;
|
|
3526
|
-
_this.isFilteringAction = true;
|
|
3527
|
-
if (_this.dataSource instanceof DataManager && _this.allowCustomValue) {
|
|
3528
|
-
_this.isCustomRendered = false;
|
|
3529
|
-
}
|
|
3530
|
-
_this.dataUpdater(_this.dataSource, null, _this.fields);
|
|
3531
|
-
_this.isFilteringAction = false;
|
|
3532
|
-
}
|
|
3533
|
-
}
|
|
3534
|
-
});
|
|
3541
|
+
if (this.targetElement() !== '' && this.debounceDelay > 0) {
|
|
3542
|
+
this.debouncedFiltering(e, this.debounceDelay);
|
|
3543
|
+
}
|
|
3544
|
+
else {
|
|
3545
|
+
this.performFiltering(e);
|
|
3546
|
+
}
|
|
3535
3547
|
}
|
|
3536
3548
|
else if (this.allowCustomValue) {
|
|
3537
3549
|
var query = new Query();
|
|
@@ -4645,7 +4657,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
4645
4657
|
};
|
|
4646
4658
|
MultiSelect.prototype.checkClearIconWidth = function () {
|
|
4647
4659
|
if (this.showClearButton) {
|
|
4648
|
-
this.clearIconWidth = parseInt(window.getComputedStyle(this.overAllClear).width, 10);
|
|
4660
|
+
this.clearIconWidth = parseInt(window.getComputedStyle(this.overAllClear).width, 10) || this.overAllClear.offsetWidth;
|
|
4649
4661
|
}
|
|
4650
4662
|
};
|
|
4651
4663
|
MultiSelect.prototype.updateRemainWidth = function (viewWrapper, totalWidth) {
|
|
@@ -5564,7 +5576,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
5564
5576
|
_this.list.parentElement.style.paddingBottom = '';
|
|
5565
5577
|
var overAllHeight = parseInt(_this.popupHeight, 10);
|
|
5566
5578
|
_this.list.style.maxHeight = formatUnit(overAllHeight);
|
|
5567
|
-
_this.
|
|
5579
|
+
if (_this.popupHeight.toString().toLowerCase() !== 'auto' && _this.initialPopupHeight >= (parseInt(_this.popupHeight.toString(), 10) - 2)) {
|
|
5580
|
+
_this.list.parentElement.style.height = formatUnit(_this.popupHeight);
|
|
5581
|
+
}
|
|
5568
5582
|
_this.list.parentElement.style.maxHeight = formatUnit(_this.popupHeight);
|
|
5569
5583
|
}
|
|
5570
5584
|
if (_this.resizer) {
|
|
@@ -5892,7 +5906,8 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
5892
5906
|
}
|
|
5893
5907
|
if (this.list && this.list.parentElement) {
|
|
5894
5908
|
this.list.parentElement.classList.add('e-resize');
|
|
5895
|
-
|
|
5909
|
+
this.initialPopupHeight = this.list.parentElement.clientHeight;
|
|
5910
|
+
if (this.popupHeight.toString().toLowerCase() !== 'auto' && this.initialPopupHeight >= (parseInt(this.popupHeight.toString(), 10) - 2)) {
|
|
5896
5911
|
this.list.parentElement.style.height = '100%';
|
|
5897
5912
|
}
|
|
5898
5913
|
this.list.parentElement.style.boxSizing = 'border-box'; // Ensures padding doesn't affect element size
|
|
@@ -5903,6 +5918,18 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
5903
5918
|
this.list.parentElement.style.height = this.resizeHeight + 'px';
|
|
5904
5919
|
this.list.parentElement.style.maxHeight = this.resizeHeight + 'px';
|
|
5905
5920
|
this.list.style.maxHeight = this.resizeHeight + "px";
|
|
5921
|
+
if (this.headerTemplate) {
|
|
5922
|
+
var headerElem = this.list.parentElement.querySelector('.e-ddl-header');
|
|
5923
|
+
if (headerElem && headerElem.offsetHeight) {
|
|
5924
|
+
this.headerTemplateHeight = headerElem.offsetHeight;
|
|
5925
|
+
}
|
|
5926
|
+
if (this.resizeHeight) {
|
|
5927
|
+
this.list.style.maxHeight = this.resizeHeight - this.headerTemplateHeight - 16 + "px";
|
|
5928
|
+
}
|
|
5929
|
+
else {
|
|
5930
|
+
this.list.style.maxHeight = parseInt(this.list.style.maxHeight, 10) - 16 + "px";
|
|
5931
|
+
}
|
|
5932
|
+
}
|
|
5906
5933
|
}
|
|
5907
5934
|
if (this.resizer) {
|
|
5908
5935
|
EventHandler.add(this.resizer, 'mousedown', this.startResizing, this);
|
|
@@ -5957,6 +5984,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
5957
5984
|
this.list.parentElement.style.height = this.resizeHeight + "px";
|
|
5958
5985
|
this.list.parentElement.style.maxHeight = this.resizeHeight + "px";
|
|
5959
5986
|
this.list.style.maxHeight = this.resizeHeight + "px";
|
|
5987
|
+
if (this.headerTemplate) {
|
|
5988
|
+
this.list.style.maxHeight = this.resizeHeight - this.headerTemplateHeight - 16 + "px";
|
|
5989
|
+
}
|
|
5960
5990
|
if (this.fixedHeaderElement && this.ulElement) {
|
|
5961
5991
|
this.fixedHeaderElement.style.width = this.ulElement.offsetWidth + "px";
|
|
5962
5992
|
}
|
|
@@ -6456,6 +6486,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
6456
6486
|
__decorate([
|
|
6457
6487
|
Property(null)
|
|
6458
6488
|
], MultiSelect.prototype, "allowFiltering", void 0);
|
|
6489
|
+
__decorate([
|
|
6490
|
+
Property(300)
|
|
6491
|
+
], MultiSelect.prototype, "debounceDelay", void 0);
|
|
6459
6492
|
__decorate([
|
|
6460
6493
|
Property(true)
|
|
6461
6494
|
], MultiSelect.prototype, "isDeviceFullScreen", void 0);
|
package/styles/bds-lite.css
CHANGED
|
@@ -1613,7 +1613,7 @@ ejs-dropdownlist {
|
|
|
1613
1613
|
}
|
|
1614
1614
|
|
|
1615
1615
|
.e-multi-select-wrapper .e-delim-values {
|
|
1616
|
-
font-family: "Inter";
|
|
1616
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
1617
1617
|
font-size: 14px;
|
|
1618
1618
|
line-height: 28px;
|
|
1619
1619
|
max-width: 100%;
|
package/styles/bds.css
CHANGED
|
@@ -1979,7 +1979,7 @@ ejs-dropdownlist {
|
|
|
1979
1979
|
}
|
|
1980
1980
|
|
|
1981
1981
|
.e-multi-select-wrapper .e-delim-values {
|
|
1982
|
-
font-family: "Inter";
|
|
1982
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
1983
1983
|
font-size: 14px;
|
|
1984
1984
|
line-height: 28px;
|
|
1985
1985
|
max-width: 100%;
|
|
@@ -199,6 +199,7 @@ $ddl-multi-list-hover-bg-color: $content-bg-color-hover !default;
|
|
|
199
199
|
$ddl-delim-font-color: $content-text-color !default;
|
|
200
200
|
$ddl-close-icon-color: $icon-color !default;
|
|
201
201
|
$ddl-close-icon-hover-color: $icon-color-hover !default;
|
|
202
|
+
$multi-select-delim-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', arial, 'Noto Sans', 'Liberation Sans', sans-serif, 'apple color emoji', 'Segoe UI emoji', 'Segoe UI Symbol', 'Noto color emoji' !default;
|
|
202
203
|
|
|
203
204
|
@include export-module('multiselect-bds') {
|
|
204
205
|
.e-multi-select-wrapper .e-chips-collection .e-chips .e-chips-close.e-icon::before {
|
|
@@ -411,7 +411,12 @@
|
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
.e-multi-select-wrapper .e-delim-values {
|
|
414
|
-
|
|
414
|
+
@if $ddl-multiselect-skin-name == 'tailwind' {
|
|
415
|
+
font-family: $multi-select-delim-font-family;
|
|
416
|
+
}
|
|
417
|
+
@else {
|
|
418
|
+
font-family: $ddl-chip-font-family;
|
|
419
|
+
}
|
|
415
420
|
font-size: $ddl-delim-font-size;
|
|
416
421
|
line-height: $ddl-delimviewheight;
|
|
417
422
|
max-width: 100%;
|
|
@@ -199,6 +199,7 @@ $ddl-multi-list-hover-bg-color: $content-bg-color-hover !default;
|
|
|
199
199
|
$ddl-delim-font-color: $content-text-color !default;
|
|
200
200
|
$ddl-close-icon-color: $icon-color !default;
|
|
201
201
|
$ddl-close-icon-hover-color: $icon-color-hover !default;
|
|
202
|
+
$multi-select-delim-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', arial, 'Noto Sans', 'Liberation Sans', sans-serif, 'apple color emoji', 'Segoe UI emoji', 'Segoe UI Symbol', 'Noto color emoji' !default;
|
|
202
203
|
|
|
203
204
|
@include export-module('multiselect-tailwind') {
|
|
204
205
|
.e-multi-select-wrapper .e-chips-collection .e-chips .e-chips-close.e-icon::before {
|
|
@@ -607,7 +607,7 @@
|
|
|
607
607
|
}
|
|
608
608
|
|
|
609
609
|
.e-multi-select-wrapper .e-delim-values {
|
|
610
|
-
font-family: "Inter";
|
|
610
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
611
611
|
font-size: 14px;
|
|
612
612
|
line-height: 28px;
|
|
613
613
|
max-width: 100%;
|
|
@@ -457,7 +457,7 @@
|
|
|
457
457
|
}
|
|
458
458
|
|
|
459
459
|
.e-multi-select-wrapper .e-delim-values {
|
|
460
|
-
font-family: "Inter";
|
|
460
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
461
461
|
font-size: 14px;
|
|
462
462
|
line-height: 28px;
|
|
463
463
|
max-width: 100%;
|
|
@@ -457,7 +457,7 @@
|
|
|
457
457
|
}
|
|
458
458
|
|
|
459
459
|
.e-multi-select-wrapper .e-delim-values {
|
|
460
|
-
font-family: "Inter";
|
|
460
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
461
461
|
font-size: 14px;
|
|
462
462
|
line-height: 28px;
|
|
463
463
|
max-width: 100%;
|
|
@@ -1467,7 +1467,7 @@ ejs-dropdownlist {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
|
|
1469
1469
|
.e-multi-select-wrapper .e-delim-values {
|
|
1470
|
-
font-family: "Inter";
|
|
1470
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
1471
1471
|
font-size: 14px;
|
|
1472
1472
|
line-height: 28px;
|
|
1473
1473
|
max-width: 100%;
|
package/styles/tailwind-dark.css
CHANGED
|
@@ -1833,7 +1833,7 @@ ejs-dropdownlist {
|
|
|
1833
1833
|
}
|
|
1834
1834
|
|
|
1835
1835
|
.e-multi-select-wrapper .e-delim-values {
|
|
1836
|
-
font-family: "Inter";
|
|
1836
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
1837
1837
|
font-size: 14px;
|
|
1838
1838
|
line-height: 28px;
|
|
1839
1839
|
max-width: 100%;
|
package/styles/tailwind-lite.css
CHANGED
|
@@ -1467,7 +1467,7 @@ ejs-dropdownlist {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
|
|
1469
1469
|
.e-multi-select-wrapper .e-delim-values {
|
|
1470
|
-
font-family: "Inter";
|
|
1470
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
1471
1471
|
font-size: 14px;
|
|
1472
1472
|
line-height: 28px;
|
|
1473
1473
|
max-width: 100%;
|
package/styles/tailwind.css
CHANGED
|
@@ -1833,7 +1833,7 @@ ejs-dropdownlist {
|
|
|
1833
1833
|
}
|
|
1834
1834
|
|
|
1835
1835
|
.e-multi-select-wrapper .e-delim-values {
|
|
1836
|
-
font-family: "Inter";
|
|
1836
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
1837
1837
|
font-size: 14px;
|
|
1838
1838
|
line-height: 28px;
|
|
1839
1839
|
max-width: 100%;
|