@syncfusion/ej2-dropdowns 22.1.34 → 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 +16 -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 +25 -2
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +25 -2
- 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 +8 -8
- package/src/combo-box/combo-box.js +2 -0
- package/src/drop-down-base/drop-down-base.d.ts +1 -0
- package/src/drop-down-base/drop-down-base.js +3 -1
- package/src/drop-down-list/drop-down-list.d.ts +1 -0
- package/src/drop-down-list/drop-down-list.js +14 -0
- package/src/list-box/list-box.js +1 -1
- package/src/mention/mention.d.ts +1 -0
- package/src/mention/mention.js +5 -0
- package/styles/material3-dark.css +0 -6
- package/styles/material3.css +0 -6
- package/styles/multi-select/_layout.scss +4 -2
- package/styles/multi-select/material3-dark.css +0 -6
- package/styles/multi-select/material3.css +0 -6
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-
|
|
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": {
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"bundleDependencies": false,
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@syncfusion/ej2-base": "~22.1.34",
|
|
47
|
-
"@syncfusion/ej2-data": "~22.1.
|
|
47
|
+
"@syncfusion/ej2-data": "~22.1.36",
|
|
48
48
|
"@syncfusion/ej2-inputs": "~22.1.34",
|
|
49
49
|
"@syncfusion/ej2-lists": "~22.1.34",
|
|
50
|
-
"@syncfusion/ej2-navigations": "~22.1.
|
|
51
|
-
"@syncfusion/ej2-popups": "~22.1.
|
|
50
|
+
"@syncfusion/ej2-navigations": "~22.1.36",
|
|
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();
|
|
@@ -216,6 +216,7 @@ export declare class DropDownBase extends Component<HTMLElement> implements INot
|
|
|
216
216
|
protected isPreventChange: boolean;
|
|
217
217
|
protected isDynamicDataChange: boolean;
|
|
218
218
|
protected addedNewItem: boolean;
|
|
219
|
+
protected isAddNewItemTemplate: boolean;
|
|
219
220
|
/**
|
|
220
221
|
* The `fields` property maps the columns of the data table and binds the data to the component.
|
|
221
222
|
* * text - Maps the text column from data table for each list item.
|
|
@@ -89,6 +89,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
89
89
|
_this.isPreventChange = false;
|
|
90
90
|
_this.isDynamicDataChange = false;
|
|
91
91
|
_this.addedNewItem = false;
|
|
92
|
+
_this.isAddNewItemTemplate = false;
|
|
92
93
|
return _this;
|
|
93
94
|
}
|
|
94
95
|
DropDownBase.prototype.getPropObject = function (prop, newProp, oldProp) {
|
|
@@ -271,7 +272,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
271
272
|
else {
|
|
272
273
|
var l10nLocale = { noRecordsTemplate: 'No records found', actionFailureTemplate: 'Request failed' };
|
|
273
274
|
var componentLocale = new L10n(this.getLocaleName(), {}, this.locale);
|
|
274
|
-
if (componentLocale.getConstant('actionFailureTemplate') !== '') {
|
|
275
|
+
if (componentLocale.getConstant('actionFailureTemplate') !== '' || componentLocale.getConstant('noRecordsTemplate') !== '') {
|
|
275
276
|
this.l10n = componentLocale;
|
|
276
277
|
}
|
|
277
278
|
else {
|
|
@@ -1140,6 +1141,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1140
1141
|
if (!isNullOrUndefined(this.list)) {
|
|
1141
1142
|
this.list.innerHTML = '';
|
|
1142
1143
|
this.list.classList.remove(dropDownBaseClasses.noData);
|
|
1144
|
+
this.isAddNewItemTemplate = true;
|
|
1143
1145
|
if (!isNullOrUndefined(this.ulElement)) {
|
|
1144
1146
|
this.list.appendChild(this.ulElement);
|
|
1145
1147
|
}
|
|
@@ -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
|
};
|
|
@@ -2623,6 +2630,10 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2623
2630
|
if (!this.enabled) {
|
|
2624
2631
|
return;
|
|
2625
2632
|
}
|
|
2633
|
+
if (this.isReact && this.getModuleName() === 'combobox' && this.itemTemplate && this.isCustomFilter && this.isAddNewItemTemplate) {
|
|
2634
|
+
this.renderList();
|
|
2635
|
+
this.isAddNewItemTemplate = false;
|
|
2636
|
+
}
|
|
2626
2637
|
if (this.isFiltering() && this.dataSource instanceof DataManager && (this.actionData.list !== this.actionCompleteData.list) &&
|
|
2627
2638
|
this.actionData.list && this.actionData.ulElement) {
|
|
2628
2639
|
this.actionCompleteData = this.actionData;
|
|
@@ -2801,6 +2812,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2801
2812
|
this.previousSelectedLI = null;
|
|
2802
2813
|
this.valueTempElement = null;
|
|
2803
2814
|
this.actionData.ulElement = null;
|
|
2815
|
+
if (this.inputElement && !isNullOrUndefined(this.inputElement.onchange)) {
|
|
2816
|
+
this.inputElement.onchange = null;
|
|
2817
|
+
}
|
|
2804
2818
|
_super.prototype.destroy.call(this);
|
|
2805
2819
|
};
|
|
2806
2820
|
/* eslint-disable valid-jsdoc, jsdoc/require-returns-description */
|
package/src/list-box/list-box.js
CHANGED
|
@@ -459,7 +459,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
459
459
|
scrollParent = wrapper;
|
|
460
460
|
}
|
|
461
461
|
boundRect = scrollParent.getBoundingClientRect();
|
|
462
|
-
if ((boundRect.y + scrollParent.offsetHeight) - (event.
|
|
462
|
+
if ((boundRect.y + scrollParent.offsetHeight) - (event.clientY + scrollMoved) < 1) {
|
|
463
463
|
scrollParent.scrollTop = scrollParent.scrollTop + scrollHeight;
|
|
464
464
|
}
|
|
465
465
|
else if ((event.pageY - scrollMoved) - boundRect.y < 1) {
|
package/src/mention/mention.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export declare class Mention extends DropDownBase {
|
|
|
56
56
|
private isSelectCancel;
|
|
57
57
|
private isTyped;
|
|
58
58
|
private didPopupOpenByTypingInitialChar;
|
|
59
|
+
private isUpDownKey;
|
|
59
60
|
/**
|
|
60
61
|
* Defines class/multiple classes separated by a space for the mention component.
|
|
61
62
|
*
|
package/src/mention/mention.js
CHANGED
|
@@ -234,6 +234,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
234
234
|
switch (e.action) {
|
|
235
235
|
case 'down':
|
|
236
236
|
case 'up':
|
|
237
|
+
this.isUpDownKey = true;
|
|
237
238
|
this.updateUpDownAction(e);
|
|
238
239
|
break;
|
|
239
240
|
case 'tab':
|
|
@@ -298,6 +299,10 @@ var Mention = /** @class */ (function (_super) {
|
|
|
298
299
|
};
|
|
299
300
|
Mention.prototype.onKeyUp = function (e) {
|
|
300
301
|
var rangetextContent;
|
|
302
|
+
if (this.isUpDownKey && this.isPopupOpen && e.keyCode === 229) {
|
|
303
|
+
this.isUpDownKey = false;
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
301
306
|
this.isTyped = e.code !== 'Enter' && e.code !== 'Space' && e.code !== 'ArrowDown' && e.code !== 'ArrowUp' ? true : false;
|
|
302
307
|
if (document.activeElement != this.inputElement) {
|
|
303
308
|
this.inputElement.focus();
|
|
@@ -2584,12 +2584,6 @@ ejs-dropdownlist {
|
|
|
2584
2584
|
padding: 4px 12px 4px;
|
|
2585
2585
|
}
|
|
2586
2586
|
|
|
2587
|
-
.e-ddl.e-popup.e-multi-select-list-wrapper .e-filter-parent .e-input-group:not(.e-control-container) .e-clear-icon,
|
|
2588
|
-
.e-bigger .e-ddl.e-popup.e-multi-select-list-wrapper .e-filter-parent .e-input-group:not(.e-control-container) .e-clear-icon {
|
|
2589
|
-
padding-left: 8px;
|
|
2590
|
-
padding-right: 8px;
|
|
2591
|
-
}
|
|
2592
|
-
|
|
2593
2587
|
.e-ddl.e-popup.e-multi-select-list-wrapper .e-filter-parent .e-back-icon {
|
|
2594
2588
|
padding: 0 8px;
|
|
2595
2589
|
}
|
package/styles/material3.css
CHANGED
|
@@ -2640,12 +2640,6 @@ ejs-dropdownlist {
|
|
|
2640
2640
|
padding: 4px 12px 4px;
|
|
2641
2641
|
}
|
|
2642
2642
|
|
|
2643
|
-
.e-ddl.e-popup.e-multi-select-list-wrapper .e-filter-parent .e-input-group:not(.e-control-container) .e-clear-icon,
|
|
2644
|
-
.e-bigger .e-ddl.e-popup.e-multi-select-list-wrapper .e-filter-parent .e-input-group:not(.e-control-container) .e-clear-icon {
|
|
2645
|
-
padding-left: 8px;
|
|
2646
|
-
padding-right: 8px;
|
|
2647
|
-
}
|
|
2648
|
-
|
|
2649
2643
|
.e-ddl.e-popup.e-multi-select-list-wrapper .e-filter-parent .e-back-icon {
|
|
2650
2644
|
padding: 0 8px;
|
|
2651
2645
|
}
|
|
@@ -1055,8 +1055,10 @@
|
|
|
1055
1055
|
|
|
1056
1056
|
.e-ddl.e-popup.e-multi-select-list-wrapper .e-filter-parent .e-input-group:not(.e-control-container) .e-clear-icon,
|
|
1057
1057
|
.e-bigger .e-ddl.e-popup.e-multi-select-list-wrapper .e-filter-parent .e-input-group:not(.e-control-container) .e-clear-icon {
|
|
1058
|
-
|
|
1059
|
-
|
|
1058
|
+
@if $ddl-multiselect-skin-name != 'Material3' {
|
|
1059
|
+
padding-left: 8px;
|
|
1060
|
+
}
|
|
1061
|
+
@if $ddl-multiselect-skin-name == 'material' {
|
|
1060
1062
|
padding-right: 8px;
|
|
1061
1063
|
}
|
|
1062
1064
|
}
|
|
@@ -1376,12 +1376,6 @@
|
|
|
1376
1376
|
padding: 4px 12px 4px;
|
|
1377
1377
|
}
|
|
1378
1378
|
|
|
1379
|
-
.e-ddl.e-popup.e-multi-select-list-wrapper .e-filter-parent .e-input-group:not(.e-control-container) .e-clear-icon,
|
|
1380
|
-
.e-bigger .e-ddl.e-popup.e-multi-select-list-wrapper .e-filter-parent .e-input-group:not(.e-control-container) .e-clear-icon {
|
|
1381
|
-
padding-left: 8px;
|
|
1382
|
-
padding-right: 8px;
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
1379
|
.e-ddl.e-popup.e-multi-select-list-wrapper .e-filter-parent .e-back-icon {
|
|
1386
1380
|
padding: 0 8px;
|
|
1387
1381
|
}
|
|
@@ -1432,12 +1432,6 @@
|
|
|
1432
1432
|
padding: 4px 12px 4px;
|
|
1433
1433
|
}
|
|
1434
1434
|
|
|
1435
|
-
.e-ddl.e-popup.e-multi-select-list-wrapper .e-filter-parent .e-input-group:not(.e-control-container) .e-clear-icon,
|
|
1436
|
-
.e-bigger .e-ddl.e-popup.e-multi-select-list-wrapper .e-filter-parent .e-input-group:not(.e-control-container) .e-clear-icon {
|
|
1437
|
-
padding-left: 8px;
|
|
1438
|
-
padding-right: 8px;
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
1435
|
.e-ddl.e-popup.e-multi-select-list-wrapper .e-filter-parent .e-back-icon {
|
|
1442
1436
|
padding: 0 8px;
|
|
1443
1437
|
}
|