@syncfusion/ej2-dropdowns 30.2.5 → 30.2.6
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 +22 -8
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +22 -8
- 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 +2 -2
- package/src/combo-box/combo-box.js +6 -3
- package/src/drop-down-list/drop-down-list.js +7 -0
- package/src/drop-down-tree/drop-down-tree.js +6 -2
- package/src/multi-select/multi-select.js +3 -3
- package/styles/bds-lite.css +1 -1
- package/styles/bds.css +1 -1
- package/styles/bootstrap-dark-lite.css +1 -1
- package/styles/bootstrap-dark.css +1 -1
- package/styles/bootstrap-lite.css +1 -1
- package/styles/bootstrap.css +1 -1
- package/styles/bootstrap4-lite.css +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark-lite.css +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5-lite.css +1 -1
- package/styles/bootstrap5.3-lite.css +1 -1
- package/styles/bootstrap5.3.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/drop-down-tree/_layout.scss +7 -2
- package/styles/drop-down-tree/bds.css +1 -1
- package/styles/drop-down-tree/bootstrap-dark.css +1 -1
- package/styles/drop-down-tree/bootstrap.css +1 -1
- package/styles/drop-down-tree/bootstrap4.css +1 -1
- package/styles/drop-down-tree/bootstrap5-dark.css +1 -1
- package/styles/drop-down-tree/bootstrap5.3.css +1 -1
- package/styles/drop-down-tree/bootstrap5.css +1 -1
- package/styles/drop-down-tree/fabric-dark.css +1 -1
- package/styles/drop-down-tree/fabric.css +1 -1
- package/styles/drop-down-tree/fluent-dark.css +1 -1
- package/styles/drop-down-tree/fluent.css +1 -1
- package/styles/drop-down-tree/fluent2.css +0 -4
- package/styles/drop-down-tree/highcontrast-light.css +1 -1
- package/styles/drop-down-tree/highcontrast.css +1 -1
- package/styles/drop-down-tree/material-dark.css +0 -4
- package/styles/drop-down-tree/material.css +0 -4
- package/styles/drop-down-tree/material3-dark.css +0 -4
- package/styles/drop-down-tree/material3.css +0 -4
- package/styles/drop-down-tree/tailwind-dark.css +1 -1
- package/styles/drop-down-tree/tailwind.css +1 -1
- package/styles/drop-down-tree/tailwind3.css +1 -1
- package/styles/fabric-dark-lite.css +1 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric-lite.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/fluent-dark-lite.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent-lite.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/fluent2-lite.css +0 -4
- package/styles/fluent2.css +0 -4
- package/styles/highcontrast-light-lite.css +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast-lite.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/material-dark-lite.css +0 -4
- package/styles/material-dark.css +0 -4
- package/styles/material-lite.css +0 -4
- package/styles/material.css +0 -4
- package/styles/material3-dark-lite.css +0 -4
- package/styles/material3-dark.css +0 -4
- package/styles/material3-lite.css +0 -4
- package/styles/material3.css +0 -4
- package/styles/tailwind-dark-lite.css +1 -1
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind-lite.css +1 -1
- package/styles/tailwind.css +1 -1
- package/styles/tailwind3-lite.css +1 -1
- package/styles/tailwind3.css +1 -1
|
@@ -5691,6 +5691,13 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5691
5691
|
}
|
|
5692
5692
|
else {
|
|
5693
5693
|
this.removeFocus();
|
|
5694
|
+
if (this.allowFiltering && this.actionCompleteData && this.actionCompleteData.ulElement &&
|
|
5695
|
+
this.dataSource instanceof DataManager) {
|
|
5696
|
+
var focus_1 = this.actionCompleteData.ulElement.querySelector('.e-item-focus');
|
|
5697
|
+
if (focus_1) {
|
|
5698
|
+
removeClass(focus_1, dropDownListClasses.focus);
|
|
5699
|
+
}
|
|
5700
|
+
}
|
|
5694
5701
|
this.list.querySelector('.' + dropDownBaseClasses.li).classList.add(dropDownListClasses.focus);
|
|
5695
5702
|
}
|
|
5696
5703
|
};
|
|
@@ -9611,11 +9618,15 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
9611
9618
|
}
|
|
9612
9619
|
};
|
|
9613
9620
|
DropDownTree.prototype.restoreFilterSelection = function () {
|
|
9621
|
+
if (this.treeObj.checkedNodes) {
|
|
9622
|
+
this.treeObj.checkedNodes = [];
|
|
9623
|
+
}
|
|
9624
|
+
var nodeIds = Array.isArray(this.value) ? this.value : [];
|
|
9614
9625
|
if (this.showCheckBox) {
|
|
9615
|
-
this.treeObj.checkedNodes =
|
|
9626
|
+
this.treeObj.checkedNodes = nodeIds;
|
|
9616
9627
|
}
|
|
9617
9628
|
else {
|
|
9618
|
-
this.treeObj.selectedNodes =
|
|
9629
|
+
this.treeObj.selectedNodes = nodeIds;
|
|
9619
9630
|
}
|
|
9620
9631
|
};
|
|
9621
9632
|
/* To set cssclass for the dropdowntree */
|
|
@@ -11456,13 +11467,16 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
11456
11467
|
if (this.dataSource instanceof DataManager) {
|
|
11457
11468
|
this.dataSource.executeQuery(new Query().where(new Predicate(fields, 'equal', currentValue_1)))
|
|
11458
11469
|
.then(function (e) {
|
|
11459
|
-
if (e.result.length > 0) {
|
|
11470
|
+
if (e && e.result && e.result.length > 0) {
|
|
11460
11471
|
_this.itemData = e.result[0];
|
|
11461
11472
|
var dataItem = _this.getItemData();
|
|
11462
11473
|
var value = _this.allowObjectBinding ?
|
|
11463
11474
|
_this.getDataByValue(dataItem.value) : dataItem.value;
|
|
11464
|
-
|
|
11465
|
-
(_this.value
|
|
11475
|
+
var valueFieldValue = _this.allowObjectBinding &&
|
|
11476
|
+
!isNullOrUndefined(_this.value) ? getValue((_this.fields.value) ?
|
|
11477
|
+
_this.fields.value : '', _this.value) : _this.value;
|
|
11478
|
+
if ((valueFieldValue === dataItem.value && _this.text !== dataItem.text.toString()) ||
|
|
11479
|
+
(valueFieldValue !== dataItem.value && _this.text === dataItem.text.toString())) {
|
|
11466
11480
|
_this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
|
|
11467
11481
|
}
|
|
11468
11482
|
}
|
|
@@ -14052,7 +14066,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14052
14066
|
MultiSelect.prototype.dataUpdater = function (dataSource, query, fields) {
|
|
14053
14067
|
this.isDataFetched = false;
|
|
14054
14068
|
var isNoData = this.list.classList.contains(dropDownBaseClasses.noData);
|
|
14055
|
-
if (this.targetElement().trim() === '') {
|
|
14069
|
+
if (this.targetElement().trim() === '' && (!this.allowCustomValue || this.mode === 'CheckBox' || this.targetElement() === '')) {
|
|
14056
14070
|
var list = this.enableVirtualization ? this.list.cloneNode(true) : this.mainList.cloneNode ?
|
|
14057
14071
|
this.mainList.cloneNode(true) : this.mainList;
|
|
14058
14072
|
if (this.backCommand || (this.enableVirtualization && this.mode === 'CheckBox' && this.value && this.value.length > 0)) {
|
|
@@ -16261,7 +16275,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16261
16275
|
var ulElement = _this.list.querySelector('ul');
|
|
16262
16276
|
if (ulElement) {
|
|
16263
16277
|
if (!(_this.mode !== 'CheckBox' && (_this.allowFiltering || _this.allowCustomValue) &&
|
|
16264
|
-
_this.targetElement().trim() !== '')) {
|
|
16278
|
+
(_this.targetElement().trim() !== '' || (_this.targetElement() !== '' && _this.allowCustomValue)))) {
|
|
16265
16279
|
_this.mainList = ulElement.cloneNode ? ulElement.cloneNode(true) : ulElement;
|
|
16266
16280
|
}
|
|
16267
16281
|
}
|
|
@@ -16269,7 +16283,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16269
16283
|
}
|
|
16270
16284
|
_this.popupObj.wireScrollEvents();
|
|
16271
16285
|
if (!(_this.mode !== 'CheckBox' && (_this.allowFiltering || _this.allowCustomValue) &&
|
|
16272
|
-
_this.targetElement().trim() !== '') && !_this.enableVirtualization) {
|
|
16286
|
+
(_this.targetElement().trim() !== '' || (_this.targetElement() !== '' && _this.allowCustomValue))) && !_this.enableVirtualization) {
|
|
16273
16287
|
_this.loadTemplate();
|
|
16274
16288
|
if (_this.enableVirtualization && _this.mode === 'CheckBox') {
|
|
16275
16289
|
_this.UpdateSkeleton();
|