@syncfusion/ej2-dropdowns 28.2.6 → 28.2.9
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 +30 -13
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +30 -13
- 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/drop-down-list/drop-down-list.js +1 -1
- package/src/drop-down-tree/drop-down-tree.js +10 -2
- package/src/list-box/list-box.js +2 -1
- package/src/mention/mention.js +4 -4
- package/src/multi-select/multi-select.d.ts +1 -0
- package/src/multi-select/multi-select.js +13 -5
- package/styles/bds-lite.css +9 -2
- package/styles/bds.css +19 -4
- package/styles/bootstrap-dark-lite.css +7 -0
- package/styles/bootstrap-dark.css +22 -0
- package/styles/bootstrap-lite.css +7 -0
- package/styles/bootstrap.css +22 -0
- package/styles/bootstrap4-lite.css +8 -1
- package/styles/bootstrap4.css +24 -2
- package/styles/bootstrap5-dark-lite.css +8 -1
- package/styles/bootstrap5-dark.css +17 -2
- package/styles/bootstrap5-lite.css +8 -1
- package/styles/bootstrap5.3-lite.css +8 -1
- package/styles/bootstrap5.3.css +24 -2
- package/styles/bootstrap5.css +17 -2
- package/styles/drop-down-tree/_bds-definition.scss +12 -3
- package/styles/drop-down-tree/_bigger.scss +12 -12
- package/styles/drop-down-tree/_bootstrap-dark-definition.scss +9 -0
- package/styles/drop-down-tree/_bootstrap-definition.scss +10 -1
- package/styles/drop-down-tree/_bootstrap4-definition.scss +12 -3
- package/styles/drop-down-tree/_bootstrap5-definition.scss +10 -2
- package/styles/drop-down-tree/_bootstrap5.3-definition.scss +10 -2
- package/styles/drop-down-tree/_fabric-dark-definition.scss +9 -0
- package/styles/drop-down-tree/_fabric-definition.scss +9 -0
- package/styles/drop-down-tree/_fluent-definition.scss +10 -2
- package/styles/drop-down-tree/_fluent2-definition.scss +12 -3
- package/styles/drop-down-tree/_fusionnew-definition.scss +9 -0
- package/styles/drop-down-tree/_highcontrast-definition.scss +10 -1
- package/styles/drop-down-tree/_highcontrast-light-definition.scss +9 -0
- package/styles/drop-down-tree/_layout.scss +9 -5
- package/styles/drop-down-tree/_material-dark-definition.scss +10 -1
- package/styles/drop-down-tree/_material-definition.scss +10 -1
- package/styles/drop-down-tree/_material3-definition.scss +11 -2
- package/styles/drop-down-tree/_tailwind-definition.scss +11 -3
- package/styles/drop-down-tree/_tailwind3-definition.scss +9 -1
- package/styles/drop-down-tree/bds.css +19 -4
- package/styles/drop-down-tree/bootstrap-dark.css +22 -0
- package/styles/drop-down-tree/bootstrap.css +22 -0
- package/styles/drop-down-tree/bootstrap4.css +24 -2
- package/styles/drop-down-tree/bootstrap5-dark.css +17 -2
- package/styles/drop-down-tree/bootstrap5.3.css +24 -2
- package/styles/drop-down-tree/bootstrap5.css +17 -2
- package/styles/drop-down-tree/fabric-dark.css +22 -0
- package/styles/drop-down-tree/fabric.css +22 -0
- package/styles/drop-down-tree/fluent-dark.css +17 -2
- package/styles/drop-down-tree/fluent.css +17 -2
- package/styles/drop-down-tree/fluent2.css +25 -3
- package/styles/drop-down-tree/highcontrast-light.css +22 -0
- package/styles/drop-down-tree/highcontrast.css +23 -1
- package/styles/drop-down-tree/material-dark.css +22 -0
- package/styles/drop-down-tree/material.css +23 -1
- package/styles/drop-down-tree/material3-dark.css +24 -2
- package/styles/drop-down-tree/material3.css +24 -2
- package/styles/drop-down-tree/tailwind-dark.css +19 -4
- package/styles/drop-down-tree/tailwind.css +19 -4
- package/styles/drop-down-tree/tailwind3.css +22 -1
- package/styles/fabric-dark-lite.css +7 -0
- package/styles/fabric-dark.css +22 -0
- package/styles/fabric-lite.css +7 -0
- package/styles/fabric.css +22 -0
- package/styles/fluent-dark-lite.css +8 -1
- package/styles/fluent-dark.css +17 -2
- package/styles/fluent-lite.css +8 -1
- package/styles/fluent.css +17 -2
- package/styles/fluent2-lite.css +9 -2
- package/styles/fluent2.css +25 -3
- package/styles/highcontrast-light-lite.css +7 -0
- package/styles/highcontrast-light.css +22 -0
- package/styles/highcontrast-lite.css +8 -1
- package/styles/highcontrast.css +23 -1
- package/styles/material-dark-lite.css +7 -0
- package/styles/material-dark.css +22 -0
- package/styles/material-lite.css +8 -1
- package/styles/material.css +23 -1
- package/styles/material3-dark-lite.css +8 -1
- package/styles/material3-dark.css +24 -2
- package/styles/material3-lite.css +8 -1
- package/styles/material3.css +24 -2
- package/styles/tailwind-dark-lite.css +9 -2
- package/styles/tailwind-dark.css +19 -4
- package/styles/tailwind-lite.css +9 -2
- package/styles/tailwind.css +19 -4
- package/styles/tailwind3-lite.css +6 -0
- package/styles/tailwind3.css +22 -1
|
@@ -5239,7 +5239,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5239
5239
|
&& ((this.dataSource instanceof DataManager)
|
|
5240
5240
|
|| (!isNullOrUndefined(this.dataSource) && !isNullOrUndefined(this.dataSource.length) &&
|
|
5241
5241
|
this.dataSource.length !== 0)))) {
|
|
5242
|
-
if (this.itemTemplate && this.element.tagName === 'EJS-COMBOBOX' && this.allowFiltering) {
|
|
5242
|
+
if (this.itemTemplate && (this.element.tagName === 'EJS-COMBOBOX' || this.isReact) && this.allowFiltering) {
|
|
5243
5243
|
setTimeout(function () {
|
|
5244
5244
|
_this.updateActionCompleteDataValues(ulElement, list);
|
|
5245
5245
|
}, 0);
|
|
@@ -9075,6 +9075,10 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
9075
9075
|
_this.updateFocus(focusedElement);
|
|
9076
9076
|
}
|
|
9077
9077
|
if (_this.allowFiltering) {
|
|
9078
|
+
var focusedElement = _this.treeObj.element.querySelector('li.e-node-focus');
|
|
9079
|
+
if (!isNullOrUndefined(focusedElement)) {
|
|
9080
|
+
removeClass([focusedElement], 'e-node-focus');
|
|
9081
|
+
}
|
|
9078
9082
|
removeClass([_this.inputWrapper], [INPUTFOCUS]);
|
|
9079
9083
|
_this.filterObj.element.focus();
|
|
9080
9084
|
}
|
|
@@ -9934,7 +9938,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
9934
9938
|
this.chipCollection.appendChild(chip);
|
|
9935
9939
|
if (this.showClearButton) {
|
|
9936
9940
|
chip.appendChild(chipClose);
|
|
9937
|
-
EventHandler.add(chipClose, '
|
|
9941
|
+
EventHandler.add(chipClose, 'mouseup', this.removeChip, this);
|
|
9938
9942
|
}
|
|
9939
9943
|
};
|
|
9940
9944
|
DropDownTree.prototype.setTagValues = function () {
|
|
@@ -10067,6 +10071,10 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
10067
10071
|
if (!this.enabled || this.readonly) {
|
|
10068
10072
|
return;
|
|
10069
10073
|
}
|
|
10074
|
+
if (e.target.classList.contains('e-chips-close') && !this.isPopupOpen) {
|
|
10075
|
+
e.stopPropagation();
|
|
10076
|
+
e.preventDefault();
|
|
10077
|
+
}
|
|
10070
10078
|
var element = e.target.parentElement;
|
|
10071
10079
|
var value = element.getAttribute('data-value');
|
|
10072
10080
|
if (this.chipCollection) {
|
|
@@ -10626,7 +10634,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
10626
10634
|
var chipsIcons = selectAll('.e-chips-close', this.chipCollection);
|
|
10627
10635
|
for (var _i = 0, chipsIcons_1 = chipsIcons; _i < chipsIcons_1.length; _i++) {
|
|
10628
10636
|
var element = chipsIcons_1[_i];
|
|
10629
|
-
EventHandler.remove(element, '
|
|
10637
|
+
EventHandler.remove(element, 'mouseup', this.removeChip);
|
|
10630
10638
|
}
|
|
10631
10639
|
}
|
|
10632
10640
|
this.chipWrapper = null;
|
|
@@ -12796,6 +12804,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
12796
12804
|
_this.isBlurDispatching = false;
|
|
12797
12805
|
_this.isFilterPrevented = false;
|
|
12798
12806
|
_this.isFilteringAction = false;
|
|
12807
|
+
_this.isVirtualReorder = false;
|
|
12799
12808
|
_this.isValidKey = false;
|
|
12800
12809
|
_this.selectAllEventData = [];
|
|
12801
12810
|
_this.selectAllEventEle = [];
|
|
@@ -12993,12 +13002,14 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
12993
13002
|
};
|
|
12994
13003
|
MultiSelect.prototype.updateVirtualReOrderList = function (isCheckBoxUpdate) {
|
|
12995
13004
|
var query = this.getForQuery(this.value, true).clone();
|
|
13005
|
+
this.isVirtualReorder = true;
|
|
12996
13006
|
if (this.enableVirtualization && this.dataSource instanceof DataManager) {
|
|
12997
13007
|
this.resetList(this.selectedListData, this.fields, query);
|
|
12998
13008
|
}
|
|
12999
13009
|
else {
|
|
13000
13010
|
this.resetList(this.dataSource, this.fields, query);
|
|
13001
13011
|
}
|
|
13012
|
+
this.isVirtualReorder = false;
|
|
13002
13013
|
this.UpdateSkeleton();
|
|
13003
13014
|
this.liCollections = this.list.querySelectorAll('.' + dropDownBaseClasses.li);
|
|
13004
13015
|
this.virtualItemCount = this.itemCount;
|
|
@@ -13207,10 +13218,14 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13207
13218
|
var field = this.isPrimitiveData ? '' : this.fields.value;
|
|
13208
13219
|
if (this.enableVirtualization && valuecheck) {
|
|
13209
13220
|
if (isCheckbox) {
|
|
13210
|
-
|
|
13221
|
+
var startindex = this.viewPortInfo.startIndex;
|
|
13222
|
+
var endindex = (((startindex + this.viewPortInfo.endIndex) <= (valuecheck.length)) &&
|
|
13223
|
+
valuecheck[(startindex + this.viewPortInfo.endIndex)]) ? (startindex + this.viewPortInfo.endIndex)
|
|
13224
|
+
: (valuecheck.length);
|
|
13225
|
+
for (var i = startindex; i < endindex; i++) {
|
|
13211
13226
|
var value = this.allowObjectBinding ? getValue((this.fields.value) ?
|
|
13212
13227
|
this.fields.value : '', valuecheck[i]) : valuecheck[i];
|
|
13213
|
-
if (i ===
|
|
13228
|
+
if (i === startindex) {
|
|
13214
13229
|
predicate = new Predicate(field, 'equal', (value));
|
|
13215
13230
|
}
|
|
13216
13231
|
else {
|
|
@@ -13638,7 +13653,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13638
13653
|
}
|
|
13639
13654
|
}
|
|
13640
13655
|
}
|
|
13641
|
-
if ((this.allowFiltering && isSkip) || !isReOrder || (!this.allowFiltering && isSkip)) {
|
|
13656
|
+
if ((this.allowFiltering && isSkip) || !isReOrder || (!this.allowFiltering && isSkip) && !this.isVirtualReorder) {
|
|
13642
13657
|
if (!isReOrder) {
|
|
13643
13658
|
filterQuery.skip(this.viewPortInfo.startIndex);
|
|
13644
13659
|
}
|
|
@@ -16354,7 +16369,8 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16354
16369
|
}
|
|
16355
16370
|
else {
|
|
16356
16371
|
temp = isInitialVirtualData && delim ? this_1.text : this_1.getTextByValue(value);
|
|
16357
|
-
var textValues = this_1.isDynamicRemoteVirtualData && value != null && value !== ''
|
|
16372
|
+
var textValues = this_1.isDynamicRemoteVirtualData && value != null && value !== '' && !isInitialVirtualData ?
|
|
16373
|
+
this_1.getTextByValue(value) : isInitialVirtualData ? this_1.text : (this_1.text && this_1.text !== '' ? this_1.text + this_1.delimiterChar + temp : temp);
|
|
16358
16374
|
data += temp + delimiterChar + ' ';
|
|
16359
16375
|
text.push(textValues);
|
|
16360
16376
|
hiddenElementContent = this_1.hiddenElement.innerHTML;
|
|
@@ -16522,7 +16538,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16522
16538
|
(this.mode === 'Box' || this.mode === 'Default'))) ||
|
|
16523
16539
|
(this.enableVirtualization && value != null && text != null && !isCustomData)) {
|
|
16524
16540
|
var currentText = [];
|
|
16525
|
-
var textValues = this.isDynamicRemoteVirtualData && text != null && text !== '' ? text : this.text != null && this.text !== '' && !this.text.includes(text) ? this.text + this.delimiterChar + text : text;
|
|
16541
|
+
var textValues = this.isDynamicRemoteVirtualData && text != null && text !== '' && index === 0 ? text : this.text != null && this.text !== '' && !this.text.includes(text) ? this.text + this.delimiterChar + text : text;
|
|
16526
16542
|
currentText.push(textValues);
|
|
16527
16543
|
this.setProperties({ text: currentText.toString() }, true);
|
|
16528
16544
|
this.addChip(text, value);
|
|
@@ -21780,7 +21796,8 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
21780
21796
|
}
|
|
21781
21797
|
var char = String.fromCharCode(e.keyCode);
|
|
21782
21798
|
var isWordCharacter = char.match(/\w/);
|
|
21783
|
-
|
|
21799
|
+
var isWordAccentCharacter = char.match(/[A-Za-z0-9\u00C0-\u024F ]/);
|
|
21800
|
+
if (!isNullOrUndefined(isWordCharacter) || !isNullOrUndefined(isWordAccentCharacter)) {
|
|
21784
21801
|
this.isValidKey = true;
|
|
21785
21802
|
}
|
|
21786
21803
|
this.isBackSpace = e.keyCode === 8;
|
|
@@ -23714,8 +23731,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
23714
23731
|
if (lastNode) {
|
|
23715
23732
|
range = range.cloneRange();
|
|
23716
23733
|
if (this.isRTE) {
|
|
23717
|
-
range.setStart(lastNode,
|
|
23718
|
-
range.setEnd(lastNode, lastNode.textContent.length);
|
|
23734
|
+
range.setStart(lastNode, lastNode.textContent.length);
|
|
23719
23735
|
}
|
|
23720
23736
|
else {
|
|
23721
23737
|
range.setStartAfter(lastNode);
|
|
@@ -23938,6 +23954,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
23938
23954
|
this.range = this.getCurrentRange();
|
|
23939
23955
|
}
|
|
23940
23956
|
var currentRange = this.getTextRange();
|
|
23957
|
+
this.queryString = text;
|
|
23941
23958
|
var lastWordRange = this.getLastLetter(currentRange);
|
|
23942
23959
|
if ((this.ignoreCase && (text === lastWordRange || text === lastWordRange.toLowerCase()))
|
|
23943
23960
|
|| !this.ignoreCase && text === lastWordRange) {
|
|
@@ -23953,8 +23970,8 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
23953
23970
|
this.renderList();
|
|
23954
23971
|
this.renderPopup();
|
|
23955
23972
|
}
|
|
23956
|
-
else {
|
|
23957
|
-
this.
|
|
23973
|
+
else if (!this.isPopupOpen) {
|
|
23974
|
+
this.renderPopup();
|
|
23958
23975
|
}
|
|
23959
23976
|
this.popupObj.element.style.left = formatUnit(positionX);
|
|
23960
23977
|
this.popupObj.element.style.top = formatUnit(positionY);
|