@syncfusion/ej2-navigations 28.1.39 → 28.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/dist/ej2-navigations.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +18 -6
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +18 -6
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +2 -2
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +11 -11
- package/src/common/menu-base.js +9 -1
- package/src/treeview/treeview.d.ts +1 -0
- package/src/treeview/treeview.js +9 -5
- package/styles/fluent-dark-lite.css +1 -3
- package/styles/fluent-dark.css +1 -3
- package/styles/fluent-lite.css +1 -3
- package/styles/fluent.css +1 -3
- package/styles/fluent2-lite.css +3 -0
- package/styles/fluent2.css +3 -0
- package/styles/pager/_layout.scss +6 -0
- package/styles/pager/fluent2.css +3 -0
- package/styles/tab/_tailwind-definition.scss +1 -1
- package/styles/tab/tailwind-dark.css +4 -4
- package/styles/tab/tailwind.css +4 -4
- package/styles/tailwind-dark-lite.css +2 -2
- package/styles/tailwind-dark.css +4 -4
- package/styles/tailwind-lite.css +2 -2
- package/styles/tailwind.css +4 -4
- package/styles/treeview/_layout.scss +5 -5
- package/styles/treeview/fluent-dark.css +1 -3
- package/styles/treeview/fluent.css +1 -3
|
@@ -1423,6 +1423,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1423
1423
|
};
|
|
1424
1424
|
MenuBase.prototype.domKeyHandler = function (e) {
|
|
1425
1425
|
if (e.keyCode === 27) {
|
|
1426
|
+
if (this.isMenuVisible()) {
|
|
1427
|
+
e.stopImmediatePropagation();
|
|
1428
|
+
}
|
|
1426
1429
|
e.action = ESCAPE;
|
|
1427
1430
|
this.leftEscKeyHandler(e);
|
|
1428
1431
|
}
|
|
@@ -2356,7 +2359,12 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2356
2359
|
args.curData[args.fields[fields.id]] = getUniqueID('menuitem');
|
|
2357
2360
|
}
|
|
2358
2361
|
if (isNullOrUndefined(args.curData.htmlAttributes)) {
|
|
2359
|
-
args.curData
|
|
2362
|
+
Object.defineProperty(args.curData, 'htmlAttributes', {
|
|
2363
|
+
value: {},
|
|
2364
|
+
writable: true,
|
|
2365
|
+
enumerable: true,
|
|
2366
|
+
configurable: true
|
|
2367
|
+
});
|
|
2360
2368
|
}
|
|
2361
2369
|
if (Browser.isIE) {
|
|
2362
2370
|
if (!args.curData.htmlAttributes.role) {
|
|
@@ -11814,11 +11822,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
11814
11822
|
if (!isNullOrUndefined(firstUl)) {
|
|
11815
11823
|
firstUl.setAttribute('role', treeAriaAttr.treeRole);
|
|
11816
11824
|
this.setMultiSelect(this.allowMultiSelection);
|
|
11817
|
-
|
|
11818
|
-
if (firstNode) {
|
|
11819
|
-
firstNode.setAttribute('tabindex', '0');
|
|
11820
|
-
this.updateIdAttr(null, firstNode);
|
|
11821
|
-
}
|
|
11825
|
+
this.setNodeFocusable();
|
|
11822
11826
|
if (this.allowTextWrap) {
|
|
11823
11827
|
this.updateWrap();
|
|
11824
11828
|
}
|
|
@@ -15513,6 +15517,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
15513
15517
|
}
|
|
15514
15518
|
this.groupedData = this.getGroupedData(this.treeData, this.fields.parentID);
|
|
15515
15519
|
}
|
|
15520
|
+
this.setNodeFocusable();
|
|
15516
15521
|
this.updateCheckedStateFromDS();
|
|
15517
15522
|
if (this.showCheckBox && dropLi) {
|
|
15518
15523
|
this.ensureParentCheckState(dropLi);
|
|
@@ -15910,6 +15915,13 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
15910
15915
|
this.doCheckBoxAction(nodes, false);
|
|
15911
15916
|
}
|
|
15912
15917
|
};
|
|
15918
|
+
TreeView.prototype.setNodeFocusable = function () {
|
|
15919
|
+
var firstNode = select('.' + LISTITEM, this.element);
|
|
15920
|
+
if (firstNode) {
|
|
15921
|
+
firstNode.setAttribute('tabindex', '0');
|
|
15922
|
+
this.updateIdAttr(null, firstNode);
|
|
15923
|
+
}
|
|
15924
|
+
};
|
|
15913
15925
|
var TreeView_1;
|
|
15914
15926
|
__decorate$8([
|
|
15915
15927
|
Property(false)
|