@syncfusion/ej2-navigations 29.2.8 → 30.1.39
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 +117 -30
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +118 -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/context-menu/context-menu-model.d.ts +1 -1
- package/src/context-menu/context-menu.d.ts +1 -0
- package/src/context-menu/context-menu.js +11 -1
- 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 +43 -3
- package/styles/bds.css +45 -5
- package/styles/bootstrap-dark-lite.css +45 -5
- package/styles/bootstrap-dark.css +49 -9
- package/styles/bootstrap-lite.css +45 -5
- package/styles/bootstrap.css +47 -7
- package/styles/bootstrap4-lite.css +46 -6
- package/styles/bootstrap4.css +48 -8
- package/styles/bootstrap5-dark-lite.css +39 -5
- package/styles/bootstrap5-dark.css +42 -8
- package/styles/bootstrap5-lite.css +40 -6
- package/styles/bootstrap5.3-lite.css +40 -6
- package/styles/bootstrap5.3.css +42 -8
- package/styles/bootstrap5.css +43 -9
- 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/context-menu/_layout.scss +5 -0
- package/styles/context-menu/bds.css +6 -0
- package/styles/context-menu/bootstrap-dark.css +6 -0
- package/styles/context-menu/bootstrap.css +6 -0
- package/styles/context-menu/bootstrap4.css +6 -0
- package/styles/context-menu/bootstrap5-dark.css +6 -0
- package/styles/context-menu/bootstrap5.3.css +6 -0
- package/styles/context-menu/bootstrap5.css +6 -0
- package/styles/context-menu/fabric-dark.css +6 -0
- package/styles/context-menu/fabric.css +6 -0
- package/styles/context-menu/fluent-dark.css +6 -0
- package/styles/context-menu/fluent.css +6 -0
- package/styles/context-menu/fluent2.css +6 -0
- package/styles/context-menu/highcontrast-light.css +6 -0
- package/styles/context-menu/highcontrast.css +6 -0
- package/styles/context-menu/material-dark.css +6 -0
- package/styles/context-menu/material.css +6 -0
- package/styles/context-menu/material3-dark.css +6 -0
- package/styles/context-menu/material3.css +6 -0
- package/styles/context-menu/tailwind-dark.css +6 -0
- package/styles/context-menu/tailwind.css +6 -0
- package/styles/context-menu/tailwind3.css +6 -0
- package/styles/fabric-dark-lite.css +43 -3
- package/styles/fabric-dark.css +45 -5
- package/styles/fabric-lite.css +44 -4
- package/styles/fabric.css +46 -6
- package/styles/fluent-dark-lite.css +50 -10
- package/styles/fluent-dark.css +53 -13
- package/styles/fluent-lite.css +50 -10
- package/styles/fluent.css +53 -13
- package/styles/fluent2-lite.css +43 -3
- package/styles/fluent2.css +45 -5
- package/styles/highcontrast-light-lite.css +43 -3
- package/styles/highcontrast-light.css +45 -5
- package/styles/highcontrast-lite.css +44 -4
- package/styles/highcontrast.css +46 -6
- package/styles/material-dark-lite.css +45 -5
- package/styles/material-dark.css +47 -7
- package/styles/material-lite.css +44 -4
- package/styles/material.css +46 -6
- package/styles/material3-dark-lite.css +43 -3
- package/styles/material3-dark.css +46 -7
- package/styles/material3-lite.css +43 -3
- package/styles/material3.css +46 -7
- 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/tab/_bootstrap-dark-definition.scss +3 -3
- package/styles/tab/_bootstrap-definition.scss +3 -3
- package/styles/tab/_bootstrap4-definition.scss +3 -3
- package/styles/tab/_bootstrap5-definition.scss +3 -3
- package/styles/tab/_bootstrap5.3-definition.scss +3 -3
- package/styles/tab/_fabric-definition.scss +1 -1
- package/styles/tab/_fluent-definition.scss +4 -4
- package/styles/tab/_highcontrast-definition.scss +1 -1
- package/styles/tab/_material-definition.scss +1 -1
- package/styles/tab/_tailwind-definition.scss +3 -3
- package/styles/tab/_tailwind3-definition.scss +3 -3
- package/styles/tab/bootstrap-dark.css +2 -2
- package/styles/tab/bootstrap.css +2 -2
- package/styles/tab/bootstrap4.css +3 -3
- package/styles/tab/bootstrap5-dark.css +2 -2
- package/styles/tab/bootstrap5.3.css +3 -3
- package/styles/tab/bootstrap5.css +3 -3
- package/styles/tab/fabric.css +1 -1
- package/styles/tab/fluent-dark.css +7 -7
- package/styles/tab/fluent.css +7 -7
- package/styles/tab/highcontrast.css +1 -1
- package/styles/tab/material.css +1 -1
- package/styles/tab/tailwind-dark.css +4 -4
- package/styles/tab/tailwind.css +4 -4
- package/styles/tab/tailwind3.css +3 -3
- package/styles/tailwind-dark-lite.css +47 -7
- package/styles/tailwind-dark.css +49 -9
- package/styles/tailwind-lite.css +47 -7
- package/styles/tailwind.css +49 -9
- package/styles/tailwind3-lite.css +46 -6
- package/styles/tailwind3.css +49 -9
- package/styles/toolbar/_bootstrap-dark-definition.scss +1 -1
- package/styles/toolbar/_layout.scss +13 -1
- package/styles/toolbar/_material-dark-definition.scss +2 -2
- package/styles/toolbar/bds.css +8 -2
- package/styles/toolbar/bootstrap-dark.css +10 -4
- package/styles/toolbar/bootstrap.css +8 -2
- package/styles/toolbar/bootstrap4.css +8 -2
- package/styles/toolbar/bootstrap5-dark.css +8 -2
- package/styles/toolbar/bootstrap5.3.css +8 -2
- package/styles/toolbar/bootstrap5.css +8 -2
- package/styles/toolbar/fabric-dark.css +8 -2
- package/styles/toolbar/fabric.css +8 -2
- package/styles/toolbar/fluent-dark.css +8 -2
- package/styles/toolbar/fluent.css +8 -2
- package/styles/toolbar/fluent2.css +8 -2
- package/styles/toolbar/highcontrast-light.css +8 -2
- package/styles/toolbar/highcontrast.css +8 -2
- package/styles/toolbar/material-dark.css +10 -4
- package/styles/toolbar/material.css +8 -2
- package/styles/toolbar/material3-dark.css +8 -2
- package/styles/toolbar/material3.css +8 -2
- package/styles/toolbar/tailwind-dark.css +8 -2
- package/styles/toolbar/tailwind.css +8 -2
- package/styles/toolbar/tailwind3.css +8 -2
- package/styles/treeview/_layout.scss +4 -0
- package/styles/treeview/_material3-definition.scss +1 -1
- 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 +4 -1
- package/styles/treeview/material3.css +4 -1
- 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);
|
|
@@ -7481,6 +7537,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
7481
7537
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7482
7538
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7483
7539
|
};
|
|
7540
|
+
var CONTEXTMENUTEMPLATE = 'e-contextmenu-template';
|
|
7484
7541
|
/**
|
|
7485
7542
|
* The ContextMenu is a graphical user interface that appears on the user right click/touch hold operation.
|
|
7486
7543
|
* ```html
|
|
@@ -7518,6 +7575,7 @@ var ContextMenu = /** @__PURE__ @class */ (function (_super) {
|
|
|
7518
7575
|
};
|
|
7519
7576
|
ContextMenu.prototype.initialize = function () {
|
|
7520
7577
|
this.template = this.itemTemplate ? this.itemTemplate : null;
|
|
7578
|
+
this.addTemplateClass();
|
|
7521
7579
|
_super.prototype.initialize.call(this);
|
|
7522
7580
|
attributes(this.element, { 'role': 'menubar', 'tabindex': '0' });
|
|
7523
7581
|
this.element.style.zIndex = getZindexPartial(this.element).toString();
|
|
@@ -7543,6 +7601,12 @@ var ContextMenu = /** @__PURE__ @class */ (function (_super) {
|
|
|
7543
7601
|
ContextMenu.prototype.close = function () {
|
|
7544
7602
|
_super.prototype.closeMenu.call(this);
|
|
7545
7603
|
};
|
|
7604
|
+
ContextMenu.prototype.addTemplateClass = function () {
|
|
7605
|
+
if (!isNullOrUndefined(this.itemTemplate) && typeof this.itemTemplate === 'function' ||
|
|
7606
|
+
(typeof this.itemTemplate === 'string' && this.itemTemplate !== '')) {
|
|
7607
|
+
addClass([this.element], CONTEXTMENUTEMPLATE);
|
|
7608
|
+
}
|
|
7609
|
+
};
|
|
7546
7610
|
/**
|
|
7547
7611
|
* Called internally if any of the property value changed.
|
|
7548
7612
|
*
|
|
@@ -7566,6 +7630,8 @@ var ContextMenu = /** @__PURE__ @class */ (function (_super) {
|
|
|
7566
7630
|
break;
|
|
7567
7631
|
case 'itemTemplate':
|
|
7568
7632
|
this.itemTemplate = newProp.itemTemplate;
|
|
7633
|
+
removeClass([this.element], CONTEXTMENUTEMPLATE);
|
|
7634
|
+
this.addTemplateClass();
|
|
7569
7635
|
this.refresh();
|
|
7570
7636
|
}
|
|
7571
7637
|
}
|
|
@@ -9281,7 +9347,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9281
9347
|
}
|
|
9282
9348
|
break;
|
|
9283
9349
|
case 'openPopup':
|
|
9284
|
-
e.
|
|
9350
|
+
if (!isNullOrUndefined(e.target) && (e.target.classList.contains(CLS_WRAP))) {
|
|
9351
|
+
e.preventDefault();
|
|
9352
|
+
}
|
|
9285
9353
|
if (!isNullOrUndefined(this.popEle) && this.popEle.classList.contains(CLS_POPUP_CLOSE)) {
|
|
9286
9354
|
this.popObj.show(this.show);
|
|
9287
9355
|
}
|
|
@@ -12252,7 +12320,10 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
12252
12320
|
activeElement_1.classList.add(ITEM_ANIMATION_ACTIVE);
|
|
12253
12321
|
}
|
|
12254
12322
|
start_1 = liEle_1.offsetHeight;
|
|
12255
|
-
|
|
12323
|
+
var computedStyle = window.getComputedStyle(liEle_1);
|
|
12324
|
+
var paddingTop = parseFloat(computedStyle.paddingTop);
|
|
12325
|
+
var paddingBottom = parseFloat(computedStyle.paddingBottom);
|
|
12326
|
+
end_1 = select('.' + TEXTWRAP, currLi).offsetHeight + paddingBottom + paddingTop;
|
|
12256
12327
|
},
|
|
12257
12328
|
progress: function (args) {
|
|
12258
12329
|
args.element.style.display = 'block';
|
|
@@ -13903,6 +13974,15 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
13903
13974
|
_this.dragAction(e, virtualEle);
|
|
13904
13975
|
},
|
|
13905
13976
|
dragStop: function (e) {
|
|
13977
|
+
if (!e.target) {
|
|
13978
|
+
if (e.helper && e.helper.parentNode) {
|
|
13979
|
+
detach(e.helper);
|
|
13980
|
+
}
|
|
13981
|
+
document.body.style.cursor = '';
|
|
13982
|
+
removeClass([_this.element], DRAGGING);
|
|
13983
|
+
_this.dragStartAction = false;
|
|
13984
|
+
return;
|
|
13985
|
+
}
|
|
13906
13986
|
removeClass([_this.element], DRAGGING);
|
|
13907
13987
|
if (!e.target.classList.contains('e-sibling')) {
|
|
13908
13988
|
_this.removeVirtualEle();
|
|
@@ -13939,6 +14019,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
13939
14019
|
});
|
|
13940
14020
|
this.dropObj = new Droppable(this.element, {
|
|
13941
14021
|
out: function (e) {
|
|
14022
|
+
if (!e.target) {
|
|
14023
|
+
return;
|
|
14024
|
+
}
|
|
13942
14025
|
if (!isNullOrUndefined(e) && !e.target.classList.contains(SIBLING) &&
|
|
13943
14026
|
(_this.dropObj.dragData.default && _this.dropObj.dragData.default.helper.classList.contains(ROOT))) {
|
|
13944
14027
|
document.body.style.cursor = 'not-allowed';
|
|
@@ -13977,6 +14060,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
13977
14060
|
}
|
|
13978
14061
|
};
|
|
13979
14062
|
TreeView.prototype.dragAction = function (e, virtualEle) {
|
|
14063
|
+
if (!e.target) {
|
|
14064
|
+
return;
|
|
14065
|
+
}
|
|
13980
14066
|
var dropRoot = closest(e.target, '.' + DROPPABLE);
|
|
13981
14067
|
var dropWrap = closest(e.target, '.' + TEXTWRAP);
|
|
13982
14068
|
var icon = select('div.' + ICON, virtualEle);
|
|
@@ -15704,7 +15790,10 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
15704
15790
|
}
|
|
15705
15791
|
this.groupedData = this.getGroupedData(this.treeData, this.fields.parentID);
|
|
15706
15792
|
}
|
|
15707
|
-
this.
|
|
15793
|
+
var fNode = select('.' + LISTITEM + '[tabindex="0"]', this.element);
|
|
15794
|
+
if (isNullOrUndefined(fNode)) {
|
|
15795
|
+
this.setNodeFocusable();
|
|
15796
|
+
}
|
|
15708
15797
|
this.updateCheckedStateFromDS();
|
|
15709
15798
|
if (this.showCheckBox && dropLi) {
|
|
15710
15799
|
this.ensureParentCheckState(dropLi);
|
|
@@ -16098,7 +16187,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
16098
16187
|
* @returns {void}
|
|
16099
16188
|
*/
|
|
16100
16189
|
TreeView.prototype.uncheckAll = function (nodes) {
|
|
16101
|
-
if (this.showCheckBox) {
|
|
16190
|
+
if (this.showCheckBox && this.checkedNodes.length > 0) {
|
|
16102
16191
|
this.doCheckBoxAction(nodes, false);
|
|
16103
16192
|
}
|
|
16104
16193
|
};
|
|
@@ -16458,6 +16547,8 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
|
|
|
16458
16547
|
var sibling = document.querySelector('.e-main-content') || this.targetEle;
|
|
16459
16548
|
if (this.target && this.showBackdrop && sibling && !isNullOrUndefined(this.defaultBackdropDiv)) {
|
|
16460
16549
|
removeClass([this.defaultBackdropDiv], DEFAULTBACKDROP);
|
|
16550
|
+
this.defaultBackdropDiv.remove();
|
|
16551
|
+
this.defaultBackdropDiv = null;
|
|
16461
16552
|
}
|
|
16462
16553
|
else if (this.showBackdrop && this.modal) {
|
|
16463
16554
|
this.modal.style.display = 'none';
|
|
@@ -16560,7 +16651,9 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
|
|
|
16560
16651
|
removeClass([_this.element], CLOSE);
|
|
16561
16652
|
setStyleAttribute(_this.element, { 'width': formatUnit(_this.width) });
|
|
16562
16653
|
_this.setType(_this.type);
|
|
16563
|
-
_this.
|
|
16654
|
+
if (_this.targetEle && !_this.targetEle.querySelector('.e-sidebar-overlay')) {
|
|
16655
|
+
_this.createBackDrop();
|
|
16656
|
+
}
|
|
16564
16657
|
_this.setAnimation();
|
|
16565
16658
|
if (_this.type === 'Slide') {
|
|
16566
16659
|
document.body.classList.add('e-sidebar-overflow');
|
|
@@ -17982,9 +18075,6 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
17982
18075
|
}
|
|
17983
18076
|
break;
|
|
17984
18077
|
case 'enableTouchSwipe':
|
|
17985
|
-
if (!this.enableTouchSwipe && this.touchModule) {
|
|
17986
|
-
this.touchModule.destroy();
|
|
17987
|
-
}
|
|
17988
18078
|
if (this.element.querySelector("." + CLS_ITEMS$2)) {
|
|
17989
18079
|
this.renderTouchActions();
|
|
17990
18080
|
}
|
|
@@ -18387,9 +18477,6 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
18387
18477
|
this.keyModule = new KeyboardEvents(this.element, { keyAction: this.keyHandler.bind(this), keyConfigs: this.keyConfigs });
|
|
18388
18478
|
};
|
|
18389
18479
|
Carousel.prototype.renderTouchActions = function () {
|
|
18390
|
-
if (!this.enableTouchSwipe) {
|
|
18391
|
-
return;
|
|
18392
|
-
}
|
|
18393
18480
|
this.touchModule = new Touch(this.element, { swipe: this.swipeHandler.bind(this) });
|
|
18394
18481
|
};
|
|
18395
18482
|
Carousel.prototype.applyAnimation = function () {
|
|
@@ -18957,7 +19044,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
18957
19044
|
}
|
|
18958
19045
|
};
|
|
18959
19046
|
Carousel.prototype.wireEvents = function () {
|
|
18960
|
-
if (this.animationEffect !== 'Custom'
|
|
19047
|
+
if (this.animationEffect !== 'Custom') {
|
|
18961
19048
|
this.swipeModehandlers();
|
|
18962
19049
|
}
|
|
18963
19050
|
EventHandler.add(this.element, 'focusin focusout', this.onFocusActions, this);
|
|
@@ -19847,11 +19934,6 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19847
19934
|
Stepper.prototype.updateAnimation = function () {
|
|
19848
19935
|
var progressEle = this.element.querySelector('.e-progressbar-value');
|
|
19849
19936
|
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
19937
|
if (this.animation.delay >= 0) {
|
|
19856
19938
|
if (progressEle) {
|
|
19857
19939
|
progressEle.style.setProperty('--delay', ((this.animation.delay) + 'ms'));
|
|
@@ -20430,6 +20512,9 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
20430
20512
|
}
|
|
20431
20513
|
};
|
|
20432
20514
|
Stepper.prototype.navigationHandler = function (index, stepStatus, isUpdated) {
|
|
20515
|
+
if (index !== this.activeStep && this.progressbar) {
|
|
20516
|
+
this.progressbar.style.transitionDuration = this.animation.duration + 'ms';
|
|
20517
|
+
}
|
|
20433
20518
|
index = Math.min(index, this.steps.length - 1);
|
|
20434
20519
|
var Itemslength = this.stepperItemElements.length;
|
|
20435
20520
|
if (index >= 0 && index < Itemslength - 1) {
|
|
@@ -20500,6 +20585,9 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
20500
20585
|
this.updateIndicatorStatus(i, itemElement);
|
|
20501
20586
|
}
|
|
20502
20587
|
this.updateStepInteractions();
|
|
20588
|
+
if (this.progressbar) {
|
|
20589
|
+
this.progressbar.style.transitionDuration = '0ms';
|
|
20590
|
+
}
|
|
20503
20591
|
};
|
|
20504
20592
|
Stepper.prototype.calculateProgressbarPos = function () {
|
|
20505
20593
|
var _this = this;
|