@syncfusion/ej2-dropdowns 23.2.6 → 23.2.7
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/CHANGELOG.md +24 -0
- 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 +27 -8
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +28 -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 +6 -6
- package/src/auto-complete/auto-complete.js +4 -0
- package/src/drop-down-list/drop-down-list.js +21 -7
- package/src/drop-down-tree/drop-down-tree.js +2 -0
- package/src/multi-select/multi-select.js +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 23.2.
|
|
3
|
+
* version : 23.2.7
|
|
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@23.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@23.2.6",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512
|
|
5
|
+
"_integrity": "sha512-vUNqFVb1yxS4MDFefoKBnWGgc1xKuuxNSqeG3Qp6HwqQyN7jMZ0Zon5fJZgvl0pReF9+PTggSiEWiHKiuVRToA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"/@syncfusion/ej2-spreadsheet",
|
|
35
35
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
36
36
|
],
|
|
37
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-23.2.
|
|
38
|
-
"_shasum": "
|
|
37
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-23.2.6.tgz",
|
|
38
|
+
"_shasum": "a958f6597f60a12c0375f50816626d2ad0d62efd",
|
|
39
39
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
40
40
|
"_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
|
|
41
41
|
"author": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@syncfusion/ej2-data": "~23.2.4",
|
|
48
48
|
"@syncfusion/ej2-inputs": "~23.2.4",
|
|
49
49
|
"@syncfusion/ej2-lists": "~23.2.4",
|
|
50
|
-
"@syncfusion/ej2-navigations": "~23.2.
|
|
50
|
+
"@syncfusion/ej2-navigations": "~23.2.7",
|
|
51
51
|
"@syncfusion/ej2-notifications": "~23.2.5",
|
|
52
52
|
"@syncfusion/ej2-popups": "~23.2.4"
|
|
53
53
|
},
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"module": "./index.js",
|
|
75
75
|
"name": "@syncfusion/ej2-dropdowns",
|
|
76
76
|
"typings": "index.d.ts",
|
|
77
|
-
"version": "23.2.
|
|
77
|
+
"version": "23.2.7",
|
|
78
78
|
"sideEffects": false,
|
|
79
79
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
80
80
|
}
|
|
@@ -258,6 +258,10 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
258
258
|
}, 0);
|
|
259
259
|
}
|
|
260
260
|
else {
|
|
261
|
+
var isHtmlElement = /<[^>]*>/g.test(e.item.innerText);
|
|
262
|
+
if (isHtmlElement) {
|
|
263
|
+
e.item.innerText = e.item.innerText.replace(/[\u00A0-\u9999<>&]/g, function (match) { return "&#" + match.charCodeAt(0) + ";"; });
|
|
264
|
+
}
|
|
261
265
|
highlightSearch(e.item, _this_1.queryString, _this_1.ignoreCase, _this_1.filterType);
|
|
262
266
|
}
|
|
263
267
|
}
|
|
@@ -1039,6 +1039,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1039
1039
|
this.isDocumentClick = true;
|
|
1040
1040
|
var isActive = this.isRequested;
|
|
1041
1041
|
this.hidePopup(e);
|
|
1042
|
+
this.isInteracted = false;
|
|
1042
1043
|
if (!isActive) {
|
|
1043
1044
|
this.onFocusOut();
|
|
1044
1045
|
this.inputWrapper.container.classList.remove(dropDownListClasses.inputFocus);
|
|
@@ -1226,6 +1227,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1226
1227
|
}
|
|
1227
1228
|
};
|
|
1228
1229
|
DropDownList.prototype.setSelection = function (li, e) {
|
|
1230
|
+
var _this = this;
|
|
1229
1231
|
if (this.isValidLI(li) && (!li.classList.contains(dropDownBaseClasses.selected) || (this.isPopupOpen && this.isSelected
|
|
1230
1232
|
&& li.classList.contains(dropDownBaseClasses.selected)))) {
|
|
1231
1233
|
this.updateSelectedItem(li, e, false, true);
|
|
@@ -1234,10 +1236,21 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1234
1236
|
this.setSelectOptions(li, e);
|
|
1235
1237
|
if (this.enableVirtualization) {
|
|
1236
1238
|
var fields = (this.fields.value) ? this.fields.value : '';
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1239
|
+
if (this.dataSource instanceof DataManager) {
|
|
1240
|
+
this.dataSource.executeQuery(new Query().where(new Predicate(fields, 'equal', this.value)))
|
|
1241
|
+
.then(function (e) {
|
|
1242
|
+
if (e.result.length > 0) {
|
|
1243
|
+
_this.itemData = e.result[0];
|
|
1244
|
+
_this.setProperties({ 'text': e.result[0].text, 'value': e.result[0].value }, true);
|
|
1245
|
+
}
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1248
|
+
else {
|
|
1249
|
+
var getItem = new DataManager(this.dataSource).executeLocal(new Query().where(new Predicate(fields, 'equal', this.value)));
|
|
1250
|
+
if (getItem && getItem.length > 0) {
|
|
1251
|
+
this.itemData = getItem[0];
|
|
1252
|
+
this.setProperties({ 'text': getItem[0].text, 'value': getItem[0].value }, true);
|
|
1253
|
+
}
|
|
1241
1254
|
}
|
|
1242
1255
|
}
|
|
1243
1256
|
}
|
|
@@ -2985,7 +2998,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2985
2998
|
EventHandler.add(this.list, 'scroll', this.setFloatingHeader, this);
|
|
2986
2999
|
}
|
|
2987
3000
|
if (!(!isNullOrUndefined(props) && (isNullOrUndefined(props.dataSource)
|
|
2988
|
-
|| (!(props.dataSource instanceof DataManager) && props.dataSource.length === 0))) || !(props.dataSource ===
|
|
3001
|
+
|| (!(props.dataSource instanceof DataManager) && props.dataSource.length === 0))) || !(Array.isArray(props.dataSource) && props.dataSource.length === 0)) {
|
|
2989
3002
|
this.typedString = '';
|
|
2990
3003
|
this.resetList(this.dataSource);
|
|
2991
3004
|
}
|
|
@@ -3334,7 +3347,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
3334
3347
|
});
|
|
3335
3348
|
}
|
|
3336
3349
|
}
|
|
3337
|
-
this.
|
|
3350
|
+
if (this.beforePopupOpen) {
|
|
3351
|
+
this.invokeRenderPopup(e);
|
|
3352
|
+
}
|
|
3338
3353
|
if (this.enableVirtualization && !this.allowFiltering && this.selectedValueInfo != null && this.selectedValueInfo.startIndex > 0 && this.value != null) {
|
|
3339
3354
|
this.notify("dataProcessAsync", {
|
|
3340
3355
|
module: "VirtualScroll",
|
|
@@ -3394,7 +3409,6 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
3394
3409
|
this.isSelectCustom = false;
|
|
3395
3410
|
this.clearAll(e);
|
|
3396
3411
|
}
|
|
3397
|
-
this.isInteracted = false;
|
|
3398
3412
|
};
|
|
3399
3413
|
/* eslint-disable valid-jsdoc, jsdoc/require-param */
|
|
3400
3414
|
/**
|
|
@@ -1490,6 +1490,8 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1490
1490
|
if (this.isFilteredData) {
|
|
1491
1491
|
this.filterObj.value = '';
|
|
1492
1492
|
this.treeObj.fields = this.getTreeFields(this.fields);
|
|
1493
|
+
if (this.isReact)
|
|
1494
|
+
this.refresh();
|
|
1493
1495
|
this.isFilterRestore = true;
|
|
1494
1496
|
this.isFilteredData = false;
|
|
1495
1497
|
this.hideCheckAll(false);
|
|
@@ -2615,7 +2615,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2615
2615
|
MultiSelect.prototype.updateDataList = function () {
|
|
2616
2616
|
if (this.mainList && this.ulElement && !(this.isFiltered || this.filterAction || this.targetElement().trim())) {
|
|
2617
2617
|
var isDynamicGroupItemUpdate = this.mainList.childElementCount < this.ulElement.childElementCount;
|
|
2618
|
-
var isReactTemplateUpdate = ((this.ulElement.childElementCount > 0 && this.ulElement.children[0].childElementCount > 0) && (this.mainList.children[0]
|
|
2618
|
+
var isReactTemplateUpdate = ((this.ulElement.childElementCount > 0 && this.ulElement.children[0].childElementCount > 0) && (this.mainList.children[0] && (this.mainList.children[0].childElementCount < this.ulElement.children[0].childElementCount)));
|
|
2619
2619
|
var isAngularTemplateUpdate = this.itemTemplate && this.ulElement.childElementCount > 0 && !(this.ulElement.childElementCount < this.mainList.childElementCount) && (this.ulElement.children[0].childElementCount > 0 || (this.fields.groupBy && this.ulElement.children[1] && this.ulElement.children[1].childElementCount > 0));
|
|
2620
2620
|
if (isDynamicGroupItemUpdate || isReactTemplateUpdate || isAngularTemplateUpdate) {
|
|
2621
2621
|
//EJ2-57748 - for this task, we prevent the ul element cloning ( this.mainList = this.ulElement.cloneNode ? <HTMLElement>this.ulElement.cloneNode(true) : this.ulElement;)
|