@syncfusion/ej2-dropdowns 20.2.38 → 20.2.43
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 +22 -0
- 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 +41 -8
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +41 -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 +11 -11
- package/src/drop-down-list/drop-down-list.js +21 -0
- package/src/drop-down-tree/drop-down-tree.js +2 -1
- package/src/list-box/list-box.d.ts +1 -1
- package/src/list-box/list-box.js +17 -6
- package/src/multi-select/multi-select.js +1 -1
- package/styles/bootstrap-dark.css +10 -0
- package/styles/bootstrap.css +10 -0
- package/styles/bootstrap4.css +10 -0
- package/styles/bootstrap5-dark.css +10 -0
- package/styles/bootstrap5.css +10 -0
- package/styles/fabric-dark.css +10 -0
- package/styles/fabric.css +10 -0
- package/styles/fluent-dark.css +10 -0
- package/styles/fluent.css +10 -0
- package/styles/highcontrast-light.css +10 -0
- package/styles/highcontrast.css +10 -0
- package/styles/list-box/_layout.scss +9 -0
- package/styles/list-box/bootstrap-dark.css +10 -0
- package/styles/list-box/bootstrap.css +10 -0
- package/styles/list-box/bootstrap4.css +10 -0
- package/styles/list-box/bootstrap5-dark.css +10 -0
- package/styles/list-box/bootstrap5.css +10 -0
- package/styles/list-box/fabric-dark.css +10 -0
- package/styles/list-box/fabric.css +10 -0
- package/styles/list-box/fluent-dark.css +10 -0
- package/styles/list-box/fluent.css +10 -0
- package/styles/list-box/highcontrast-light.css +10 -0
- package/styles/list-box/highcontrast.css +10 -0
- package/styles/list-box/material-dark.css +10 -0
- package/styles/list-box/material.css +10 -0
- package/styles/list-box/tailwind-dark.css +10 -0
- package/styles/list-box/tailwind.css +10 -0
- package/styles/material-dark.css +10 -0
- package/styles/material.css +10 -0
- package/styles/tailwind-dark.css +10 -0
- package/styles/tailwind.css +10 -0
- package/.eslintrc.json +0 -244
- package/tslint.json +0 -111
|
@@ -2983,6 +2983,27 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
2983
2983
|
}
|
|
2984
2984
|
this.initial = false;
|
|
2985
2985
|
}
|
|
2986
|
+
else if (this.getModuleName() === 'autocomplete' && this.value && this.typedString === '' && !(this.dataSource instanceof DataManager)) {
|
|
2987
|
+
var checkFields_1 = this.typeOfData(this.dataSource).typeof === 'string' ? '' : this.fields.value;
|
|
2988
|
+
var checkValue = list.some(function (x) { return x[checkFields_1] === _this.value; });
|
|
2989
|
+
var query = new Query();
|
|
2990
|
+
if (!checkValue) {
|
|
2991
|
+
new DataManager(this.dataSource).executeQuery(query.where(new Predicate(checkFields_1, 'equal', this.value)))
|
|
2992
|
+
.then(function (e) {
|
|
2993
|
+
if (e.result.length > 0) {
|
|
2994
|
+
_this.value = checkFields_1 !== '' ? e.result[0][_this.fields.value].toString() : e.result[0].toString();
|
|
2995
|
+
_this.addItem(e.result, list.length);
|
|
2996
|
+
_this.updateValues();
|
|
2997
|
+
}
|
|
2998
|
+
else {
|
|
2999
|
+
_this.updateValues();
|
|
3000
|
+
}
|
|
3001
|
+
});
|
|
3002
|
+
}
|
|
3003
|
+
else {
|
|
3004
|
+
this.updateValues();
|
|
3005
|
+
}
|
|
3006
|
+
}
|
|
2986
3007
|
if (this.getModuleName() !== 'autocomplete' && this.isFiltering() && !this.isTyped) {
|
|
2987
3008
|
if (!this.actionCompleteData.isUpdated || ((!this.isCustomFilter
|
|
2988
3009
|
&& !this.isFilterFocus) || (isNullOrUndefined(this.itemData) && this.allowFiltering)
|
|
@@ -6042,7 +6063,8 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
6042
6063
|
}
|
|
6043
6064
|
return 2;
|
|
6044
6065
|
}
|
|
6045
|
-
|
|
6066
|
+
if (isNullOrUndefined(this.fields.dataSource))
|
|
6067
|
+
this.fields.dataSource = [];
|
|
6046
6068
|
for (var i = 0, len = this.fields.dataSource.length; i < len; i++) {
|
|
6047
6069
|
if ((typeof field.child === 'string') && !isNullOrUndefined(getValue(field.child, this.fields.dataSource[i]))) {
|
|
6048
6070
|
return 2;
|
|
@@ -11271,7 +11293,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
11271
11293
|
}
|
|
11272
11294
|
};
|
|
11273
11295
|
MultiSelect.prototype.updateDataList = function () {
|
|
11274
|
-
if (this.mainList && this.ulElement && !(this.isFiltered || this.filterAction)) {
|
|
11296
|
+
if (this.mainList && this.ulElement && !(this.isFiltered || this.filterAction || this.targetElement().trim())) {
|
|
11275
11297
|
var isDynamicGroupItemUpdate = this.mainList.childElementCount < this.ulElement.childElementCount;
|
|
11276
11298
|
var isReactTemplateUpdate = ((this.ulElement.childElementCount > 0 && this.ulElement.children[0].childElementCount > 0) && (this.mainList.children[0].childElementCount < this.ulElement.children[0].childElementCount));
|
|
11277
11299
|
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));
|
|
@@ -13685,8 +13707,8 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
13685
13707
|
});
|
|
13686
13708
|
}
|
|
13687
13709
|
};
|
|
13688
|
-
ListBox.prototype.updateActionCompleteData = function (li, item) {
|
|
13689
|
-
this.jsonData.
|
|
13710
|
+
ListBox.prototype.updateActionCompleteData = function (li, item, index) {
|
|
13711
|
+
this.jsonData.splice(index, 0, item);
|
|
13690
13712
|
};
|
|
13691
13713
|
ListBox.prototype.initToolbar = function () {
|
|
13692
13714
|
var pos = this.toolbarSettings.position;
|
|
@@ -14231,7 +14253,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
14231
14253
|
var objValue = void 0;
|
|
14232
14254
|
var dupData = [];
|
|
14233
14255
|
var itemIdx = void 0;
|
|
14234
|
-
extend(dupData, [], this.
|
|
14256
|
+
extend(dupData, [], this.jsonData);
|
|
14235
14257
|
var removeIdxes = [];
|
|
14236
14258
|
var removeLiIdxes = [];
|
|
14237
14259
|
for (var j = 0; j < items.length; j++) {
|
|
@@ -15018,9 +15040,20 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
15018
15040
|
fListBox.value = [];
|
|
15019
15041
|
listData = listData
|
|
15020
15042
|
.filter(function (data) { return data.isHeader !== true; });
|
|
15021
|
-
tListBox.listData = listData;
|
|
15022
|
-
|
|
15023
|
-
|
|
15043
|
+
tListBox.listData = tListBox.jsonData = listData;
|
|
15044
|
+
if (fListBox.listData.length == fListBox.jsonData.length) {
|
|
15045
|
+
fListBox.listData = fListBox.sortedData = fListBox.jsonData = [];
|
|
15046
|
+
}
|
|
15047
|
+
else if (this.allowFiltering) {
|
|
15048
|
+
for (var i = 0; i < fListBox.listData.length; i++) {
|
|
15049
|
+
for (var j = 0; j < fListBox.jsonData.length; j++) {
|
|
15050
|
+
if (fListBox.listData[i] === fListBox.jsonData[j]) {
|
|
15051
|
+
fListBox.jsonData.splice(j, 1);
|
|
15052
|
+
}
|
|
15053
|
+
}
|
|
15054
|
+
}
|
|
15055
|
+
fListBox.listData = fListBox.sortedData = [];
|
|
15056
|
+
}
|
|
15024
15057
|
if (isRefresh) {
|
|
15025
15058
|
var sourceElem = tListBox.renderItems(listData, tListBox.fields);
|
|
15026
15059
|
tListBox.updateListItems(sourceElem, tListBox.ulElement);
|