@syncfusion/ej2-dropdowns 32.1.19 → 32.1.20

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,3 +1,12 @@
1
+ /*!
2
+ * filename: index.d.ts
3
+ * version : 32.1.20
4
+ * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
+ * Use of this code is subject to the terms of our license.
6
+ * A copy of the current license can be obtained at any time by e-mailing
7
+ * licensing@syncfusion.com. Any infringement will be prosecuted under
8
+ * applicable laws.
9
+ */
1
10
  import * as _dropdowns from '@syncfusion/ej2-dropdowns';
2
11
 
3
12
  export declare namespace ej {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-dropdowns",
3
- "version": "32.1.19",
3
+ "version": "32.1.20",
4
4
  "description": "Essential JS 2 DropDown Components",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -10,7 +10,7 @@
10
10
  "dependencies": {
11
11
  "@syncfusion/ej2-base": "~32.1.19",
12
12
  "@syncfusion/ej2-data": "~32.1.19",
13
- "@syncfusion/ej2-inputs": "~32.1.19",
13
+ "@syncfusion/ej2-inputs": "~32.1.20",
14
14
  "@syncfusion/ej2-lists": "~32.1.19",
15
15
  "@syncfusion/ej2-navigations": "~32.1.19",
16
16
  "@syncfusion/ej2-notifications": "~32.1.19",
@@ -132,6 +132,7 @@ export declare class DropDownList extends DropDownBase implements IInput {
132
132
  private isUpdateFooterHeight;
133
133
  private filterArgs;
134
134
  private isReactTemplateUpdate;
135
+ private iOSscrollPosition;
135
136
  /**
136
137
  * Sets CSS classes to the root element of the component that allows customization of appearance.
137
138
  *
@@ -2617,6 +2617,7 @@ var DropDownList = /** @class */ (function (_super) {
2617
2617
  }
2618
2618
  var args = { cancel: false };
2619
2619
  this.trigger('beforeOpen', args, function (args) {
2620
+ _this.iOSscrollPosition = { x: document.documentElement.scrollLeft, y: document.documentElement.scrollTop };
2620
2621
  var initialPopupHeight;
2621
2622
  if (!args.cancel) {
2622
2623
  var popupEle_1 = _this.createElement('div', {
@@ -2839,6 +2840,9 @@ var DropDownList = /** @class */ (function (_super) {
2839
2840
  }
2840
2841
  }, 15);
2841
2842
  }
2843
+ if (_this.allowFiltering && _this.isDeviceFullScreen && Browser.isDevice && Browser.isIos) {
2844
+ document.documentElement.scrollIntoView();
2845
+ }
2842
2846
  }
2843
2847
  else {
2844
2848
  _this.beforePopupOpen = false;
@@ -3377,6 +3381,12 @@ var DropDownList = /** @class */ (function (_super) {
3377
3381
  _this.fixedHeaderElement = null;
3378
3382
  }
3379
3383
  if (!eventArgs.cancel) {
3384
+ if (_this.isPopupOpen && _this.allowFiltering && _this.isDeviceFullScreen && Browser.isDevice && Browser.isIos) {
3385
+ document.documentElement.scrollTo({
3386
+ top: _this.iOSscrollPosition.y,
3387
+ left: _this.iOSscrollPosition.x
3388
+ });
3389
+ }
3380
3390
  if (_this.getModuleName() === 'autocomplete') {
3381
3391
  _this.rippleFun();
3382
3392
  }
@@ -2372,7 +2372,10 @@ var DropDownTree = /** @class */ (function (_super) {
2372
2372
  selectedValues = selectedValues.filter(function (selectedValue) {
2373
2373
  var nodeData = _this.treeObj.getTreeData(selectedValue);
2374
2374
  if (Array.isArray(nodeData)) {
2375
- return nodeData.every(function (nodeSelectedData) { return nodeSelectedData.selected; });
2375
+ return nodeData.every(function (nodeSelectedData) {
2376
+ return nodeSelectedData.selected === true ||
2377
+ _this.selectedData.some(function (sel) { return sel.id === String(nodeSelectedData[_this.fields.value]); });
2378
+ });
2376
2379
  }
2377
2380
  return true;
2378
2381
  });
@@ -5,7 +5,7 @@
5
5
  .e-ddl#{&}.e-popup {
6
6
  #{if(&, '&', '*')} .e-input-group {
7
7
  @if ($skin-name == 'Material3') {
8
- margin-top: $ddl-popup-input-group-mat-margin-top;
8
+ padding-top: $ddl-popup-input-group-mat-margin-top;
9
9
  }
10
10
  }
11
11
  }
@@ -335,7 +335,7 @@
335
335
  }
336
336
 
337
337
  .e-ddl.e-popup .e-input-group {
338
- margin-top: 4px;
338
+ padding-top: 4px;
339
339
  }
340
340
 
341
341
  .e-ddl.e-lib.e-input-group:not(.e-float-input) .e-dropdownlist:not(.e-input) {
@@ -337,7 +337,7 @@
337
337
  }
338
338
 
339
339
  .e-ddl.e-popup .e-input-group {
340
- margin-top: 4px;
340
+ padding-top: 4px;
341
341
  }
342
342
 
343
343
  .e-ddl.e-lib.e-input-group:not(.e-float-input) .e-dropdownlist:not(.e-input) {
@@ -642,7 +642,7 @@
642
642
  }
643
643
 
644
644
  .e-ddl.e-popup .e-input-group {
645
- margin-top: 4px;
645
+ padding-top: 4px;
646
646
  }
647
647
 
648
648
  .e-ddl.e-lib.e-input-group:not(.e-float-input) .e-dropdownlist:not(.e-input) {
@@ -716,7 +716,7 @@
716
716
  }
717
717
 
718
718
  .e-ddl.e-popup .e-input-group {
719
- margin-top: 4px;
719
+ padding-top: 4px;
720
720
  }
721
721
 
722
722
  .e-ddl.e-lib.e-input-group:not(.e-float-input) .e-dropdownlist:not(.e-input) {
@@ -644,7 +644,7 @@
644
644
  }
645
645
 
646
646
  .e-ddl.e-popup .e-input-group {
647
- margin-top: 4px;
647
+ padding-top: 4px;
648
648
  }
649
649
 
650
650
  .e-ddl.e-lib.e-input-group:not(.e-float-input) .e-dropdownlist:not(.e-input) {
@@ -718,7 +718,7 @@
718
718
  }
719
719
 
720
720
  .e-ddl.e-popup .e-input-group {
721
- margin-top: 4px;
721
+ padding-top: 4px;
722
722
  }
723
723
 
724
724
  .e-ddl.e-lib.e-input-group:not(.e-float-input) .e-dropdownlist:not(.e-input) {