@syncfusion/ej2-navigations 20.4.52 → 21.1.35
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 +32 -4
- package/README.md +213 -143
- 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 +128 -34
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +127 -33
- 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 +13 -12
- package/src/accordion/accordion-model.d.ts +4 -4
- package/src/accordion/accordion.d.ts +8 -4
- package/src/appbar/appbar-model.d.ts +9 -9
- package/src/appbar/appbar.d.ts +24 -21
- package/src/breadcrumb/breadcrumb-model.d.ts +4 -2
- package/src/breadcrumb/breadcrumb.d.ts +32 -3
- package/src/breadcrumb/breadcrumb.js +32 -0
- package/src/carousel/carousel-model.d.ts +7 -7
- package/src/carousel/carousel.d.ts +24 -20
- package/src/carousel/carousel.js +25 -11
- package/src/common/menu-base.d.ts +13 -2
- package/src/menu/menu.d.ts +5 -1
- package/src/sidebar/sidebar.d.ts +26 -2
- package/src/sidebar/sidebar.js +1 -1
- package/src/tab/tab-model.d.ts +20 -20
- package/src/tab/tab.d.ts +38 -21
- package/src/tab/tab.js +32 -5
- package/src/toolbar/toolbar-model.d.ts +22 -16
- package/src/toolbar/toolbar.d.ts +48 -16
- package/src/toolbar/toolbar.js +10 -4
- package/src/treeview/treeview-model.d.ts +4 -4
- package/src/treeview/treeview.d.ts +32 -4
- package/src/treeview/treeview.js +26 -11
- package/styles/accordion/_bootstrap-dark-definition.scss +0 -1
- package/styles/accordion/_bootstrap-definition.scss +0 -1
- package/styles/accordion/_bootstrap4-definition.scss +0 -1
- package/styles/accordion/_bootstrap5-definition.scss +6 -7
- package/styles/accordion/_fabric-dark-definition.scss +0 -1
- package/styles/accordion/_fabric-definition.scss +0 -1
- package/styles/accordion/_fluent-definition.scss +5 -6
- package/styles/accordion/_fusionnew-definition.scss +0 -1
- package/styles/accordion/_highcontrast-definition.scss +0 -1
- package/styles/accordion/_highcontrast-light-definition.scss +0 -1
- package/styles/accordion/_layout.scss +0 -1
- package/styles/accordion/_material-dark-definition.scss +0 -1
- package/styles/accordion/_material-definition.scss +0 -1
- package/styles/accordion/_tailwind-definition.scss +5 -6
- package/styles/accordion/bootstrap-dark.css +0 -1
- package/styles/accordion/bootstrap.css +0 -1
- package/styles/accordion/bootstrap4.css +0 -1
- package/styles/accordion/bootstrap5-dark.css +3 -4
- package/styles/accordion/bootstrap5.css +3 -4
- package/styles/accordion/fabric-dark.css +0 -1
- package/styles/accordion/fabric.css +0 -1
- package/styles/accordion/fluent-dark.css +3 -4
- package/styles/accordion/fluent.css +3 -4
- package/styles/accordion/highcontrast-light.css +0 -1
- package/styles/accordion/highcontrast.css +0 -1
- package/styles/accordion/material-dark.css +0 -1
- package/styles/accordion/material.css +0 -1
- package/styles/accordion/tailwind-dark.css +3 -4
- package/styles/accordion/tailwind.css +3 -4
- package/styles/appbar/_bootstrap5-definition.scss +2 -2
- package/styles/appbar/_fluent-definition.scss +2 -2
- package/styles/appbar/_layout.scss +3 -0
- package/styles/appbar/_tailwind-definition.scss +2 -2
- package/styles/appbar/bootstrap-dark.css +3 -0
- package/styles/appbar/bootstrap.css +3 -0
- package/styles/appbar/bootstrap4.css +3 -0
- package/styles/appbar/bootstrap5-dark.css +3 -0
- package/styles/appbar/bootstrap5.css +3 -0
- package/styles/appbar/fabric-dark.css +3 -0
- package/styles/appbar/fabric.css +3 -0
- package/styles/appbar/fluent-dark.css +3 -0
- package/styles/appbar/fluent.css +3 -0
- package/styles/appbar/highcontrast-light.css +3 -0
- package/styles/appbar/highcontrast.css +3 -0
- package/styles/appbar/material-dark.css +3 -0
- package/styles/appbar/material.css +3 -0
- package/styles/appbar/tailwind-dark.css +3 -0
- package/styles/appbar/tailwind.css +3 -0
- package/styles/bootstrap-dark.css +669 -938
- package/styles/bootstrap.css +658 -927
- package/styles/bootstrap4.css +724 -993
- package/styles/bootstrap5-dark.css +685 -954
- package/styles/bootstrap5.css +686 -955
- package/styles/breadcrumb/_bootstrap5-definition.scss +2 -2
- package/styles/breadcrumb/_fluent-definition.scss +2 -2
- package/styles/breadcrumb/_layout.scss +2 -2
- package/styles/breadcrumb/_tailwind-definition.scss +2 -2
- package/styles/breadcrumb/_theme.scss +18 -2
- package/styles/carousel/_layout.scss +7 -0
- package/styles/carousel/bootstrap-dark.css +4 -0
- package/styles/carousel/bootstrap.css +4 -0
- package/styles/carousel/bootstrap4.css +4 -0
- package/styles/carousel/bootstrap5-dark.css +4 -0
- package/styles/carousel/bootstrap5.css +4 -0
- package/styles/carousel/fabric-dark.css +4 -0
- package/styles/carousel/fabric.css +4 -0
- package/styles/carousel/fluent-dark.css +4 -0
- package/styles/carousel/fluent.css +4 -0
- package/styles/carousel/highcontrast-light.css +4 -0
- package/styles/carousel/highcontrast.css +4 -0
- package/styles/carousel/material-dark.css +4 -0
- package/styles/carousel/material.css +4 -0
- package/styles/carousel/tailwind-dark.css +4 -0
- package/styles/carousel/tailwind.css +4 -0
- package/styles/context-menu/_bootstrap5-definition.scss +3 -3
- package/styles/context-menu/_fluent-definition.scss +2 -2
- package/styles/context-menu/_tailwind-definition.scss +3 -3
- package/styles/fabric-dark.css +669 -938
- package/styles/fabric.css +669 -938
- package/styles/fluent-dark.css +677 -946
- package/styles/fluent.css +677 -946
- package/styles/h-scroll/_bootstrap-dark-definition.scss +0 -1
- package/styles/h-scroll/_bootstrap-definition.scss +0 -1
- package/styles/h-scroll/_bootstrap4-definition.scss +0 -1
- package/styles/h-scroll/_bootstrap5-definition.scss +0 -1
- package/styles/h-scroll/_fabric-dark-definition.scss +0 -1
- package/styles/h-scroll/_fabric-definition.scss +0 -1
- package/styles/h-scroll/_fluent-definition.scss +0 -1
- package/styles/h-scroll/_fusionnew-definition.scss +0 -1
- package/styles/h-scroll/_highcontrast-definition.scss +0 -1
- package/styles/h-scroll/_highcontrast-light-definition.scss +0 -1
- package/styles/h-scroll/_layout.scss +1 -0
- package/styles/h-scroll/_material-dark-definition.scss +0 -1
- package/styles/h-scroll/_material-definition.scss +0 -1
- package/styles/h-scroll/_tailwind-definition.scss +0 -1
- package/styles/h-scroll/_theme.scss +0 -1
- package/styles/h-scroll/bootstrap-dark.css +1 -1
- package/styles/h-scroll/bootstrap.css +1 -1
- package/styles/h-scroll/bootstrap4.css +1 -1
- package/styles/h-scroll/bootstrap5-dark.css +1 -1
- package/styles/h-scroll/bootstrap5.css +1 -1
- package/styles/h-scroll/fabric-dark.css +1 -1
- package/styles/h-scroll/fabric.css +1 -1
- package/styles/h-scroll/fluent-dark.css +1 -1
- package/styles/h-scroll/fluent.css +1 -1
- package/styles/h-scroll/highcontrast-light.css +1 -1
- package/styles/h-scroll/highcontrast.css +1 -1
- package/styles/h-scroll/material-dark.css +1 -1
- package/styles/h-scroll/material.css +1 -1
- package/styles/h-scroll/tailwind-dark.css +1 -1
- package/styles/h-scroll/tailwind.css +1 -1
- package/styles/highcontrast-light.css +668 -937
- package/styles/highcontrast.css +675 -944
- package/styles/material-dark.css +669 -938
- package/styles/material.css +661 -930
- package/styles/menu/_bootstrap5-definition.scss +2 -2
- package/styles/menu/_layout.scss +1 -1
- package/styles/menu/_tailwind-definition.scss +2 -2
- package/styles/menu/_theme.scss +31 -15
- package/styles/menu/bootstrap-dark.css +7 -7
- package/styles/menu/bootstrap.css +7 -7
- package/styles/menu/bootstrap4.css +10 -10
- package/styles/menu/bootstrap5-dark.css +7 -7
- package/styles/menu/bootstrap5.css +7 -7
- package/styles/menu/fabric-dark.css +7 -7
- package/styles/menu/fabric.css +7 -7
- package/styles/menu/fluent-dark.css +7 -7
- package/styles/menu/fluent.css +7 -7
- package/styles/menu/highcontrast-light.css +7 -7
- package/styles/menu/highcontrast.css +7 -7
- package/styles/menu/icons/_material3.scss +12 -12
- package/styles/menu/material-dark.css +7 -7
- package/styles/menu/material.css +7 -7
- package/styles/menu/tailwind-dark.css +7 -7
- package/styles/menu/tailwind.css +7 -7
- package/styles/pager/_bootstrap5-definition.scss +1 -1
- package/styles/pager/_fusionnew-definition.scss +1 -1
- package/styles/sidebar/_theme.scss +1 -1
- package/styles/tab/_bootstrap-dark-definition.scss +0 -2
- package/styles/tab/_bootstrap-definition.scss +0 -2
- package/styles/tab/_bootstrap4-definition.scss +1 -3
- package/styles/tab/_bootstrap5-definition.scss +12 -14
- package/styles/tab/_fabric-dark-definition.scss +0 -2
- package/styles/tab/_fabric-definition.scss +0 -2
- package/styles/tab/_fluent-definition.scss +4 -6
- package/styles/tab/_fusionnew-definition.scss +2 -4
- package/styles/tab/_highcontrast-definition.scss +0 -2
- package/styles/tab/_highcontrast-light-definition.scss +0 -2
- package/styles/tab/_layout.scss +8 -6
- package/styles/tab/_material-dark-definition.scss +0 -2
- package/styles/tab/_material-definition.scss +0 -2
- package/styles/tab/_tailwind-definition.scss +3 -5
- package/styles/tab/_theme.scss +0 -1
- package/styles/tab/bootstrap-dark.css +5 -2
- package/styles/tab/bootstrap.css +5 -2
- package/styles/tab/bootstrap4.css +12 -9
- package/styles/tab/bootstrap5-dark.css +11 -8
- package/styles/tab/bootstrap5.css +11 -8
- package/styles/tab/fabric-dark.css +7 -4
- package/styles/tab/fabric.css +7 -4
- package/styles/tab/fluent-dark.css +8 -5
- package/styles/tab/fluent.css +8 -5
- package/styles/tab/highcontrast-light.css +10 -7
- package/styles/tab/highcontrast.css +10 -7
- package/styles/tab/material-dark.css +4 -1
- package/styles/tab/material.css +4 -1
- package/styles/tab/tailwind-dark.css +8 -5
- package/styles/tab/tailwind.css +8 -5
- package/styles/tailwind-dark.css +668 -937
- package/styles/tailwind.css +668 -937
- package/styles/toolbar/_bootstrap-dark-definition.scss +13 -41
- package/styles/toolbar/_bootstrap-definition.scss +13 -41
- package/styles/toolbar/_bootstrap4-definition.scss +15 -43
- package/styles/toolbar/_bootstrap5-definition.scss +21 -49
- package/styles/toolbar/_fabric-dark-definition.scss +14 -43
- package/styles/toolbar/_fabric-definition.scss +15 -43
- package/styles/toolbar/_fluent-definition.scss +22 -50
- package/styles/toolbar/_fusionnew-definition.scss +17 -45
- package/styles/toolbar/_highcontrast-definition.scss +15 -43
- package/styles/toolbar/_highcontrast-light-definition.scss +14 -43
- package/styles/toolbar/_layout.scss +684 -977
- package/styles/toolbar/_material-dark-definition.scss +19 -49
- package/styles/toolbar/_material-definition.scss +21 -49
- package/styles/toolbar/_tailwind-definition.scss +21 -49
- package/styles/toolbar/_theme.scss +205 -294
- package/styles/toolbar/bootstrap-dark.css +647 -925
- package/styles/toolbar/bootstrap.css +638 -916
- package/styles/toolbar/bootstrap4.css +657 -935
- package/styles/toolbar/bootstrap5-dark.css +658 -936
- package/styles/toolbar/bootstrap5.css +658 -936
- package/styles/toolbar/fabric-dark.css +645 -923
- package/styles/toolbar/fabric.css +651 -929
- package/styles/toolbar/fluent-dark.css +650 -928
- package/styles/toolbar/fluent.css +650 -928
- package/styles/toolbar/highcontrast-light.css +642 -920
- package/styles/toolbar/highcontrast.css +647 -925
- package/styles/toolbar/material-dark.css +649 -927
- package/styles/toolbar/material.css +646 -924
- package/styles/toolbar/tailwind-dark.css +647 -925
- package/styles/toolbar/tailwind.css +645 -923
- package/styles/treeview/_bootstrap5-definition.scss +5 -5
- package/styles/treeview/_fluent-definition.scss +5 -5
- package/styles/treeview/_layout.scss +8 -4
- package/styles/treeview/_tailwind-definition.scss +5 -5
- package/styles/treeview/_theme.scss +3 -0
- package/GitLeaksReport.json +0 -1
- package/gitleaks-ci/gitleaks +0 -0
- package/gitleaks-ci.tar.gz +0 -0
- package/styles/accordion/_material3-definition.scss +0 -181
- package/styles/appbar/_material3-definition.scss +0 -8
- package/styles/breadcrumb/_material3-definition.scss +0 -59
- package/styles/carousel/_material3-definition.scss +0 -22
- package/styles/context-menu/_material3-definition.scss +0 -52
- package/styles/h-scroll/_material3-definition.scss +0 -84
- package/styles/menu/_material3-definition.scss +0 -67
- package/styles/pager/_material3-definition.scss +0 -146
- package/styles/sidebar/_material3-definition.scss +0 -6
- package/styles/tab/_material3-definition.scss +0 -658
- package/styles/toolbar/_material3-definition.scss +0 -248
- package/styles/treeview/_material3-definition.scss +0 -120
- package/styles/v-scroll/_material3-definition.scss +0 -49
|
@@ -4892,7 +4892,9 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
4892
4892
|
innerEle.forEach(function (ele) {
|
|
4893
4893
|
if (ele.tagName === 'DIV') {
|
|
4894
4894
|
_this.tbarEle.push(ele);
|
|
4895
|
-
ele.
|
|
4895
|
+
if (!isNullOrUndefined(ele.firstElementChild)) {
|
|
4896
|
+
ele.firstElementChild.setAttribute('aria-disabled', 'false');
|
|
4897
|
+
}
|
|
4896
4898
|
_this.add(ele, CLS_ITEM);
|
|
4897
4899
|
}
|
|
4898
4900
|
});
|
|
@@ -4946,11 +4948,15 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
4946
4948
|
var enable = function (isEnable, ele) {
|
|
4947
4949
|
if (isEnable) {
|
|
4948
4950
|
ele.classList.remove(CLS_DISABLE$2);
|
|
4949
|
-
ele.
|
|
4951
|
+
if (!isNullOrUndefined(ele.firstElementChild)) {
|
|
4952
|
+
ele.firstElementChild.setAttribute('aria-disabled', 'false');
|
|
4953
|
+
}
|
|
4950
4954
|
}
|
|
4951
4955
|
else {
|
|
4952
4956
|
ele.classList.add(CLS_DISABLE$2);
|
|
4953
|
-
ele.
|
|
4957
|
+
if (!isNullOrUndefined(ele.firstElementChild)) {
|
|
4958
|
+
ele.firstElementChild.setAttribute('aria-disabled', 'true');
|
|
4959
|
+
}
|
|
4954
4960
|
}
|
|
4955
4961
|
};
|
|
4956
4962
|
if (!isNullOrUndefined(len) && len >= 1) {
|
|
@@ -5227,7 +5233,6 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
5227
5233
|
Toolbar.prototype.renderSubComponent = function (item, index) {
|
|
5228
5234
|
var dom;
|
|
5229
5235
|
var innerEle = this.createElement('div', { className: CLS_ITEM });
|
|
5230
|
-
innerEle.setAttribute('aria-disabled', 'false');
|
|
5231
5236
|
var tempDom = this.createElement('div', {
|
|
5232
5237
|
innerHTML: this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
|
|
5233
5238
|
});
|
|
@@ -5253,6 +5258,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
5253
5258
|
dom.setAttribute('tabindex', isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString());
|
|
5254
5259
|
dom.setAttribute('data-tabindex', isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString());
|
|
5255
5260
|
dom.setAttribute('aria-label', (item.text || item.tooltipText));
|
|
5261
|
+
dom.setAttribute('aria-disabled', 'false');
|
|
5256
5262
|
innerEle.appendChild(dom);
|
|
5257
5263
|
innerEle.addEventListener('click', this.itemClick.bind(this));
|
|
5258
5264
|
break;
|
|
@@ -7809,7 +7815,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
7809
7815
|
}).outerHTML;
|
|
7810
7816
|
var wrap = _this.createElement('div', {
|
|
7811
7817
|
className: CLS_WRAP, innerHTML: cont,
|
|
7812
|
-
attrs: { role: 'tab', tabIndex: '-1', 'aria-selected': 'false', 'aria-controls': CLS_CONTENT$1 + _this.tabId + '_' + index }
|
|
7818
|
+
attrs: { role: 'tab', tabIndex: '-1', 'aria-selected': 'false', 'aria-controls': CLS_CONTENT$1 + _this.tabId + '_' + index, 'aria-disabled': 'false' }
|
|
7813
7819
|
});
|
|
7814
7820
|
tabItems_1.appendChild(_this.createElement('div', attr));
|
|
7815
7821
|
selectAll('.' + CLS_ITEM$2, tabItems_1)[index].appendChild(wrap);
|
|
@@ -7938,7 +7944,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
7938
7944
|
}
|
|
7939
7945
|
}
|
|
7940
7946
|
var tabIndex = isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString();
|
|
7941
|
-
var wrapAttrs = (item.disabled) ? {} : { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-selected': 'false' };
|
|
7947
|
+
var wrapAttrs = (item.disabled) ? {} : { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-selected': 'false', 'aria-disabled': 'false' };
|
|
7942
7948
|
tCont.appendChild(_this.btnCls.cloneNode(true));
|
|
7943
7949
|
var wrap = _this.createElement('div', { className: CLS_WRAP, attrs: wrapAttrs });
|
|
7944
7950
|
wrap.appendChild(tCont);
|
|
@@ -8758,6 +8764,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8758
8764
|
var scrCnt = select('.' + this.scrCntClass, this.tbItems);
|
|
8759
8765
|
if (!this.isVertical() && !isNullOrUndefined(scrCnt)) {
|
|
8760
8766
|
var scrBar = select('.e-hscroll-bar', this.tbItems);
|
|
8767
|
+
scrBar.removeAttribute('tabindex');
|
|
8761
8768
|
var scrStart = scrBar.scrollLeft;
|
|
8762
8769
|
var scrEnd = scrStart + scrBar.offsetWidth;
|
|
8763
8770
|
var eleStart = target.offsetLeft;
|
|
@@ -9130,7 +9137,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9130
9137
|
this.items[index].disabled = !value;
|
|
9131
9138
|
this.dataBind();
|
|
9132
9139
|
}
|
|
9133
|
-
tbItems.setAttribute('aria-disabled', (value === true) ? 'false' : 'true');
|
|
9140
|
+
tbItems.firstElementChild.setAttribute('aria-disabled', (value === true) ? 'false' : 'true');
|
|
9134
9141
|
};
|
|
9135
9142
|
/**
|
|
9136
9143
|
* Adds new items to the Tab that accepts an array as Tab items.
|
|
@@ -9251,6 +9258,32 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9251
9258
|
_this.refreshActiveBorder();
|
|
9252
9259
|
var cntTrg = select('#' + CLS_CONTENT$1 + _this.tabId + '_' + _this.extIndex(trg.id), select('.' + CLS_CONTENT$1, _this.element));
|
|
9253
9260
|
if (!isNullOrUndefined(cntTrg)) {
|
|
9261
|
+
var registeredTemplate = _this.registeredTemplate;
|
|
9262
|
+
var portal = _this.portals;
|
|
9263
|
+
if (registeredTemplate && registeredTemplate.content) {
|
|
9264
|
+
var templateToClear = [];
|
|
9265
|
+
for (var i_2 = 0; i_2 < registeredTemplate.content.length; i_2++) {
|
|
9266
|
+
var registeredItem = registeredTemplate.content[i_2].rootNodes[0];
|
|
9267
|
+
var closestItem_1 = closest(registeredItem, '.' + CLS_ITEM$2);
|
|
9268
|
+
if (!isNullOrUndefined(registeredItem) && closestItem_1 === cntTrg) {
|
|
9269
|
+
templateToClear.push(registeredTemplate.content[i_2]);
|
|
9270
|
+
break;
|
|
9271
|
+
}
|
|
9272
|
+
}
|
|
9273
|
+
if (templateToClear.length > 0) {
|
|
9274
|
+
_this.clearTemplate(['content'], templateToClear);
|
|
9275
|
+
}
|
|
9276
|
+
}
|
|
9277
|
+
else if (portal) {
|
|
9278
|
+
for (var i = 0; i < portal.length; i++) {
|
|
9279
|
+
var portalItem = portal[i];
|
|
9280
|
+
var closestItem = closest(portalItem.containerInfo, '.' + CLS_ITEM$2);
|
|
9281
|
+
if (!isNullOrUndefined(portalItem) && closestItem === cntTrg) {
|
|
9282
|
+
_this.clearTemplate(['content'], i);
|
|
9283
|
+
break;
|
|
9284
|
+
}
|
|
9285
|
+
}
|
|
9286
|
+
}
|
|
9254
9287
|
detach(cntTrg);
|
|
9255
9288
|
}
|
|
9256
9289
|
_this.trigger('removed', tabRemovingArgs);
|
|
@@ -9627,7 +9660,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9627
9660
|
}
|
|
9628
9661
|
}
|
|
9629
9662
|
var tabIndex = isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString();
|
|
9630
|
-
var wrapAtt = (item.disabled) ? {} : { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-selected': 'true' };
|
|
9663
|
+
var wrapAtt = (item.disabled) ? {} : { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-selected': 'true', 'aria-disabled': 'false' };
|
|
9631
9664
|
tConts.appendChild(this.btnCls.cloneNode(true));
|
|
9632
9665
|
var wraper = this.createElement('div', { className: CLS_WRAP, attrs: wrapAtt });
|
|
9633
9666
|
wraper.appendChild(tConts);
|
|
@@ -9689,7 +9722,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9689
9722
|
var tabIndex = element.firstElementChild.getAttribute('data-tabindex');
|
|
9690
9723
|
var wrap = this.createElement('div', {
|
|
9691
9724
|
className: CLS_WRAP, innerHTML: conte,
|
|
9692
|
-
attrs: { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-controls': CLS_CONTENT$1 + this.tabId + '_' + index, 'aria-selected': 'true' }
|
|
9725
|
+
attrs: { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-controls': CLS_CONTENT$1 + this.tabId + '_' + index, 'aria-selected': 'true', 'aria-disabled': 'false' }
|
|
9693
9726
|
});
|
|
9694
9727
|
tabItems.insertBefore(this.createElement('div', attr), tabItems.children[index + 1]);
|
|
9695
9728
|
this.element.querySelector('.' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1).appendChild(wrap);
|
|
@@ -11797,6 +11830,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
11797
11830
|
if (this.isLoaded) {
|
|
11798
11831
|
eventArgs.nodeData = this.getNodeData(li);
|
|
11799
11832
|
this.trigger('nodeSelected', eventArgs);
|
|
11833
|
+
this.isRightClick = false;
|
|
11800
11834
|
}
|
|
11801
11835
|
this.isRightClick = false;
|
|
11802
11836
|
};
|
|
@@ -12434,7 +12468,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
12434
12468
|
TreeView.prototype.focusIn = function () {
|
|
12435
12469
|
if (!this.mouseDownStatus) {
|
|
12436
12470
|
var focusedElement = this.getFocusedNode();
|
|
12437
|
-
focusedElement.setAttribute("
|
|
12471
|
+
focusedElement.setAttribute("tabindex", "0");
|
|
12438
12472
|
addClass([focusedElement], [HOVER, FOCUS]);
|
|
12439
12473
|
EventHandler.add(focusedElement, 'blur', this.focusOut, this);
|
|
12440
12474
|
}
|
|
@@ -12649,7 +12683,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
12649
12683
|
this.renderReactTemplates();
|
|
12650
12684
|
}
|
|
12651
12685
|
else {
|
|
12652
|
-
txtEle.innerText = newText;
|
|
12686
|
+
this.enableHtmlSanitizer ? txtEle.innerText = newText : txtEle.innerHTML = newText;
|
|
12653
12687
|
}
|
|
12654
12688
|
if (isInput) {
|
|
12655
12689
|
removeClass([liEle], EDITING);
|
|
@@ -12847,7 +12881,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
12847
12881
|
});
|
|
12848
12882
|
this.dropObj = new Droppable(this.element, {
|
|
12849
12883
|
out: function (e) {
|
|
12850
|
-
if (!isNullOrUndefined(e) && !e.target.classList.contains(SIBLING)) {
|
|
12884
|
+
if (!isNullOrUndefined(e) && !e.target.classList.contains(SIBLING) && (_this.dropObj.dragData.default && _this.dropObj.dragData.default.helper.classList.contains(ROOT))) {
|
|
12851
12885
|
document.body.style.cursor = 'not-allowed';
|
|
12852
12886
|
}
|
|
12853
12887
|
},
|
|
@@ -13546,15 +13580,29 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
13546
13580
|
}
|
|
13547
13581
|
}
|
|
13548
13582
|
if (!refNode && ((this.sortOrder === 'Ascending') || (this.sortOrder === 'Descending'))) {
|
|
13549
|
-
|
|
13550
|
-
|
|
13551
|
-
|
|
13552
|
-
|
|
13553
|
-
|
|
13554
|
-
|
|
13555
|
-
|
|
13583
|
+
if (dropUl.childNodes.length === 0) {
|
|
13584
|
+
for (var i = 0; i < li.length; i++) {
|
|
13585
|
+
dropUl.insertBefore(li[i], refNode);
|
|
13586
|
+
}
|
|
13587
|
+
if (this.dataType === 1 && !isNullOrUndefined(dropLi) && !isNullOrUndefined(this.element.offsetParent) && !this.element.offsetParent.parentElement.classList.contains('e-filemanager')) {
|
|
13588
|
+
this.preventExpand = false;
|
|
13589
|
+
var dropIcon = select('div.' + ICON, dropLi);
|
|
13590
|
+
if (dropIcon && dropIcon.classList.contains(EXPANDABLE)) {
|
|
13591
|
+
this.expandAction(dropLi, dropIcon, null);
|
|
13592
|
+
}
|
|
13593
|
+
}
|
|
13594
|
+
}
|
|
13595
|
+
else {
|
|
13596
|
+
var cNodes = dropUl.childNodes;
|
|
13597
|
+
for (var i = 0; i < li.length; i++) {
|
|
13598
|
+
for (var j = 0; j < cNodes.length; j++) {
|
|
13599
|
+
var returnValue = (this.sortOrder === 'Ascending') ? cNodes[j].textContent.toUpperCase() > li[i].innerText.toUpperCase() : cNodes[j].textContent.toUpperCase() < li[i].innerText.toUpperCase();
|
|
13600
|
+
if (returnValue) {
|
|
13601
|
+
dropUl.insertBefore(li[i], cNodes[j]);
|
|
13602
|
+
break;
|
|
13603
|
+
}
|
|
13604
|
+
dropUl.insertBefore(li[i], cNodes[cNodes.length]);
|
|
13556
13605
|
}
|
|
13557
|
-
dropUl.insertBefore(li[i], cNodes[cNodes.length]);
|
|
13558
13606
|
}
|
|
13559
13607
|
}
|
|
13560
13608
|
}
|
|
@@ -15119,7 +15167,7 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
|
|
|
15119
15167
|
setStyleAttribute(this.element, { 'z-index': '' + this.zIndex });
|
|
15120
15168
|
};
|
|
15121
15169
|
Sidebar.prototype.addClass = function () {
|
|
15122
|
-
if (this.element.tagName ===
|
|
15170
|
+
if (this.element.tagName === 'EJS-SIDEBAR') {
|
|
15123
15171
|
addClass([this.element], DISPLAY);
|
|
15124
15172
|
}
|
|
15125
15173
|
var classELement = document.querySelector('.e-main-content');
|
|
@@ -15725,6 +15773,38 @@ var TABINDEX = 'tabindex';
|
|
|
15725
15773
|
var DISABLEDCLASS = 'e-disabled';
|
|
15726
15774
|
var ARIADISABLED = 'aria-disabled';
|
|
15727
15775
|
var DOT = '.';
|
|
15776
|
+
/**
|
|
15777
|
+
* Defines the Breadcrumb overflow modes.
|
|
15778
|
+
*/
|
|
15779
|
+
var BreadcrumbOverflowMode;
|
|
15780
|
+
(function (BreadcrumbOverflowMode) {
|
|
15781
|
+
/**
|
|
15782
|
+
* Hidden mode shows the maximum number of items possible in the container space and hides the remaining items.
|
|
15783
|
+
* Clicking on a previous item will make the hidden item visible.
|
|
15784
|
+
*/
|
|
15785
|
+
BreadcrumbOverflowMode["Hidden"] = "Hidden";
|
|
15786
|
+
/**
|
|
15787
|
+
* Collapsed mode shows the first and last Breadcrumb items and hides the remaining items with a collapsed icon.
|
|
15788
|
+
* When the collapsed icon is clicked, all items become visible and navigable.
|
|
15789
|
+
*/
|
|
15790
|
+
BreadcrumbOverflowMode["Collapsed"] = "Collapsed";
|
|
15791
|
+
/**
|
|
15792
|
+
* Menu mode shows the number of Breadcrumb items that can be accommodated within the container space and creates a submenu with the remaining items.
|
|
15793
|
+
*/
|
|
15794
|
+
BreadcrumbOverflowMode["Menu"] = "Menu";
|
|
15795
|
+
/**
|
|
15796
|
+
* Wrap mode wraps the items to multiple lines when the Breadcrumb’s width exceeds the container space.
|
|
15797
|
+
*/
|
|
15798
|
+
BreadcrumbOverflowMode["Wrap"] = "Wrap";
|
|
15799
|
+
/**
|
|
15800
|
+
* Scroll mode shows an HTML scroll bar when the Breadcrumb’s width exceeds the container space.
|
|
15801
|
+
*/
|
|
15802
|
+
BreadcrumbOverflowMode["Scroll"] = "Scroll";
|
|
15803
|
+
/**
|
|
15804
|
+
* None mode shows all the items in a single line.
|
|
15805
|
+
*/
|
|
15806
|
+
BreadcrumbOverflowMode["None"] = "None";
|
|
15807
|
+
})(BreadcrumbOverflowMode || (BreadcrumbOverflowMode = {}));
|
|
15728
15808
|
var BreadcrumbItem = /** @__PURE__ @class */ (function (_super) {
|
|
15729
15809
|
__extends$10(BreadcrumbItem, _super);
|
|
15730
15810
|
function BreadcrumbItem() {
|
|
@@ -16578,6 +16658,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
16578
16658
|
};
|
|
16579
16659
|
Carousel.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
16580
16660
|
var target;
|
|
16661
|
+
var rtlElement;
|
|
16581
16662
|
for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
|
|
16582
16663
|
var prop = _a[_i];
|
|
16583
16664
|
switch (prop) {
|
|
@@ -16614,11 +16695,19 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
16614
16695
|
}
|
|
16615
16696
|
break;
|
|
16616
16697
|
case 'enableRtl':
|
|
16698
|
+
rtlElement = [].slice.call(this.element.querySelectorAll("." + CLS_PREV_BUTTON + ",\n ." + CLS_NEXT_BUTTON + ", ." + CLS_PLAY_BUTTON));
|
|
16699
|
+
rtlElement.push(this.element);
|
|
16617
16700
|
if (this.enableRtl) {
|
|
16618
|
-
addClass(
|
|
16701
|
+
addClass(rtlElement, CLS_RTL$5);
|
|
16619
16702
|
}
|
|
16620
16703
|
else {
|
|
16621
|
-
removeClass(
|
|
16704
|
+
removeClass(rtlElement, CLS_RTL$5);
|
|
16705
|
+
}
|
|
16706
|
+
if (this.partialVisible) {
|
|
16707
|
+
var itemsContainer = this.element.querySelector("." + CLS_ITEMS$2);
|
|
16708
|
+
var cloneCount = this.loop ? 2 : 0;
|
|
16709
|
+
var slideWidth = itemsContainer.firstElementChild.clientWidth;
|
|
16710
|
+
itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + cloneCount);
|
|
16622
16711
|
}
|
|
16623
16712
|
break;
|
|
16624
16713
|
case 'buttonsVisibility':
|
|
@@ -16766,12 +16855,17 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
16766
16855
|
var slideWidth = itemsContainer.firstElementChild.clientWidth;
|
|
16767
16856
|
var cloneCount = this.loop ? 2 : 0;
|
|
16768
16857
|
itemsContainer.style.transitionProperty = 'none';
|
|
16769
|
-
itemsContainer.style.transform =
|
|
16858
|
+
itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + cloneCount);
|
|
16770
16859
|
}
|
|
16771
16860
|
this.autoSlide();
|
|
16772
16861
|
this.renderTouchActions();
|
|
16773
16862
|
this.renderKeyboardActions();
|
|
16774
16863
|
};
|
|
16864
|
+
Carousel.prototype.getTranslateX = function (slideWidth, count) {
|
|
16865
|
+
if (count === void 0) { count = 1; }
|
|
16866
|
+
return this.enableRtl ? "translateX(" + (slideWidth) * (count) + "px)" :
|
|
16867
|
+
"translateX(" + -(slideWidth) * (count) + "px)";
|
|
16868
|
+
};
|
|
16775
16869
|
Carousel.prototype.renderSlide = function (item, itemTemplate, index, container, isClone) {
|
|
16776
16870
|
if (isClone === void 0) { isClone = false; }
|
|
16777
16871
|
var itemEle = this.createElement('div', {
|
|
@@ -16824,7 +16918,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
16824
16918
|
}
|
|
16825
16919
|
else {
|
|
16826
16920
|
var button = this.createElement('button', {
|
|
16827
|
-
attrs: { 'aria-label': this.localeObj.getConstant(direction === 'Previous' ? 'previousSlide' : 'nextSlide') }
|
|
16921
|
+
attrs: { 'aria-label': this.localeObj.getConstant(direction === 'Previous' ? 'previousSlide' : 'nextSlide'), 'type': 'button' }
|
|
16828
16922
|
});
|
|
16829
16923
|
var buttonObj = new Button({
|
|
16830
16924
|
cssClass: CLS_FLAT + ' ' + CLS_ROUND + ' ' + (direction === 'Previous' ? CLS_PREV_BUTTON : CLS_NEXT_BUTTON),
|
|
@@ -16853,7 +16947,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
16853
16947
|
}
|
|
16854
16948
|
else {
|
|
16855
16949
|
var playButton = this.createElement('button', {
|
|
16856
|
-
attrs: { 'aria-label': this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition') }
|
|
16950
|
+
attrs: { 'aria-label': this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition'), 'type': 'button' }
|
|
16857
16951
|
});
|
|
16858
16952
|
var isLastSlide = this.selectedIndex === this.slideItems.length - 1 && !this.loop;
|
|
16859
16953
|
var buttonObj = new Button({
|
|
@@ -16897,7 +16991,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
16897
16991
|
append(template, indicatorBar);
|
|
16898
16992
|
}
|
|
16899
16993
|
else {
|
|
16900
|
-
var indicator = _this.createElement('button', { className: CLS_INDICATOR$1 });
|
|
16994
|
+
var indicator = _this.createElement('button', { className: CLS_INDICATOR$1, attrs: { 'type': 'button' } });
|
|
16901
16995
|
indicatorBar.appendChild(indicator);
|
|
16902
16996
|
indicator.appendChild(_this.createElement('div', {
|
|
16903
16997
|
attrs: {
|
|
@@ -17051,17 +17145,17 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
17051
17145
|
container.style.transitionProperty = 'transform';
|
|
17052
17146
|
if (_this.loop) {
|
|
17053
17147
|
if (_this.slideChangedEventArgs.currentIndex === 0 && _this.slideChangedEventArgs.slideDirection === 'Next') {
|
|
17054
|
-
container.style.transform =
|
|
17148
|
+
container.style.transform = _this.getTranslateX(slideWidth, allSlides.length + 2);
|
|
17055
17149
|
}
|
|
17056
17150
|
else if (_this.slideChangedEventArgs.currentIndex === _this.slideItems.length - 1 && _this.slideChangedEventArgs.slideDirection === 'Previous') {
|
|
17057
|
-
container.style.transform =
|
|
17151
|
+
container.style.transform = _this.getTranslateX(slideWidth);
|
|
17058
17152
|
}
|
|
17059
17153
|
else {
|
|
17060
|
-
container.style.transform =
|
|
17154
|
+
container.style.transform = _this.getTranslateX(slideWidth, currentIndex + 2);
|
|
17061
17155
|
}
|
|
17062
17156
|
}
|
|
17063
17157
|
else {
|
|
17064
|
-
container.style.transform =
|
|
17158
|
+
container.style.transform = _this.getTranslateX(slideWidth, currentIndex);
|
|
17065
17159
|
}
|
|
17066
17160
|
}
|
|
17067
17161
|
if (_this.animationEffect === 'Slide') {
|
|
@@ -17104,7 +17198,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
17104
17198
|
var container = this.element.querySelector('.' + CLS_ITEMS$2);
|
|
17105
17199
|
var slideWidth = this.slideChangedEventArgs.currentSlide.clientWidth;
|
|
17106
17200
|
container.style.transitionProperty = 'none';
|
|
17107
|
-
container.style.transform =
|
|
17201
|
+
container.style.transform = this.getTranslateX(slideWidth, this.slideChangedEventArgs.currentIndex + 2);
|
|
17108
17202
|
}
|
|
17109
17203
|
addClass([this.slideChangedEventArgs.currentSlide], CLS_ACTIVE$2);
|
|
17110
17204
|
removeClass([this.slideChangedEventArgs.previousSlide], CLS_ACTIVE$2);
|
|
@@ -17758,5 +17852,5 @@ var AppBar = /** @__PURE__ @class */ (function (_super) {
|
|
|
17758
17852
|
* Navigation all modules
|
|
17759
17853
|
*/
|
|
17760
17854
|
|
|
17761
|
-
export { MenuAnimationSettings, MenuItem, FieldSettings, HScroll, VScroll, addScrolling, destroyScroll, Item, Toolbar, AccordionActionSettings, AccordionAnimationSettings, AccordionItem, Accordion, ContextMenu, Menu, TabActionSettings, TabAnimationSettings, Header, TabItem, Tab, FieldsSettings, ActionSettings, NodeAnimationSettings, TreeView, Sidebar, BreadcrumbItem, Breadcrumb, CarouselItem, Carousel, AppBar };
|
|
17855
|
+
export { MenuAnimationSettings, MenuItem, FieldSettings, HScroll, VScroll, addScrolling, destroyScroll, Item, Toolbar, AccordionActionSettings, AccordionAnimationSettings, AccordionItem, Accordion, ContextMenu, Menu, TabActionSettings, TabAnimationSettings, Header, TabItem, Tab, FieldsSettings, ActionSettings, NodeAnimationSettings, TreeView, Sidebar, BreadcrumbOverflowMode, BreadcrumbItem, Breadcrumb, CarouselItem, Carousel, AppBar };
|
|
17762
17856
|
//# sourceMappingURL=ej2-navigations.es5.js.map
|