@syncfusion/ej2-dropdowns 31.1.20 → 31.1.23
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 +3 -3
- package/dist/ej2-dropdowns.umd.min.js +3 -3
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +79 -11
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +106 -37
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +3 -3
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +2 -2
- package/package.json +4 -4
- package/src/combo-box/combo-box.js +1 -1
- package/src/drop-down-base/drop-down-base.js +10 -3
- package/src/drop-down-list/drop-down-list.js +45 -29
- package/src/drop-down-tree/drop-down-tree.js +11 -1
- package/src/multi-select/multi-select.d.ts +2 -0
- package/src/multi-select/multi-select.js +39 -3
- package/styles/bootstrap4-lite.css +1 -0
- package/styles/bootstrap4.css +5 -4
- package/styles/bootstrap5.3-lite.css +2 -0
- package/styles/bootstrap5.3.css +4 -2
- package/styles/fluent-dark.css +3 -3
- package/styles/fluent.css +3 -3
- package/styles/fluent2-lite.css +2 -0
- package/styles/fluent2.css +4 -2
- package/styles/highcontrast-light.css +0 -1
- package/styles/highcontrast-lite.css +1 -0
- package/styles/highcontrast.css +3 -3
- package/styles/material.css +2 -2
- package/styles/multi-select/_bigger.scss +4 -4
- package/styles/multi-select/_bootstrap4-definition.scss +1 -1
- package/styles/multi-select/_bootstrap5.3-definition.scss +1 -1
- package/styles/multi-select/_fluent-definition.scss +1 -1
- package/styles/multi-select/_fluent2-definition.scss +1 -1
- package/styles/multi-select/_highcontrast-definition.scss +1 -1
- package/styles/multi-select/_material-definition.scss +1 -1
- package/styles/multi-select/_tailwind-definition.scss +2 -2
- package/styles/multi-select/_tailwind3-definition.scss +1 -1
- package/styles/multi-select/bootstrap4.css +5 -4
- package/styles/multi-select/bootstrap5.3.css +4 -2
- package/styles/multi-select/fluent-dark.css +3 -3
- package/styles/multi-select/fluent.css +3 -3
- package/styles/multi-select/fluent2.css +4 -2
- package/styles/multi-select/highcontrast-light.css +0 -1
- package/styles/multi-select/highcontrast.css +3 -3
- package/styles/multi-select/icons/_bootstrap4.scss +1 -0
- package/styles/multi-select/icons/_bootstrap5.3.scss +2 -0
- package/styles/multi-select/icons/_fluent2.scss +2 -0
- package/styles/multi-select/icons/_highcontrast.scss +1 -0
- package/styles/multi-select/icons/_tailwind3.scss +2 -0
- package/styles/multi-select/material.css +2 -2
- package/styles/multi-select/tailwind-dark.css +5 -5
- package/styles/multi-select/tailwind.css +5 -5
- package/styles/multi-select/tailwind3.css +4 -2
- package/styles/tailwind-dark-lite.css +1 -1
- package/styles/tailwind-dark.css +5 -5
- package/styles/tailwind-lite.css +1 -1
- package/styles/tailwind.css +5 -5
- package/styles/tailwind3-lite.css +2 -0
- package/styles/tailwind3.css +4 -2
|
@@ -1065,7 +1065,14 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1065
1065
|
var item = dataSource_1[_i];
|
|
1066
1066
|
if (!isNullOrUndefined(item)) {
|
|
1067
1067
|
if (ignoreAccent) {
|
|
1068
|
-
|
|
1068
|
+
if (ignoreCase) {
|
|
1069
|
+
if (this.checkIgnoreCase(String(item), text)) {
|
|
1070
|
+
value = this.checkingAccent(String(item), text, ignoreCase);
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
else {
|
|
1074
|
+
value = this.checkingAccent(String(item), text, ignoreCase);
|
|
1075
|
+
}
|
|
1069
1076
|
}
|
|
1070
1077
|
else {
|
|
1071
1078
|
if (ignoreCase) {
|
|
@@ -1537,9 +1544,9 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1537
1544
|
for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
|
|
1538
1545
|
var option = options_1[_i];
|
|
1539
1546
|
var json = {};
|
|
1540
|
-
json[fields.text] = option.
|
|
1547
|
+
json[fields.text] = option.innerHTML;
|
|
1541
1548
|
json[fields.value] = !isNullOrUndefined(option.getAttribute(fields.value)) ?
|
|
1542
|
-
option.getAttribute(fields.value) : option.
|
|
1549
|
+
option.getAttribute(fields.value) : option.innerHTML;
|
|
1543
1550
|
if (!isNullOrUndefined(category)) {
|
|
1544
1551
|
json[fields.groupBy] = category;
|
|
1545
1552
|
}
|
|
@@ -3317,10 +3324,10 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3317
3324
|
DropDownList.prototype.floatLabelChange = function () {
|
|
3318
3325
|
if (this.getModuleName() === 'dropdownlist' && this.floatLabelType === 'Auto') {
|
|
3319
3326
|
var floatElement = this.inputWrapper.container.querySelector('.e-float-text');
|
|
3320
|
-
if (this.inputElement.value !== '' || this.isInteracted) {
|
|
3327
|
+
if (floatElement && this.inputElement.value !== '' || this.isInteracted) {
|
|
3321
3328
|
classList(floatElement, ['e-label-top'], ['e-label-bottom']);
|
|
3322
3329
|
}
|
|
3323
|
-
else {
|
|
3330
|
+
else if (floatElement) {
|
|
3324
3331
|
classList(floatElement, ['e-label-bottom'], ['e-label-top']);
|
|
3325
3332
|
}
|
|
3326
3333
|
}
|
|
@@ -5735,29 +5742,29 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5735
5742
|
this.trigger('beforeOpen', args, function (args) {
|
|
5736
5743
|
var initialPopupHeight;
|
|
5737
5744
|
if (!args.cancel) {
|
|
5738
|
-
var
|
|
5745
|
+
var popupEle_1 = _this.createElement('div', {
|
|
5739
5746
|
id: _this.element.id + '_popup', className: 'e-ddl e-popup ' + (_this.cssClass !== null ? _this.cssClass : '')
|
|
5740
5747
|
});
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
var searchBox = _this.setSearchBox(
|
|
5748
|
+
popupEle_1.setAttribute('aria-label', _this.element.id);
|
|
5749
|
+
popupEle_1.setAttribute('role', 'dialog');
|
|
5750
|
+
var searchBox = _this.setSearchBox(popupEle_1);
|
|
5744
5751
|
_this.listContainerHeight = _this.allowFiltering && _this.getModuleName() === 'dropdownlist' && Browser.isDevice && _this.isDeviceFullScreen ?
|
|
5745
5752
|
formatUnit(Math.round(window.outerHeight).toString() + 'px') : formatUnit(_this.popupHeight);
|
|
5746
5753
|
if (_this.headerTemplate) {
|
|
5747
|
-
_this.setHeaderTemplate(
|
|
5754
|
+
_this.setHeaderTemplate(popupEle_1);
|
|
5748
5755
|
_this.isUpdateHeaderHeight = _this.header.offsetHeight !== 0;
|
|
5749
5756
|
}
|
|
5750
|
-
append([_this.list],
|
|
5757
|
+
append([_this.list], popupEle_1);
|
|
5751
5758
|
if (_this.footerTemplate) {
|
|
5752
|
-
_this.setFooterTemplate(
|
|
5759
|
+
_this.setFooterTemplate(popupEle_1);
|
|
5753
5760
|
_this.isUpdateFooterHeight = _this.footer.offsetHeight !== 0;
|
|
5754
5761
|
}
|
|
5755
|
-
document.body.appendChild(
|
|
5756
|
-
|
|
5757
|
-
initialPopupHeight =
|
|
5762
|
+
document.body.appendChild(popupEle_1);
|
|
5763
|
+
popupEle_1.style.top = '0px';
|
|
5764
|
+
initialPopupHeight = popupEle_1.clientHeight;
|
|
5758
5765
|
if (_this.enableVirtualization && (_this.itemTemplate || _this.isAngular)) {
|
|
5759
|
-
var listitems =
|
|
5760
|
-
var virtualListitems =
|
|
5766
|
+
var listitems = popupEle_1.querySelectorAll('li.e-list-item:not(.e-virtual-list)');
|
|
5767
|
+
var virtualListitems = popupEle_1.querySelectorAll('li.e-virtual-list');
|
|
5761
5768
|
var listitemsHeight = listitems && listitems.length > 0 ?
|
|
5762
5769
|
Math.ceil(listitems[0].getBoundingClientRect().height) +
|
|
5763
5770
|
parseInt(window.getComputedStyle(listitems[0]).marginBottom, 10) : 0;
|
|
@@ -5795,14 +5802,14 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5795
5802
|
className: 'e-virtual-ddl'
|
|
5796
5803
|
});
|
|
5797
5804
|
virtualElement.style.cssText = _this.GetVirtualTrackHeight();
|
|
5798
|
-
|
|
5805
|
+
popupEle_1.querySelector('.e-dropdownbase').appendChild(virtualElement);
|
|
5799
5806
|
}
|
|
5800
5807
|
else {
|
|
5801
5808
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5802
5809
|
_this.list.getElementsByClassName('e-virtual-ddl')[0].style = _this.GetVirtualTrackHeight();
|
|
5803
5810
|
}
|
|
5804
5811
|
}
|
|
5805
|
-
|
|
5812
|
+
popupEle_1.style.visibility = 'hidden';
|
|
5806
5813
|
if (_this.popupHeight !== 'auto') {
|
|
5807
5814
|
_this.searchBoxHeight = 0;
|
|
5808
5815
|
if (!isNullOrUndefined(searchBox.container) &&
|
|
@@ -5811,22 +5818,22 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5811
5818
|
_this.listContainerHeight = (parseInt(_this.listContainerHeight, 10) - (_this.searchBoxHeight)).toString() + 'px';
|
|
5812
5819
|
}
|
|
5813
5820
|
if (_this.headerTemplate) {
|
|
5814
|
-
_this.header = _this.header ? _this.header :
|
|
5821
|
+
_this.header = _this.header ? _this.header : popupEle_1.querySelector('.e-ddl-header');
|
|
5815
5822
|
var height = Math.round(_this.header.getBoundingClientRect().height);
|
|
5816
5823
|
_this.listContainerHeight = (parseInt(_this.listContainerHeight, 10) -
|
|
5817
5824
|
(height + _this.searchBoxHeight)).toString() + 'px';
|
|
5818
5825
|
}
|
|
5819
5826
|
if (_this.footerTemplate) {
|
|
5820
|
-
_this.footer = _this.footer ? _this.footer :
|
|
5827
|
+
_this.footer = _this.footer ? _this.footer : popupEle_1.querySelector('.e-ddl-footer');
|
|
5821
5828
|
var height = Math.round(_this.footer.getBoundingClientRect().height);
|
|
5822
5829
|
_this.listContainerHeight = (parseInt(_this.listContainerHeight, 10) -
|
|
5823
5830
|
(height + _this.searchBoxHeight)).toString() + 'px';
|
|
5824
5831
|
}
|
|
5825
5832
|
_this.list.style.maxHeight = (parseInt(_this.listContainerHeight, 10) - 2).toString() + 'px'; // due to box-sizing property
|
|
5826
|
-
|
|
5833
|
+
popupEle_1.style.maxHeight = formatUnit(_this.popupHeight);
|
|
5827
5834
|
}
|
|
5828
5835
|
else {
|
|
5829
|
-
|
|
5836
|
+
popupEle_1.style.height = 'auto';
|
|
5830
5837
|
}
|
|
5831
5838
|
var offsetValue = 0;
|
|
5832
5839
|
var left = void 0;
|
|
@@ -5842,7 +5849,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5842
5849
|
}
|
|
5843
5850
|
if (Browser.isDevice && _this.isDeviceFullScreen && (!_this.allowFiltering && (_this.getModuleName() === 'dropdownlist' ||
|
|
5844
5851
|
(_this.isDropDownClick && _this.getModuleName() === 'combobox')))) {
|
|
5845
|
-
offsetValue = _this.getOffsetValue(
|
|
5852
|
+
offsetValue = _this.getOffsetValue(popupEle_1);
|
|
5846
5853
|
var firstItem = _this.isEmptyList() ? _this.list : _this.liCollections[0];
|
|
5847
5854
|
if (!isNullOrUndefined(_this.inputElement)) {
|
|
5848
5855
|
left = -(parseInt(getComputedStyle(firstItem).textIndent, 10) -
|
|
@@ -5850,10 +5857,10 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5850
5857
|
parseInt(getComputedStyle(_this.inputElement.parentElement).borderLeftWidth, 10));
|
|
5851
5858
|
}
|
|
5852
5859
|
}
|
|
5853
|
-
_this.createPopup(
|
|
5860
|
+
_this.createPopup(popupEle_1, offsetValue, left);
|
|
5854
5861
|
_this.popupContentElement = _this.popupObj.element.querySelector('.e-content');
|
|
5855
5862
|
_this.getFocusElement();
|
|
5856
|
-
_this.checkCollision(
|
|
5863
|
+
_this.checkCollision(popupEle_1);
|
|
5857
5864
|
if (Browser.isDevice) {
|
|
5858
5865
|
if ((parseInt(_this.popupWidth.toString(), 10) > window.outerWidth) &&
|
|
5859
5866
|
!(_this.getModuleName() === 'dropdownlist' && _this.allowFiltering)) {
|
|
@@ -5877,8 +5884,8 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5877
5884
|
EventHandler.add(_this.clearIconElement, 'click', _this.clearText, _this);
|
|
5878
5885
|
}
|
|
5879
5886
|
}
|
|
5880
|
-
|
|
5881
|
-
addClass([
|
|
5887
|
+
popupEle_1.style.visibility = 'visible';
|
|
5888
|
+
addClass([popupEle_1], 'e-popup-close');
|
|
5882
5889
|
var scrollParentElements = _this.popupObj.getScrollableParent(_this.inputWrapper.container);
|
|
5883
5890
|
for (var _i = 0, scrollParentElements_1 = scrollParentElements; _i < scrollParentElements_1.length; _i++) {
|
|
5884
5891
|
var element = scrollParentElements_1[_i];
|
|
@@ -5958,7 +5965,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5958
5965
|
}
|
|
5959
5966
|
});
|
|
5960
5967
|
if (_this.allowResize && (_this.getModuleName() !== 'dropdownlist' || !(Browser.isDevice && _this.isDeviceFullScreen && _this.allowFiltering))) {
|
|
5961
|
-
var
|
|
5968
|
+
var resizePaddingBottom_1 = 16;
|
|
5962
5969
|
// Create the resizer div
|
|
5963
5970
|
_this.resizer = _this.createElement('div', {
|
|
5964
5971
|
id: _this.element.id + '_resize-popup',
|
|
@@ -5970,9 +5977,25 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5970
5977
|
if (_this.popupHeight.toString().toLowerCase() !== 'auto' && initialPopupHeight >= (parseInt(_this.popupHeight.toString(), 10) - 2)) {
|
|
5971
5978
|
_this.list.parentElement.style.height = '100%';
|
|
5972
5979
|
}
|
|
5973
|
-
_this.list.parentElement.style.paddingBottom = (_this.getModuleName() === 'dropdownlist' && _this.allowFiltering && _this.searchBoxHeight) ? (_this.searchBoxHeight +
|
|
5974
|
-
if (_this.
|
|
5975
|
-
|
|
5980
|
+
_this.list.parentElement.style.paddingBottom = (_this.getModuleName() === 'dropdownlist' && _this.allowFiltering && _this.searchBoxHeight) ? (_this.searchBoxHeight + resizePaddingBottom_1).toString() + 'px' : resizePaddingBottom_1.toString() + 'px';
|
|
5981
|
+
if (_this.isReact && _this.footer) {
|
|
5982
|
+
var listMaxHeight_1 = _this.list.style.maxHeight;
|
|
5983
|
+
var listParentElementMaxHeight_1 = _this.list.parentElement.style.maxHeight;
|
|
5984
|
+
var containerHeight_1 = _this.listContainerHeight;
|
|
5985
|
+
setTimeout(function () {
|
|
5986
|
+
_this.footer = _this.footer ? _this.footer : popupEle_1.querySelector('.e-ddl-footer');
|
|
5987
|
+
var height = Math.round(_this.footer.getBoundingClientRect().height);
|
|
5988
|
+
if (height > 0) {
|
|
5989
|
+
containerHeight_1 = (parseInt(containerHeight_1, 10) - height).toString() + 'px';
|
|
5990
|
+
listMaxHeight_1 = (parseInt(containerHeight_1, 10) - 2).toString() + 'px';
|
|
5991
|
+
_this.list.parentElement.style.paddingBottom = ((parseInt(listParentElementMaxHeight_1, 10) - parseInt(listMaxHeight_1, 10)) + resizePaddingBottom_1).toString() + 'px';
|
|
5992
|
+
}
|
|
5993
|
+
}, 1);
|
|
5994
|
+
}
|
|
5995
|
+
else {
|
|
5996
|
+
if (_this.header || _this.footer || _this.itemTemplate) {
|
|
5997
|
+
_this.list.parentElement.style.paddingBottom = ((parseInt(_this.list.parentElement.style.maxHeight, 10) - parseInt(_this.list.style.maxHeight, 10)) + resizePaddingBottom_1).toString() + 'px';
|
|
5998
|
+
}
|
|
5976
5999
|
}
|
|
5977
6000
|
_this.list.parentElement.appendChild(_this.resizer);
|
|
5978
6001
|
//hold the popup resize
|
|
@@ -8858,8 +8881,14 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
8858
8881
|
return remainElement;
|
|
8859
8882
|
};
|
|
8860
8883
|
DropDownTree.prototype.getOverflowVal = function (index) {
|
|
8884
|
+
var textSelected;
|
|
8861
8885
|
var selectedData = this.getSelectedData(this.value[parseInt(index.toString(), 10)]);
|
|
8862
|
-
|
|
8886
|
+
var node = this.treeObj.getNode(this.value[index]);
|
|
8887
|
+
textSelected = getValue(this.treeSettings.loadOnDemand ? this.fields.text : 'text', selectedData);
|
|
8888
|
+
if (isNullOrUndefined(textSelected) && !isNullOrUndefined(node.text)) {
|
|
8889
|
+
textSelected = node.text.toString();
|
|
8890
|
+
}
|
|
8891
|
+
return textSelected;
|
|
8863
8892
|
};
|
|
8864
8893
|
DropDownTree.prototype.updateDelimMode = function () {
|
|
8865
8894
|
if (this.mode !== 'Box') {
|
|
@@ -10216,7 +10245,11 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
10216
10245
|
var compiledString = this.initializeValueTemplate();
|
|
10217
10246
|
for (var i = 0, len = this.value.length; i < len; i++) {
|
|
10218
10247
|
selectedData = this.getSelectedData(this.value[i]);
|
|
10248
|
+
var node = this.treeObj.getNode(this.value[i]);
|
|
10219
10249
|
text = getValue(this.treeSettings.loadOnDemand ? this.fields.text : 'text', selectedData);
|
|
10250
|
+
if (isNullOrUndefined(text) && !isNullOrUndefined(node.text)) {
|
|
10251
|
+
text = node.text.toString();
|
|
10252
|
+
}
|
|
10220
10253
|
this.selectedText.push(text);
|
|
10221
10254
|
temp = this.selectedText[this.selectedText.length - 1];
|
|
10222
10255
|
if (this.selectedText.length > 1) {
|
|
@@ -11912,7 +11945,7 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
11912
11945
|
}
|
|
11913
11946
|
};
|
|
11914
11947
|
ComboBox.prototype.getValueByText = function (text) {
|
|
11915
|
-
return _super.prototype.getValueByText.call(this, text,
|
|
11948
|
+
return _super.prototype.getValueByText.call(this, text, this.ignoreCase, this.ignoreAccent);
|
|
11916
11949
|
};
|
|
11917
11950
|
ComboBox.prototype.unWireEvent = function () {
|
|
11918
11951
|
if (this.getModuleName() === 'combobox') {
|
|
@@ -14201,6 +14234,11 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14201
14234
|
this.removeFocus();
|
|
14202
14235
|
}
|
|
14203
14236
|
};
|
|
14237
|
+
MultiSelect.prototype.secureRandom = function () {
|
|
14238
|
+
var array = new Uint32Array(1);
|
|
14239
|
+
window.crypto.getRandomValues(array);
|
|
14240
|
+
return array[0] / (0xFFFFFFFF + 1);
|
|
14241
|
+
};
|
|
14204
14242
|
MultiSelect.prototype.checkForCustomValue = function (query, fields) {
|
|
14205
14243
|
var dataChecks = !this.getValueByText(this.inputElement.value, this.ignoreCase);
|
|
14206
14244
|
var field = fields ? fields : this.fields;
|
|
@@ -14214,7 +14252,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14214
14252
|
setValue(field.text, value, dataItem_1);
|
|
14215
14253
|
if (typeof getValue((this.fields.value ? this.fields.value : 'value'), customData)
|
|
14216
14254
|
=== 'number' && this.fields.value !== this.fields.text) {
|
|
14217
|
-
setValue(field.value,
|
|
14255
|
+
setValue(field.value, this.secureRandom(), dataItem_1);
|
|
14218
14256
|
}
|
|
14219
14257
|
else {
|
|
14220
14258
|
setValue(field.value, value, dataItem_1);
|
|
@@ -14335,6 +14373,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14335
14373
|
e.preventDefault();
|
|
14336
14374
|
}
|
|
14337
14375
|
this.checkAndScrollParent();
|
|
14376
|
+
if (this.maximumSelectionLength === 0) {
|
|
14377
|
+
this.checkMaxSelection();
|
|
14378
|
+
}
|
|
14338
14379
|
};
|
|
14339
14380
|
MultiSelect.prototype.checkAndScrollParent = function () {
|
|
14340
14381
|
var scrollElement = this.overAllWrapper ? this.overAllWrapper.parentElement : null;
|
|
@@ -15942,8 +15983,21 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15942
15983
|
this.updateChipStatus();
|
|
15943
15984
|
this.checkMaxSelection();
|
|
15944
15985
|
};
|
|
15986
|
+
MultiSelect.prototype.updateListItemsState = function (list) {
|
|
15987
|
+
var activeItems = list.querySelectorAll('li.' + dropDownBaseClasses.li + '.e-active');
|
|
15988
|
+
removeClass(activeItems, 'e-disable');
|
|
15989
|
+
var inactiveItems = list.querySelectorAll('li.' + dropDownBaseClasses.li + ':not(.e-active)');
|
|
15990
|
+
addClass(inactiveItems, 'e-disable');
|
|
15991
|
+
};
|
|
15945
15992
|
MultiSelect.prototype.checkMaxSelection = function () {
|
|
15946
15993
|
var limit = this.value && this.value.length ? this.value.length : 0;
|
|
15994
|
+
if (this.maximumSelectionLength === 0) {
|
|
15995
|
+
this.updateListItemsState(this.list);
|
|
15996
|
+
if (this.mainList) {
|
|
15997
|
+
this.updateListItemsState(this.mainList);
|
|
15998
|
+
}
|
|
15999
|
+
return;
|
|
16000
|
+
}
|
|
15947
16001
|
if (limit === this.maximumSelectionLength) {
|
|
15948
16002
|
var activeItems = this.list.querySelectorAll('li.'
|
|
15949
16003
|
+ dropDownBaseClasses.li + '.e-active');
|
|
@@ -19129,6 +19183,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
19129
19183
|
this.renderComplete();
|
|
19130
19184
|
};
|
|
19131
19185
|
MultiSelect.prototype.setResize = function () {
|
|
19186
|
+
var _this = this;
|
|
19132
19187
|
var resizePaddingBottom = 16;
|
|
19133
19188
|
if (this.list && this.list.parentElement && isNullOrUndefined(this.list.parentElement.querySelector('.e-resizer-right.e-icons'))) {
|
|
19134
19189
|
this.resizer = this.createElement('div', {
|
|
@@ -19146,8 +19201,22 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
19146
19201
|
this.list.parentElement.style.height = '100%';
|
|
19147
19202
|
}
|
|
19148
19203
|
this.list.parentElement.style.boxSizing = 'border-box'; // Ensures padding doesn't affect element size
|
|
19149
|
-
var
|
|
19150
|
-
this.
|
|
19204
|
+
var paddingBottom_1 = this.mode === 'CheckBox' && this.searchBoxHeight ? this.searchBoxHeight + resizePaddingBottom + (this.showSelectAll ? this.storedSelectAllHeight : 0) : resizePaddingBottom;
|
|
19205
|
+
if (this.footer) {
|
|
19206
|
+
var listMaxHeight_1 = this.list.style.maxHeight;
|
|
19207
|
+
var listParentElementMaxHeight_1 = this.list.parentElement.style.maxHeight;
|
|
19208
|
+
setTimeout(function () {
|
|
19209
|
+
var height = Math.round(_this.footer.getBoundingClientRect().height);
|
|
19210
|
+
var containerHeight = (parseInt(listParentElementMaxHeight_1, 10) - height).toString() + 'px';
|
|
19211
|
+
listMaxHeight_1 = (parseInt(containerHeight, 10) - 2).toString() + 'px';
|
|
19212
|
+
if (height > 0) {
|
|
19213
|
+
_this.list.parentElement.style.paddingBottom = ((parseInt(listParentElementMaxHeight_1, 10) - parseInt(listMaxHeight_1, 10)) + paddingBottom_1).toString() + 'px';
|
|
19214
|
+
}
|
|
19215
|
+
}, 1);
|
|
19216
|
+
}
|
|
19217
|
+
else {
|
|
19218
|
+
this.list.parentElement.style.paddingBottom = paddingBottom_1 + "px";
|
|
19219
|
+
}
|
|
19151
19220
|
this.list.parentElement.appendChild(this.resizer);
|
|
19152
19221
|
this.list.parentElement.style.width = this.resizeWidth + 'px';
|
|
19153
19222
|
this.list.parentElement.style.height = this.resizeHeight + 'px';
|