@syncfusion/ej2-dropdowns 21.1.41 → 21.2.4
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 +17 -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 +23 -4
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +23 -4
- 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/drop-down-base/drop-down-base.js +11 -2
- package/src/drop-down-list/drop-down-list.js +1 -0
- package/src/drop-down-tree/drop-down-tree.js +2 -2
- package/src/list-box/list-box.js +9 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 21.
|
|
3
|
+
* version : 21.2.4
|
|
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@21.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@21.2.3",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-JVKNtitfN3J8767lItvh9Cr49uUeoupwGDWFWma9orTNjrX4YDbkVwlzJpxDzMShBL5dh3HI/rfL/EJl/wal+Q==",
|
|
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-21.
|
|
38
|
-
"_shasum": "
|
|
37
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-21.2.3.tgz",
|
|
38
|
+
"_shasum": "799212ce84da0ada5709d13902bd03562f50e0f3",
|
|
39
39
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
40
40
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
41
41
|
"author": {
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
},
|
|
44
44
|
"bundleDependencies": false,
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@syncfusion/ej2-base": "~21.
|
|
47
|
-
"@syncfusion/ej2-data": "~21.
|
|
48
|
-
"@syncfusion/ej2-inputs": "~21.
|
|
49
|
-
"@syncfusion/ej2-lists": "~21.
|
|
50
|
-
"@syncfusion/ej2-navigations": "~21.
|
|
51
|
-
"@syncfusion/ej2-popups": "~21.
|
|
46
|
+
"@syncfusion/ej2-base": "~21.2.3",
|
|
47
|
+
"@syncfusion/ej2-data": "~21.2.4",
|
|
48
|
+
"@syncfusion/ej2-inputs": "~21.2.4",
|
|
49
|
+
"@syncfusion/ej2-lists": "~21.2.3",
|
|
50
|
+
"@syncfusion/ej2-navigations": "~21.2.4",
|
|
51
|
+
"@syncfusion/ej2-popups": "~21.2.4"
|
|
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": "21.
|
|
76
|
+
"version": "21.2.4",
|
|
77
77
|
"sideEffects": false,
|
|
78
78
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
79
79
|
}
|
|
@@ -249,9 +249,18 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
249
249
|
if (noDataCompTemp && noDataCompTemp.length > 0) {
|
|
250
250
|
for (var i = 0; i < noDataCompTemp.length; i++) {
|
|
251
251
|
if (this.getModuleName() === 'listbox' && templateName === 'noRecordsTemplate') {
|
|
252
|
-
noDataCompTemp[i].
|
|
252
|
+
if (noDataCompTemp[i].nodeName === '#text') {
|
|
253
|
+
var liElem = this.createElement('li');
|
|
254
|
+
liElem.textContent = noDataCompTemp[i].textContent;
|
|
255
|
+
liElem.classList.add('e-list-nrt');
|
|
256
|
+
liElem.setAttribute('role', 'option');
|
|
257
|
+
ele.appendChild(liElem);
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
noDataCompTemp[i].classList.add('e-list-nr-template');
|
|
261
|
+
ele.appendChild(noDataCompTemp[i]);
|
|
262
|
+
}
|
|
253
263
|
}
|
|
254
|
-
ele.appendChild(noDataCompTemp[i]);
|
|
255
264
|
}
|
|
256
265
|
}
|
|
257
266
|
this.renderReactTemplates();
|
|
@@ -2796,6 +2796,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2796
2796
|
this.header = null;
|
|
2797
2797
|
this.previousSelectedLI = null;
|
|
2798
2798
|
this.valueTempElement = null;
|
|
2799
|
+
this.actionData.ulElement = null;
|
|
2799
2800
|
_super.prototype.destroy.call(this);
|
|
2800
2801
|
};
|
|
2801
2802
|
/* eslint-disable valid-jsdoc, jsdoc/require-returns-description */
|
|
@@ -862,7 +862,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
862
862
|
case 'moveDown':
|
|
863
863
|
var focusedElement = _this.treeObj.element.querySelector('li');
|
|
864
864
|
focusedElement.focus();
|
|
865
|
-
addClass([focusedElement], ['e-
|
|
865
|
+
addClass([focusedElement], ['e-node-focus']);
|
|
866
866
|
}
|
|
867
867
|
}
|
|
868
868
|
});
|
|
@@ -1541,7 +1541,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1541
1541
|
&& _this.treeItems.length > 0)) {
|
|
1542
1542
|
var focusedElement = _this.treeObj.element.querySelector('li');
|
|
1543
1543
|
focusedElement.focus();
|
|
1544
|
-
addClass([focusedElement], ['e-
|
|
1544
|
+
addClass([focusedElement], ['e-node-focus']);
|
|
1545
1545
|
}
|
|
1546
1546
|
if (_this.checkSelectAll && _this.checkBoxElement) {
|
|
1547
1547
|
var wrap = closest(_this.checkBoxElement, '.' + CHECKBOXWRAP);
|
package/src/list-box/list-box.js
CHANGED
|
@@ -735,6 +735,13 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
735
735
|
*/
|
|
736
736
|
ListBox.prototype.selectItems = function (items, state, isValue) {
|
|
737
737
|
if (state === void 0) { state = true; }
|
|
738
|
+
if (state && !this.selectionSettings.showCheckbox && this.selectionSettings.mode === 'Single') {
|
|
739
|
+
this.getSelectedItems().forEach(function (li) {
|
|
740
|
+
li.classList.remove('e-active');
|
|
741
|
+
li.removeAttribute('aria-selected');
|
|
742
|
+
removeClass([li], cssClass.selected);
|
|
743
|
+
});
|
|
744
|
+
}
|
|
738
745
|
this.setSelection(items, state, !isValue);
|
|
739
746
|
this.updateSelectedOptions();
|
|
740
747
|
};
|
|
@@ -1967,11 +1974,13 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1967
1974
|
if (!isSelect && liselect || isSelect && !liselect && li) {
|
|
1968
1975
|
if (_this.selectionSettings.showCheckbox) {
|
|
1969
1976
|
_this.notify('updatelist', { li: li, module: 'listbox' });
|
|
1977
|
+
li.focus();
|
|
1970
1978
|
}
|
|
1971
1979
|
else {
|
|
1972
1980
|
if (isSelect) {
|
|
1973
1981
|
li.classList.add(cssClass.selected);
|
|
1974
1982
|
li.setAttribute('aria-selected', 'true');
|
|
1983
|
+
li.focus();
|
|
1975
1984
|
}
|
|
1976
1985
|
else {
|
|
1977
1986
|
li.classList.remove(cssClass.selected);
|