@syncfusion/ej2-dropdowns 28.1.35 → 28.1.37
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 +81 -63
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +83 -65
- 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 +8 -12
- package/src/common/virtual-scroll.js +2 -2
- package/src/drop-down-base/drop-down-base.js +44 -42
- package/src/drop-down-list/drop-down-list.d.ts +1 -0
- package/src/drop-down-list/drop-down-list.js +10 -5
- package/src/drop-down-tree/drop-down-tree.js +18 -9
- package/src/list-box/list-box.d.ts +1 -1
- package/src/list-box/list-box.js +1 -1
- package/src/mention/mention.js +1 -0
- package/src/multi-select/multi-select.js +7 -6
- package/styles/drop-down-base/tailwind3.css +5 -5
- package/styles/list-box/tailwind3.css +1 -1
- package/styles/multi-select/tailwind3.css +5 -5
- package/styles/tailwind3-lite.css +11 -11
- package/styles/tailwind3.css +11 -11
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 28.1.
|
|
3
|
+
* version : 28.1.37
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. 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@28.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@28.1.35",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-bL308Ch9zV+ucVhTJM3P6epXzfnZBPsS/SD+1yysjb3XTMqnd04itZ2ujOdGMkjokSld5qT1K1KKk72JTysDsQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -18,26 +18,22 @@
|
|
|
18
18
|
},
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/",
|
|
21
|
-
"/@syncfusion/ej2",
|
|
22
21
|
"/@syncfusion/ej2-angular-dropdowns",
|
|
23
22
|
"/@syncfusion/ej2-documenteditor",
|
|
24
23
|
"/@syncfusion/ej2-gantt",
|
|
25
24
|
"/@syncfusion/ej2-grids",
|
|
26
|
-
"/@syncfusion/ej2-image-editor",
|
|
27
25
|
"/@syncfusion/ej2-inplace-editor",
|
|
28
26
|
"/@syncfusion/ej2-kanban",
|
|
29
27
|
"/@syncfusion/ej2-pdfviewer",
|
|
30
28
|
"/@syncfusion/ej2-pivotview",
|
|
31
|
-
"/@syncfusion/ej2-querybuilder",
|
|
32
29
|
"/@syncfusion/ej2-react-dropdowns",
|
|
33
|
-
"/@syncfusion/ej2-ribbon",
|
|
34
30
|
"/@syncfusion/ej2-richtexteditor",
|
|
35
31
|
"/@syncfusion/ej2-schedule",
|
|
36
32
|
"/@syncfusion/ej2-spreadsheet",
|
|
37
33
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
38
34
|
],
|
|
39
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-28.1.
|
|
40
|
-
"_shasum": "
|
|
35
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-28.1.35.tgz",
|
|
36
|
+
"_shasum": "f81e5c32210ced7ff8fc68210e8fce81054ec4c4",
|
|
41
37
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
42
38
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
|
43
39
|
"author": {
|
|
@@ -47,9 +43,9 @@
|
|
|
47
43
|
"dependencies": {
|
|
48
44
|
"@syncfusion/ej2-base": "~28.1.33",
|
|
49
45
|
"@syncfusion/ej2-data": "~28.1.33",
|
|
50
|
-
"@syncfusion/ej2-inputs": "~28.1.
|
|
51
|
-
"@syncfusion/ej2-lists": "~28.1.
|
|
52
|
-
"@syncfusion/ej2-navigations": "~28.1.
|
|
46
|
+
"@syncfusion/ej2-inputs": "~28.1.37",
|
|
47
|
+
"@syncfusion/ej2-lists": "~28.1.37",
|
|
48
|
+
"@syncfusion/ej2-navigations": "~28.1.37",
|
|
53
49
|
"@syncfusion/ej2-notifications": "~28.1.33",
|
|
54
50
|
"@syncfusion/ej2-popups": "~28.1.33"
|
|
55
51
|
},
|
|
@@ -76,7 +72,7 @@
|
|
|
76
72
|
"module": "./index.js",
|
|
77
73
|
"name": "@syncfusion/ej2-dropdowns",
|
|
78
74
|
"typings": "index.d.ts",
|
|
79
|
-
"version": "28.1.
|
|
75
|
+
"version": "28.1.37",
|
|
80
76
|
"sideEffects": false,
|
|
81
77
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
82
78
|
}
|
|
@@ -285,8 +285,8 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
285
285
|
if (this.parent.hideSelectedItem) {
|
|
286
286
|
var query = this.parent.value && this.parent.value.length > 0 ?
|
|
287
287
|
this.parent.getForQuery(this.parent.value).clone() : new Query;
|
|
288
|
-
if (this.parent.viewPortInfo.endIndex === this.parent.totalItemCount +
|
|
289
|
-
this.parent.hideSelectedItem) {
|
|
288
|
+
if (this.parent.value && (this.parent.viewPortInfo.endIndex === this.parent.totalItemCount +
|
|
289
|
+
this.parent.value.length) && this.parent.hideSelectedItem) {
|
|
290
290
|
query = query.skip(this.parent.totalItemCount - this.parent.itemCount);
|
|
291
291
|
}
|
|
292
292
|
else {
|
|
@@ -193,58 +193,60 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
193
193
|
if (isTextByValue) {
|
|
194
194
|
value = text;
|
|
195
195
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
var
|
|
202
|
-
|
|
203
|
-
if (
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
else {
|
|
207
|
-
if (ignoreCase) {
|
|
208
|
-
if (this.checkIgnoreCase(String(item), text)) {
|
|
209
|
-
value = this.getItemValue(String(item), text, ignoreCase);
|
|
210
|
-
}
|
|
196
|
+
if (!isNullOrUndefined(this.listData)) {
|
|
197
|
+
var dataSource = this.listData;
|
|
198
|
+
var fields_1 = this.fields;
|
|
199
|
+
var type = this.typeOfData(dataSource).typeof;
|
|
200
|
+
if (type === 'string' || type === 'number' || type === 'boolean') {
|
|
201
|
+
for (var _i = 0, dataSource_1 = dataSource; _i < dataSource_1.length; _i++) {
|
|
202
|
+
var item = dataSource_1[_i];
|
|
203
|
+
if (!isNullOrUndefined(item)) {
|
|
204
|
+
if (ignoreAccent) {
|
|
205
|
+
value = this.checkingAccent(String(item), text, ignoreCase);
|
|
211
206
|
}
|
|
212
207
|
else {
|
|
213
|
-
if (
|
|
214
|
-
|
|
208
|
+
if (ignoreCase) {
|
|
209
|
+
if (this.checkIgnoreCase(String(item), text)) {
|
|
210
|
+
value = this.getItemValue(String(item), text, ignoreCase);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
if (this.checkNonIgnoreCase(String(item), text)) {
|
|
215
|
+
value = this.getItemValue(String(item), text, ignoreCase, isTextByValue);
|
|
216
|
+
}
|
|
215
217
|
}
|
|
216
218
|
}
|
|
217
219
|
}
|
|
218
220
|
}
|
|
219
221
|
}
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
if (ignoreCase) {
|
|
223
|
-
dataSource.filter(function (item) {
|
|
224
|
-
var itemValue = getValue(fields.value, item);
|
|
225
|
-
if (!isNullOrUndefined(itemValue) && _this.checkIgnoreCase(getValue(fields.text, item).toString(), text)) {
|
|
226
|
-
value = getValue(fields.value, item);
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
222
|
else {
|
|
231
|
-
if (
|
|
232
|
-
var compareValue_1 = null;
|
|
233
|
-
compareValue_1 = value;
|
|
223
|
+
if (ignoreCase) {
|
|
234
224
|
dataSource.filter(function (item) {
|
|
235
|
-
var itemValue = getValue(
|
|
236
|
-
if (!isNullOrUndefined(itemValue) &&
|
|
237
|
-
|
|
238
|
-
value = getValue(fields.text, item);
|
|
225
|
+
var itemValue = getValue(fields_1.value, item);
|
|
226
|
+
if (!isNullOrUndefined(itemValue) && _this.checkIgnoreCase(getValue(fields_1.text, item).toString(), text)) {
|
|
227
|
+
value = getValue(fields_1.value, item);
|
|
239
228
|
}
|
|
240
229
|
});
|
|
241
230
|
}
|
|
242
231
|
else {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
232
|
+
if (isTextByValue) {
|
|
233
|
+
var compareValue_1 = null;
|
|
234
|
+
compareValue_1 = value;
|
|
235
|
+
dataSource.filter(function (item) {
|
|
236
|
+
var itemValue = getValue(fields_1.value, item);
|
|
237
|
+
if (!isNullOrUndefined(itemValue) && !isNullOrUndefined(value) &&
|
|
238
|
+
itemValue.toString() === compareValue_1.toString()) {
|
|
239
|
+
value = getValue(fields_1.text, item);
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
dataSource.filter(function (item) {
|
|
245
|
+
if (_this.checkNonIgnoreCase(getValue(fields_1.text, item), text)) {
|
|
246
|
+
value = getValue(fields_1.value, item);
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
}
|
|
248
250
|
}
|
|
249
251
|
}
|
|
250
252
|
}
|
|
@@ -479,7 +481,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
479
481
|
for (var i = 0; i < totalSkeletonCount; i++) {
|
|
480
482
|
var liElement = this.createElement('li', { className: dropDownBaseClasses.virtualList, styles: 'overflow: inherit' });
|
|
481
483
|
if (this.isVirtualizationEnabled && this.itemTemplate) {
|
|
482
|
-
liElement.style.height = this.listItemHeight + 'px';
|
|
484
|
+
liElement.style.height = (this.listItemHeight - parseInt(window.getComputedStyle(this.getItems()[1]).marginBottom, 10)) + 'px';
|
|
483
485
|
}
|
|
484
486
|
var skeleton = new Skeleton({
|
|
485
487
|
shape: 'Text',
|
|
@@ -769,7 +771,6 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
769
771
|
_this.isRequested = false;
|
|
770
772
|
_this.bindChildItems(listItems, ulElement, fields, e);
|
|
771
773
|
if (_this.getInitialData) {
|
|
772
|
-
_this.setListData(dataSource, fields, query, event);
|
|
773
774
|
_this.getInitialData = false;
|
|
774
775
|
_this.preventPopupOpen = false;
|
|
775
776
|
return;
|
|
@@ -1164,7 +1165,8 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1164
1165
|
};
|
|
1165
1166
|
DropDownBase.prototype.scrollStop = function (e, isDownkey) {
|
|
1166
1167
|
var target = !isNullOrUndefined(e) ? e.target : this.list;
|
|
1167
|
-
var
|
|
1168
|
+
var computedHeight = getComputedStyle(this.getValidLi(), null).getPropertyValue('height');
|
|
1169
|
+
var liHeight = this.getModuleName() === 'multiselect' ? parseFloat(computedHeight) : parseInt(computedHeight, 10);
|
|
1168
1170
|
var topIndex = Math.round(target.scrollTop / liHeight);
|
|
1169
1171
|
var liCollections = this.list.querySelectorAll('li' + ':not(.e-hide-listitem)');
|
|
1170
1172
|
var virtualListCount = this.list.querySelectorAll('.e-virtual-list').length;
|
|
@@ -120,6 +120,7 @@ export declare class DropDownList extends DropDownBase implements IInput {
|
|
|
120
120
|
private resizeWidth;
|
|
121
121
|
private isUpdateHeaderHeight;
|
|
122
122
|
private isUpdateFooterHeight;
|
|
123
|
+
private filterArgs;
|
|
123
124
|
/**
|
|
124
125
|
* Sets CSS classes to the root element of the component that allows customization of appearance.
|
|
125
126
|
*
|
|
@@ -1869,6 +1869,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1869
1869
|
DropDownList.prototype.onFilterUp = function (e) {
|
|
1870
1870
|
if (!(e.ctrlKey && e.keyCode === 86) && (this.isValidKey || e.keyCode === 40 || e.keyCode === 38)) {
|
|
1871
1871
|
this.isValidKey = false;
|
|
1872
|
+
this.filterArgs = e;
|
|
1872
1873
|
this.firstItem = this.dataSource && this.dataSource.length > 0 ? this.dataSource[0] : null;
|
|
1873
1874
|
switch (e.keyCode) {
|
|
1874
1875
|
case 38: //up arrow
|
|
@@ -1922,7 +1923,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1922
1923
|
}
|
|
1923
1924
|
this.typedString = this.filterInput.value;
|
|
1924
1925
|
this.preventAutoFill = false;
|
|
1925
|
-
this.
|
|
1926
|
+
if (!this.getInitialData) {
|
|
1927
|
+
this.searchLists(e);
|
|
1928
|
+
}
|
|
1926
1929
|
if ((this.enableVirtualization && this.getModuleName() !== 'autocomplete') || (this.getModuleName() === 'autocomplete' && !(this.dataSource instanceof DataManager)) || (this.getModuleName() === 'autocomplete' && (this.dataSource instanceof DataManager) && this.totalItemCount !== 0)) {
|
|
1927
1930
|
this.getFilteringSkeletonCount();
|
|
1928
1931
|
}
|
|
@@ -2270,6 +2273,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2270
2273
|
var _this = this;
|
|
2271
2274
|
setTimeout(function () {
|
|
2272
2275
|
_this.typedString = _this.filterInput.value;
|
|
2276
|
+
if (_this.getModuleName() === 'combobox' && _this.isFiltering() && isNullOrUndefined(_this.list)) {
|
|
2277
|
+
_this.renderList();
|
|
2278
|
+
}
|
|
2273
2279
|
_this.searchLists(e);
|
|
2274
2280
|
});
|
|
2275
2281
|
};
|
|
@@ -2295,10 +2301,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2295
2301
|
}
|
|
2296
2302
|
if (this.getInitialData) {
|
|
2297
2303
|
this.updateActionCompleteDataValues(ulElement, list);
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
this.preventPopupOpen = true;
|
|
2304
|
+
this.getInitialData = false;
|
|
2305
|
+
this.searchLists(this.filterArgs);
|
|
2306
|
+
return;
|
|
2302
2307
|
}
|
|
2303
2308
|
var tempItemCount = this.itemCount;
|
|
2304
2309
|
if (this.isActive || !isNullOrUndefined(ulElement)) {
|
|
@@ -465,6 +465,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
465
465
|
}
|
|
466
466
|
else if (args.preventDefaultAction) {
|
|
467
467
|
fields = args.fields;
|
|
468
|
+
_this.treeObj.element.classList.add('e-filtering');
|
|
468
469
|
}
|
|
469
470
|
else {
|
|
470
471
|
if (_this.treeDataType === 1) {
|
|
@@ -790,8 +791,8 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
790
791
|
}
|
|
791
792
|
addClass([this.inputEle], CHIP_INPUT);
|
|
792
793
|
this.updateOverFlowView();
|
|
793
|
-
this.ensurePlaceHolder();
|
|
794
794
|
}
|
|
795
|
+
this.ensurePlaceHolder();
|
|
795
796
|
};
|
|
796
797
|
DropDownTree.prototype.triggerChangeEvent = function (event) {
|
|
797
798
|
var isEqual = this.ddtCompareValues(this.oldValue, this.value);
|
|
@@ -1419,10 +1420,10 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1419
1420
|
if (this.value !== null && this.value.length !== 0) {
|
|
1420
1421
|
var data = void 0;
|
|
1421
1422
|
if (this.showCheckBox || this.allowMultiSelection) {
|
|
1422
|
-
for (var i =
|
|
1423
|
+
for (var i = this.value.length - 1; i >= 0; i--) {
|
|
1423
1424
|
data = this.treeObj.getTreeData(this.value[i])[0];
|
|
1424
1425
|
if (isNOU(data)) {
|
|
1425
|
-
this.value.splice(
|
|
1426
|
+
this.value.splice(i, 1);
|
|
1426
1427
|
}
|
|
1427
1428
|
}
|
|
1428
1429
|
if (this.value.length !== 0) {
|
|
@@ -1479,7 +1480,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1479
1480
|
}
|
|
1480
1481
|
};
|
|
1481
1482
|
DropDownTree.prototype.setSelectedValue = function () {
|
|
1482
|
-
if (this.value
|
|
1483
|
+
if (this.value !== null && !(this.value.length === 0)) {
|
|
1483
1484
|
return;
|
|
1484
1485
|
}
|
|
1485
1486
|
if (!this.isInitialized) {
|
|
@@ -1906,7 +1907,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1906
1907
|
}
|
|
1907
1908
|
if (this.isFilterRestore) {
|
|
1908
1909
|
this.restoreFilterSelection();
|
|
1909
|
-
this.
|
|
1910
|
+
if (!this.showSelectAll) {
|
|
1911
|
+
this.isFilterRestore = false;
|
|
1912
|
+
}
|
|
1910
1913
|
}
|
|
1911
1914
|
};
|
|
1912
1915
|
DropDownTree.prototype.restoreFilterSelection = function () {
|
|
@@ -2169,15 +2172,18 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2169
2172
|
this.ensurePlaceHolder();
|
|
2170
2173
|
}
|
|
2171
2174
|
if (this.showSelectAll && this.checkBoxElement) {
|
|
2175
|
+
var nodes = this.treeObj.element.querySelectorAll('li');
|
|
2172
2176
|
var checkedNodes = this.treeObj.element.querySelectorAll('li[aria-checked=true]');
|
|
2173
2177
|
var wrap = closest(this.checkBoxElement, '.' + CHECKBOXWRAP);
|
|
2174
|
-
if (wrap && args.action === 'uncheck' && (args.isInteracted || checkedNodes.length === 0 ||
|
|
2178
|
+
if ((wrap && args.action === 'uncheck' && (args.isInteracted || checkedNodes.length === 0 ||
|
|
2179
|
+
(!isNOU(args.data[0]) && args.data[0].isChecked === 'false'))) || !args.isInteracted && this.isFilterRestore) {
|
|
2180
|
+
this.isFilterRestore = false;
|
|
2175
2181
|
this.isReverseUpdate = true;
|
|
2176
2182
|
this.changeState(wrap, 'uncheck');
|
|
2177
2183
|
this.isReverseUpdate = false;
|
|
2178
2184
|
}
|
|
2179
2185
|
else if (wrap && args.action === 'check'
|
|
2180
|
-
&& checkedNodes.length ===
|
|
2186
|
+
&& checkedNodes.length === nodes.length
|
|
2181
2187
|
&& (args.isInteracted || this.isCheckAllCalled || (!isNOU(args.data[0]) && args.data[0].isChecked === 'true'))) {
|
|
2182
2188
|
this.isReverseUpdate = true;
|
|
2183
2189
|
this.isCheckAllCalled = false;
|
|
@@ -2284,7 +2290,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2284
2290
|
}
|
|
2285
2291
|
};
|
|
2286
2292
|
DropDownTree.prototype.ensurePlaceHolder = function () {
|
|
2287
|
-
if (isNOU(this.value) || (this.value && this.value.length === 0)) {
|
|
2293
|
+
if (isNOU(this.value) || (this.value !== null && this.value.length === 0)) {
|
|
2288
2294
|
removeClass([this.inputEle], CHIP_INPUT);
|
|
2289
2295
|
if (this.chipWrapper) {
|
|
2290
2296
|
addClass([this.chipWrapper], HIDEICON);
|
|
@@ -2587,7 +2593,10 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2587
2593
|
}
|
|
2588
2594
|
};
|
|
2589
2595
|
DropDownTree.prototype.setTagValues = function () {
|
|
2590
|
-
if (this.value === null || this.text == null) {
|
|
2596
|
+
if (this.value === null || this.text == null || this.value.length === 0) {
|
|
2597
|
+
if (this.inputWrapper.contains(this.chipWrapper)) {
|
|
2598
|
+
addClass([this.chipWrapper], HIDEICON);
|
|
2599
|
+
}
|
|
2591
2600
|
return;
|
|
2592
2601
|
}
|
|
2593
2602
|
if (!this.inputWrapper.contains(this.chipWrapper)) {
|
|
@@ -718,7 +718,7 @@ export interface ListBoxChangeEventArgs extends BaseEventArgs {
|
|
|
718
718
|
/**
|
|
719
719
|
* Returns the selected state or selected list item in the ListBox.
|
|
720
720
|
*/
|
|
721
|
-
value: number | string | boolean;
|
|
721
|
+
value: number[] | string[] | boolean[];
|
|
722
722
|
/**
|
|
723
723
|
* Specifies the event.
|
|
724
724
|
*/
|
package/src/list-box/list-box.js
CHANGED
|
@@ -1957,7 +1957,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1957
1957
|
ctrlKey: e.ctrlKey, shiftKey: e.shiftKey
|
|
1958
1958
|
});
|
|
1959
1959
|
}
|
|
1960
|
-
else if (e.keyCode === 65 && e.ctrlKey) {
|
|
1960
|
+
else if (e.keyCode === 65 && e.ctrlKey && this.selectionSettings.mode === 'Multiple') {
|
|
1961
1961
|
this.selectAll();
|
|
1962
1962
|
}
|
|
1963
1963
|
else if ((e.keyCode === 38 || e.keyCode === 40) && e.ctrlKey && e.shiftKey) {
|
package/src/mention/mention.js
CHANGED
|
@@ -848,6 +848,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
848
848
|
if (this.isFiltered) {
|
|
849
849
|
if ((this.enableVirtualization && !isNullOrUndefined(this.customFilterQuery))) {
|
|
850
850
|
filterQuery = this.customFilterQuery.clone();
|
|
851
|
+
return this.virtualFilterQuery(filterQuery);
|
|
851
852
|
}
|
|
852
853
|
else if (!this.enableVirtualization) {
|
|
853
854
|
return filterQuery;
|
|
@@ -2698,7 +2699,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2698
2699
|
getValue(((this.fields.value) ? this.fields.value : ''), this.value[this.value.length - 1]) :
|
|
2699
2700
|
this.value[this.value.length - 1];
|
|
2700
2701
|
var temp = text;
|
|
2701
|
-
var textValues = this.text != null && this.text !== '' ? this.text +
|
|
2702
|
+
var textValues = this.text != null && this.text !== '' ? this.text + this.delimiterChar + temp : temp;
|
|
2702
2703
|
currentText.push(textValues);
|
|
2703
2704
|
this.setProperties({ text: currentText.toString() }, true);
|
|
2704
2705
|
}
|
|
@@ -3288,7 +3289,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3288
3289
|
this.list.scrollTop = 0;
|
|
3289
3290
|
this.virtualListInfo = null;
|
|
3290
3291
|
this.previousStartIndex = 0;
|
|
3291
|
-
this.previousEndIndex =
|
|
3292
|
+
this.previousEndIndex = this.itemCount;
|
|
3292
3293
|
}
|
|
3293
3294
|
this.isClearAllAction = false;
|
|
3294
3295
|
}
|
|
@@ -3633,7 +3634,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3633
3634
|
}
|
|
3634
3635
|
else {
|
|
3635
3636
|
temp = isInitialVirtualData && delim ? this_1.text : this_1.getTextByValue(value);
|
|
3636
|
-
var textValues = isInitialVirtualData ? this_1.text : (this_1.text && this_1.text !== '' ? this_1.text +
|
|
3637
|
+
var textValues = isInitialVirtualData ? this_1.text : (this_1.text && this_1.text !== '' ? this_1.text + this_1.delimiterChar + temp : temp);
|
|
3637
3638
|
data += temp + delimiterChar + ' ';
|
|
3638
3639
|
text.push(textValues);
|
|
3639
3640
|
hiddenElementContent = this_1.hiddenElement.innerHTML;
|
|
@@ -3801,7 +3802,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3801
3802
|
(this.mode === 'Box' || this.mode === 'Default'))) ||
|
|
3802
3803
|
(this.enableVirtualization && value != null && text != null && !isCustomData)) {
|
|
3803
3804
|
var currentText = [];
|
|
3804
|
-
var textValues = this.text != null && this.text !== '' ? this.text +
|
|
3805
|
+
var textValues = this.text != null && this.text !== '' ? this.text + this.delimiterChar + text : text;
|
|
3805
3806
|
currentText.push(textValues);
|
|
3806
3807
|
this.setProperties({ text: currentText.toString() }, true);
|
|
3807
3808
|
this.addChip(text, value);
|
|
@@ -3837,7 +3838,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3837
3838
|
this.wireListEvents();
|
|
3838
3839
|
}
|
|
3839
3840
|
var currentText = [];
|
|
3840
|
-
var textValues = this.text != null && this.text !== '' ? this.text +
|
|
3841
|
+
var textValues = this.text != null && this.text !== '' ? this.text + this.delimiterChar + text : text;
|
|
3841
3842
|
currentText.push(textValues);
|
|
3842
3843
|
this.setProperties({ text: currentText.toString() }, true);
|
|
3843
3844
|
this.addChip(text, value);
|
|
@@ -5480,7 +5481,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
5480
5481
|
_this.viewPortInfo.endIndex : _this.itemCount;
|
|
5481
5482
|
_this.virtualListInfo = _this.viewPortInfo;
|
|
5482
5483
|
_this.previousStartIndex = 0;
|
|
5483
|
-
_this.previousEndIndex =
|
|
5484
|
+
_this.previousEndIndex = _this.itemCount;
|
|
5484
5485
|
}
|
|
5485
5486
|
var dataSourceCount = void 0;
|
|
5486
5487
|
if (_this.dataSource instanceof DataManager) {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
.e-popup.e-mention .e-dropdownbase.e-nodata {
|
|
68
68
|
color: var(--color-sf-content-text-color);
|
|
69
69
|
cursor: default;
|
|
70
|
-
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
70
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
71
71
|
font-size: 14px;
|
|
72
72
|
padding: 14px 16px;
|
|
73
73
|
text-align: center;
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
border-bottom: 0;
|
|
165
165
|
border-color: var(--color-sf-border-light);
|
|
166
166
|
color: var(--color-sf-flyout-text-color);
|
|
167
|
-
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
167
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
168
168
|
font-size: 14px;
|
|
169
169
|
line-height: 32px;
|
|
170
170
|
min-height: 32px;
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
.e-fixed-head {
|
|
178
178
|
border-color: var(--color-sf-border-light);
|
|
179
179
|
color: var(--color-sf-flyout-text-color);
|
|
180
|
-
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
180
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
181
181
|
font-size: 14px;
|
|
182
182
|
font-weight: 500;
|
|
183
183
|
line-height: 32px;
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
border-style: solid;
|
|
236
236
|
border-width: 0 0 1px 0;
|
|
237
237
|
color: var(--color-sf-flyout-text-color);
|
|
238
|
-
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
238
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
239
239
|
font-size: 14px;
|
|
240
240
|
font-weight: 500;
|
|
241
241
|
text-indent: 10px;
|
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
border-bottom: 0;
|
|
294
294
|
border-color: var(--color-sf-border-light);
|
|
295
295
|
color: var(--color-sf-flyout-text-color);
|
|
296
|
-
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
296
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
297
297
|
text-indent: 12px;
|
|
298
298
|
font-size: 14px;
|
|
299
299
|
padding-right: 16px;
|
|
@@ -546,7 +546,7 @@ ejs-listbox {
|
|
|
546
546
|
.e-listbox-wrapper,
|
|
547
547
|
.e-listbox-container,
|
|
548
548
|
.e-listboxtool-wrapper {
|
|
549
|
-
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
549
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
550
550
|
font-size: 14px;
|
|
551
551
|
}
|
|
552
552
|
.e-listbox-wrapper .e-filter-parent,
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
.e-multi-select-wrapper input[type=text] {
|
|
412
412
|
background: none;
|
|
413
413
|
border: 0;
|
|
414
|
-
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
414
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
415
415
|
font-size: 14px;
|
|
416
416
|
font-weight: normal;
|
|
417
417
|
height: 30px;
|
|
@@ -425,7 +425,7 @@
|
|
|
425
425
|
background: none;
|
|
426
426
|
border: 0;
|
|
427
427
|
color: inherit;
|
|
428
|
-
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
428
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
429
429
|
font-size: 14px;
|
|
430
430
|
font-weight: normal;
|
|
431
431
|
height: 30px;
|
|
@@ -460,7 +460,7 @@
|
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
.e-multi-select-wrapper .e-delim-values {
|
|
463
|
-
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
463
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
464
464
|
font-size: 14px;
|
|
465
465
|
line-height: 28px;
|
|
466
466
|
max-width: 100%;
|
|
@@ -642,7 +642,7 @@
|
|
|
642
642
|
|
|
643
643
|
.e-multi-select-list-wrapper .e-selectall-parent .e-all-text {
|
|
644
644
|
color: var(--color-sf-content-text-color);
|
|
645
|
-
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
645
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
646
646
|
font-size: 14px;
|
|
647
647
|
}
|
|
648
648
|
|
|
@@ -915,7 +915,7 @@ ejs-multiselect {
|
|
|
915
915
|
.e-multi-select-wrapper .e-chips > .e-chipcontent {
|
|
916
916
|
-webkit-text-fill-color: var(--color-sf-content-text-color);
|
|
917
917
|
color: var(--color-sf-content-text-color);
|
|
918
|
-
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
918
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
919
919
|
font-size: 14px;
|
|
920
920
|
}
|
|
921
921
|
|