@syncfusion/ej2-navigations 20.1.55 → 20.1.56
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 +18 -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 +20 -7
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +20 -7
- 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 +6 -6
- package/src/common/menu-base.js +11 -1
- package/src/tab/tab.js +7 -4
- package/src/treeview/treeview.js +2 -2
|
@@ -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()
|
|
@@ -8580,10 +8590,12 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8580
8590
|
var _this = this;
|
|
8581
8591
|
if (this.allowDragAndDrop) {
|
|
8582
8592
|
var tabHeader = this.element.querySelector('.' + CLS_HEADER$1);
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8593
|
+
if (tabHeader) {
|
|
8594
|
+
var items = tabHeader.querySelectorAll('.' + CLS_TB_ITEM);
|
|
8595
|
+
items.forEach(function (element) {
|
|
8596
|
+
_this.initializeDrag(element);
|
|
8597
|
+
});
|
|
8598
|
+
}
|
|
8587
8599
|
}
|
|
8588
8600
|
};
|
|
8589
8601
|
Tab.prototype.wireEvents = function () {
|
|
@@ -9156,6 +9168,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9156
9168
|
if (isNullOrUndefined(this.hdrEle)) {
|
|
9157
9169
|
this.items = items;
|
|
9158
9170
|
this.reRenderItems();
|
|
9171
|
+
this.bindDraggable();
|
|
9159
9172
|
}
|
|
9160
9173
|
else {
|
|
9161
9174
|
var itemsCount = selectAll('.e-tab-header .' + CLS_TB_ITEM, this.element).length;
|
|
@@ -10465,7 +10478,8 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
10465
10478
|
}
|
|
10466
10479
|
var subChildItems = getValue(this.fields.child.toString(), childItems[index]);
|
|
10467
10480
|
if (subChildItems && subChildItems.length) {
|
|
10468
|
-
this.parentCheckData.
|
|
10481
|
+
if (this.parentCheckData.indexOf(treeData) === -1)
|
|
10482
|
+
this.parentCheckData.push(treeData);
|
|
10469
10483
|
this.updateChildCheckState(subChildItems, childItems[index]);
|
|
10470
10484
|
}
|
|
10471
10485
|
if (count === childItems.length && this.autoCheck && this.checkedNodes.indexOf(checkedParent) === -1) {
|
|
@@ -10480,7 +10494,6 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
10480
10494
|
}
|
|
10481
10495
|
}
|
|
10482
10496
|
}
|
|
10483
|
-
this.parentCheckData = [];
|
|
10484
10497
|
};
|
|
10485
10498
|
TreeView.prototype.beforeNodeCreate = function (e) {
|
|
10486
10499
|
if (this.showCheckBox) {
|