@syncfusion/ej2-dropdowns 20.4.38 → 20.4.40
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/.eslintrc.json +259 -0
- package/CHANGELOG.md +23 -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 +15 -4
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +14 -3
- 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 +13 -12
- package/src/drop-down-tree/drop-down-tree.js +3 -0
- package/src/list-box/list-box-model.d.ts +6 -6
- package/src/list-box/list-box.js +11 -3
- package/tslint.json +111 -0
|
@@ -6057,6 +6057,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
6057
6057
|
}
|
|
6058
6058
|
var eventArgs = { data: args.data };
|
|
6059
6059
|
this.trigger('dataBound', eventArgs);
|
|
6060
|
+
if (this.filterObj === null) {
|
|
6061
|
+
this.isFilteredData = false;
|
|
6062
|
+
}
|
|
6060
6063
|
if (this.isFilteredData) {
|
|
6061
6064
|
this.treeObj.expandAll();
|
|
6062
6065
|
}
|
|
@@ -14366,6 +14369,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
14366
14369
|
dragArgs = extend(dragArgs, { destination: dragArgs1 });
|
|
14367
14370
|
}
|
|
14368
14371
|
this.trigger('drop', dragArgs);
|
|
14372
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14369
14373
|
var liCollElem = dragArgs.elements;
|
|
14370
14374
|
if (liCollElem.length) {
|
|
14371
14375
|
for (var i = 0; i < liCollElem.length; i++) {
|
|
@@ -15263,7 +15267,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
15263
15267
|
var isRefresh = tListBox.sortOrder !== 'None' || (tListBox.selectionSettings.showCheckbox !==
|
|
15264
15268
|
fListBox.selectionSettings.showCheckbox) || tListBox.fields.groupBy || tListBox.itemTemplate || fListBox.itemTemplate;
|
|
15265
15269
|
this.removeSelected(fListBox, fListBox.getSelectedItems());
|
|
15266
|
-
var tempItems = [].slice.call(fListBox.
|
|
15270
|
+
var tempItems = [].slice.call(fListBox.listData);
|
|
15267
15271
|
var localDataArgs = { cancel: false, items: tempItems, eventName: this.toolbarAction };
|
|
15268
15272
|
fListBox.trigger('actionBegin', localDataArgs);
|
|
15269
15273
|
if (localDataArgs.cancel) {
|
|
@@ -15308,11 +15312,18 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
15308
15312
|
fListBox.value = [];
|
|
15309
15313
|
listData = listData
|
|
15310
15314
|
.filter(function (data) { return data.isHeader !== true; });
|
|
15311
|
-
|
|
15315
|
+
var sortedData = listData.filter(function (val) {
|
|
15316
|
+
return tListBox.jsonData.indexOf(val) === -1;
|
|
15317
|
+
});
|
|
15318
|
+
for (var i = 0; i < sortedData.length; i++) {
|
|
15319
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15320
|
+
tListBox.jsonData.splice(index + i, 0, sortedData[i]);
|
|
15321
|
+
}
|
|
15322
|
+
tListBox.listData = listData;
|
|
15312
15323
|
if (fListBox.listData.length === fListBox.jsonData.length) {
|
|
15313
15324
|
fListBox.listData = fListBox.sortedData = fListBox.jsonData = [];
|
|
15314
15325
|
}
|
|
15315
|
-
else if (
|
|
15326
|
+
else if (fListBox.allowFiltering) {
|
|
15316
15327
|
for (var i = 0; i < fListBox.listData.length; i++) {
|
|
15317
15328
|
for (var j = 0; j < fListBox.jsonData.length; j++) {
|
|
15318
15329
|
if (fListBox.listData[i] === fListBox.jsonData[j]) {
|