@syncfusion/ej2-dropdowns 29.1.37 → 29.1.40
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 +81 -23
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +87 -29
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/common/incremental-search.js +1 -1
- package/src/common/virtual-scroll.js +14 -6
- package/src/drop-down-base/drop-down-base.d.ts +2 -0
- package/src/drop-down-base/drop-down-base.js +30 -10
- package/src/mention/mention.js +6 -1
- package/src/multi-select/multi-select.d.ts +1 -1
- package/src/multi-select/multi-select.js +36 -11
- package/styles/bds-lite.css +5 -0
- package/styles/bds.css +5 -0
- package/styles/bootstrap-dark-lite.css +5 -0
- package/styles/bootstrap-dark.css +5 -0
- package/styles/bootstrap-lite.css +12 -0
- package/styles/bootstrap.css +12 -0
- package/styles/bootstrap4-lite.css +12 -0
- package/styles/bootstrap4.css +12 -0
- package/styles/bootstrap5-dark-lite.css +12 -0
- package/styles/bootstrap5-dark.css +12 -0
- package/styles/bootstrap5-lite.css +12 -0
- package/styles/bootstrap5.3-lite.css +12 -0
- package/styles/bootstrap5.3.css +12 -0
- package/styles/bootstrap5.css +12 -0
- package/styles/drop-down-list/_bootstrap-dark-definition.scss +1 -0
- package/styles/drop-down-list/_bootstrap-definition.scss +1 -0
- package/styles/drop-down-list/_bootstrap4-definition.scss +1 -0
- package/styles/drop-down-list/_bootstrap5-definition.scss +1 -0
- package/styles/drop-down-list/_bootstrap5.3-definition.scss +1 -0
- package/styles/drop-down-list/_fabric-dark-definition.scss +1 -0
- package/styles/drop-down-list/_fabric-definition.scss +1 -0
- package/styles/drop-down-list/_highcontrast-definition.scss +1 -0
- package/styles/drop-down-list/_highcontrast-light-definition.scss +1 -0
- package/styles/drop-down-list/_layout.scss +20 -0
- package/styles/drop-down-list/bds.css +5 -0
- package/styles/drop-down-list/bootstrap-dark.css +5 -0
- package/styles/drop-down-list/bootstrap.css +12 -0
- package/styles/drop-down-list/bootstrap4.css +12 -0
- package/styles/drop-down-list/bootstrap5-dark.css +12 -0
- package/styles/drop-down-list/bootstrap5.3.css +12 -0
- package/styles/drop-down-list/bootstrap5.css +12 -0
- package/styles/drop-down-list/fabric-dark.css +5 -0
- package/styles/drop-down-list/fabric.css +10 -0
- package/styles/drop-down-list/fluent-dark.css +5 -0
- package/styles/drop-down-list/fluent.css +5 -0
- package/styles/drop-down-list/fluent2.css +5 -0
- package/styles/drop-down-list/highcontrast-light.css +5 -0
- package/styles/drop-down-list/highcontrast.css +10 -0
- package/styles/drop-down-list/material-dark.css +5 -0
- package/styles/drop-down-list/material.css +5 -0
- package/styles/drop-down-list/material3-dark.css +5 -0
- package/styles/drop-down-list/material3.css +5 -0
- package/styles/drop-down-list/tailwind-dark.css +5 -0
- package/styles/drop-down-list/tailwind.css +5 -0
- package/styles/drop-down-list/tailwind3.css +5 -0
- package/styles/fabric-dark-lite.css +5 -0
- package/styles/fabric-dark.css +5 -0
- package/styles/fabric-lite.css +10 -0
- package/styles/fabric.css +10 -0
- package/styles/fluent-dark-lite.css +5 -0
- package/styles/fluent-dark.css +5 -0
- package/styles/fluent-lite.css +5 -0
- package/styles/fluent.css +5 -0
- package/styles/fluent2-lite.css +5 -0
- package/styles/fluent2.css +5 -0
- package/styles/highcontrast-light-lite.css +5 -0
- package/styles/highcontrast-light.css +5 -0
- package/styles/highcontrast-lite.css +10 -0
- package/styles/highcontrast.css +10 -0
- package/styles/material-dark-lite.css +5 -0
- package/styles/material-dark.css +5 -0
- package/styles/material-lite.css +14 -0
- package/styles/material.css +14 -0
- package/styles/material3-dark-lite.css +5 -0
- package/styles/material3-dark.css +5 -0
- package/styles/material3-lite.css +5 -0
- package/styles/material3.css +5 -0
- package/styles/multi-select/_material-definition.scss +9 -0
- package/styles/multi-select/material.css +9 -0
- package/styles/tailwind-dark-lite.css +5 -0
- package/styles/tailwind-dark.css +5 -0
- package/styles/tailwind-lite.css +5 -0
- package/styles/tailwind.css +5 -0
- package/styles/tailwind3-lite.css +5 -0
- package/styles/tailwind3.css +5 -0
|
@@ -149,7 +149,7 @@ function Search(inputVal, items, searchType, ignoreCase, dataSource, fields, typ
|
|
|
149
149
|
dataSource.filter(function (data) {
|
|
150
150
|
Array.prototype.slice.call(fieldValue_1).forEach(function (value) {
|
|
151
151
|
/* eslint-disable security/detect-object-injection */
|
|
152
|
-
if ((type === 'object' && !data.isHeader && checkField_1.textContent.toString().indexOf(data[value]) !== -1 && checkField_1.getAttribute('data-value') === data[fields.value].toString()) ||
|
|
152
|
+
if ((type === 'object' && !data.isHeader && checkField_1.textContent.toString().indexOf(data[value]) !== -1 && data[fields.value] != null && checkField_1.getAttribute('data-value') === data[fields.value].toString()) ||
|
|
153
153
|
(type === 'string' && checkField_1.textContent.toString().indexOf(data) !== -1)) {
|
|
154
154
|
filterValue = type === 'object' ? data[value] : data;
|
|
155
155
|
}
|
|
@@ -448,11 +448,15 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
448
448
|
if (this.parent.viewPortInfo.startIndex < this.parent.value.length) {
|
|
449
449
|
endIndex = this.parent.viewPortInfo.endIndex - this.parent.value.length;
|
|
450
450
|
if (this.parent.viewPortInfo.startIndex === 0) {
|
|
451
|
+
var oldUlElement = this.parent.list.querySelector('.e-list-parent' + ':not(.e-reorder)');
|
|
452
|
+
if (oldUlElement) {
|
|
453
|
+
this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(oldUlElement);
|
|
454
|
+
}
|
|
451
455
|
this.parent.updateVirtualReOrderList(true);
|
|
452
456
|
if (this.parent.value.length < this.parent.itemCount && this.parent.value.length !== this.parent.totalItemCount) {
|
|
453
|
-
var
|
|
454
|
-
if (
|
|
455
|
-
this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(
|
|
457
|
+
var oldUlElement_1 = this.parent.list.querySelector('.e-list-parent' + ':not(.e-reorder)');
|
|
458
|
+
if (oldUlElement_1) {
|
|
459
|
+
this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(oldUlElement_1);
|
|
456
460
|
}
|
|
457
461
|
var query = this.parent.getForQuery(this.parent.value).clone();
|
|
458
462
|
query = query.skip(0)
|
|
@@ -466,9 +470,9 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
466
470
|
isListUpdated = false;
|
|
467
471
|
}
|
|
468
472
|
else {
|
|
469
|
-
var
|
|
470
|
-
if (
|
|
471
|
-
this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(
|
|
473
|
+
var oldUlElement_2 = this.parent.list.querySelector('.e-list-parent' + ':not(.e-reorder)');
|
|
474
|
+
if (oldUlElement_2) {
|
|
475
|
+
this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(oldUlElement_2);
|
|
472
476
|
}
|
|
473
477
|
}
|
|
474
478
|
isListUpdated = false;
|
|
@@ -488,6 +492,10 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
488
492
|
query = query.skip(0).take(this.parent.itemCount - (this.parent.value.length - this.parent.viewPortInfo.startIndex));
|
|
489
493
|
this.parent.appendUncheckList = true;
|
|
490
494
|
this.parent.setCurrentView = false;
|
|
495
|
+
var oldUlElement = this.parent.list.querySelector('.e-list-parent' + ':not(.e-reorder)');
|
|
496
|
+
if (oldUlElement) {
|
|
497
|
+
this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(oldUlElement);
|
|
498
|
+
}
|
|
491
499
|
this.parent.resetList(this.parent.dataSource, this.parent.fields, query);
|
|
492
500
|
isListUpdated = false;
|
|
493
501
|
this.parent.appendUncheckList = this.parent.dataSource instanceof DataManager ? this.parent.appendUncheckList : false;
|
|
@@ -967,6 +975,7 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
967
975
|
_this.skeletonCount = 32;
|
|
968
976
|
_this.isVirtualTrackHeight = false;
|
|
969
977
|
_this.virtualSelectAll = false;
|
|
978
|
+
_this.isVirtualReorder = false;
|
|
970
979
|
_this.incrementalQueryString = '';
|
|
971
980
|
_this.incrementalEndIndex = 0;
|
|
972
981
|
_this.incrementalStartIndex = 0;
|
|
@@ -1665,7 +1674,7 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1665
1674
|
var newQuery = _this.getQuery(eventArgs.query);
|
|
1666
1675
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1667
1676
|
if (_this.isVirtualizationEnabled && (listItems.count !== 0 &&
|
|
1668
|
-
listItems.count < (_this.itemCount * 2))) {
|
|
1677
|
+
listItems.count < (_this.itemCount * 2)) && !_this.appendUncheckList) {
|
|
1669
1678
|
if (newQuery) {
|
|
1670
1679
|
for (var queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
|
|
1671
1680
|
if (newQuery.queries[queryElements].fn === 'onTake') {
|
|
@@ -1975,12 +1984,9 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1975
1984
|
if (this.sortOrder !== 'None') {
|
|
1976
1985
|
dataSource = this.getSortedDataSource(dataSource);
|
|
1977
1986
|
}
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
else {
|
|
1982
|
-
dataSource = ListBase.groupDataSource(dataSource, fields.properties, this.sortOrder);
|
|
1983
|
-
}
|
|
1987
|
+
var fieldSet = fields.properties ||
|
|
1988
|
+
fields;
|
|
1989
|
+
dataSource = ListBase.groupDataSource(dataSource, fieldSet, this.sortOrder);
|
|
1984
1990
|
}
|
|
1985
1991
|
addClass([this.list], dropDownBaseClasses.grouping);
|
|
1986
1992
|
}
|
|
@@ -2166,7 +2172,7 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2166
2172
|
var oldUlElement = this.list.querySelector('.e-list-parent' + ':not(.e-reorder)');
|
|
2167
2173
|
var virtualUlElement = this.list.querySelector('.e-virtual-ddl-content');
|
|
2168
2174
|
var isRemovedUlelement = false;
|
|
2169
|
-
if (!oldUlElement && this.list.querySelector('.e-list-parent' + '.e-reorder')) {
|
|
2175
|
+
if ((!oldUlElement && this.list.querySelector('.e-list-parent' + '.e-reorder')) || (oldUlElement && this.isVirtualReorder && this.list.querySelector('.e-list-parent' + '.e-reorder'))) {
|
|
2170
2176
|
oldUlElement = this.list.querySelector('.e-list-parent' + '.e-reorder');
|
|
2171
2177
|
}
|
|
2172
2178
|
if ((listData.length >= this.virtualizedItemsCount && oldUlElement && virtualUlElement) || (oldUlElement && virtualUlElement && this.isAllowFiltering) || (oldUlElement && virtualUlElement && (this.getModuleName() === 'autocomplete' || this.getModuleName() === 'multiselect')) || isRemovedUlelement) {
|
|
@@ -2262,7 +2268,9 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2262
2268
|
}
|
|
2263
2269
|
setStyleAttribute(this.fixedHeaderElement, { zIndex: 10 });
|
|
2264
2270
|
var firstLi = this.ulElement.querySelector('.' + dropDownBaseClasses.group + ':not(.e-hide-listitem)');
|
|
2265
|
-
|
|
2271
|
+
if (!isNullOrUndefined(firstLi)) {
|
|
2272
|
+
this.fixedHeaderElement.innerHTML = firstLi.innerHTML;
|
|
2273
|
+
}
|
|
2266
2274
|
};
|
|
2267
2275
|
DropDownBase.prototype.getSortedDataSource = function (dataSource) {
|
|
2268
2276
|
if (dataSource && this.sortOrder !== 'None') {
|
|
@@ -2488,7 +2496,11 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2488
2496
|
var group = this.element.querySelector('select>optgroup');
|
|
2489
2497
|
if ((this.fields.groupBy || !isNullOrUndefined(group)) && !this.isGroupChecking) {
|
|
2490
2498
|
EventHandler.add(this.list, 'scroll', this.setFloatingHeader, this);
|
|
2491
|
-
|
|
2499
|
+
var elements = this.getScrollableParent();
|
|
2500
|
+
for (var i = 0; i < elements.length; i++) {
|
|
2501
|
+
var ele = elements[i];
|
|
2502
|
+
EventHandler.add(ele, 'scroll', this.updateGroupFixedHeader, this);
|
|
2503
|
+
}
|
|
2492
2504
|
}
|
|
2493
2505
|
if (this.getModuleName() === 'dropdownbase') {
|
|
2494
2506
|
if (this.element.getAttribute('tabindex')) {
|
|
@@ -2506,6 +2518,22 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2506
2518
|
this.initialize(e);
|
|
2507
2519
|
}
|
|
2508
2520
|
};
|
|
2521
|
+
DropDownBase.prototype.getScrollableParent = function () {
|
|
2522
|
+
var eleStyle = getComputedStyle(this.element);
|
|
2523
|
+
var scrollParents = [];
|
|
2524
|
+
var overflowRegex = /(auto|scroll)/;
|
|
2525
|
+
var parent = this.element.parentElement;
|
|
2526
|
+
while (parent && parent.tagName !== 'HTML') {
|
|
2527
|
+
var parentStyle = getComputedStyle(parent);
|
|
2528
|
+
if (!(eleStyle.position === 'absolute' && parentStyle.position === 'static')
|
|
2529
|
+
&& overflowRegex.test(parentStyle.overflow + parentStyle.overflowY + parentStyle.overflowX)) {
|
|
2530
|
+
scrollParents.push(parent);
|
|
2531
|
+
}
|
|
2532
|
+
parent = parent.parentElement;
|
|
2533
|
+
}
|
|
2534
|
+
scrollParents.push(document);
|
|
2535
|
+
return scrollParents;
|
|
2536
|
+
};
|
|
2509
2537
|
DropDownBase.prototype.removeScrollEvent = function () {
|
|
2510
2538
|
if (this.list) {
|
|
2511
2539
|
EventHandler.remove(this.list, 'scroll', this.setFloatingHeader);
|
|
@@ -12826,7 +12854,6 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
12826
12854
|
_this.isBlurDispatching = false;
|
|
12827
12855
|
_this.isFilterPrevented = false;
|
|
12828
12856
|
_this.isFilteringAction = false;
|
|
12829
|
-
_this.isVirtualReorder = false;
|
|
12830
12857
|
_this.isValidKey = false;
|
|
12831
12858
|
_this.selectAllEventData = [];
|
|
12832
12859
|
_this.selectAllEventEle = [];
|
|
@@ -13532,11 +13559,10 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13532
13559
|
}
|
|
13533
13560
|
if ((!this.enableVirtualization && ((searchCount === searchActiveCount || searchActiveCount === this.maximumSelectionLength)
|
|
13534
13561
|
&& (this.mode === 'CheckBox' && this.showSelectAll))) || (this.enableVirtualization && this.mode === 'CheckBox' &&
|
|
13535
|
-
this.showSelectAll && this.
|
|
13562
|
+
this.showSelectAll && this.value && this.value.length === this.totalItemCount)) {
|
|
13536
13563
|
this.notify('checkSelectAll', { module: 'CheckBoxSelection', enable: this.mode === 'CheckBox', value: 'check' });
|
|
13537
13564
|
}
|
|
13538
|
-
else if ((searchCount !== searchActiveCount) && (this.mode === 'CheckBox' && this.showSelectAll)
|
|
13539
|
-
((!this.enableVirtualization) || (this.enableVirtualization && !this.virtualSelectAll))) {
|
|
13565
|
+
else if ((searchCount !== searchActiveCount) && (this.mode === 'CheckBox' && this.showSelectAll)) {
|
|
13540
13566
|
this.notify('checkSelectAll', { module: 'CheckBoxSelection', enable: this.mode === 'CheckBox', value: 'uncheck' });
|
|
13541
13567
|
}
|
|
13542
13568
|
if (this.enableGroupCheckBox && this.fields.groupBy && !this.enableSelectionOrder) {
|
|
@@ -13681,7 +13707,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13681
13707
|
}
|
|
13682
13708
|
}
|
|
13683
13709
|
}
|
|
13684
|
-
if ((this.allowFiltering && isSkip) || !isReOrder || (!this.allowFiltering && isSkip) && !this.isVirtualReorder) {
|
|
13710
|
+
if (((this.allowFiltering && isSkip) || !isReOrder || (!this.allowFiltering && isSkip)) && !this.isVirtualReorder) {
|
|
13685
13711
|
if (!isReOrder) {
|
|
13686
13712
|
filterQuery.skip(this.viewPortInfo.startIndex);
|
|
13687
13713
|
}
|
|
@@ -13845,10 +13871,13 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13845
13871
|
if (this.allowObjectBinding) {
|
|
13846
13872
|
var keys = this.listData && this.listData.length > 0 ? Object.keys(this.listData[0]) : this.firstItem ?
|
|
13847
13873
|
Object.keys(this.firstItem) : Object.keys(dataItem_1);
|
|
13874
|
+
var isNumberType_1 = (typeof getValue((this.fields.value ? this.fields.value : 'value'), customData)
|
|
13875
|
+
=== 'number' && this.fields.value !== this.fields.text);
|
|
13848
13876
|
// Create an empty object with predefined keys
|
|
13849
13877
|
keys.forEach(function (key) {
|
|
13850
13878
|
emptyObject_1[key] = ((key === fields.value) || (key === fields.text)) ?
|
|
13851
|
-
getValue(fields.
|
|
13879
|
+
((key === fields.text) && isNumberType_1) ? getValue(fields.text, dataItem_1) :
|
|
13880
|
+
getValue(fields.value, dataItem_1) : null;
|
|
13852
13881
|
});
|
|
13853
13882
|
}
|
|
13854
13883
|
dataItem_1 = this.allowObjectBinding ? emptyObject_1 : dataItem_1;
|
|
@@ -13950,6 +13979,17 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13950
13979
|
if (!(this.targetElement() && this.targetElement() !== '')) {
|
|
13951
13980
|
e.preventDefault();
|
|
13952
13981
|
}
|
|
13982
|
+
this.checkAndScrollParent();
|
|
13983
|
+
};
|
|
13984
|
+
MultiSelect.prototype.checkAndScrollParent = function () {
|
|
13985
|
+
var parentElement = this.overAllWrapper ? this.overAllWrapper.parentElement : null;
|
|
13986
|
+
if (parentElement) {
|
|
13987
|
+
var wrapperHeight = parseFloat(getComputedStyle(this.overAllWrapper).height);
|
|
13988
|
+
var parentMaxHeight = parseFloat(getComputedStyle(parentElement).maxHeight);
|
|
13989
|
+
if (!isNaN(parentMaxHeight) && wrapperHeight > parentMaxHeight) {
|
|
13990
|
+
parentElement.scrollTop = parentElement.scrollHeight;
|
|
13991
|
+
}
|
|
13992
|
+
}
|
|
13953
13993
|
};
|
|
13954
13994
|
MultiSelect.prototype.enable = function (state) {
|
|
13955
13995
|
if (state) {
|
|
@@ -14132,6 +14172,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14132
14172
|
else {
|
|
14133
14173
|
this.trigger('change', eventArgs);
|
|
14134
14174
|
}
|
|
14175
|
+
if (this.enableVirtualization && this.enableSelectionOrder && this.mode === 'CheckBox') {
|
|
14176
|
+
this.preventSetCurrentData = false;
|
|
14177
|
+
}
|
|
14135
14178
|
this.updateTempValue();
|
|
14136
14179
|
if (!this.changeOnBlur) {
|
|
14137
14180
|
this.dispatchEvent(this.hiddenElement, 'change');
|
|
@@ -14664,6 +14707,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14664
14707
|
if (this.value && this.validateValues(this.value, temp)) {
|
|
14665
14708
|
if (this.mode !== 'CheckBox') {
|
|
14666
14709
|
this.value = temp;
|
|
14710
|
+
if (this.allowFiltering || this.allowCustomValue) {
|
|
14711
|
+
this.refreshListItems(null);
|
|
14712
|
+
}
|
|
14667
14713
|
this.initialValueUpdate();
|
|
14668
14714
|
}
|
|
14669
14715
|
if (this.mode !== 'Delimiter' && this.mode !== 'CheckBox') {
|
|
@@ -16708,6 +16754,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16708
16754
|
else {
|
|
16709
16755
|
this.removeValue(value, e, length);
|
|
16710
16756
|
}
|
|
16757
|
+
this.checkAndScrollParent();
|
|
16711
16758
|
};
|
|
16712
16759
|
MultiSelect.prototype.updateListSelectEventCallback = function (value, li, e, currentText) {
|
|
16713
16760
|
var _this = this;
|
|
@@ -17289,7 +17336,8 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17289
17336
|
this.updateWrapperText(this.viewWrapper, data);
|
|
17290
17337
|
}
|
|
17291
17338
|
wrapperleng = this.viewWrapper.offsetWidth +
|
|
17292
|
-
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10)
|
|
17339
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10) +
|
|
17340
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingLeft, 10);
|
|
17293
17341
|
overAllContainer = this.componentWrapper.offsetWidth -
|
|
17294
17342
|
parseInt(window.getComputedStyle(this.componentWrapper).paddingLeft, 10) -
|
|
17295
17343
|
parseInt(window.getComputedStyle(this.componentWrapper).paddingRight, 10);
|
|
@@ -17301,14 +17349,16 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17301
17349
|
this.updateWrapperText(this.viewWrapper, temp);
|
|
17302
17350
|
remaining = this.value.length - index;
|
|
17303
17351
|
wrapperleng = this.viewWrapper.offsetWidth +
|
|
17304
|
-
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10)
|
|
17352
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10) +
|
|
17353
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingLeft, 10);
|
|
17305
17354
|
while (((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) > overAllContainer) && wrapperleng !== 0
|
|
17306
17355
|
&& this.viewWrapper.innerHTML !== '') {
|
|
17307
17356
|
var textArr = [];
|
|
17308
17357
|
this.viewWrapper.innerHTML = textArr.join(this.delimiterChar);
|
|
17309
17358
|
remaining = this.value.length;
|
|
17310
17359
|
wrapperleng = this.viewWrapper.offsetWidth +
|
|
17311
|
-
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10)
|
|
17360
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10) +
|
|
17361
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingLeft, 10);
|
|
17312
17362
|
}
|
|
17313
17363
|
break;
|
|
17314
17364
|
}
|
|
@@ -17338,13 +17388,13 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17338
17388
|
};
|
|
17339
17389
|
MultiSelect.prototype.checkClearIconWidth = function () {
|
|
17340
17390
|
if (this.showClearButton) {
|
|
17341
|
-
this.clearIconWidth = this.overAllClear.
|
|
17391
|
+
this.clearIconWidth = parseInt(window.getComputedStyle(this.overAllClear).width, 10);
|
|
17342
17392
|
}
|
|
17343
17393
|
};
|
|
17344
17394
|
MultiSelect.prototype.updateRemainWidth = function (viewWrapper, totalWidth) {
|
|
17345
17395
|
if (viewWrapper.classList.contains(TOTAL_COUNT_WRAPPER$1) && totalWidth < (viewWrapper.offsetWidth +
|
|
17346
17396
|
parseInt(window.getComputedStyle(viewWrapper).paddingLeft, 10)
|
|
17347
|
-
+ parseInt(window.getComputedStyle(viewWrapper).
|
|
17397
|
+
+ parseInt(window.getComputedStyle(viewWrapper).paddingRight, 10))) {
|
|
17348
17398
|
viewWrapper.style.width = totalWidth + 'px';
|
|
17349
17399
|
}
|
|
17350
17400
|
};
|
|
@@ -17604,6 +17654,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17604
17654
|
li[index - 1].classList.remove('e-item-focus');
|
|
17605
17655
|
}
|
|
17606
17656
|
}
|
|
17657
|
+
_this.checkSelectAll();
|
|
17607
17658
|
}, 0);
|
|
17608
17659
|
}
|
|
17609
17660
|
}
|
|
@@ -17630,6 +17681,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17630
17681
|
});
|
|
17631
17682
|
}
|
|
17632
17683
|
}
|
|
17684
|
+
this.checkSelectAll();
|
|
17633
17685
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17634
17686
|
var virtualTrackElement = this.list.getElementsByClassName('e-virtual-ddl')[0];
|
|
17635
17687
|
if (virtualTrackElement) {
|
|
@@ -17830,6 +17882,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17830
17882
|
};
|
|
17831
17883
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17832
17884
|
MultiSelect.prototype.updateDataSource = function (prop) {
|
|
17885
|
+
this.checkAndResetCache();
|
|
17833
17886
|
if (isNullOrUndefined(this.list)) {
|
|
17834
17887
|
this.renderPopup();
|
|
17835
17888
|
}
|
|
@@ -23807,7 +23860,12 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
23807
23860
|
if (lastNode) {
|
|
23808
23861
|
range = range.cloneRange();
|
|
23809
23862
|
if (this.isRTE) {
|
|
23810
|
-
|
|
23863
|
+
if (lastNode.nodeType === 3) {
|
|
23864
|
+
range.setStart(lastNode, lastNode.textContent.length);
|
|
23865
|
+
}
|
|
23866
|
+
else {
|
|
23867
|
+
range.setStartAfter(lastNode);
|
|
23868
|
+
}
|
|
23811
23869
|
}
|
|
23812
23870
|
else {
|
|
23813
23871
|
range.setStartAfter(lastNode);
|