@syncfusion/ej2-dropdowns 28.1.41 → 28.2.3

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 28.1.41
3
+ * version : 28.2.3
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.39",
3
+ "_id": "@syncfusion/ej2-dropdowns@28.1.41",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-//F+3tKpHvooXKrEpdaelWdehcgo92MbgKaI4QOyCn3zBaXTAH4CJ3pEqUNCTz4ML3EhOvDFyRFYWMemRFCP1g==",
5
+ "_integrity": "sha512-XHQSq89yLShgV5vMeiTTFCUt2tQ+wyqf7v3t/paW5IDkCrxAlfiU56sTuv5XyuZ3rBECWpmlDmIDP6kPz2bPMw==",
6
6
  "_location": "/@syncfusion/ej2-dropdowns",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -36,8 +36,8 @@
36
36
  "/@syncfusion/ej2-spreadsheet",
37
37
  "/@syncfusion/ej2-vue-dropdowns"
38
38
  ],
39
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-28.1.39.tgz",
40
- "_shasum": "2502edc8b2aaac370eb276fbec8f3ab0ae2b0702",
39
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-28.1.41.tgz",
40
+ "_shasum": "1d5b644c7717243d23cd17fa544fb0a9810b7b99",
41
41
  "_spec": "@syncfusion/ej2-dropdowns@*",
42
42
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
43
43
  "author": {
@@ -45,13 +45,13 @@
45
45
  },
46
46
  "bundleDependencies": false,
47
47
  "dependencies": {
48
- "@syncfusion/ej2-base": "~28.1.33",
49
- "@syncfusion/ej2-data": "~28.1.33",
50
- "@syncfusion/ej2-inputs": "~28.1.41",
51
- "@syncfusion/ej2-lists": "~28.1.37",
52
- "@syncfusion/ej2-navigations": "~28.1.41",
53
- "@syncfusion/ej2-notifications": "~28.1.33",
54
- "@syncfusion/ej2-popups": "~28.1.39"
48
+ "@syncfusion/ej2-base": "~28.2.3",
49
+ "@syncfusion/ej2-data": "~28.2.3",
50
+ "@syncfusion/ej2-inputs": "~28.2.3",
51
+ "@syncfusion/ej2-lists": "~28.2.3",
52
+ "@syncfusion/ej2-navigations": "~28.2.3",
53
+ "@syncfusion/ej2-notifications": "~28.2.3",
54
+ "@syncfusion/ej2-popups": "~28.2.3"
55
55
  },
56
56
  "deprecated": false,
57
57
  "description": "Essential JS 2 DropDown Components",
@@ -76,7 +76,7 @@
76
76
  "module": "./index.js",
77
77
  "name": "@syncfusion/ej2-dropdowns",
78
78
  "typings": "index.d.ts",
79
- "version": "28.1.41",
79
+ "version": "28.2.3",
80
80
  "sideEffects": false,
81
81
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
82
82
  }
@@ -190,7 +190,7 @@ var VirtualScroll = /** @class */ (function () {
190
190
  endIndex = this.parent.viewPortInfo.endIndex - this.parent.value.length;
191
191
  if (this.parent.viewPortInfo.startIndex === 0) {
192
192
  this.parent.updateVirtualReOrderList(true);
193
- if (this.parent.value.length < this.parent.itemCount) {
193
+ if (this.parent.value.length < this.parent.itemCount && this.parent.value.length !== this.parent.totalItemCount) {
194
194
  var oldUlElement = this.parent.list.querySelector('.e-list-parent' + ':not(.e-reorder)');
195
195
  if (oldUlElement) {
196
196
  this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(oldUlElement);
@@ -253,6 +253,12 @@ var VirtualScroll = /** @class */ (function () {
253
253
  if (isListUpdated) {
254
254
  for (var i = this.parent.viewPortInfo.startIndex; i < endIndex; i++) {
255
255
  var index = i;
256
+ if (this.component === 'multiselect' && this.parent.mode === 'CheckBox') {
257
+ var oldUlElement = this.parent.list.querySelector('.e-list-parent' + '.e-reorder');
258
+ if (oldUlElement) {
259
+ this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(oldUlElement);
260
+ }
261
+ }
256
262
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
257
263
  var alreadyAddedData = this.parent.generatedDataObject[index];
258
264
  if (this.component === 'multiselect' && this.parent.hideSelectedItem) {
@@ -72,6 +72,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
72
72
  private isUpdateFooterHeight;
73
73
  private isBlurDispatching;
74
74
  private isFilterPrevented;
75
+ private isFilteringAction;
75
76
  /**
76
77
  * The `fields` property maps the columns of the data table and binds the data to the component.
77
78
  * * text - Maps the text column from data table for each list item.
@@ -105,6 +105,7 @@ var MultiSelect = /** @class */ (function (_super) {
105
105
  _this.isUpdateFooterHeight = false;
106
106
  _this.isBlurDispatching = false;
107
107
  _this.isFilterPrevented = false;
108
+ _this.isFilteringAction = false;
108
109
  _this.isValidKey = false;
109
110
  _this.selectAllEventData = [];
110
111
  _this.selectAllEventEle = [];
@@ -566,7 +567,7 @@ var MultiSelect = /** @class */ (function (_super) {
566
567
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
567
568
  this.totalItemCount = e.count;
568
569
  }
569
- if (this.value && list && list.length > 0 && this.allowFiltering && this.mode !== 'CheckBox' && !this.enableVirtualization && !this.isFilterPrevented && !this.allowCustomValue) {
570
+ if (this.value && list && list.length > 0 && this.allowFiltering && this.mode !== 'CheckBox' && !this.enableVirtualization && !this.isFilterPrevented && !this.allowCustomValue && this.isFilteringAction) {
570
571
  var allItemsInValue = list.every(function (item) {
571
572
  var itemValue = getValue((_this.fields.value) ? _this.fields.value : '', item);
572
573
  return _this.value.some(function (val) {
@@ -3240,6 +3241,9 @@ var MultiSelect = /** @class */ (function (_super) {
3240
3241
  this.totalItemCount = this.value && this.value.length ? this.totalItemCount - this.value.length : this.totalItemCount;
3241
3242
  }
3242
3243
  this.getSkeletonCount();
3244
+ this.skeletonCount = this.totalItemCount !== 0 && this.totalItemCount < this.itemCount * 2 &&
3245
+ ((!(this.dataSource instanceof DataManager)) || ((this.dataSource instanceof DataManager) &&
3246
+ (this.totalItemCount <= this.itemCount))) ? 0 : this.skeletonCount;
3243
3247
  this.UpdateSkeleton();
3244
3248
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3245
3249
  if (this.list.getElementsByClassName('e-virtual-ddl')[0]) {
@@ -3470,10 +3474,12 @@ var MultiSelect = /** @class */ (function (_super) {
3470
3474
  if (!eventArgs.cancel) {
3471
3475
  if (!_this.isFiltered && !eventArgs.preventDefaultAction) {
3472
3476
  _this.filterAction = true;
3477
+ _this.isFilteringAction = true;
3473
3478
  if (_this.dataSource instanceof DataManager && _this.allowCustomValue) {
3474
3479
  _this.isCustomRendered = false;
3475
3480
  }
3476
3481
  _this.dataUpdater(_this.dataSource, null, _this.fields);
3482
+ _this.isFilteringAction = false;
3477
3483
  }
3478
3484
  }
3479
3485
  });