@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
|
@@ -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);
|
|
@@ -8208,6 +8264,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8208
8264
|
if (this.isReact && this.portals && this.portals.length > 0) {
|
|
8209
8265
|
this.renderReactTemplates(function () {
|
|
8210
8266
|
_this.refreshOverflow();
|
|
8267
|
+
_this.selectingContent(_this.selectedItem, _this.isInteracted);
|
|
8211
8268
|
_this.refreshActiveBorder();
|
|
8212
8269
|
});
|
|
8213
8270
|
}
|
|
@@ -9280,7 +9337,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9280
9337
|
}
|
|
9281
9338
|
break;
|
|
9282
9339
|
case 'openPopup':
|
|
9283
|
-
e.
|
|
9340
|
+
if (!isNullOrUndefined(e.target) && (e.target.classList.contains(CLS_WRAP))) {
|
|
9341
|
+
e.preventDefault();
|
|
9342
|
+
}
|
|
9284
9343
|
if (!isNullOrUndefined(this.popEle) && this.popEle.classList.contains(CLS_POPUP_CLOSE)) {
|
|
9285
9344
|
this.popObj.show(this.show);
|
|
9286
9345
|
}
|
|
@@ -12251,7 +12310,10 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
12251
12310
|
activeElement_1.classList.add(ITEM_ANIMATION_ACTIVE);
|
|
12252
12311
|
}
|
|
12253
12312
|
start_1 = liEle_1.offsetHeight;
|
|
12254
|
-
|
|
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;
|
|
12255
12317
|
},
|
|
12256
12318
|
progress: function (args) {
|
|
12257
12319
|
args.element.style.display = 'block';
|
|
@@ -13902,6 +13964,15 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
13902
13964
|
_this.dragAction(e, virtualEle);
|
|
13903
13965
|
},
|
|
13904
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
|
+
}
|
|
13905
13976
|
removeClass([_this.element], DRAGGING);
|
|
13906
13977
|
if (!e.target.classList.contains('e-sibling')) {
|
|
13907
13978
|
_this.removeVirtualEle();
|
|
@@ -13938,6 +14009,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
13938
14009
|
});
|
|
13939
14010
|
this.dropObj = new Droppable(this.element, {
|
|
13940
14011
|
out: function (e) {
|
|
14012
|
+
if (!e.target) {
|
|
14013
|
+
return;
|
|
14014
|
+
}
|
|
13941
14015
|
if (!isNullOrUndefined(e) && !e.target.classList.contains(SIBLING) &&
|
|
13942
14016
|
(_this.dropObj.dragData.default && _this.dropObj.dragData.default.helper.classList.contains(ROOT))) {
|
|
13943
14017
|
document.body.style.cursor = 'not-allowed';
|
|
@@ -13976,6 +14050,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
13976
14050
|
}
|
|
13977
14051
|
};
|
|
13978
14052
|
TreeView.prototype.dragAction = function (e, virtualEle) {
|
|
14053
|
+
if (!e.target) {
|
|
14054
|
+
return;
|
|
14055
|
+
}
|
|
13979
14056
|
var dropRoot = closest(e.target, '.' + DROPPABLE);
|
|
13980
14057
|
var dropWrap = closest(e.target, '.' + TEXTWRAP);
|
|
13981
14058
|
var icon = select('div.' + ICON, virtualEle);
|
|
@@ -15703,7 +15780,10 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
15703
15780
|
}
|
|
15704
15781
|
this.groupedData = this.getGroupedData(this.treeData, this.fields.parentID);
|
|
15705
15782
|
}
|
|
15706
|
-
this.
|
|
15783
|
+
var fNode = select('.' + LISTITEM + '[tabindex="0"]', this.element);
|
|
15784
|
+
if (isNullOrUndefined(fNode)) {
|
|
15785
|
+
this.setNodeFocusable();
|
|
15786
|
+
}
|
|
15707
15787
|
this.updateCheckedStateFromDS();
|
|
15708
15788
|
if (this.showCheckBox && dropLi) {
|
|
15709
15789
|
this.ensureParentCheckState(dropLi);
|
|
@@ -16097,7 +16177,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
16097
16177
|
* @returns {void}
|
|
16098
16178
|
*/
|
|
16099
16179
|
TreeView.prototype.uncheckAll = function (nodes) {
|
|
16100
|
-
if (this.showCheckBox) {
|
|
16180
|
+
if (this.showCheckBox && this.checkedNodes.length > 0) {
|
|
16101
16181
|
this.doCheckBoxAction(nodes, false);
|
|
16102
16182
|
}
|
|
16103
16183
|
};
|
|
@@ -16457,6 +16537,8 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
|
|
|
16457
16537
|
var sibling = document.querySelector('.e-main-content') || this.targetEle;
|
|
16458
16538
|
if (this.target && this.showBackdrop && sibling && !isNullOrUndefined(this.defaultBackdropDiv)) {
|
|
16459
16539
|
removeClass([this.defaultBackdropDiv], DEFAULTBACKDROP);
|
|
16540
|
+
this.defaultBackdropDiv.remove();
|
|
16541
|
+
this.defaultBackdropDiv = null;
|
|
16460
16542
|
}
|
|
16461
16543
|
else if (this.showBackdrop && this.modal) {
|
|
16462
16544
|
this.modal.style.display = 'none';
|
|
@@ -16559,7 +16641,9 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
|
|
|
16559
16641
|
removeClass([_this.element], CLOSE);
|
|
16560
16642
|
setStyleAttribute(_this.element, { 'width': formatUnit(_this.width) });
|
|
16561
16643
|
_this.setType(_this.type);
|
|
16562
|
-
_this.
|
|
16644
|
+
if (_this.targetEle && !_this.targetEle.querySelector('.e-sidebar-overlay')) {
|
|
16645
|
+
_this.createBackDrop();
|
|
16646
|
+
}
|
|
16563
16647
|
_this.setAnimation();
|
|
16564
16648
|
if (_this.type === 'Slide') {
|
|
16565
16649
|
document.body.classList.add('e-sidebar-overflow');
|
|
@@ -17981,9 +18065,6 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
17981
18065
|
}
|
|
17982
18066
|
break;
|
|
17983
18067
|
case 'enableTouchSwipe':
|
|
17984
|
-
if (!this.enableTouchSwipe && this.touchModule) {
|
|
17985
|
-
this.touchModule.destroy();
|
|
17986
|
-
}
|
|
17987
18068
|
if (this.element.querySelector("." + CLS_ITEMS$2)) {
|
|
17988
18069
|
this.renderTouchActions();
|
|
17989
18070
|
}
|
|
@@ -18386,9 +18467,6 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
18386
18467
|
this.keyModule = new KeyboardEvents(this.element, { keyAction: this.keyHandler.bind(this), keyConfigs: this.keyConfigs });
|
|
18387
18468
|
};
|
|
18388
18469
|
Carousel.prototype.renderTouchActions = function () {
|
|
18389
|
-
if (!this.enableTouchSwipe) {
|
|
18390
|
-
return;
|
|
18391
|
-
}
|
|
18392
18470
|
this.touchModule = new Touch(this.element, { swipe: this.swipeHandler.bind(this) });
|
|
18393
18471
|
};
|
|
18394
18472
|
Carousel.prototype.applyAnimation = function () {
|
|
@@ -18956,7 +19034,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
18956
19034
|
}
|
|
18957
19035
|
};
|
|
18958
19036
|
Carousel.prototype.wireEvents = function () {
|
|
18959
|
-
if (this.animationEffect !== 'Custom'
|
|
19037
|
+
if (this.animationEffect !== 'Custom') {
|
|
18960
19038
|
this.swipeModehandlers();
|
|
18961
19039
|
}
|
|
18962
19040
|
EventHandler.add(this.element, 'focusin focusout', this.onFocusActions, this);
|
|
@@ -19846,11 +19924,6 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19846
19924
|
Stepper.prototype.updateAnimation = function () {
|
|
19847
19925
|
var progressEle = this.element.querySelector('.e-progressbar-value');
|
|
19848
19926
|
if (this.animation.enable) {
|
|
19849
|
-
if (this.animation.duration >= 0) {
|
|
19850
|
-
if (progressEle) {
|
|
19851
|
-
progressEle.style.setProperty('--duration', ((this.animation.duration) + 'ms'));
|
|
19852
|
-
}
|
|
19853
|
-
}
|
|
19854
19927
|
if (this.animation.delay >= 0) {
|
|
19855
19928
|
if (progressEle) {
|
|
19856
19929
|
progressEle.style.setProperty('--delay', ((this.animation.delay) + 'ms'));
|
|
@@ -20429,6 +20502,9 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
20429
20502
|
}
|
|
20430
20503
|
};
|
|
20431
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
|
+
}
|
|
20432
20508
|
index = Math.min(index, this.steps.length - 1);
|
|
20433
20509
|
var Itemslength = this.stepperItemElements.length;
|
|
20434
20510
|
if (index >= 0 && index < Itemslength - 1) {
|
|
@@ -20499,6 +20575,9 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
20499
20575
|
this.updateIndicatorStatus(i, itemElement);
|
|
20500
20576
|
}
|
|
20501
20577
|
this.updateStepInteractions();
|
|
20578
|
+
if (this.progressbar) {
|
|
20579
|
+
this.progressbar.style.transitionDuration = '0ms';
|
|
20580
|
+
}
|
|
20502
20581
|
};
|
|
20503
20582
|
Stepper.prototype.calculateProgressbarPos = function () {
|
|
20504
20583
|
var _this = this;
|