@syncfusion/ej2-dropdowns 25.2.5 → 25.2.7
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/CHANGELOG.md +16 -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 +13 -5
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +13 -5
- 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-tree/drop-down-tree.js +0 -1
- package/src/multi-select/multi-select.js +13 -4
- package/styles/bootstrap-dark.css +3 -0
- package/styles/bootstrap.css +3 -0
- package/styles/bootstrap4.css +3 -0
- package/styles/bootstrap5-dark.css +3 -0
- package/styles/bootstrap5.css +3 -0
- package/styles/drop-down-tree/_bds-definition.scss +1 -0
- package/styles/drop-down-tree/_bootstrap-dark-definition.scss +2 -1
- package/styles/drop-down-tree/_bootstrap-definition.scss +2 -1
- package/styles/drop-down-tree/_bootstrap4-definition.scss +2 -1
- package/styles/drop-down-tree/_bootstrap5-definition.scss +2 -1
- package/styles/drop-down-tree/_fabric-dark-definition.scss +2 -1
- package/styles/drop-down-tree/_fabric-definition.scss +2 -1
- package/styles/drop-down-tree/_fluent-definition.scss +2 -1
- package/styles/drop-down-tree/_fusionnew-definition.scss +2 -1
- package/styles/drop-down-tree/_highcontrast-definition.scss +2 -1
- package/styles/drop-down-tree/_highcontrast-light-definition.scss +2 -1
- package/styles/drop-down-tree/_material-dark-definition.scss +2 -1
- package/styles/drop-down-tree/_material-definition.scss +2 -1
- package/styles/drop-down-tree/_material3-definition.scss +1 -0
- package/styles/drop-down-tree/_tailwind-definition.scss +1 -0
- package/styles/drop-down-tree/_theme.scss +3 -0
- package/styles/drop-down-tree/bootstrap-dark.css +3 -0
- package/styles/drop-down-tree/bootstrap.css +3 -0
- package/styles/drop-down-tree/bootstrap4.css +3 -0
- package/styles/drop-down-tree/bootstrap5-dark.css +3 -0
- package/styles/drop-down-tree/bootstrap5.css +3 -0
- package/styles/drop-down-tree/fabric-dark.css +3 -0
- package/styles/drop-down-tree/fabric.css +3 -0
- package/styles/drop-down-tree/fluent-dark.css +3 -0
- package/styles/drop-down-tree/fluent.css +3 -0
- package/styles/drop-down-tree/highcontrast-light.css +3 -0
- package/styles/drop-down-tree/highcontrast.css +3 -0
- package/styles/drop-down-tree/material-dark.css +3 -0
- package/styles/drop-down-tree/material.css +3 -0
- package/styles/drop-down-tree/material3-dark.css +3 -0
- package/styles/drop-down-tree/material3.css +3 -0
- package/styles/drop-down-tree/tailwind-dark.css +3 -0
- package/styles/drop-down-tree/tailwind.css +3 -0
- package/styles/fabric-dark.css +3 -0
- package/styles/fabric.css +3 -0
- package/styles/fluent-dark.css +3 -0
- package/styles/fluent.css +3 -0
- package/styles/highcontrast-light.css +3 -0
- package/styles/highcontrast.css +3 -0
- package/styles/material-dark.css +3 -0
- package/styles/material.css +3 -0
- package/styles/material3-dark.css +3 -0
- package/styles/material3.css +3 -0
- package/styles/tailwind-dark.css +3 -0
- package/styles/tailwind.css +3 -0
|
@@ -7458,7 +7458,6 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
7458
7458
|
}
|
|
7459
7459
|
break;
|
|
7460
7460
|
case 'tab':
|
|
7461
|
-
case 'shiftTab':
|
|
7462
7461
|
if (_this.isPopupOpen) {
|
|
7463
7462
|
_this.hidePopup();
|
|
7464
7463
|
}
|
|
@@ -12142,7 +12141,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
12142
12141
|
this.updateSelectElementData(this.allowFiltering);
|
|
12143
12142
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
12144
12143
|
var proxy = this;
|
|
12145
|
-
if (!isNullOrUndefined(this.value) && !this.allowCustomValue && !this.enableVirtualization) {
|
|
12144
|
+
if (!isNullOrUndefined(this.value) && !this.allowCustomValue && !this.enableVirtualization && this.listData && this.listData.length > 0) {
|
|
12146
12145
|
for (var i = 0; i < this.value.length; i++) {
|
|
12147
12146
|
var value = this.allowObjectBinding ? getValue((this.fields.value) ? this.fields.value : '', proxy.value[i]) : proxy.value[i];
|
|
12148
12147
|
var checkEle = this.findListElement(((this.allowFiltering && !isNullOrUndefined(this.mainList)) ? this.mainList : ulElement), 'li', 'data-value', value);
|
|
@@ -12629,6 +12628,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
12629
12628
|
this.totalItemCount = this.enableVirtualization && this.dataSource instanceof DataManager ? tempCount : this.totalItemCount;
|
|
12630
12629
|
}
|
|
12631
12630
|
else {
|
|
12631
|
+
if (this.dataSource instanceof DataManager && this.allowCustomValue && this.allowFiltering) {
|
|
12632
|
+
this.remoteCustomValue = false;
|
|
12633
|
+
}
|
|
12632
12634
|
var tempData = JSON.parse(JSON.stringify(this.listData));
|
|
12633
12635
|
tempData.splice(0, 0, dataItem_1);
|
|
12634
12636
|
this.resetList(tempData, field, query);
|
|
@@ -14774,6 +14776,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14774
14776
|
if (!eventArgs.cancel) {
|
|
14775
14777
|
if (!_this.isFiltered && !eventArgs.preventDefaultAction) {
|
|
14776
14778
|
_this.filterAction = true;
|
|
14779
|
+
if (_this.dataSource instanceof DataManager && _this.allowCustomValue) {
|
|
14780
|
+
_this.isCustomRendered = false;
|
|
14781
|
+
}
|
|
14777
14782
|
_this.dataUpdater(_this.dataSource, null, _this.fields);
|
|
14778
14783
|
}
|
|
14779
14784
|
}
|
|
@@ -14926,7 +14931,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14926
14931
|
if (this.enableVirtualization) {
|
|
14927
14932
|
listValue = this.findListElement((!isNullOrUndefined(this.list) ? this.list : this.ulElement), 'li', 'data-value', valueItem);
|
|
14928
14933
|
}
|
|
14929
|
-
if (isNullOrUndefined(listValue) && !this.allowCustomValue && !this.enableVirtualization) {
|
|
14934
|
+
if (isNullOrUndefined(listValue) && !this.allowCustomValue && !this.enableVirtualization && this.listData && this.listData.length > 0) {
|
|
14930
14935
|
this.value.splice(index, 1);
|
|
14931
14936
|
index -= 1;
|
|
14932
14937
|
valueLength -= 1;
|
|
@@ -15719,7 +15724,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15719
15724
|
downIconWidth = this.dropIcon.offsetWidth + parseInt(window.getComputedStyle(this.dropIcon).marginRight, 10);
|
|
15720
15725
|
}
|
|
15721
15726
|
this.checkClearIconWidth();
|
|
15722
|
-
if (!isNullOrUndefined(this.value)) {
|
|
15727
|
+
if (!isNullOrUndefined(this.value) && (this.allowCustomValue || (this.listData && this.listData.length > 0))) {
|
|
15723
15728
|
for (var index = 0; !isNullOrUndefined(this.value[index]); index++) {
|
|
15724
15729
|
var items = this.text && this.text.split(this.delimiterChar);
|
|
15725
15730
|
if (!this.enableVirtualization) {
|
|
@@ -16842,6 +16847,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16842
16847
|
if (this.mode === 'Default' || this.mode === 'Box') {
|
|
16843
16848
|
this.inputElement.setAttribute('aria-describedby', this.chipCollectionWrapper.id);
|
|
16844
16849
|
}
|
|
16850
|
+
if (!isNullOrUndefined(this.inputElement)) {
|
|
16851
|
+
attributes(this.inputElement, { 'aria-expanded': 'false', 'aria-label': this.getModuleName() });
|
|
16852
|
+
}
|
|
16845
16853
|
if (this.element.tagName !== this.getNgDirective()) {
|
|
16846
16854
|
this.element.style.display = 'none';
|
|
16847
16855
|
}
|
|
@@ -17112,7 +17120,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17112
17120
|
this.ulElement = null;
|
|
17113
17121
|
this.mainListCollection = null;
|
|
17114
17122
|
_super.prototype.destroy.call(this);
|
|
17115
|
-
var temp = ['readonly', 'aria-disabled', 'placeholder'];
|
|
17123
|
+
var temp = ['readonly', 'aria-disabled', 'placeholder', 'aria-label', 'aria-expanded'];
|
|
17116
17124
|
var length = temp.length;
|
|
17117
17125
|
if (!isNullOrUndefined(this.inputElement)) {
|
|
17118
17126
|
while (length > 0) {
|