@syncfusion/ej2-dropdowns 19.4.38 → 19.4.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/README.md +1 -1
- 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 +31 -72
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +31 -73
- 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 +7 -6
- package/src/combo-box/combo-box.js +2 -2
- package/src/common/incremental-search.d.ts +1 -1
- package/src/common/incremental-search.js +1 -1
- package/src/drop-down-base/drop-down-base.js +1 -13
- package/src/list-box/list-box.d.ts +4 -0
- package/src/list-box/list-box.js +3 -0
- package/src/multi-select/multi-select-model.d.ts +1 -1
- package/src/multi-select/multi-select.d.ts +0 -2
- package/src/multi-select/multi-select.js +24 -57
- package/styles/_all.scss +3 -0
- package/styles/auto-complete/bootstrap5-dark.css +1 -0
- package/styles/auto-complete/bootstrap5.css +1 -0
- package/styles/bootstrap5-dark.css +6 -12
- package/styles/bootstrap5.css +6 -12
- package/styles/combo-box/bootstrap5-dark.css +1 -0
- package/styles/combo-box/bootstrap5.css +1 -0
- package/styles/drop-down-list/_bootstrap5-definition.scss +1 -0
- package/styles/drop-down-list/bootstrap5-dark.css +1 -0
- package/styles/drop-down-list/bootstrap5.css +1 -0
- package/styles/drop-down-list/icons/_bootstrap5.scss +1 -0
- package/styles/drop-down-tree/_bootstrap5-definition.scss +58 -59
- package/styles/drop-down-tree/_layout.scss +4 -12
- package/styles/drop-down-tree/_tailwind-definition.scss +0 -1
- package/styles/drop-down-tree/bootstrap5-dark.css +4 -11
- package/styles/drop-down-tree/bootstrap5.css +4 -11
- package/styles/drop-down-tree/icons/_bootstrap5.scss +11 -11
- package/styles/drop-down-tree/icons/_tailwind-dark.scss +11 -11
- package/styles/drop-down-tree/tailwind-dark.css +0 -1
- package/styles/drop-down-tree/tailwind.css +0 -1
- package/styles/list-box/_bootstrap5-definition.scss +2 -2
- package/styles/list-box/_layout.scss +6 -1
- package/styles/list-box/bootstrap5-dark.css +1 -1
- package/styles/list-box/bootstrap5.css +1 -1
- package/styles/list-box/icons/_tailwind-dark.scss +2 -2
- package/styles/list-box/tailwind-dark.css +3 -3
- package/styles/list-box/tailwind.css +1 -1
- package/styles/material-dark.css +94 -0
- package/styles/material.css +94 -0
- package/styles/multi-select/_layout.scss +116 -0
- package/styles/multi-select/_material-dark-definition.scss +22 -0
- package/styles/multi-select/_material-definition.scss +22 -0
- package/styles/multi-select/material-dark.css +94 -0
- package/styles/multi-select/material.css +94 -0
- package/styles/tailwind-dark.css +3 -4
- package/styles/tailwind.css +1 -2
- package/styles/auto-complete/_fluent-definition.scss +0 -2
- package/styles/combo-box/_fluent-definition.scss +0 -2
- package/styles/drop-down-base/_fluent-definition.scss +0 -109
- package/styles/drop-down-list/_fluent-definition.scss +0 -193
- package/styles/drop-down-list/icons/_fluent.scss +0 -14
- package/styles/drop-down-tree/_fluent-definition.scss +0 -71
- package/styles/drop-down-tree/icons/_fluent.scss +0 -11
- package/styles/list-box/_fluent-definition.scss +0 -115
- package/styles/list-box/icons/_fluent.scss +0 -25
- package/styles/multi-select/_fluent-definition.scss +0 -214
- package/styles/multi-select/icons/_fluent.scss +0 -27
|
@@ -91,7 +91,7 @@ function Search(inputVal, items, searchType, ignoreCase) {
|
|
|
91
91
|
for (let i = 0, itemsData = listItems; i < itemsData.length; i++) {
|
|
92
92
|
const item = itemsData[i];
|
|
93
93
|
const text = (ignoreCase ? item.textContent.toLocaleLowerCase() : item.textContent).replace(/^\s+|\s+$/g, '');
|
|
94
|
-
if ((searchType === 'Equal' && text === queryStr) || (searchType === 'StartsWith' && text.substr(0, strLength) === queryStr)
|
|
94
|
+
if ((searchType === 'Equal' && text === queryStr) || (searchType === 'StartsWith' && text.substr(0, strLength) === queryStr)) {
|
|
95
95
|
itemData.item = item;
|
|
96
96
|
itemData.index = i;
|
|
97
97
|
return { item: item, index: i };
|
|
@@ -636,7 +636,7 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
636
636
|
}
|
|
637
637
|
this.bindChildItems(localDataArgs.result, ulElement, fields);
|
|
638
638
|
setTimeout(() => {
|
|
639
|
-
if (this.getModuleName() === 'multiselect' &&
|
|
639
|
+
if (this.getModuleName() === 'multiselect' && (ulElement.childElementCount > 0 && ulElement.children[0].childElementCount > 0)) {
|
|
640
640
|
this.updateDataList();
|
|
641
641
|
}
|
|
642
642
|
});
|
|
@@ -770,22 +770,10 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
770
770
|
const groupValue = select(this.groupTemplate, document).innerHTML.trim();
|
|
771
771
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
772
772
|
const tempHeaders = ListBase.renderGroupTemplate(groupValue, dataSource, this.fields.properties, headerItems, option, this);
|
|
773
|
-
//EJ2-55168- Group checkbox is not working with group template
|
|
774
|
-
if (this.isGroupChecking) {
|
|
775
|
-
for (var i = 0; i < tempHeaders.length; i++) {
|
|
776
|
-
this.notify('addItem', { module: 'CheckBoxSelection', item: tempHeaders[i] });
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
773
|
}
|
|
780
774
|
else {
|
|
781
775
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
782
776
|
const tempHeaders = ListBase.renderGroupTemplate(this.groupTemplate, dataSource, this.fields.properties, headerItems, option, this);
|
|
783
|
-
//EJ2-55168- Group checkbox is not working with group template
|
|
784
|
-
if (this.isGroupChecking) {
|
|
785
|
-
for (var i = 0; i < tempHeaders.length; i++) {
|
|
786
|
-
this.notify('addItem', { module: 'CheckBoxSelection', item: tempHeaders[i] });
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
777
|
}
|
|
790
778
|
this.renderReactTemplates();
|
|
791
779
|
}
|
|
@@ -7453,7 +7441,7 @@ let ComboBox = class ComboBox extends DropDownList {
|
|
|
7453
7441
|
if ((Browser.isDevice && !this.isDropDownClick || !Browser.isDevice) &&
|
|
7454
7442
|
!isNullOrUndefined(this.liCollections) && this.liCollections.length > 0) {
|
|
7455
7443
|
const inputValue = this.inputElement.value;
|
|
7456
|
-
const activeItem = Search(inputValue, this.liCollections,
|
|
7444
|
+
const activeItem = Search(inputValue, this.liCollections, 'StartsWith', true);
|
|
7457
7445
|
const activeElement = activeItem.item;
|
|
7458
7446
|
if (!isNullOrUndefined(activeElement)) {
|
|
7459
7447
|
const count = this.getIndexByValue(activeElement.getAttribute('data-value')) - 1;
|
|
@@ -7610,7 +7598,7 @@ let ComboBox = class ComboBox extends DropDownList {
|
|
|
7610
7598
|
else {
|
|
7611
7599
|
this.activeIndex = null;
|
|
7612
7600
|
this.removeSelection();
|
|
7613
|
-
if (this.liCollections && this.liCollections.length
|
|
7601
|
+
if (this.liCollections && this.liCollections.length < 0) {
|
|
7614
7602
|
this.removeFocus();
|
|
7615
7603
|
}
|
|
7616
7604
|
}
|
|
@@ -8999,7 +8987,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
8999
8987
|
this.mainData = list;
|
|
9000
8988
|
this.mainListCollection = this.liCollections;
|
|
9001
8989
|
}
|
|
9002
|
-
else if (isNullOrUndefined(this.mainData)
|
|
8990
|
+
else if (!isNullOrUndefined(this.mainData) && this.mainData.length === 0) {
|
|
9003
8991
|
this.mainData = list;
|
|
9004
8992
|
}
|
|
9005
8993
|
if ((this.remoteCustomValue || list.length <= 0) && this.allowCustomValue && this.inputFocus && this.allowFiltering &&
|
|
@@ -11015,9 +11003,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
11015
11003
|
updateActionCompleteData(li, item) {
|
|
11016
11004
|
if (this.value && this.value.indexOf(li.getAttribute('data-value')) > -1) {
|
|
11017
11005
|
this.mainList = this.ulElement;
|
|
11018
|
-
|
|
11019
|
-
addClass([li], HIDE_LIST);
|
|
11020
|
-
}
|
|
11006
|
+
addClass([li], HIDE_LIST);
|
|
11021
11007
|
}
|
|
11022
11008
|
}
|
|
11023
11009
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -12075,24 +12061,6 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
12075
12061
|
}
|
|
12076
12062
|
this.renderPopup();
|
|
12077
12063
|
}
|
|
12078
|
-
presentItemValue(ulElement) {
|
|
12079
|
-
let valuecheck = [];
|
|
12080
|
-
for (let i = 0; i < this.value.length; i++) {
|
|
12081
|
-
let checkEle = this.findListElement(((this.allowFiltering && !isNullOrUndefined(this.mainList)) ? this.mainList : ulElement), 'li', 'data-value', this.value[i]);
|
|
12082
|
-
if (!checkEle) {
|
|
12083
|
-
valuecheck.push(this.value[i]);
|
|
12084
|
-
}
|
|
12085
|
-
}
|
|
12086
|
-
return valuecheck;
|
|
12087
|
-
}
|
|
12088
|
-
;
|
|
12089
|
-
addNonPresentItems(valuecheck, ulElement, list, event) {
|
|
12090
|
-
this.dataSource.executeQuery(this.getForQuery(valuecheck)).then((e) => {
|
|
12091
|
-
this.addItem(e.result, list.length);
|
|
12092
|
-
this.updateActionList(ulElement, list, event);
|
|
12093
|
-
});
|
|
12094
|
-
}
|
|
12095
|
-
;
|
|
12096
12064
|
updateVal(newProp, oldProp, prop) {
|
|
12097
12065
|
if (!this.list) {
|
|
12098
12066
|
this.onLoadSelect();
|
|
@@ -12101,43 +12069,31 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
12101
12069
|
this.onLoadSelect();
|
|
12102
12070
|
}
|
|
12103
12071
|
else {
|
|
12104
|
-
|
|
12105
|
-
|
|
12106
|
-
|
|
12072
|
+
if (prop === 'text') {
|
|
12073
|
+
this.initialTextUpdate();
|
|
12074
|
+
newProp = this.value;
|
|
12107
12075
|
}
|
|
12108
|
-
if (
|
|
12109
|
-
|
|
12110
|
-
this.mainData = null;
|
|
12111
|
-
this.setDynValue = true;
|
|
12112
|
-
this.addNonPresentItems(valuecheck, this.ulElement, this.listData);
|
|
12076
|
+
if (isNullOrUndefined(this.value) || this.value.length === 0) {
|
|
12077
|
+
this.tempValues = oldProp;
|
|
12113
12078
|
}
|
|
12114
|
-
|
|
12115
|
-
|
|
12116
|
-
|
|
12117
|
-
|
|
12118
|
-
|
|
12119
|
-
if (isNullOrUndefined(this.value) || this.value.length === 0) {
|
|
12120
|
-
this.tempValues = oldProp;
|
|
12121
|
-
}
|
|
12122
|
-
// eslint-disable-next-line
|
|
12123
|
-
if (this.allowCustomValue && (this.mode === 'Default' || this.mode === 'Box') && this.isReact && this.inputFocus
|
|
12124
|
-
&& this.isPopupOpen() && this.mainData !== this.listData) {
|
|
12125
|
-
const list = this.mainList.cloneNode ? this.mainList.cloneNode(true) : this.mainList;
|
|
12126
|
-
this.onActionComplete(list, this.mainData);
|
|
12127
|
-
}
|
|
12128
|
-
this.initialValueUpdate();
|
|
12129
|
-
if (this.mode !== 'Box' && !this.inputFocus) {
|
|
12130
|
-
this.updateDelimView();
|
|
12131
|
-
}
|
|
12132
|
-
if (!this.inputFocus) {
|
|
12133
|
-
this.refreshInputHight();
|
|
12134
|
-
}
|
|
12135
|
-
this.refreshPlaceHolder();
|
|
12136
|
-
if (this.mode !== 'CheckBox' && this.changeOnBlur) {
|
|
12137
|
-
this.updateValueState(null, newProp, oldProp);
|
|
12138
|
-
}
|
|
12139
|
-
this.checkPlaceholderSize();
|
|
12079
|
+
// eslint-disable-next-line
|
|
12080
|
+
if (this.allowCustomValue && (this.mode === 'Default' || this.mode === 'Box') && this.isReact && this.inputFocus
|
|
12081
|
+
&& this.isPopupOpen() && this.mainData !== this.listData) {
|
|
12082
|
+
const list = this.mainList.cloneNode ? this.mainList.cloneNode(true) : this.mainList;
|
|
12083
|
+
this.onActionComplete(list, this.mainData);
|
|
12140
12084
|
}
|
|
12085
|
+
this.initialValueUpdate();
|
|
12086
|
+
if (this.mode !== 'Box' && !this.inputFocus) {
|
|
12087
|
+
this.updateDelimView();
|
|
12088
|
+
}
|
|
12089
|
+
if (!this.inputFocus) {
|
|
12090
|
+
this.refreshInputHight();
|
|
12091
|
+
}
|
|
12092
|
+
this.refreshPlaceHolder();
|
|
12093
|
+
if (this.mode !== 'CheckBox' && this.changeOnBlur) {
|
|
12094
|
+
this.updateValueState(null, newProp, oldProp);
|
|
12095
|
+
}
|
|
12096
|
+
this.checkPlaceholderSize();
|
|
12141
12097
|
}
|
|
12142
12098
|
if (!this.changeOnBlur) {
|
|
12143
12099
|
this.updateValueState(null, newProp, oldProp);
|
|
@@ -13614,6 +13570,9 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
13614
13570
|
args.items = this.getDataByValues([dragValue]);
|
|
13615
13571
|
}
|
|
13616
13572
|
this.trigger('beforeDrop', args);
|
|
13573
|
+
if (args.isDragAll !== null) {
|
|
13574
|
+
this.allowDragAll = args.isDragAll;
|
|
13575
|
+
}
|
|
13617
13576
|
}
|
|
13618
13577
|
dragEnd(args) {
|
|
13619
13578
|
let listData;
|