@syncfusion/ej2-dropdowns 27.2.2 → 27.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 : 27.2.2
3
+ * version : 27.2.3
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@27.1.58",
3
+ "_id": "@syncfusion/ej2-dropdowns@27.2.2",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-9SUhKFl1urV+lHSkG2uYcJeTXRJN2aUcGoaJxcCovtaLw3H2SA5l4x5tcPaEe2KzxrKMSXZlJF+RGNyV0H2BNw==",
5
+ "_integrity": "sha512-KEah4nyZTCzRus/gHRWw7zF9TEAIT9SnG9x4XIP2E1cfFQDN21nO9HCfxqUMu3LNPebyoEe0zwu6bPJWfCftiA==",
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-27.1.58.tgz",
40
- "_shasum": "3374dba3a9328883a060485ac5831397bacc1005",
39
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-27.2.2.tgz",
40
+ "_shasum": "592523614fba82ab61656defe92cb443f39de771",
41
41
  "_spec": "@syncfusion/ej2-dropdowns@*",
42
42
  "_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
43
43
  "author": {
@@ -48,8 +48,8 @@
48
48
  "@syncfusion/ej2-base": "~27.2.2",
49
49
  "@syncfusion/ej2-data": "~27.2.2",
50
50
  "@syncfusion/ej2-inputs": "~27.2.2",
51
- "@syncfusion/ej2-lists": "~27.2.2",
52
- "@syncfusion/ej2-navigations": "~27.2.2",
51
+ "@syncfusion/ej2-lists": "~27.2.3",
52
+ "@syncfusion/ej2-navigations": "~27.2.3",
53
53
  "@syncfusion/ej2-notifications": "~27.2.2",
54
54
  "@syncfusion/ej2-popups": "~27.2.2"
55
55
  },
@@ -76,7 +76,7 @@
76
76
  "module": "./index.js",
77
77
  "name": "@syncfusion/ej2-dropdowns",
78
78
  "typings": "index.d.ts",
79
- "version": "27.2.2",
79
+ "version": "27.2.3",
80
80
  "sideEffects": false,
81
81
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
82
82
  }
