@syncfusion/ej2-dropdowns 22.1.36 → 22.1.37
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 +10 -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 +13 -1
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +13 -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 +6 -6
- package/src/combo-box/combo-box.js +2 -0
- package/src/drop-down-base/drop-down-base.js +1 -1
- package/src/drop-down-list/drop-down-list.d.ts +1 -0
- package/src/drop-down-list/drop-down-list.js +10 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 22.1.
|
|
3
|
+
* version : 22.1.37
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-dropdowns@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-dropdowns@
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@22.1.36",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-fHgDG/D8twNtHALliOERecK7QClG+Sr0260BDqSjwpo0JVsVj/g5jlVa+bWkGTXo/5BCkmuYObNY9Q8a2lvpfA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"/@syncfusion/ej2-spreadsheet",
|
|
35
35
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
36
36
|
],
|
|
37
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-
|
|
38
|
-
"_shasum": "
|
|
37
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-22.1.36.tgz",
|
|
38
|
+
"_shasum": "d0a7c1dc6f28b2f1c1a7ce5bb22e9c519bfca4c2",
|
|
39
39
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
40
40
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
41
41
|
"author": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@syncfusion/ej2-inputs": "~22.1.34",
|
|
49
49
|
"@syncfusion/ej2-lists": "~22.1.34",
|
|
50
50
|
"@syncfusion/ej2-navigations": "~22.1.36",
|
|
51
|
-
"@syncfusion/ej2-popups": "~22.1.
|
|
51
|
+
"@syncfusion/ej2-popups": "~22.1.37"
|
|
52
52
|
},
|
|
53
53
|
"deprecated": false,
|
|
54
54
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"module": "./index.js",
|
|
74
74
|
"name": "@syncfusion/ej2-dropdowns",
|
|
75
75
|
"typings": "index.d.ts",
|
|
76
|
-
"version": "22.1.
|
|
76
|
+
"version": "22.1.37",
|
|
77
77
|
"sideEffects": false,
|
|
78
78
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
79
79
|
}
|
|
@@ -85,6 +85,7 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
85
85
|
EventHandler.add(this.inputElement, 'keyup', this.onFilterUp, this);
|
|
86
86
|
EventHandler.add(this.inputElement, 'keydown', this.onFilterDown, this);
|
|
87
87
|
EventHandler.add(this.inputElement, 'paste', this.pasteHandler, this);
|
|
88
|
+
EventHandler.add(window, 'resize', this.windowResize, this);
|
|
88
89
|
}
|
|
89
90
|
this.bindCommonEvent();
|
|
90
91
|
};
|
|
@@ -439,6 +440,7 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
439
440
|
EventHandler.remove(this.inputElement, 'keyup', this.onFilterUp);
|
|
440
441
|
EventHandler.remove(this.inputElement, 'keydown', this.onFilterDown);
|
|
441
442
|
EventHandler.remove(this.inputElement, 'paste', this.pasteHandler);
|
|
443
|
+
EventHandler.remove(window, 'resize', this.windowResize);
|
|
442
444
|
}
|
|
443
445
|
}
|
|
444
446
|
this.unBindCommonEvent();
|
|
@@ -272,7 +272,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
272
272
|
else {
|
|
273
273
|
var l10nLocale = { noRecordsTemplate: 'No records found', actionFailureTemplate: 'Request failed' };
|
|
274
274
|
var componentLocale = new L10n(this.getLocaleName(), {}, this.locale);
|
|
275
|
-
if (componentLocale.getConstant('actionFailureTemplate') !== '') {
|
|
275
|
+
if (componentLocale.getConstant('actionFailureTemplate') !== '' || componentLocale.getConstant('noRecordsTemplate') !== '') {
|
|
276
276
|
this.l10n = componentLocale;
|
|
277
277
|
}
|
|
278
278
|
else {
|
|
@@ -380,6 +380,7 @@ export declare class DropDownList extends DropDownBase implements IInput {
|
|
|
380
380
|
private resetValueHandler;
|
|
381
381
|
protected wireEvent(): void;
|
|
382
382
|
protected bindCommonEvent(): void;
|
|
383
|
+
protected windowResize(): void;
|
|
383
384
|
private bindClearEvent;
|
|
384
385
|
protected unBindCommonEvent(): void;
|
|
385
386
|
protected updateIconState(): void;
|
|
@@ -476,6 +476,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
476
476
|
EventHandler.add(this.inputWrapper.container, 'mousedown', this.dropDownClick, this);
|
|
477
477
|
EventHandler.add(this.inputWrapper.container, 'focus', this.focusIn, this);
|
|
478
478
|
EventHandler.add(this.inputWrapper.container, 'keypress', this.onSearch, this);
|
|
479
|
+
EventHandler.add(window, 'resize', this.windowResize, this);
|
|
479
480
|
this.bindCommonEvent();
|
|
480
481
|
};
|
|
481
482
|
DropDownList.prototype.bindCommonEvent = function () {
|
|
@@ -496,6 +497,11 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
496
497
|
}
|
|
497
498
|
this.bindClearEvent();
|
|
498
499
|
};
|
|
500
|
+
DropDownList.prototype.windowResize = function () {
|
|
501
|
+
if (this.isPopupOpen) {
|
|
502
|
+
this.popupObj.refreshPosition(this.inputWrapper.container);
|
|
503
|
+
}
|
|
504
|
+
};
|
|
499
505
|
DropDownList.prototype.bindClearEvent = function () {
|
|
500
506
|
if (this.showClearButton) {
|
|
501
507
|
EventHandler.add(this.inputWrapper.clearButton, 'mousedown', this.resetHandler, this);
|
|
@@ -821,6 +827,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
821
827
|
EventHandler.remove(this.inputWrapper.container, 'mousedown', this.dropDownClick);
|
|
822
828
|
EventHandler.remove(this.inputWrapper.container, 'keypress', this.onSearch);
|
|
823
829
|
EventHandler.remove(this.inputWrapper.container, 'focus', this.focusIn);
|
|
830
|
+
EventHandler.remove(window, 'resize', this.windowResize);
|
|
824
831
|
}
|
|
825
832
|
this.unBindCommonEvent();
|
|
826
833
|
};
|
|
@@ -2805,6 +2812,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2805
2812
|
this.previousSelectedLI = null;
|
|
2806
2813
|
this.valueTempElement = null;
|
|
2807
2814
|
this.actionData.ulElement = null;
|
|
2815
|
+
if (this.inputElement && !isNullOrUndefined(this.inputElement.onchange)) {
|
|
2816
|
+
this.inputElement.onchange = null;
|
|
2817
|
+
}
|
|
2808
2818
|
_super.prototype.destroy.call(this);
|
|
2809
2819
|
};
|
|
2810
2820
|
/* eslint-disable valid-jsdoc, jsdoc/require-returns-description */
|