@syncfusion/ej2-dropdowns 31.1.17 → 31.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,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 31.1.17
3
+ * version : 31.1.20
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-dropdowns",
3
- "version": "31.1.17",
3
+ "version": "31.1.20",
4
4
  "description": "Essential JS 2 DropDown Components",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,13 +8,13 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-dropdowns.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~31.1.17",
11
+ "@syncfusion/ej2-base": "~31.1.20",
12
12
  "@syncfusion/ej2-data": "~31.1.17",
13
- "@syncfusion/ej2-inputs": "~31.1.17",
13
+ "@syncfusion/ej2-inputs": "~31.1.20",
14
14
  "@syncfusion/ej2-lists": "~31.1.17",
15
- "@syncfusion/ej2-navigations": "~31.1.17",
15
+ "@syncfusion/ej2-navigations": "~31.1.20",
16
16
  "@syncfusion/ej2-notifications": "~31.1.17",
17
- "@syncfusion/ej2-popups": "~31.1.17"
17
+ "@syncfusion/ej2-popups": "~31.1.20"
18
18
  },
19
19
  "devDependencies": {},
20
20
  "keywords": [
@@ -215,6 +215,11 @@ var ComboBox = /** @class */ (function (_super) {
215
215
  _this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
216
216
  }
217
217
  }
218
+ else if (_this.allowCustom) {
219
+ _this.valueMuteChange(_this.value);
220
+ _this.setHiddenValue();
221
+ Input.setValue(_this.text, _this.inputElement, _this.floatLabelType, _this.showClearButton);
222
+ }
218
223
  else {
219
224
  _this.valueMuteChange(null);
220
225
  }
@@ -243,7 +248,7 @@ var ComboBox = /** @class */ (function (_super) {
243
248
  this.setSelection(li, null);
244
249
  }
245
250
  else if ((!this.enableVirtualization && this.allowCustom) ||
246
- (this.allowCustom && this.enableVirtualization && !doesItemExist)) {
251
+ (this.allowCustom && this.enableVirtualization && !doesItemExist && !(this.dataSource instanceof DataManager))) {
247
252
  this.valueMuteChange(this.value);
248
253
  }
249
254
  else if (!this.enableVirtualization || (this.enableVirtualization && !(this.dataSource instanceof DataManager)
@@ -2575,8 +2575,8 @@ var DropDownList = /** @class */ (function (_super) {
2575
2575
  this.removeFocus();
2576
2576
  if (this.allowFiltering && this.actionCompleteData && this.actionCompleteData.ulElement &&
2577
2577
  this.dataSource instanceof DataManager) {
2578
- var focus_1 = this.actionCompleteData.ulElement.querySelector('.e-item-focus');
2579
- if (focus_1) {
2578
+ var focus_1 = this.actionCompleteData.ulElement.querySelectorAll('.' + dropDownListClasses.focus);
2579
+ if (focus_1 && focus_1.length) {
2580
2580
  removeClass(focus_1, dropDownListClasses.focus);
2581
2581
  }
2582
2582
  }
@@ -2772,7 +2772,7 @@ var DropDownList = /** @class */ (function (_super) {
2772
2772
  setTimeout(function () {
2773
2773
  if (_this.value || _this.list.querySelector('.e-active')) {
2774
2774
  _this.updateSelectionList();
2775
- if (_this.selectedValueInfo && _this.viewPortInfo && _this.viewPortInfo.offsets.top) {
2775
+ if (_this.viewPortInfo && _this.viewPortInfo.offsets.top) {
2776
2776
  _this.list.scrollTop = _this.viewPortInfo.offsets.top;
2777
2777
  }
2778
2778
  else {
@@ -3357,9 +3357,7 @@ var DropDownList = /** @class */ (function (_super) {
3357
3357
  }
3358
3358
  var dataSourceCount;
3359
3359
  if (this.dataSource instanceof DataManager) {
3360
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3361
- dataSourceCount = this.virtualGroupDataSource && this.virtualGroupDataSource.length ?
3362
- this.virtualGroupDataSource.length : 0;
3360
+ dataSourceCount = this.remoteDataCount;
3363
3361
  }
3364
3362
  else {
3365
3363
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -360,7 +360,9 @@ var Mention = /** @class */ (function (_super) {
360
360
  }
361
361
  if (this.isContentEditable(this.inputElement)) {
362
362
  this.range = this.getCurrentRange();
363
- rangetextContent = this.range.startContainer.textContent.split('');
363
+ if (this.range) {
364
+ rangetextContent = this.range.startContainer.textContent.split('');
365
+ }
364
366
  }
365
367
  var currentRange = this.getTextRange();
366
368
  // eslint-disable-next-line security/detect-non-literal-regexp
@@ -475,7 +477,8 @@ var Mention = /** @class */ (function (_super) {
475
477
  return isMatched;
476
478
  };
477
479
  Mention.prototype.getCurrentRange = function () {
478
- this.range = this.inputElement.ownerDocument.getSelection().getRangeAt(0);
480
+ this.range = this.inputElement.ownerDocument.getSelection().rangeCount > 0 &&
481
+ this.inputElement.ownerDocument.getSelection().getRangeAt(0);
479
482
  return this.range;
480
483
  };
481
484
  Mention.prototype.performFiltering = function (e) {
@@ -1370,6 +1373,9 @@ var Mention = /** @class */ (function (_super) {
1370
1373
  if (Browser.isAndroid) {
1371
1374
  return '<span contenteditable="true" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '&#8203;');
1372
1375
  }
1376
+ else if (Browser.info.name === 'mozilla') {
1377
+ return '<span>&#65279;<span contenteditable="false" class="e-mention-chip">' + showChar + value + '</span>&#65279;</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '&#8203;');
1378
+ }
1373
1379
  else {
1374
1380
  return '<span contenteditable="false" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '&#8203;');
1375
1381
  }