@syncfusion/ej2-navigations 29.2.7 → 30.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/.eslintrc.json +2 -0
- 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 +108 -30
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +109 -30
- 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 +17 -69
- package/src/carousel/carousel.js +1 -7
- package/src/sidebar/sidebar.js +5 -1
- package/src/stepper/stepper.js +6 -5
- package/src/tab/tab.js +4 -1
- package/src/toolbar/toolbar-model.d.ts +8 -1
- package/src/toolbar/toolbar.d.ts +19 -0
- package/src/toolbar/toolbar.js +69 -13
- package/src/treeview/treeview.js +24 -3
- package/styles/bds-lite.css +29 -1
- package/styles/bds.css +31 -3
- package/styles/bootstrap-dark-lite.css +29 -1
- package/styles/bootstrap-dark.css +33 -5
- package/styles/bootstrap-lite.css +29 -1
- package/styles/bootstrap.css +33 -5
- package/styles/bootstrap4-lite.css +29 -1
- package/styles/bootstrap4.css +31 -3
- package/styles/bootstrap5-dark-lite.css +23 -1
- package/styles/bootstrap5-dark.css +26 -4
- package/styles/bootstrap5-lite.css +23 -1
- package/styles/bootstrap5.3-lite.css +23 -1
- package/styles/bootstrap5.3.css +25 -3
- package/styles/bootstrap5.css +26 -4
- package/styles/breadcrumb/_layout.scss +14 -0
- package/styles/breadcrumb/bds.css +15 -0
- package/styles/breadcrumb/bootstrap-dark.css +15 -0
- package/styles/breadcrumb/bootstrap.css +15 -0
- package/styles/breadcrumb/bootstrap4.css +15 -0
- package/styles/breadcrumb/bootstrap5-dark.css +15 -0
- package/styles/breadcrumb/bootstrap5.3.css +15 -0
- package/styles/breadcrumb/bootstrap5.css +15 -0
- package/styles/breadcrumb/fabric-dark.css +15 -0
- package/styles/breadcrumb/fabric.css +15 -0
- package/styles/breadcrumb/fluent-dark.css +15 -0
- package/styles/breadcrumb/fluent.css +15 -0
- package/styles/breadcrumb/fluent2.css +15 -0
- package/styles/breadcrumb/highcontrast-light.css +15 -0
- package/styles/breadcrumb/highcontrast.css +15 -0
- package/styles/breadcrumb/material-dark.css +15 -0
- package/styles/breadcrumb/material.css +15 -0
- package/styles/breadcrumb/material3-dark.css +15 -0
- package/styles/breadcrumb/material3.css +15 -0
- package/styles/breadcrumb/tailwind-dark.css +15 -0
- package/styles/breadcrumb/tailwind.css +15 -0
- package/styles/breadcrumb/tailwind3.css +15 -0
- package/styles/fabric-dark-lite.css +29 -1
- package/styles/fabric-dark.css +31 -3
- package/styles/fabric-lite.css +29 -1
- package/styles/fabric.css +31 -3
- package/styles/fluent-dark-lite.css +29 -1
- package/styles/fluent-dark.css +32 -4
- package/styles/fluent-lite.css +29 -1
- package/styles/fluent.css +32 -4
- package/styles/fluent2-lite.css +29 -1
- package/styles/fluent2.css +31 -3
- package/styles/highcontrast-light-lite.css +29 -1
- package/styles/highcontrast-light.css +31 -3
- package/styles/highcontrast-lite.css +31 -3
- package/styles/highcontrast.css +33 -5
- package/styles/material-dark-lite.css +31 -3
- package/styles/material-dark.css +33 -5
- package/styles/material-lite.css +31 -3
- package/styles/material.css +33 -5
- package/styles/material3-dark-lite.css +29 -1
- package/styles/material3-dark.css +31 -4
- package/styles/material3-lite.css +29 -1
- package/styles/material3.css +31 -4
- package/styles/pager/_bds-definition.scss +1 -1
- package/styles/pager/_bigger.scss +0 -1
- package/styles/pager/_bootstrap-dark-definition.scss +1 -1
- package/styles/pager/_bootstrap-definition.scss +1 -1
- package/styles/pager/_bootstrap4-definition.scss +1 -1
- package/styles/pager/_bootstrap5-definition.scss +2 -2
- package/styles/pager/_bootstrap5.3-definition.scss +1 -1
- package/styles/pager/_fabric-dark-definition.scss +1 -1
- package/styles/pager/_fabric-definition.scss +1 -1
- package/styles/pager/_fluent-definition.scss +2 -2
- package/styles/pager/_fluent2-definition.scss +1 -1
- package/styles/pager/_fusionnew-definition.scss +1 -1
- package/styles/pager/_highcontrast-definition.scss +1 -1
- package/styles/pager/_highcontrast-light-definition.scss +1 -1
- package/styles/pager/_layout.scss +8 -0
- package/styles/pager/_material-dark-definition.scss +1 -1
- package/styles/pager/_material-definition.scss +1 -1
- package/styles/pager/_material3-definition.scss +1 -1
- package/styles/pager/_tailwind-definition.scss +1 -1
- package/styles/pager/_tailwind3-definition.scss +2 -2
- package/styles/pager/bds.css +13 -3
- package/styles/pager/bootstrap-dark.css +13 -3
- package/styles/pager/bootstrap.css +13 -3
- package/styles/pager/bootstrap4.css +13 -3
- package/styles/pager/bootstrap5-dark.css +8 -4
- package/styles/pager/bootstrap5.3.css +7 -3
- package/styles/pager/bootstrap5.css +8 -4
- package/styles/pager/fabric-dark.css +13 -3
- package/styles/pager/fabric.css +13 -3
- package/styles/pager/fluent-dark.css +14 -4
- package/styles/pager/fluent.css +14 -4
- package/styles/pager/fluent2.css +13 -3
- package/styles/pager/highcontrast-light.css +13 -3
- package/styles/pager/highcontrast.css +13 -3
- package/styles/pager/material-dark.css +13 -3
- package/styles/pager/material.css +13 -3
- package/styles/pager/material3-dark.css +13 -4
- package/styles/pager/material3.css +13 -4
- package/styles/pager/tailwind-dark.css +13 -3
- package/styles/pager/tailwind.css +13 -3
- package/styles/pager/tailwind3.css +14 -4
- package/styles/tailwind-dark-lite.css +29 -1
- package/styles/tailwind-dark.css +31 -3
- package/styles/tailwind-lite.css +29 -1
- package/styles/tailwind.css +31 -3
- package/styles/tailwind3-lite.css +29 -1
- package/styles/tailwind3.css +32 -4
- package/styles/toolbar/_bootstrap-dark-definition.scss +1 -1
- package/styles/toolbar/_bootstrap-definition.scss +1 -1
- package/styles/toolbar/_highcontrast-definition.scss +1 -1
- package/styles/toolbar/_material-dark-definition.scss +2 -2
- package/styles/toolbar/_material-definition.scss +2 -2
- package/styles/toolbar/bootstrap-dark.css +2 -2
- package/styles/toolbar/bootstrap.css +2 -2
- package/styles/toolbar/highcontrast.css +2 -2
- package/styles/toolbar/material-dark.css +2 -2
- package/styles/toolbar/material.css +2 -2
- package/styles/treeview/_layout.scss +4 -0
- package/styles/treeview/bds.css +3 -0
- package/styles/treeview/bootstrap-dark.css +3 -0
- package/styles/treeview/bootstrap.css +3 -0
- package/styles/treeview/bootstrap4.css +3 -0
- package/styles/treeview/bootstrap5-dark.css +3 -0
- package/styles/treeview/bootstrap5.3.css +3 -0
- package/styles/treeview/bootstrap5.css +3 -0
- package/styles/treeview/fabric-dark.css +3 -0
- package/styles/treeview/fabric.css +3 -0
- package/styles/treeview/fluent-dark.css +3 -0
- package/styles/treeview/fluent.css +3 -0
- package/styles/treeview/fluent2.css +3 -0
- package/styles/treeview/highcontrast-light.css +3 -0
- package/styles/treeview/highcontrast.css +3 -0
- package/styles/treeview/material-dark.css +3 -0
- package/styles/treeview/material.css +3 -0
- package/styles/treeview/material3-dark.css +3 -0
- package/styles/treeview/material3.css +3 -0
- package/styles/treeview/tailwind-dark.css +3 -0
- package/styles/treeview/tailwind.css +3 -0
- package/styles/treeview/tailwind3.css +3 -0
|
@@ -3878,6 +3878,38 @@ let Toolbar = class Toolbar extends Component {
|
|
|
3878
3878
|
}
|
|
3879
3879
|
return clst;
|
|
3880
3880
|
}
|
|
3881
|
+
getNextFocusableItem(currentItem, action) {
|
|
3882
|
+
const selector = `.${CLS_ITEM}:not(.${CLS_DISABLE$2}):not(.${CLS_SEPARATOR}):not(.${CLS_HIDDEN})`;
|
|
3883
|
+
const items = Array.from(this.element.querySelectorAll(selector));
|
|
3884
|
+
const currentIndex = items.indexOf(currentItem);
|
|
3885
|
+
if (currentIndex < 0) {
|
|
3886
|
+
return null;
|
|
3887
|
+
}
|
|
3888
|
+
let nextIndex;
|
|
3889
|
+
switch (action) {
|
|
3890
|
+
case 'moveRight':
|
|
3891
|
+
case 'moveDown':
|
|
3892
|
+
case 'tab':
|
|
3893
|
+
nextIndex = (currentIndex + 1) % items.length;
|
|
3894
|
+
break;
|
|
3895
|
+
case 'moveLeft':
|
|
3896
|
+
case 'moveUp':
|
|
3897
|
+
nextIndex = (currentIndex - 1 + items.length) % items.length;
|
|
3898
|
+
break;
|
|
3899
|
+
case 'home':
|
|
3900
|
+
nextIndex = 0;
|
|
3901
|
+
break;
|
|
3902
|
+
case 'end':
|
|
3903
|
+
nextIndex = items.length - 1;
|
|
3904
|
+
break;
|
|
3905
|
+
default:
|
|
3906
|
+
nextIndex = currentIndex;
|
|
3907
|
+
}
|
|
3908
|
+
if (nextIndex >= 0 && nextIndex < items.length) {
|
|
3909
|
+
return items[parseInt(nextIndex.toString(), 10)];
|
|
3910
|
+
}
|
|
3911
|
+
return null;
|
|
3912
|
+
}
|
|
3881
3913
|
keyHandling(clst, e, trgt, navChk, scrollChk) {
|
|
3882
3914
|
const popObj = this.popObj;
|
|
3883
3915
|
const rootEle = this.element;
|
|
@@ -3943,19 +3975,30 @@ let Toolbar = class Toolbar extends Component {
|
|
|
3943
3975
|
if (!this.isVertical) {
|
|
3944
3976
|
if (popObj && closest(trgt, '.e-popup')) {
|
|
3945
3977
|
const popEle = popObj.element;
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3978
|
+
if ((value === 'previous' && popEle.firstElementChild === clst)) {
|
|
3979
|
+
const lastVisibleEle = this.focusLastVisibleEle([].slice.call(popEle.children));
|
|
3980
|
+
if (lastVisibleEle) {
|
|
3981
|
+
this.elementFocus(lastVisibleEle);
|
|
3982
|
+
}
|
|
3949
3983
|
}
|
|
3950
3984
|
else if (value === 'next' && popEle.lastElementChild === clst) {
|
|
3951
|
-
|
|
3985
|
+
const firstVisibleEle = this.focusFirstVisibleEle([].slice.call(popEle.children));
|
|
3986
|
+
if (firstVisibleEle) {
|
|
3987
|
+
this.elementFocus(firstVisibleEle);
|
|
3988
|
+
}
|
|
3952
3989
|
}
|
|
3953
3990
|
else {
|
|
3954
3991
|
this.eleFocus(clst, value);
|
|
3955
3992
|
}
|
|
3956
3993
|
}
|
|
3957
3994
|
else if (e.action === 'moveDown' && popObj && isVisible(popObj.element)) {
|
|
3958
|
-
this.
|
|
3995
|
+
const skipEle = this.eleContains(clst);
|
|
3996
|
+
if (skipEle) {
|
|
3997
|
+
this.eleFocus(clst, value);
|
|
3998
|
+
}
|
|
3999
|
+
else {
|
|
4000
|
+
this.elementFocus(clst);
|
|
4001
|
+
}
|
|
3959
4002
|
}
|
|
3960
4003
|
}
|
|
3961
4004
|
else {
|
|
@@ -4002,7 +4045,8 @@ let Toolbar = class Toolbar extends Component {
|
|
|
4002
4045
|
}
|
|
4003
4046
|
keyActionHandler(e) {
|
|
4004
4047
|
const trgt = e.target;
|
|
4005
|
-
if (
|
|
4048
|
+
if ((e.action === 'home' || e.action === 'end' || e.action === 'moveRight' || e.action === 'moveLeft' || e.action === 'moveUp' || e.action === 'moveDown')
|
|
4049
|
+
&& (trgt.tagName === 'INPUT' || trgt.tagName === 'TEXTAREA' || this.element.classList.contains(CLS_DISABLE$2))) {
|
|
4006
4050
|
return;
|
|
4007
4051
|
}
|
|
4008
4052
|
e.preventDefault();
|
|
@@ -4010,7 +4054,19 @@ let Toolbar = class Toolbar extends Component {
|
|
|
4010
4054
|
const tbarScrollChk = trgt.classList.contains(CLS_TBARSCRLNAV);
|
|
4011
4055
|
const clst = this.clstElement(tbrNavChk, trgt);
|
|
4012
4056
|
if (clst || tbarScrollChk) {
|
|
4013
|
-
|
|
4057
|
+
const currentItem = clst;
|
|
4058
|
+
const nextItem = this.getNextFocusableItem(currentItem, e.action);
|
|
4059
|
+
const keyDownEventArgs = {
|
|
4060
|
+
originalEvent: e,
|
|
4061
|
+
currentItem: currentItem,
|
|
4062
|
+
nextItem: nextItem,
|
|
4063
|
+
cancel: false
|
|
4064
|
+
};
|
|
4065
|
+
this.trigger('keyDown', keyDownEventArgs, (keyDownArgs) => {
|
|
4066
|
+
if (!keyDownArgs.cancel) {
|
|
4067
|
+
this.keyHandling(clst, e, trgt, tbrNavChk, tbarScrollChk);
|
|
4068
|
+
}
|
|
4069
|
+
});
|
|
4014
4070
|
}
|
|
4015
4071
|
}
|
|
4016
4072
|
/**
|
|
@@ -4049,7 +4105,7 @@ let Toolbar = class Toolbar extends Component {
|
|
|
4049
4105
|
let index = 0;
|
|
4050
4106
|
while (index < nodes.length) {
|
|
4051
4107
|
const ele = nodes[parseInt(index.toString(), 10)];
|
|
4052
|
-
if (!ele.classList.contains(CLS_HIDDEN) && !ele.classList.contains(CLS_DISABLE$2)) {
|
|
4108
|
+
if (!ele.classList.contains(CLS_SEPARATOR) && !ele.classList.contains(CLS_HIDDEN) && !ele.classList.contains(CLS_DISABLE$2)) {
|
|
4053
4109
|
return ele;
|
|
4054
4110
|
}
|
|
4055
4111
|
index++;
|
|
@@ -4061,7 +4117,7 @@ let Toolbar = class Toolbar extends Component {
|
|
|
4061
4117
|
let index = nodes.length - 1;
|
|
4062
4118
|
while (index >= 0) {
|
|
4063
4119
|
const ele = nodes[parseInt(index.toString(), 10)];
|
|
4064
|
-
if (!ele.classList.contains(CLS_HIDDEN) && !ele.classList.contains(CLS_DISABLE$2)) {
|
|
4120
|
+
if (!ele.classList.contains(CLS_SEPARATOR) && !ele.classList.contains(CLS_HIDDEN) && !ele.classList.contains(CLS_DISABLE$2)) {
|
|
4065
4121
|
return ele;
|
|
4066
4122
|
}
|
|
4067
4123
|
index--;
|
|
@@ -5533,10 +5589,6 @@ let Toolbar = class Toolbar extends Component {
|
|
|
5533
5589
|
return isNullOrUndefined(ele.getAttribute('data-tabindex')) ? '-1' : ele.getAttribute('data-tabindex');
|
|
5534
5590
|
}
|
|
5535
5591
|
itemClick(e) {
|
|
5536
|
-
const itemClosest = !isNullOrUndefined(closest(e.currentTarget, '.' + CLS_TEMPLATE));
|
|
5537
|
-
if (itemClosest) {
|
|
5538
|
-
return;
|
|
5539
|
-
}
|
|
5540
5592
|
this.activeEleSwitch(e.currentTarget);
|
|
5541
5593
|
}
|
|
5542
5594
|
activeEleSwitch(ele) {
|
|
@@ -5898,6 +5950,9 @@ __decorate$3([
|
|
|
5898
5950
|
__decorate$3([
|
|
5899
5951
|
Event()
|
|
5900
5952
|
], Toolbar.prototype, "beforeCreate", void 0);
|
|
5953
|
+
__decorate$3([
|
|
5954
|
+
Event()
|
|
5955
|
+
], Toolbar.prototype, "keyDown", void 0);
|
|
5901
5956
|
Toolbar = __decorate$3([
|
|
5902
5957
|
NotifyPropertyChanges
|
|
5903
5958
|
], Toolbar);
|
|
@@ -7936,6 +7991,7 @@ let Tab = class Tab extends Component {
|
|
|
7936
7991
|
if (this.isReact && this.portals && this.portals.length > 0) {
|
|
7937
7992
|
this.renderReactTemplates(() => {
|
|
7938
7993
|
this.refreshOverflow();
|
|
7994
|
+
this.selectingContent(this.selectedItem, this.isInteracted);
|
|
7939
7995
|
this.refreshActiveBorder();
|
|
7940
7996
|
});
|
|
7941
7997
|
}
|
|
@@ -8999,7 +9055,9 @@ let Tab = class Tab extends Component {
|
|
|
8999
9055
|
}
|
|
9000
9056
|
break;
|
|
9001
9057
|
case 'openPopup':
|
|
9002
|
-
e.
|
|
9058
|
+
if (!isNullOrUndefined(e.target) && (e.target.classList.contains(CLS_WRAP))) {
|
|
9059
|
+
e.preventDefault();
|
|
9060
|
+
}
|
|
9003
9061
|
if (!isNullOrUndefined(this.popEle) && this.popEle.classList.contains(CLS_POPUP_CLOSE)) {
|
|
9004
9062
|
this.popObj.show(this.show);
|
|
9005
9063
|
}
|
|
@@ -11910,7 +11968,10 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11910
11968
|
activeElement.classList.add(ITEM_ANIMATION_ACTIVE);
|
|
11911
11969
|
}
|
|
11912
11970
|
start = liEle.offsetHeight;
|
|
11913
|
-
|
|
11971
|
+
const computedStyle = window.getComputedStyle(liEle);
|
|
11972
|
+
const paddingTop = parseFloat(computedStyle.paddingTop);
|
|
11973
|
+
const paddingBottom = parseFloat(computedStyle.paddingBottom);
|
|
11974
|
+
end = select('.' + TEXTWRAP, currLi).offsetHeight + paddingBottom + paddingTop;
|
|
11914
11975
|
},
|
|
11915
11976
|
progress: (args) => {
|
|
11916
11977
|
args.element.style.display = 'block';
|
|
@@ -13541,6 +13602,15 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
13541
13602
|
this.dragAction(e, virtualEle);
|
|
13542
13603
|
},
|
|
13543
13604
|
dragStop: (e) => {
|
|
13605
|
+
if (!e.target) {
|
|
13606
|
+
if (e.helper && e.helper.parentNode) {
|
|
13607
|
+
detach(e.helper);
|
|
13608
|
+
}
|
|
13609
|
+
document.body.style.cursor = '';
|
|
13610
|
+
removeClass([this.element], DRAGGING);
|
|
13611
|
+
this.dragStartAction = false;
|
|
13612
|
+
return;
|
|
13613
|
+
}
|
|
13544
13614
|
removeClass([this.element], DRAGGING);
|
|
13545
13615
|
if (!e.target.classList.contains('e-sibling')) {
|
|
13546
13616
|
this.removeVirtualEle();
|
|
@@ -13577,6 +13647,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
13577
13647
|
});
|
|
13578
13648
|
this.dropObj = new Droppable(this.element, {
|
|
13579
13649
|
out: (e) => {
|
|
13650
|
+
if (!e.target) {
|
|
13651
|
+
return;
|
|
13652
|
+
}
|
|
13580
13653
|
if (!isNullOrUndefined(e) && !e.target.classList.contains(SIBLING) &&
|
|
13581
13654
|
(this.dropObj.dragData.default && this.dropObj.dragData.default.helper.classList.contains(ROOT))) {
|
|
13582
13655
|
document.body.style.cursor = 'not-allowed';
|
|
@@ -13615,6 +13688,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
13615
13688
|
}
|
|
13616
13689
|
}
|
|
13617
13690
|
dragAction(e, virtualEle) {
|
|
13691
|
+
if (!e.target) {
|
|
13692
|
+
return;
|
|
13693
|
+
}
|
|
13618
13694
|
const dropRoot = closest(e.target, '.' + DROPPABLE);
|
|
13619
13695
|
let dropWrap = closest(e.target, '.' + TEXTWRAP);
|
|
13620
13696
|
const icon = select('div.' + ICON, virtualEle);
|
|
@@ -15325,7 +15401,10 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
15325
15401
|
}
|
|
15326
15402
|
this.groupedData = this.getGroupedData(this.treeData, this.fields.parentID);
|
|
15327
15403
|
}
|
|
15328
|
-
this.
|
|
15404
|
+
const fNode = select('.' + LISTITEM + '[tabindex="0"]', this.element);
|
|
15405
|
+
if (isNullOrUndefined(fNode)) {
|
|
15406
|
+
this.setNodeFocusable();
|
|
15407
|
+
}
|
|
15329
15408
|
this.updateCheckedStateFromDS();
|
|
15330
15409
|
if (this.showCheckBox && dropLi) {
|
|
15331
15410
|
this.ensureParentCheckState(dropLi);
|
|
@@ -15718,7 +15797,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
15718
15797
|
* @returns {void}
|
|
15719
15798
|
*/
|
|
15720
15799
|
uncheckAll(nodes) {
|
|
15721
|
-
if (this.showCheckBox) {
|
|
15800
|
+
if (this.showCheckBox && this.checkedNodes.length > 0) {
|
|
15722
15801
|
this.doCheckBoxAction(nodes, false);
|
|
15723
15802
|
}
|
|
15724
15803
|
}
|
|
@@ -16061,6 +16140,8 @@ let Sidebar = class Sidebar extends Component {
|
|
|
16061
16140
|
const sibling = document.querySelector('.e-main-content') || this.targetEle;
|
|
16062
16141
|
if (this.target && this.showBackdrop && sibling && !isNullOrUndefined(this.defaultBackdropDiv)) {
|
|
16063
16142
|
removeClass([this.defaultBackdropDiv], DEFAULTBACKDROP);
|
|
16143
|
+
this.defaultBackdropDiv.remove();
|
|
16144
|
+
this.defaultBackdropDiv = null;
|
|
16064
16145
|
}
|
|
16065
16146
|
else if (this.showBackdrop && this.modal) {
|
|
16066
16147
|
this.modal.style.display = 'none';
|
|
@@ -16161,7 +16242,9 @@ let Sidebar = class Sidebar extends Component {
|
|
|
16161
16242
|
removeClass([this.element], CLOSE);
|
|
16162
16243
|
setStyleAttribute(this.element, { 'width': formatUnit(this.width) });
|
|
16163
16244
|
this.setType(this.type);
|
|
16164
|
-
this.
|
|
16245
|
+
if (this.targetEle && !this.targetEle.querySelector('.e-sidebar-overlay')) {
|
|
16246
|
+
this.createBackDrop();
|
|
16247
|
+
}
|
|
16165
16248
|
this.setAnimation();
|
|
16166
16249
|
if (this.type === 'Slide') {
|
|
16167
16250
|
document.body.classList.add('e-sidebar-overflow');
|
|
@@ -17534,9 +17617,6 @@ let Carousel = class Carousel extends Component {
|
|
|
17534
17617
|
}
|
|
17535
17618
|
break;
|
|
17536
17619
|
case 'enableTouchSwipe':
|
|
17537
|
-
if (!this.enableTouchSwipe && this.touchModule) {
|
|
17538
|
-
this.touchModule.destroy();
|
|
17539
|
-
}
|
|
17540
17620
|
if (this.element.querySelector(`.${CLS_ITEMS$2}`)) {
|
|
17541
17621
|
this.renderTouchActions();
|
|
17542
17622
|
}
|
|
@@ -17935,9 +18015,6 @@ let Carousel = class Carousel extends Component {
|
|
|
17935
18015
|
this.keyModule = new KeyboardEvents(this.element, { keyAction: this.keyHandler.bind(this), keyConfigs: this.keyConfigs });
|
|
17936
18016
|
}
|
|
17937
18017
|
renderTouchActions() {
|
|
17938
|
-
if (!this.enableTouchSwipe) {
|
|
17939
|
-
return;
|
|
17940
|
-
}
|
|
17941
18018
|
this.touchModule = new Touch(this.element, { swipe: this.swipeHandler.bind(this) });
|
|
17942
18019
|
}
|
|
17943
18020
|
applyAnimation() {
|
|
@@ -18497,7 +18574,7 @@ let Carousel = class Carousel extends Component {
|
|
|
18497
18574
|
}
|
|
18498
18575
|
}
|
|
18499
18576
|
wireEvents() {
|
|
18500
|
-
if (this.animationEffect !== 'Custom'
|
|
18577
|
+
if (this.animationEffect !== 'Custom') {
|
|
18501
18578
|
this.swipeModehandlers();
|
|
18502
18579
|
}
|
|
18503
18580
|
EventHandler.add(this.element, 'focusin focusout', this.onFocusActions, this);
|
|
@@ -19325,11 +19402,6 @@ let Stepper = class Stepper extends StepperBase {
|
|
|
19325
19402
|
updateAnimation() {
|
|
19326
19403
|
const progressEle = this.element.querySelector('.e-progressbar-value');
|
|
19327
19404
|
if (this.animation.enable) {
|
|
19328
|
-
if (this.animation.duration >= 0) {
|
|
19329
|
-
if (progressEle) {
|
|
19330
|
-
progressEle.style.setProperty('--duration', ((this.animation.duration) + 'ms'));
|
|
19331
|
-
}
|
|
19332
|
-
}
|
|
19333
19405
|
if (this.animation.delay >= 0) {
|
|
19334
19406
|
if (progressEle) {
|
|
19335
19407
|
progressEle.style.setProperty('--delay', ((this.animation.delay) + 'ms'));
|
|
@@ -19900,6 +19972,9 @@ let Stepper = class Stepper extends StepperBase {
|
|
|
19900
19972
|
}
|
|
19901
19973
|
}
|
|
19902
19974
|
navigationHandler(index, stepStatus, isUpdated) {
|
|
19975
|
+
if (index !== this.activeStep && this.progressbar) {
|
|
19976
|
+
this.progressbar.style.transitionDuration = this.animation.duration + 'ms';
|
|
19977
|
+
}
|
|
19903
19978
|
index = Math.min(index, this.steps.length - 1);
|
|
19904
19979
|
const Itemslength = this.stepperItemElements.length;
|
|
19905
19980
|
if (index >= 0 && index < Itemslength - 1) {
|
|
@@ -19970,6 +20045,9 @@ let Stepper = class Stepper extends StepperBase {
|
|
|
19970
20045
|
this.updateIndicatorStatus(i, itemElement);
|
|
19971
20046
|
}
|
|
19972
20047
|
this.updateStepInteractions();
|
|
20048
|
+
if (this.progressbar) {
|
|
20049
|
+
this.progressbar.style.transitionDuration = '0ms';
|
|
20050
|
+
}
|
|
19973
20051
|
}
|
|
19974
20052
|
calculateProgressbarPos() {
|
|
19975
20053
|
if ((this.element.classList.contains(LABELBEFORE) || this.element.classList.contains(LABELAFTER)) &&
|