@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
|
@@ -2079,7 +2079,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
2079
2079
|
}
|
|
2080
2080
|
if (!this.readonly) {
|
|
2081
2081
|
const isTabAction = e.action === 'tab' || e.action === 'close';
|
|
2082
|
-
if (this.list
|
|
2082
|
+
if (isNullOrUndefined(this.list) && !this.isRequested && !isTabAction && e.action !== 'escape') {
|
|
2083
2083
|
this.searchKeyEvent = e;
|
|
2084
2084
|
this.renderList(e);
|
|
2085
2085
|
}
|
|
@@ -9727,11 +9727,25 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
9727
9727
|
}
|
|
9728
9728
|
this.checkPlaceholderSize();
|
|
9729
9729
|
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
9730
|
-
|
|
9730
|
+
this.calculateWidth();
|
|
9731
9731
|
if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
|
|
9732
9732
|
this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
|
|
9733
9733
|
}
|
|
9734
9734
|
}
|
|
9735
|
+
calculateWidth() {
|
|
9736
|
+
let elementWidth;
|
|
9737
|
+
if (this.overAllWrapper) {
|
|
9738
|
+
if (!this.showDropDownIcon || this.overAllWrapper.querySelector('.' + 'e-label-top')) {
|
|
9739
|
+
elementWidth = this.overAllWrapper.clientWidth - 2 * (parseInt(getComputedStyle(this.inputElement).paddingRight));
|
|
9740
|
+
}
|
|
9741
|
+
else {
|
|
9742
|
+
var downIconWidth = this.dropIcon.offsetWidth +
|
|
9743
|
+
parseInt(getComputedStyle(this.dropIcon).marginRight);
|
|
9744
|
+
elementWidth = this.overAllWrapper.clientWidth - (downIconWidth + 2 * (parseInt(getComputedStyle(this.inputElement).paddingRight)));
|
|
9745
|
+
}
|
|
9746
|
+
Input.calculateWidth(elementWidth, this.overAllWrapper, this.getModuleName());
|
|
9747
|
+
}
|
|
9748
|
+
}
|
|
9735
9749
|
checkPlaceholderSize() {
|
|
9736
9750
|
if (this.showDropDownIcon) {
|
|
9737
9751
|
const downIconWidth = this.dropIcon.offsetWidth +
|
|
@@ -9868,7 +9882,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
9868
9882
|
if (this.isPopupOpen()) {
|
|
9869
9883
|
this.refreshPopup();
|
|
9870
9884
|
}
|
|
9871
|
-
|
|
9885
|
+
setTimeout(() => {
|
|
9886
|
+
this.calculateWidth();
|
|
9887
|
+
}, 150);
|
|
9872
9888
|
return true;
|
|
9873
9889
|
}
|
|
9874
9890
|
else {
|
|
@@ -12363,7 +12379,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
12363
12379
|
case 'cssClass':
|
|
12364
12380
|
this.updateOldPropCssClass(oldProp.cssClass);
|
|
12365
12381
|
this.updateCssClass();
|
|
12366
|
-
|
|
12382
|
+
this.calculateWidth();
|
|
12367
12383
|
break;
|
|
12368
12384
|
case 'enableRtl':
|
|
12369
12385
|
this.enableRTL(newProp.enableRtl);
|
|
@@ -12391,7 +12407,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
12391
12407
|
this.setFloatLabelType();
|
|
12392
12408
|
this.addValidInputClass();
|
|
12393
12409
|
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
12394
|
-
|
|
12410
|
+
this.calculateWidth();
|
|
12395
12411
|
if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
|
|
12396
12412
|
this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
|
|
12397
12413
|
}
|
|
@@ -12737,7 +12753,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
12737
12753
|
this.element.setAttribute('data-val', 'false');
|
|
12738
12754
|
}
|
|
12739
12755
|
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
12740
|
-
|
|
12756
|
+
this.calculateWidth();
|
|
12741
12757
|
if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
|
|
12742
12758
|
this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
|
|
12743
12759
|
}
|
|
@@ -16504,7 +16520,6 @@ let Mention = class Mention extends DropDownBase {
|
|
|
16504
16520
|
}
|
|
16505
16521
|
if (!isNullOrUndefined(this.target)) {
|
|
16506
16522
|
popupEle.id = this.inputElement.id + '_popup';
|
|
16507
|
-
addClass([popupEle], ['e-mention', 'e-popup', 'e-popup-close']);
|
|
16508
16523
|
}
|
|
16509
16524
|
this.listHeight = formatUnit(this.popupHeight);
|
|
16510
16525
|
if (!isNullOrUndefined(this.list.querySelector('li')) && !this.initRemoteRender) {
|
|
@@ -16528,6 +16543,7 @@ let Mention = class Mention extends DropDownBase {
|
|
|
16528
16543
|
this.initializePopup(popupEle, offsetValue, left);
|
|
16529
16544
|
this.checkCollision(popupEle);
|
|
16530
16545
|
popupEle.style.visibility = 'visible';
|
|
16546
|
+
addClass([popupEle], ['e-mention', 'e-popup', 'e-popup-close']);
|
|
16531
16547
|
if (!isNullOrUndefined(this.list)) {
|
|
16532
16548
|
this.unWireListEvents();
|
|
16533
16549
|
this.wireListEvents();
|