@syncfusion/ej2-dropdowns 26.2.10 → 26.2.11

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 : 26.2.10
3
+ * version : 26.2.11
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@26.2.9",
3
+ "_id": "@syncfusion/ej2-dropdowns@26.2.10",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-FmGQY901PecxDoSQU29n/Xg66dFNx1+X63xqrb+d1I+vMbZi/71gaqEOg+r1KEBNqZMOC5SiB/90NKPLjXpCgQ==",
5
+ "_integrity": "sha512-14jiYqzl2M0NG+afPYF4mhXof66StAa1zjidN3QWBbba2fnDyolDAgdNe7B5W2I+dEcMLcnWvlcmQCljPIWz9A==",
6
6
  "_location": "/@syncfusion/ej2-dropdowns",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -35,8 +35,8 @@
35
35
  "/@syncfusion/ej2-spreadsheet",
36
36
  "/@syncfusion/ej2-vue-dropdowns"
37
37
  ],
38
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-26.2.9.tgz",
39
- "_shasum": "ca85eded8151858bb317bca8a9560ec4acf2bafd",
38
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-26.2.10.tgz",
39
+ "_shasum": "97b5397734005a6a40c4c702f609f48dc17c52f2",
40
40
  "_spec": "@syncfusion/ej2-dropdowns@*",
41
41
  "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
42
42
  "author": {
@@ -46,11 +46,11 @@
46
46
  "dependencies": {
47
47
  "@syncfusion/ej2-base": "~26.2.10",
48
48
  "@syncfusion/ej2-data": "~26.2.10",
49
- "@syncfusion/ej2-inputs": "~26.2.10",
50
- "@syncfusion/ej2-lists": "~26.2.10",
51
- "@syncfusion/ej2-navigations": "~26.2.10",
49
+ "@syncfusion/ej2-inputs": "~26.2.11",
50
+ "@syncfusion/ej2-lists": "~26.2.11",
51
+ "@syncfusion/ej2-navigations": "~26.2.11",
52
52
  "@syncfusion/ej2-notifications": "~26.2.10",
53
- "@syncfusion/ej2-popups": "~26.2.10"
53
+ "@syncfusion/ej2-popups": "~26.2.11"
54
54
  },
55
55
  "deprecated": false,
56
56
  "description": "Essential JS 2 DropDown Components",
@@ -75,7 +75,7 @@
75
75
  "module": "./index.js",
76
76
  "name": "@syncfusion/ej2-dropdowns",
77
77
  "typings": "index.d.ts",
78
- "version": "26.2.10",
78
+ "version": "26.2.11",
79
79
  "sideEffects": false,
80
80
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
81
81
  }