@@ -600,9 +600,11 @@ var DropDownBase = /** @class */ (function (_super) {
600
600
  };
601
601
  DropDownBase.prototype.renderItemsBySelect = function () {
602
602
  var element = this.element;
603
- var fields = { value: 'value', text: 'text' };
604
- var jsonElement = [];
605
603
  var group = element.querySelectorAll('select>optgroup');
604
+ var fields;
605
+ var isSelectGroupCheck = this.getModuleName() === 'multiselect' && this.isGroupChecking && group.length > 0;
606
+ fields = isSelectGroupCheck ? { value: 'value', text: 'text', groupBy: 'categeory' } : fields = { value: 'value', text: 'text' };
607
+ var jsonElement = [];
606
608
  var option = element.querySelectorAll('select>option');
607
609
  this.getJSONfromOption(jsonElement, option, fields);
608
610
  if (group.length) {
@@ -612,12 +614,17 @@ var DropDownBase = /** @class */ (function (_super) {
612
614
  optionGroup[fields.text] = item.label;
613
615
  optionGroup.isHeader = true;
614
616
  var child = item.querySelectorAll('option');
615
- jsonElement.push(optionGroup);
616
- this.getJSONfromOption(jsonElement, child, fields);
617
+ if (isSelectGroupCheck) {
618
+ this.getJSONfromOption(jsonElement, child, fields, item.label);
619
+ }
620
+ else {
621
+ jsonElement.push(optionGroup);
622
+ this.getJSONfromOption(jsonElement, child, fields);
623
+ }
617
624
  }
618
625
  element.querySelectorAll('select>option');
619
626
  }
620
- this.updateFields(fields.text, fields.value, this.fields.groupBy, this.fields.htmlAttributes, this.fields.iconCss, this.fields.disabled);
627
+ this.updateFields(fields.text, fields.value, isSelectGroupCheck ? fields.groupBy : this.fields.groupBy, this.fields.htmlAttributes, this.fields.iconCss, this.fields.disabled);
621
628
  this.resetList(jsonElement, fields);
622
629
  };
623
630
  DropDownBase.prototype.updateFields = function (text, value, groupBy, htmlAttributes, iconCss, disabled) {
@@ -633,13 +640,17 @@ var DropDownBase = /** @class */ (function (_super) {
633
640
  };
634
641
  this.setProperties(field, true);
635
642
  };
636
- DropDownBase.prototype.getJSONfromOption = function (items, options, fields) {
643
+ DropDownBase.prototype.getJSONfromOption = function (items, options, fields, category) {
644
+ if (category === void 0) { category = null; }
637
645
  for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
638
646
  var option = options_1[_i];
639
647
  var json = {};
640
648
  json[fields.text] = option.innerText;
641
649
  json[fields.value] = !isNullOrUndefined(option.getAttribute(fields.value)) ?
642
650
  option.getAttribute(fields.value) : option.innerText;
651
+ if (!isNullOrUndefined(category)) {
652
+ json[fields.groupBy] = category;
653
+ }
643
654
  items.push(json);
644
655
  }
645
656
  };
@@ -1095,7 +1106,12 @@ var DropDownBase = /** @class */ (function (_super) {
1095
1106
  if (this.sortOrder !== 'None') {
1096
1107
  dataSource = this.getSortedDataSource(dataSource);
1097
1108
  }
1098
- dataSource = ListBase.groupDataSource(dataSource, fields.properties, this.sortOrder);
1109
+ if (this.element.querySelector('optgroup') && this.isGroupChecking && this.getModuleName() === 'multiselect') {
1110
+ dataSource = ListBase.groupDataSource(dataSource, fields, this.sortOrder);
1111
+ }
1112
+ else {
1113
+ dataSource = ListBase.groupDataSource(dataSource, fields.properties, this.sortOrder);
1114
+ }
1099
1115
  }
1100
1116
  addClass([this.list], dropDownBaseClasses.grouping);
1101
1117
  }
@@ -1686,11 +1686,13 @@ var ListBox = /** @class */ (function (_super) {
1686
1686
  if (fListBox.value.length === 1 && fListBox.getSelectedItems().length) {
1687
1687
  fListBox.value[0] = fListBox.getFormattedValue(fListBox.getSelectedItems()[0].getAttribute('data-value'));
1688
1688
  }
1689
- if (fListBox.liCollections.length === fListBox.ulElement.querySelectorAll('.e-disabled').length) {
1689
+ if (fListBox.liCollections.length === fListBox.ulElement.querySelectorAll('.e-disabled').length && this.toolbarAction) {
1690
1690
  var wrap = this.list.parentElement.getElementsByClassName('e-listbox-tool')[0];
1691
1691
  var toolbarAction = this.toolbarAction === 'moveFrom' ? 'moveAllFrom' : 'moveAllTo';
1692
- var btn = wrap.querySelector('[data-value="' + toolbarAction + '"]');
1693
- btn.disabled = true;
1692
+ if (wrap) {
1693
+ var btn = wrap.querySelector('[data-value="' + toolbarAction + '"]');
1694
+ btn.disabled = true;
1695
+ }
1694
1696
  }
1695
1697
  };
1696
1698
  ListBox.prototype.selectNextList = function (elems, dataLiIdx, dataIdx, inst) {
@@ -1055,6 +1055,10 @@ ejs-dropdownlist {
1055
1055
  border-left-width: 0;
1056
1056
  }
1057
1057
 
1058
+ .e-float-input.e-control-wrapper.e-multiselect input[readonly] {
1059
+ background: transparent;
1060
+ }
1061
+
1058
1062
  .e-multiselect.e-input-group .e-ddl-icon::before {
1059
1063
  content: "\e729";
1060
1064
  font-family: "e-icons";
@@ -1364,6 +1364,10 @@ ejs-dropdownlist {
1364
1364
  border-left-width: 0;
1365
1365
  }
1366
1366
 
1367
+ .e-float-input.e-control-wrapper.e-multiselect input[readonly] {
1368
+ background: transparent;
1369
+ }
1370
+
1367
1371
  .e-multiselect.e-input-group .e-ddl-icon::before {
1368
1372
  content: "\e729";
1369
1373
  font-family: "e-icons";
@@ -1055,6 +1055,10 @@ ejs-dropdownlist {
1055
1055
  border-left-width: 0;
1056
1056
  }
1057
1057
 
1058
+ .e-float-input.e-control-wrapper.e-multiselect input[readonly] {
1059
+ background: transparent;
1060
+ }
1061
+
1058
1062
  .e-multiselect.e-input-group .e-ddl-icon::before {
1059
1063
  content: "\e729";
1060
1064
  font-family: "e-icons";
@@ -1048,6 +1048,10 @@ ejs-dropdownlist {
1048
1048
  border-left-width: 0;
1049
1049
  }
1050
1050
 
1051
+ .e-float-input.e-control-wrapper.e-multiselect input[readonly] {
1052
+ background: transparent;
1053
+ }
1054
+
1051
1055
  .e-multiselect.e-input-group .e-ddl-icon::before {
1052
1056
  content: "\e729";
1053
1057
  font-family: "e-icons";
@@ -1299,6 +1299,10 @@ ejs-dropdownlist {
1299
1299
  border-left-width: 0;
1300
1300
  }
1301
1301
 
1302
+ .e-float-input.e-control-wrapper.e-multiselect input[readonly] {
1303
+ background: transparent;
1304
+ }
1305
+
1302
1306
  .e-multiselect.e-input-group .e-ddl-icon::before {
1303
1307
  content: "\e729";
1304
1308
  font-family: "e-icons";
@@ -1364,6 +1364,10 @@ ejs-dropdownlist {
1364
1364
  border-left-width: 0;
1365
1365
  }
1366
1366
 
1367
+ .e-float-input.e-control-wrapper.e-multiselect input[readonly] {
1368
+ background: transparent;
1369
+ }
1370
+
1367
1371
  .e-multiselect.e-input-group .e-ddl-icon::before {
1368
1372
  content: "\e729";
1369
1373
  font-family: "e-icons";
@@ -222,4 +222,8 @@ $ddl-close-down-icon-left: 35px !default;
222
222
  .e-multiselect .e-input-group-icon.e-ddl-icon {
223
223
  border-left-width: 0;
224
224
  }
225
+
226
+ .e-float-input#{&}.e-control-wrapper.e-multiselect input[readonly] {
227
+ background: transparent;
228
+ }
225
229
  }
@@ -222,4 +222,8 @@ $ddl-close-down-icon-left: 35px !default;
222
222
  .e-multiselect .e-input-group-icon.e-ddl-icon {
223
223
  border-left-width: 0;
224
224
  }
225
+
226
+ .e-float-input#{&}.e-control-wrapper.e-multiselect input[readonly] {
227
+ background: transparent;
228
+ }
225
229
  }
@@ -92,6 +92,10 @@
92
92
  border-left-width: 0;
93
93
  }
94
94
 
95
+ .e-float-input.e-control-wrapper.e-multiselect input[readonly] {
96
+ background: transparent;
97
+ }
98
+
95
99
  .e-multiselect.e-input-group .e-ddl-icon::before {
96
100
  content: "\e729";
97
101
  font-family: "e-icons";
@@ -96,6 +96,10 @@
96
96
  border-left-width: 0;
97
97
  }
98
98
 
99
+ .e-float-input.e-control-wrapper.e-multiselect input[readonly] {
100
+ background: transparent;
101
+ }
102
+
99
103
  .e-multiselect.e-input-group .e-ddl-icon::before {
100
104
  content: "\e729";
101
105
  font-family: "e-icons";
@@ -92,6 +92,10 @@
92
92
  border-left-width: 0;
93
93
  }
94
94
 
95
+ .e-float-input.e-control-wrapper.e-multiselect input[readonly] {
96
+ background: transparent;
97
+ }
98
+
95
99
  .e-multiselect.e-input-group .e-ddl-icon::before {
96
100
  content: "\e729";
97
101
  font-family: "e-icons";