@syncfusion/ej2-dropdowns 26.2.5 → 26.2.8
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 +60 -31
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +60 -31
- 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 -7
- package/src/combo-box/combo-box.js +33 -2
- package/src/list-box/list-box.js +14 -24
- package/src/mention/mention.js +2 -2
- package/src/multi-select/checkbox-selection.js +3 -1
- package/src/multi-select/multi-select.js +8 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 26.2.
|
|
3
|
+
* version : 26.2.8
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-dropdowns@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-dropdowns@26.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@26.2.7",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-kwC+xK1MaSajrZXTbUmKfxWOqRYb4bzePPHfSkKxoQkbUTDn542o+LFnvLVG/UdZ8s/OD4P5ChDl0XjAH6sOPA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"/@syncfusion/ej2-spreadsheet",
|
|
36
36
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
37
37
|
],
|
|
38
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-26.2.
|
|
39
|
-
"_shasum": "
|
|
38
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-26.2.7.tgz",
|
|
39
|
+
"_shasum": "c5edcee9ab776cb2ee557c2d36fc4f32f973aed5",
|
|
40
40
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
41
41
|
"_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
|
|
42
42
|
"author": {
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@syncfusion/ej2-data": "~26.2.5",
|
|
49
49
|
"@syncfusion/ej2-inputs": "~26.2.5",
|
|
50
50
|
"@syncfusion/ej2-lists": "~26.2.5",
|
|
51
|
-
"@syncfusion/ej2-navigations": "~26.2.
|
|
51
|
+
"@syncfusion/ej2-navigations": "~26.2.8",
|
|
52
52
|
"@syncfusion/ej2-notifications": "~26.2.5",
|
|
53
|
-
"@syncfusion/ej2-popups": "~26.2.
|
|
53
|
+
"@syncfusion/ej2-popups": "~26.2.8"
|
|
54
54
|
},
|
|
55
55
|
"deprecated": false,
|
|
56
56
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"module": "./index.js",
|
|
76
76
|
"name": "@syncfusion/ej2-dropdowns",
|
|
77
77
|
"typings": "index.d.ts",
|
|
78
|
-
"version": "26.2.
|
|
78
|
+
"version": "26.2.8",
|
|
79
79
|
"sideEffects": false,
|
|
80
80
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
81
81
|
}
|
|
@@ -128,10 +128,41 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
128
128
|
value = this.allowObjectBinding && !isNullOrUndefined(value) ? getValue((this.fields.value) ? this.fields.value : '', value) : value;
|
|
129
129
|
var inputValue = isNullOrUndefined(value) ? null : value.toString();
|
|
130
130
|
Input.setValue(inputValue, this.inputElement, this.floatLabelType, this.showClearButton);
|
|
131
|
+
var changeData = {};
|
|
131
132
|
if (this.allowObjectBinding) {
|
|
132
133
|
value = this.getDataByValue(value);
|
|
134
|
+
if (isNullOrUndefined(value)) {
|
|
135
|
+
var fields_1 = this.fields;
|
|
136
|
+
var isvalidTextField_1 = false;
|
|
137
|
+
var isValidValue_1 = false;
|
|
138
|
+
if (this.allowObjectBinding) {
|
|
139
|
+
var keys = Object.keys(this.value);
|
|
140
|
+
keys.forEach(function (key) {
|
|
141
|
+
if (key === fields_1.value) {
|
|
142
|
+
isValidValue_1 = true;
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
keys.forEach(function (key) {
|
|
147
|
+
if (key === fields_1.text) {
|
|
148
|
+
isvalidTextField_1 = true;
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
changeData = {
|
|
154
|
+
text: isValidValue_1 ? isvalidTextField_1 ? getValue(fields_1.text, this.value) : getValue(fields_1.value, this.value) : null,
|
|
155
|
+
value: isValidValue_1 ? this.value : null,
|
|
156
|
+
index: null
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
if (this.allowObjectBinding) {
|
|
161
|
+
this.setProperties(changeData, true);
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
this.setProperties({ value: value, text: value, index: null }, true);
|
|
133
165
|
}
|
|
134
|
-
this.setProperties({ value: value, text: value, index: null }, true);
|
|
135
166
|
this.activeIndex = this.index;
|
|
136
167
|
var fields = this.fields;
|
|
137
168
|
var dataItem = {};
|
|
@@ -671,7 +702,7 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
671
702
|
}
|
|
672
703
|
}
|
|
673
704
|
}
|
|
674
|
-
else if (this.allowCustom) {
|
|
705
|
+
else if (this.allowCustom && this.isInteracted) {
|
|
675
706
|
this.isSelectCustom = true;
|
|
676
707
|
}
|
|
677
708
|
};
|
package/src/list-box/list-box.js
CHANGED
|
@@ -184,7 +184,6 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
184
184
|
this.list.setAttribute('role', 'listbox');
|
|
185
185
|
attributes(this.list, { 'role': 'listbox', 'aria-label': 'listbox', 'aria-multiselectable': this.selectionSettings.mode === 'Multiple' ? 'true' : 'false' });
|
|
186
186
|
this.updateSelectionSettings();
|
|
187
|
-
this.resizeHandler();
|
|
188
187
|
};
|
|
189
188
|
ListBox.prototype.updateSelectionSettings = function () {
|
|
190
189
|
if (this.selectionSettings.showCheckbox && this.selectionSettings.showSelectAll && this.liCollections.length) {
|
|
@@ -432,7 +431,9 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
432
431
|
filterElem = this.list.getElementsByClassName('e-input-filter')[0];
|
|
433
432
|
filterElem.selectionStart = txtLength;
|
|
434
433
|
filterElem.selectionEnd = txtLength;
|
|
435
|
-
filterElem.
|
|
434
|
+
if (filterElem.value !== '') {
|
|
435
|
+
filterElem.focus();
|
|
436
|
+
}
|
|
436
437
|
}
|
|
437
438
|
}
|
|
438
439
|
if (this.toolbarSettings.items.length && this.scope && this.scope.indexOf('#') > -1 && !isNullOrUndefined(e)) {
|
|
@@ -883,33 +884,22 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
883
884
|
items = (items instanceof Array ? items : [items]);
|
|
884
885
|
var fields = this.fields;
|
|
885
886
|
var dataValue = void 0;
|
|
886
|
-
var objValue =
|
|
887
|
+
var objValue = {};
|
|
887
888
|
var dupData = [];
|
|
888
|
-
var itemIdx = void 0;
|
|
889
889
|
extend(dupData, [], this.jsonData);
|
|
890
890
|
var removeIdxes = [];
|
|
891
891
|
var removeLiIdxes = [];
|
|
892
|
+
for (var i = 0; i < dupData.length; i++) {
|
|
893
|
+
var value = (dupData[i] instanceof Object) ? dupData[i][fields.value] : dupData[i].toString();
|
|
894
|
+
objValue[value] = i;
|
|
895
|
+
}
|
|
892
896
|
for (var j = 0; j < items.length; j++) {
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
for (var i = 0, len = dupData.length; i < len; i++) {
|
|
900
|
-
if (dupData[i] instanceof Object) {
|
|
901
|
-
objValue = getValue(fields.value, dupData[i]);
|
|
902
|
-
}
|
|
903
|
-
else {
|
|
904
|
-
objValue = dupData[i].toString();
|
|
905
|
-
}
|
|
906
|
-
if (objValue === dataValue) {
|
|
907
|
-
itemIdx = this.getIndexByValue(dataValue);
|
|
908
|
-
var idx = itemIdx === i ? itemIdx : i;
|
|
909
|
-
liCollections.push(liElement[idx]);
|
|
910
|
-
removeIdxes.push(idx);
|
|
911
|
-
removeLiIdxes.push(idx);
|
|
912
|
-
}
|
|
897
|
+
dataValue = (items[j] instanceof Object) ? items[j][fields.value] : items[j].toString();
|
|
898
|
+
if (objValue.hasOwnProperty(dataValue)) {
|
|
899
|
+
var idx = objValue[dataValue];
|
|
900
|
+
liCollections.push(liElement[idx]);
|
|
901
|
+
removeIdxes.push(idx);
|
|
902
|
+
removeLiIdxes.push(idx);
|
|
913
903
|
}
|
|
914
904
|
}
|
|
915
905
|
for (var k = removeIdxes.length - 1; k >= 0; k--) {
|
package/src/mention/mention.js
CHANGED
|
@@ -1308,10 +1308,10 @@ var Mention = /** @class */ (function (_super) {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
if (this.isContentEditable(this.inputElement)) {
|
|
1310
1310
|
if (Browser.isAndroid) {
|
|
1311
|
-
return '<span contenteditable="true" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '
|
|
1311
|
+
return '<span contenteditable="true" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '​');
|
|
1312
1312
|
}
|
|
1313
1313
|
else {
|
|
1314
|
-
return '<span contenteditable="false" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '
|
|
1314
|
+
return '<span contenteditable="false" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '​');
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
1317
|
else {
|
|
@@ -493,7 +493,9 @@ var CheckBoxSelection = /** @class */ (function () {
|
|
|
493
493
|
if (l10n.getConstant('selectAllText') === '') {
|
|
494
494
|
l10n = new L10n('dropdowns', l10nLocale, this.parent.locale);
|
|
495
495
|
}
|
|
496
|
-
this.selectAllSpan
|
|
496
|
+
if (!isNullOrUndefined(this.selectAllSpan)) {
|
|
497
|
+
this.selectAllSpan.textContent = unSelect ? l10n.getConstant('unSelectAllText') : l10n.getConstant('selectAllText');
|
|
498
|
+
}
|
|
497
499
|
}
|
|
498
500
|
};
|
|
499
501
|
CheckBoxSelection.prototype.getActiveList = function (args) {
|
|
@@ -1406,7 +1406,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
1406
1406
|
MultiSelect.prototype.expandTextbox = function () {
|
|
1407
1407
|
var size = 5;
|
|
1408
1408
|
if (this.placeholder) {
|
|
1409
|
-
|
|
1409
|
+
var codePoint = this.placeholder.charCodeAt(0);
|
|
1410
|
+
var sizeMultiplier = (0xAC00 <= codePoint && codePoint <= 0xD7AF) ? 1.5 : (0x4E00 <= codePoint && codePoint <= 0x9FFF) ? 2 : 1;
|
|
1411
|
+
size = size > this.inputElement.placeholder.length ? size : this.inputElement.placeholder.length * sizeMultiplier;
|
|
1410
1412
|
}
|
|
1411
1413
|
if (this.inputElement.value.length > size) {
|
|
1412
1414
|
this.inputElement.size = this.inputElement.value.length;
|
|
@@ -3087,7 +3089,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3087
3089
|
if (this.mode === 'CheckBox') {
|
|
3088
3090
|
this.refreshPlaceHolder();
|
|
3089
3091
|
this.refreshInputHight();
|
|
3090
|
-
if (
|
|
3092
|
+
if (this.changeOnBlur && isClearAll && (isNullOrUndefined(this.value) || this.value.length === 0)) {
|
|
3091
3093
|
this.updateValueState(e, this.value, this.tempValues);
|
|
3092
3094
|
}
|
|
3093
3095
|
}
|
|
@@ -4806,6 +4808,10 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
4806
4808
|
if (!this.closePopupOnSelect && this.isPopupOpen()) {
|
|
4807
4809
|
this.refreshPopup();
|
|
4808
4810
|
}
|
|
4811
|
+
if (this.isPopupOpen() && this.mode === 'CheckBox' && this.list && this.list.querySelector('.e-active.e-disable')) {
|
|
4812
|
+
var activeItems = this.list.querySelectorAll('li.' + dropDownBaseClasses.li + '.e-active' + '.e-disable');
|
|
4813
|
+
removeClass(activeItems, 'e-disable');
|
|
4814
|
+
}
|
|
4809
4815
|
this.preventChange = this.isAngular && this.preventChange ? !this.preventChange : this.preventChange;
|
|
4810
4816
|
break;
|
|
4811
4817
|
case 'width':
|