@syncfusion/ej2-dropdowns 24.2.7 → 24.2.9
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/CHANGELOG.md +16 -0
- 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 +112 -49
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +113 -49
- 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 +9 -9
- package/src/combo-box/combo-box-model.d.ts +1 -1
- package/src/combo-box/combo-box.js +29 -2
- package/src/drop-down-base/drop-down-base.d.ts +1 -0
- package/src/drop-down-base/drop-down-base.js +1 -1
- package/src/drop-down-list/drop-down-list.d.ts +0 -1
- package/src/drop-down-list/drop-down-list.js +33 -24
- package/src/mention/mention-model.d.ts +1 -1
- package/src/mention/mention.d.ts +1 -1
- package/src/mention/mention.js +52 -23
- package/styles/bootstrap-dark.css +1 -1
- package/styles/bootstrap.css +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/drop-down-list/_layout.scss +1 -1
- package/styles/drop-down-list/bootstrap-dark.css +1 -1
- package/styles/drop-down-list/bootstrap.css +1 -1
- package/styles/drop-down-list/bootstrap4.css +1 -1
- package/styles/drop-down-list/bootstrap5-dark.css +1 -1
- package/styles/drop-down-list/bootstrap5.css +1 -1
- package/styles/drop-down-list/fabric-dark.css +1 -1
- package/styles/drop-down-list/fabric.css +1 -1
- package/styles/drop-down-list/fluent-dark.css +1 -1
- package/styles/drop-down-list/fluent.css +1 -1
- package/styles/drop-down-list/highcontrast-light.css +1 -1
- package/styles/drop-down-list/highcontrast.css +1 -1
- package/styles/drop-down-list/material-dark.css +1 -1
- package/styles/drop-down-list/material.css +1 -1
- package/styles/drop-down-list/material3-dark.css +1 -1
- package/styles/drop-down-list/material3.css +1 -1
- package/styles/drop-down-list/tailwind-dark.css +1 -1
- package/styles/drop-down-list/tailwind.css +1 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/material.css +1 -1
- package/styles/material3-dark.css +1 -1
- package/styles/material3.css +1 -1
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind.css +1 -1
|
@@ -1152,7 +1152,7 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1152
1152
|
_this.trigger('actionComplete', e, function (e) {
|
|
1153
1153
|
if (!_this.virtualGroupDataSource && _this.isVirtualizationEnabled) {
|
|
1154
1154
|
_this.isRemoteDataUpdated = true;
|
|
1155
|
-
if ((_this.getModuleName() === 'combobox' && _this.isAllowFiltering && _this.isVirtualizationEnabled && e.result)) {
|
|
1155
|
+
if ((_this.getModuleName() === 'combobox' && !_this.initialRemoteRender && _this.isAllowFiltering && _this.isVirtualizationEnabled && e.result)) {
|
|
1156
1156
|
e.result = e.result.result;
|
|
1157
1157
|
}
|
|
1158
1158
|
if (e.result.length > 0) {
|
|
@@ -2367,7 +2367,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
2367
2367
|
this.isFilterFocus = false;
|
|
2368
2368
|
this.beforePopupOpen = false;
|
|
2369
2369
|
this.initial = true;
|
|
2370
|
-
this.
|
|
2370
|
+
this.initialRemoteRender = false;
|
|
2371
2371
|
this.isNotSearchList = false;
|
|
2372
2372
|
this.isTyped = false;
|
|
2373
2373
|
this.isSelected = false;
|
|
@@ -2658,7 +2658,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
2658
2658
|
this.viewPortInfo.endIndex = this.virtualItemEndIndex = this.itemCount;
|
|
2659
2659
|
this.renderList();
|
|
2660
2660
|
if (this.dataSource instanceof DataManager) {
|
|
2661
|
-
this.
|
|
2661
|
+
this.initialRemoteRender = true;
|
|
2662
2662
|
}
|
|
2663
2663
|
else {
|
|
2664
2664
|
this.updateValues();
|
|
@@ -3637,7 +3637,6 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3637
3637
|
}
|
|
3638
3638
|
};
|
|
3639
3639
|
DropDownList.prototype.setSelection = function (li, e) {
|
|
3640
|
-
var _this = this;
|
|
3641
3640
|
if (this.isValidLI(li) && (!li.classList.contains(dropDownBaseClasses.selected) || (this.isPopupOpen && this.isSelected
|
|
3642
3641
|
&& li.classList.contains(dropDownBaseClasses.selected)))) {
|
|
3643
3642
|
this.updateSelectedItem(li, e, false, true);
|
|
@@ -3646,17 +3645,15 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3646
3645
|
this.setSelectOptions(li, e);
|
|
3647
3646
|
if (this.enableVirtualization) {
|
|
3648
3647
|
var fields = (this.fields.value) ? this.fields.value : '';
|
|
3649
|
-
if (this.dataSource instanceof DataManager) {
|
|
3650
|
-
this.
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
_this.setProperties({ 'text': dataItem.text, 'value': dataItem.value });
|
|
3657
|
-
}
|
|
3648
|
+
if (this.dataSource instanceof DataManager && this.virtualGroupDataSource) {
|
|
3649
|
+
var getItem = new DataManager(this.virtualGroupDataSource).executeLocal(new Query().where(new Predicate(fields, 'equal', this.value)));
|
|
3650
|
+
if (getItem && getItem.length > 0) {
|
|
3651
|
+
this.itemData = getItem[0];
|
|
3652
|
+
var dataItem = this.getItemData();
|
|
3653
|
+
if ((this.value === dataItem.value && this.text !== dataItem.text) || (this.value !== dataItem.value && this.text === dataItem.text)) {
|
|
3654
|
+
this.setProperties({ 'text': dataItem.text, 'value': dataItem.value });
|
|
3658
3655
|
}
|
|
3659
|
-
}
|
|
3656
|
+
}
|
|
3660
3657
|
}
|
|
3661
3658
|
else {
|
|
3662
3659
|
var getItem = new DataManager(this.dataSource).executeLocal(new Query().where(new Predicate(fields, 'equal', this.value)));
|
|
@@ -4313,10 +4310,10 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
4313
4310
|
if (!isNullOrUndefined(ulElement)) {
|
|
4314
4311
|
attributes(ulElement, { 'id': this.element.id + '_options', 'role': 'listbox', 'aria-hidden': 'false', 'aria-label': 'listbox' });
|
|
4315
4312
|
}
|
|
4316
|
-
if (this.
|
|
4313
|
+
if (this.initialRemoteRender) {
|
|
4317
4314
|
this.initial = true;
|
|
4318
4315
|
this.activeIndex = this.index;
|
|
4319
|
-
this.
|
|
4316
|
+
this.initialRemoteRender = false;
|
|
4320
4317
|
if (this.value && this.dataSource instanceof DataManager) {
|
|
4321
4318
|
var checkField_1 = isNullOrUndefined(this.fields.value) ? this.fields.text : this.fields.value;
|
|
4322
4319
|
var fieldValue_1 = this.fields.value.split('.');
|
|
@@ -4324,6 +4321,12 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
4324
4321
|
return isNullOrUndefined(x[checkField_1]) && fieldValue_1.length > 1 ?
|
|
4325
4322
|
_this.checkFieldValue(x, fieldValue_1) === _this.value : x[checkField_1] === _this.value;
|
|
4326
4323
|
});
|
|
4324
|
+
if (this.enableVirtualization && this.virtualGroupDataSource) {
|
|
4325
|
+
checkVal = this.virtualGroupDataSource.some(function (x) {
|
|
4326
|
+
return isNullOrUndefined(x[checkField_1]) && fieldValue_1.length > 1 ?
|
|
4327
|
+
_this.checkFieldValue(x, fieldValue_1) === _this.value : x[checkField_1] === _this.value;
|
|
4328
|
+
});
|
|
4329
|
+
}
|
|
4327
4330
|
if (!checkVal) {
|
|
4328
4331
|
this.dataSource.executeQuery(this.getQuery(this.query).where(new Predicate(checkField_1, 'equal', this.value)))
|
|
4329
4332
|
.then(function (e) {
|
|
@@ -4640,6 +4643,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
4640
4643
|
_this.getFocusElement();
|
|
4641
4644
|
_this.checkCollision(popupEle);
|
|
4642
4645
|
if (Browser.isDevice) {
|
|
4646
|
+
if ((parseInt(_this.popupWidth.toString(), 10) > window.outerWidth) && !(_this.getModuleName() === 'dropdownlist' && _this.allowFiltering)) {
|
|
4647
|
+
_this.popupObj.element.classList.add('e-wide-popup');
|
|
4648
|
+
}
|
|
4643
4649
|
_this.popupObj.element.classList.add(dropDownListClasses.device);
|
|
4644
4650
|
if (_this.getModuleName() === 'dropdownlist' || (_this.getModuleName() === 'combobox'
|
|
4645
4651
|
&& !_this.allowFiltering && _this.isDropDownClick)) {
|
|
@@ -5154,8 +5160,8 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5154
5160
|
}
|
|
5155
5161
|
}
|
|
5156
5162
|
});
|
|
5157
|
-
if (
|
|
5158
|
-
this.
|
|
5163
|
+
if (Browser.isDevice && !eventArgs.cancel && this.popupObj.element.classList.contains('e-wide-popup')) {
|
|
5164
|
+
this.popupObj.element.classList.remove('e-wide-popup');
|
|
5159
5165
|
}
|
|
5160
5166
|
var dataSourceCount;
|
|
5161
5167
|
if (this.dataSource instanceof DataManager) {
|
|
@@ -5583,11 +5589,11 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5583
5589
|
}
|
|
5584
5590
|
if (!this_1.list) {
|
|
5585
5591
|
if (this_1.dataSource instanceof DataManager) {
|
|
5586
|
-
this_1.
|
|
5592
|
+
this_1.initialRemoteRender = true;
|
|
5587
5593
|
}
|
|
5588
5594
|
this_1.renderList();
|
|
5589
5595
|
}
|
|
5590
|
-
if (!this_1.
|
|
5596
|
+
if (!this_1.initialRemoteRender) {
|
|
5591
5597
|
var li = this_1.getElementByText(newProp.text);
|
|
5592
5598
|
if (!this_1.checkValidLi(li)) {
|
|
5593
5599
|
if (this_1.liCollections && this_1.liCollections.length === 100 &&
|
|
@@ -5636,11 +5642,11 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5636
5642
|
this_1.notify('beforeValueChange', { newProp: newProp }); // gird component value type change
|
|
5637
5643
|
if (!this_1.list) {
|
|
5638
5644
|
if (this_1.dataSource instanceof DataManager) {
|
|
5639
|
-
this_1.
|
|
5645
|
+
this_1.initialRemoteRender = true;
|
|
5640
5646
|
}
|
|
5641
5647
|
this_1.renderList();
|
|
5642
5648
|
}
|
|
5643
|
-
if (!this_1.
|
|
5649
|
+
if (!this_1.initialRemoteRender) {
|
|
5644
5650
|
var item = this_1.getElementByValue(newProp.value);
|
|
5645
5651
|
if (!this_1.checkValidLi(item)) {
|
|
5646
5652
|
if (this_1.liCollections && this_1.liCollections.length === 100 &&
|
|
@@ -5680,11 +5686,11 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5680
5686
|
}
|
|
5681
5687
|
if (!this_1.list) {
|
|
5682
5688
|
if (this_1.dataSource instanceof DataManager) {
|
|
5683
|
-
this_1.
|
|
5689
|
+
this_1.initialRemoteRender = true;
|
|
5684
5690
|
}
|
|
5685
5691
|
this_1.renderList();
|
|
5686
5692
|
}
|
|
5687
|
-
if (!this_1.
|
|
5693
|
+
if (!this_1.initialRemoteRender && this_1.liCollections) {
|
|
5688
5694
|
var element = this_1.liCollections[newProp.index];
|
|
5689
5695
|
if (!this_1.checkValidLi(element)) {
|
|
5690
5696
|
if (this_1.liCollections && this_1.liCollections.length === 100 &&
|
|
@@ -5851,6 +5857,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5851
5857
|
}
|
|
5852
5858
|
else if (isNullOrUndefined(this.list) || !isUndefined(this.list) && (this.list.classList.contains(dropDownBaseClasses.noData) ||
|
|
5853
5859
|
this.list.querySelectorAll('.' + dropDownBaseClasses.li).length <= 0)) {
|
|
5860
|
+
if (this.isReact && this.isFiltering() && this.itemTemplate != null) {
|
|
5861
|
+
this.isSecondClick = false;
|
|
5862
|
+
}
|
|
5854
5863
|
this.renderList(e);
|
|
5855
5864
|
}
|
|
5856
5865
|
if (this.enableVirtualization && this.listData && this.listData.length) {
|
|
@@ -6057,7 +6066,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
6057
6066
|
DropDownList.prototype.getItems = function () {
|
|
6058
6067
|
if (!this.list) {
|
|
6059
6068
|
if (this.dataSource instanceof DataManager) {
|
|
6060
|
-
this.
|
|
6069
|
+
this.initialRemoteRender = true;
|
|
6061
6070
|
}
|
|
6062
6071
|
this.renderList();
|
|
6063
6072
|
}
|
|
@@ -9599,13 +9608,39 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
9599
9608
|
ComboBox.prototype.updateValues = function () {
|
|
9600
9609
|
if (!isNullOrUndefined(this.value)) {
|
|
9601
9610
|
var li = this.getElementByValue(this.value);
|
|
9611
|
+
var isExistItem = !isNullOrUndefined(li) ? true : false;
|
|
9612
|
+
if (this.enableVirtualization && this.value) {
|
|
9613
|
+
var fields = (this.fields.value) ? this.fields.value : '';
|
|
9614
|
+
if (this.dataSource instanceof DataManager && this.virtualGroupDataSource) {
|
|
9615
|
+
var getItem = new DataManager(this.virtualGroupDataSource).executeLocal(new Query().where(new Predicate(fields, 'equal', this.value)));
|
|
9616
|
+
if (getItem && getItem.length > 0) {
|
|
9617
|
+
this.itemData = getItem[0];
|
|
9618
|
+
isExistItem = true;
|
|
9619
|
+
var dataItem = this.getItemData();
|
|
9620
|
+
if ((this.value === dataItem.value && this.text !== dataItem.text) || (this.value !== dataItem.value && this.text === dataItem.text)) {
|
|
9621
|
+
this.setProperties({ 'text': dataItem.text, 'value': dataItem.value });
|
|
9622
|
+
}
|
|
9623
|
+
}
|
|
9624
|
+
}
|
|
9625
|
+
else {
|
|
9626
|
+
var getItem = new DataManager(this.dataSource).executeLocal(new Query().where(new Predicate(fields, 'equal', this.value)));
|
|
9627
|
+
if (getItem && getItem.length > 0) {
|
|
9628
|
+
this.itemData = getItem[0];
|
|
9629
|
+
isExistItem = true;
|
|
9630
|
+
var dataItem = this.getItemData();
|
|
9631
|
+
if ((this.value === dataItem.value && this.text !== dataItem.text) || (this.value !== dataItem.value && this.text === dataItem.text)) {
|
|
9632
|
+
this.setProperties({ 'text': dataItem.text, 'value': dataItem.value });
|
|
9633
|
+
}
|
|
9634
|
+
}
|
|
9635
|
+
}
|
|
9636
|
+
}
|
|
9602
9637
|
if (li) {
|
|
9603
9638
|
this.setSelection(li, null);
|
|
9604
9639
|
}
|
|
9605
|
-
else if (this.allowCustom) {
|
|
9640
|
+
else if ((!this.enableVirtualization && this.allowCustom) || (this.allowCustom && this.enableVirtualization && !isExistItem)) {
|
|
9606
9641
|
this.valueMuteChange(this.value);
|
|
9607
9642
|
}
|
|
9608
|
-
else {
|
|
9643
|
+
else if (!this.enableVirtualization || (this.enableVirtualization && !isExistItem)) {
|
|
9609
9644
|
this.valueMuteChange(null);
|
|
9610
9645
|
}
|
|
9611
9646
|
}
|
|
@@ -18573,21 +18608,6 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
18573
18608
|
this.isPopupOpen = false;
|
|
18574
18609
|
this.isCollided = false;
|
|
18575
18610
|
this.lineBreak = false;
|
|
18576
|
-
this.keyConfigure = {
|
|
18577
|
-
tab: 'tab',
|
|
18578
|
-
enter: '13',
|
|
18579
|
-
escape: '27',
|
|
18580
|
-
end: '35',
|
|
18581
|
-
home: '36',
|
|
18582
|
-
down: '40',
|
|
18583
|
-
up: '38',
|
|
18584
|
-
pageUp: '33',
|
|
18585
|
-
pageDown: '34',
|
|
18586
|
-
open: 'alt+40',
|
|
18587
|
-
close: 'shift+tab',
|
|
18588
|
-
hide: 'alt+38',
|
|
18589
|
-
space: '32'
|
|
18590
|
-
};
|
|
18591
18611
|
};
|
|
18592
18612
|
/**
|
|
18593
18613
|
* Execute before render the list items
|
|
@@ -18633,9 +18653,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
18633
18653
|
};
|
|
18634
18654
|
Mention.prototype.bindCommonEvent = function () {
|
|
18635
18655
|
if (!Browser.isDevice) {
|
|
18636
|
-
this.
|
|
18637
|
-
keyAction: this.keyActionHandler.bind(this), keyConfigs: this.keyConfigure, eventName: 'keydown'
|
|
18638
|
-
});
|
|
18656
|
+
this.inputElement.addEventListener('keydown', this.keyDownHandler.bind(this), true);
|
|
18639
18657
|
}
|
|
18640
18658
|
};
|
|
18641
18659
|
/**
|
|
@@ -18687,6 +18705,47 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
18687
18705
|
}
|
|
18688
18706
|
}
|
|
18689
18707
|
};
|
|
18708
|
+
Mention.prototype.keyDownHandler = function (e) {
|
|
18709
|
+
var isKeyAction = true;
|
|
18710
|
+
switch (e.keyCode) {
|
|
18711
|
+
case 38:
|
|
18712
|
+
e.action = e.altKey ? 'hide' : 'up';
|
|
18713
|
+
break;
|
|
18714
|
+
case 40:
|
|
18715
|
+
e.action = e.altKey ? 'open' : 'down';
|
|
18716
|
+
break;
|
|
18717
|
+
case 33:
|
|
18718
|
+
e.action = 'pageUp';
|
|
18719
|
+
break;
|
|
18720
|
+
case 34:
|
|
18721
|
+
e.action = 'pageDown';
|
|
18722
|
+
break;
|
|
18723
|
+
case 36:
|
|
18724
|
+
e.action = 'home';
|
|
18725
|
+
break;
|
|
18726
|
+
case 35:
|
|
18727
|
+
e.action = 'end';
|
|
18728
|
+
break;
|
|
18729
|
+
case 9:
|
|
18730
|
+
e.action = e.shiftKey ? 'close' : 'tab';
|
|
18731
|
+
break;
|
|
18732
|
+
case 27:
|
|
18733
|
+
e.action = 'escape';
|
|
18734
|
+
break;
|
|
18735
|
+
case 32:
|
|
18736
|
+
e.action = 'space';
|
|
18737
|
+
break;
|
|
18738
|
+
case 13:
|
|
18739
|
+
e.action = 'enter';
|
|
18740
|
+
break;
|
|
18741
|
+
default:
|
|
18742
|
+
isKeyAction = false;
|
|
18743
|
+
break;
|
|
18744
|
+
}
|
|
18745
|
+
if (isKeyAction) {
|
|
18746
|
+
this.keyActionHandler(e);
|
|
18747
|
+
}
|
|
18748
|
+
};
|
|
18690
18749
|
Mention.prototype.keyActionHandler = function (e) {
|
|
18691
18750
|
var isNavigation = (e.action === 'down' || e.action === 'up' || e.action === 'pageUp' || e.action === 'pageDown'
|
|
18692
18751
|
|| e.action === 'home' || e.action === 'end');
|
|
@@ -18765,7 +18824,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
18765
18824
|
};
|
|
18766
18825
|
Mention.prototype.unBindCommonEvent = function () {
|
|
18767
18826
|
if (!Browser.isDevice) {
|
|
18768
|
-
this.
|
|
18827
|
+
this.inputElement.removeEventListener('keydown', this.keyDownHandler.bind(this), true);
|
|
18769
18828
|
}
|
|
18770
18829
|
};
|
|
18771
18830
|
Mention.prototype.onKeyUp = function (e) {
|
|
@@ -18802,7 +18861,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
18802
18861
|
this.range.startContainer.previousElementSibling && this.range.startContainer.previousElementSibling.tagName !== 'BR' && this.range.startContainer.textContent.split('').length > 0 &&
|
|
18803
18862
|
(rangetextContent.length === 1 || rangetextContent[rangetextContent.length - 2].indexOf('') === -1 ||
|
|
18804
18863
|
this.range.startContainer.nodeType === 1))) {
|
|
18805
|
-
if (this.allowSpaces && currentRange && currentRange.trim() !== '' && charRegex.test(currentRange) && currentRange.indexOf(this.mentionChar) !== -1
|
|
18864
|
+
if (this.isPopupOpen && this.allowSpaces && currentRange && currentRange.trim() !== '' && charRegex.test(currentRange) && currentRange.indexOf(this.mentionChar) !== -1
|
|
18806
18865
|
&& !this.isMatchedText() && (currentRange.length > 1 && currentRange.replace(/\u00A0/g, ' ').charAt(currentRange.length - 2) !== ' ') &&
|
|
18807
18866
|
(this.list && this.list.querySelectorAll('ul').length > 0)) {
|
|
18808
18867
|
this.queryString = currentRange.substring(currentRange.lastIndexOf(this.mentionChar) + 1).replace('\u00a0', ' ');
|
|
@@ -19310,6 +19369,9 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
19310
19369
|
this.popupObj.element.removeAttribute('style');
|
|
19311
19370
|
this.popupObj.element.removeAttribute('aria-disabled');
|
|
19312
19371
|
}
|
|
19372
|
+
if (this.list.classList.contains('e-nodata')) {
|
|
19373
|
+
this.list = null;
|
|
19374
|
+
}
|
|
19313
19375
|
};
|
|
19314
19376
|
Mention.prototype.onDocumentClick = function (e) {
|
|
19315
19377
|
var target = e.target;
|
|
@@ -19420,6 +19482,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
19420
19482
|
return coordinates;
|
|
19421
19483
|
};
|
|
19422
19484
|
Mention.prototype.initValue = function () {
|
|
19485
|
+
this.isDataFetched = false;
|
|
19423
19486
|
this.renderList();
|
|
19424
19487
|
if (this.dataSource instanceof DataManager) {
|
|
19425
19488
|
this.initRemoteRender = true;
|
|
@@ -19445,7 +19508,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
19445
19508
|
* @returns {void}
|
|
19446
19509
|
*/
|
|
19447
19510
|
Mention.prototype.wireListEvents = function () {
|
|
19448
|
-
EventHandler.add(this.list, '
|
|
19511
|
+
EventHandler.add(this.list, 'mousedown', this.onMouseClick, this);
|
|
19449
19512
|
EventHandler.add(this.list, 'mouseover', this.onMouseOver, this);
|
|
19450
19513
|
EventHandler.add(this.list, 'mouseout', this.onMouseLeave, this);
|
|
19451
19514
|
};
|
|
@@ -19455,7 +19518,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
19455
19518
|
* @returns {void}
|
|
19456
19519
|
*/
|
|
19457
19520
|
Mention.prototype.unWireListEvents = function () {
|
|
19458
|
-
EventHandler.remove(this.list, '
|
|
19521
|
+
EventHandler.remove(this.list, 'mousedown', this.onMouseClick);
|
|
19459
19522
|
EventHandler.remove(this.list, 'mouseover', this.onMouseOver);
|
|
19460
19523
|
EventHandler.remove(this.list, 'mouseout', this.onMouseLeave);
|
|
19461
19524
|
};
|
|
@@ -19470,6 +19533,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
19470
19533
|
var delay = 100;
|
|
19471
19534
|
this.closePopup(delay, e);
|
|
19472
19535
|
this.inputElement.focus();
|
|
19536
|
+
e.preventDefault();
|
|
19473
19537
|
};
|
|
19474
19538
|
Mention.prototype.updateSelectedItem = function (li, e, preventSelect, isSelection) {
|
|
19475
19539
|
var _this = this;
|