@syncfusion/ej2-dropdowns 20.4.50 → 20.4.51
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/GitLeaksReport.json +1 -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 +23 -7
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +24 -7
- 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/gitleaks-ci/gitleaks +0 -0
- package/gitleaks-ci.tar.gz +0 -0
- package/package.json +9 -9
- package/src/drop-down-list/drop-down-list.js +1 -1
- package/src/mention/mention.js +1 -1
- package/src/multi-select/multi-select.d.ts +1 -0
- package/src/multi-select/multi-select.js +22 -5
|
@@ -2130,7 +2130,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
2130
2130
|
}
|
|
2131
2131
|
if (!this.readonly) {
|
|
2132
2132
|
var isTabAction = e.action === 'tab' || e.action === 'close';
|
|
2133
|
-
if (this.list
|
|
2133
|
+
if (isNullOrUndefined(this.list) && !this.isRequested && !isTabAction && e.action !== 'escape') {
|
|
2134
2134
|
this.searchKeyEvent = e;
|
|
2135
2135
|
this.renderList(e);
|
|
2136
2136
|
}
|
|
@@ -9889,11 +9889,25 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
9889
9889
|
}
|
|
9890
9890
|
this.checkPlaceholderSize();
|
|
9891
9891
|
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
9892
|
-
|
|
9892
|
+
this.calculateWidth();
|
|
9893
9893
|
if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
|
|
9894
9894
|
this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
|
|
9895
9895
|
}
|
|
9896
9896
|
};
|
|
9897
|
+
MultiSelect.prototype.calculateWidth = function () {
|
|
9898
|
+
var elementWidth;
|
|
9899
|
+
if (this.overAllWrapper) {
|
|
9900
|
+
if (!this.showDropDownIcon || this.overAllWrapper.querySelector('.' + 'e-label-top')) {
|
|
9901
|
+
elementWidth = this.overAllWrapper.clientWidth - 2 * (parseInt(getComputedStyle(this.inputElement).paddingRight));
|
|
9902
|
+
}
|
|
9903
|
+
else {
|
|
9904
|
+
var downIconWidth = this.dropIcon.offsetWidth +
|
|
9905
|
+
parseInt(getComputedStyle(this.dropIcon).marginRight);
|
|
9906
|
+
elementWidth = this.overAllWrapper.clientWidth - (downIconWidth + 2 * (parseInt(getComputedStyle(this.inputElement).paddingRight)));
|
|
9907
|
+
}
|
|
9908
|
+
Input.calculateWidth(elementWidth, this.overAllWrapper, this.getModuleName());
|
|
9909
|
+
}
|
|
9910
|
+
};
|
|
9897
9911
|
MultiSelect.prototype.checkPlaceholderSize = function () {
|
|
9898
9912
|
if (this.showDropDownIcon) {
|
|
9899
9913
|
var downIconWidth = this.dropIcon.offsetWidth +
|
|
@@ -10000,6 +10014,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
10000
10014
|
+ ':not(.' + HIDE_LIST + ')') : [];
|
|
10001
10015
|
};
|
|
10002
10016
|
MultiSelect.prototype.focusInHandler = function (e) {
|
|
10017
|
+
var _this = this;
|
|
10003
10018
|
if (this.enabled) {
|
|
10004
10019
|
this.showOverAllClear();
|
|
10005
10020
|
this.inputFocus = true;
|
|
@@ -10030,7 +10045,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
10030
10045
|
if (this.isPopupOpen()) {
|
|
10031
10046
|
this.refreshPopup();
|
|
10032
10047
|
}
|
|
10033
|
-
|
|
10048
|
+
setTimeout(function () {
|
|
10049
|
+
_this.calculateWidth();
|
|
10050
|
+
}, 150);
|
|
10034
10051
|
return true;
|
|
10035
10052
|
}
|
|
10036
10053
|
else {
|
|
@@ -12537,7 +12554,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
12537
12554
|
case 'cssClass':
|
|
12538
12555
|
this.updateOldPropCssClass(oldProp.cssClass);
|
|
12539
12556
|
this.updateCssClass();
|
|
12540
|
-
|
|
12557
|
+
this.calculateWidth();
|
|
12541
12558
|
break;
|
|
12542
12559
|
case 'enableRtl':
|
|
12543
12560
|
this.enableRTL(newProp.enableRtl);
|
|
@@ -12565,7 +12582,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
12565
12582
|
this.setFloatLabelType();
|
|
12566
12583
|
this.addValidInputClass();
|
|
12567
12584
|
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
12568
|
-
|
|
12585
|
+
this.calculateWidth();
|
|
12569
12586
|
if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
|
|
12570
12587
|
this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
|
|
12571
12588
|
}
|
|
@@ -12915,7 +12932,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
12915
12932
|
this.element.setAttribute('data-val', 'false');
|
|
12916
12933
|
}
|
|
12917
12934
|
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
12918
|
-
|
|
12935
|
+
this.calculateWidth();
|
|
12919
12936
|
if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
|
|
12920
12937
|
this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
|
|
12921
12938
|
}
|
|
@@ -16766,7 +16783,6 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
16766
16783
|
}
|
|
16767
16784
|
if (!isNullOrUndefined(_this.target)) {
|
|
16768
16785
|
popupEle_1.id = _this.inputElement.id + '_popup';
|
|
16769
|
-
addClass([popupEle_1], ['e-mention', 'e-popup', 'e-popup-close']);
|
|
16770
16786
|
}
|
|
16771
16787
|
_this.listHeight = formatUnit(_this.popupHeight);
|
|
16772
16788
|
if (!isNullOrUndefined(_this.list.querySelector('li')) && !_this.initRemoteRender) {
|
|
@@ -16790,6 +16806,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
16790
16806
|
_this.initializePopup(popupEle_1, offsetValue, left);
|
|
16791
16807
|
_this.checkCollision(popupEle_1);
|
|
16792
16808
|
popupEle_1.style.visibility = 'visible';
|
|
16809
|
+
addClass([popupEle_1], ['e-mention', 'e-popup', 'e-popup-close']);
|
|
16793
16810
|
if (!isNullOrUndefined(_this.list)) {
|
|
16794
16811
|
_this.unWireListEvents();
|
|
16795
16812
|
_this.wireListEvents();
|