@syncfusion/ej2-dropdowns 34.2.6 → 34.2.8
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/.eslintrc.json +263 -0
- package/README.md +6 -3
- package/aceconfig.js +17 -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 +22 -9
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +21 -8
- 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 +8 -8
- package/src/auto-complete/auto-complete-model.d.ts +2 -2
- package/src/auto-complete/auto-complete.d.ts +2 -2
- package/src/drop-down-base/drop-down-base.js +6 -0
- package/src/drop-down-list/drop-down-list-model.d.ts +1 -1
- package/src/drop-down-list/drop-down-list.d.ts +1 -1
- package/src/drop-down-list/drop-down-list.js +10 -5
- package/src/drop-down-tree/drop-down-tree-model.d.ts +3 -3
- package/src/drop-down-tree/drop-down-tree.d.ts +3 -3
- package/src/multi-select/multi-select-model.d.ts +1 -5
- package/src/multi-select/multi-select.d.ts +1 -5
- package/src/multi-select/multi-select.js +5 -3
- package/tslint.json +111 -0
|
@@ -1668,6 +1668,9 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
var query_1 = _this.getQuery(eventArgs.query);
|
|
1670
1670
|
eventArgs.data.executeQuery(query_1).then(function (e) {
|
|
1671
|
+
if (_this.isAngular && _this.isDestroyed) {
|
|
1672
|
+
return;
|
|
1673
|
+
}
|
|
1671
1674
|
_this.isPreventChange = _this.isAngular && _this.preventChange ? true : _this.isPreventChange;
|
|
1672
1675
|
var isReOrder = true;
|
|
1673
1676
|
if (!_this.virtualSelectAll) {
|
|
@@ -1729,6 +1732,9 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1729
1732
|
_this.isRequesting = false;
|
|
1730
1733
|
_this.isCustomFiltering = false;
|
|
1731
1734
|
var listItems = e.result;
|
|
1735
|
+
if (_this.getModuleName() === 'dropdownlist' && listItems.length === 0 && _this.filterInput && _this.filterInput.value.trim() === '' && _this.actionCompleteData && _this.actionCompleteData.list && _this.actionCompleteData.list.length) {
|
|
1736
|
+
listItems = _this.actionCompleteData.list;
|
|
1737
|
+
}
|
|
1732
1738
|
if (_this.isIncrementalRequest) {
|
|
1733
1739
|
ulElement = _this.renderItems(listItems, fields);
|
|
1734
1740
|
return;
|
|
@@ -4685,7 +4691,8 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
4685
4691
|
};
|
|
4686
4692
|
DropDownList.prototype.onDocumentClick = function (e) {
|
|
4687
4693
|
var target = e.target;
|
|
4688
|
-
if (!
|
|
4694
|
+
if (!isNullOrUndefined(target) && !(!isNullOrUndefined(this.popupObj) &&
|
|
4695
|
+
closest(target, this.checkSelector(this.popupObj.element.id))) &&
|
|
4689
4696
|
!isNullOrUndefined(this.inputWrapper) && !this.inputWrapper.container.contains(e.target)) {
|
|
4690
4697
|
if (this.inputWrapper.container.classList.contains(dropDownListClasses.inputFocus) || this.isPopupOpen) {
|
|
4691
4698
|
this.isDocumentClick = true;
|
|
@@ -6344,7 +6351,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
6344
6351
|
ulElement = null;
|
|
6345
6352
|
},
|
|
6346
6353
|
targetExitViewport: function () {
|
|
6347
|
-
_this.
|
|
6354
|
+
if (!Browser.isDevice || (_this.allowFiltering === false && _this.isPopupOpen)) {
|
|
6355
|
+
_this.hidePopup();
|
|
6356
|
+
}
|
|
6348
6357
|
}
|
|
6349
6358
|
});
|
|
6350
6359
|
};
|
|
@@ -7558,9 +7567,11 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
7558
7567
|
DropDownList.prototype.updateFloatLabelOverflowWidth = function () {
|
|
7559
7568
|
var container = this.inputWrapper.container;
|
|
7560
7569
|
var label = container.querySelector('.e-float-text');
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7570
|
+
if (label && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
|
|
7571
|
+
var calculateWidth = (container.clientWidth - this.getRightIconsWidth());
|
|
7572
|
+
if (calculateWidth) {
|
|
7573
|
+
label.style.width = calculateWidth + 'px';
|
|
7574
|
+
}
|
|
7564
7575
|
}
|
|
7565
7576
|
};
|
|
7566
7577
|
/**
|
|
@@ -20499,9 +20510,11 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
20499
20510
|
MultiSelect.prototype.updateFloatLabelOverflowWidth = function () {
|
|
20500
20511
|
var container = this.overAllWrapper;
|
|
20501
20512
|
var label = container.querySelector('.e-float-text');
|
|
20502
|
-
|
|
20503
|
-
|
|
20504
|
-
|
|
20513
|
+
if (label && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
|
|
20514
|
+
var calculateWidth = (container.clientWidth - this.getRightIconsWidth());
|
|
20515
|
+
if (calculateWidth) {
|
|
20516
|
+
label.style.width = calculateWidth + 'px';
|
|
20517
|
+
}
|
|
20505
20518
|
}
|
|
20506
20519
|
};
|
|
20507
20520
|
/**
|