@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
|
@@ -1040,6 +1040,7 @@ const LEFTARROW = 'leftarrow';
|
|
|
1040
1040
|
const RIGHTARROW = 'rightarrow';
|
|
1041
1041
|
const HOME = 'home';
|
|
1042
1042
|
const END = 'end';
|
|
1043
|
+
const TAB = 'tab';
|
|
1043
1044
|
const CARET = 'e-caret';
|
|
1044
1045
|
const ITEM = 'e-menu-item';
|
|
1045
1046
|
const DISABLED = 'e-disabled';
|
|
@@ -1307,6 +1308,7 @@ let MenuBase = class MenuBase extends Component {
|
|
|
1307
1308
|
if (this.isMenu) {
|
|
1308
1309
|
keyConfigs.home = HOME;
|
|
1309
1310
|
keyConfigs.end = END;
|
|
1311
|
+
keyConfigs.tab = TAB;
|
|
1310
1312
|
}
|
|
1311
1313
|
new KeyboardEvents(element, {
|
|
1312
1314
|
keyAction: this.keyBoardHandler.bind(this),
|
|
@@ -1367,6 +1369,7 @@ let MenuBase = class MenuBase extends Component {
|
|
|
1367
1369
|
case UPARROW:
|
|
1368
1370
|
case END:
|
|
1369
1371
|
case HOME:
|
|
1372
|
+
case TAB:
|
|
1370
1373
|
this.upDownKeyHandler(e);
|
|
1371
1374
|
break;
|
|
1372
1375
|
case RIGHTARROW:
|
|
@@ -1393,7 +1396,7 @@ let MenuBase = class MenuBase extends Component {
|
|
|
1393
1396
|
}
|
|
1394
1397
|
upDownKeyHandler(e) {
|
|
1395
1398
|
const cul = this.getUlByNavIdx();
|
|
1396
|
-
const defaultIdx = (e.action === DOWNARROW || e.action === HOME) ? 0 : cul.childElementCount - 1;
|
|
1399
|
+
const defaultIdx = (e.action === DOWNARROW || e.action === HOME || e.action === TAB) ? 0 : cul.childElementCount - 1;
|
|
1397
1400
|
let fliIdx = defaultIdx;
|
|
1398
1401
|
const fli = this.getLIByClass(cul, FOCUSED);
|
|
1399
1402
|
if (fli) {
|
|
@@ -1526,6 +1529,12 @@ let MenuBase = class MenuBase extends Component {
|
|
|
1526
1529
|
}
|
|
1527
1530
|
if (!isClose) {
|
|
1528
1531
|
const liElem = e && e.target && this.getLI(e.target);
|
|
1532
|
+
if (liElem) {
|
|
1533
|
+
this.cli = liElem;
|
|
1534
|
+
}
|
|
1535
|
+
else {
|
|
1536
|
+
this.cli = ul.children[0];
|
|
1537
|
+
}
|
|
1529
1538
|
item = this.navIdx.length ? this.getItem(this.navIdx) : null;
|
|
1530
1539
|
items = item ? item.items : this.items;
|
|
1531
1540
|
beforeCloseArgs = { element: ul, parentItem: item, items: items, event: e, cancel: false, isFocused: true };
|
|
@@ -3095,6 +3104,7 @@ let MenuBase = class MenuBase extends Component {
|
|
|
3095
3104
|
this.clearTemplate(['template']);
|
|
3096
3105
|
}
|
|
3097
3106
|
}
|
|
3107
|
+
this.rippleFn = null;
|
|
3098
3108
|
}
|
|
3099
3109
|
};
|
|
3100
3110
|
__decorate$2([
|
|
@@ -7287,7 +7297,7 @@ let Tab = class Tab extends Component {
|
|
|
7287
7297
|
this.tbObj = null;
|
|
7288
7298
|
}
|
|
7289
7299
|
this.unWireEvents();
|
|
7290
|
-
['role', 'aria-disabled', 'aria-activedescendant', 'tabindex', 'aria-orientation'].forEach((val) => {
|
|
7300
|
+
['role', 'aria-disabled', 'aria-activedescendant', 'tabindex', 'aria-orientation', 'aria-owns'].forEach((val) => {
|
|
7291
7301
|
this.element.removeAttribute(val);
|
|
7292
7302
|
});
|
|
7293
7303
|
this.expTemplateContent();
|
|
@@ -7368,7 +7378,7 @@ let Tab = class Tab extends Component {
|
|
|
7368
7378
|
const css = (name === 'msie') ? 'e-ie' : (name === 'edge') ? 'e-edge' : (name === 'safari') ? 'e-safari' : '';
|
|
7369
7379
|
setStyleAttribute(this.element, { 'width': formatUnit(this.width), 'height': formatUnit(this.height) });
|
|
7370
7380
|
this.setCssClass(this.element, this.cssClass, true);
|
|
7371
|
-
attributes(this.element, { role: 'tablist', 'aria-disabled': 'false', 'aria-activedescendant': '' });
|
|
7381
|
+
attributes(this.element, { role: 'tablist', 'aria-disabled': 'false', 'aria-activedescendant': '', 'aria-owns': this.element.id + '_' + 'tab_header_items' });
|
|
7372
7382
|
this.setCssClass(this.element, css, true);
|
|
7373
7383
|
this.updatePopAnimationConfig();
|
|
7374
7384
|
}
|
|
@@ -7552,6 +7562,10 @@ let Tab = class Tab extends Component {
|
|
|
7552
7562
|
attributes(this.hdrEle, { 'aria-label': 'tab-header' });
|
|
7553
7563
|
this.updateOrientationAttribute();
|
|
7554
7564
|
this.setCloseButton(this.showCloseButton);
|
|
7565
|
+
const toolbarHeader = this.tbObj.element.querySelector('.' + CLS_TB_ITEMS);
|
|
7566
|
+
if (!isNullOrUndefined(toolbarHeader)) {
|
|
7567
|
+
toolbarHeader.id = this.element.id + '_' + 'tab_header_items';
|
|
7568
|
+
}
|
|
7555
7569
|
}
|
|
7556
7570
|
renderContent() {
|
|
7557
7571
|
this.cntEle = select('.' + CLS_CONTENT$1, this.element);
|
|
@@ -8304,10 +8318,12 @@ let Tab = class Tab extends Component {
|
|
|
8304
8318
|
bindDraggable() {
|
|
8305
8319
|
if (this.allowDragAndDrop) {
|
|
8306
8320
|
const tabHeader = this.element.querySelector('.' + CLS_HEADER$1);
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8321
|
+
if (tabHeader) {
|
|
8322
|
+
const items = tabHeader.querySelectorAll('.' + CLS_TB_ITEM);
|
|
8323
|
+
items.forEach((element) => {
|
|
8324
|
+
this.initializeDrag(element);
|
|
8325
|
+
});
|
|
8326
|
+
}
|
|
8311
8327
|
}
|
|
8312
8328
|
}
|
|
8313
8329
|
wireEvents() {
|
|
@@ -8875,6 +8891,7 @@ let Tab = class Tab extends Component {
|
|
|
8875
8891
|
if (isNullOrUndefined(this.hdrEle)) {
|
|
8876
8892
|
this.items = items;
|
|
8877
8893
|
this.reRenderItems();
|
|
8894
|
+
this.bindDraggable();
|
|
8878
8895
|
}
|
|
8879
8896
|
else {
|
|
8880
8897
|
const itemsCount = selectAll('.e-tab-header .' + CLS_TB_ITEM, this.element).length;
|
|
@@ -10143,7 +10160,8 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
10143
10160
|
}
|
|
10144
10161
|
let subChildItems = getValue(this.fields.child.toString(), childItems[index]);
|
|
10145
10162
|
if (subChildItems && subChildItems.length) {
|
|
10146
|
-
this.parentCheckData.
|
|
10163
|
+
if (this.parentCheckData.indexOf(treeData) === -1)
|
|
10164
|
+
this.parentCheckData.push(treeData);
|
|
10147
10165
|
this.updateChildCheckState(subChildItems, childItems[index]);
|
|
10148
10166
|
}
|
|
10149
10167
|
if (count === childItems.length && this.autoCheck && this.checkedNodes.indexOf(checkedParent) === -1) {
|
|
@@ -10158,7 +10176,6 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
10158
10176
|
}
|
|
10159
10177
|
}
|
|
10160
10178
|
}
|
|
10161
|
-
this.parentCheckData = [];
|
|
10162
10179
|
}
|
|
10163
10180
|
beforeNodeCreate(e) {
|
|
10164
10181
|
if (this.showCheckBox) {
|