@syncfusion/ej2-dropdowns 20.4.40 → 20.4.42
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 +14 -0
- package/README.md +1 -1
- 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 +25 -4
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +25 -4
- 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 +11 -11
- package/src/drop-down-base/drop-down-base.js +1 -1
- package/src/mention/mention.js +12 -3
- package/src/multi-select/multi-select.d.ts +2 -0
- package/src/multi-select/multi-select.js +12 -0
- package/.eslintrc.json +0 -259
- package/tslint.json +0 -111
|
@@ -655,10 +655,10 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
655
655
|
_this.isDataFetched = true;
|
|
656
656
|
}
|
|
657
657
|
ulElement = _this.renderItems(listItems, fields);
|
|
658
|
+
_this.onActionComplete(ulElement, listItems, e);
|
|
658
659
|
if (_this.groupTemplate) {
|
|
659
660
|
_this.renderGroupTemplate(ulElement);
|
|
660
661
|
}
|
|
661
|
-
_this.onActionComplete(ulElement, listItems, e);
|
|
662
662
|
_this.isRequested = false;
|
|
663
663
|
_this.bindChildItems(listItems, ulElement, fields, e);
|
|
664
664
|
}
|
|
@@ -9091,6 +9091,8 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
9091
9091
|
_this.isValidKey = false;
|
|
9092
9092
|
_this.selectAllEventData = [];
|
|
9093
9093
|
_this.selectAllEventEle = [];
|
|
9094
|
+
_this.resetMainList = null;
|
|
9095
|
+
_this.resetFilteredData = false;
|
|
9094
9096
|
_this.scrollFocusStatus = false;
|
|
9095
9097
|
_this.keyDownStatus = false;
|
|
9096
9098
|
return _this;
|
|
@@ -9837,6 +9839,10 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
9837
9839
|
}
|
|
9838
9840
|
}
|
|
9839
9841
|
this.updateDataList();
|
|
9842
|
+
if (this.resetMainList) {
|
|
9843
|
+
this.mainList = this.resetMainList;
|
|
9844
|
+
this.resetMainList = null;
|
|
9845
|
+
}
|
|
9840
9846
|
this.refreshListItems(null);
|
|
9841
9847
|
if (this.mode !== 'Box' && this.mode !== 'CheckBox') {
|
|
9842
9848
|
this.updateDelimView();
|
|
@@ -11252,6 +11258,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
11252
11258
|
};
|
|
11253
11259
|
MultiSelect.prototype.search = function (e) {
|
|
11254
11260
|
var _this = this;
|
|
11261
|
+
this.resetFilteredData = true;
|
|
11255
11262
|
if (!isNullOrUndefined(e)) {
|
|
11256
11263
|
this.keyCode = e.keyCode;
|
|
11257
11264
|
}
|
|
@@ -12446,6 +12453,11 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
12446
12453
|
MultiSelect.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
12447
12454
|
if (newProp.dataSource && !isNullOrUndefined(Object.keys(newProp.dataSource))
|
|
12448
12455
|
|| newProp.query && !isNullOrUndefined(Object.keys(newProp.query))) {
|
|
12456
|
+
if (this.resetFilteredData) {
|
|
12457
|
+
// The filtered data is not being reset in the component after the user focuses out.
|
|
12458
|
+
this.resetMainList = !this.resetMainList ? this.mainList : this.resetMainList;
|
|
12459
|
+
this.resetFilteredData = false;
|
|
12460
|
+
}
|
|
12449
12461
|
this.mainList = null;
|
|
12450
12462
|
this.mainData = null;
|
|
12451
12463
|
this.isFirstClick = false;
|
|
@@ -16718,9 +16730,18 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
16718
16730
|
var args = { cancel: false };
|
|
16719
16731
|
this.trigger('beforeOpen', args, function (args) {
|
|
16720
16732
|
if (!args.cancel) {
|
|
16721
|
-
var popupEle_1
|
|
16722
|
-
|
|
16723
|
-
|
|
16733
|
+
var popupEle_1;
|
|
16734
|
+
if (isNullOrUndefined(_this.target)) {
|
|
16735
|
+
popupEle_1 = _this.createElement('div', {
|
|
16736
|
+
id: _this.inputElement.id + '_popup', className: 'e-mention e-popup ' + (_this.cssClass != null ? _this.cssClass : '')
|
|
16737
|
+
});
|
|
16738
|
+
}
|
|
16739
|
+
else {
|
|
16740
|
+
popupEle_1 = _this.element;
|
|
16741
|
+
if (_this.cssClass != null) {
|
|
16742
|
+
addClass([popupEle_1], _this.cssClass.split(' '));
|
|
16743
|
+
}
|
|
16744
|
+
}
|
|
16724
16745
|
if (!isNullOrUndefined(_this.target)) {
|
|
16725
16746
|
popupEle_1.id = _this.inputElement.id + '_popup';
|
|
16726
16747
|
addClass([popupEle_1], ['e-mention', 'e-popup', 'e-popup-close']);
|