@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
|
@@ -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.
|
|
@@ -8971,6 +8978,32 @@ let Tab = class Tab extends Component {
|
|
|
8971
8978
|
this.refreshActiveBorder();
|
|
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)) {
|
|
8981
|
+
const registeredTemplate = this.registeredTemplate;
|
|
8982
|
+
const portal = this.portals;
|
|
8983
|
+
if (registeredTemplate && registeredTemplate.content) {
|
|
8984
|
+
var templateToClear = [];
|
|
8985
|
+
for (let i = 0; i < registeredTemplate.content.length; i++) {
|
|
8986
|
+
let registeredItem = registeredTemplate.content[i].rootNodes[0];
|
|
8987
|
+
let closestItem = closest(registeredItem, '.' + CLS_ITEM$2);
|
|
8988
|
+
if (!isNullOrUndefined(registeredItem) && closestItem === cntTrg) {
|
|
8989
|
+
templateToClear.push(registeredTemplate.content[i]);
|
|
8990
|
+
break;
|
|
8991
|
+
}
|
|
8992
|
+
}
|
|
8993
|
+
if (templateToClear.length > 0) {
|
|
8994
|
+
this.clearTemplate(['content'], templateToClear);
|
|
8995
|
+
}
|
|
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
|
+
}
|
|
8974
9007
|
detach(cntTrg);
|
|
8975
9008
|
}
|
|
8976
9009
|
this.trigger('removed', tabRemovingArgs);
|
|
@@ -9342,7 +9375,7 @@ let Tab = class Tab extends Component {
|
|
|
9342
9375
|
}
|
|
9343
9376
|
}
|
|
9344
9377
|
const tabIndex = isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString();
|
|
9345
|
-
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' };
|
|
9346
9379
|
tConts.appendChild(this.btnCls.cloneNode(true));
|
|
9347
9380
|
const wraper = this.createElement('div', { className: CLS_WRAP, attrs: wrapAtt });
|
|
9348
9381
|
wraper.appendChild(tConts);
|
|
@@ -9404,7 +9437,7 @@ let Tab = class Tab extends Component {
|
|
|
9404
9437
|
const tabIndex = element.firstElementChild.getAttribute('data-tabindex');
|
|
9405
9438
|
const wrap = this.createElement('div', {
|
|
9406
9439
|
className: CLS_WRAP, innerHTML: conte,
|
|
9407
|
-
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' }
|
|
9408
9441
|
});
|
|
9409
9442
|
tabItems.insertBefore(this.createElement('div', attr), tabItems.children[index + 1]);
|
|
9410
9443
|
this.element.querySelector('.' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1).appendChild(wrap);
|
|
@@ -11469,6 +11502,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11469
11502
|
if (this.isLoaded) {
|
|
11470
11503
|
eventArgs.nodeData = this.getNodeData(li);
|
|
11471
11504
|
this.trigger('nodeSelected', eventArgs);
|
|
11505
|
+
this.isRightClick = false;
|
|
11472
11506
|
}
|
|
11473
11507
|
this.isRightClick = false;
|
|
11474
11508
|
}
|
|
@@ -12101,7 +12135,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
12101
12135
|
focusIn() {
|
|
12102
12136
|
if (!this.mouseDownStatus) {
|
|
12103
12137
|
let focusedElement = this.getFocusedNode();
|
|
12104
|
-
focusedElement.setAttribute("
|
|
12138
|
+
focusedElement.setAttribute("tabindex", "0");
|
|
12105
12139
|
addClass([focusedElement], [HOVER, FOCUS]);
|
|
12106
12140
|
EventHandler.add(focusedElement, 'blur', this.focusOut, this);
|
|
12107
12141
|
}
|
|
@@ -12314,7 +12348,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
12314
12348
|
this.renderReactTemplates();
|
|
12315
12349
|
}
|
|
12316
12350
|
else {
|
|
12317
|
-
txtEle.innerText = newText;
|
|
12351
|
+
this.enableHtmlSanitizer ? txtEle.innerText = newText : txtEle.innerHTML = newText;
|
|
12318
12352
|
}
|
|
12319
12353
|
if (isInput) {
|
|
12320
12354
|
removeClass([liEle], EDITING);
|
|
@@ -12511,7 +12545,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
12511
12545
|
});
|
|
12512
12546
|
this.dropObj = new Droppable(this.element, {
|
|
12513
12547
|
out: (e) => {
|
|
12514
|
-
if (!isNullOrUndefined(e) && !e.target.classList.contains(SIBLING)) {
|
|
12548
|
+
if (!isNullOrUndefined(e) && !e.target.classList.contains(SIBLING) && (this.dropObj.dragData.default && this.dropObj.dragData.default.helper.classList.contains(ROOT))) {
|
|
12515
12549
|
document.body.style.cursor = 'not-allowed';
|
|
12516
12550
|
}
|
|
12517
12551
|
},
|
|
@@ -13208,15 +13242,29 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
13208
13242
|
}
|
|
13209
13243
|
}
|
|
13210
13244
|
if (!refNode && ((this.sortOrder === 'Ascending') || (this.sortOrder === 'Descending'))) {
|
|
13211
|
-
|
|
13212
|
-
|
|
13213
|
-
|
|
13214
|
-
|
|
13215
|
-
|
|
13216
|
-
|
|
13217
|
-
|
|
13245
|
+
if (dropUl.childNodes.length === 0) {
|
|
13246
|
+
for (let i = 0; i < li.length; i++) {
|
|
13247
|
+
dropUl.insertBefore(li[i], refNode);
|
|
13248
|
+
}
|
|
13249
|
+
if (this.dataType === 1 && !isNullOrUndefined(dropLi) && !isNullOrUndefined(this.element.offsetParent) && !this.element.offsetParent.parentElement.classList.contains('e-filemanager')) {
|
|
13250
|
+
this.preventExpand = false;
|
|
13251
|
+
let dropIcon = select('div.' + ICON, dropLi);
|
|
13252
|
+
if (dropIcon && dropIcon.classList.contains(EXPANDABLE)) {
|
|
13253
|
+
this.expandAction(dropLi, dropIcon, null);
|
|
13254
|
+
}
|
|
13255
|
+
}
|
|
13256
|
+
}
|
|
13257
|
+
else {
|
|
13258
|
+
let cNodes = dropUl.childNodes;
|
|
13259
|
+
for (let i = 0; i < li.length; i++) {
|
|
13260
|
+
for (let j = 0; j < cNodes.length; j++) {
|
|
13261
|
+
let returnValue = (this.sortOrder === 'Ascending') ? cNodes[j].textContent.toUpperCase() > li[i].innerText.toUpperCase() : cNodes[j].textContent.toUpperCase() < li[i].innerText.toUpperCase();
|
|
13262
|
+
if (returnValue) {
|
|
13263
|
+
dropUl.insertBefore(li[i], cNodes[j]);
|
|
13264
|
+
break;
|
|
13265
|
+
}
|
|
13266
|
+
dropUl.insertBefore(li[i], cNodes[cNodes.length]);
|
|
13218
13267
|
}
|
|
13219
|
-
dropUl.insertBefore(li[i], cNodes[cNodes.length]);
|
|
13220
13268
|
}
|
|
13221
13269
|
}
|
|
13222
13270
|
}
|
|
@@ -14758,7 +14806,7 @@ let Sidebar = class Sidebar extends Component {
|
|
|
14758
14806
|
setStyleAttribute(this.element, { 'z-index': '' + this.zIndex });
|
|
14759
14807
|
}
|
|
14760
14808
|
addClass() {
|
|
14761
|
-
if (this.element.tagName ===
|
|
14809
|
+
if (this.element.tagName === 'EJS-SIDEBAR') {
|
|
14762
14810
|
addClass([this.element], DISPLAY);
|
|
14763
14811
|
}
|
|
14764
14812
|
const classELement = document.querySelector('.e-main-content');
|
|
@@ -15347,6 +15395,38 @@ const TABINDEX = 'tabindex';
|
|
|
15347
15395
|
const DISABLEDCLASS = 'e-disabled';
|
|
15348
15396
|
const ARIADISABLED = 'aria-disabled';
|
|
15349
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 = {}));
|
|
15350
15430
|
class BreadcrumbItem extends ChildProperty {
|
|
15351
15431
|
}
|
|
15352
15432
|
__decorate$10([
|
|
@@ -16168,6 +16248,7 @@ let Carousel = class Carousel extends Component {
|
|
|
16168
16248
|
}
|
|
16169
16249
|
onPropertyChanged(newProp, oldProp) {
|
|
16170
16250
|
let target;
|
|
16251
|
+
let rtlElement;
|
|
16171
16252
|
for (const prop of Object.keys(newProp)) {
|
|
16172
16253
|
switch (prop) {
|
|
16173
16254
|
case 'animationEffect':
|
|
@@ -16203,11 +16284,20 @@ let Carousel = class Carousel extends Component {
|
|
|
16203
16284
|
}
|
|
16204
16285
|
break;
|
|
16205
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);
|
|
16206
16290
|
if (this.enableRtl) {
|
|
16207
|
-
addClass(
|
|
16291
|
+
addClass(rtlElement, CLS_RTL$5);
|
|
16208
16292
|
}
|
|
16209
16293
|
else {
|
|
16210
|
-
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);
|
|
16211
16301
|
}
|
|
16212
16302
|
break;
|
|
16213
16303
|
case 'buttonsVisibility':
|
|
@@ -16354,12 +16444,16 @@ let Carousel = class Carousel extends Component {
|
|
|
16354
16444
|
const slideWidth = itemsContainer.firstElementChild.clientWidth;
|
|
16355
16445
|
const cloneCount = this.loop ? 2 : 0;
|
|
16356
16446
|
itemsContainer.style.transitionProperty = 'none';
|
|
16357
|
-
itemsContainer.style.transform =
|
|
16447
|
+
itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + cloneCount);
|
|
16358
16448
|
}
|
|
16359
16449
|
this.autoSlide();
|
|
16360
16450
|
this.renderTouchActions();
|
|
16361
16451
|
this.renderKeyboardActions();
|
|
16362
16452
|
}
|
|
16453
|
+
getTranslateX(slideWidth, count = 1) {
|
|
16454
|
+
return this.enableRtl ? `translateX(${(slideWidth) * (count)}px)` :
|
|
16455
|
+
`translateX(${-(slideWidth) * (count)}px)`;
|
|
16456
|
+
}
|
|
16363
16457
|
renderSlide(item, itemTemplate, index, container, isClone = false) {
|
|
16364
16458
|
const itemEle = this.createElement('div', {
|
|
16365
16459
|
id: getUniqueID('carousel_item'),
|
|
@@ -16411,7 +16505,7 @@ let Carousel = class Carousel extends Component {
|
|
|
16411
16505
|
}
|
|
16412
16506
|
else {
|
|
16413
16507
|
const button = this.createElement('button', {
|
|
16414
|
-
attrs: { 'aria-label': this.localeObj.getConstant(direction === 'Previous' ? 'previousSlide' : 'nextSlide') }
|
|
16508
|
+
attrs: { 'aria-label': this.localeObj.getConstant(direction === 'Previous' ? 'previousSlide' : 'nextSlide'), 'type': 'button' }
|
|
16415
16509
|
});
|
|
16416
16510
|
const buttonObj = new Button({
|
|
16417
16511
|
cssClass: CLS_FLAT + ' ' + CLS_ROUND + ' ' + (direction === 'Previous' ? CLS_PREV_BUTTON : CLS_NEXT_BUTTON),
|
|
@@ -16440,7 +16534,7 @@ let Carousel = class Carousel extends Component {
|
|
|
16440
16534
|
}
|
|
16441
16535
|
else {
|
|
16442
16536
|
const playButton = this.createElement('button', {
|
|
16443
|
-
attrs: { 'aria-label': this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition') }
|
|
16537
|
+
attrs: { 'aria-label': this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition'), 'type': 'button' }
|
|
16444
16538
|
});
|
|
16445
16539
|
const isLastSlide = this.selectedIndex === this.slideItems.length - 1 && !this.loop;
|
|
16446
16540
|
const buttonObj = new Button({
|
|
@@ -16483,7 +16577,7 @@ let Carousel = class Carousel extends Component {
|
|
|
16483
16577
|
append(template, indicatorBar);
|
|
16484
16578
|
}
|
|
16485
16579
|
else {
|
|
16486
|
-
const indicator = this.createElement('button', { className: CLS_INDICATOR$1 });
|
|
16580
|
+
const indicator = this.createElement('button', { className: CLS_INDICATOR$1, attrs: { 'type': 'button' } });
|
|
16487
16581
|
indicatorBar.appendChild(indicator);
|
|
16488
16582
|
indicator.appendChild(this.createElement('div', {
|
|
16489
16583
|
attrs: {
|
|
@@ -16634,17 +16728,17 @@ let Carousel = class Carousel extends Component {
|
|
|
16634
16728
|
container.style.transitionProperty = 'transform';
|
|
16635
16729
|
if (this.loop) {
|
|
16636
16730
|
if (this.slideChangedEventArgs.currentIndex === 0 && this.slideChangedEventArgs.slideDirection === 'Next') {
|
|
16637
|
-
container.style.transform =
|
|
16731
|
+
container.style.transform = this.getTranslateX(slideWidth, allSlides.length + 2);
|
|
16638
16732
|
}
|
|
16639
16733
|
else if (this.slideChangedEventArgs.currentIndex === this.slideItems.length - 1 && this.slideChangedEventArgs.slideDirection === 'Previous') {
|
|
16640
|
-
container.style.transform =
|
|
16734
|
+
container.style.transform = this.getTranslateX(slideWidth);
|
|
16641
16735
|
}
|
|
16642
16736
|
else {
|
|
16643
|
-
container.style.transform =
|
|
16737
|
+
container.style.transform = this.getTranslateX(slideWidth, currentIndex + 2);
|
|
16644
16738
|
}
|
|
16645
16739
|
}
|
|
16646
16740
|
else {
|
|
16647
|
-
container.style.transform =
|
|
16741
|
+
container.style.transform = this.getTranslateX(slideWidth, currentIndex);
|
|
16648
16742
|
}
|
|
16649
16743
|
}
|
|
16650
16744
|
if (this.animationEffect === 'Slide') {
|
|
@@ -16686,7 +16780,7 @@ let Carousel = class Carousel extends Component {
|
|
|
16686
16780
|
const container = this.element.querySelector('.' + CLS_ITEMS$2);
|
|
16687
16781
|
const slideWidth = this.slideChangedEventArgs.currentSlide.clientWidth;
|
|
16688
16782
|
container.style.transitionProperty = 'none';
|
|
16689
|
-
container.style.transform =
|
|
16783
|
+
container.style.transform = this.getTranslateX(slideWidth, this.slideChangedEventArgs.currentIndex + 2);
|
|
16690
16784
|
}
|
|
16691
16785
|
addClass([this.slideChangedEventArgs.currentSlide], CLS_ACTIVE$2);
|
|
16692
16786
|
removeClass([this.slideChangedEventArgs.previousSlide], CLS_ACTIVE$2);
|
|
@@ -17316,5 +17410,5 @@ AppBar = __decorate$12([
|
|
|
17316
17410
|
* Navigation all modules
|
|
17317
17411
|
*/
|
|
17318
17412
|
|
|
17319
|
-
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 };
|
|
17320
17414
|
//# sourceMappingURL=ej2-navigations.es2015.js.map
|