@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
|
@@ -5568,6 +5568,13 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
5568
5568
|
}
|
|
5569
5569
|
else {
|
|
5570
5570
|
this.removeFocus();
|
|
5571
|
+
if (this.allowFiltering && this.actionCompleteData && this.actionCompleteData.ulElement &&
|
|
5572
|
+
this.dataSource instanceof DataManager) {
|
|
5573
|
+
const focus = this.actionCompleteData.ulElement.querySelector('.e-item-focus');
|
|
5574
|
+
if (focus) {
|
|
5575
|
+
removeClass(focus, dropDownListClasses.focus);
|
|
5576
|
+
}
|
|
5577
|
+
}
|
|
5571
5578
|
this.list.querySelector('.' + dropDownBaseClasses.li).classList.add(dropDownListClasses.focus);
|
|
5572
5579
|
}
|
|
5573
5580
|
}
|
|
@@ -9422,11 +9429,15 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
9422
9429
|
}
|
|
9423
9430
|
}
|
|
9424
9431
|
restoreFilterSelection() {
|
|
9432
|
+
if (this.treeObj.checkedNodes) {
|
|
9433
|
+
this.treeObj.checkedNodes = [];
|
|
9434
|
+
}
|
|
9435
|
+
const nodeIds = Array.isArray(this.value) ? this.value : [];
|
|
9425
9436
|
if (this.showCheckBox) {
|
|
9426
|
-
this.treeObj.checkedNodes =
|
|
9437
|
+
this.treeObj.checkedNodes = nodeIds;
|
|
9427
9438
|
}
|
|
9428
9439
|
else {
|
|
9429
|
-
this.treeObj.selectedNodes =
|
|
9440
|
+
this.treeObj.selectedNodes = nodeIds;
|
|
9430
9441
|
}
|
|
9431
9442
|
}
|
|
9432
9443
|
/* To set cssclass for the dropdowntree */
|
|
@@ -11243,13 +11254,16 @@ let ComboBox = class ComboBox extends DropDownList {
|
|
|
11243
11254
|
if (this.dataSource instanceof DataManager) {
|
|
11244
11255
|
this.dataSource.executeQuery(new Query().where(new Predicate(fields, 'equal', currentValue)))
|
|
11245
11256
|
.then((e) => {
|
|
11246
|
-
if (e.result.length > 0) {
|
|
11257
|
+
if (e && e.result && e.result.length > 0) {
|
|
11247
11258
|
this.itemData = e.result[0];
|
|
11248
11259
|
const dataItem = this.getItemData();
|
|
11249
11260
|
const value = this.allowObjectBinding ?
|
|
11250
11261
|
this.getDataByValue(dataItem.value) : dataItem.value;
|
|
11251
|
-
|
|
11252
|
-
(this.value
|
|
11262
|
+
const valueFieldValue = this.allowObjectBinding &&
|
|
11263
|
+
!isNullOrUndefined(this.value) ? getValue((this.fields.value) ?
|
|
11264
|
+
this.fields.value : '', this.value) : this.value;
|
|
11265
|
+
if ((valueFieldValue === dataItem.value && this.text !== dataItem.text.toString()) ||
|
|
11266
|
+
(valueFieldValue !== dataItem.value && this.text === dataItem.text.toString())) {
|
|
11253
11267
|
this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
|
|
11254
11268
|
}
|
|
11255
11269
|
}
|
|
@@ -13796,7 +13810,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
13796
13810
|
dataUpdater(dataSource, query, fields) {
|
|
13797
13811
|
this.isDataFetched = false;
|
|
13798
13812
|
const isNoData = this.list.classList.contains(dropDownBaseClasses.noData);
|
|
13799
|
-
if (this.targetElement().trim() === '') {
|
|
13813
|
+
if (this.targetElement().trim() === '' && (!this.allowCustomValue || this.mode === 'CheckBox' || this.targetElement() === '')) {
|
|
13800
13814
|
const list = this.enableVirtualization ? this.list.cloneNode(true) : this.mainList.cloneNode ?
|
|
13801
13815
|
this.mainList.cloneNode(true) : this.mainList;
|
|
13802
13816
|
if (this.backCommand || (this.enableVirtualization && this.mode === 'CheckBox' && this.value && this.value.length > 0)) {
|
|
@@ -15988,7 +16002,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
15988
16002
|
const ulElement = this.list.querySelector('ul');
|
|
15989
16003
|
if (ulElement) {
|
|
15990
16004
|
if (!(this.mode !== 'CheckBox' && (this.allowFiltering || this.allowCustomValue) &&
|
|
15991
|
-
this.targetElement().trim() !== '')) {
|
|
16005
|
+
(this.targetElement().trim() !== '' || (this.targetElement() !== '' && this.allowCustomValue)))) {
|
|
15992
16006
|
this.mainList = ulElement.cloneNode ? ulElement.cloneNode(true) : ulElement;
|
|
15993
16007
|
}
|
|
15994
16008
|
}
|
|
@@ -15996,7 +16010,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
15996
16010
|
}
|
|
15997
16011
|
this.popupObj.wireScrollEvents();
|
|
15998
16012
|
if (!(this.mode !== 'CheckBox' && (this.allowFiltering || this.allowCustomValue) &&
|
|
15999
|
-
this.targetElement().trim() !== '') && !this.enableVirtualization) {
|
|
16013
|
+
(this.targetElement().trim() !== '' || (this.targetElement() !== '' && this.allowCustomValue))) && !this.enableVirtualization) {
|
|
16000
16014
|
this.loadTemplate();
|
|
16001
16015
|
if (this.enableVirtualization && this.mode === 'CheckBox') {
|
|
16002
16016
|
this.UpdateSkeleton();
|