@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.
- package/dist/ej2-dropdowns.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +18 -9
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +18 -9
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +5 -5
- package/src/combo-box/combo-box.js +6 -1
- package/src/drop-down-list/drop-down-list.js +4 -6
- package/src/mention/mention.js +8 -2
|
@@ -5701,8 +5701,8 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5701
5701
|
this.removeFocus();
|
|
5702
5702
|
if (this.allowFiltering && this.actionCompleteData && this.actionCompleteData.ulElement &&
|
|
5703
5703
|
this.dataSource instanceof DataManager) {
|
|
5704
|
-
var focus_1 = this.actionCompleteData.ulElement.
|
|
5705
|
-
if (focus_1) {
|
|
5704
|
+
var focus_1 = this.actionCompleteData.ulElement.querySelectorAll('.' + dropDownListClasses.focus);
|
|
5705
|
+
if (focus_1 && focus_1.length) {
|
|
5706
5706
|
removeClass(focus_1, dropDownListClasses.focus);
|
|
5707
5707
|
}
|
|
5708
5708
|
}
|
|
@@ -5898,7 +5898,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5898
5898
|
setTimeout(function () {
|
|
5899
5899
|
if (_this.value || _this.list.querySelector('.e-active')) {
|
|
5900
5900
|
_this.updateSelectionList();
|
|
5901
|
-
if (_this.
|
|
5901
|
+
if (_this.viewPortInfo && _this.viewPortInfo.offsets.top) {
|
|
5902
5902
|
_this.list.scrollTop = _this.viewPortInfo.offsets.top;
|
|
5903
5903
|
}
|
|
5904
5904
|
else {
|
|
@@ -6481,9 +6481,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
6481
6481
|
}
|
|
6482
6482
|
var dataSourceCount;
|
|
6483
6483
|
if (this.dataSource instanceof DataManager) {
|
|
6484
|
-
|
|
6485
|
-
dataSourceCount = this.virtualGroupDataSource && this.virtualGroupDataSource.length ?
|
|
6486
|
-
this.virtualGroupDataSource.length : 0;
|
|
6484
|
+
dataSourceCount = this.remoteDataCount;
|
|
6487
6485
|
}
|
|
6488
6486
|
else {
|
|
6489
6487
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -11496,6 +11494,11 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
11496
11494
|
_this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
|
|
11497
11495
|
}
|
|
11498
11496
|
}
|
|
11497
|
+
else if (_this.allowCustom) {
|
|
11498
|
+
_this.valueMuteChange(_this.value);
|
|
11499
|
+
_this.setHiddenValue();
|
|
11500
|
+
Input.setValue(_this.text, _this.inputElement, _this.floatLabelType, _this.showClearButton);
|
|
11501
|
+
}
|
|
11499
11502
|
else {
|
|
11500
11503
|
_this.valueMuteChange(null);
|
|
11501
11504
|
}
|
|
@@ -11524,7 +11527,7 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
11524
11527
|
this.setSelection(li, null);
|
|
11525
11528
|
}
|
|
11526
11529
|
else if ((!this.enableVirtualization && this.allowCustom) ||
|
|
11527
|
-
(this.allowCustom && this.enableVirtualization && !doesItemExist)) {
|
|
11530
|
+
(this.allowCustom && this.enableVirtualization && !doesItemExist && !(this.dataSource instanceof DataManager))) {
|
|
11528
11531
|
this.valueMuteChange(this.value);
|
|
11529
11532
|
}
|
|
11530
11533
|
else if (!this.enableVirtualization || (this.enableVirtualization && !(this.dataSource instanceof DataManager)
|
|
@@ -23439,7 +23442,9 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
23439
23442
|
}
|
|
23440
23443
|
if (this.isContentEditable(this.inputElement)) {
|
|
23441
23444
|
this.range = this.getCurrentRange();
|
|
23442
|
-
|
|
23445
|
+
if (this.range) {
|
|
23446
|
+
rangetextContent = this.range.startContainer.textContent.split('');
|
|
23447
|
+
}
|
|
23443
23448
|
}
|
|
23444
23449
|
var currentRange = this.getTextRange();
|
|
23445
23450
|
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
@@ -23554,7 +23559,8 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
23554
23559
|
return isMatched;
|
|
23555
23560
|
};
|
|
23556
23561
|
Mention.prototype.getCurrentRange = function () {
|
|
23557
|
-
this.range = this.inputElement.ownerDocument.getSelection().
|
|
23562
|
+
this.range = this.inputElement.ownerDocument.getSelection().rangeCount > 0 &&
|
|
23563
|
+
this.inputElement.ownerDocument.getSelection().getRangeAt(0);
|
|
23558
23564
|
return this.range;
|
|
23559
23565
|
};
|
|
23560
23566
|
Mention.prototype.performFiltering = function (e) {
|
|
@@ -24449,6 +24455,9 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
24449
24455
|
if (Browser.isAndroid) {
|
|
24450
24456
|
return '<span contenteditable="true" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '​');
|
|
24451
24457
|
}
|
|
24458
|
+
else if (Browser.info.name === 'mozilla') {
|
|
24459
|
+
return '<span><span contenteditable="false" class="e-mention-chip">' + showChar + value + '</span></span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '​');
|
|
24460
|
+
}
|
|
24452
24461
|
else {
|
|
24453
24462
|
return '<span contenteditable="false" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '​');
|
|
24454
24463
|
}
|