@syncfusion/ej2-navigations 29.2.8 → 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 +107 -30
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +108 -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 +7 -7
- 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 +3 -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 +31 -3
- 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 +29 -1
- package/styles/highcontrast.css +31 -3
- package/styles/material-dark-lite.css +31 -3
- package/styles/material-dark.css +33 -5
- package/styles/material-lite.css +29 -1
- package/styles/material.css +31 -3
- 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/_material-dark-definition.scss +2 -2
- package/styles/toolbar/bootstrap-dark.css +2 -2
- package/styles/toolbar/material-dark.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);
|
|
@@ -9000,7 +9055,9 @@ let Tab = class Tab extends Component {
|
|
|
9000
9055
|
}
|
|
9001
9056
|
break;
|
|
9002
9057
|
case 'openPopup':
|
|
9003
|
-
e.
|
|
9058
|
+
if (!isNullOrUndefined(e.target) && (e.target.classList.contains(CLS_WRAP))) {
|
|
9059
|
+
e.preventDefault();
|
|
9060
|
+
}
|
|
9004
9061
|
if (!isNullOrUndefined(this.popEle) && this.popEle.classList.contains(CLS_POPUP_CLOSE)) {
|
|
9005
9062
|
this.popObj.show(this.show);
|
|
9006
9063
|
}
|
|
@@ -11911,7 +11968,10 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11911
11968
|
activeElement.classList.add(ITEM_ANIMATION_ACTIVE);
|
|
11912
11969
|
}
|
|
11913
11970
|
start = liEle.offsetHeight;
|
|
11914
|
-
|
|
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;
|
|
11915
11975
|
},
|
|
11916
11976
|
progress: (args) => {
|
|
11917
11977
|
args.element.style.display = 'block';
|
|
@@ -13542,6 +13602,15 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
13542
13602
|
this.dragAction(e, virtualEle);
|
|
13543
13603
|
},
|
|
13544
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
|
+
}
|
|
13545
13614
|
removeClass([this.element], DRAGGING);
|
|
13546
13615
|
if (!e.target.classList.contains('e-sibling')) {
|
|
13547
13616
|
this.removeVirtualEle();
|
|
@@ -13578,6 +13647,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
13578
13647
|
});
|
|
13579
13648
|
this.dropObj = new Droppable(this.element, {
|
|
13580
13649
|
out: (e) => {
|
|
13650
|
+
if (!e.target) {
|
|
13651
|
+
return;
|
|
13652
|
+
}
|
|
13581
13653
|
if (!isNullOrUndefined(e) && !e.target.classList.contains(SIBLING) &&
|
|
13582
13654
|
(this.dropObj.dragData.default && this.dropObj.dragData.default.helper.classList.contains(ROOT))) {
|
|
13583
13655
|
document.body.style.cursor = 'not-allowed';
|
|
@@ -13616,6 +13688,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
13616
13688
|
}
|
|
13617
13689
|
}
|
|
13618
13690
|
dragAction(e, virtualEle) {
|
|
13691
|
+
if (!e.target) {
|
|
13692
|
+
return;
|
|
13693
|
+
}
|
|
13619
13694
|
const dropRoot = closest(e.target, '.' + DROPPABLE);
|
|
13620
13695
|
let dropWrap = closest(e.target, '.' + TEXTWRAP);
|
|
13621
13696
|
const icon = select('div.' + ICON, virtualEle);
|
|
@@ -15326,7 +15401,10 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
15326
15401
|
}
|
|
15327
15402
|
this.groupedData = this.getGroupedData(this.treeData, this.fields.parentID);
|
|
15328
15403
|
}
|
|
15329
|
-
this.
|
|
15404
|
+
const fNode = select('.' + LISTITEM + '[tabindex="0"]', this.element);
|
|
15405
|
+
if (isNullOrUndefined(fNode)) {
|
|
15406
|
+
this.setNodeFocusable();
|
|
15407
|
+
}
|
|
15330
15408
|
this.updateCheckedStateFromDS();
|
|
15331
15409
|
if (this.showCheckBox && dropLi) {
|
|
15332
15410
|
this.ensureParentCheckState(dropLi);
|
|
@@ -15719,7 +15797,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
15719
15797
|
* @returns {void}
|
|
15720
15798
|
*/
|
|
15721
15799
|
uncheckAll(nodes) {
|
|
15722
|
-
if (this.showCheckBox) {
|
|
15800
|
+
if (this.showCheckBox && this.checkedNodes.length > 0) {
|
|
15723
15801
|
this.doCheckBoxAction(nodes, false);
|
|
15724
15802
|
}
|
|
15725
15803
|
}
|
|
@@ -16062,6 +16140,8 @@ let Sidebar = class Sidebar extends Component {
|
|
|
16062
16140
|
const sibling = document.querySelector('.e-main-content') || this.targetEle;
|
|
16063
16141
|
if (this.target && this.showBackdrop && sibling && !isNullOrUndefined(this.defaultBackdropDiv)) {
|
|
16064
16142
|
removeClass([this.defaultBackdropDiv], DEFAULTBACKDROP);
|
|
16143
|
+
this.defaultBackdropDiv.remove();
|
|
16144
|
+
this.defaultBackdropDiv = null;
|
|
16065
16145
|
}
|
|
16066
16146
|
else if (this.showBackdrop && this.modal) {
|
|
16067
16147
|
this.modal.style.display = 'none';
|
|
@@ -16162,7 +16242,9 @@ let Sidebar = class Sidebar extends Component {
|
|
|
16162
16242
|
removeClass([this.element], CLOSE);
|
|
16163
16243
|
setStyleAttribute(this.element, { 'width': formatUnit(this.width) });
|
|
16164
16244
|
this.setType(this.type);
|
|
16165
|
-
this.
|
|
16245
|
+
if (this.targetEle && !this.targetEle.querySelector('.e-sidebar-overlay')) {
|
|
16246
|
+
this.createBackDrop();
|
|
16247
|
+
}
|
|
16166
16248
|
this.setAnimation();
|
|
16167
16249
|
if (this.type === 'Slide') {
|
|
16168
16250
|
document.body.classList.add('e-sidebar-overflow');
|
|
@@ -17535,9 +17617,6 @@ let Carousel = class Carousel extends Component {
|
|
|
17535
17617
|
}
|
|
17536
17618
|
break;
|
|
17537
17619
|
case 'enableTouchSwipe':
|
|
17538
|
-
if (!this.enableTouchSwipe && this.touchModule) {
|
|
17539
|
-
this.touchModule.destroy();
|
|
17540
|
-
}
|
|
17541
17620
|
if (this.element.querySelector(`.${CLS_ITEMS$2}`)) {
|
|
17542
17621
|
this.renderTouchActions();
|
|
17543
17622
|
}
|
|
@@ -17936,9 +18015,6 @@ let Carousel = class Carousel extends Component {
|
|
|
17936
18015
|
this.keyModule = new KeyboardEvents(this.element, { keyAction: this.keyHandler.bind(this), keyConfigs: this.keyConfigs });
|
|
17937
18016
|
}
|
|
17938
18017
|
renderTouchActions() {
|
|
17939
|
-
if (!this.enableTouchSwipe) {
|
|
17940
|
-
return;
|
|
17941
|
-
}
|
|
17942
18018
|
this.touchModule = new Touch(this.element, { swipe: this.swipeHandler.bind(this) });
|
|
17943
18019
|
}
|
|
17944
18020
|
applyAnimation() {
|
|
@@ -18498,7 +18574,7 @@ let Carousel = class Carousel extends Component {
|
|
|
18498
18574
|
}
|
|
18499
18575
|
}
|
|
18500
18576
|
wireEvents() {
|
|
18501
|
-
if (this.animationEffect !== 'Custom'
|
|
18577
|
+
if (this.animationEffect !== 'Custom') {
|
|
18502
18578
|
this.swipeModehandlers();
|
|
18503
18579
|
}
|
|
18504
18580
|
EventHandler.add(this.element, 'focusin focusout', this.onFocusActions, this);
|
|
@@ -19326,11 +19402,6 @@ let Stepper = class Stepper extends StepperBase {
|
|
|
19326
19402
|
updateAnimation() {
|
|
19327
19403
|
const progressEle = this.element.querySelector('.e-progressbar-value');
|
|
19328
19404
|
if (this.animation.enable) {
|
|
19329
|
-
if (this.animation.duration >= 0) {
|
|
19330
|
-
if (progressEle) {
|
|
19331
|
-
progressEle.style.setProperty('--duration', ((this.animation.duration) + 'ms'));
|
|
19332
|
-
}
|
|
19333
|
-
}
|
|
19334
19405
|
if (this.animation.delay >= 0) {
|
|
19335
19406
|
if (progressEle) {
|
|
19336
19407
|
progressEle.style.setProperty('--delay', ((this.animation.delay) + 'ms'));
|
|
@@ -19901,6 +19972,9 @@ let Stepper = class Stepper extends StepperBase {
|
|
|
19901
19972
|
}
|
|
19902
19973
|
}
|
|
19903
19974
|
navigationHandler(index, stepStatus, isUpdated) {
|
|
19975
|
+
if (index !== this.activeStep && this.progressbar) {
|
|
19976
|
+
this.progressbar.style.transitionDuration = this.animation.duration + 'ms';
|
|
19977
|
+
}
|
|
19904
19978
|
index = Math.min(index, this.steps.length - 1);
|
|
19905
19979
|
const Itemslength = this.stepperItemElements.length;
|
|
19906
19980
|
if (index >= 0 && index < Itemslength - 1) {
|
|
@@ -19971,6 +20045,9 @@ let Stepper = class Stepper extends StepperBase {
|
|
|
19971
20045
|
this.updateIndicatorStatus(i, itemElement);
|
|
19972
20046
|
}
|
|
19973
20047
|
this.updateStepInteractions();
|
|
20048
|
+
if (this.progressbar) {
|
|
20049
|
+
this.progressbar.style.transitionDuration = '0ms';
|
|
20050
|
+
}
|
|
19974
20051
|
}
|
|
19975
20052
|
calculateProgressbarPos() {
|
|
19976
20053
|
if ((this.element.classList.contains(LABELBEFORE) || this.element.classList.contains(LABELAFTER)) &&
|