@syncfusion/ej2-navigations 32.2.7 → 32.2.9
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 +68 -5
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +68 -5
- 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 +5 -5
- package/src/accordion/accordion.js +7 -2
- package/src/common/menu-base.d.ts +2 -0
- package/src/common/menu-base.js +54 -3
- package/src/sidebar/sidebar.js +7 -0
- package/styles/appbar/material3-dark.css +0 -5
- package/styles/appbar/material3.css +0 -5
- package/styles/bds-lite.css +0 -4
- package/styles/bds.css +0 -4
- package/styles/bootstrap5.3-lite.css +0 -4
- package/styles/bootstrap5.3.css +0 -4
- package/styles/breadcrumb/material3-dark.css +0 -1
- package/styles/breadcrumb/material3.css +0 -1
- package/styles/carousel/material3-dark.css +0 -2
- package/styles/carousel/material3.css +0 -2
- package/styles/context-menu/material3-dark.css +0 -2
- package/styles/context-menu/material3.css +0 -2
- package/styles/fluent2-lite.css +0 -4
- package/styles/fluent2.css +0 -4
- package/styles/h-scroll/bds.css +0 -2
- package/styles/h-scroll/bootstrap5.3.css +0 -2
- package/styles/h-scroll/fluent2.css +0 -2
- package/styles/h-scroll/material3-dark.css +0 -4
- package/styles/h-scroll/material3.css +0 -4
- package/styles/h-scroll/tailwind3.css +0 -2
- package/styles/material3-dark-lite.css +0 -49
- package/styles/material3-dark.css +0 -49
- package/styles/material3-lite.css +0 -49
- package/styles/material3.css +0 -49
- package/styles/menu/material3-dark.css +0 -2
- package/styles/menu/material3.css +0 -2
- package/styles/sidebar/material3-dark.css +0 -1
- package/styles/sidebar/material3.css +0 -1
- package/styles/stepper/material3-dark.css +0 -4
- package/styles/stepper/material3.css +0 -4
- package/styles/tab/material3-dark.css +0 -12
- package/styles/tab/material3.css +0 -12
- package/styles/tailwind3-lite.css +0 -4
- package/styles/tailwind3.css +0 -4
- package/styles/toolbar/material3-dark.css +0 -11
- package/styles/toolbar/material3.css +0 -11
- package/styles/treeview/material3-dark.css +0 -1
- package/styles/treeview/material3.css +0 -1
- package/styles/v-scroll/bds.css +0 -2
- package/styles/v-scroll/bootstrap5.3.css +0 -2
- package/styles/v-scroll/fluent2.css +0 -2
- package/styles/v-scroll/material3-dark.css +0 -4
- package/styles/v-scroll/material3.css +0 -4
- package/styles/v-scroll/tailwind3.css +0 -2
|
@@ -1142,6 +1142,7 @@ let MenuBase = class MenuBase extends Component {
|
|
|
1142
1142
|
this.isOpenCalled = false;
|
|
1143
1143
|
this.isAnimationNone = false;
|
|
1144
1144
|
this.isKBDAction = false;
|
|
1145
|
+
this.skipNextArrowDown = false;
|
|
1145
1146
|
}
|
|
1146
1147
|
/**
|
|
1147
1148
|
* Initialized third party configuration settings.
|
|
@@ -1247,7 +1248,8 @@ let MenuBase = class MenuBase extends Component {
|
|
|
1247
1248
|
this.element.parentElement.insertBefore(wrapper, this.element);
|
|
1248
1249
|
}
|
|
1249
1250
|
else {
|
|
1250
|
-
|
|
1251
|
+
const appendToElement = this.getAppendToElement();
|
|
1252
|
+
appendToElement.appendChild(wrapper);
|
|
1251
1253
|
}
|
|
1252
1254
|
}
|
|
1253
1255
|
if (this.cssClass) {
|
|
@@ -1383,8 +1385,38 @@ let MenuBase = class MenuBase extends Component {
|
|
|
1383
1385
|
e.action = ESCAPE;
|
|
1384
1386
|
this.leftEscKeyHandler(e);
|
|
1385
1387
|
}
|
|
1388
|
+
const isDown = e.key ? (e.key === 'ArrowDown') : e.keyCode === 40;
|
|
1389
|
+
if (!isDown) {
|
|
1390
|
+
return;
|
|
1391
|
+
}
|
|
1392
|
+
const hostPopup = closest(this.element, '.e-popup-open');
|
|
1393
|
+
if (!hostPopup) {
|
|
1394
|
+
return;
|
|
1395
|
+
}
|
|
1396
|
+
if (closest(document.activeElement, '#' + this.element.id)) {
|
|
1397
|
+
return;
|
|
1398
|
+
}
|
|
1399
|
+
const active = document.activeElement;
|
|
1400
|
+
if (!active) {
|
|
1401
|
+
return;
|
|
1402
|
+
}
|
|
1403
|
+
const expanded = active.getAttribute('aria-expanded') === 'true';
|
|
1404
|
+
if (!expanded) {
|
|
1405
|
+
return;
|
|
1406
|
+
}
|
|
1407
|
+
const ul = this.element;
|
|
1408
|
+
const firstItem = select('.e-menu-item', ul);
|
|
1409
|
+
if (firstItem) {
|
|
1410
|
+
ul.focus();
|
|
1411
|
+
firstItem.classList.add('e-focused');
|
|
1412
|
+
this.skipNextArrowDown = true;
|
|
1413
|
+
}
|
|
1386
1414
|
}
|
|
1387
1415
|
keyBoardHandler(e) {
|
|
1416
|
+
if (e.action === DOWNARROW && this.skipNextArrowDown) {
|
|
1417
|
+
this.skipNextArrowDown = false;
|
|
1418
|
+
return;
|
|
1419
|
+
}
|
|
1388
1420
|
let actionName = '';
|
|
1389
1421
|
const trgt = e.target;
|
|
1390
1422
|
let actionNeeded = this.isMenu && !this.hamburgerMode && !this.element.classList.contains('e-vertical')
|
|
@@ -1484,6 +1516,13 @@ let MenuBase = class MenuBase extends Component {
|
|
|
1484
1516
|
fliIdx = this.isValidLI(cli, fliIdx, e.action);
|
|
1485
1517
|
cul.children[fliIdx].classList.add(FOCUSED);
|
|
1486
1518
|
cul.children[fliIdx].focus();
|
|
1519
|
+
if (closest(this.element, '.e-popup')) {
|
|
1520
|
+
const focusedLiItem = cul.children[fliIdx];
|
|
1521
|
+
const focusableChild = focusedLiItem.querySelector('[tabindex], span[tabindex], a, button, [tabindex]:not([tabindex="-1"])');
|
|
1522
|
+
if (!focusableChild) {
|
|
1523
|
+
cul.focus();
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1487
1526
|
}
|
|
1488
1527
|
isValidLI(cli, index, action) {
|
|
1489
1528
|
const cul = this.getUlByNavIdx();
|
|
@@ -1525,7 +1564,8 @@ let MenuBase = class MenuBase extends Component {
|
|
|
1525
1564
|
return isNullOrUndefined(popup) ? null : select('.e-menu-parent', popup);
|
|
1526
1565
|
}
|
|
1527
1566
|
else {
|
|
1528
|
-
|
|
1567
|
+
const appendToElement = this.getAppendToElement();
|
|
1568
|
+
if (!appendToElement.contains(this.element) && navIdxLen === 0) {
|
|
1529
1569
|
return null;
|
|
1530
1570
|
}
|
|
1531
1571
|
return this.getWrapper().children[navIdxLen];
|
|
@@ -1872,7 +1912,8 @@ let MenuBase = class MenuBase extends Component {
|
|
|
1872
1912
|
li.appendChild(this.popupWrapper);
|
|
1873
1913
|
}
|
|
1874
1914
|
else {
|
|
1875
|
-
|
|
1915
|
+
const appendToElement = this.getAppendToElement();
|
|
1916
|
+
appendToElement.appendChild(this.popupWrapper);
|
|
1876
1917
|
}
|
|
1877
1918
|
this.isNestedOrVertical = this.element.classList.contains('e-vertical') || this.navIdx.length !== 1;
|
|
1878
1919
|
this.popupObj = this.generatePopup(this.popupWrapper, this.uList, li, this.isNestedOrVertical);
|
|
@@ -3151,6 +3192,16 @@ let MenuBase = class MenuBase extends Component {
|
|
|
3151
3192
|
}
|
|
3152
3193
|
}
|
|
3153
3194
|
}
|
|
3195
|
+
getAppendToElement() {
|
|
3196
|
+
if (this.isAngular) {
|
|
3197
|
+
const cdkPane = this.element.closest('.cdk-overlay-pane');
|
|
3198
|
+
const popoverEl = this.element.closest('[popover]');
|
|
3199
|
+
if (cdkPane && popoverEl) {
|
|
3200
|
+
return cdkPane;
|
|
3201
|
+
}
|
|
3202
|
+
}
|
|
3203
|
+
return document.body;
|
|
3204
|
+
}
|
|
3154
3205
|
/**
|
|
3155
3206
|
* Get the properties to be maintained in the persisted state.
|
|
3156
3207
|
*
|
|
@@ -6654,8 +6705,13 @@ let Accordion = class Accordion extends Component {
|
|
|
6654
6705
|
if (this.isReact) {
|
|
6655
6706
|
this.renderReactTemplates();
|
|
6656
6707
|
}
|
|
6657
|
-
|
|
6658
|
-
|
|
6708
|
+
if (!isNullOrUndefined(this.getItemTemplate())) {
|
|
6709
|
+
append(this.getItemTemplate()(this.dataSource[parseInt(index.toString(), 10)], this, 'itemTemplate', this.element.id + '_itemTemplate', false), ctn);
|
|
6710
|
+
itemcnt.appendChild(ctn);
|
|
6711
|
+
}
|
|
6712
|
+
else {
|
|
6713
|
+
itemcnt.appendChild(this.fetchElement(ctn, this.dataSource[parseInt(index.toString(), 10)].content, index));
|
|
6714
|
+
}
|
|
6659
6715
|
}
|
|
6660
6716
|
else {
|
|
6661
6717
|
let content = this.items[parseInt(index.toString(), 10)].content;
|
|
@@ -16643,6 +16699,13 @@ let Sidebar = class Sidebar extends Component {
|
|
|
16643
16699
|
else {
|
|
16644
16700
|
addClass([this.element], DOCKER);
|
|
16645
16701
|
}
|
|
16702
|
+
if (!this.isOpen && sibling) {
|
|
16703
|
+
if (!this.enableDock) {
|
|
16704
|
+
this.element.style.transform = sibling.style.transform = '';
|
|
16705
|
+
}
|
|
16706
|
+
sibling.style[this.position === 'Left' ? 'marginLeft' : 'marginRight'] =
|
|
16707
|
+
this.enableDock ? this.setDimension(this.dockSize) : '0px';
|
|
16708
|
+
}
|
|
16646
16709
|
break;
|
|
16647
16710
|
case 'zIndex':
|
|
16648
16711
|
this.setZindex();
|