@syncfusion/ej2-dropdowns 33.2.3 → 33.2.4
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 +61 -2
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +61 -2
- 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 +3 -3
- package/src/drop-down-tree/drop-down-tree.js +6 -0
- package/src/mention/mention.js +1 -1
- package/src/multi-select/multi-select.d.ts +1 -0
- package/src/multi-select/multi-select.js +54 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 33.2.
|
|
3
|
+
* version : 33.2.4
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-dropdowns",
|
|
3
|
-
"version": "33.2.
|
|
3
|
+
"version": "33.2.4",
|
|
4
4
|
"description": "Essential JS 2 DropDown Components",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@syncfusion/ej2-base": "~33.2.3",
|
|
12
12
|
"@syncfusion/ej2-data": "~33.2.3",
|
|
13
|
-
"@syncfusion/ej2-inputs": "~33.2.
|
|
13
|
+
"@syncfusion/ej2-inputs": "~33.2.4",
|
|
14
14
|
"@syncfusion/ej2-lists": "~33.2.3",
|
|
15
|
-
"@syncfusion/ej2-navigations": "~33.2.
|
|
15
|
+
"@syncfusion/ej2-navigations": "~33.2.4",
|
|
16
16
|
"@syncfusion/ej2-notifications": "~33.2.3",
|
|
17
17
|
"@syncfusion/ej2-popups": "~33.2.3"
|
|
18
18
|
},
|
|
@@ -1936,6 +1936,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1936
1936
|
removeClass([this.popupDiv], NODATA);
|
|
1937
1937
|
this.hideCheckAll(false);
|
|
1938
1938
|
}
|
|
1939
|
+
else {
|
|
1940
|
+
this.hideCheckAll(this.treeItems.length <= 1);
|
|
1941
|
+
}
|
|
1939
1942
|
if (!this.isFilteredData) {
|
|
1940
1943
|
this.treeDataType = this.getTreeDataType(this.treeItems, this.fields);
|
|
1941
1944
|
}
|
|
@@ -3350,6 +3353,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
3350
3353
|
EventHandler.remove(element, 'mouseup', this.removeChip);
|
|
3351
3354
|
}
|
|
3352
3355
|
}
|
|
3356
|
+
if (this.keyboardModule) {
|
|
3357
|
+
this.keyboardModule.destroy();
|
|
3358
|
+
}
|
|
3353
3359
|
this.chipWrapper = null;
|
|
3354
3360
|
this.chipCollection = null;
|
|
3355
3361
|
this.checkAllParent = null;
|
package/src/mention/mention.js
CHANGED
|
@@ -495,7 +495,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
495
495
|
}
|
|
496
496
|
else if (this.allowSpaces && this.queryString !== '' && currentRange && currentRange.trim() !== '' && currentRange.replace('\u00a0', ' ').lastIndexOf(' ') < currentRange.length - 1 &&
|
|
497
497
|
e.keyCode !== 38 && e.keyCode !== 40 && e.keyCode !== 8 && (this.mentionChar.charCodeAt(0) === lastWordRange.charCodeAt(0) ||
|
|
498
|
-
(this.liCollections && this.liCollections.length > 0))) {
|
|
498
|
+
((this.liCollections && this.liCollections.length > 0) || (this.isPopupOpen && this.list && this.list.classList.contains('e-nodata'))))) {
|
|
499
499
|
this.queryString = currentRange.substring(currentRange.lastIndexOf(this.mentionChar) + 1).replace('\u00a0', ' ');
|
|
500
500
|
this.searchLists(e);
|
|
501
501
|
}
|
|
@@ -995,6 +995,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
995
995
|
*/
|
|
996
996
|
private removeDisabledItemsValue;
|
|
997
997
|
private checkInitialValue;
|
|
998
|
+
private executeLocalForLargeSelection;
|
|
998
999
|
private checkAutoFocus;
|
|
999
1000
|
private updatevirtualizationList;
|
|
1000
1001
|
private setFloatLabelType;
|
|
@@ -6547,7 +6547,11 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
6547
6547
|
});
|
|
6548
6548
|
}
|
|
6549
6549
|
else {
|
|
6550
|
-
listItems_3 =
|
|
6550
|
+
listItems_3 = this.executeLocalForLargeSelection(this.dataSource, this.value, {
|
|
6551
|
+
fields: this.fields,
|
|
6552
|
+
allowObjectBinding: this.allowObjectBinding,
|
|
6553
|
+
isPrimitiveData: this.isPrimitiveData
|
|
6554
|
+
});
|
|
6551
6555
|
}
|
|
6552
6556
|
}
|
|
6553
6557
|
if (!(this.dataSource instanceof DataManager)) {
|
|
@@ -6576,6 +6580,55 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
6576
6580
|
this.element.setAttribute('data-initial-value', this.text);
|
|
6577
6581
|
}
|
|
6578
6582
|
};
|
|
6583
|
+
MultiSelect.prototype.executeLocalForLargeSelection = function (dataSource, values, options) {
|
|
6584
|
+
if (!dataSource || !dataSource.length || !values || !values.length) {
|
|
6585
|
+
return [];
|
|
6586
|
+
}
|
|
6587
|
+
var fields = options.fields, allowObjectBinding = options.allowObjectBinding, isPrimitiveData = options.isPrimitiveData, _a = options.predicateChunkSize, predicateChunkSize = _a === void 0 ? 100 : _a;
|
|
6588
|
+
if (values.length === dataSource.length) {
|
|
6589
|
+
return dataSource.slice();
|
|
6590
|
+
}
|
|
6591
|
+
var field = isPrimitiveData ? '' : fields.value;
|
|
6592
|
+
var allResults = [];
|
|
6593
|
+
var predicate = null;
|
|
6594
|
+
var count = 0;
|
|
6595
|
+
var flushPredicate = function () {
|
|
6596
|
+
if (!predicate) {
|
|
6597
|
+
return;
|
|
6598
|
+
}
|
|
6599
|
+
var query = new Query().where(predicate);
|
|
6600
|
+
var result = new DataManager(dataSource).executeLocal(query);
|
|
6601
|
+
allResults.push.apply(allResults, result);
|
|
6602
|
+
predicate = null;
|
|
6603
|
+
count = 0;
|
|
6604
|
+
};
|
|
6605
|
+
for (var i = 0; i < values.length; i++) {
|
|
6606
|
+
var value = allowObjectBinding
|
|
6607
|
+
? getValue(fields.value || '', values[i])
|
|
6608
|
+
: values[i];
|
|
6609
|
+
predicate = predicate
|
|
6610
|
+
? predicate.or(field, 'equal', value)
|
|
6611
|
+
: new Predicate(field, 'equal', value);
|
|
6612
|
+
count++;
|
|
6613
|
+
if (count === predicateChunkSize) {
|
|
6614
|
+
flushPredicate();
|
|
6615
|
+
}
|
|
6616
|
+
}
|
|
6617
|
+
flushPredicate();
|
|
6618
|
+
var uniqueMap = {};
|
|
6619
|
+
var resultArray = [];
|
|
6620
|
+
for (var i = 0; i < allResults.length; i++) {
|
|
6621
|
+
var item = allResults[i];
|
|
6622
|
+
var key = isPrimitiveData
|
|
6623
|
+
? item.toString()
|
|
6624
|
+
: getValue(fields.value, item);
|
|
6625
|
+
if (!uniqueMap.hasOwnProperty(key)) {
|
|
6626
|
+
uniqueMap[key] = item;
|
|
6627
|
+
resultArray.push(item);
|
|
6628
|
+
}
|
|
6629
|
+
}
|
|
6630
|
+
return resultArray;
|
|
6631
|
+
};
|
|
6579
6632
|
MultiSelect.prototype.checkAutoFocus = function () {
|
|
6580
6633
|
if (this.element.hasAttribute('autofocus')) {
|
|
6581
6634
|
this.inputElement.focus();
|