@syncfusion/ej2-navigations 20.4.53 → 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 +14 -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 +89 -24
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +93 -28
- 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 +2 -1
- 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 +3 -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
|
@@ -4742,7 +4742,9 @@ let Toolbar = class Toolbar extends Component {
|
|
|
4742
4742
|
innerEle.forEach((ele) => {
|
|
4743
4743
|
if (ele.tagName === 'DIV') {
|
|
4744
4744
|
this.tbarEle.push(ele);
|
|
4745
|
-
ele.
|
|
4745
|
+
if (!isNullOrUndefined(ele.firstElementChild)) {
|
|
4746
|
+
ele.firstElementChild.setAttribute('aria-disabled', 'false');
|
|
4747
|
+
}
|
|
4746
4748
|
this.add(ele, CLS_ITEM);
|
|
4747
4749
|
}
|
|
4748
4750
|
});
|
|
@@ -4796,11 +4798,15 @@ let Toolbar = class Toolbar extends Component {
|
|
|
4796
4798
|
const enable = (isEnable, ele) => {
|
|
4797
4799
|
if (isEnable) {
|
|
4798
4800
|
ele.classList.remove(CLS_DISABLE$2);
|
|
4799
|
-
ele.
|
|
4801
|
+
if (!isNullOrUndefined(ele.firstElementChild)) {
|
|
4802
|
+
ele.firstElementChild.setAttribute('aria-disabled', 'false');
|
|
4803
|
+
}
|
|
4800
4804
|
}
|
|
4801
4805
|
else {
|
|
4802
4806
|
ele.classList.add(CLS_DISABLE$2);
|
|
4803
|
-
ele.
|
|
4807
|
+
if (!isNullOrUndefined(ele.firstElementChild)) {
|
|
4808
|
+
ele.firstElementChild.setAttribute('aria-disabled', 'true');
|
|
4809
|
+
}
|
|
4804
4810
|
}
|
|
4805
4811
|
};
|
|
4806
4812
|
if (!isNullOrUndefined(len) && len >= 1) {
|
|
@@ -5075,7 +5081,6 @@ let Toolbar = class Toolbar extends Component {
|
|
|
5075
5081
|
renderSubComponent(item, index) {
|
|
5076
5082
|
let dom;
|
|
5077
5083
|
const innerEle = this.createElement('div', { className: CLS_ITEM });
|
|
5078
|
-
innerEle.setAttribute('aria-disabled', 'false');
|
|
5079
5084
|
const tempDom = this.createElement('div', {
|
|
5080
5085
|
innerHTML: this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
|
|
5081
5086
|
});
|
|
@@ -5101,6 +5106,7 @@ let Toolbar = class Toolbar extends Component {
|
|
|
5101
5106
|
dom.setAttribute('tabindex', isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString());
|
|
5102
5107
|
dom.setAttribute('data-tabindex', isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString());
|
|
5103
5108
|
dom.setAttribute('aria-label', (item.text || item.tooltipText));
|
|
5109
|
+
dom.setAttribute('aria-disabled', 'false');
|
|
5104
5110
|
innerEle.appendChild(dom);
|
|
5105
5111
|
innerEle.addEventListener('click', this.itemClick.bind(this));
|
|
5106
5112
|
break;
|
|
@@ -5400,7 +5406,7 @@ let Toolbar = class Toolbar extends Component {
|
|
|
5400
5406
|
*/
|
|
5401
5407
|
hideItem(index, value) {
|
|
5402
5408
|
const isElement = (typeof (index) === 'object') ? true : false;
|
|
5403
|
-
|
|
5409
|
+
const eleIndex = index;
|
|
5404
5410
|
let ele;
|
|
5405
5411
|
if (!isElement && isNullOrUndefined(eleIndex)) {
|
|
5406
5412
|
return;
|
|
@@ -7542,7 +7548,7 @@ let Tab = class Tab extends Component {
|
|
|
7542
7548
|
}).outerHTML;
|
|
7543
7549
|
const wrap = this.createElement('div', {
|
|
7544
7550
|
className: CLS_WRAP, innerHTML: cont,
|
|
7545
|
-
attrs: { role: 'tab', tabIndex: '-1', 'aria-selected': 'false', 'aria-controls': CLS_CONTENT$1 + this.tabId + '_' + index }
|
|
7551
|
+
attrs: { role: 'tab', tabIndex: '-1', 'aria-selected': 'false', 'aria-controls': CLS_CONTENT$1 + this.tabId + '_' + index, 'aria-disabled': 'false' }
|
|
7546
7552
|
});
|
|
7547
7553
|
tabItems.appendChild(this.createElement('div', attr));
|
|
7548
7554
|
selectAll('.' + CLS_ITEM$2, tabItems)[index].appendChild(wrap);
|
|
@@ -7670,7 +7676,7 @@ let Tab = class Tab extends Component {
|
|
|
7670
7676
|
}
|
|
7671
7677
|
}
|
|
7672
7678
|
const tabIndex = isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString();
|
|
7673
|
-
const wrapAttrs = (item.disabled) ? {} : { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-selected': 'false' };
|
|
7679
|
+
const wrapAttrs = (item.disabled) ? {} : { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-selected': 'false', 'aria-disabled': 'false' };
|
|
7674
7680
|
tCont.appendChild(this.btnCls.cloneNode(true));
|
|
7675
7681
|
const wrap = this.createElement('div', { className: CLS_WRAP, attrs: wrapAttrs });
|
|
7676
7682
|
wrap.appendChild(tCont);
|
|
@@ -8484,6 +8490,7 @@ let Tab = class Tab extends Component {
|
|
|
8484
8490
|
const scrCnt = select('.' + this.scrCntClass, this.tbItems);
|
|
8485
8491
|
if (!this.isVertical() && !isNullOrUndefined(scrCnt)) {
|
|
8486
8492
|
const scrBar = select('.e-hscroll-bar', this.tbItems);
|
|
8493
|
+
scrBar.removeAttribute('tabindex');
|
|
8487
8494
|
const scrStart = scrBar.scrollLeft;
|
|
8488
8495
|
const scrEnd = scrStart + scrBar.offsetWidth;
|
|
8489
8496
|
const eleStart = target.offsetLeft;
|
|
@@ -8853,7 +8860,7 @@ let Tab = class Tab extends Component {
|
|
|
8853
8860
|
this.items[index].disabled = !value;
|
|
8854
8861
|
this.dataBind();
|
|
8855
8862
|
}
|
|
8856
|
-
tbItems.setAttribute('aria-disabled', (value === true) ? 'false' : 'true');
|
|
8863
|
+
tbItems.firstElementChild.setAttribute('aria-disabled', (value === true) ? 'false' : 'true');
|
|
8857
8864
|
}
|
|
8858
8865
|
/**
|
|
8859
8866
|
* Adds new items to the Tab that accepts an array as Tab items.
|
|
@@ -8972,6 +8979,7 @@ let Tab = class Tab extends Component {
|
|
|
8972
8979
|
const cntTrg = select('#' + CLS_CONTENT$1 + this.tabId + '_' + this.extIndex(trg.id), select('.' + CLS_CONTENT$1, this.element));
|
|
8973
8980
|
if (!isNullOrUndefined(cntTrg)) {
|
|
8974
8981
|
const registeredTemplate = this.registeredTemplate;
|
|
8982
|
+
const portal = this.portals;
|
|
8975
8983
|
if (registeredTemplate && registeredTemplate.content) {
|
|
8976
8984
|
var templateToClear = [];
|
|
8977
8985
|
for (let i = 0; i < registeredTemplate.content.length; i++) {
|
|
@@ -8986,6 +8994,16 @@ let Tab = class Tab extends Component {
|
|
|
8986
8994
|
this.clearTemplate(['content'], templateToClear);
|
|
8987
8995
|
}
|
|
8988
8996
|
}
|
|
8997
|
+
else if (portal) {
|
|
8998
|
+
for (var i = 0; i < portal.length; i++) {
|
|
8999
|
+
var portalItem = portal[i];
|
|
9000
|
+
var closestItem = closest(portalItem.containerInfo, '.' + CLS_ITEM$2);
|
|
9001
|
+
if (!isNullOrUndefined(portalItem) && closestItem === cntTrg) {
|
|
9002
|
+
this.clearTemplate(['content'], i);
|
|
9003
|
+
break;
|
|
9004
|
+
}
|
|
9005
|
+
}
|
|
9006
|
+
}
|
|
8989
9007
|
detach(cntTrg);
|
|
8990
9008
|
}
|
|
8991
9009
|
this.trigger('removed', tabRemovingArgs);
|
|
@@ -9357,7 +9375,7 @@ let Tab = class Tab extends Component {
|
|
|
9357
9375
|
}
|
|
9358
9376
|
}
|
|
9359
9377
|
const tabIndex = isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString();
|
|
9360
|
-
const wrapAtt = (item.disabled) ? {} : { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-selected': 'true' };
|
|
9378
|
+
const wrapAtt = (item.disabled) ? {} : { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-selected': 'true', 'aria-disabled': 'false' };
|
|
9361
9379
|
tConts.appendChild(this.btnCls.cloneNode(true));
|
|
9362
9380
|
const wraper = this.createElement('div', { className: CLS_WRAP, attrs: wrapAtt });
|
|
9363
9381
|
wraper.appendChild(tConts);
|
|
@@ -9419,7 +9437,7 @@ let Tab = class Tab extends Component {
|
|
|
9419
9437
|
const tabIndex = element.firstElementChild.getAttribute('data-tabindex');
|
|
9420
9438
|
const wrap = this.createElement('div', {
|
|
9421
9439
|
className: CLS_WRAP, innerHTML: conte,
|
|
9422
|
-
attrs: { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-controls': CLS_CONTENT$1 + this.tabId + '_' + index, 'aria-selected': 'true' }
|
|
9440
|
+
attrs: { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-controls': CLS_CONTENT$1 + this.tabId + '_' + index, 'aria-selected': 'true', 'aria-disabled': 'false' }
|
|
9423
9441
|
});
|
|
9424
9442
|
tabItems.insertBefore(this.createElement('div', attr), tabItems.children[index + 1]);
|
|
9425
9443
|
this.element.querySelector('.' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1).appendChild(wrap);
|
|
@@ -11484,6 +11502,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11484
11502
|
if (this.isLoaded) {
|
|
11485
11503
|
eventArgs.nodeData = this.getNodeData(li);
|
|
11486
11504
|
this.trigger('nodeSelected', eventArgs);
|
|
11505
|
+
this.isRightClick = false;
|
|
11487
11506
|
}
|
|
11488
11507
|
this.isRightClick = false;
|
|
11489
11508
|
}
|
|
@@ -12329,7 +12348,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
12329
12348
|
this.renderReactTemplates();
|
|
12330
12349
|
}
|
|
12331
12350
|
else {
|
|
12332
|
-
txtEle.innerText = newText;
|
|
12351
|
+
this.enableHtmlSanitizer ? txtEle.innerText = newText : txtEle.innerHTML = newText;
|
|
12333
12352
|
}
|
|
12334
12353
|
if (isInput) {
|
|
12335
12354
|
removeClass([liEle], EDITING);
|
|
@@ -14787,7 +14806,7 @@ let Sidebar = class Sidebar extends Component {
|
|
|
14787
14806
|
setStyleAttribute(this.element, { 'z-index': '' + this.zIndex });
|
|
14788
14807
|
}
|
|
14789
14808
|
addClass() {
|
|
14790
|
-
if (this.element.tagName ===
|
|
14809
|
+
if (this.element.tagName === 'EJS-SIDEBAR') {
|
|
14791
14810
|
addClass([this.element], DISPLAY);
|
|
14792
14811
|
}
|
|
14793
14812
|
const classELement = document.querySelector('.e-main-content');
|
|
@@ -15376,6 +15395,38 @@ const TABINDEX = 'tabindex';
|
|
|
15376
15395
|
const DISABLEDCLASS = 'e-disabled';
|
|
15377
15396
|
const ARIADISABLED = 'aria-disabled';
|
|
15378
15397
|
const DOT = '.';
|
|
15398
|
+
/**
|
|
15399
|
+
* Defines the Breadcrumb overflow modes.
|
|
15400
|
+
*/
|
|
15401
|
+
var BreadcrumbOverflowMode;
|
|
15402
|
+
(function (BreadcrumbOverflowMode) {
|
|
15403
|
+
/**
|
|
15404
|
+
* Hidden mode shows the maximum number of items possible in the container space and hides the remaining items.
|
|
15405
|
+
* Clicking on a previous item will make the hidden item visible.
|
|
15406
|
+
*/
|
|
15407
|
+
BreadcrumbOverflowMode["Hidden"] = "Hidden";
|
|
15408
|
+
/**
|
|
15409
|
+
* Collapsed mode shows the first and last Breadcrumb items and hides the remaining items with a collapsed icon.
|
|
15410
|
+
* When the collapsed icon is clicked, all items become visible and navigable.
|
|
15411
|
+
*/
|
|
15412
|
+
BreadcrumbOverflowMode["Collapsed"] = "Collapsed";
|
|
15413
|
+
/**
|
|
15414
|
+
* Menu mode shows the number of Breadcrumb items that can be accommodated within the container space and creates a submenu with the remaining items.
|
|
15415
|
+
*/
|
|
15416
|
+
BreadcrumbOverflowMode["Menu"] = "Menu";
|
|
15417
|
+
/**
|
|
15418
|
+
* Wrap mode wraps the items to multiple lines when the Breadcrumb’s width exceeds the container space.
|
|
15419
|
+
*/
|
|
15420
|
+
BreadcrumbOverflowMode["Wrap"] = "Wrap";
|
|
15421
|
+
/**
|
|
15422
|
+
* Scroll mode shows an HTML scroll bar when the Breadcrumb’s width exceeds the container space.
|
|
15423
|
+
*/
|
|
15424
|
+
BreadcrumbOverflowMode["Scroll"] = "Scroll";
|
|
15425
|
+
/**
|
|
15426
|
+
* None mode shows all the items in a single line.
|
|
15427
|
+
*/
|
|
15428
|
+
BreadcrumbOverflowMode["None"] = "None";
|
|
15429
|
+
})(BreadcrumbOverflowMode || (BreadcrumbOverflowMode = {}));
|
|
15379
15430
|
class BreadcrumbItem extends ChildProperty {
|
|
15380
15431
|
}
|
|
15381
15432
|
__decorate$10([
|
|
@@ -16197,6 +16248,7 @@ let Carousel = class Carousel extends Component {
|
|
|
16197
16248
|
}
|
|
16198
16249
|
onPropertyChanged(newProp, oldProp) {
|
|
16199
16250
|
let target;
|
|
16251
|
+
let rtlElement;
|
|
16200
16252
|
for (const prop of Object.keys(newProp)) {
|
|
16201
16253
|
switch (prop) {
|
|
16202
16254
|
case 'animationEffect':
|
|
@@ -16232,11 +16284,20 @@ let Carousel = class Carousel extends Component {
|
|
|
16232
16284
|
}
|
|
16233
16285
|
break;
|
|
16234
16286
|
case 'enableRtl':
|
|
16287
|
+
rtlElement = [].slice.call(this.element.querySelectorAll(`.${CLS_PREV_BUTTON},
|
|
16288
|
+
.${CLS_NEXT_BUTTON}, .${CLS_PLAY_BUTTON}`));
|
|
16289
|
+
rtlElement.push(this.element);
|
|
16235
16290
|
if (this.enableRtl) {
|
|
16236
|
-
addClass(
|
|
16291
|
+
addClass(rtlElement, CLS_RTL$5);
|
|
16237
16292
|
}
|
|
16238
16293
|
else {
|
|
16239
|
-
removeClass(
|
|
16294
|
+
removeClass(rtlElement, CLS_RTL$5);
|
|
16295
|
+
}
|
|
16296
|
+
if (this.partialVisible) {
|
|
16297
|
+
const itemsContainer = this.element.querySelector(`.${CLS_ITEMS$2}`);
|
|
16298
|
+
const cloneCount = this.loop ? 2 : 0;
|
|
16299
|
+
const slideWidth = itemsContainer.firstElementChild.clientWidth;
|
|
16300
|
+
itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + cloneCount);
|
|
16240
16301
|
}
|
|
16241
16302
|
break;
|
|
16242
16303
|
case 'buttonsVisibility':
|
|
@@ -16383,12 +16444,16 @@ let Carousel = class Carousel extends Component {
|
|
|
16383
16444
|
const slideWidth = itemsContainer.firstElementChild.clientWidth;
|
|
16384
16445
|
const cloneCount = this.loop ? 2 : 0;
|
|
16385
16446
|
itemsContainer.style.transitionProperty = 'none';
|
|
16386
|
-
itemsContainer.style.transform =
|
|
16447
|
+
itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + cloneCount);
|
|
16387
16448
|
}
|
|
16388
16449
|
this.autoSlide();
|
|
16389
16450
|
this.renderTouchActions();
|
|
16390
16451
|
this.renderKeyboardActions();
|
|
16391
16452
|
}
|
|
16453
|
+
getTranslateX(slideWidth, count = 1) {
|
|
16454
|
+
return this.enableRtl ? `translateX(${(slideWidth) * (count)}px)` :
|
|
16455
|
+
`translateX(${-(slideWidth) * (count)}px)`;
|
|
16456
|
+
}
|
|
16392
16457
|
renderSlide(item, itemTemplate, index, container, isClone = false) {
|
|
16393
16458
|
const itemEle = this.createElement('div', {
|
|
16394
16459
|
id: getUniqueID('carousel_item'),
|
|
@@ -16440,7 +16505,7 @@ let Carousel = class Carousel extends Component {
|
|
|
16440
16505
|
}
|
|
16441
16506
|
else {
|
|
16442
16507
|
const button = this.createElement('button', {
|
|
16443
|
-
attrs: { 'aria-label': this.localeObj.getConstant(direction === 'Previous' ? 'previousSlide' : 'nextSlide') }
|
|
16508
|
+
attrs: { 'aria-label': this.localeObj.getConstant(direction === 'Previous' ? 'previousSlide' : 'nextSlide'), 'type': 'button' }
|
|
16444
16509
|
});
|
|
16445
16510
|
const buttonObj = new Button({
|
|
16446
16511
|
cssClass: CLS_FLAT + ' ' + CLS_ROUND + ' ' + (direction === 'Previous' ? CLS_PREV_BUTTON : CLS_NEXT_BUTTON),
|
|
@@ -16469,7 +16534,7 @@ let Carousel = class Carousel extends Component {
|
|
|
16469
16534
|
}
|
|
16470
16535
|
else {
|
|
16471
16536
|
const playButton = this.createElement('button', {
|
|
16472
|
-
attrs: { 'aria-label': this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition') }
|
|
16537
|
+
attrs: { 'aria-label': this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition'), 'type': 'button' }
|
|
16473
16538
|
});
|
|
16474
16539
|
const isLastSlide = this.selectedIndex === this.slideItems.length - 1 && !this.loop;
|
|
16475
16540
|
const buttonObj = new Button({
|
|
@@ -16512,7 +16577,7 @@ let Carousel = class Carousel extends Component {
|
|
|
16512
16577
|
append(template, indicatorBar);
|
|
16513
16578
|
}
|
|
16514
16579
|
else {
|
|
16515
|
-
const indicator = this.createElement('button', { className: CLS_INDICATOR$1 });
|
|
16580
|
+
const indicator = this.createElement('button', { className: CLS_INDICATOR$1, attrs: { 'type': 'button' } });
|
|
16516
16581
|
indicatorBar.appendChild(indicator);
|
|
16517
16582
|
indicator.appendChild(this.createElement('div', {
|
|
16518
16583
|
attrs: {
|
|
@@ -16663,17 +16728,17 @@ let Carousel = class Carousel extends Component {
|
|
|
16663
16728
|
container.style.transitionProperty = 'transform';
|
|
16664
16729
|
if (this.loop) {
|
|
16665
16730
|
if (this.slideChangedEventArgs.currentIndex === 0 && this.slideChangedEventArgs.slideDirection === 'Next') {
|
|
16666
|
-
container.style.transform =
|
|
16731
|
+
container.style.transform = this.getTranslateX(slideWidth, allSlides.length + 2);
|
|
16667
16732
|
}
|
|
16668
16733
|
else if (this.slideChangedEventArgs.currentIndex === this.slideItems.length - 1 && this.slideChangedEventArgs.slideDirection === 'Previous') {
|
|
16669
|
-
container.style.transform =
|
|
16734
|
+
container.style.transform = this.getTranslateX(slideWidth);
|
|
16670
16735
|
}
|
|
16671
16736
|
else {
|
|
16672
|
-
container.style.transform =
|
|
16737
|
+
container.style.transform = this.getTranslateX(slideWidth, currentIndex + 2);
|
|
16673
16738
|
}
|
|
16674
16739
|
}
|
|
16675
16740
|
else {
|
|
16676
|
-
container.style.transform =
|
|
16741
|
+
container.style.transform = this.getTranslateX(slideWidth, currentIndex);
|
|
16677
16742
|
}
|
|
16678
16743
|
}
|
|
16679
16744
|
if (this.animationEffect === 'Slide') {
|
|
@@ -16715,7 +16780,7 @@ let Carousel = class Carousel extends Component {
|
|
|
16715
16780
|
const container = this.element.querySelector('.' + CLS_ITEMS$2);
|
|
16716
16781
|
const slideWidth = this.slideChangedEventArgs.currentSlide.clientWidth;
|
|
16717
16782
|
container.style.transitionProperty = 'none';
|
|
16718
|
-
container.style.transform =
|
|
16783
|
+
container.style.transform = this.getTranslateX(slideWidth, this.slideChangedEventArgs.currentIndex + 2);
|
|
16719
16784
|
}
|
|
16720
16785
|
addClass([this.slideChangedEventArgs.currentSlide], CLS_ACTIVE$2);
|
|
16721
16786
|
removeClass([this.slideChangedEventArgs.previousSlide], CLS_ACTIVE$2);
|
|
@@ -17345,5 +17410,5 @@ AppBar = __decorate$12([
|
|
|
17345
17410
|
* Navigation all modules
|
|
17346
17411
|
*/
|
|
17347
17412
|
|
|
17348
|
-
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 };
|
|
17413
|
+
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 };
|
|
17349
17414
|
//# sourceMappingURL=ej2-navigations.es2015.js.map
|