@syncfusion/ej2-navigations 33.2.6 → 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 +35 -10
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +35 -10
- 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 +2 -2
- package/src/accordion/accordion.js +7 -8
- package/src/tab/tab.js +15 -2
- package/src/toolbar/toolbar.js +7 -0
- package/src/treeview/treeview.js +6 -0
- package/styles/bds-lite.css +2 -2
- package/styles/bds.css +2 -2
- package/styles/bootstrap-dark-lite.css +2 -2
- package/styles/bootstrap-dark.css +2 -2
- package/styles/bootstrap-lite.css +4 -4
- package/styles/bootstrap.css +4 -4
- package/styles/bootstrap4-lite.css +2 -2
- package/styles/bootstrap4.css +2 -2
- package/styles/bootstrap5-dark-lite.css +2 -2
- package/styles/bootstrap5-dark.css +2 -2
- package/styles/bootstrap5-lite.css +2 -2
- package/styles/bootstrap5.3-lite.css +2 -2
- package/styles/bootstrap5.3.css +2 -2
- package/styles/bootstrap5.css +2 -2
- package/styles/fabric-dark-lite.css +2 -2
- package/styles/fabric-dark.css +2 -2
- package/styles/fabric-lite.css +2 -2
- package/styles/fabric.css +2 -2
- package/styles/fluent-dark-lite.css +2 -2
- package/styles/fluent-dark.css +2 -2
- package/styles/fluent-lite.css +2 -2
- package/styles/fluent.css +2 -2
- package/styles/fluent2-lite.css +5 -5
- package/styles/fluent2.css +5 -5
- package/styles/highcontrast-light-lite.css +2 -2
- package/styles/highcontrast-light.css +2 -2
- package/styles/highcontrast-lite.css +4 -4
- package/styles/highcontrast.css +4 -4
- package/styles/material-dark-lite.css +2 -2
- package/styles/material-dark.css +2 -2
- package/styles/material-lite.css +2 -2
- package/styles/material.css +2 -2
- package/styles/material3-dark-lite.css +2 -2
- package/styles/material3-dark.css +2 -2
- package/styles/material3-lite.css +2 -2
- package/styles/material3.css +2 -2
- package/styles/tailwind-dark-lite.css +2 -2
- package/styles/tailwind-dark.css +2 -2
- package/styles/tailwind-lite.css +2 -2
- package/styles/tailwind.css +2 -2
- package/styles/tailwind3-lite.css +2 -2
- package/styles/tailwind3.css +2 -2
- package/styles/treeview/_theme.scss +4 -4
- package/styles/treeview/bds.css +2 -2
- package/styles/treeview/bootstrap-dark.css +2 -2
- package/styles/treeview/bootstrap.css +4 -4
- package/styles/treeview/bootstrap4.css +2 -2
- package/styles/treeview/bootstrap5-dark.css +2 -2
- package/styles/treeview/bootstrap5.3.css +2 -2
- package/styles/treeview/bootstrap5.css +2 -2
- package/styles/treeview/fabric-dark.css +2 -2
- package/styles/treeview/fabric.css +2 -2
- package/styles/treeview/fluent-dark.css +2 -2
- package/styles/treeview/fluent.css +2 -2
- package/styles/treeview/fluent2.css +5 -5
- package/styles/treeview/highcontrast-light.css +2 -2
- package/styles/treeview/highcontrast.css +4 -4
- package/styles/treeview/material-dark.css +2 -2
- package/styles/treeview/material.css +2 -2
- package/styles/treeview/material3-dark.css +2 -2
- package/styles/treeview/material3.css +2 -2
- package/styles/treeview/tailwind-dark.css +2 -2
- package/styles/treeview/tailwind.css +2 -2
- package/styles/treeview/tailwind3.css +2 -2
|
@@ -6094,6 +6094,13 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
6094
6094
|
if (this.isReact && this.items[parseInt(index.toString(), 10)].template) {
|
|
6095
6095
|
this.clearToolbarTemplate(itemCol[parseInt(index.toString(), 10)]);
|
|
6096
6096
|
}
|
|
6097
|
+
if (this.element.closest('.e-richtexteditor')) {
|
|
6098
|
+
var btnItem = itemCol[parseInt(index.toString(), 10)].querySelector('.e-control.e-btn');
|
|
6099
|
+
if (!isNullOrUndefined(btnItem) && !isNullOrUndefined(btnItem.ej2_instances[0]) &&
|
|
6100
|
+
!(btnItem.ej2_instances[0].isDestroyed)) {
|
|
6101
|
+
btnItem.ej2_instances[0].destroy();
|
|
6102
|
+
}
|
|
6103
|
+
}
|
|
6097
6104
|
EventHandler.remove(itemCol[parseInt(index.toString(), 10)], 'click', this.itemClick);
|
|
6098
6105
|
detach(itemCol[parseInt(index.toString(), 10)]);
|
|
6099
6106
|
this.tbarEle.splice(index, 1);
|
|
@@ -6821,11 +6828,6 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
|
|
|
6821
6828
|
var innerEle = this.createElement('div', {
|
|
6822
6829
|
className: CLS_ITEM$1, id: item.id || getUniqueID('acrdn_item')
|
|
6823
6830
|
});
|
|
6824
|
-
if (item.expanded && !isNullOrUndefined(index) && (!this.enablePersistence)) {
|
|
6825
|
-
if (this.initExpand.indexOf(index) === -1) {
|
|
6826
|
-
this.initExpand.push(index);
|
|
6827
|
-
}
|
|
6828
|
-
}
|
|
6829
6831
|
if (this.headerTemplate) {
|
|
6830
6832
|
var ctnEle = this.headerEleGenerate();
|
|
6831
6833
|
var hdrEle = this.createElement('div', { className: CLS_HEADERCTN });
|
|
@@ -6834,9 +6836,8 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
|
|
|
6834
6836
|
innerEle.appendChild(ctnEle);
|
|
6835
6837
|
ctnEle.appendChild(this.toggleIconGenerate());
|
|
6836
6838
|
this.add(innerEle, CLS_SLCT);
|
|
6837
|
-
return innerEle;
|
|
6838
6839
|
}
|
|
6839
|
-
if (item.header && this.angularnativeCondiCheck(item, 'header')) {
|
|
6840
|
+
else if (item.header && this.angularnativeCondiCheck(item, 'header')) {
|
|
6840
6841
|
var header = item.header;
|
|
6841
6842
|
if (this.enableHtmlSanitizer && typeof (item.header) === 'string') {
|
|
6842
6843
|
header = SanitizeHtmlHelper.sanitize(item.header);
|
|
@@ -6848,6 +6849,11 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
|
|
|
6848
6849
|
innerEle.appendChild(ctnEle);
|
|
6849
6850
|
}
|
|
6850
6851
|
var hdr = select('.' + CLS_HEADER, innerEle);
|
|
6852
|
+
if (item.expanded && !isNullOrUndefined(index) && (!this.enablePersistence)) {
|
|
6853
|
+
if (this.initExpand.indexOf(index) === -1) {
|
|
6854
|
+
this.initExpand.push(index);
|
|
6855
|
+
}
|
|
6856
|
+
}
|
|
6851
6857
|
if (item.cssClass) {
|
|
6852
6858
|
addClass([innerEle], item.cssClass.split(' '));
|
|
6853
6859
|
}
|
|
@@ -6870,7 +6876,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
|
|
|
6870
6876
|
hdr.insertBefore(hdrIcnEle, hdr.childNodes[0]);
|
|
6871
6877
|
}
|
|
6872
6878
|
}
|
|
6873
|
-
if (item.content && this.angularnativeCondiCheck(item, 'content')) {
|
|
6879
|
+
if (item.content && this.angularnativeCondiCheck(item, 'content') && !this.headerTemplate) {
|
|
6874
6880
|
var hdrIcon = this.toggleIconGenerate();
|
|
6875
6881
|
if (isNullOrUndefined(hdr)) {
|
|
6876
6882
|
hdr = this.headerEleGenerate();
|
|
@@ -8443,6 +8449,12 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8443
8449
|
_this.refreshActiveBorder();
|
|
8444
8450
|
});
|
|
8445
8451
|
}
|
|
8452
|
+
if (this.isAngular && this.registeredTemplate && !isNullOrUndefined(this.registeredTemplate.headerTemplate)) {
|
|
8453
|
+
setTimeout(function () {
|
|
8454
|
+
_this.refreshOverflow();
|
|
8455
|
+
_this.refreshActiveBorder();
|
|
8456
|
+
}, 5);
|
|
8457
|
+
}
|
|
8446
8458
|
};
|
|
8447
8459
|
Tab.prototype.renderContainer = function () {
|
|
8448
8460
|
var ele = this.element;
|
|
@@ -9372,8 +9384,15 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9372
9384
|
tbPopObj.show(config);
|
|
9373
9385
|
}
|
|
9374
9386
|
};
|
|
9375
|
-
Tab.prototype.bindDraggable = function () {
|
|
9387
|
+
Tab.prototype.bindDraggable = function (refreshDraggableItems) {
|
|
9376
9388
|
var _this = this;
|
|
9389
|
+
if (refreshDraggableItems && this.draggableItems.length > 0) {
|
|
9390
|
+
for (var i = 0; i < this.draggableItems.length; i++) {
|
|
9391
|
+
this.draggableItems[i].destroy();
|
|
9392
|
+
this.draggableItems[i] = null;
|
|
9393
|
+
}
|
|
9394
|
+
this.draggableItems = [];
|
|
9395
|
+
}
|
|
9377
9396
|
if (this.allowDragAndDrop) {
|
|
9378
9397
|
var tabHeader = this.element.querySelector('.' + CLS_HEADER$1);
|
|
9379
9398
|
if (tabHeader) {
|
|
@@ -10461,7 +10480,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
10461
10480
|
}
|
|
10462
10481
|
break;
|
|
10463
10482
|
case 'allowDragAndDrop':
|
|
10464
|
-
this.bindDraggable();
|
|
10483
|
+
this.bindDraggable(true);
|
|
10465
10484
|
break;
|
|
10466
10485
|
case 'swipeMode':
|
|
10467
10486
|
if (this.touchModule) {
|
|
@@ -10778,6 +10797,7 @@ var CHECKBOXRIPPLE = 'e-ripple-container';
|
|
|
10778
10797
|
var RIPPLE = 'e-ripple';
|
|
10779
10798
|
var RIPPLEELMENT = 'e-ripple-element';
|
|
10780
10799
|
var FOCUS = 'e-node-focus';
|
|
10800
|
+
var FOCUSED$1 = 'e-focused';
|
|
10781
10801
|
var IMAGE = 'e-list-img';
|
|
10782
10802
|
var BIGGER = 'e-bigger';
|
|
10783
10803
|
var SMALL = 'e-small';
|
|
@@ -13133,6 +13153,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
13133
13153
|
var focusedNode = this.getFocusedNode();
|
|
13134
13154
|
if (focusedNode) {
|
|
13135
13155
|
removeClass([focusedNode], FOCUS);
|
|
13156
|
+
removeClass([focusedNode], FOCUSED$1);
|
|
13136
13157
|
focusedNode.setAttribute('tabindex', '-1');
|
|
13137
13158
|
}
|
|
13138
13159
|
addClass([li], FOCUS);
|
|
@@ -13832,9 +13853,11 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
13832
13853
|
};
|
|
13833
13854
|
TreeView.prototype.setFocus = function (preNode, nextNode) {
|
|
13834
13855
|
removeClass([preNode], FOCUS);
|
|
13856
|
+
removeClass([preNode], FOCUSED$1);
|
|
13835
13857
|
preNode.setAttribute('tabindex', '-1');
|
|
13836
13858
|
if (!nextNode.classList.contains('e-disable')) {
|
|
13837
13859
|
addClass([nextNode], FOCUS);
|
|
13860
|
+
addClass([nextNode], FOCUSED$1);
|
|
13838
13861
|
nextNode.setAttribute('tabindex', '0');
|
|
13839
13862
|
nextNode.focus();
|
|
13840
13863
|
EventHandler.add(nextNode, 'blur', this.focusOut, this);
|
|
@@ -13859,6 +13882,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
13859
13882
|
else {
|
|
13860
13883
|
focusedElement.setAttribute('tabindex', '0');
|
|
13861
13884
|
addClass([focusedElement], FOCUS);
|
|
13885
|
+
addClass([focusedElement], FOCUSED$1);
|
|
13862
13886
|
EventHandler.add(focusedElement, 'blur', this.focusOut, this);
|
|
13863
13887
|
}
|
|
13864
13888
|
this.mouseDownStatus = false;
|
|
@@ -13868,6 +13892,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
13868
13892
|
var focusedElement = this.getFocusedNode();
|
|
13869
13893
|
if (event.target === focusedElement) {
|
|
13870
13894
|
removeClass([focusedElement], FOCUS);
|
|
13895
|
+
removeClass([focusedElement], FOCUSED$1);
|
|
13871
13896
|
EventHandler.remove(focusedElement, 'blur', this.focusOut);
|
|
13872
13897
|
}
|
|
13873
13898
|
};
|