@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
|
@@ -4018,6 +4018,38 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
4018
4018
|
}
|
|
4019
4019
|
return clst;
|
|
4020
4020
|
};
|
|
4021
|
+
Toolbar.prototype.getNextFocusableItem = function (currentItem, action) {
|
|
4022
|
+
var selector = "." + CLS_ITEM + ":not(." + CLS_DISABLE$2 + "):not(." + CLS_SEPARATOR + "):not(." + CLS_HIDDEN + ")";
|
|
4023
|
+
var items = Array.from(this.element.querySelectorAll(selector));
|
|
4024
|
+
var currentIndex = items.indexOf(currentItem);
|
|
4025
|
+
if (currentIndex < 0) {
|
|
4026
|
+
return null;
|
|
4027
|
+
}
|
|
4028
|
+
var nextIndex;
|
|
4029
|
+
switch (action) {
|
|
4030
|
+
case 'moveRight':
|
|
4031
|
+
case 'moveDown':
|
|
4032
|
+
case 'tab':
|
|
4033
|
+
nextIndex = (currentIndex + 1) % items.length;
|
|
4034
|
+
break;
|
|
4035
|
+
case 'moveLeft':
|
|
4036
|
+
case 'moveUp':
|
|
4037
|
+
nextIndex = (currentIndex - 1 + items.length) % items.length;
|
|
4038
|
+
break;
|
|
4039
|
+
case 'home':
|
|
4040
|
+
nextIndex = 0;
|
|
4041
|
+
break;
|
|
4042
|
+
case 'end':
|
|
4043
|
+
nextIndex = items.length - 1;
|
|
4044
|
+
break;
|
|
4045
|
+
default:
|
|
4046
|
+
nextIndex = currentIndex;
|
|
4047
|
+
}
|
|
4048
|
+
if (nextIndex >= 0 && nextIndex < items.length) {
|
|
4049
|
+
return items[parseInt(nextIndex.toString(), 10)];
|
|
4050
|
+
}
|
|
4051
|
+
return null;
|
|
4052
|
+
};
|
|
4021
4053
|
Toolbar.prototype.keyHandling = function (clst, e, trgt, navChk, scrollChk) {
|
|
4022
4054
|
var popObj = this.popObj;
|
|
4023
4055
|
var rootEle = this.element;
|
|
@@ -4083,19 +4115,30 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
4083
4115
|
if (!this.isVertical) {
|
|
4084
4116
|
if (popObj && closest(trgt, '.e-popup')) {
|
|
4085
4117
|
var popEle = popObj.element;
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4118
|
+
if ((value === 'previous' && popEle.firstElementChild === clst)) {
|
|
4119
|
+
var lastVisibleEle = this.focusLastVisibleEle([].slice.call(popEle.children));
|
|
4120
|
+
if (lastVisibleEle) {
|
|
4121
|
+
this.elementFocus(lastVisibleEle);
|
|
4122
|
+
}
|
|
4089
4123
|
}
|
|
4090
4124
|
else if (value === 'next' && popEle.lastElementChild === clst) {
|
|
4091
|
-
|
|
4125
|
+
var firstVisibleEle = this.focusFirstVisibleEle([].slice.call(popEle.children));
|
|
4126
|
+
if (firstVisibleEle) {
|
|
4127
|
+
this.elementFocus(firstVisibleEle);
|
|
4128
|
+
}
|
|
4092
4129
|
}
|
|
4093
4130
|
else {
|
|
4094
4131
|
this.eleFocus(clst, value);
|
|
4095
4132
|
}
|
|
4096
4133
|
}
|
|
4097
4134
|
else if (e.action === 'moveDown' && popObj && isVisible(popObj.element)) {
|
|
4098
|
-
this.
|
|
4135
|
+
var skipEle = this.eleContains(clst);
|
|
4136
|
+
if (skipEle) {
|
|
4137
|
+
this.eleFocus(clst, value);
|
|
4138
|
+
}
|
|
4139
|
+
else {
|
|
4140
|
+
this.elementFocus(clst);
|
|
4141
|
+
}
|
|
4099
4142
|
}
|
|
4100
4143
|
}
|
|
4101
4144
|
else {
|
|
@@ -4141,8 +4184,10 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
4141
4184
|
}
|
|
4142
4185
|
};
|
|
4143
4186
|
Toolbar.prototype.keyActionHandler = function (e) {
|
|
4187
|
+
var _this = this;
|
|
4144
4188
|
var trgt = e.target;
|
|
4145
|
-
if (
|
|
4189
|
+
if ((e.action === 'home' || e.action === 'end' || e.action === 'moveRight' || e.action === 'moveLeft' || e.action === 'moveUp' || e.action === 'moveDown')
|
|
4190
|
+
&& (trgt.tagName === 'INPUT' || trgt.tagName === 'TEXTAREA' || this.element.classList.contains(CLS_DISABLE$2))) {
|
|
4146
4191
|
return;
|
|
4147
4192
|
}
|
|
4148
4193
|
e.preventDefault();
|
|
@@ -4150,7 +4195,19 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
4150
4195
|
var tbarScrollChk = trgt.classList.contains(CLS_TBARSCRLNAV);
|
|
4151
4196
|
var clst = this.clstElement(tbrNavChk, trgt);
|
|
4152
4197
|
if (clst || tbarScrollChk) {
|
|
4153
|
-
|
|
4198
|
+
var currentItem = clst;
|
|
4199
|
+
var nextItem = this.getNextFocusableItem(currentItem, e.action);
|
|
4200
|
+
var keyDownEventArgs = {
|
|
4201
|
+
originalEvent: e,
|
|
4202
|
+
currentItem: currentItem,
|
|
4203
|
+
nextItem: nextItem,
|
|
4204
|
+
cancel: false
|
|
4205
|
+
};
|
|
4206
|
+
this.trigger('keyDown', keyDownEventArgs, function (keyDownArgs) {
|
|
4207
|
+
if (!keyDownArgs.cancel) {
|
|
4208
|
+
_this.keyHandling(clst, e, trgt, tbrNavChk, tbarScrollChk);
|
|
4209
|
+
}
|
|
4210
|
+
});
|
|
4154
4211
|
}
|
|
4155
4212
|
};
|
|
4156
4213
|
/**
|
|
@@ -4189,7 +4246,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
4189
4246
|
var index = 0;
|
|
4190
4247
|
while (index < nodes.length) {
|
|
4191
4248
|
var ele = nodes[parseInt(index.toString(), 10)];
|
|
4192
|
-
if (!ele.classList.contains(CLS_HIDDEN) && !ele.classList.contains(CLS_DISABLE$2)) {
|
|
4249
|
+
if (!ele.classList.contains(CLS_SEPARATOR) && !ele.classList.contains(CLS_HIDDEN) && !ele.classList.contains(CLS_DISABLE$2)) {
|
|
4193
4250
|
return ele;
|
|
4194
4251
|
}
|
|
4195
4252
|
index++;
|
|
@@ -4201,7 +4258,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
4201
4258
|
var index = nodes.length - 1;
|
|
4202
4259
|
while (index >= 0) {
|
|
4203
4260
|
var ele = nodes[parseInt(index.toString(), 10)];
|
|
4204
|
-
if (!ele.classList.contains(CLS_HIDDEN) && !ele.classList.contains(CLS_DISABLE$2)) {
|
|
4261
|
+
if (!ele.classList.contains(CLS_SEPARATOR) && !ele.classList.contains(CLS_HIDDEN) && !ele.classList.contains(CLS_DISABLE$2)) {
|
|
4205
4262
|
return ele;
|
|
4206
4263
|
}
|
|
4207
4264
|
index--;
|
|
@@ -5689,10 +5746,6 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
5689
5746
|
return isNullOrUndefined(ele.getAttribute('data-tabindex')) ? '-1' : ele.getAttribute('data-tabindex');
|
|
5690
5747
|
};
|
|
5691
5748
|
Toolbar.prototype.itemClick = function (e) {
|
|
5692
|
-
var itemClosest = !isNullOrUndefined(closest(e.currentTarget, '.' + CLS_TEMPLATE));
|
|
5693
|
-
if (itemClosest) {
|
|
5694
|
-
return;
|
|
5695
|
-
}
|
|
5696
5749
|
this.activeEleSwitch(e.currentTarget);
|
|
5697
5750
|
};
|
|
5698
5751
|
Toolbar.prototype.activeEleSwitch = function (ele) {
|
|
@@ -6055,6 +6108,9 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
6055
6108
|
__decorate$3([
|
|
6056
6109
|
Event()
|
|
6057
6110
|
], Toolbar.prototype, "beforeCreate", void 0);
|
|
6111
|
+
__decorate$3([
|
|
6112
|
+
Event()
|
|
6113
|
+
], Toolbar.prototype, "keyDown", void 0);
|
|
6058
6114
|
Toolbar = __decorate$3([
|
|
6059
6115
|
NotifyPropertyChanges
|
|
6060
6116
|
], Toolbar);
|
|
@@ -9281,7 +9337,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9281
9337
|
}
|
|
9282
9338
|
break;
|
|
9283
9339
|
case 'openPopup':
|
|
9284
|
-
e.
|
|
9340
|
+
if (!isNullOrUndefined(e.target) && (e.target.classList.contains(CLS_WRAP))) {
|
|
9341
|
+
e.preventDefault();
|
|
9342
|
+
}
|
|
9285
9343
|
if (!isNullOrUndefined(this.popEle) && this.popEle.classList.contains(CLS_POPUP_CLOSE)) {
|
|
9286
9344
|
this.popObj.show(this.show);
|
|
9287
9345
|
}
|
|
@@ -12252,7 +12310,10 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
12252
12310
|
activeElement_1.classList.add(ITEM_ANIMATION_ACTIVE);
|
|
12253
12311
|
}
|
|
12254
12312
|
start_1 = liEle_1.offsetHeight;
|
|
12255
|
-
|
|
12313
|
+
var computedStyle = window.getComputedStyle(liEle_1);
|
|
12314
|
+
var paddingTop = parseFloat(computedStyle.paddingTop);
|
|
12315
|
+
var paddingBottom = parseFloat(computedStyle.paddingBottom);
|
|
12316
|
+
end_1 = select('.' + TEXTWRAP, currLi).offsetHeight + paddingBottom + paddingTop;
|
|
12256
12317
|
},
|
|
12257
12318
|
progress: function (args) {
|
|
12258
12319
|
args.element.style.display = 'block';
|
|
@@ -13903,6 +13964,15 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
13903
13964
|
_this.dragAction(e, virtualEle);
|
|
13904
13965
|
},
|
|
13905
13966
|
dragStop: function (e) {
|
|
13967
|
+
if (!e.target) {
|
|
13968
|
+
if (e.helper && e.helper.parentNode) {
|
|
13969
|
+
detach(e.helper);
|
|
13970
|
+
}
|
|
13971
|
+
document.body.style.cursor = '';
|
|
13972
|
+
removeClass([_this.element], DRAGGING);
|
|
13973
|
+
_this.dragStartAction = false;
|
|
13974
|
+
return;
|
|
13975
|
+
}
|
|
13906
13976
|
removeClass([_this.element], DRAGGING);
|
|
13907
13977
|
if (!e.target.classList.contains('e-sibling')) {
|
|
13908
13978
|
_this.removeVirtualEle();
|
|
@@ -13939,6 +14009,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
13939
14009
|
});
|
|
13940
14010
|
this.dropObj = new Droppable(this.element, {
|
|
13941
14011
|
out: function (e) {
|
|
14012
|
+
if (!e.target) {
|
|
14013
|
+
return;
|
|
14014
|
+
}
|
|
13942
14015
|
if (!isNullOrUndefined(e) && !e.target.classList.contains(SIBLING) &&
|
|
13943
14016
|
(_this.dropObj.dragData.default && _this.dropObj.dragData.default.helper.classList.contains(ROOT))) {
|
|
13944
14017
|
document.body.style.cursor = 'not-allowed';
|
|
@@ -13977,6 +14050,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
13977
14050
|
}
|
|
13978
14051
|
};
|
|
13979
14052
|
TreeView.prototype.dragAction = function (e, virtualEle) {
|
|
14053
|
+
if (!e.target) {
|
|
14054
|
+
return;
|
|
14055
|
+
}
|
|
13980
14056
|
var dropRoot = closest(e.target, '.' + DROPPABLE);
|
|
13981
14057
|
var dropWrap = closest(e.target, '.' + TEXTWRAP);
|
|
13982
14058
|
var icon = select('div.' + ICON, virtualEle);
|
|
@@ -15704,7 +15780,10 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
15704
15780
|
}
|
|
15705
15781
|
this.groupedData = this.getGroupedData(this.treeData, this.fields.parentID);
|
|
15706
15782
|
}
|
|
15707
|
-
this.
|
|
15783
|
+
var fNode = select('.' + LISTITEM + '[tabindex="0"]', this.element);
|
|
15784
|
+
if (isNullOrUndefined(fNode)) {
|
|
15785
|
+
this.setNodeFocusable();
|
|
15786
|
+
}
|
|
15708
15787
|
this.updateCheckedStateFromDS();
|
|
15709
15788
|
if (this.showCheckBox && dropLi) {
|
|
15710
15789
|
this.ensureParentCheckState(dropLi);
|
|
@@ -16098,7 +16177,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
16098
16177
|
* @returns {void}
|
|
16099
16178
|
*/
|
|
16100
16179
|
TreeView.prototype.uncheckAll = function (nodes) {
|
|
16101
|
-
if (this.showCheckBox) {
|
|
16180
|
+
if (this.showCheckBox && this.checkedNodes.length > 0) {
|
|
16102
16181
|
this.doCheckBoxAction(nodes, false);
|
|
16103
16182
|
}
|
|
16104
16183
|
};
|
|
@@ -16458,6 +16537,8 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
|
|
|
16458
16537
|
var sibling = document.querySelector('.e-main-content') || this.targetEle;
|
|
16459
16538
|
if (this.target && this.showBackdrop && sibling && !isNullOrUndefined(this.defaultBackdropDiv)) {
|
|
16460
16539
|
removeClass([this.defaultBackdropDiv], DEFAULTBACKDROP);
|
|
16540
|
+
this.defaultBackdropDiv.remove();
|
|
16541
|
+
this.defaultBackdropDiv = null;
|
|
16461
16542
|
}
|
|
16462
16543
|
else if (this.showBackdrop && this.modal) {
|
|
16463
16544
|
this.modal.style.display = 'none';
|
|
@@ -16560,7 +16641,9 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
|
|
|
16560
16641
|
removeClass([_this.element], CLOSE);
|
|
16561
16642
|
setStyleAttribute(_this.element, { 'width': formatUnit(_this.width) });
|
|
16562
16643
|
_this.setType(_this.type);
|
|
16563
|
-
_this.
|
|
16644
|
+
if (_this.targetEle && !_this.targetEle.querySelector('.e-sidebar-overlay')) {
|
|
16645
|
+
_this.createBackDrop();
|
|
16646
|
+
}
|
|
16564
16647
|
_this.setAnimation();
|
|
16565
16648
|
if (_this.type === 'Slide') {
|
|
16566
16649
|
document.body.classList.add('e-sidebar-overflow');
|
|
@@ -17982,9 +18065,6 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
17982
18065
|
}
|
|
17983
18066
|
break;
|
|
17984
18067
|
case 'enableTouchSwipe':
|
|
17985
|
-
if (!this.enableTouchSwipe && this.touchModule) {
|
|
17986
|
-
this.touchModule.destroy();
|
|
17987
|
-
}
|
|
17988
18068
|
if (this.element.querySelector("." + CLS_ITEMS$2)) {
|
|
17989
18069
|
this.renderTouchActions();
|
|
17990
18070
|
}
|
|
@@ -18387,9 +18467,6 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
18387
18467
|
this.keyModule = new KeyboardEvents(this.element, { keyAction: this.keyHandler.bind(this), keyConfigs: this.keyConfigs });
|
|
18388
18468
|
};
|
|
18389
18469
|
Carousel.prototype.renderTouchActions = function () {
|
|
18390
|
-
if (!this.enableTouchSwipe) {
|
|
18391
|
-
return;
|
|
18392
|
-
}
|
|
18393
18470
|
this.touchModule = new Touch(this.element, { swipe: this.swipeHandler.bind(this) });
|
|
18394
18471
|
};
|
|
18395
18472
|
Carousel.prototype.applyAnimation = function () {
|
|
@@ -18957,7 +19034,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
18957
19034
|
}
|
|
18958
19035
|
};
|
|
18959
19036
|
Carousel.prototype.wireEvents = function () {
|
|
18960
|
-
if (this.animationEffect !== 'Custom'
|
|
19037
|
+
if (this.animationEffect !== 'Custom') {
|
|
18961
19038
|
this.swipeModehandlers();
|
|
18962
19039
|
}
|
|
18963
19040
|
EventHandler.add(this.element, 'focusin focusout', this.onFocusActions, this);
|
|
@@ -19847,11 +19924,6 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19847
19924
|
Stepper.prototype.updateAnimation = function () {
|
|
19848
19925
|
var progressEle = this.element.querySelector('.e-progressbar-value');
|
|
19849
19926
|
if (this.animation.enable) {
|
|
19850
|
-
if (this.animation.duration >= 0) {
|
|
19851
|
-
if (progressEle) {
|
|
19852
|
-
progressEle.style.setProperty('--duration', ((this.animation.duration) + 'ms'));
|
|
19853
|
-
}
|
|
19854
|
-
}
|
|
19855
19927
|
if (this.animation.delay >= 0) {
|
|
19856
19928
|
if (progressEle) {
|
|
19857
19929
|
progressEle.style.setProperty('--delay', ((this.animation.delay) + 'ms'));
|
|
@@ -20430,6 +20502,9 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
20430
20502
|
}
|
|
20431
20503
|
};
|
|
20432
20504
|
Stepper.prototype.navigationHandler = function (index, stepStatus, isUpdated) {
|
|
20505
|
+
if (index !== this.activeStep && this.progressbar) {
|
|
20506
|
+
this.progressbar.style.transitionDuration = this.animation.duration + 'ms';
|
|
20507
|
+
}
|
|
20433
20508
|
index = Math.min(index, this.steps.length - 1);
|
|
20434
20509
|
var Itemslength = this.stepperItemElements.length;
|
|
20435
20510
|
if (index >= 0 && index < Itemslength - 1) {
|
|
@@ -20500,6 +20575,9 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
20500
20575
|
this.updateIndicatorStatus(i, itemElement);
|
|
20501
20576
|
}
|
|
20502
20577
|
this.updateStepInteractions();
|
|
20578
|
+
if (this.progressbar) {
|
|
20579
|
+
this.progressbar.style.transitionDuration = '0ms';
|
|
20580
|
+
}
|
|
20503
20581
|
};
|
|
20504
20582
|
Stepper.prototype.calculateProgressbarPos = function () {
|
|
20505
20583
|
var _this = this;
|