@syncfusion/ej2-dropdowns 20.2.48 → 20.2.50
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/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 +34 -1
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +34 -1
- 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 +7 -7
- package/src/auto-complete/auto-complete.js +4 -0
- package/src/combo-box/combo-box.js +1 -0
- package/src/drop-down-list/drop-down-list.js +12 -1
- package/src/multi-select/multi-select-model.d.ts +1 -1
- package/src/multi-select/multi-select.js +18 -0
|
@@ -2945,7 +2945,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
2945
2945
|
&& ((this.dataSource instanceof DataManager)
|
|
2946
2946
|
|| (!isNullOrUndefined(this.dataSource) && !isNullOrUndefined(this.dataSource.length) &&
|
|
2947
2947
|
this.dataSource.length !== 0)))) {
|
|
2948
|
-
if (this.itemTemplate && this.element.tagName === 'EJS-COMBOBOX' && this.allowFiltering) {
|
|
2948
|
+
if (this.itemTemplate && (this.element.tagName === 'EJS-COMBOBOX' || this.element.tagName === 'EJS-DROPDOWNLIST') && this.allowFiltering) {
|
|
2949
2949
|
setTimeout(() => {
|
|
2950
2950
|
this.updateActionCompleteDataValues(ulElement, list);
|
|
2951
2951
|
}, 0);
|
|
@@ -3496,6 +3496,10 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
3496
3496
|
this.setFields();
|
|
3497
3497
|
this.inputWrapper.container.style.width = formatUnit(this.width);
|
|
3498
3498
|
this.inputWrapper.container.classList.add('e-ddl');
|
|
3499
|
+
Input.calculateWidth(this.inputElement, this.inputWrapper.container);
|
|
3500
|
+
if (!isNullOrUndefined(this.inputWrapper) && !isNullOrUndefined(this.inputWrapper.buttons[0]) && this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0] && this.floatLabelType !== 'Never') {
|
|
3501
|
+
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
|
|
3502
|
+
}
|
|
3499
3503
|
this.wireEvent();
|
|
3500
3504
|
this.tabIndex = this.element.hasAttribute('tabindex') ? this.element.getAttribute('tabindex') : '0';
|
|
3501
3505
|
this.element.removeAttribute('tabindex');
|
|
@@ -3688,6 +3692,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
3688
3692
|
break;
|
|
3689
3693
|
case 'width':
|
|
3690
3694
|
this.setEleWidth(newProp.width);
|
|
3695
|
+
Input.calculateWidth(this.inputElement, this.inputWrapper.container);
|
|
3691
3696
|
break;
|
|
3692
3697
|
case 'placeholder':
|
|
3693
3698
|
Input.setPlaceholder(newProp.placeholder, this.inputElement);
|
|
@@ -3705,6 +3710,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
3705
3710
|
break;
|
|
3706
3711
|
case 'cssClass':
|
|
3707
3712
|
this.setCssClass(newProp.cssClass, oldProp.cssClass);
|
|
3713
|
+
Input.calculateWidth(this.inputElement, this.inputWrapper.container);
|
|
3708
3714
|
break;
|
|
3709
3715
|
case 'enableRtl':
|
|
3710
3716
|
this.setEnableRtl();
|
|
@@ -3851,6 +3857,9 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
3851
3857
|
case 'floatLabelType':
|
|
3852
3858
|
Input.removeFloating(this.inputWrapper);
|
|
3853
3859
|
Input.addFloating(this.inputElement, newProp.floatLabelType, this.placeholder, this.createElement);
|
|
3860
|
+
if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0] && this.floatLabelType !== 'Never') {
|
|
3861
|
+
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
|
|
3862
|
+
}
|
|
3854
3863
|
break;
|
|
3855
3864
|
case 'showClearButton':
|
|
3856
3865
|
Input.setClearButton(newProp.showClearButton, this.inputElement, this.inputWrapper, null, this.createElement);
|
|
@@ -4032,6 +4041,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
4032
4041
|
}
|
|
4033
4042
|
addClass([this.inputWrapper.container], [dropDownListClasses.inputFocus]);
|
|
4034
4043
|
this.onFocus(e);
|
|
4044
|
+
Input.calculateWidth(this.inputElement, this.inputWrapper.container);
|
|
4035
4045
|
}
|
|
4036
4046
|
/**
|
|
4037
4047
|
* Moves the focus from the component if the component is already focused.
|
|
@@ -4049,6 +4059,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
4049
4059
|
this.targetElement().blur();
|
|
4050
4060
|
}
|
|
4051
4061
|
removeClass([this.inputWrapper.container], [dropDownListClasses.inputFocus]);
|
|
4062
|
+
Input.calculateWidth(this.inputElement, this.inputWrapper.container);
|
|
4052
4063
|
}
|
|
4053
4064
|
/**
|
|
4054
4065
|
* Removes the component from the DOM and detaches all its related event handlers. Also it removes the attributes and classes.
|
|
@@ -7791,6 +7802,7 @@ let ComboBox = class ComboBox extends DropDownList {
|
|
|
7791
7802
|
this.preventFocus = false;
|
|
7792
7803
|
}
|
|
7793
7804
|
this.onFocus(e);
|
|
7805
|
+
Input.calculateWidth(this.inputElement, this.inputWrapper.container);
|
|
7794
7806
|
}
|
|
7795
7807
|
dropDownClick(e) {
|
|
7796
7808
|
e.preventDefault();
|
|
@@ -8465,6 +8477,10 @@ let AutoComplete = class AutoComplete extends ComboBox {
|
|
|
8465
8477
|
if (this.showPopupButton) {
|
|
8466
8478
|
const button = Input.appendSpan(dropDownListClasses.icon, this.inputWrapper.container, this.createElement);
|
|
8467
8479
|
this.inputWrapper.buttons[0] = button;
|
|
8480
|
+
Input.calculateWidth(this.inputElement, this.inputWrapper.container);
|
|
8481
|
+
if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
|
|
8482
|
+
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
|
|
8483
|
+
}
|
|
8468
8484
|
if (this.inputWrapper && this.inputWrapper.buttons && this.inputWrapper.buttons[0]) {
|
|
8469
8485
|
EventHandler.add(this.inputWrapper.buttons[0], 'click', this.dropDownClick, this);
|
|
8470
8486
|
}
|
|
@@ -9557,6 +9573,11 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
9557
9573
|
this.ulElement = this.mainList;
|
|
9558
9574
|
}
|
|
9559
9575
|
this.checkPlaceholderSize();
|
|
9576
|
+
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
9577
|
+
Input.calculateWidth(this.inputElement, this.overAllWrapper);
|
|
9578
|
+
if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
|
|
9579
|
+
this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
|
|
9580
|
+
}
|
|
9560
9581
|
}
|
|
9561
9582
|
checkPlaceholderSize() {
|
|
9562
9583
|
if (this.showDropDownIcon) {
|
|
@@ -9687,6 +9708,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
9687
9708
|
if (this.isPopupOpen()) {
|
|
9688
9709
|
this.refreshPopup();
|
|
9689
9710
|
}
|
|
9711
|
+
Input.calculateWidth(this.inputElement, this.overAllWrapper);
|
|
9690
9712
|
return true;
|
|
9691
9713
|
}
|
|
9692
9714
|
else {
|
|
@@ -12150,6 +12172,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
12150
12172
|
case 'cssClass':
|
|
12151
12173
|
this.updateOldPropCssClass(oldProp.cssClass);
|
|
12152
12174
|
this.updateCssClass();
|
|
12175
|
+
Input.calculateWidth(this.inputElement.parentElement.parentElement, this.overAllWrapper);
|
|
12153
12176
|
break;
|
|
12154
12177
|
case 'enableRtl':
|
|
12155
12178
|
this.enableRTL(newProp.enableRtl);
|
|
@@ -12176,6 +12199,11 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
12176
12199
|
case 'floatLabelType':
|
|
12177
12200
|
this.setFloatLabelType();
|
|
12178
12201
|
this.addValidInputClass();
|
|
12202
|
+
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
12203
|
+
Input.calculateWidth(this.inputElement.parentElement.parentElement, this.overAllWrapper);
|
|
12204
|
+
if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
|
|
12205
|
+
this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
|
|
12206
|
+
}
|
|
12179
12207
|
break;
|
|
12180
12208
|
case 'enableSelectionOrder':
|
|
12181
12209
|
break;
|
|
@@ -12509,6 +12537,11 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
12509
12537
|
if (this.element.hasAttribute('data-val')) {
|
|
12510
12538
|
this.element.setAttribute('data-val', 'false');
|
|
12511
12539
|
}
|
|
12540
|
+
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
12541
|
+
Input.calculateWidth(this.inputElement, this.overAllWrapper);
|
|
12542
|
+
if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
|
|
12543
|
+
this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
|
|
12544
|
+
}
|
|
12512
12545
|
this.renderComplete();
|
|
12513
12546
|
}
|
|
12514
12547
|
checkInitialValue() {
|