@syncfusion/ej2-navigations 20.1.57 → 20.1.61
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 +22 -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 +36 -7
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +38 -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 +9 -9
- package/src/sidebar/sidebar.d.ts +1 -0
- package/src/sidebar/sidebar.js +6 -2
- package/src/tab/tab.js +15 -4
- package/src/treeview/treeview.js +17 -2
- package/styles/bootstrap-dark.css +1 -2
- package/styles/bootstrap.css +4 -9
- package/styles/bootstrap4.css +3 -6
- package/styles/bootstrap5-dark.css +4 -7
- package/styles/bootstrap5.css +4 -7
- package/styles/carousel/bootstrap-dark.css +1 -2
- package/styles/carousel/bootstrap.css +1 -2
- package/styles/carousel/bootstrap4.css +1 -2
- package/styles/carousel/bootstrap5-dark.css +1 -2
- package/styles/carousel/bootstrap5.css +1 -2
- package/styles/carousel/fabric-dark.css +1 -2
- package/styles/carousel/fabric.css +1 -2
- package/styles/carousel/fluent-dark.css +1 -2
- package/styles/carousel/fluent.css +1 -2
- package/styles/carousel/highcontrast-light.css +1 -2
- package/styles/carousel/highcontrast.css +1 -2
- package/styles/carousel/material-dark.css +1 -2
- package/styles/carousel/material.css +1 -2
- package/styles/carousel/tailwind-dark.css +1 -2
- package/styles/carousel/tailwind.css +1 -2
- package/styles/fabric-dark.css +1 -2
- package/styles/fabric.css +1 -2
- package/styles/fluent-dark.css +1 -2
- package/styles/fluent.css +1 -2
- package/styles/highcontrast-light.css +1 -2
- package/styles/highcontrast.css +1 -2
- package/styles/material-dark.css +1 -2
- package/styles/material.css +1 -2
- package/styles/menu/bootstrap.css +1 -2
- package/styles/menu/bootstrap4.css +1 -2
- package/styles/tab/bootstrap.css +1 -2
- package/styles/tab/bootstrap5-dark.css +1 -2
- package/styles/tab/bootstrap5.css +1 -2
- package/styles/tailwind-dark.css +1 -2
- package/styles/tailwind.css +1 -2
- package/styles/toolbar/bootstrap.css +1 -3
- package/styles/toolbar/bootstrap4.css +1 -2
- package/styles/toolbar/bootstrap5-dark.css +1 -2
- package/styles/toolbar/bootstrap5.css +1 -2
- package/styles/treeview/_bootstrap5-definition.scss +1 -1
- package/styles/treeview/bootstrap5-dark.css +1 -1
- package/styles/treeview/bootstrap5.css +1 -1
|
@@ -7565,7 +7565,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
7565
7565
|
this.tbObj = null;
|
|
7566
7566
|
}
|
|
7567
7567
|
this.unWireEvents();
|
|
7568
|
-
['role', 'aria-disabled', 'aria-activedescendant', 'tabindex', 'aria-orientation'].forEach(function (val) {
|
|
7568
|
+
['role', 'aria-disabled', 'aria-activedescendant', 'tabindex', 'aria-orientation', 'aria-owns'].forEach(function (val) {
|
|
7569
7569
|
_this.element.removeAttribute(val);
|
|
7570
7570
|
});
|
|
7571
7571
|
this.expTemplateContent();
|
|
@@ -7646,7 +7646,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
7646
7646
|
var css = (name === 'msie') ? 'e-ie' : (name === 'edge') ? 'e-edge' : (name === 'safari') ? 'e-safari' : '';
|
|
7647
7647
|
setStyleAttribute(this.element, { 'width': formatUnit(this.width), 'height': formatUnit(this.height) });
|
|
7648
7648
|
this.setCssClass(this.element, this.cssClass, true);
|
|
7649
|
-
attributes(this.element, { role: 'tablist', 'aria-disabled': 'false', 'aria-activedescendant': '' });
|
|
7649
|
+
attributes(this.element, { role: 'tablist', 'aria-disabled': 'false', 'aria-activedescendant': '', 'aria-owns': this.element.id + '_' + 'tab_header_items' });
|
|
7650
7650
|
this.setCssClass(this.element, css, true);
|
|
7651
7651
|
this.updatePopAnimationConfig();
|
|
7652
7652
|
};
|
|
@@ -7831,6 +7831,10 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
7831
7831
|
attributes(this.hdrEle, { 'aria-label': 'tab-header' });
|
|
7832
7832
|
this.updateOrientationAttribute();
|
|
7833
7833
|
this.setCloseButton(this.showCloseButton);
|
|
7834
|
+
var toolbarHeader = this.tbObj.element.querySelector('.' + CLS_TB_ITEMS);
|
|
7835
|
+
if (!isNullOrUndefined(toolbarHeader)) {
|
|
7836
|
+
toolbarHeader.id = this.element.id + '_' + 'tab_header_items';
|
|
7837
|
+
}
|
|
7834
7838
|
};
|
|
7835
7839
|
Tab.prototype.renderContent = function () {
|
|
7836
7840
|
this.cntEle = select('.' + CLS_CONTENT$1, this.element);
|
|
@@ -9189,7 +9193,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9189
9193
|
}
|
|
9190
9194
|
this.tbItems = select('.' + CLS_TB_ITEMS, this.getTabHeader());
|
|
9191
9195
|
this.isAdd = true;
|
|
9192
|
-
var
|
|
9196
|
+
var tabItems_2 = this.parseObject(items, index);
|
|
9193
9197
|
this.isAdd = false;
|
|
9194
9198
|
var i_1 = 0;
|
|
9195
9199
|
var textValue_1;
|
|
@@ -9197,6 +9201,12 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9197
9201
|
textValue_1 = item.headerTemplate || item.header.text;
|
|
9198
9202
|
if (!(isNullOrUndefined(item.headerTemplate || item.header) || isNullOrUndefined(textValue_1) ||
|
|
9199
9203
|
(textValue_1.length === 0) && !isNullOrUndefined(item.header) && isNullOrUndefined(item.header.iconCss))) {
|
|
9204
|
+
if (tabItems_2[place]) {
|
|
9205
|
+
if (isNullOrUndefined(item.id)) {
|
|
9206
|
+
item.id = TABITEMPREFIX + (lastEleIndex + place).toString();
|
|
9207
|
+
}
|
|
9208
|
+
tabItems_2[place].htmlAttributes['data-id'] = item.id;
|
|
9209
|
+
}
|
|
9200
9210
|
_this.items.splice((index + i_1), 0, item);
|
|
9201
9211
|
i_1++;
|
|
9202
9212
|
}
|
|
@@ -9211,7 +9221,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9211
9221
|
_this.getContent(eleTrg, item.content, 'render', index);
|
|
9212
9222
|
}
|
|
9213
9223
|
});
|
|
9214
|
-
this.tbObj.addItems(
|
|
9224
|
+
this.tbObj.addItems(tabItems_2, index);
|
|
9215
9225
|
if (!this.isReplace) {
|
|
9216
9226
|
this.trigger('added', { addedItems: items });
|
|
9217
9227
|
}
|
|
@@ -9220,6 +9230,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9220
9230
|
}
|
|
9221
9231
|
else {
|
|
9222
9232
|
this.setActiveBorder();
|
|
9233
|
+
this.tbItem = selectAll('.' + CLS_TB_ITEM, this.getTabHeader());
|
|
9223
9234
|
}
|
|
9224
9235
|
this.bindDraggable();
|
|
9225
9236
|
}
|
|
@@ -13417,8 +13428,23 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
13417
13428
|
dropUl = dropEle;
|
|
13418
13429
|
}
|
|
13419
13430
|
var refNode = dropUl.childNodes[index];
|
|
13420
|
-
|
|
13421
|
-
|
|
13431
|
+
if (refNode || this.sortOrder === 'None') {
|
|
13432
|
+
for (var i = 0; i < li.length; i++) {
|
|
13433
|
+
dropUl.insertBefore(li[i], refNode);
|
|
13434
|
+
}
|
|
13435
|
+
}
|
|
13436
|
+
if (!refNode && ((this.sortOrder === 'Ascending') || (this.sortOrder === 'Descending'))) {
|
|
13437
|
+
var cNodes = dropUl.childNodes;
|
|
13438
|
+
for (var i = 0; i < li.length; i++) {
|
|
13439
|
+
for (var j = 0; j < cNodes.length; j++) {
|
|
13440
|
+
var returnValue = (this.sortOrder === 'Ascending') ? cNodes[j].textContent.toUpperCase() > li[i].innerText.toUpperCase() : cNodes[j].textContent.toUpperCase() < li[i].innerText.toUpperCase();
|
|
13441
|
+
if (returnValue) {
|
|
13442
|
+
dropUl.insertBefore(li[i], cNodes[j]);
|
|
13443
|
+
break;
|
|
13444
|
+
}
|
|
13445
|
+
dropUl.insertBefore(li[i], cNodes[cNodes.length]);
|
|
13446
|
+
}
|
|
13447
|
+
}
|
|
13422
13448
|
}
|
|
13423
13449
|
var id = this.getId(dropLi);
|
|
13424
13450
|
if (this.dataType === 1) {
|
|
@@ -14821,7 +14847,6 @@ var CLOSE = 'e-close';
|
|
|
14821
14847
|
var OPEN = 'e-open';
|
|
14822
14848
|
var TRASITION = 'e-transition';
|
|
14823
14849
|
var DEFAULTBACKDROP = 'e-sidebar-overlay';
|
|
14824
|
-
var CONTEXTBACKDROP = 'e-backdrop';
|
|
14825
14850
|
var RTL$2 = 'e-rtl';
|
|
14826
14851
|
var RIGHT = 'e-right';
|
|
14827
14852
|
var LEFT = 'e-left';
|
|
@@ -14991,7 +15016,7 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
|
|
|
14991
15016
|
Sidebar.prototype.destroyBackDrop = function () {
|
|
14992
15017
|
var sibling = document.querySelector('.e-main-content') || this.targetEle;
|
|
14993
15018
|
if (this.target && this.showBackdrop && sibling) {
|
|
14994
|
-
|
|
15019
|
+
sibling.removeChild(this.defaultBackdropDiv);
|
|
14995
15020
|
}
|
|
14996
15021
|
else if (this.showBackdrop && this.modal) {
|
|
14997
15022
|
this.modal.style.display = 'none';
|
|
@@ -15129,8 +15154,12 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
|
|
|
15129
15154
|
};
|
|
15130
15155
|
Sidebar.prototype.createBackDrop = function () {
|
|
15131
15156
|
if (this.target && this.showBackdrop && this.getState()) {
|
|
15157
|
+
var targetString = this.target;
|
|
15132
15158
|
var sibling = document.querySelector('.e-main-content') || this.targetEle;
|
|
15133
|
-
|
|
15159
|
+
this.defaultBackdropDiv = this.createElement('div');
|
|
15160
|
+
addClass([this.defaultBackdropDiv], DEFAULTBACKDROP);
|
|
15161
|
+
setStyleAttribute(this.defaultBackdropDiv, { height: targetString.style.height });
|
|
15162
|
+
sibling.appendChild(this.defaultBackdropDiv);
|
|
15134
15163
|
}
|
|
15135
15164
|
else if (this.showBackdrop && !this.modal && this.getState()) {
|
|
15136
15165
|
this.modal = this.createElement('div');
|