@syncfusion/ej2-dropdowns 26.1.41 → 26.1.42
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/.eslintrc.json +261 -0
- 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 +152 -66
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +153 -69
- 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 +9 -9
- package/src/drop-down-list/drop-down-list.js +12 -3
- package/src/drop-down-tree/drop-down-tree.js +2 -3
- package/src/list-box/list-box.js +67 -31
- package/src/mention/mention.js +2 -2
- package/src/multi-select/multi-select.d.ts +1 -0
- package/src/multi-select/multi-select.js +70 -30
- package/tslint.json +111 -0
|
@@ -4019,7 +4019,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
4019
4019
|
this.removeSelection();
|
|
4020
4020
|
li.classList.add(dropDownBaseClasses.selected);
|
|
4021
4021
|
this.removeHover();
|
|
4022
|
-
var value = li.getAttribute('data-value') !==
|
|
4022
|
+
var value = li.getAttribute('data-value') !== null ? this.getFormattedValue(li.getAttribute('data-value')) : null;
|
|
4023
4023
|
var selectedData = this.getDataByValue(value);
|
|
4024
4024
|
if (!this.initial && !preventSelect && !isNullOrUndefined(e)) {
|
|
4025
4025
|
var items = this.detachChanges(selectedData);
|
|
@@ -4094,6 +4094,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
4094
4094
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4095
4095
|
DropDownList.prototype.setValue = function (e) {
|
|
4096
4096
|
var dataItem = this.getItemData();
|
|
4097
|
+
this.isTouched = !isNullOrUndefined(e);
|
|
4097
4098
|
if (dataItem.value === null) {
|
|
4098
4099
|
Input.setValue(null, this.inputElement, this.floatLabelType, this.showClearButton);
|
|
4099
4100
|
}
|
|
@@ -5986,7 +5987,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5986
5987
|
DropDownList.prototype.checkData = function (newProp) {
|
|
5987
5988
|
if (newProp.dataSource && !isNullOrUndefined(Object.keys(newProp.dataSource)) && this.itemTemplate && this.allowFiltering &&
|
|
5988
5989
|
!(this.isListSearched && (newProp.dataSource instanceof DataManager))) {
|
|
5989
|
-
this.list
|
|
5990
|
+
if (this.list) {
|
|
5991
|
+
this.list.innerHTML = '';
|
|
5992
|
+
}
|
|
5990
5993
|
this.actionCompleteData = { ulElement: null, list: null, isUpdated: false };
|
|
5991
5994
|
}
|
|
5992
5995
|
this.isListSearched = false;
|
|
@@ -6028,7 +6031,13 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
6028
6031
|
this.itemData = this.getDataByValue(currentValue);
|
|
6029
6032
|
var dataItem = this.getItemData();
|
|
6030
6033
|
var value = this.allowObjectBinding ? this.itemData : dataItem.value;
|
|
6031
|
-
|
|
6034
|
+
var index = isNullOrUndefined(value) ? null : this.index;
|
|
6035
|
+
if (isNullOrUndefined(index) && (currentValue == value)) {
|
|
6036
|
+
this.setProperties({ 'text': dataItem.text, 'value': value });
|
|
6037
|
+
}
|
|
6038
|
+
else {
|
|
6039
|
+
this.setProperties({ 'text': dataItem.text, 'index': index, 'value': value });
|
|
6040
|
+
}
|
|
6032
6041
|
};
|
|
6033
6042
|
DropDownList.prototype.updateInputFields = function () {
|
|
6034
6043
|
if (this.getModuleName() === 'dropdownlist') {
|
|
@@ -8374,10 +8383,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
8374
8383
|
_this.popupObj.refreshPosition();
|
|
8375
8384
|
if (!(_this.showCheckBox && _this.showSelectAll) && (!_this.popupDiv.classList.contains(NODATA)
|
|
8376
8385
|
&& _this.treeItems.length > 0)) {
|
|
8377
|
-
var focusedElement =
|
|
8378
|
-
if (
|
|
8386
|
+
var focusedElement = _this.value != null && _this.text != null ? _this.treeObj.element.querySelector('[data-uid="' + _this.value[0] + '"]') : null;
|
|
8387
|
+
if (focusedElement) {
|
|
8379
8388
|
_this.treeObj.element.querySelector('li').setAttribute('tabindex', '-1');
|
|
8380
|
-
focusedElement = _this.treeObj.element.querySelector('[data-uid="' + _this.value[0] + '"]');
|
|
8381
8389
|
focusedElement.setAttribute('tabindex', '0');
|
|
8382
8390
|
}
|
|
8383
8391
|
else {
|
|
@@ -12356,6 +12364,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
12356
12364
|
this.isCustomRendered = true;
|
|
12357
12365
|
this.remoteCustomValue = this.enableVirtualization ? false : this.remoteCustomValue;
|
|
12358
12366
|
}
|
|
12367
|
+
if (this.mode === 'CheckBox' && this.enableGroupCheckBox && !isNullOrUndefined(this.fields.groupBy) && !isNullOrUndefined(this.fields.disabled)) {
|
|
12368
|
+
this.disableGroupHeader();
|
|
12369
|
+
}
|
|
12359
12370
|
if (this.dataSource instanceof DataManager && this.mode === 'CheckBox' && this.allowFiltering) {
|
|
12360
12371
|
this.removeFocus();
|
|
12361
12372
|
}
|
|
@@ -12519,9 +12530,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
12519
12530
|
return (!isNullOrUndefined(liElement) ? liElement : this.liCollections[0]);
|
|
12520
12531
|
};
|
|
12521
12532
|
MultiSelect.prototype.checkSelectAll = function () {
|
|
12522
|
-
var groupItemLength = this.list.querySelectorAll('li.e-list-group-item.e-active').length;
|
|
12533
|
+
var groupItemLength = !isNullOrUndefined(this.fields.disabled) ? this.list.querySelectorAll('li.e-list-group-item.e-active:not(.e-disabled)').length : this.list.querySelectorAll('li.e-list-group-item.e-active').length;
|
|
12523
12534
|
var listItem = this.list.querySelectorAll('li.e-list-item');
|
|
12524
|
-
var searchCount = this.enableVirtualization ? this.list.querySelectorAll('li.' + dropDownBaseClasses.li + ':not(.e-virtual-list)').length : this.list.querySelectorAll('li.' + dropDownBaseClasses.li).length;
|
|
12535
|
+
var searchCount = this.enableVirtualization ? this.list.querySelectorAll('li.' + dropDownBaseClasses.li + ':not(.e-virtual-list)').length : !isNullOrUndefined(this.fields.disabled) ? this.list.querySelectorAll('li.' + dropDownBaseClasses.li + ':not(.e-disabled)').length : this.list.querySelectorAll('li.' + dropDownBaseClasses.li).length;
|
|
12525
12536
|
var searchActiveCount = this.list.querySelectorAll('li.' + dropDownBaseClasses.selected).length;
|
|
12526
12537
|
if (this.enableGroupCheckBox && !isNullOrUndefined(this.fields.groupBy)) {
|
|
12527
12538
|
searchActiveCount = searchActiveCount - groupItemLength;
|
|
@@ -13905,7 +13916,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13905
13916
|
}
|
|
13906
13917
|
var focusedLi = this.list ? this.list.querySelector('.e-item-focus') : null;
|
|
13907
13918
|
if (this.isDisabledElement(focusedLi)) {
|
|
13908
|
-
if (this.list.querySelectorAll('.e-list-item:not(.e-hide-listitem):not(.e-disabled)').length === 0) {
|
|
13919
|
+
if (this.list.querySelectorAll('.e-list-item:not(.e-hide-listitem):not(.e-disabled)').length === 0 || (this.keyCode === 38 && this.mode === 'CheckBox' && this.enableGroupCheckBox && !isNullOrUndefined(this.fields.groupBy) && focusedLi === this.list.querySelector('li.e-list-group-item'))) {
|
|
13909
13920
|
this.removeFocus();
|
|
13910
13921
|
return;
|
|
13911
13922
|
}
|
|
@@ -14311,9 +14322,17 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14311
14322
|
MultiSelect.prototype.checkMaxSelection = function () {
|
|
14312
14323
|
var limit = this.value && this.value.length ? this.value.length : 0;
|
|
14313
14324
|
if (limit === this.maximumSelectionLength) {
|
|
14314
|
-
var
|
|
14325
|
+
var activeItems = this.list.querySelectorAll('li.'
|
|
14326
|
+
+ dropDownBaseClasses.li + '.e-active');
|
|
14327
|
+
removeClass(activeItems, 'e-disable');
|
|
14328
|
+
var inactiveItems = this.list.querySelectorAll('li.'
|
|
14315
14329
|
+ dropDownBaseClasses.li + ':not(.e-active)');
|
|
14316
|
-
addClass(
|
|
14330
|
+
addClass(inactiveItems, 'e-disable');
|
|
14331
|
+
}
|
|
14332
|
+
if (limit < this.maximumSelectionLength) {
|
|
14333
|
+
var collection = this.list.querySelectorAll('li.'
|
|
14334
|
+
+ dropDownBaseClasses.li);
|
|
14335
|
+
removeClass(collection, 'e-disable');
|
|
14317
14336
|
}
|
|
14318
14337
|
};
|
|
14319
14338
|
MultiSelect.prototype.dispatchSelect = function (value, eve, element, isNotTrigger, length) {
|
|
@@ -14869,7 +14888,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14869
14888
|
if (this.mode === 'CheckBox') {
|
|
14870
14889
|
this.refreshPlaceHolder();
|
|
14871
14890
|
this.refreshInputHight();
|
|
14872
|
-
if (this.changeOnBlur && isClearAll && (isNullOrUndefined(this.value) || this.value.length === 0)) {
|
|
14891
|
+
if (!this.changeOnBlur && isClearAll && (isNullOrUndefined(this.value) || this.value.length === 0)) {
|
|
14873
14892
|
this.updateValueState(e, this.value, this.tempValues);
|
|
14874
14893
|
}
|
|
14875
14894
|
}
|
|
@@ -15690,17 +15709,19 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15690
15709
|
};
|
|
15691
15710
|
MultiSelect.prototype.findGroupAttrtibutes = function (listElement, checked, unChecked, count, position) {
|
|
15692
15711
|
while (!listElement.classList.contains('e-list-group-item')) {
|
|
15693
|
-
if (
|
|
15694
|
-
|
|
15695
|
-
|
|
15696
|
-
|
|
15697
|
-
listElement.classList.contains('e-
|
|
15698
|
-
|
|
15699
|
-
|
|
15700
|
-
|
|
15701
|
-
|
|
15712
|
+
if (!(this.fields.disabled && this.isDisabledElement(listElement))) {
|
|
15713
|
+
if (listElement.classList.contains('e-list-icon')) {
|
|
15714
|
+
listElement = listElement.parentElement;
|
|
15715
|
+
}
|
|
15716
|
+
if (listElement.getElementsByClassName('e-frame')[0].classList.contains('e-check') &&
|
|
15717
|
+
listElement.classList.contains('e-list-item')) {
|
|
15718
|
+
checked++;
|
|
15719
|
+
}
|
|
15720
|
+
else if (listElement.classList.contains('e-list-item')) {
|
|
15721
|
+
unChecked++;
|
|
15722
|
+
}
|
|
15723
|
+
count++;
|
|
15702
15724
|
}
|
|
15703
|
-
count++;
|
|
15704
15725
|
listElement = position ? listElement.nextElementSibling : listElement.previousElementSibling;
|
|
15705
15726
|
if (listElement == null) {
|
|
15706
15727
|
break;
|
|
@@ -15709,7 +15730,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15709
15730
|
return [checked, unChecked, count];
|
|
15710
15731
|
};
|
|
15711
15732
|
MultiSelect.prototype.updateCheckBox = function (groupHeader, checked, unChecked, count) {
|
|
15712
|
-
if (groupHeader === null) {
|
|
15733
|
+
if (groupHeader === null || (!isNullOrUndefined(this.fields.disabled) && count === 0)) {
|
|
15713
15734
|
return;
|
|
15714
15735
|
}
|
|
15715
15736
|
var checkBoxElement = groupHeader.getElementsByClassName('e-frame')[0];
|
|
@@ -15738,6 +15759,28 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15738
15759
|
groupHeader.setAttribute('aria-selected', 'false');
|
|
15739
15760
|
}
|
|
15740
15761
|
};
|
|
15762
|
+
MultiSelect.prototype.disableGroupHeader = function () {
|
|
15763
|
+
var collection = this.list.querySelectorAll('li.e-list-group-item');
|
|
15764
|
+
if (collection) {
|
|
15765
|
+
for (var index = 0; index < collection.length; index++) {
|
|
15766
|
+
var isDisabled = true;
|
|
15767
|
+
var target = collection[index].nextElementSibling;
|
|
15768
|
+
while (!target.classList.contains('e-list-group-item')) {
|
|
15769
|
+
if (!this.isDisabledElement(target)) {
|
|
15770
|
+
isDisabled = false;
|
|
15771
|
+
break;
|
|
15772
|
+
}
|
|
15773
|
+
target = target.nextElementSibling;
|
|
15774
|
+
if (target == null) {
|
|
15775
|
+
break;
|
|
15776
|
+
}
|
|
15777
|
+
}
|
|
15778
|
+
if (isDisabled) {
|
|
15779
|
+
this.disableListItem(collection[index]);
|
|
15780
|
+
}
|
|
15781
|
+
}
|
|
15782
|
+
}
|
|
15783
|
+
};
|
|
15741
15784
|
MultiSelect.prototype.deselectHeader = function () {
|
|
15742
15785
|
var limit = this.value && this.value.length ? this.value.length : 0;
|
|
15743
15786
|
var collection = this.list.querySelectorAll('li.e-list-group-item:not(.e-active)');
|
|
@@ -16111,22 +16154,24 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16111
16154
|
return;
|
|
16112
16155
|
}
|
|
16113
16156
|
while (listElement.classList.contains('e-list-item')) {
|
|
16114
|
-
if (
|
|
16115
|
-
if (
|
|
16116
|
-
|
|
16117
|
-
|
|
16118
|
-
|
|
16157
|
+
if (!(this.fields.disabled && this.isDisabledElement(listElement))) {
|
|
16158
|
+
if (state) {
|
|
16159
|
+
if (!listElement.firstElementChild.lastElementChild.classList.contains('e-check')) {
|
|
16160
|
+
var selectionLimit = this.value && this.value.length ? this.value.length : 0;
|
|
16161
|
+
if (listElement.classList.contains('e-active')) {
|
|
16162
|
+
selectionLimit -= 1;
|
|
16163
|
+
}
|
|
16164
|
+
if (selectionLimit < this.maximumSelectionLength) {
|
|
16165
|
+
this.updateListSelection(listElement, event);
|
|
16166
|
+
}
|
|
16119
16167
|
}
|
|
16120
|
-
|
|
16168
|
+
}
|
|
16169
|
+
else {
|
|
16170
|
+
if (listElement.firstElementChild.lastElementChild.classList.contains('e-check')) {
|
|
16121
16171
|
this.updateListSelection(listElement, event);
|
|
16122
16172
|
}
|
|
16123
16173
|
}
|
|
16124
16174
|
}
|
|
16125
|
-
else {
|
|
16126
|
-
if (listElement.firstElementChild.lastElementChild.classList.contains('e-check')) {
|
|
16127
|
-
this.updateListSelection(listElement, event);
|
|
16128
|
-
}
|
|
16129
|
-
}
|
|
16130
16175
|
listElement = listElement.nextElementSibling;
|
|
16131
16176
|
if (listElement == null) {
|
|
16132
16177
|
break;
|
|
@@ -16429,7 +16474,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16429
16474
|
}
|
|
16430
16475
|
if (this.mode === 'CheckBox') {
|
|
16431
16476
|
this.updateDelimView();
|
|
16432
|
-
if (!(isRemoveAll || this.isSelectAll) && this.isSelectAllTarget) {
|
|
16477
|
+
if ((!(isRemoveAll || this.isSelectAll) && this.isSelectAllTarget) || (this.isSelectAll && this.isSelectAllTarget)) {
|
|
16433
16478
|
this.updateDelimeter(this.delimiterChar, event);
|
|
16434
16479
|
}
|
|
16435
16480
|
this.refreshInputHight();
|
|
@@ -16986,7 +17031,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16986
17031
|
* @returns {void}
|
|
16987
17032
|
*/
|
|
16988
17033
|
MultiSelect.prototype.render = function () {
|
|
16989
|
-
if (!isNullOrUndefined(this.value)) {
|
|
17034
|
+
if (!isNullOrUndefined(this.value) && this.value.length > 0) {
|
|
16990
17035
|
// eslint-disable-next-line
|
|
16991
17036
|
this.value = this.value.slice();
|
|
16992
17037
|
}
|
|
@@ -17383,6 +17428,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17383
17428
|
this.removeDisabledItemsValue(this.value);
|
|
17384
17429
|
this.updateVal(this.value, oldValue, 'value');
|
|
17385
17430
|
}
|
|
17431
|
+
if (this.mode === 'CheckBox' && this.enableGroupCheckBox && !isNullOrUndefined(this.fields.groupBy)) {
|
|
17432
|
+
this.disableGroupHeader();
|
|
17433
|
+
}
|
|
17386
17434
|
}
|
|
17387
17435
|
}
|
|
17388
17436
|
}
|
|
@@ -18882,11 +18930,9 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
18882
18930
|
}
|
|
18883
18931
|
};
|
|
18884
18932
|
ListBox.prototype.updateListItems = function (sourceElem, destElem) {
|
|
18885
|
-
var i = 0;
|
|
18886
18933
|
destElem.innerHTML = '';
|
|
18887
|
-
|
|
18888
|
-
|
|
18889
|
-
}
|
|
18934
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18935
|
+
destElem.append.apply(destElem, sourceElem.childNodes);
|
|
18890
18936
|
};
|
|
18891
18937
|
ListBox.prototype.removeSelected = function (listObj, elems) {
|
|
18892
18938
|
if (listObj.selectionSettings.showCheckbox) {
|
|
@@ -19530,8 +19576,13 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
19530
19576
|
};
|
|
19531
19577
|
ListBox.prototype.getDataByElems = function (elems) {
|
|
19532
19578
|
var data = [];
|
|
19533
|
-
|
|
19534
|
-
|
|
19579
|
+
var len = elems.length;
|
|
19580
|
+
for (var i = 0; i < len; i++) {
|
|
19581
|
+
var elem = elems[i];
|
|
19582
|
+
var value = elem.getAttribute('data-value');
|
|
19583
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19584
|
+
var formattedValue = this.getFormattedValue(value);
|
|
19585
|
+
data.push(this.getDataByValue(formattedValue));
|
|
19535
19586
|
}
|
|
19536
19587
|
return data;
|
|
19537
19588
|
};
|
|
@@ -19706,16 +19757,39 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
19706
19757
|
fListBox.value = [];
|
|
19707
19758
|
if (elems.length) {
|
|
19708
19759
|
this.removeSelected(fListBox, elems);
|
|
19760
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19761
|
+
var ulChildren_1 = Array.prototype.slice.call(fListBox.ulElement.children);
|
|
19762
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19763
|
+
var listItems_1 = Array.prototype.slice.call(fListBox.ulElement.querySelectorAll('.e-list-item'));
|
|
19764
|
+
var lData_1 = fListBox.listData;
|
|
19765
|
+
var sData_1 = fListBox.sortedData;
|
|
19766
|
+
var jData_1 = fListBox.jsonData;
|
|
19767
|
+
var eData_1;
|
|
19768
|
+
var listDataMap_1 = {};
|
|
19769
|
+
if (elems.length > 199) {
|
|
19770
|
+
for (var _i = 0, _a = fListBox.listData; _i < _a.length; _i++) {
|
|
19771
|
+
var item = _a[_i];
|
|
19772
|
+
if (!isNullOrUndefined(item)) {
|
|
19773
|
+
var key = fListBox.getFormattedValue(getValue((fListBox.fields.value ? fListBox.fields.value : 'value'), item));
|
|
19774
|
+
listDataMap_1[key] = item;
|
|
19775
|
+
}
|
|
19776
|
+
}
|
|
19777
|
+
}
|
|
19709
19778
|
elems.forEach(function (ele) {
|
|
19710
|
-
|
|
19711
|
-
|
|
19712
|
-
|
|
19713
|
-
|
|
19714
|
-
|
|
19715
|
-
|
|
19716
|
-
|
|
19717
|
-
|
|
19718
|
-
|
|
19779
|
+
if (elems.length < 200) {
|
|
19780
|
+
eData_1 = fListBox.getDataByElems([ele])[0];
|
|
19781
|
+
}
|
|
19782
|
+
else {
|
|
19783
|
+
var value_1 = ele.getAttribute('data-value');
|
|
19784
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19785
|
+
var formattedValue = fListBox.getFormattedValue(value_1);
|
|
19786
|
+
eData_1 = listDataMap_1[formattedValue];
|
|
19787
|
+
}
|
|
19788
|
+
idx.push(ulChildren_1.indexOf(ele));
|
|
19789
|
+
dataLiIdx.push(listItems_1.indexOf(ele));
|
|
19790
|
+
dataIdx.push(lData_1.indexOf(eData_1));
|
|
19791
|
+
sortIdx.push(sData_1.indexOf(eData_1));
|
|
19792
|
+
jsonIdx.push(jData_1.indexOf(eData_1));
|
|
19719
19793
|
});
|
|
19720
19794
|
if (this.sortOrder !== 'None') {
|
|
19721
19795
|
sortIdx.forEach(function (i) {
|
|
@@ -19854,20 +19928,27 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
19854
19928
|
// eslint-disable-next-line prefer-spread
|
|
19855
19929
|
flistboxarray = Array.apply(null, { length: fListBox.ulElement.childElementCount }).map(Number.call, Number);
|
|
19856
19930
|
}
|
|
19857
|
-
|
|
19858
|
-
|
|
19859
|
-
|
|
19860
|
-
|
|
19861
|
-
|
|
19931
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19932
|
+
var childNodes = fListBox.ulElement.childNodes;
|
|
19933
|
+
var childElementCount = fListBox.ulElement.childElementCount;
|
|
19934
|
+
var newFlistboxArray = [];
|
|
19935
|
+
for (var i = 0; i < childElementCount; i++) {
|
|
19936
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19937
|
+
var childNode = childNodes[i];
|
|
19938
|
+
if (childNode.classList.contains('e-disabled')) {
|
|
19939
|
+
tempLiColl.push(childNode);
|
|
19862
19940
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19863
19941
|
tempData.push(fListBox.listData[i]);
|
|
19864
19942
|
}
|
|
19865
|
-
|
|
19866
|
-
|
|
19867
|
-
|
|
19943
|
+
else {
|
|
19944
|
+
newFlistboxArray.push(i);
|
|
19945
|
+
}
|
|
19946
|
+
}
|
|
19947
|
+
flistboxarray = newFlistboxArray;
|
|
19948
|
+
if (!isRefresh) {
|
|
19949
|
+
moveTo(fListBox.ulElement, tListBox.ulElement, flistboxarray, index);
|
|
19950
|
+
fListBox.trigger('actionComplete', { items: tempItems, eventName: this.toolbarAction });
|
|
19868
19951
|
}
|
|
19869
|
-
moveTo(fListBox.ulElement, tListBox.ulElement, flistboxarray, index);
|
|
19870
|
-
this.trigger('actionComplete', { items: tempItems, eventName: this.toolbarAction });
|
|
19871
19952
|
if (isKey) {
|
|
19872
19953
|
this.list.focus();
|
|
19873
19954
|
}
|
|
@@ -19923,7 +20004,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
19923
20004
|
if (isRefresh) {
|
|
19924
20005
|
var sourceElem = tListBox.renderItems(listData, tListBox.fields);
|
|
19925
20006
|
tListBox.updateListItems(sourceElem, tListBox.ulElement);
|
|
19926
|
-
|
|
20007
|
+
fListBox.trigger('actionComplete', { items: tempItems, eventName: this.toolbarAction });
|
|
19927
20008
|
}
|
|
19928
20009
|
else {
|
|
19929
20010
|
tListBox.sortedData = listData;
|
|
@@ -20212,11 +20293,13 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
20212
20293
|
}
|
|
20213
20294
|
};
|
|
20214
20295
|
ListBox.prototype.resizeHandler = function () {
|
|
20215
|
-
if (this.list.
|
|
20216
|
-
this.list.
|
|
20217
|
-
|
|
20218
|
-
|
|
20219
|
-
|
|
20296
|
+
if (this.list && !(this.cssClass && this.cssClass.indexOf('e-horizontal-listbox') > -1)) {
|
|
20297
|
+
if (this.list.scrollWidth > this.list.offsetWidth) {
|
|
20298
|
+
this.list.querySelector('.e-list-parent').style.display = 'inline-block';
|
|
20299
|
+
}
|
|
20300
|
+
else {
|
|
20301
|
+
this.list.querySelector('.e-list-parent').style.display = 'block';
|
|
20302
|
+
}
|
|
20220
20303
|
}
|
|
20221
20304
|
};
|
|
20222
20305
|
ListBox.prototype.getValidIndex = function (cli, index, keyCode) {
|
|
@@ -20360,6 +20443,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
20360
20443
|
};
|
|
20361
20444
|
ListBox.prototype.checkDisabledState = function (inst) {
|
|
20362
20445
|
if (isNullOrUndefined(inst.ulElement)) {
|
|
20446
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
20363
20447
|
if (!isNullOrUndefined(this.dataSource) && isNullOrUndefined(this.dataSource.length)) {
|
|
20364
20448
|
return false;
|
|
20365
20449
|
}
|
|
@@ -22046,10 +22130,10 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
22046
22130
|
}
|
|
22047
22131
|
if (this.isContentEditable(this.inputElement)) {
|
|
22048
22132
|
if (Browser.isAndroid) {
|
|
22049
|
-
return '<span contenteditable="true" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '');
|
|
22133
|
+
return '<span contenteditable="true" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : ' ');
|
|
22050
22134
|
}
|
|
22051
22135
|
else {
|
|
22052
|
-
return '<span contenteditable="false" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '');
|
|
22136
|
+
return '<span contenteditable="false" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : ' ');
|
|
22053
22137
|
}
|
|
22054
22138
|
}
|
|
22055
22139
|
else {
|