@syncfusion/ej2-navigations 20.1.55 → 20.1.58
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 +26 -0
- 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 +26 -9
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +26 -9
- 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 +8 -8
- package/src/common/menu-base.js +11 -1
- package/src/tab/tab.js +13 -6
- package/src/treeview/treeview.js +2 -2
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/treeview/_bootstrap5-definition.scss +1 -1
- package/styles/treeview/bootstrap5-dark.css +1 -1
- package/styles/treeview/bootstrap5.css +1 -1
|
@@ -1097,6 +1097,7 @@ var LEFTARROW = 'leftarrow';
|
|
|
1097
1097
|
var RIGHTARROW = 'rightarrow';
|
|
1098
1098
|
var HOME = 'home';
|
|
1099
1099
|
var END = 'end';
|
|
1100
|
+
var TAB = 'tab';
|
|
1100
1101
|
var CARET = 'e-caret';
|
|
1101
1102
|
var ITEM = 'e-menu-item';
|
|
1102
1103
|
var DISABLED = 'e-disabled';
|
|
@@ -1383,6 +1384,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1383
1384
|
if (this.isMenu) {
|
|
1384
1385
|
keyConfigs.home = HOME;
|
|
1385
1386
|
keyConfigs.end = END;
|
|
1387
|
+
keyConfigs.tab = TAB;
|
|
1386
1388
|
}
|
|
1387
1389
|
new KeyboardEvents(element, {
|
|
1388
1390
|
keyAction: this.keyBoardHandler.bind(this),
|
|
@@ -1443,6 +1445,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1443
1445
|
case UPARROW:
|
|
1444
1446
|
case END:
|
|
1445
1447
|
case HOME:
|
|
1448
|
+
case TAB:
|
|
1446
1449
|
this.upDownKeyHandler(e);
|
|
1447
1450
|
break;
|
|
1448
1451
|
case RIGHTARROW:
|
|
@@ -1469,7 +1472,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1469
1472
|
};
|
|
1470
1473
|
MenuBase.prototype.upDownKeyHandler = function (e) {
|
|
1471
1474
|
var cul = this.getUlByNavIdx();
|
|
1472
|
-
var defaultIdx = (e.action === DOWNARROW || e.action === HOME) ? 0 : cul.childElementCount - 1;
|
|
1475
|
+
var defaultIdx = (e.action === DOWNARROW || e.action === HOME || e.action === TAB) ? 0 : cul.childElementCount - 1;
|
|
1473
1476
|
var fliIdx = defaultIdx;
|
|
1474
1477
|
var fli = this.getLIByClass(cul, FOCUSED);
|
|
1475
1478
|
if (fli) {
|
|
@@ -1606,6 +1609,12 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1606
1609
|
}
|
|
1607
1610
|
if (!isClose) {
|
|
1608
1611
|
var liElem_1 = e && e.target && this.getLI(e.target);
|
|
1612
|
+
if (liElem_1) {
|
|
1613
|
+
this.cli = liElem_1;
|
|
1614
|
+
}
|
|
1615
|
+
else {
|
|
1616
|
+
this.cli = ul_1.children[0];
|
|
1617
|
+
}
|
|
1609
1618
|
item_1 = this.navIdx.length ? this.getItem(this.navIdx) : null;
|
|
1610
1619
|
items_1 = item_1 ? item_1.items : this.items;
|
|
1611
1620
|
beforeCloseArgs = { element: ul_1, parentItem: item_1, items: items_1, event: e, cancel: false, isFocused: true };
|
|
@@ -3209,6 +3218,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
3209
3218
|
this.clearTemplate(['template']);
|
|
3210
3219
|
}
|
|
3211
3220
|
}
|
|
3221
|
+
this.rippleFn = null;
|
|
3212
3222
|
};
|
|
3213
3223
|
__decorate$2([
|
|
3214
3224
|
Event()
|
|
@@ -7555,7 +7565,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
7555
7565
|
this.tbObj = null;
|
|
7556
7566
|
}
|
|
7557
7567
|
this.unWireEvents();
|
|
7558
|
-
['role', 'aria-disabled', 'aria-activedescendant', 'tabindex', 'aria-orientation'].forEach(function (val) {
|
|
7568
|
+
['role', 'aria-disabled', 'aria-activedescendant', 'tabindex', 'aria-orientation', 'aria-owns'].forEach(function (val) {
|
|
7559
7569
|
_this.element.removeAttribute(val);
|
|
7560
7570
|
});
|
|
7561
7571
|
this.expTemplateContent();
|
|
@@ -7636,7 +7646,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
7636
7646
|
var css = (name === 'msie') ? 'e-ie' : (name === 'edge') ? 'e-edge' : (name === 'safari') ? 'e-safari' : '';
|
|
7637
7647
|
setStyleAttribute(this.element, { 'width': formatUnit(this.width), 'height': formatUnit(this.height) });
|
|
7638
7648
|
this.setCssClass(this.element, this.cssClass, true);
|
|
7639
|
-
attributes(this.element, { role: 'tablist', 'aria-disabled': 'false', 'aria-activedescendant': '' });
|
|
7649
|
+
attributes(this.element, { role: 'tablist', 'aria-disabled': 'false', 'aria-activedescendant': '', 'aria-owns': this.element.id + '_' + 'tab_header_items' });
|
|
7640
7650
|
this.setCssClass(this.element, css, true);
|
|
7641
7651
|
this.updatePopAnimationConfig();
|
|
7642
7652
|
};
|
|
@@ -7821,6 +7831,10 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
7821
7831
|
attributes(this.hdrEle, { 'aria-label': 'tab-header' });
|
|
7822
7832
|
this.updateOrientationAttribute();
|
|
7823
7833
|
this.setCloseButton(this.showCloseButton);
|
|
7834
|
+
var toolbarHeader = this.tbObj.element.querySelector('.' + CLS_TB_ITEMS);
|
|
7835
|
+
if (!isNullOrUndefined(toolbarHeader)) {
|
|
7836
|
+
toolbarHeader.id = this.element.id + '_' + 'tab_header_items';
|
|
7837
|
+
}
|
|
7824
7838
|
};
|
|
7825
7839
|
Tab.prototype.renderContent = function () {
|
|
7826
7840
|
this.cntEle = select('.' + CLS_CONTENT$1, this.element);
|
|
@@ -8580,10 +8594,12 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8580
8594
|
var _this = this;
|
|
8581
8595
|
if (this.allowDragAndDrop) {
|
|
8582
8596
|
var tabHeader = this.element.querySelector('.' + CLS_HEADER$1);
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8597
|
+
if (tabHeader) {
|
|
8598
|
+
var items = tabHeader.querySelectorAll('.' + CLS_TB_ITEM);
|
|
8599
|
+
items.forEach(function (element) {
|
|
8600
|
+
_this.initializeDrag(element);
|
|
8601
|
+
});
|
|
8602
|
+
}
|
|
8587
8603
|
}
|
|
8588
8604
|
};
|
|
8589
8605
|
Tab.prototype.wireEvents = function () {
|
|
@@ -9156,6 +9172,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9156
9172
|
if (isNullOrUndefined(this.hdrEle)) {
|
|
9157
9173
|
this.items = items;
|
|
9158
9174
|
this.reRenderItems();
|
|
9175
|
+
this.bindDraggable();
|
|
9159
9176
|
}
|
|
9160
9177
|
else {
|
|
9161
9178
|
var itemsCount = selectAll('.e-tab-header .' + CLS_TB_ITEM, this.element).length;
|
|
@@ -10465,7 +10482,8 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
10465
10482
|
}
|
|
10466
10483
|
var subChildItems = getValue(this.fields.child.toString(), childItems[index]);
|
|
10467
10484
|
if (subChildItems && subChildItems.length) {
|
|
10468
|
-
this.parentCheckData.
|
|
10485
|
+
if (this.parentCheckData.indexOf(treeData) === -1)
|
|
10486
|
+
this.parentCheckData.push(treeData);
|
|
10469
10487
|
this.updateChildCheckState(subChildItems, childItems[index]);
|
|
10470
10488
|
}
|
|
10471
10489
|
if (count === childItems.length && this.autoCheck && this.checkedNodes.indexOf(checkedParent) === -1) {
|
|
@@ -10480,7 +10498,6 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
10480
10498
|
}
|
|
10481
10499
|
}
|
|
10482
10500
|
}
|
|
10483
|
-
this.parentCheckData = [];
|
|
10484
10501
|
};
|
|
10485
10502
|
TreeView.prototype.beforeNodeCreate = function (e) {
|
|
10486
10503
|
if (this.showCheckBox) {
|