@syncfusion/ej2-dropdowns 20.2.39 → 20.2.44
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 +42 -0
- 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 +104 -52
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +121 -69
- 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/auto-complete/auto-complete-model.d.ts +1 -1
- package/src/auto-complete/auto-complete.d.ts +4 -3
- package/src/auto-complete/auto-complete.js +53 -29
- package/src/combo-box/combo-box.d.ts +2 -2
- package/src/combo-box/combo-box.js +3 -3
- package/src/drop-down-base/drop-down-base.d.ts +3 -3
- package/src/drop-down-base/drop-down-base.js +8 -8
- package/src/drop-down-list/drop-down-list.d.ts +6 -5
- package/src/drop-down-list/drop-down-list.js +31 -15
- package/src/drop-down-tree/drop-down-tree.js +2 -1
- package/src/list-box/list-box.js +14 -3
- package/src/multi-select/multi-select.d.ts +1 -1
- package/src/multi-select/multi-select.js +11 -11
- package/styles/multi-select/_layout.scss +4 -0
- package/styles/multi-select/tailwind-dark.css +2 -0
- package/styles/multi-select/tailwind.css +2 -0
- package/styles/tailwind-dark.css +2 -0
- package/styles/tailwind.css +2 -0
|
@@ -823,7 +823,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
823
823
|
*
|
|
824
824
|
* @returns {void}
|
|
825
825
|
*/
|
|
826
|
-
showPopup(): void;
|
|
826
|
+
showPopup(e?: MouseEvent | KeyboardEventArgs | TouchEvent): void;
|
|
827
827
|
/**
|
|
828
828
|
* Based on the state parameter, entire list item will be selected/deselected.
|
|
829
829
|
* parameter
|
|
@@ -224,7 +224,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
};
|
|
227
|
-
MultiSelect.prototype.onPopupShown = function () {
|
|
227
|
+
MultiSelect.prototype.onPopupShown = function (e) {
|
|
228
228
|
var _this = this;
|
|
229
229
|
if (Browser.isDevice && (this.mode === 'CheckBox' && this.allowFiltering)) {
|
|
230
230
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
@@ -236,7 +236,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
236
236
|
history.pushState({}, '');
|
|
237
237
|
}
|
|
238
238
|
var animModel = { name: 'FadeIn', duration: 100 };
|
|
239
|
-
var eventArgs = { popup: this.popupObj, cancel: false, animation: animModel };
|
|
239
|
+
var eventArgs = { popup: this.popupObj, event: e, cancel: false, animation: animModel };
|
|
240
240
|
this.trigger('open', eventArgs, function (eventArgs) {
|
|
241
241
|
if (!eventArgs.cancel) {
|
|
242
242
|
_this.focusAtFirstListItem();
|
|
@@ -460,7 +460,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
460
460
|
this.renderPopup();
|
|
461
461
|
if (this.beforePopupOpen) {
|
|
462
462
|
this.beforePopupOpen = false;
|
|
463
|
-
this.onPopupShown();
|
|
463
|
+
this.onPopupShown(e);
|
|
464
464
|
}
|
|
465
465
|
};
|
|
466
466
|
MultiSelect.prototype.refreshSelection = function () {
|
|
@@ -752,7 +752,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
752
752
|
}
|
|
753
753
|
if (!this.isPopupOpen() &&
|
|
754
754
|
(this.openOnClick || (this.showDropDownIcon && e.target && e.target.className === dropdownIcon))) {
|
|
755
|
-
this.showPopup();
|
|
755
|
+
this.showPopup(e);
|
|
756
756
|
}
|
|
757
757
|
else {
|
|
758
758
|
this.hidePopup(e);
|
|
@@ -1046,7 +1046,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
1046
1046
|
break;
|
|
1047
1047
|
case 40:
|
|
1048
1048
|
if (!this.isPopupOpen()) {
|
|
1049
|
-
this.showPopup();
|
|
1049
|
+
this.showPopup(e);
|
|
1050
1050
|
e.preventDefault();
|
|
1051
1051
|
}
|
|
1052
1052
|
break;
|
|
@@ -2237,7 +2237,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2237
2237
|
this.keyCode = e.keyCode;
|
|
2238
2238
|
}
|
|
2239
2239
|
if (!this.isPopupOpen() && this.openOnClick) {
|
|
2240
|
-
this.showPopup();
|
|
2240
|
+
this.showPopup(e);
|
|
2241
2241
|
}
|
|
2242
2242
|
this.openClick(e);
|
|
2243
2243
|
if (this.checkTextLength() && !this.allowFiltering && !isNullOrUndefined(e) && (e.keyCode !== 8)) {
|
|
@@ -2384,7 +2384,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2384
2384
|
|| this.list.querySelector('.e-ul') && this.list.querySelector('.e-ul').childElementCount === 0)) {
|
|
2385
2385
|
isEmptyData = true;
|
|
2386
2386
|
}
|
|
2387
|
-
_super.prototype.render.call(this, isEmptyData);
|
|
2387
|
+
_super.prototype.render.call(this, null, isEmptyData);
|
|
2388
2388
|
this.unwireListEvents();
|
|
2389
2389
|
this.wireListEvents();
|
|
2390
2390
|
};
|
|
@@ -2472,7 +2472,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2472
2472
|
}
|
|
2473
2473
|
};
|
|
2474
2474
|
MultiSelect.prototype.updateDataList = function () {
|
|
2475
|
-
if (this.mainList && this.ulElement && !(this.isFiltered || this.filterAction)) {
|
|
2475
|
+
if (this.mainList && this.ulElement && !(this.isFiltered || this.filterAction || this.targetElement().trim())) {
|
|
2476
2476
|
var isDynamicGroupItemUpdate = this.mainList.childElementCount < this.ulElement.childElementCount;
|
|
2477
2477
|
var isReactTemplateUpdate = ((this.ulElement.childElementCount > 0 && this.ulElement.children[0].childElementCount > 0) && (this.mainList.children[0].childElementCount < this.ulElement.children[0].childElementCount));
|
|
2478
2478
|
var isAngularTemplateUpdate = this.itemTemplate && this.ulElement.childElementCount > 0 && !(this.ulElement.childElementCount < this.mainList.childElementCount) && (this.ulElement.children[0].childElementCount > 0 || (this.fields.groupBy && this.ulElement.children[1] && this.ulElement.children[1].childElementCount > 0));
|
|
@@ -3657,7 +3657,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3657
3657
|
*
|
|
3658
3658
|
* @returns {void}
|
|
3659
3659
|
*/
|
|
3660
|
-
MultiSelect.prototype.showPopup = function () {
|
|
3660
|
+
MultiSelect.prototype.showPopup = function (e) {
|
|
3661
3661
|
var _this = this;
|
|
3662
3662
|
if (!this.enabled) {
|
|
3663
3663
|
return;
|
|
@@ -3667,7 +3667,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3667
3667
|
if (!args.cancel) {
|
|
3668
3668
|
if (!_this.ulElement) {
|
|
3669
3669
|
_this.beforePopupOpen = true;
|
|
3670
|
-
_super.prototype.render.call(_this);
|
|
3670
|
+
_super.prototype.render.call(_this, e);
|
|
3671
3671
|
if (_this.mode === 'CheckBox' && Browser.isDevice && _this.allowFiltering) {
|
|
3672
3672
|
_this.notify('popupFullScreen', { module: 'CheckBoxSelection', enable: _this.mode === 'CheckBox' });
|
|
3673
3673
|
}
|
|
@@ -3683,7 +3683,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3683
3683
|
_this.beforePopupOpen = false;
|
|
3684
3684
|
return;
|
|
3685
3685
|
}
|
|
3686
|
-
_this.onPopupShown();
|
|
3686
|
+
_this.onPopupShown(e);
|
|
3687
3687
|
}
|
|
3688
3688
|
});
|
|
3689
3689
|
};
|
|
@@ -104,6 +104,9 @@
|
|
|
104
104
|
display: none;
|
|
105
105
|
flex-direction: row;
|
|
106
106
|
margin-top: $ddl-clear-margin-top;
|
|
107
|
+
@if $ddl-multiselect-skin-name == 'tailwind' {
|
|
108
|
+
margin-top: -1.45em;
|
|
109
|
+
}
|
|
107
110
|
outline: 0;
|
|
108
111
|
padding: 0;
|
|
109
112
|
position: absolute;
|
|
@@ -389,6 +392,7 @@
|
|
|
389
392
|
}
|
|
390
393
|
@if $ddl-multiselect-skin-name == 'tailwind' {
|
|
391
394
|
height: $ddl-bigger-clear-icon-height;
|
|
395
|
+
margin-top: $ddl-clear-margin-top;
|
|
392
396
|
width: $ddl-bigger-clear-icon-width;
|
|
393
397
|
}
|
|
394
398
|
}
|
|
@@ -221,6 +221,7 @@
|
|
|
221
221
|
-ms-flex-direction: row;
|
|
222
222
|
flex-direction: row;
|
|
223
223
|
margin-top: -2em;
|
|
224
|
+
margin-top: -1.45em;
|
|
224
225
|
outline: 0;
|
|
225
226
|
padding: 0;
|
|
226
227
|
position: absolute;
|
|
@@ -401,6 +402,7 @@
|
|
|
401
402
|
.e-bigger .e-multiselect.e-control-container .e-multi-select-wrapper .e-clear-icon {
|
|
402
403
|
margin-top: -1.62em;
|
|
403
404
|
height: 36px;
|
|
405
|
+
margin-top: -2em;
|
|
404
406
|
width: 40px;
|
|
405
407
|
}
|
|
406
408
|
|
|
@@ -221,6 +221,7 @@
|
|
|
221
221
|
-ms-flex-direction: row;
|
|
222
222
|
flex-direction: row;
|
|
223
223
|
margin-top: -2em;
|
|
224
|
+
margin-top: -1.45em;
|
|
224
225
|
outline: 0;
|
|
225
226
|
padding: 0;
|
|
226
227
|
position: absolute;
|
|
@@ -401,6 +402,7 @@
|
|
|
401
402
|
.e-bigger .e-multiselect.e-control-container .e-multi-select-wrapper .e-clear-icon {
|
|
402
403
|
margin-top: -1.62em;
|
|
403
404
|
height: 36px;
|
|
405
|
+
margin-top: -2em;
|
|
404
406
|
width: 40px;
|
|
405
407
|
}
|
|
406
408
|
|
package/styles/tailwind-dark.css
CHANGED
|
@@ -1426,6 +1426,7 @@ ejs-dropdownlist {
|
|
|
1426
1426
|
-ms-flex-direction: row;
|
|
1427
1427
|
flex-direction: row;
|
|
1428
1428
|
margin-top: -2em;
|
|
1429
|
+
margin-top: -1.45em;
|
|
1429
1430
|
outline: 0;
|
|
1430
1431
|
padding: 0;
|
|
1431
1432
|
position: absolute;
|
|
@@ -1606,6 +1607,7 @@ ejs-dropdownlist {
|
|
|
1606
1607
|
.e-bigger .e-multiselect.e-control-container .e-multi-select-wrapper .e-clear-icon {
|
|
1607
1608
|
margin-top: -1.62em;
|
|
1608
1609
|
height: 36px;
|
|
1610
|
+
margin-top: -2em;
|
|
1609
1611
|
width: 40px;
|
|
1610
1612
|
}
|
|
1611
1613
|
|
package/styles/tailwind.css
CHANGED
|
@@ -1426,6 +1426,7 @@ ejs-dropdownlist {
|
|
|
1426
1426
|
-ms-flex-direction: row;
|
|
1427
1427
|
flex-direction: row;
|
|
1428
1428
|
margin-top: -2em;
|
|
1429
|
+
margin-top: -1.45em;
|
|
1429
1430
|
outline: 0;
|
|
1430
1431
|
padding: 0;
|
|
1431
1432
|
position: absolute;
|
|
@@ -1606,6 +1607,7 @@ ejs-dropdownlist {
|
|
|
1606
1607
|
.e-bigger .e-multiselect.e-control-container .e-multi-select-wrapper .e-clear-icon {
|
|
1607
1608
|
margin-top: -1.62em;
|
|
1608
1609
|
height: 36px;
|
|
1610
|
+
margin-top: -2em;
|
|
1609
1611
|
width: 40px;
|
|
1610
1612
|
}
|
|
1611
1613
|
|