@syncfusion/ej2-dropdowns 24.1.46 → 24.1.47

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 : 24.1.46
3
+ * version : 24.1.47
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@24.1.45",
3
+ "_id": "@syncfusion/ej2-dropdowns@24.1.46",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-9Tee0dj1aMn5axMGjUn7hjYgWlXaj+QYybJ8fQGf1xgEos5c40ydWNn26Mx7aiG4ZasQTGTffCTvCYOF6ES9OA==",
5
+ "_integrity": "sha512-6ttJwAJ0s01v8PmOfQxYKsoFj/rRd0vyw/NFV3giPq6tMJeNAPBM3CT7KvSrV/GnEf6hrfcqtr1DWisD3wNB5g==",
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-24.1.45.tgz",
38
- "_shasum": "793b012671db03deaa00d976f86dde916be7c315",
37
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-24.1.46.tgz",
38
+ "_shasum": "77730cdc21251e20eb60d0be19bc556ff7aa89d4",
39
39
  "_spec": "@syncfusion/ej2-dropdowns@*",
40
40
  "_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
41
41
  "author": {
@@ -45,7 +45,7 @@
45
45
  "dependencies": {
46
46
  "@syncfusion/ej2-base": "~24.1.46",
47
47
  "@syncfusion/ej2-data": "~24.1.41",
48
- "@syncfusion/ej2-inputs": "~24.1.45",
48
+ "@syncfusion/ej2-inputs": "~24.1.47",
49
49
  "@syncfusion/ej2-lists": "~24.1.46",
50
50
  "@syncfusion/ej2-navigations": "~24.1.46",
51
51
  "@syncfusion/ej2-notifications": "~24.1.41",
@@ -74,7 +74,7 @@
74
74
  "module": "./index.js",
75
75
  "name": "@syncfusion/ej2-dropdowns",
76
76
  "typings": "index.d.ts",
77
- "version": "24.1.46",
77
+ "version": "24.1.47",
78
78
  "sideEffects": false,
79
79
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
80
80
  }
@@ -800,24 +800,27 @@ var DropDownBase = /** @class */ (function (_super) {
800
800
  * @returns {HTMLElement} Return the ul li list items.
801
801
  */
802
802
  DropDownBase.prototype.createListItems = function (dataSource, fields) {
803
- if (dataSource && fields.groupBy || this.element.querySelector('optgroup')) {
804
- if (fields.groupBy) {
805
- if (this.sortOrder !== 'None') {
806
- dataSource = this.getSortedDataSource(dataSource);
803
+ if (dataSource) {
804
+ if (fields.groupBy || this.element.querySelector('optgroup')) {
805
+ if (fields.groupBy) {
806
+ if (this.sortOrder !== 'None') {
807
+ dataSource = this.getSortedDataSource(dataSource);
808
+ }
809
+ dataSource = ListBase.groupDataSource(dataSource, fields.properties, this.sortOrder);
807
810
  }
808
- dataSource = ListBase.groupDataSource(dataSource, fields.properties, this.sortOrder);
811
+ addClass([this.list], dropDownBaseClasses.grouping);
809
812
  }
810
- addClass([this.list], dropDownBaseClasses.grouping);
811
- }
812
- else {
813
- dataSource = this.getSortedDataSource(dataSource);
813
+ else {
814
+ dataSource = this.getSortedDataSource(dataSource);
815
+ }
816
+ var options = this.listOption(dataSource, fields);
817
+ var spliceData = (dataSource.length > 100) ?
818
+ new DataManager(dataSource).executeLocal(new Query().take(100))
819
+ : dataSource;
820
+ this.sortedData = dataSource;
821
+ return ListBase.createList(this.createElement, (this.getModuleName() === 'autocomplete') ? spliceData : dataSource, options, true, this);
814
822
  }
815
- var options = this.listOption(dataSource, fields);
816
- var spliceData = (dataSource.length > 100) ?
817
- new DataManager(dataSource).executeLocal(new Query().take(100))
818
- : dataSource;
819
- this.sortedData = dataSource;
820
- return ListBase.createList(this.createElement, (this.getModuleName() === 'autocomplete') ? spliceData : dataSource, options, true, this);
823
+ return null;
821
824
  };
822
825
  DropDownBase.prototype.listOption = function (dataSource, fields) {
823
826
  var iconCss = isNullOrUndefined(fields.iconCss) ? false : true;
@@ -905,7 +908,8 @@ var DropDownBase = /** @class */ (function (_super) {
905
908
  };
906
909
  DropDownBase.prototype.updateGroupFixedHeader = function (element, target) {
907
910
  this.fixedHeaderElement.innerHTML = element.innerHTML;
908
- this.fixedHeaderElement.style.top = target.scrollTop + 'px';
911
+ this.fixedHeaderElement.style.position = 'fixed';
912
+ this.fixedHeaderElement.style.top = this.list.parentElement.offsetTop + this.list.offsetTop + 'px';
909
913
  this.fixedHeaderElement.style.display = 'block';
910
914
  };
911
915
  DropDownBase.prototype.getValidLi = function () {
@@ -1080,10 +1084,12 @@ var DropDownBase = /** @class */ (function (_super) {
1080
1084
  DropDownBase.prototype.getIndexByValueFilter = function (value) {
1081
1085
  var index;
1082
1086
  var listItems = this.renderItems(this.selectData, this.fields);
1083
- for (var i = 0; i < listItems.children.length; i++) {
1084
- if (!isNullOrUndefined(value) && listItems.children[i].getAttribute('data-value') === value.toString()) {
1085
- index = i;
1086
- break;
1087
+ if (listItems && listItems.children) {
1088
+ for (var i = 0; i < listItems.children.length; i++) {
1089
+ if (!isNullOrUndefined(value) && listItems.children[i].getAttribute('data-value') === value.toString()) {
1090
+ index = i;
1091
+ break;
1092
+ }
1087
1093
  }
1088
1094
  }
1089
1095
  return index;
@@ -378,6 +378,19 @@ var ListBox = /** @class */ (function (_super) {
378
378
  this.list.insertBefore(searchEle, this.list.firstElementChild);
379
379
  this.filterParent = this.list.getElementsByClassName('e-filter-parent')[0];
380
380
  this.filterWireEvents(searchEle);
381
+ var inputSearch = searchEle.querySelector('.e-input-filter');
382
+ if (inputSearch) {
383
+ inputSearch.addEventListener('focus', function () {
384
+ if (!searchEle.childNodes[0].classList.contains('e-input-focus')) {
385
+ searchEle.childNodes[0].classList.add('e-input-focus');
386
+ }
387
+ });
388
+ inputSearch.addEventListener('blur', function () {
389
+ if (searchEle.childNodes[0].classList.contains('e-input-focus')) {
390
+ searchEle.childNodes[0].classList.remove('e-input-focus');
391
+ }
392
+ });
393
+ }
381
394
  }
382
395
  this.initWrapper();
383
396
  this.setSelection();
@@ -1178,12 +1178,6 @@ var Mention = /** @class */ (function (_super) {
1178
1178
  if (this.isPopupOpen) {
1179
1179
  this.hidePopup();
1180
1180
  }
1181
- //New event to update the RichTextEditor value, when a mention item is selected using mouse click action.
1182
- if (!isNullOrUndefined(e.pointerType) && e.pointerType === 'mouse') {
1183
- var event_1 = new CustomEvent('content-changed', { detail: { click: true } });
1184
- this.inputElement.dispatchEvent(event_1);
1185
- }
1186
- ;
1187
1181
  this.onChangeEvent(e);
1188
1182
  }
1189
1183
  else {
@@ -1229,6 +1223,12 @@ var Mention = /** @class */ (function (_super) {
1229
1223
  if (this.isPopupOpen) {
1230
1224
  this.hidePopup();
1231
1225
  }
1226
+ //New event to update the RichTextEditor value, when a mention item is selected using mouse click action.
1227
+ if (!isNullOrUndefined(e.pointerType) && e.pointerType === 'mouse') {
1228
+ var event_1 = new CustomEvent('content-changed', { detail: { click: true } });
1229
+ this.inputElement.dispatchEvent(event_1);
1230
+ }
1231
+ ;
1232
1232
  this.onChangeEvent(e);
1233
1233
  }
1234
1234
  };
@@ -327,7 +327,9 @@ var MultiSelect = /** @class */ (function (_super) {
327
327
  }
328
328
  if (activeElement && activeElement.item !== null) {
329
329
  this.addListFocus(activeElement.item);
330
- this.scrollBottom(activeElement.item, activeElement.index);
330
+ if (((this.allowCustomValue || this.allowFiltering) && this.isPopupOpen() && this.closePopupOnSelect) || this.closePopupOnSelect) {
331
+ this.scrollBottom(activeElement.item, activeElement.index);
332
+ }
331
333
  }
332
334
  };
333
335
  MultiSelect.prototype.getAriaAttributes = function () {