@@ -1474,10 +1474,10 @@ var DropDownTree = /** @class */ (function (_super) {
1474
1474
  }
1475
1475
  else {
1476
1476
  if (this.showCheckBox) {
1477
- var difference = this.value.filter(function (e) {
1477
+ var difference = this.value.length !== this.treeObj.checkedNodes.length || this.value.filter(function (e) {
1478
1478
  return _this.treeObj.checkedNodes.indexOf(e) === -1;
1479
- });
1480
- if (difference.length > 0 || this.treeSettings.autoCheck) {
1479
+ }).length > 0;
1480
+ if (difference || this.treeSettings.autoCheck) {
1481
1481
  this.treeObj.checkedNodes = this.value.slice();
1482
1482
  this.treeObj.dataBind();
1483
1483
  this.setMultiSelect();
@@ -1284,7 +1284,13 @@ var Mention = /** @class */ (function (_super) {
1284
1284
  range.insertNode(frag);
1285
1285
  if (lastNode) {
1286
1286
  range = range.cloneRange();
1287
- range.setStartAfter(lastNode);
1287
+ if (this.isRTE) {
1288
+ range.setStart(lastNode, 0);
1289
+ range.setEnd(lastNode, lastNode.textContent.length);
1290
+ }
1291
+ else {
1292
+ range.setStartAfter(lastNode);
1293
+ }
1288
1294
  range.collapse(true);
1289
1295
  selection.removeAllRanges();
1290
1296
  selection.addRange(range);
@@ -341,13 +341,21 @@ var CheckBoxSelection = /** @class */ (function () {
341
341
  CheckBoxSelection.prototype.setSearchBoxPosition = function () {
342
342
  var searchBoxHeight = this.filterInput.parentElement.getBoundingClientRect().height;
343
343
  var selectAllHeight = 0;
344
+ var footerHeight = 0;
345
+ var headerHeight = 0;
344
346
  if (this.checkAllParent) {
345
347
  selectAllHeight = this.checkAllParent.getBoundingClientRect().height;
346
348
  }
349
+ if (this.parent.header) {
350
+ headerHeight = this.parent.header.getBoundingClientRect().height;
351
+ }
352
+ if (this.parent.footer) {
353
+ footerHeight = this.parent.footer.getBoundingClientRect().height;
354
+ }
347
355
  this.parent.popupObj.element.style.maxHeight = '100%';
348
356
  this.parent.popupObj.element.style.width = '100%';
349
- this.parent.list.style.maxHeight = (window.innerHeight - searchBoxHeight - selectAllHeight) + 'px';
350
- this.parent.list.style.height = (window.innerHeight - searchBoxHeight - selectAllHeight) + 'px';
357
+ this.parent.list.style.maxHeight = (window.innerHeight - searchBoxHeight - selectAllHeight - headerHeight - footerHeight) + 'px';
358
+ this.parent.list.style.height = (window.innerHeight - searchBoxHeight - selectAllHeight - headerHeight - footerHeight) + 'px';
351
359
  var clearElement = this.filterInput.parentElement.querySelector('.' + clearIcon);
352
360
  detach(this.filterInput);
353
361
  clearElement.parentElement.insertBefore(this.filterInput, clearElement);
@@ -45,6 +45,7 @@ export interface IMulitSelect extends Component<HTMLElement> {
45
45
  headerTemplate?: string;
46
46
  mobFilter?: boolean;
47
47
  header?: HTMLElement;
48
+ footer?: HTMLElement;
48
49
  updateDelimView?(): void;
49
50
  updateValueState?(event?: KeyboardEventArgs | MouseEvent, newVal?: [string | number], oldVal?: [string | number]): void;
50
51
  tempValues?: [number | string];
@@ -3023,6 +3023,12 @@ var MultiSelect = /** @class */ (function (_super) {
3023
3023
  if (this.enabled && !this.readonly) {
3024
3024
  var temp = void 0;
3025
3025
  if (this.value && this.value.length > 0) {
3026
+ if (this.allowFiltering) {
3027
+ this.refreshListItems(null);
3028
+ if (this.mode === 'CheckBox' && this.targetInputElement) {
3029
+ this.targetInputElement.value = '';
3030
+ }
3031
+ }
3026
3032
  var liElement = this.list && this.list.querySelectorAll('li.e-list-item');
3027
3033
  if (liElement && liElement.length > 0) {
3028
3034
  this.selectAllItems(false, e);
@@ -3040,6 +3046,11 @@ var MultiSelect = /** @class */ (function (_super) {
3040
3046
  this.clearAllCallback(e);
3041
3047
  }
3042
3048
  this.checkAndResetCache();
3049
+ Input.createSpanElement(this.overAllWrapper, this.createElement);
3050
+ this.calculateWidth();
3051
+ if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
3052
+ this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
3053
+ }
3043
3054
  if (this.enableVirtualization) {
3044
3055
  this.updateInitialData();
3045
3056
  if (this.chipCollectionWrapper) {
@@ -3108,11 +3119,13 @@ var MultiSelect = /** @class */ (function (_super) {
3108
3119
  }
3109
3120
  };
3110
3121
  MultiSelect.prototype.resetValueHandler = function (e) {
3111
- var formElement = closest(this.inputElement, 'form');
3112
- if (formElement && e.target === formElement) {
3113
- var textVal = (this.element.tagName === this.getNgDirective()) ?
3114
- null : this.element.getAttribute('data-initial-value');
3115
- this.text = textVal;
3122
+ if (!isNullOrUndefined(this.inputElement)) {
3123
+ var formElement = closest(this.inputElement, 'form');
3124
+ if (formElement && e.target === formElement) {
3125
+ var textVal = (this.element.tagName === this.getNgDirective()) ?
3126
+ null : this.element.getAttribute('data-initial-value');
3127
+ this.text = textVal;
3128
+ }
3116
3129
  }
3117
3130
  };
3118
3131
  MultiSelect.prototype.wireEvent = function () {
@@ -1552,6 +1552,11 @@ ejs-dropdownlist {
1552
1552
  padding: 0;
1553
1553
  }
1554
1554
 
1555
+ .e-multiselect.e-input-group .e-multi-select-wrapper .e-multiselect-box input[type=text],
1556
+ .e-multiselect.e-input-group.e-input-focus .e-multi-select-wrapper .e-searcher:not(.e-zero-size) input[type=text] {
1557
+ padding: 0;
1558
+ }
1559
+
1555
1560
  .e-multiselect.e-input-group .e-ddl-icon::before {
1556
1561
  content: "\e969";
1557
1562
  font-family: "e-icons";
@@ -1600,6 +1600,11 @@ ejs-dropdownlist {
1600
1600
  padding: 0;
1601
1601
  }
1602
1602
 
1603
+ .e-multiselect.e-input-group .e-multi-select-wrapper .e-multiselect-box input[type=text],
1604
+ .e-multiselect.e-input-group.e-input-focus .e-multi-select-wrapper .e-searcher:not(.e-zero-size) input[type=text] {
1605
+ padding: 0;
1606
+ }
1607
+
1603
1608
  .e-multiselect.e-input-group .e-ddl-icon::before {
1604
1609
  content: "\e969";
1605
1610
  font-family: "e-icons";
@@ -2488,7 +2493,7 @@ ejs-dropdownlist {
2488
2493
  height: 28px;
2489
2494
  min-height: 28px;
2490
2495
  outline: none;
2491
- padding: 0;
2496
+ padding: 4px 0 4px 0;
2492
2497
  text-indent: 0;
2493
2498
  }
2494
2499
 
@@ -238,4 +238,9 @@ $filled-multiselect-chip-hover-bg-color: $grey-700 !default;
238
238
  .e-small.e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type = 'text'] {
239
239
  padding: 0;
240
240
  }
241
+
242
+ .e-multiselect.e-input-group .e-multi-select-wrapper .e-multiselect-box input[type = 'text'],
243
+ .e-multiselect.e-input-group.e-input-focus .e-multi-select-wrapper .e-searcher:not(.e-zero-size) input[type = 'text'] {
244
+ padding: 0;
245
+ }
241
246
  }
@@ -88,7 +88,7 @@ $ddl-sel-chip-close-mobile-left: 12px !default;
88
88
  $ddl-chip-sel-mobile-close-height: 40px !default;
89
89
  $ddl-chip-sel-mobile-close-margin: 0 0 0 0 !default;
90
90
  $ddl-input-text-indent: 0 !default;
91
- $ddl-input-placeholder-padding: 0 !default;
91
+ $ddl-input-placeholder-padding: 4px 0 4px 0 !default;
92
92
  $ddl-rtl-chip-sel-close-left: -12px !default;
93
93
  $ddl-popup-active-focus-bg-color: $grey-300 !default;
94
94
  $ddl-popup-active-focus-font-color: $accent !default;
@@ -231,4 +231,9 @@ $filled-multiselect-chip-hover-bg-color: darken($grey-300, 7%) !default;
231
231
  .e-small.e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type = 'text'] {
232
232
  padding: 0;
233
233
  }
234
+
235
+ .e-multiselect.e-input-group .e-multi-select-wrapper .e-multiselect-box input[type = 'text'],
236
+ .e-multiselect.e-input-group.e-input-focus .e-multi-select-wrapper .e-searcher:not(.e-zero-size) input[type = 'text'] {
237
+ padding: 0;
238
+ }
234
239
  }
@@ -75,6 +75,11 @@
75
75
  padding: 0;
76
76
  }
77
77
 
78
+ .e-multiselect.e-input-group .e-multi-select-wrapper .e-multiselect-box input[type=text],
79
+ .e-multiselect.e-input-group.e-input-focus .e-multi-select-wrapper .e-searcher:not(.e-zero-size) input[type=text] {
80
+ padding: 0;
81
+ }
82
+
78
83
  .e-multiselect.e-input-group .e-ddl-icon::before {
79
84
  content: "\e969";
80
85
  font-family: "e-icons";
@@ -95,6 +95,11 @@
95
95
  padding: 0;
96
96
  }
97
97
 
98
+ .e-multiselect.e-input-group .e-multi-select-wrapper .e-multiselect-box input[type=text],
99
+ .e-multiselect.e-input-group.e-input-focus .e-multi-select-wrapper .e-searcher:not(.e-zero-size) input[type=text] {
100
+ padding: 0;
101
+ }
102
+
98
103
  .e-multiselect.e-input-group .e-ddl-icon::before {
99
104
  content: "\e969";
100
105
  font-family: "e-icons";
@@ -983,7 +988,7 @@
983
988
  height: 28px;
984
989
  min-height: 28px;
985
990
  outline: none;
986
- padding: 0;
991
+ padding: 4px 0 4px 0;
987
992
  text-indent: 0;
988
993
  }
989
994