@syncfusion/ej2-navigations 33.2.4 → 33.2.7
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 +46 -7
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +46 -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 +5 -5
- package/src/accordion/accordion.js +2 -3
- package/src/context-menu/context-menu.js +1 -1
- package/src/tab/tab.js +15 -2
- package/src/toolbar/toolbar.js +7 -0
- package/src/treeview/treeview.d.ts +1 -0
- package/src/treeview/treeview.js +21 -1
- package/styles/bds-lite.css +21 -2
- package/styles/bds.css +23 -4
- package/styles/bootstrap-dark-lite.css +21 -2
- package/styles/bootstrap-dark.css +21 -2
- package/styles/bootstrap-lite.css +25 -2
- package/styles/bootstrap.css +25 -2
- package/styles/bootstrap4-lite.css +21 -2
- package/styles/bootstrap4.css +21 -2
- package/styles/bootstrap5-dark-lite.css +21 -2
- package/styles/bootstrap5-dark.css +21 -2
- package/styles/bootstrap5-lite.css +21 -2
- package/styles/bootstrap5.3-lite.css +21 -2
- package/styles/bootstrap5.3.css +21 -2
- package/styles/bootstrap5.css +21 -2
- package/styles/fabric-dark-lite.css +22 -2
- package/styles/fabric-dark.css +22 -2
- package/styles/fabric-lite.css +22 -2
- package/styles/fabric.css +22 -2
- package/styles/fluent-dark-lite.css +21 -2
- package/styles/fluent-dark.css +21 -2
- package/styles/fluent-lite.css +21 -2
- package/styles/fluent.css +21 -2
- package/styles/fluent2-lite.css +30 -2
- package/styles/fluent2.css +30 -2
- package/styles/highcontrast-light-lite.css +21 -2
- package/styles/highcontrast-light.css +21 -2
- package/styles/highcontrast-lite.css +29 -2
- package/styles/highcontrast.css +29 -2
- package/styles/material-dark-lite.css +21 -2
- package/styles/material-dark.css +21 -2
- package/styles/material-lite.css +21 -2
- package/styles/material.css +21 -2
- package/styles/material3-dark-lite.css +21 -2
- package/styles/material3-dark.css +21 -2
- package/styles/material3-lite.css +21 -2
- package/styles/material3.css +21 -2
- package/styles/tailwind-dark-lite.css +22 -3
- package/styles/tailwind-dark.css +23 -4
- package/styles/tailwind-lite.css +22 -3
- package/styles/tailwind.css +23 -4
- package/styles/tailwind3-lite.css +21 -2
- package/styles/tailwind3.css +21 -2
- package/styles/toolbar/_theme.scss +11 -5
- package/styles/toolbar/bds.css +8 -2
- package/styles/toolbar/bootstrap-dark.css +8 -2
- package/styles/toolbar/bootstrap.css +8 -2
- package/styles/toolbar/bootstrap4.css +8 -2
- package/styles/toolbar/bootstrap5-dark.css +8 -2
- package/styles/toolbar/bootstrap5.3.css +8 -2
- package/styles/toolbar/bootstrap5.css +8 -2
- package/styles/toolbar/fabric-dark.css +8 -2
- package/styles/toolbar/fabric.css +8 -2
- package/styles/toolbar/fluent-dark.css +8 -2
- package/styles/toolbar/fluent.css +8 -2
- package/styles/toolbar/fluent2.css +8 -2
- package/styles/toolbar/highcontrast-light.css +8 -2
- package/styles/toolbar/highcontrast.css +8 -2
- package/styles/toolbar/material-dark.css +8 -2
- package/styles/toolbar/material.css +8 -2
- package/styles/toolbar/material3-dark.css +8 -2
- package/styles/toolbar/material3.css +8 -2
- package/styles/toolbar/tailwind-dark.css +8 -2
- package/styles/toolbar/tailwind.css +8 -2
- package/styles/toolbar/tailwind3.css +8 -2
- package/styles/treeview/_bds-definition.scss +3 -2
- package/styles/treeview/_bootstrap-dark-definition.scss +2 -1
- package/styles/treeview/_bootstrap-definition.scss +2 -1
- package/styles/treeview/_bootstrap4-definition.scss +1 -0
- package/styles/treeview/_bootstrap5-dark-definition.scss +1 -0
- package/styles/treeview/_bootstrap5-definition.scss +1 -0
- package/styles/treeview/_bootstrap5.3-definition.scss +1 -0
- package/styles/treeview/_fabric-dark-definition.scss +1 -0
- package/styles/treeview/_fabric-definition.scss +1 -0
- package/styles/treeview/_fluent-dark-definition.scss +1 -0
- package/styles/treeview/_fluent-definition.scss +1 -0
- package/styles/treeview/_fluent2-definition.scss +4 -0
- package/styles/treeview/_highcontrast-definition.scss +1 -0
- package/styles/treeview/_highcontrast-light-definition.scss +1 -0
- package/styles/treeview/_material-dark-definition.scss +1 -0
- package/styles/treeview/_material-definition.scss +1 -0
- package/styles/treeview/_material3-dark-definition.scss +1 -0
- package/styles/treeview/_material3-definition.scss +1 -0
- package/styles/treeview/_tailwind-dark-definition.scss +3 -2
- package/styles/treeview/_tailwind-definition.scss +3 -2
- package/styles/treeview/_tailwind3-definition.scss +1 -0
- package/styles/treeview/_theme.scss +55 -4
- package/styles/treeview/bds.css +15 -2
- package/styles/treeview/bootstrap-dark.css +13 -0
- package/styles/treeview/bootstrap.css +17 -0
- package/styles/treeview/bootstrap4.css +13 -0
- package/styles/treeview/bootstrap5-dark.css +13 -0
- package/styles/treeview/bootstrap5.3.css +13 -0
- package/styles/treeview/bootstrap5.css +13 -0
- package/styles/treeview/fabric-dark.css +14 -0
- package/styles/treeview/fabric.css +14 -0
- package/styles/treeview/fluent-dark.css +13 -0
- package/styles/treeview/fluent.css +13 -0
- package/styles/treeview/fluent2.css +22 -0
- package/styles/treeview/highcontrast-light.css +13 -0
- package/styles/treeview/highcontrast.css +21 -0
- package/styles/treeview/material-dark.css +13 -0
- package/styles/treeview/material.css +13 -0
- package/styles/treeview/material3-dark.css +13 -0
- package/styles/treeview/material3.css +13 -0
- package/styles/treeview/tailwind-dark.css +15 -2
- package/styles/treeview/tailwind.css +15 -2
- package/styles/treeview/tailwind3.css +13 -0
|
@@ -5934,6 +5934,13 @@ let Toolbar = class Toolbar extends Component {
|
|
|
5934
5934
|
if (this.isReact && this.items[parseInt(index.toString(), 10)].template) {
|
|
5935
5935
|
this.clearToolbarTemplate(itemCol[parseInt(index.toString(), 10)]);
|
|
5936
5936
|
}
|
|
5937
|
+
if (this.element.closest('.e-richtexteditor')) {
|
|
5938
|
+
const btnItem = itemCol[parseInt(index.toString(), 10)].querySelector('.e-control.e-btn');
|
|
5939
|
+
if (!isNullOrUndefined(btnItem) && !isNullOrUndefined(btnItem.ej2_instances[0]) &&
|
|
5940
|
+
!(btnItem.ej2_instances[0].isDestroyed)) {
|
|
5941
|
+
btnItem.ej2_instances[0].destroy();
|
|
5942
|
+
}
|
|
5943
|
+
}
|
|
5937
5944
|
EventHandler.remove(itemCol[parseInt(index.toString(), 10)], 'click', this.itemClick);
|
|
5938
5945
|
detach(itemCol[parseInt(index.toString(), 10)]);
|
|
5939
5946
|
this.tbarEle.splice(index, 1);
|
|
@@ -6633,9 +6640,8 @@ let Accordion = class Accordion extends Component {
|
|
|
6633
6640
|
innerEle.appendChild(ctnEle);
|
|
6634
6641
|
ctnEle.appendChild(this.toggleIconGenerate());
|
|
6635
6642
|
this.add(innerEle, CLS_SLCT);
|
|
6636
|
-
return innerEle;
|
|
6637
6643
|
}
|
|
6638
|
-
if (item.header && this.angularnativeCondiCheck(item, 'header')) {
|
|
6644
|
+
else if (item.header && this.angularnativeCondiCheck(item, 'header')) {
|
|
6639
6645
|
let header = item.header;
|
|
6640
6646
|
if (this.enableHtmlSanitizer && typeof (item.header) === 'string') {
|
|
6641
6647
|
header = SanitizeHtmlHelper.sanitize(item.header);
|
|
@@ -6674,7 +6680,7 @@ let Accordion = class Accordion extends Component {
|
|
|
6674
6680
|
hdr.insertBefore(hdrIcnEle, hdr.childNodes[0]);
|
|
6675
6681
|
}
|
|
6676
6682
|
}
|
|
6677
|
-
if (item.content && this.angularnativeCondiCheck(item, 'content')) {
|
|
6683
|
+
if (item.content && this.angularnativeCondiCheck(item, 'content') && !this.headerTemplate) {
|
|
6678
6684
|
const hdrIcon = this.toggleIconGenerate();
|
|
6679
6685
|
if (isNullOrUndefined(hdr)) {
|
|
6680
6686
|
hdr = this.headerEleGenerate();
|
|
@@ -7521,7 +7527,7 @@ let ContextMenu = class ContextMenu extends MenuBase {
|
|
|
7521
7527
|
this.template = this.itemTemplate ? this.itemTemplate : null;
|
|
7522
7528
|
this.addTemplateClass();
|
|
7523
7529
|
super.initialize();
|
|
7524
|
-
attributes(this.element, { 'role': '
|
|
7530
|
+
attributes(this.element, { 'role': 'menu', 'tabindex': '0' });
|
|
7525
7531
|
this.element.style.zIndex = getZindexPartial(this.element).toString();
|
|
7526
7532
|
}
|
|
7527
7533
|
/**
|
|
@@ -8168,6 +8174,12 @@ let Tab = class Tab extends Component {
|
|
|
8168
8174
|
this.refreshActiveBorder();
|
|
8169
8175
|
});
|
|
8170
8176
|
}
|
|
8177
|
+
if (this.isAngular && this.registeredTemplate && !isNullOrUndefined(this.registeredTemplate.headerTemplate)) {
|
|
8178
|
+
setTimeout(() => {
|
|
8179
|
+
this.refreshOverflow();
|
|
8180
|
+
this.refreshActiveBorder();
|
|
8181
|
+
}, 5);
|
|
8182
|
+
}
|
|
8171
8183
|
}
|
|
8172
8184
|
renderContainer() {
|
|
8173
8185
|
const ele = this.element;
|
|
@@ -9089,7 +9101,14 @@ let Tab = class Tab extends Component {
|
|
|
9089
9101
|
tbPopObj.show(config);
|
|
9090
9102
|
}
|
|
9091
9103
|
}
|
|
9092
|
-
bindDraggable() {
|
|
9104
|
+
bindDraggable(refreshDraggableItems) {
|
|
9105
|
+
if (refreshDraggableItems && this.draggableItems.length > 0) {
|
|
9106
|
+
for (let i = 0; i < this.draggableItems.length; i++) {
|
|
9107
|
+
this.draggableItems[i].destroy();
|
|
9108
|
+
this.draggableItems[i] = null;
|
|
9109
|
+
}
|
|
9110
|
+
this.draggableItems = [];
|
|
9111
|
+
}
|
|
9093
9112
|
if (this.allowDragAndDrop) {
|
|
9094
9113
|
const tabHeader = this.element.querySelector('.' + CLS_HEADER$1);
|
|
9095
9114
|
if (tabHeader) {
|
|
@@ -10164,7 +10183,7 @@ let Tab = class Tab extends Component {
|
|
|
10164
10183
|
}
|
|
10165
10184
|
break;
|
|
10166
10185
|
case 'allowDragAndDrop':
|
|
10167
|
-
this.bindDraggable();
|
|
10186
|
+
this.bindDraggable(true);
|
|
10168
10187
|
break;
|
|
10169
10188
|
case 'swipeMode':
|
|
10170
10189
|
if (this.touchModule) {
|
|
@@ -10468,6 +10487,7 @@ const CHECKBOXRIPPLE = 'e-ripple-container';
|
|
|
10468
10487
|
const RIPPLE = 'e-ripple';
|
|
10469
10488
|
const RIPPLEELMENT = 'e-ripple-element';
|
|
10470
10489
|
const FOCUS = 'e-node-focus';
|
|
10490
|
+
const FOCUSED$1 = 'e-focused';
|
|
10471
10491
|
const IMAGE = 'e-list-img';
|
|
10472
10492
|
const BIGGER = 'e-bigger';
|
|
10473
10493
|
const SMALL = 'e-small';
|
|
@@ -11493,6 +11513,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11493
11513
|
if (isNullOrUndefined(data) || isNullOrUndefined(parentId)) {
|
|
11494
11514
|
return [];
|
|
11495
11515
|
}
|
|
11516
|
+
if (!Array.isArray(data)) {
|
|
11517
|
+
return [];
|
|
11518
|
+
}
|
|
11496
11519
|
if (this.dataType === 1) {
|
|
11497
11520
|
const pidField = this.fields.parentID;
|
|
11498
11521
|
const target = parentId.toString();
|
|
@@ -12771,6 +12794,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
12771
12794
|
const focusedNode = this.getFocusedNode();
|
|
12772
12795
|
if (focusedNode) {
|
|
12773
12796
|
removeClass([focusedNode], FOCUS);
|
|
12797
|
+
removeClass([focusedNode], FOCUSED$1);
|
|
12774
12798
|
focusedNode.setAttribute('tabindex', '-1');
|
|
12775
12799
|
}
|
|
12776
12800
|
addClass([li], FOCUS);
|
|
@@ -13465,9 +13489,11 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
13465
13489
|
}
|
|
13466
13490
|
setFocus(preNode, nextNode) {
|
|
13467
13491
|
removeClass([preNode], FOCUS);
|
|
13492
|
+
removeClass([preNode], FOCUSED$1);
|
|
13468
13493
|
preNode.setAttribute('tabindex', '-1');
|
|
13469
13494
|
if (!nextNode.classList.contains('e-disable')) {
|
|
13470
13495
|
addClass([nextNode], FOCUS);
|
|
13496
|
+
addClass([nextNode], FOCUSED$1);
|
|
13471
13497
|
nextNode.setAttribute('tabindex', '0');
|
|
13472
13498
|
nextNode.focus();
|
|
13473
13499
|
EventHandler.add(nextNode, 'blur', this.focusOut, this);
|
|
@@ -13492,6 +13518,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
13492
13518
|
else {
|
|
13493
13519
|
focusedElement.setAttribute('tabindex', '0');
|
|
13494
13520
|
addClass([focusedElement], FOCUS);
|
|
13521
|
+
addClass([focusedElement], FOCUSED$1);
|
|
13495
13522
|
EventHandler.add(focusedElement, 'blur', this.focusOut, this);
|
|
13496
13523
|
}
|
|
13497
13524
|
this.mouseDownStatus = false;
|
|
@@ -13501,6 +13528,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
13501
13528
|
const focusedElement = this.getFocusedNode();
|
|
13502
13529
|
if (event.target === focusedElement) {
|
|
13503
13530
|
removeClass([focusedElement], FOCUS);
|
|
13531
|
+
removeClass([focusedElement], FOCUSED$1);
|
|
13504
13532
|
EventHandler.remove(focusedElement, 'blur', this.focusOut);
|
|
13505
13533
|
}
|
|
13506
13534
|
}
|
|
@@ -13850,7 +13878,8 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
13850
13878
|
const cNode = this.createElement('span', { className: DROPCOUNT, innerHTML: '' + nLen });
|
|
13851
13879
|
virtualEle.appendChild(cNode);
|
|
13852
13880
|
}
|
|
13853
|
-
|
|
13881
|
+
const appendToElement = this.getAppendToElement();
|
|
13882
|
+
appendToElement.appendChild(virtualEle);
|
|
13854
13883
|
document.body.style.cursor = '';
|
|
13855
13884
|
this.dragData = this.getNodeData(this.dragLi);
|
|
13856
13885
|
return virtualEle;
|
|
@@ -13951,6 +13980,16 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
13951
13980
|
removeClass([this.element], DRAGGING);
|
|
13952
13981
|
this.dragStartAction = false;
|
|
13953
13982
|
}
|
|
13983
|
+
getAppendToElement() {
|
|
13984
|
+
if (this.isAngular) {
|
|
13985
|
+
const cdkPane = this.element.closest('.cdk-overlay-pane');
|
|
13986
|
+
const popoverEl = this.element.closest('[popover]');
|
|
13987
|
+
if (cdkPane && popoverEl) {
|
|
13988
|
+
return cdkPane;
|
|
13989
|
+
}
|
|
13990
|
+
}
|
|
13991
|
+
return document.body;
|
|
13992
|
+
}
|
|
13954
13993
|
getOffsetX(event, target) {
|
|
13955
13994
|
const touchList = event.changedTouches;
|
|
13956
13995
|
if (touchList && touchList.length > 0) {
|