@syncfusion/ej2-navigations 20.4.53 → 21.1.37
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/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 +90 -25
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +94 -29
- 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 +22 -10
- 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 +3 -2
- 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/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 +6 -3
- 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.
|
|
@@ -9252,13 +9259,14 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
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)) {
|
|
9254
9261
|
var registeredTemplate = _this.registeredTemplate;
|
|
9262
|
+
var portal = _this.portals;
|
|
9255
9263
|
if (registeredTemplate && registeredTemplate.content) {
|
|
9256
9264
|
var templateToClear = [];
|
|
9257
|
-
for (var
|
|
9258
|
-
var registeredItem = registeredTemplate.content[
|
|
9259
|
-
var
|
|
9260
|
-
if (!isNullOrUndefined(registeredItem) &&
|
|
9261
|
-
templateToClear.push(registeredTemplate.content[
|
|
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]);
|
|
9262
9270
|
break;
|
|
9263
9271
|
}
|
|
9264
9272
|
}
|
|
@@ -9266,6 +9274,16 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9266
9274
|
_this.clearTemplate(['content'], templateToClear);
|
|
9267
9275
|
}
|
|
9268
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
|
+
}
|
|
9269
9287
|
detach(cntTrg);
|
|
9270
9288
|
}
|
|
9271
9289
|
_this.trigger('removed', tabRemovingArgs);
|
|
@@ -9642,7 +9660,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9642
9660
|
}
|
|
9643
9661
|
}
|
|
9644
9662
|
var tabIndex = isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString();
|
|
9645
|
-
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' };
|
|
9646
9664
|
tConts.appendChild(this.btnCls.cloneNode(true));
|
|
9647
9665
|
var wraper = this.createElement('div', { className: CLS_WRAP, attrs: wrapAtt });
|
|
9648
9666
|
wraper.appendChild(tConts);
|
|
@@ -9704,7 +9722,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9704
9722
|
var tabIndex = element.firstElementChild.getAttribute('data-tabindex');
|
|
9705
9723
|
var wrap = this.createElement('div', {
|
|
9706
9724
|
className: CLS_WRAP, innerHTML: conte,
|
|
9707
|
-
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' }
|
|
9708
9726
|
});
|
|
9709
9727
|
tabItems.insertBefore(this.createElement('div', attr), tabItems.children[index + 1]);
|
|
9710
9728
|
this.element.querySelector('.' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1).appendChild(wrap);
|
|
@@ -11286,7 +11304,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
11286
11304
|
}
|
|
11287
11305
|
};
|
|
11288
11306
|
TreeView.prototype.clickHandler = function (event) {
|
|
11289
|
-
var target = Browser.isDevice ? document.elementFromPoint(event.originalEvent.changedTouches[0].clientX, event.originalEvent.changedTouches[0].clientY) : event.originalEvent.target;
|
|
11307
|
+
var target = Browser.isDevice && !Browser.isIos ? document.elementFromPoint(event.originalEvent.changedTouches[0].clientX, event.originalEvent.changedTouches[0].clientY) : event.originalEvent.target;
|
|
11290
11308
|
EventHandler.remove(this.element, 'contextmenu', this.preventContextMenu);
|
|
11291
11309
|
if (!target || this.dragStartAction) {
|
|
11292
11310
|
return;
|
|
@@ -11812,6 +11830,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
11812
11830
|
if (this.isLoaded) {
|
|
11813
11831
|
eventArgs.nodeData = this.getNodeData(li);
|
|
11814
11832
|
this.trigger('nodeSelected', eventArgs);
|
|
11833
|
+
this.isRightClick = false;
|
|
11815
11834
|
}
|
|
11816
11835
|
this.isRightClick = false;
|
|
11817
11836
|
};
|
|
@@ -12664,7 +12683,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
12664
12683
|
this.renderReactTemplates();
|
|
12665
12684
|
}
|
|
12666
12685
|
else {
|
|
12667
|
-
txtEle.innerText = newText;
|
|
12686
|
+
this.enableHtmlSanitizer ? txtEle.innerText = newText : txtEle.innerHTML = newText;
|
|
12668
12687
|
}
|
|
12669
12688
|
if (isInput) {
|
|
12670
12689
|
removeClass([liEle], EDITING);
|
|
@@ -15148,7 +15167,7 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
|
|
|
15148
15167
|
setStyleAttribute(this.element, { 'z-index': '' + this.zIndex });
|
|
15149
15168
|
};
|
|
15150
15169
|
Sidebar.prototype.addClass = function () {
|
|
15151
|
-
if (this.element.tagName ===
|
|
15170
|
+
if (this.element.tagName === 'EJS-SIDEBAR') {
|
|
15152
15171
|
addClass([this.element], DISPLAY);
|
|
15153
15172
|
}
|
|
15154
15173
|
var classELement = document.querySelector('.e-main-content');
|
|
@@ -15754,6 +15773,38 @@ var TABINDEX = 'tabindex';
|
|
|
15754
15773
|
var DISABLEDCLASS = 'e-disabled';
|
|
15755
15774
|
var ARIADISABLED = 'aria-disabled';
|
|
15756
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 = {}));
|
|
15757
15808
|
var BreadcrumbItem = /** @__PURE__ @class */ (function (_super) {
|
|
15758
15809
|
__extends$10(BreadcrumbItem, _super);
|
|
15759
15810
|
function BreadcrumbItem() {
|
|
@@ -16607,6 +16658,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
16607
16658
|
};
|
|
16608
16659
|
Carousel.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
16609
16660
|
var target;
|
|
16661
|
+
var rtlElement;
|
|
16610
16662
|
for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
|
|
16611
16663
|
var prop = _a[_i];
|
|
16612
16664
|
switch (prop) {
|
|
@@ -16643,11 +16695,19 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
16643
16695
|
}
|
|
16644
16696
|
break;
|
|
16645
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);
|
|
16646
16700
|
if (this.enableRtl) {
|
|
16647
|
-
addClass(
|
|
16701
|
+
addClass(rtlElement, CLS_RTL$5);
|
|
16648
16702
|
}
|
|
16649
16703
|
else {
|
|
16650
|
-
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);
|
|
16651
16711
|
}
|
|
16652
16712
|
break;
|
|
16653
16713
|
case 'buttonsVisibility':
|
|
@@ -16795,12 +16855,17 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
16795
16855
|
var slideWidth = itemsContainer.firstElementChild.clientWidth;
|
|
16796
16856
|
var cloneCount = this.loop ? 2 : 0;
|
|
16797
16857
|
itemsContainer.style.transitionProperty = 'none';
|
|
16798
|
-
itemsContainer.style.transform =
|
|
16858
|
+
itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + cloneCount);
|
|
16799
16859
|
}
|
|
16800
16860
|
this.autoSlide();
|
|
16801
16861
|
this.renderTouchActions();
|
|
16802
16862
|
this.renderKeyboardActions();
|
|
16803
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
|
+
};
|
|
16804
16869
|
Carousel.prototype.renderSlide = function (item, itemTemplate, index, container, isClone) {
|
|
16805
16870
|
if (isClone === void 0) { isClone = false; }
|
|
16806
16871
|
var itemEle = this.createElement('div', {
|
|
@@ -16853,7 +16918,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
16853
16918
|
}
|
|
16854
16919
|
else {
|
|
16855
16920
|
var button = this.createElement('button', {
|
|
16856
|
-
attrs: { 'aria-label': this.localeObj.getConstant(direction === 'Previous' ? 'previousSlide' : 'nextSlide') }
|
|
16921
|
+
attrs: { 'aria-label': this.localeObj.getConstant(direction === 'Previous' ? 'previousSlide' : 'nextSlide'), 'type': 'button' }
|
|
16857
16922
|
});
|
|
16858
16923
|
var buttonObj = new Button({
|
|
16859
16924
|
cssClass: CLS_FLAT + ' ' + CLS_ROUND + ' ' + (direction === 'Previous' ? CLS_PREV_BUTTON : CLS_NEXT_BUTTON),
|
|
@@ -16882,7 +16947,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
16882
16947
|
}
|
|
16883
16948
|
else {
|
|
16884
16949
|
var playButton = this.createElement('button', {
|
|
16885
|
-
attrs: { 'aria-label': this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition') }
|
|
16950
|
+
attrs: { 'aria-label': this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition'), 'type': 'button' }
|
|
16886
16951
|
});
|
|
16887
16952
|
var isLastSlide = this.selectedIndex === this.slideItems.length - 1 && !this.loop;
|
|
16888
16953
|
var buttonObj = new Button({
|
|
@@ -16926,7 +16991,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
16926
16991
|
append(template, indicatorBar);
|
|
16927
16992
|
}
|
|
16928
16993
|
else {
|
|
16929
|
-
var indicator = _this.createElement('button', { className: CLS_INDICATOR$1 });
|
|
16994
|
+
var indicator = _this.createElement('button', { className: CLS_INDICATOR$1, attrs: { 'type': 'button' } });
|
|
16930
16995
|
indicatorBar.appendChild(indicator);
|
|
16931
16996
|
indicator.appendChild(_this.createElement('div', {
|
|
16932
16997
|
attrs: {
|
|
@@ -17080,17 +17145,17 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
17080
17145
|
container.style.transitionProperty = 'transform';
|
|
17081
17146
|
if (_this.loop) {
|
|
17082
17147
|
if (_this.slideChangedEventArgs.currentIndex === 0 && _this.slideChangedEventArgs.slideDirection === 'Next') {
|
|
17083
|
-
container.style.transform =
|
|
17148
|
+
container.style.transform = _this.getTranslateX(slideWidth, allSlides.length + 2);
|
|
17084
17149
|
}
|
|
17085
17150
|
else if (_this.slideChangedEventArgs.currentIndex === _this.slideItems.length - 1 && _this.slideChangedEventArgs.slideDirection === 'Previous') {
|
|
17086
|
-
container.style.transform =
|
|
17151
|
+
container.style.transform = _this.getTranslateX(slideWidth);
|
|
17087
17152
|
}
|
|
17088
17153
|
else {
|
|
17089
|
-
container.style.transform =
|
|
17154
|
+
container.style.transform = _this.getTranslateX(slideWidth, currentIndex + 2);
|
|
17090
17155
|
}
|
|
17091
17156
|
}
|
|
17092
17157
|
else {
|
|
17093
|
-
container.style.transform =
|
|
17158
|
+
container.style.transform = _this.getTranslateX(slideWidth, currentIndex);
|
|
17094
17159
|
}
|
|
17095
17160
|
}
|
|
17096
17161
|
if (_this.animationEffect === 'Slide') {
|
|
@@ -17133,7 +17198,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
17133
17198
|
var container = this.element.querySelector('.' + CLS_ITEMS$2);
|
|
17134
17199
|
var slideWidth = this.slideChangedEventArgs.currentSlide.clientWidth;
|
|
17135
17200
|
container.style.transitionProperty = 'none';
|
|
17136
|
-
container.style.transform =
|
|
17201
|
+
container.style.transform = this.getTranslateX(slideWidth, this.slideChangedEventArgs.currentIndex + 2);
|
|
17137
17202
|
}
|
|
17138
17203
|
addClass([this.slideChangedEventArgs.currentSlide], CLS_ACTIVE$2);
|
|
17139
17204
|
removeClass([this.slideChangedEventArgs.previousSlide], CLS_ACTIVE$2);
|
|
@@ -17787,5 +17852,5 @@ var AppBar = /** @__PURE__ @class */ (function (_super) {
|
|
|
17787
17852
|
* Navigation all modules
|
|
17788
17853
|
*/
|
|
17789
17854
|
|
|
17790
|
-
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 };
|
|
17791
17856
|
//# sourceMappingURL=ej2-navigations.es5.js.map
|