@syncfusion/ej2-dropdowns 24.1.46 → 24.2.3
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 +48 -27
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +48 -27
- 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 +12 -12
- package/src/drop-down-base/drop-down-base.js +26 -20
- package/src/list-box/list-box.js +13 -0
- package/src/mention/mention.js +6 -6
- package/src/multi-select/multi-select.js +3 -1
- package/styles/bootstrap-dark.css +0 -5
- package/styles/bootstrap.css +0 -5
- package/styles/bootstrap4.css +0 -5
- package/styles/bootstrap5-dark.css +0 -5
- package/styles/bootstrap5.css +0 -5
- package/styles/drop-down-base/_layout.scss +0 -5
- package/styles/drop-down-base/bootstrap-dark.css +0 -5
- package/styles/drop-down-base/bootstrap.css +0 -5
- package/styles/drop-down-base/bootstrap4.css +0 -5
- package/styles/drop-down-base/bootstrap5-dark.css +0 -5
- package/styles/drop-down-base/bootstrap5.css +0 -5
- package/styles/drop-down-base/fabric-dark.css +0 -5
- package/styles/drop-down-base/fabric.css +0 -5
- package/styles/drop-down-base/fluent-dark.css +0 -5
- package/styles/drop-down-base/fluent.css +0 -5
- package/styles/drop-down-base/highcontrast-light.css +0 -5
- package/styles/drop-down-base/highcontrast.css +0 -5
- package/styles/drop-down-base/material-dark.css +0 -5
- package/styles/drop-down-base/material.css +0 -5
- package/styles/drop-down-base/material3-dark.css +0 -5
- package/styles/drop-down-base/material3.css +0 -5
- package/styles/drop-down-base/tailwind-dark.css +0 -5
- package/styles/drop-down-base/tailwind.css +0 -5
- package/styles/fabric-dark.css +0 -5
- package/styles/fabric.css +0 -5
- package/styles/fluent-dark.css +0 -5
- package/styles/fluent.css +0 -5
- package/styles/highcontrast-light.css +0 -5
- package/styles/highcontrast.css +0 -5
- package/styles/material-dark.css +0 -5
- package/styles/material.css +0 -5
- package/styles/material3-dark.css +0 -5
- package/styles/material3.css +0 -5
- package/styles/tailwind-dark.css +0 -5
- package/styles/tailwind.css +0 -5
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 24.
|
|
3
|
+
* version : 24.2.3
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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@24.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@24.1.47",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-I3+Mj2wn5OPW697yvRQWhro8Icabx1JIekMBEsV/HpiHgy3F3GIoVZpagekzhRnlGGzWrAWngi5yn5YWHOgR2A==",
|
|
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-24.1.
|
|
38
|
-
"_shasum": "
|
|
37
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-24.1.47.tgz",
|
|
38
|
+
"_shasum": "152c36b552fa7b299fc54980ce7c316016c3fd26",
|
|
39
39
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
40
40
|
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
41
41
|
"author": {
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
},
|
|
44
44
|
"bundleDependencies": false,
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@syncfusion/ej2-base": "~24.
|
|
47
|
-
"@syncfusion/ej2-data": "~24.
|
|
48
|
-
"@syncfusion/ej2-inputs": "~24.
|
|
49
|
-
"@syncfusion/ej2-lists": "~24.
|
|
50
|
-
"@syncfusion/ej2-navigations": "~24.
|
|
51
|
-
"@syncfusion/ej2-notifications": "~24.
|
|
52
|
-
"@syncfusion/ej2-popups": "~24.
|
|
46
|
+
"@syncfusion/ej2-base": "~24.2.3",
|
|
47
|
+
"@syncfusion/ej2-data": "~24.2.3",
|
|
48
|
+
"@syncfusion/ej2-inputs": "~24.2.3",
|
|
49
|
+
"@syncfusion/ej2-lists": "~24.2.3",
|
|
50
|
+
"@syncfusion/ej2-navigations": "~24.2.3",
|
|
51
|
+
"@syncfusion/ej2-notifications": "~24.2.3",
|
|
52
|
+
"@syncfusion/ej2-popups": "~24.2.3"
|
|
53
53
|
},
|
|
54
54
|
"deprecated": false,
|
|
55
55
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"module": "./index.js",
|
|
75
75
|
"name": "@syncfusion/ej2-dropdowns",
|
|
76
76
|
"typings": "index.d.ts",
|
|
77
|
-
"version": "24.
|
|
77
|
+
"version": "24.2.3",
|
|
78
78
|
"sideEffects": false,
|
|
79
79
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
80
80
|
}
|
|
@@ -800,24 +800,27 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
800
800
|
* @returns {HTMLElement} Return the ul li list items.
|
|
801
801
|
*/
|
|
802
802
|
DropDownBase.prototype.createListItems = function (dataSource, fields) {
|
|
803
|
-
if (dataSource
|
|
804
|
-
if (fields.groupBy) {
|
|
805
|
-
if (
|
|
806
|
-
|
|
803
|
+
if (dataSource) {
|
|
804
|
+
if (fields.groupBy || this.element.querySelector('optgroup')) {
|
|
805
|
+
if (fields.groupBy) {
|
|
806
|
+
if (this.sortOrder !== 'None') {
|
|
807
|
+
dataSource = this.getSortedDataSource(dataSource);
|
|
808
|
+
}
|
|
809
|
+
dataSource = ListBase.groupDataSource(dataSource, fields.properties, this.sortOrder);
|
|
807
810
|
}
|
|
808
|
-
|
|
811
|
+
addClass([this.list], dropDownBaseClasses.grouping);
|
|
809
812
|
}
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
813
|
+
else {
|
|
814
|
+
dataSource = this.getSortedDataSource(dataSource);
|
|
815
|
+
}
|
|
816
|
+
var options = this.listOption(dataSource, fields);
|
|
817
|
+
var spliceData = (dataSource.length > 100) ?
|
|
818
|
+
new DataManager(dataSource).executeLocal(new Query().take(100))
|
|
819
|
+
: dataSource;
|
|
820
|
+
this.sortedData = dataSource;
|
|
821
|
+
return ListBase.createList(this.createElement, (this.getModuleName() === 'autocomplete') ? spliceData : dataSource, options, true, this);
|
|
814
822
|
}
|
|
815
|
-
|
|
816
|
-
var spliceData = (dataSource.length > 100) ?
|
|
817
|
-
new DataManager(dataSource).executeLocal(new Query().take(100))
|
|
818
|
-
: dataSource;
|
|
819
|
-
this.sortedData = dataSource;
|
|
820
|
-
return ListBase.createList(this.createElement, (this.getModuleName() === 'autocomplete') ? spliceData : dataSource, options, true, this);
|
|
823
|
+
return null;
|
|
821
824
|
};
|
|
822
825
|
DropDownBase.prototype.listOption = function (dataSource, fields) {
|
|
823
826
|
var iconCss = isNullOrUndefined(fields.iconCss) ? false : true;
|
|
@@ -905,7 +908,8 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
905
908
|
};
|
|
906
909
|
DropDownBase.prototype.updateGroupFixedHeader = function (element, target) {
|
|
907
910
|
this.fixedHeaderElement.innerHTML = element.innerHTML;
|
|
908
|
-
this.fixedHeaderElement.style.
|
|
911
|
+
this.fixedHeaderElement.style.position = 'fixed';
|
|
912
|
+
this.fixedHeaderElement.style.top = this.list.parentElement.offsetTop + this.list.offsetTop + 'px';
|
|
909
913
|
this.fixedHeaderElement.style.display = 'block';
|
|
910
914
|
};
|
|
911
915
|
DropDownBase.prototype.getValidLi = function () {
|
|
@@ -1080,10 +1084,12 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1080
1084
|
DropDownBase.prototype.getIndexByValueFilter = function (value) {
|
|
1081
1085
|
var index;
|
|
1082
1086
|
var listItems = this.renderItems(this.selectData, this.fields);
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
+
if (listItems && listItems.children) {
|
|
1088
|
+
for (var i = 0; i < listItems.children.length; i++) {
|
|
1089
|
+
if (!isNullOrUndefined(value) && listItems.children[i].getAttribute('data-value') === value.toString()) {
|
|
1090
|
+
index = i;
|
|
1091
|
+
break;
|
|
1092
|
+
}
|
|
1087
1093
|
}
|
|
1088
1094
|
}
|
|
1089
1095
|
return index;
|
package/src/list-box/list-box.js
CHANGED
|
@@ -378,6 +378,19 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
378
378
|
this.list.insertBefore(searchEle, this.list.firstElementChild);
|
|
379
379
|
this.filterParent = this.list.getElementsByClassName('e-filter-parent')[0];
|
|
380
380
|
this.filterWireEvents(searchEle);
|
|
381
|
+
var inputSearch = searchEle.querySelector('.e-input-filter');
|
|
382
|
+
if (inputSearch) {
|
|
383
|
+
inputSearch.addEventListener('focus', function () {
|
|
384
|
+
if (!searchEle.childNodes[0].classList.contains('e-input-focus')) {
|
|
385
|
+
searchEle.childNodes[0].classList.add('e-input-focus');
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
inputSearch.addEventListener('blur', function () {
|
|
389
|
+
if (searchEle.childNodes[0].classList.contains('e-input-focus')) {
|
|
390
|
+
searchEle.childNodes[0].classList.remove('e-input-focus');
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
}
|
|
381
394
|
}
|
|
382
395
|
this.initWrapper();
|
|
383
396
|
this.setSelection();
|
package/src/mention/mention.js
CHANGED
|
@@ -1178,12 +1178,6 @@ var Mention = /** @class */ (function (_super) {
|
|
|
1178
1178
|
if (this.isPopupOpen) {
|
|
1179
1179
|
this.hidePopup();
|
|
1180
1180
|
}
|
|
1181
|
-
//New event to update the RichTextEditor value, when a mention item is selected using mouse click action.
|
|
1182
|
-
if (!isNullOrUndefined(e.pointerType) && e.pointerType === 'mouse') {
|
|
1183
|
-
var event_1 = new CustomEvent('content-changed', { detail: { click: true } });
|
|
1184
|
-
this.inputElement.dispatchEvent(event_1);
|
|
1185
|
-
}
|
|
1186
|
-
;
|
|
1187
1181
|
this.onChangeEvent(e);
|
|
1188
1182
|
}
|
|
1189
1183
|
else {
|
|
@@ -1229,6 +1223,12 @@ var Mention = /** @class */ (function (_super) {
|
|
|
1229
1223
|
if (this.isPopupOpen) {
|
|
1230
1224
|
this.hidePopup();
|
|
1231
1225
|
}
|
|
1226
|
+
//New event to update the RichTextEditor value, when a mention item is selected using mouse click action.
|
|
1227
|
+
if (!isNullOrUndefined(e.pointerType) && e.pointerType === 'mouse') {
|
|
1228
|
+
var event_1 = new CustomEvent('content-changed', { detail: { click: true } });
|
|
1229
|
+
this.inputElement.dispatchEvent(event_1);
|
|
1230
|
+
}
|
|
1231
|
+
;
|
|
1232
1232
|
this.onChangeEvent(e);
|
|
1233
1233
|
}
|
|
1234
1234
|
};
|
|
@@ -327,7 +327,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
327
327
|
}
|
|
328
328
|
if (activeElement && activeElement.item !== null) {
|
|
329
329
|
this.addListFocus(activeElement.item);
|
|
330
|
-
this.
|
|
330
|
+
if (((this.allowCustomValue || this.allowFiltering) && this.isPopupOpen() && this.closePopupOnSelect) || this.closePopupOnSelect) {
|
|
331
|
+
this.scrollBottom(activeElement.item, activeElement.index);
|
|
332
|
+
}
|
|
331
333
|
}
|
|
332
334
|
};
|
|
333
335
|
MultiSelect.prototype.getAriaAttributes = function () {
|
package/styles/bootstrap.css
CHANGED
package/styles/bootstrap4.css
CHANGED
package/styles/bootstrap5.css
CHANGED
|
@@ -101,11 +101,6 @@
|
|
|
101
101
|
cursor: default;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
.e-mention .e-mention-chip::selection {
|
|
105
|
-
color: $mention-gradient-color;
|
|
106
|
-
background: $mention-active-font-color;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
104
|
.e-mention.e-editable-element {
|
|
110
105
|
border: 2px solid $ddl-list-border-color;
|
|
111
106
|
height: auto;
|
|
@@ -160,11 +160,6 @@
|
|
|
160
160
|
cursor: default;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
.e-mention .e-mention-chip::selection {
|
|
164
|
-
color: rgba(var(--color-sf-surface));
|
|
165
|
-
background: rgba(var(--color-sf-primary));
|
|
166
|
-
}
|
|
167
|
-
|
|
168
163
|
.e-mention.e-editable-element {
|
|
169
164
|
border: 2px solid #e0e0e0;
|
|
170
165
|
height: auto;
|
|
@@ -216,11 +216,6 @@
|
|
|
216
216
|
cursor: default;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
.e-mention .e-mention-chip::selection {
|
|
220
|
-
color: rgba(var(--color-sf-surface));
|
|
221
|
-
background: rgba(var(--color-sf-primary));
|
|
222
|
-
}
|
|
223
|
-
|
|
224
219
|
.e-mention.e-editable-element {
|
|
225
220
|
border: 2px solid #e0e0e0;
|
|
226
221
|
height: auto;
|
package/styles/fabric-dark.css
CHANGED
package/styles/fabric.css
CHANGED
package/styles/fluent-dark.css
CHANGED
package/styles/fluent.css
CHANGED
package/styles/highcontrast.css
CHANGED
package/styles/material-dark.css
CHANGED
package/styles/material.css
CHANGED
|
@@ -160,11 +160,6 @@
|
|
|
160
160
|
cursor: default;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
.e-mention .e-mention-chip::selection {
|
|
164
|
-
color: rgba(var(--color-sf-surface));
|
|
165
|
-
background: rgba(var(--color-sf-primary));
|
|
166
|
-
}
|
|
167
|
-
|
|
168
163
|
.e-mention.e-editable-element {
|
|
169
164
|
border: 2px solid #e0e0e0;
|
|
170
165
|
height: auto;
|
package/styles/material3.css
CHANGED
|
@@ -216,11 +216,6 @@
|
|
|
216
216
|
cursor: default;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
.e-mention .e-mention-chip::selection {
|
|
220
|
-
color: rgba(var(--color-sf-surface));
|
|
221
|
-
background: rgba(var(--color-sf-primary));
|
|
222
|
-
}
|
|
223
|
-
|
|
224
219
|
.e-mention.e-editable-element {
|
|
225
220
|
border: 2px solid #e0e0e0;
|
|
226
221
|
height: auto;
|
package/styles/tailwind-dark.css
CHANGED
package/styles/tailwind.css
CHANGED