@syncfusion/ej2-dropdowns 26.1.35 → 26.1.38
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.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 +26 -0
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +26 -0
- 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 +9 -9
- package/src/drop-down-tree/drop-down-tree.js +15 -0
- package/src/list-box/list-box.d.ts +1 -0
- package/src/list-box/list-box.js +11 -0
- package/styles/bootstrap-dark.css +1 -0
- package/styles/bootstrap.css +1 -0
- package/styles/bootstrap4.css +1 -0
- package/styles/bootstrap5-dark.css +1 -0
- package/styles/bootstrap5.css +1 -0
- package/styles/drop-down-tree/_layout.scss +1 -0
- package/styles/drop-down-tree/bootstrap-dark.css +1 -0
- package/styles/drop-down-tree/bootstrap.css +1 -0
- package/styles/drop-down-tree/bootstrap4.css +1 -0
- package/styles/drop-down-tree/bootstrap5-dark.css +1 -0
- package/styles/drop-down-tree/bootstrap5.css +1 -0
- package/styles/drop-down-tree/fabric-dark.css +1 -0
- package/styles/drop-down-tree/fabric.css +1 -0
- package/styles/drop-down-tree/fluent-dark.css +1 -0
- package/styles/drop-down-tree/fluent.css +1 -0
- package/styles/drop-down-tree/fluent2.css +1 -0
- package/styles/drop-down-tree/highcontrast-light.css +1 -0
- package/styles/drop-down-tree/highcontrast.css +1 -0
- package/styles/drop-down-tree/material-dark.css +1 -0
- package/styles/drop-down-tree/material.css +1 -0
- package/styles/drop-down-tree/material3-dark.css +1 -0
- package/styles/drop-down-tree/material3.css +1 -0
- package/styles/drop-down-tree/tailwind-dark.css +1 -0
- package/styles/drop-down-tree/tailwind.css +1 -0
- package/styles/fabric-dark.css +1 -0
- package/styles/fabric.css +1 -0
- package/styles/fluent-dark.css +1 -0
- package/styles/fluent.css +1 -0
- package/styles/fluent2.css +1 -0
- package/styles/highcontrast-light.css +1 -0
- package/styles/highcontrast.css +1 -0
- package/styles/material-dark.css +1 -0
- package/styles/material.css +1 -0
- package/styles/material3-dark.css +1 -0
- package/styles/material3.css +1 -0
- package/styles/tailwind-dark.css +1 -0
- package/styles/tailwind.css +1 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 26.1.
|
|
3
|
+
* version : 26.1.38
|
|
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@
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@26.1.35",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-bLTq5w0LgHIjmhRGYRmgdxrImVc62GVk9OLKHiI4XJPCcjJYj0Dd8x/2LwMXoupPJ/YsJOEzChc2epZ59EX6tg==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"/@syncfusion/ej2-spreadsheet",
|
|
36
36
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
37
37
|
],
|
|
38
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-
|
|
39
|
-
"_shasum": "
|
|
38
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-26.1.35.tgz",
|
|
39
|
+
"_shasum": "fd4f3d459fa12ed484018077a9befb3f4053bb2d",
|
|
40
40
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
41
41
|
"_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
|
|
42
42
|
"author": {
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
},
|
|
45
45
|
"bundleDependencies": false,
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@syncfusion/ej2-base": "~26.1.
|
|
47
|
+
"@syncfusion/ej2-base": "~26.1.37",
|
|
48
48
|
"@syncfusion/ej2-data": "~26.1.35",
|
|
49
|
-
"@syncfusion/ej2-inputs": "~26.1.
|
|
49
|
+
"@syncfusion/ej2-inputs": "~26.1.38",
|
|
50
50
|
"@syncfusion/ej2-lists": "~26.1.35",
|
|
51
|
-
"@syncfusion/ej2-navigations": "~26.1.
|
|
51
|
+
"@syncfusion/ej2-navigations": "~26.1.38",
|
|
52
52
|
"@syncfusion/ej2-notifications": "~26.1.35",
|
|
53
|
-
"@syncfusion/ej2-popups": "~26.1.
|
|
53
|
+
"@syncfusion/ej2-popups": "~26.1.38"
|
|
54
54
|
},
|
|
55
55
|
"deprecated": false,
|
|
56
56
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"module": "./index.js",
|
|
76
76
|
"name": "@syncfusion/ej2-dropdowns",
|
|
77
77
|
"typings": "index.d.ts",
|
|
78
|
-
"version": "26.1.
|
|
78
|
+
"version": "26.1.38",
|
|
79
79
|
"sideEffects": false,
|
|
80
80
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
81
81
|
}
|
|
@@ -1452,6 +1452,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
this.currentText = this.text;
|
|
1454
1454
|
this.currentValue = this.value;
|
|
1455
|
+
if (!isNOU(this.value) && this.value.length > 0 && !isNOU(this.currentText)) {
|
|
1456
|
+
this.inputWrapper.setAttribute('aria-label', this.currentText.split(',').join(' '));
|
|
1457
|
+
}
|
|
1455
1458
|
if (this.isInitialized) {
|
|
1456
1459
|
this.triggerChangeEvent();
|
|
1457
1460
|
}
|
|
@@ -1992,6 +1995,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1992
1995
|
this.setProperties({ text: selectedText }, true);
|
|
1993
1996
|
this.currentText = this.text;
|
|
1994
1997
|
this.currentValue = this.value;
|
|
1998
|
+
if (!isNOU(this.value) && this.value.length > 0) {
|
|
1999
|
+
this.inputWrapper.setAttribute('aria-label', args.nodeData.text.toString());
|
|
2000
|
+
}
|
|
1995
2001
|
attributes(this.inputWrapper, { 'aria-describedby': this.element.id });
|
|
1996
2002
|
attributes(this.inputWrapper, { 'aria-activedescendant': id.toString() });
|
|
1997
2003
|
this.updateHiddenValue();
|
|
@@ -2361,6 +2367,12 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2361
2367
|
}
|
|
2362
2368
|
this.currentText = this.text;
|
|
2363
2369
|
this.currentValue = this.value;
|
|
2370
|
+
if (!isNOU(this.value) && this.value.length > 0 && !isNOU(this.currentText)) {
|
|
2371
|
+
this.inputWrapper.setAttribute('aria-label', this.currentText.split(',').join(' '));
|
|
2372
|
+
}
|
|
2373
|
+
else {
|
|
2374
|
+
this.inputWrapper.setAttribute('aria-label', this.getModuleName());
|
|
2375
|
+
}
|
|
2364
2376
|
};
|
|
2365
2377
|
DropDownTree.prototype.setChipValues = function (text, value) {
|
|
2366
2378
|
if (!this.inputWrapper.contains(this.chipWrapper)) {
|
|
@@ -2541,6 +2553,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2541
2553
|
this.oldValue = this.value;
|
|
2542
2554
|
this.setProperties({ value: [] }, true);
|
|
2543
2555
|
}
|
|
2556
|
+
if (isNOU(this.value) || this.value.length === 0) {
|
|
2557
|
+
this.inputWrapper.setAttribute('aria-label', this.getModuleName());
|
|
2558
|
+
}
|
|
2544
2559
|
this.dataValue = null;
|
|
2545
2560
|
this.setProperties({ text: null }, true);
|
|
2546
2561
|
this.selectedData = [];
|
|
@@ -583,6 +583,7 @@ export declare class ListBox extends DropDownBase {
|
|
|
583
583
|
protected targetElement(): string;
|
|
584
584
|
private dataUpdater;
|
|
585
585
|
private focusOutHandler;
|
|
586
|
+
private resizeHandler;
|
|
586
587
|
private getValidIndex;
|
|
587
588
|
private updateSelectedOptions;
|
|
588
589
|
private clearSelection;
|
package/src/list-box/list-box.js
CHANGED
|
@@ -181,6 +181,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
181
181
|
this.list.setAttribute('role', 'listbox');
|
|
182
182
|
attributes(this.list, { 'role': 'listbox', 'aria-label': 'listbox', 'aria-multiselectable': this.selectionSettings.mode === 'Multiple' ? 'true' : 'false' });
|
|
183
183
|
this.updateSelectionSettings();
|
|
184
|
+
this.resizeHandler();
|
|
184
185
|
};
|
|
185
186
|
ListBox.prototype.updateSelectionSettings = function () {
|
|
186
187
|
if (this.selectionSettings.showCheckbox && this.selectionSettings.showSelectAll && this.liCollections.length) {
|
|
@@ -1162,6 +1163,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1162
1163
|
if (form) {
|
|
1163
1164
|
EventHandler.add(form, 'reset', this.formResetHandler, this);
|
|
1164
1165
|
}
|
|
1166
|
+
window.addEventListener('resize', this.resizeHandler.bind(this));
|
|
1165
1167
|
};
|
|
1166
1168
|
ListBox.prototype.wireToolbarEvent = function () {
|
|
1167
1169
|
if (this.toolbarSettings.items.length) {
|
|
@@ -1183,6 +1185,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1183
1185
|
if (form) {
|
|
1184
1186
|
EventHandler.remove(form, 'reset', this.formResetHandler);
|
|
1185
1187
|
}
|
|
1188
|
+
window.removeEventListener('resize', this.resizeHandler.bind(this));
|
|
1186
1189
|
};
|
|
1187
1190
|
ListBox.prototype.clickHandler = function (e) {
|
|
1188
1191
|
var li = closest(e.target, '.' + 'e-list-item');
|
|
@@ -2037,6 +2040,14 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
2037
2040
|
this.refreshClearIcon();
|
|
2038
2041
|
}
|
|
2039
2042
|
};
|
|
2043
|
+
ListBox.prototype.resizeHandler = function () {
|
|
2044
|
+
if (this.list.scrollWidth > this.list.offsetWidth) {
|
|
2045
|
+
this.list.querySelector('.e-list-parent').style.display = 'inline-block';
|
|
2046
|
+
}
|
|
2047
|
+
else {
|
|
2048
|
+
this.list.querySelector('.e-list-parent').style.display = 'block';
|
|
2049
|
+
}
|
|
2050
|
+
};
|
|
2040
2051
|
ListBox.prototype.getValidIndex = function (cli, index, keyCode) {
|
|
2041
2052
|
var cul = this.ulElement;
|
|
2042
2053
|
if (cli.classList.contains('e-disabled') || cli.classList.contains(cssClass.group)) {
|
package/styles/bootstrap.css
CHANGED
package/styles/bootstrap4.css
CHANGED
package/styles/bootstrap5.css
CHANGED
|
@@ -349,6 +349,7 @@
|
|
|
349
349
|
.e-ddt .e-dropdowntree.e-chip-input,
|
|
350
350
|
.e-ddt input[readonly].e-input.e-chip-input {
|
|
351
351
|
width: 0;
|
|
352
|
+
display: none;
|
|
352
353
|
}
|
|
353
354
|
.e-ddt.e-popup {
|
|
354
355
|
-webkit-box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 0px rgba(0, 0, 0, 0.14), 0 3px 14px 0px rgba(0, 0, 0, 0.12);
|
package/styles/fabric-dark.css
CHANGED
package/styles/fabric.css
CHANGED
package/styles/fluent-dark.css
CHANGED
package/styles/fluent.css
CHANGED
package/styles/fluent2.css
CHANGED
package/styles/highcontrast.css
CHANGED
package/styles/material-dark.css
CHANGED
package/styles/material.css
CHANGED
|
@@ -1122,6 +1122,7 @@ ejs-dropdownlist {
|
|
|
1122
1122
|
.e-ddt .e-dropdowntree.e-chip-input,
|
|
1123
1123
|
.e-ddt input[readonly].e-input.e-chip-input {
|
|
1124
1124
|
width: 0;
|
|
1125
|
+
display: none;
|
|
1125
1126
|
}
|
|
1126
1127
|
.e-ddt.e-popup {
|
|
1127
1128
|
-webkit-box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 0px rgba(0, 0, 0, 0.14), 0 3px 14px 0px rgba(0, 0, 0, 0.12);
|
package/styles/material3.css
CHANGED
package/styles/tailwind-dark.css
CHANGED