@syncfusion/ej2-navigations 23.2.7 → 24.1.46
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/CHANGELOG.md +26 -0
- package/README.md +1 -1
- 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 +1435 -13
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +1492 -22
- 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 +12 -12
- package/src/breadcrumb/breadcrumb.js +6 -1
- package/src/carousel/carousel.js +3 -3
- package/src/common/menu-base.js +25 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/stepper/index.d.ts +3 -0
- package/src/stepper/index.js +2 -0
- package/src/stepper/stepper-model.d.ts +153 -0
- package/src/stepper/stepper.d.ts +339 -0
- package/src/stepper/stepper.js +1163 -0
- package/src/stepper-base/index.d.ts +5 -0
- package/src/stepper-base/index.js +4 -0
- package/src/stepper-base/stepper-base-model.d.ts +121 -0
- package/src/stepper-base/stepper-base.d.ts +184 -0
- package/src/stepper-base/stepper-base.js +221 -0
- package/src/tab/tab.js +0 -1
- package/src/toolbar/toolbar.js +4 -0
- package/src/treeview/treeview.d.ts +1 -0
- package/src/treeview/treeview.js +68 -15
- package/stepper-base.d.ts +4 -0
- package/stepper-base.js +4 -0
- package/stepper.d.ts +4 -0
- package/stepper.js +4 -0
- package/styles/bootstrap-dark.css +755 -1
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap.css +755 -1
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4.css +755 -1
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark.css +762 -8
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.css +762 -8
- package/styles/bootstrap5.scss +1 -0
- package/styles/fabric-dark.css +754 -0
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric.css +754 -0
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark.css +759 -5
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.css +759 -5
- package/styles/fluent.scss +1 -0
- package/styles/highcontrast-light.css +755 -1
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast.css +755 -1
- package/styles/highcontrast.scss +1 -0
- package/styles/material-dark.css +755 -1
- package/styles/material-dark.scss +1 -0
- package/styles/material.css +755 -1
- package/styles/material.scss +1 -0
- package/styles/material3-dark.css +754 -0
- package/styles/material3-dark.scss +1 -0
- package/styles/material3.css +754 -0
- package/styles/material3.scss +1 -0
- package/styles/pager/_bootstrap-dark-definition.scss +16 -0
- package/styles/pager/_bootstrap-definition.scss +16 -0
- package/styles/pager/_bootstrap4-definition.scss +16 -0
- package/styles/pager/_bootstrap5-definition.scss +16 -0
- package/styles/pager/_fabric-dark-definition.scss +16 -0
- package/styles/pager/_fabric-definition.scss +16 -0
- package/styles/pager/_fluent-definition.scss +16 -0
- package/styles/pager/_fusionnew-definition.scss +16 -0
- package/styles/pager/_highcontrast-definition.scss +16 -0
- package/styles/pager/_highcontrast-light-definition.scss +16 -0
- package/styles/pager/_layout.scss +114 -0
- package/styles/pager/_material-dark-definition.scss +16 -0
- package/styles/pager/_material-definition.scss +16 -0
- package/styles/pager/_material3-definition.scss +16 -0
- package/styles/pager/_tailwind-definition.scss +16 -0
- package/styles/pager/bootstrap-dark.css +107 -0
- package/styles/pager/bootstrap.css +107 -0
- package/styles/pager/bootstrap4.css +107 -0
- package/styles/pager/bootstrap5-dark.css +107 -0
- package/styles/pager/bootstrap5.css +107 -0
- package/styles/pager/fabric-dark.css +107 -0
- package/styles/pager/fabric.css +107 -0
- package/styles/pager/fluent-dark.css +107 -0
- package/styles/pager/fluent.css +107 -0
- package/styles/pager/highcontrast-light.css +107 -0
- package/styles/pager/highcontrast.css +107 -0
- package/styles/pager/material-dark.css +107 -0
- package/styles/pager/material.css +107 -0
- package/styles/pager/material3-dark.css +107 -0
- package/styles/pager/material3.css +107 -0
- package/styles/pager/tailwind-dark.css +107 -0
- package/styles/pager/tailwind.css +107 -0
- package/styles/stepper/_all.scss +2 -0
- package/styles/stepper/_bootstrap-dark-definition.scss +79 -0
- package/styles/stepper/_bootstrap-definition.scss +79 -0
- package/styles/stepper/_bootstrap4-definition.scss +79 -0
- package/styles/stepper/_bootstrap5-dark-definition.scss +1 -0
- package/styles/stepper/_bootstrap5-definition.scss +80 -0
- package/styles/stepper/_fabric-dark-definition.scss +79 -0
- package/styles/stepper/_fabric-definition.scss +79 -0
- package/styles/stepper/_fluent-dark-definition.scss +1 -0
- package/styles/stepper/_fluent-definition.scss +79 -0
- package/styles/stepper/_fusionnew-definition.scss +79 -0
- package/styles/stepper/_highcontrast-definition.scss +79 -0
- package/styles/stepper/_highcontrast-light-definition.scss +79 -0
- package/styles/stepper/_layout.scss +564 -0
- package/styles/stepper/_material-dark-definition.scss +79 -0
- package/styles/stepper/_material-definition.scss +79 -0
- package/styles/stepper/_material3-dark-definition.scss +1 -0
- package/styles/stepper/_material3-definition.scss +79 -0
- package/styles/stepper/_tailwind-dark-definition.scss +1 -0
- package/styles/stepper/_tailwind-definition.scss +79 -0
- package/styles/stepper/_theme.scss +229 -0
- package/styles/stepper/bootstrap-dark.css +646 -0
- package/styles/stepper/bootstrap-dark.scss +5 -0
- package/styles/stepper/bootstrap.css +646 -0
- package/styles/stepper/bootstrap.scss +5 -0
- package/styles/stepper/bootstrap4.css +646 -0
- package/styles/stepper/bootstrap4.scss +5 -0
- package/styles/stepper/bootstrap5-dark.css +646 -0
- package/styles/stepper/bootstrap5-dark.scss +5 -0
- package/styles/stepper/bootstrap5.css +646 -0
- package/styles/stepper/bootstrap5.scss +5 -0
- package/styles/stepper/fabric-dark.css +646 -0
- package/styles/stepper/fabric-dark.scss +5 -0
- package/styles/stepper/fabric.css +646 -0
- package/styles/stepper/fabric.scss +5 -0
- package/styles/stepper/fluent-dark.css +646 -0
- package/styles/stepper/fluent-dark.scss +5 -0
- package/styles/stepper/fluent.css +646 -0
- package/styles/stepper/fluent.scss +5 -0
- package/styles/stepper/highcontrast-light.css +646 -0
- package/styles/stepper/highcontrast-light.scss +5 -0
- package/styles/stepper/highcontrast.css +646 -0
- package/styles/stepper/highcontrast.scss +5 -0
- package/styles/stepper/icons/_bootstrap-dark.scss +5 -0
- package/styles/stepper/icons/_bootstrap.scss +5 -0
- package/styles/stepper/icons/_bootstrap4.scss +5 -0
- package/styles/stepper/icons/_bootstrap5-dark.scss +1 -0
- package/styles/stepper/icons/_bootstrap5.scss +5 -0
- package/styles/stepper/icons/_fabric-dark.scss +5 -0
- package/styles/stepper/icons/_fabric.scss +5 -0
- package/styles/stepper/icons/_fluent-dark.scss +1 -0
- package/styles/stepper/icons/_fluent.scss +5 -0
- package/styles/stepper/icons/_fusionnew.scss +5 -0
- package/styles/stepper/icons/_highcontrast-light.scss +5 -0
- package/styles/stepper/icons/_highcontrast.scss +5 -0
- package/styles/stepper/icons/_material-dark.scss +5 -0
- package/styles/stepper/icons/_material.scss +5 -0
- package/styles/stepper/icons/_material3-dark.scss +1 -0
- package/styles/stepper/icons/_material3.scss +5 -0
- package/styles/stepper/icons/_tailwind-dark.scss +1 -0
- package/styles/stepper/icons/_tailwind.scss +5 -0
- package/styles/stepper/material-dark.css +646 -0
- package/styles/stepper/material-dark.scss +5 -0
- package/styles/stepper/material.css +646 -0
- package/styles/stepper/material.scss +5 -0
- package/styles/stepper/material3-dark.css +701 -0
- package/styles/stepper/material3-dark.scss +6 -0
- package/styles/stepper/material3.css +757 -0
- package/styles/stepper/material3.scss +6 -0
- package/styles/stepper/tailwind-dark.css +646 -0
- package/styles/stepper/tailwind-dark.scss +5 -0
- package/styles/stepper/tailwind.css +646 -0
- package/styles/stepper/tailwind.scss +5 -0
- package/styles/tab/_bootstrap-dark-definition.scss +1 -1
- package/styles/tab/_bootstrap-definition.scss +1 -1
- package/styles/tab/_bootstrap4-definition.scss +1 -1
- package/styles/tab/_bootstrap5-definition.scss +3 -2
- package/styles/tab/_fluent-definition.scss +1 -1
- package/styles/tab/_fusionnew-definition.scss +1 -1
- package/styles/tab/_highcontrast-definition.scss +1 -1
- package/styles/tab/_highcontrast-light-definition.scss +1 -1
- package/styles/tab/_material-dark-definition.scss +1 -1
- package/styles/tab/_material-definition.scss +1 -1
- package/styles/tab/_theme.scss +6 -0
- package/styles/tab/bootstrap-dark.css +1 -1
- package/styles/tab/bootstrap.css +1 -1
- package/styles/tab/bootstrap4.css +1 -1
- package/styles/tab/bootstrap5-dark.css +2 -2
- package/styles/tab/bootstrap5.css +2 -2
- package/styles/tab/fluent-dark.css +1 -1
- package/styles/tab/fluent.css +1 -1
- package/styles/tab/highcontrast-light.css +1 -1
- package/styles/tab/highcontrast.css +1 -1
- package/styles/tab/material-dark.css +1 -1
- package/styles/tab/material.css +1 -1
- package/styles/tailwind-dark.css +758 -4
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind.css +758 -4
- package/styles/tailwind.scss +1 -0
- package/styles/toolbar/_bootstrap5-definition.scss +3 -3
- package/styles/toolbar/_fluent-definition.scss +2 -2
- package/styles/toolbar/_tailwind-definition.scss +2 -2
- package/styles/toolbar/bootstrap5-dark.css +6 -6
- package/styles/toolbar/bootstrap5.css +6 -6
- package/styles/toolbar/fluent-dark.css +4 -4
- package/styles/toolbar/fluent.css +4 -4
- package/styles/toolbar/tailwind-dark.css +4 -4
- package/styles/toolbar/tailwind.css +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Animation, Browser, ChildProperty, Collection, Complex, Component, Draggable, Droppable, Event, EventHandler, KeyboardEvents, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, Touch, addClass, animationMode, append, attributes, classList, closest, compile, createElement, detach, extend, formatUnit, getElement, getInstance, getRandomId, getUniqueID, getValue, initializeCSPTemplate, isBlazor, isNullOrUndefined, isRippleEnabled, isUndefined, isVisible, matches, merge, remove, removeClass, rippleEffect, select, selectAll, setStyleAttribute, setValue } from '@syncfusion/ej2-base';
|
|
2
2
|
import { ListBase } from '@syncfusion/ej2-lists';
|
|
3
|
-
import { Popup, calculatePosition, createSpinner, fit, getScrollableParent, getZindexPartial, hideSpinner, isCollide, showSpinner } from '@syncfusion/ej2-popups';
|
|
3
|
+
import { Popup, Tooltip, calculatePosition, createSpinner, fit, getScrollableParent, getZindexPartial, hideSpinner, isCollide, showSpinner } from '@syncfusion/ej2-popups';
|
|
4
4
|
import { Button, createCheckBox, rippleMouseHandler } from '@syncfusion/ej2-buttons';
|
|
5
5
|
import { DataManager, Query } from '@syncfusion/ej2-data';
|
|
6
6
|
import { Input } from '@syncfusion/ej2-inputs';
|
|
@@ -1337,6 +1337,10 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1337
1337
|
}
|
|
1338
1338
|
}
|
|
1339
1339
|
}
|
|
1340
|
+
else {
|
|
1341
|
+
this.element.parentElement.setAttribute('role', 'dialog');
|
|
1342
|
+
this.element.parentElement.setAttribute('aria-label', 'context menu');
|
|
1343
|
+
}
|
|
1340
1344
|
};
|
|
1341
1345
|
MenuBase.prototype.wireEvents = function () {
|
|
1342
1346
|
var wrapper = this.getWrapper();
|
|
@@ -1576,7 +1580,25 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1576
1580
|
fli.classList.add(SELECTED);
|
|
1577
1581
|
eventArgs = { element: fli, item: item, event: e };
|
|
1578
1582
|
this.trigger('select', eventArgs);
|
|
1583
|
+
var aEle = fli.querySelector('.e-menu-url');
|
|
1584
|
+
if (item.url && aEle) {
|
|
1585
|
+
switch (aEle.getAttribute('target')) {
|
|
1586
|
+
case '_blank':
|
|
1587
|
+
window.open(item.url, '_blank');
|
|
1588
|
+
break;
|
|
1589
|
+
case '_parent':
|
|
1590
|
+
window.parent.location.href = item.url;
|
|
1591
|
+
break;
|
|
1592
|
+
default:
|
|
1593
|
+
window.location.href = item.url;
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1579
1596
|
this.closeMenu(null, e);
|
|
1597
|
+
var sli = this.getLIByClass(this.getUlByNavIdx(), SELECTED);
|
|
1598
|
+
if (sli) {
|
|
1599
|
+
sli.classList.add(FOCUSED);
|
|
1600
|
+
sli.focus();
|
|
1601
|
+
}
|
|
1580
1602
|
}
|
|
1581
1603
|
}
|
|
1582
1604
|
}
|
|
@@ -1674,6 +1696,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1674
1696
|
closeArgs = { element: ul_1, parentItem: item_1, items: items_1 };
|
|
1675
1697
|
_this.trigger('onClose', closeArgs);
|
|
1676
1698
|
_this.navIdx.pop();
|
|
1699
|
+
if (_this.navIdx.length === 0) {
|
|
1700
|
+
_this.showSubMenu = false;
|
|
1701
|
+
}
|
|
1677
1702
|
if (!_this.isMenu) {
|
|
1678
1703
|
EventHandler.remove(ul_1, 'keydown', _this.keyHandler);
|
|
1679
1704
|
if (_this.keyType === 'right') {
|
|
@@ -4185,6 +4210,10 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
4185
4210
|
if (this.cssClass) {
|
|
4186
4211
|
addClass([innerItems[0]], this.cssClass.split(' '));
|
|
4187
4212
|
}
|
|
4213
|
+
var scrollEle = this.scrollModule.element.querySelector('.' + CLS_HSCROLLBAR$1 + ', .' + 'e-vscroll-bar');
|
|
4214
|
+
if (scrollEle) {
|
|
4215
|
+
scrollEle.removeAttribute('tabindex');
|
|
4216
|
+
}
|
|
4188
4217
|
this.remove(this.scrollModule.element, CLS_TBARPOS);
|
|
4189
4218
|
setStyleAttribute(this.element, { overflow: 'hidden' });
|
|
4190
4219
|
}
|
|
@@ -8926,7 +8955,6 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8926
8955
|
var scrCnt = select('.' + this.scrCntClass, this.tbItems);
|
|
8927
8956
|
if (!this.isVertical() && !isNullOrUndefined(scrCnt)) {
|
|
8928
8957
|
var scrBar = select('.e-hscroll-bar', this.tbItems);
|
|
8929
|
-
scrBar.removeAttribute('tabindex');
|
|
8930
8958
|
var scrStart = scrBar.scrollLeft;
|
|
8931
8959
|
var scrEnd = scrStart + scrBar.offsetWidth;
|
|
8932
8960
|
var eleStart = target.offsetLeft;
|
|
@@ -10356,9 +10384,11 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
10356
10384
|
TreeView.prototype.setDisabledMode = function () {
|
|
10357
10385
|
if (this.disabled) {
|
|
10358
10386
|
this.element.classList.add(DISABLED$1);
|
|
10387
|
+
this.element.setAttribute('aria-disabled', 'true');
|
|
10359
10388
|
}
|
|
10360
10389
|
else {
|
|
10361
10390
|
this.element.classList.remove(DISABLED$1);
|
|
10391
|
+
this.element.setAttribute('aria-disabled', 'false');
|
|
10362
10392
|
}
|
|
10363
10393
|
};
|
|
10364
10394
|
TreeView.prototype.setEnableRtl = function () {
|
|
@@ -10381,12 +10411,11 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
10381
10411
|
(isEnabled ? addClass : removeClass)([this.element], FULLROWWRAP);
|
|
10382
10412
|
};
|
|
10383
10413
|
TreeView.prototype.setMultiSelect = function (isEnabled) {
|
|
10384
|
-
var firstUl = select('.' + PARENTITEM, this.element);
|
|
10385
10414
|
if (isEnabled) {
|
|
10386
|
-
|
|
10415
|
+
this.element.setAttribute('aria-multiselectable', 'true');
|
|
10387
10416
|
}
|
|
10388
10417
|
else {
|
|
10389
|
-
|
|
10418
|
+
this.element.setAttribute('aria-multiselectable', 'false');
|
|
10390
10419
|
}
|
|
10391
10420
|
};
|
|
10392
10421
|
// eslint-disable-next-line
|
|
@@ -10516,6 +10545,14 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
10516
10545
|
this.rootData = this.treeData;
|
|
10517
10546
|
}
|
|
10518
10547
|
};
|
|
10548
|
+
TreeView.prototype.isChildObject = function () {
|
|
10549
|
+
if (typeof this.fields.child === 'object') {
|
|
10550
|
+
return true;
|
|
10551
|
+
}
|
|
10552
|
+
else {
|
|
10553
|
+
return false;
|
|
10554
|
+
}
|
|
10555
|
+
};
|
|
10519
10556
|
TreeView.prototype.renderItems = function (isSorted) {
|
|
10520
10557
|
/* eslint-disable */
|
|
10521
10558
|
this.listBaseOption.ariaAttributes.level = 1;
|
|
@@ -10754,7 +10791,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
10754
10791
|
if (this.showCheckBox) {
|
|
10755
10792
|
var checkboxEle = createCheckBox(this.createElement, true, { cssClass: this.touchClass });
|
|
10756
10793
|
checkboxEle.setAttribute('role', 'checkbox');
|
|
10757
|
-
checkboxEle.setAttribute('aria-label',
|
|
10794
|
+
checkboxEle.setAttribute('aria-label', e.text);
|
|
10758
10795
|
var icon = select('div.' + ICON, e.item);
|
|
10759
10796
|
var id = e.item.getAttribute('data-uid');
|
|
10760
10797
|
e.item.childNodes[0].insertBefore(checkboxEle, e.item.childNodes[0].childNodes[isNullOrUndefined(icon) ? 0 : 1]);
|
|
@@ -10835,6 +10872,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
10835
10872
|
if ((typeof mapper.child === 'string') && !isNullOrUndefined(getValue(mapper.child, ds[i]))) {
|
|
10836
10873
|
return 2;
|
|
10837
10874
|
}
|
|
10875
|
+
if (this.isChildObject()) {
|
|
10876
|
+
return 2;
|
|
10877
|
+
}
|
|
10838
10878
|
if (!isNullOrUndefined(getValue(mapper.parentID, ds[i])) || !isNullOrUndefined(getValue(mapper.hasChildren, ds[i]))) {
|
|
10839
10879
|
return 1;
|
|
10840
10880
|
}
|
|
@@ -11782,7 +11822,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
11782
11822
|
}
|
|
11783
11823
|
}
|
|
11784
11824
|
else {
|
|
11785
|
-
childItems = this.getChildNodes(this.treeData, parentLi.getAttribute('data-uid'));
|
|
11825
|
+
childItems = this.getChildNodes(this.treeData, parentLi.getAttribute('data-uid'), false, parseFloat(parentLi.getAttribute('aria-level')) + 1);
|
|
11786
11826
|
this.currentLoadData = this.getSortedData(childItems);
|
|
11787
11827
|
if (isNullOrUndefined(childItems) || childItems.length === 0) {
|
|
11788
11828
|
detach(eicon);
|
|
@@ -11884,7 +11924,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
11884
11924
|
TreeView.prototype.getChildMapper = function (mapper) {
|
|
11885
11925
|
return (typeof mapper.child === 'string' || isNullOrUndefined(mapper.child)) ? mapper : mapper.child;
|
|
11886
11926
|
};
|
|
11887
|
-
TreeView.prototype.getChildNodes = function (obj, parentId, isRoot) {
|
|
11927
|
+
TreeView.prototype.getChildNodes = function (obj, parentId, isRoot, level) {
|
|
11888
11928
|
var _this = this;
|
|
11889
11929
|
if (isRoot === void 0) { isRoot = false; }
|
|
11890
11930
|
var childNodes;
|
|
@@ -11916,6 +11956,39 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
11916
11956
|
}
|
|
11917
11957
|
}
|
|
11918
11958
|
}
|
|
11959
|
+
else if (this.isChildObject()) {
|
|
11960
|
+
var tempField = !isNullOrUndefined(level) ? this.fields : this.fields.child;
|
|
11961
|
+
var i = 1;
|
|
11962
|
+
while (i < level) {
|
|
11963
|
+
if (!isNullOrUndefined(tempField.child)) {
|
|
11964
|
+
tempField = tempField.child;
|
|
11965
|
+
}
|
|
11966
|
+
else {
|
|
11967
|
+
break;
|
|
11968
|
+
}
|
|
11969
|
+
i++;
|
|
11970
|
+
}
|
|
11971
|
+
this.updateListProp(tempField);
|
|
11972
|
+
var index = obj.findIndex(function (data) { return getValue(_this.fields.id, data) && getValue(_this.fields.id, data).toString() === parentId; });
|
|
11973
|
+
if (index !== -1) {
|
|
11974
|
+
return getValue('child', obj[index]);
|
|
11975
|
+
}
|
|
11976
|
+
if (index === -1) {
|
|
11977
|
+
for (var i_1 = 0, objlen = obj.length; i_1 < objlen; i_1++) {
|
|
11978
|
+
var tempArray = getValue('child', obj[i_1]);
|
|
11979
|
+
var childIndex = !isNullOrUndefined(tempArray) ? tempArray.findIndex(function (data) { return getValue(_this.fields.child.id, data) && getValue(_this.fields.child.id, data).toString() === parentId; }) : -1;
|
|
11980
|
+
if (childIndex !== -1) {
|
|
11981
|
+
return getValue('child', tempArray[childIndex]);
|
|
11982
|
+
}
|
|
11983
|
+
else if (!isNullOrUndefined(tempArray)) {
|
|
11984
|
+
childNodes = this.getChildNodes(tempArray, parentId, false, level);
|
|
11985
|
+
if (childNodes !== undefined) {
|
|
11986
|
+
break;
|
|
11987
|
+
}
|
|
11988
|
+
}
|
|
11989
|
+
}
|
|
11990
|
+
}
|
|
11991
|
+
}
|
|
11919
11992
|
}
|
|
11920
11993
|
return childNodes;
|
|
11921
11994
|
};
|
|
@@ -12955,6 +13028,14 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
12955
13028
|
break;
|
|
12956
13029
|
}
|
|
12957
13030
|
}
|
|
13031
|
+
else if (this.isChildObject()) {
|
|
13032
|
+
var children = 'child';
|
|
13033
|
+
var childData = getValue(children, obj[i]);
|
|
13034
|
+
newList = this.getChildNodeObject(childData, this.getChildMapper(mapper), id);
|
|
13035
|
+
if (newList !== undefined) {
|
|
13036
|
+
break;
|
|
13037
|
+
}
|
|
13038
|
+
}
|
|
12958
13039
|
}
|
|
12959
13040
|
return newList;
|
|
12960
13041
|
};
|
|
@@ -13177,9 +13258,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
13177
13258
|
var nodeData = [];
|
|
13178
13259
|
var liArray = [];
|
|
13179
13260
|
dragInstance = e.dragData.draggable;
|
|
13180
|
-
for (var
|
|
13181
|
-
if (dragInstance.ej2_instances[
|
|
13182
|
-
dragObj = dragInstance.ej2_instances[
|
|
13261
|
+
for (var i_2 = 0; i_2 < dragInstance.ej2_instances.length; i_2++) {
|
|
13262
|
+
if (dragInstance.ej2_instances[i_2] instanceof TreeView_1) {
|
|
13263
|
+
dragObj = dragInstance.ej2_instances[i_2];
|
|
13183
13264
|
break;
|
|
13184
13265
|
}
|
|
13185
13266
|
}
|
|
@@ -13203,19 +13284,19 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
13203
13284
|
var sNodes = selectAll('.' + ACTIVE, dragObj.element);
|
|
13204
13285
|
liArray = sNodes;
|
|
13205
13286
|
if (e.target.offsetHeight <= 33 && offsetY > e.target.offsetHeight - 10 && offsetY > 6) {
|
|
13206
|
-
for (var
|
|
13207
|
-
if (dropLi.isSameNode(sNodes[
|
|
13287
|
+
for (var i_3 = sNodes.length - 1; i_3 >= 0; i_3--) {
|
|
13288
|
+
if (dropLi.isSameNode(sNodes[i_3]) || this.isDescendant(sNodes[i_3], dropLi)) {
|
|
13208
13289
|
continue;
|
|
13209
13290
|
}
|
|
13210
|
-
this.appendNode(dropTarget, sNodes[
|
|
13291
|
+
this.appendNode(dropTarget, sNodes[i_3], dropLi, e, dragObj, offsetY);
|
|
13211
13292
|
}
|
|
13212
13293
|
}
|
|
13213
13294
|
else {
|
|
13214
|
-
for (var
|
|
13215
|
-
if (dropLi.isSameNode(sNodes[
|
|
13295
|
+
for (var i_4 = 0; i_4 < sNodes.length; i_4++) {
|
|
13296
|
+
if (dropLi.isSameNode(sNodes[i_4]) || this.isDescendant(sNodes[i_4], dropLi)) {
|
|
13216
13297
|
continue;
|
|
13217
13298
|
}
|
|
13218
|
-
this.appendNode(dropTarget, sNodes[
|
|
13299
|
+
this.appendNode(dropTarget, sNodes[i_4], dropLi, e, dragObj, offsetY);
|
|
13219
13300
|
}
|
|
13220
13301
|
}
|
|
13221
13302
|
}
|
|
@@ -16082,7 +16163,9 @@ var Breadcrumb = /** @__PURE__ @class */ (function (_super) {
|
|
|
16082
16163
|
};
|
|
16083
16164
|
Breadcrumb.prototype.initialize = function () {
|
|
16084
16165
|
this._maxItems = this.maxItems;
|
|
16085
|
-
this.element.
|
|
16166
|
+
if (isNullOrUndefined(this.element.getAttribute('aria-label'))) {
|
|
16167
|
+
this.element.setAttribute('aria-label', 'breadcrumb');
|
|
16168
|
+
}
|
|
16086
16169
|
if (this.cssClass) {
|
|
16087
16170
|
addClass([this.element], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
|
|
16088
16171
|
}
|
|
@@ -16411,6 +16494,9 @@ var Breadcrumb = /** @__PURE__ @class */ (function (_super) {
|
|
|
16411
16494
|
};
|
|
16412
16495
|
Breadcrumb.prototype.beforeItemRenderChanges = function (prevItem, currItem, elem, isRightIcon) {
|
|
16413
16496
|
var wrapElem = elem.querySelector('.e-anchor-wrap');
|
|
16497
|
+
if (wrapElem) {
|
|
16498
|
+
wrapElem.parentElement.setAttribute('aria-label', 'home');
|
|
16499
|
+
}
|
|
16414
16500
|
if (currItem.text !== prevItem.text) {
|
|
16415
16501
|
wrapElem.childNodes.forEach(function (child) {
|
|
16416
16502
|
if (child.nodeType === Node.TEXT_NODE) {
|
|
@@ -17059,7 +17145,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
17059
17145
|
}
|
|
17060
17146
|
addClass([this.element], carouselClasses);
|
|
17061
17147
|
setStyleAttribute(this.element, { 'width': formatUnit(this.width), 'height': formatUnit(this.height) });
|
|
17062
|
-
attributes(this.element, { '
|
|
17148
|
+
attributes(this.element, { 'role': 'group', 'aria-roledescription': 'carousel', 'aria-label': this.localeObj.getConstant('slideShow') });
|
|
17063
17149
|
if (!isNullOrUndefined(this.htmlAttributes)) {
|
|
17064
17150
|
this.setHtmlAttributes(this.htmlAttributes, this.element);
|
|
17065
17151
|
}
|
|
@@ -17068,7 +17154,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
17068
17154
|
var _this = this;
|
|
17069
17155
|
var slideContainer = this.element.querySelector('.' + CLS_SLIDE_CONTAINER);
|
|
17070
17156
|
if (!slideContainer) {
|
|
17071
|
-
slideContainer = this.createElement('div', { className: CLS_SLIDE_CONTAINER });
|
|
17157
|
+
slideContainer = this.createElement('div', { className: CLS_SLIDE_CONTAINER, attrs: { 'tabindex': '0', 'role': 'tabpanel' } });
|
|
17072
17158
|
this.element.appendChild(slideContainer);
|
|
17073
17159
|
}
|
|
17074
17160
|
this.itemsContainer = this.createElement('div', { className: CLS_ITEMS$2, attrs: { 'aria-live': this.autoPlay ? 'off' : 'polite' } });
|
|
@@ -17977,7 +18063,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
17977
18063
|
this.unWireEvents();
|
|
17978
18064
|
[].slice.call(this.element.children).forEach(function (ele) { _this.element.removeChild(ele); });
|
|
17979
18065
|
removeClass([this.element], [CLS_CAROUSEL, this.cssClass, CLS_RTL$5, CLS_SWIPE]);
|
|
17980
|
-
['
|
|
18066
|
+
['role', 'style'].forEach(function (attr) { _this.element.removeAttribute(attr); });
|
|
17981
18067
|
this.itemsContainer = null;
|
|
17982
18068
|
_super.prototype.destroy.call(this);
|
|
17983
18069
|
};
|
|
@@ -18288,9 +18374,1393 @@ var AppBar = /** @__PURE__ @class */ (function (_super) {
|
|
|
18288
18374
|
|
|
18289
18375
|
/** AppBar export modules */
|
|
18290
18376
|
|
|
18377
|
+
var __extends$13 = (undefined && undefined.__extends) || (function () {
|
|
18378
|
+
var extendStatics = function (d, b) {
|
|
18379
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18380
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18381
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
18382
|
+
return extendStatics(d, b);
|
|
18383
|
+
};
|
|
18384
|
+
return function (d, b) {
|
|
18385
|
+
extendStatics(d, b);
|
|
18386
|
+
function __() { this.constructor = d; }
|
|
18387
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18388
|
+
};
|
|
18389
|
+
})();
|
|
18390
|
+
var __decorate$13 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
18391
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18392
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
18393
|
+
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;
|
|
18394
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18395
|
+
};
|
|
18396
|
+
var PROGRESSVALUE = '--progress-value';
|
|
18397
|
+
/**
|
|
18398
|
+
* Defines the status of the step.
|
|
18399
|
+
*/
|
|
18400
|
+
var StepStatus;
|
|
18401
|
+
(function (StepStatus) {
|
|
18402
|
+
/**
|
|
18403
|
+
* Shows the status of the step is not started.
|
|
18404
|
+
*/
|
|
18405
|
+
StepStatus["NotStarted"] = "NotStarted";
|
|
18406
|
+
/**
|
|
18407
|
+
* Shows the step is in progress.
|
|
18408
|
+
*/
|
|
18409
|
+
StepStatus["InProgress"] = "InProgress";
|
|
18410
|
+
/**
|
|
18411
|
+
* Shows the status of the step is completed.
|
|
18412
|
+
*/
|
|
18413
|
+
StepStatus["Completed"] = "Completed";
|
|
18414
|
+
})(StepStatus || (StepStatus = {}));
|
|
18415
|
+
/**
|
|
18416
|
+
* Specifies the steps of the Stepper.
|
|
18417
|
+
*/
|
|
18418
|
+
var Step = /** @__PURE__ @class */ (function (_super) {
|
|
18419
|
+
__extends$13(Step, _super);
|
|
18420
|
+
function Step() {
|
|
18421
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
18422
|
+
}
|
|
18423
|
+
__decorate$13([
|
|
18424
|
+
Property('')
|
|
18425
|
+
], Step.prototype, "cssClass", void 0);
|
|
18426
|
+
__decorate$13([
|
|
18427
|
+
Property(false)
|
|
18428
|
+
], Step.prototype, "disabled", void 0);
|
|
18429
|
+
__decorate$13([
|
|
18430
|
+
Property('')
|
|
18431
|
+
], Step.prototype, "iconCss", void 0);
|
|
18432
|
+
__decorate$13([
|
|
18433
|
+
Property(null)
|
|
18434
|
+
], Step.prototype, "isValid", void 0);
|
|
18435
|
+
__decorate$13([
|
|
18436
|
+
Property('')
|
|
18437
|
+
], Step.prototype, "label", void 0);
|
|
18438
|
+
__decorate$13([
|
|
18439
|
+
Property(false)
|
|
18440
|
+
], Step.prototype, "optional", void 0);
|
|
18441
|
+
__decorate$13([
|
|
18442
|
+
Property(StepStatus.NotStarted)
|
|
18443
|
+
], Step.prototype, "status", void 0);
|
|
18444
|
+
__decorate$13([
|
|
18445
|
+
Property('')
|
|
18446
|
+
], Step.prototype, "text", void 0);
|
|
18447
|
+
return Step;
|
|
18448
|
+
}(ChildProperty));
|
|
18449
|
+
/**
|
|
18450
|
+
* Defines the orientation type of the Stepper.
|
|
18451
|
+
*/
|
|
18452
|
+
var StepperOrientation;
|
|
18453
|
+
(function (StepperOrientation) {
|
|
18454
|
+
/**
|
|
18455
|
+
* Steps are displayed horizontally.
|
|
18456
|
+
*/
|
|
18457
|
+
StepperOrientation["Horizontal"] = "Horizontal";
|
|
18458
|
+
/**
|
|
18459
|
+
* Steps are displayed vertically.
|
|
18460
|
+
*/
|
|
18461
|
+
StepperOrientation["Vertical"] = "Vertical";
|
|
18462
|
+
})(StepperOrientation || (StepperOrientation = {}));
|
|
18463
|
+
/**
|
|
18464
|
+
* StepperBase component act as base class to the stepper component.
|
|
18465
|
+
*/
|
|
18466
|
+
var StepperBase = /** @__PURE__ @class */ (function (_super) {
|
|
18467
|
+
__extends$13(StepperBase, _super);
|
|
18468
|
+
/**
|
|
18469
|
+
* * Constructor for Base class
|
|
18470
|
+
*
|
|
18471
|
+
* @param {StepperBaseModel} options - Specifies the Base model.
|
|
18472
|
+
* @param {string | HTMLElement} element - Specifies the element to render as component.
|
|
18473
|
+
* @private
|
|
18474
|
+
*/
|
|
18475
|
+
function StepperBase(options, element) {
|
|
18476
|
+
return _super.call(this, options, element) || this;
|
|
18477
|
+
}
|
|
18478
|
+
/**
|
|
18479
|
+
* This method is abstract member of the Component<HTMLElement>.
|
|
18480
|
+
*
|
|
18481
|
+
* @private
|
|
18482
|
+
* @returns {void}
|
|
18483
|
+
*/
|
|
18484
|
+
StepperBase.prototype.preRender = function () {
|
|
18485
|
+
};
|
|
18486
|
+
/**
|
|
18487
|
+
* This method is abstract member of the Component<HTMLElement>.
|
|
18488
|
+
*
|
|
18489
|
+
* @private
|
|
18490
|
+
* @returns {string}
|
|
18491
|
+
*/
|
|
18492
|
+
StepperBase.prototype.getModuleName = function () {
|
|
18493
|
+
return 'stepperBase';
|
|
18494
|
+
};
|
|
18495
|
+
/**
|
|
18496
|
+
* This method is abstract member of the Component<HTMLElement>.
|
|
18497
|
+
*
|
|
18498
|
+
* @private
|
|
18499
|
+
* @returns {string}
|
|
18500
|
+
*/
|
|
18501
|
+
StepperBase.prototype.getPersistData = function () {
|
|
18502
|
+
return this.addOnPersist([]);
|
|
18503
|
+
};
|
|
18504
|
+
/**
|
|
18505
|
+
* This method is abstract member of the Component<HTMLElement>.
|
|
18506
|
+
*
|
|
18507
|
+
* @private
|
|
18508
|
+
* @returns {void}
|
|
18509
|
+
*/
|
|
18510
|
+
StepperBase.prototype.render = function () {
|
|
18511
|
+
};
|
|
18512
|
+
StepperBase.prototype.updateOrientaion = function (wrapper) {
|
|
18513
|
+
if (wrapper.classList.contains('e-horizontal') || wrapper.classList.contains('e-vertical')) {
|
|
18514
|
+
wrapper.classList.contains('e-horizontal') ? wrapper.classList.remove('e-horizontal') : wrapper.classList.remove('e-vertical');
|
|
18515
|
+
}
|
|
18516
|
+
wrapper.classList.add('e-' + this.orientation.toLocaleLowerCase());
|
|
18517
|
+
};
|
|
18518
|
+
StepperBase.prototype.renderProgressBar = function (wrapper) {
|
|
18519
|
+
this.progressStep = this.createElement('div', { className: 'e-stepper-progressbar' });
|
|
18520
|
+
this.progressbar = this.createElement('div', { className: 'e-progressbar-value' });
|
|
18521
|
+
this.progressStep.appendChild(this.progressbar);
|
|
18522
|
+
wrapper.prepend(this.progressStep);
|
|
18523
|
+
this.progressbar.style.setProperty(PROGRESSVALUE, (0) + '%');
|
|
18524
|
+
var beforeLabel = (wrapper.querySelector('li').querySelector('.e-step-label-container'));
|
|
18525
|
+
if (wrapper.classList.contains('e-vertical')) {
|
|
18526
|
+
if (wrapper.classList.contains('e-label-bottom') || wrapper.classList.contains('e-label-top')) {
|
|
18527
|
+
var stepsContainer = (wrapper.querySelector('.e-stepper-steps'));
|
|
18528
|
+
this.progressStep.style.setProperty('--progress-position', (stepsContainer.offsetWidth / 2) + 'px');
|
|
18529
|
+
}
|
|
18530
|
+
else {
|
|
18531
|
+
this.progressStep.style.setProperty('--progress-position', ((this.progressBarPosition / 2) - 1) + 'px');
|
|
18532
|
+
}
|
|
18533
|
+
}
|
|
18534
|
+
if (beforeLabel && (beforeLabel.classList.contains('e-label-before'))) {
|
|
18535
|
+
this.progressStep.style.setProperty('--progress-position', (((this.progressBarPosition) - 1)) + 5 + 'px');
|
|
18536
|
+
}
|
|
18537
|
+
if (wrapper.classList.contains('e-horizontal')) {
|
|
18538
|
+
this.setProgressPosition(wrapper);
|
|
18539
|
+
}
|
|
18540
|
+
};
|
|
18541
|
+
StepperBase.prototype.setProgressPosition = function (wrapper, isResize) {
|
|
18542
|
+
var stepItemContainer = (wrapper.querySelector('.e-step-container'));
|
|
18543
|
+
var stepItemEle = stepItemContainer.firstElementChild;
|
|
18544
|
+
if (isResize != true) {
|
|
18545
|
+
var topPos = 0;
|
|
18546
|
+
if (wrapper.classList.contains('e-label-before')) {
|
|
18547
|
+
topPos = (stepItemContainer.offsetParent.offsetHeight - (stepItemEle.offsetHeight / 2) - 1);
|
|
18548
|
+
}
|
|
18549
|
+
else {
|
|
18550
|
+
topPos = (stepItemEle.offsetHeight / 2);
|
|
18551
|
+
}
|
|
18552
|
+
this.progressStep.style.setProperty('--progress-top-position', topPos + 'px');
|
|
18553
|
+
}
|
|
18554
|
+
var lastEle = wrapper.querySelector('.e-stepper-steps').lastChild.firstChild;
|
|
18555
|
+
if (wrapper.classList.contains('e-rtl')) {
|
|
18556
|
+
var leftPost = ((stepItemEle.offsetLeft + stepItemEle.offsetWidth) - wrapper.querySelector('.e-stepper-steps').offsetWidth);
|
|
18557
|
+
this.progressStep.style.setProperty('--progress-left-position', Math.abs(leftPost) + 'px');
|
|
18558
|
+
this.progressStep.style.setProperty('--progress-bar-width', Math.abs(lastEle.offsetLeft - stepItemEle.offsetLeft) + 'px');
|
|
18559
|
+
}
|
|
18560
|
+
else {
|
|
18561
|
+
this.progressStep.style.setProperty('--progress-left-position', (stepItemEle.offsetLeft + 1) + 'px');
|
|
18562
|
+
this.progressStep.style.setProperty('--progress-bar-width', ((lastEle.offsetWidth + lastEle.offsetLeft - 2) - (stepItemEle.offsetLeft + 2)) + 'px');
|
|
18563
|
+
}
|
|
18564
|
+
};
|
|
18565
|
+
/**
|
|
18566
|
+
* This method is abstract member of the Component<HTMLElement>.
|
|
18567
|
+
*
|
|
18568
|
+
* @param newProp
|
|
18569
|
+
* @param oldProp
|
|
18570
|
+
* @private
|
|
18571
|
+
* @returns {void}
|
|
18572
|
+
*/
|
|
18573
|
+
StepperBase.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
18574
|
+
};
|
|
18575
|
+
__decorate$13([
|
|
18576
|
+
Collection([], Step)
|
|
18577
|
+
], StepperBase.prototype, "steps", void 0);
|
|
18578
|
+
__decorate$13([
|
|
18579
|
+
Property('')
|
|
18580
|
+
], StepperBase.prototype, "cssClass", void 0);
|
|
18581
|
+
__decorate$13([
|
|
18582
|
+
Property(false)
|
|
18583
|
+
], StepperBase.prototype, "readOnly", void 0);
|
|
18584
|
+
__decorate$13([
|
|
18585
|
+
Property(StepperOrientation.Horizontal)
|
|
18586
|
+
], StepperBase.prototype, "orientation", void 0);
|
|
18587
|
+
__decorate$13([
|
|
18588
|
+
Event()
|
|
18589
|
+
], StepperBase.prototype, "created", void 0);
|
|
18590
|
+
StepperBase = __decorate$13([
|
|
18591
|
+
NotifyPropertyChanges
|
|
18592
|
+
], StepperBase);
|
|
18593
|
+
return StepperBase;
|
|
18594
|
+
}(Component));
|
|
18595
|
+
|
|
18596
|
+
/**
|
|
18597
|
+
* export all modules from current location
|
|
18598
|
+
*/
|
|
18599
|
+
|
|
18600
|
+
var __extends$14 = (undefined && undefined.__extends) || (function () {
|
|
18601
|
+
var extendStatics = function (d, b) {
|
|
18602
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18603
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18604
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
18605
|
+
return extendStatics(d, b);
|
|
18606
|
+
};
|
|
18607
|
+
return function (d, b) {
|
|
18608
|
+
extendStatics(d, b);
|
|
18609
|
+
function __() { this.constructor = d; }
|
|
18610
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18611
|
+
};
|
|
18612
|
+
})();
|
|
18613
|
+
var __decorate$14 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
18614
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18615
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
18616
|
+
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;
|
|
18617
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18618
|
+
};
|
|
18619
|
+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
18620
|
+
///<reference path='../stepper-base/stepper-base-model.d.ts'/>
|
|
18621
|
+
var ITEMCONTAINER = 'e-step-container';
|
|
18622
|
+
var ITEMLIST = 'e-stepper-steps';
|
|
18623
|
+
var ICONCSS = 'e-indicator';
|
|
18624
|
+
var TEXTCSS = 'e-step-text-container';
|
|
18625
|
+
var STEPLABEL = 'e-step-label-container';
|
|
18626
|
+
var OPTIONAL = 'e-step-label-optional';
|
|
18627
|
+
var SELECTED$2 = 'e-step-selected';
|
|
18628
|
+
var INPROGRESS = 'e-step-inprogress';
|
|
18629
|
+
var NOTSTARTED = 'e-step-notstarted';
|
|
18630
|
+
var FOCUS$1 = 'e-step-focus';
|
|
18631
|
+
var COMPLETED = 'e-step-completed';
|
|
18632
|
+
var DISABLED$2 = 'e-step-disabled';
|
|
18633
|
+
var READONLY = 'e-stepper-readonly';
|
|
18634
|
+
var PROGRESSVALUE$1 = '--progress-value';
|
|
18635
|
+
var RTL$3 = 'e-rtl';
|
|
18636
|
+
var TEMPLATE = 'e-step-template';
|
|
18637
|
+
var LABELAFTER = 'e-label-after';
|
|
18638
|
+
var LABELBEFORE = 'e-label-before';
|
|
18639
|
+
var VERTICALSTEP = 'e-vertical';
|
|
18640
|
+
var HORIZSTEP = 'e-horizontal';
|
|
18641
|
+
var STEPICON = 'e-step-icon';
|
|
18642
|
+
var STEPTEXT = 'e-step-text';
|
|
18643
|
+
var TEXT = 'e-text';
|
|
18644
|
+
var STEPSLABEL = 'e-step-label';
|
|
18645
|
+
var LABEL = 'e-label';
|
|
18646
|
+
var STEPINDICATOR = 'e-step-type-indicator';
|
|
18647
|
+
var LABELINDICATOR = 'e-step-type-label';
|
|
18648
|
+
var INDICATORICON = 'e-step-indicator';
|
|
18649
|
+
var STEPPERTOOLTIP = 'e-stepper-tooltip';
|
|
18650
|
+
var STEPPERIPROGRESSTIP = 'e-step-inprogress-tip';
|
|
18651
|
+
/**
|
|
18652
|
+
* Defines the step progress animation of the Stepper.
|
|
18653
|
+
*/
|
|
18654
|
+
var StepperAnimationSettings = /** @__PURE__ @class */ (function (_super) {
|
|
18655
|
+
__extends$14(StepperAnimationSettings, _super);
|
|
18656
|
+
function StepperAnimationSettings() {
|
|
18657
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
18658
|
+
}
|
|
18659
|
+
__decorate$14([
|
|
18660
|
+
Property(true)
|
|
18661
|
+
], StepperAnimationSettings.prototype, "enable", void 0);
|
|
18662
|
+
__decorate$14([
|
|
18663
|
+
Property(2000)
|
|
18664
|
+
], StepperAnimationSettings.prototype, "duration", void 0);
|
|
18665
|
+
__decorate$14([
|
|
18666
|
+
Property(0)
|
|
18667
|
+
], StepperAnimationSettings.prototype, "delay", void 0);
|
|
18668
|
+
return StepperAnimationSettings;
|
|
18669
|
+
}(ChildProperty));
|
|
18670
|
+
/**
|
|
18671
|
+
* Defines the label position in the Stepper.
|
|
18672
|
+
*/
|
|
18673
|
+
var StepLabelPosition;
|
|
18674
|
+
(function (StepLabelPosition) {
|
|
18675
|
+
/**
|
|
18676
|
+
* Displays the label on top position regardless of the Stepper's orientation.
|
|
18677
|
+
*/
|
|
18678
|
+
StepLabelPosition["Top"] = "Top";
|
|
18679
|
+
/**
|
|
18680
|
+
* Displays the label on bottom position regardless of the Stepper's orientation.
|
|
18681
|
+
*/
|
|
18682
|
+
StepLabelPosition["Bottom"] = "Bottom";
|
|
18683
|
+
/**
|
|
18684
|
+
* Displays the label on left side regardless of the Stepper's orientation.
|
|
18685
|
+
*/
|
|
18686
|
+
StepLabelPosition["Start"] = "Start";
|
|
18687
|
+
/**
|
|
18688
|
+
* Displays the label on right side regardless of the Stepper's orientation.
|
|
18689
|
+
*/
|
|
18690
|
+
StepLabelPosition["End"] = "End";
|
|
18691
|
+
})(StepLabelPosition || (StepLabelPosition = {}));
|
|
18692
|
+
/**
|
|
18693
|
+
* Defines whether steps are display with only indicator, only labels or combination of both.
|
|
18694
|
+
*/
|
|
18695
|
+
var StepType;
|
|
18696
|
+
(function (StepType) {
|
|
18697
|
+
/**
|
|
18698
|
+
* Steps are shown indicator with label defined.
|
|
18699
|
+
*/
|
|
18700
|
+
StepType["Default"] = "Default";
|
|
18701
|
+
/**
|
|
18702
|
+
* Steps are shown with only label.
|
|
18703
|
+
*/
|
|
18704
|
+
StepType["Label"] = "Label";
|
|
18705
|
+
/**
|
|
18706
|
+
* Steps are shown with only indicator.
|
|
18707
|
+
*/
|
|
18708
|
+
StepType["Indicator"] = "Indicator";
|
|
18709
|
+
})(StepType || (StepType = {}));
|
|
18710
|
+
/**
|
|
18711
|
+
* The Stepper component visualizes several steps and indicates the current progress by highlighting already completed steps.
|
|
18712
|
+
*
|
|
18713
|
+
* ```html
|
|
18714
|
+
* <nav id="stepper"></nav>
|
|
18715
|
+
* ```
|
|
18716
|
+
* ```typescript
|
|
18717
|
+
* <script>
|
|
18718
|
+
* let stepperObj: Stepper = new Stepper({steps : [{}, {}, {}, {}, {}]});
|
|
18719
|
+
* stepperObj.appendTo('#stepper');
|
|
18720
|
+
* </script>
|
|
18721
|
+
* ```
|
|
18722
|
+
*/
|
|
18723
|
+
var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
18724
|
+
__extends$14(Stepper, _super);
|
|
18725
|
+
/**
|
|
18726
|
+
* * Constructor for creating the Stepper component.
|
|
18727
|
+
*
|
|
18728
|
+
* @param {StepperModel} options - Specifies the Stepper model.
|
|
18729
|
+
* @param {string | HTMLElement} element - Specifies the element to render as component.
|
|
18730
|
+
* @private
|
|
18731
|
+
*/
|
|
18732
|
+
function Stepper(options, element) {
|
|
18733
|
+
var _this = _super.call(this, options, element) || this;
|
|
18734
|
+
_this.stepperItemElements = [];
|
|
18735
|
+
return _this;
|
|
18736
|
+
}
|
|
18737
|
+
Stepper.prototype.preRender = function () {
|
|
18738
|
+
if (!this.element.id) {
|
|
18739
|
+
this.element.id = getUniqueID('e-' + this.getModuleName());
|
|
18740
|
+
}
|
|
18741
|
+
var localeText = { optional: 'Optional' };
|
|
18742
|
+
this.l10n = new L10n('stepper', localeText, this.locale);
|
|
18743
|
+
this.keyConfigs = {
|
|
18744
|
+
downarrow: 'downarrow',
|
|
18745
|
+
leftarrow: 'leftarrow',
|
|
18746
|
+
rightarrow: 'rightarrow',
|
|
18747
|
+
uparrow: 'uparrow',
|
|
18748
|
+
space: 'space',
|
|
18749
|
+
enter: 'enter',
|
|
18750
|
+
home: 'home',
|
|
18751
|
+
end: 'end',
|
|
18752
|
+
tab: 'tab',
|
|
18753
|
+
shiftTab: 'shift+tab',
|
|
18754
|
+
escape: 'escape'
|
|
18755
|
+
};
|
|
18756
|
+
this.tooltipOpen = false;
|
|
18757
|
+
};
|
|
18758
|
+
/**
|
|
18759
|
+
* To get component name.
|
|
18760
|
+
*
|
|
18761
|
+
* @returns {string} - Module Name
|
|
18762
|
+
* @private
|
|
18763
|
+
*/
|
|
18764
|
+
Stepper.prototype.getModuleName = function () {
|
|
18765
|
+
return 'stepper';
|
|
18766
|
+
};
|
|
18767
|
+
Stepper.prototype.render = function () {
|
|
18768
|
+
this.initialize();
|
|
18769
|
+
this.navigationHandler(this.activeStep, null, false);
|
|
18770
|
+
this.updateStepperStatus(true);
|
|
18771
|
+
};
|
|
18772
|
+
Stepper.prototype.initialize = function () {
|
|
18773
|
+
var _this = this;
|
|
18774
|
+
this.element.setAttribute('aria-label', this.element.id);
|
|
18775
|
+
this.updatePosition();
|
|
18776
|
+
this.stepperItemList = this.createElement('ol', { className: ITEMLIST });
|
|
18777
|
+
this.updateOrientaion(this.element);
|
|
18778
|
+
this.updateStepType();
|
|
18779
|
+
this.element.appendChild(this.stepperItemList);
|
|
18780
|
+
if (this.cssClass) {
|
|
18781
|
+
addClass([this.element], this.cssClass.trim().split(' '));
|
|
18782
|
+
}
|
|
18783
|
+
if (this.readOnly) {
|
|
18784
|
+
this.element.classList.add(READONLY);
|
|
18785
|
+
}
|
|
18786
|
+
if (this.enableRtl) {
|
|
18787
|
+
this.element.classList.add(RTL$3);
|
|
18788
|
+
}
|
|
18789
|
+
this.wireEvents();
|
|
18790
|
+
this.updateTemplateFunction();
|
|
18791
|
+
this.renderItems();
|
|
18792
|
+
if (this.steps.length > 0) {
|
|
18793
|
+
if (this.steps.length > 1) {
|
|
18794
|
+
if (this.isAngular && this.template) {
|
|
18795
|
+
setTimeout(function () {
|
|
18796
|
+
_this.renderProgressBar(_this.element);
|
|
18797
|
+
});
|
|
18798
|
+
}
|
|
18799
|
+
else {
|
|
18800
|
+
this.renderProgressBar(this.element);
|
|
18801
|
+
}
|
|
18802
|
+
}
|
|
18803
|
+
this.checkValidStep();
|
|
18804
|
+
this.updateAnimation();
|
|
18805
|
+
this.updateTooltip();
|
|
18806
|
+
this.wireKeyboardEvent();
|
|
18807
|
+
}
|
|
18808
|
+
};
|
|
18809
|
+
Stepper.prototype.updatePosition = function () {
|
|
18810
|
+
this.progressBarPosition = this.beforeLabelWidth = this.textEleWidth = 0;
|
|
18811
|
+
};
|
|
18812
|
+
Stepper.prototype.renderDefault = function (index) {
|
|
18813
|
+
return (!this.steps[parseInt((index).toString(), 10)].iconCss && !this.steps[parseInt((index).toString(), 10)].text &&
|
|
18814
|
+
!this.steps[parseInt((index).toString(), 10)].label) ? true : false;
|
|
18815
|
+
};
|
|
18816
|
+
Stepper.prototype.updateAnimation = function () {
|
|
18817
|
+
var progressEle = this.element.querySelector('.e-progressbar-value');
|
|
18818
|
+
if (this.animation.enable) {
|
|
18819
|
+
if (this.animation.duration >= 0) {
|
|
18820
|
+
if (progressEle) {
|
|
18821
|
+
progressEle.style.setProperty('--duration', ((this.animation.duration) + 'ms'));
|
|
18822
|
+
}
|
|
18823
|
+
}
|
|
18824
|
+
if (this.animation.delay >= 0) {
|
|
18825
|
+
if (progressEle) {
|
|
18826
|
+
progressEle.style.setProperty('--delay', ((this.animation.delay) + 'ms'));
|
|
18827
|
+
}
|
|
18828
|
+
}
|
|
18829
|
+
}
|
|
18830
|
+
else {
|
|
18831
|
+
if (progressEle) {
|
|
18832
|
+
progressEle.style.setProperty('--delay', (0 + 'ms'));
|
|
18833
|
+
progressEle.style.setProperty('--duration', (0 + 'ms'));
|
|
18834
|
+
}
|
|
18835
|
+
}
|
|
18836
|
+
};
|
|
18837
|
+
Stepper.prototype.updateStepType = function () {
|
|
18838
|
+
if (this.stepType.toLowerCase() === 'indicator' || 'label' || 'default') {
|
|
18839
|
+
this.stepType.toLowerCase() !== 'default' ? this.element.classList.add('e-step-type-' + this.stepType.toLowerCase()) : '';
|
|
18840
|
+
if (((this.stepType.toLowerCase() === 'indicator' || 'label') && (this.labelContainer))) {
|
|
18841
|
+
this.clearLabelPosition();
|
|
18842
|
+
}
|
|
18843
|
+
}
|
|
18844
|
+
};
|
|
18845
|
+
Stepper.prototype.wireEvents = function () {
|
|
18846
|
+
var _this = this;
|
|
18847
|
+
EventHandler.add(window, 'resize', function () {
|
|
18848
|
+
if (_this.stepperItemList && _this.progressbar && _this.element.classList.contains(HORIZSTEP)) {
|
|
18849
|
+
_this.setProgressPosition(_this.element, true);
|
|
18850
|
+
}
|
|
18851
|
+
}, this);
|
|
18852
|
+
EventHandler.add(window, 'click', function () { _this.updateStepFocus(); }, this);
|
|
18853
|
+
};
|
|
18854
|
+
Stepper.prototype.updateStepFocus = function () {
|
|
18855
|
+
if (this.isKeyNavFocus) {
|
|
18856
|
+
this.isKeyNavFocus = false;
|
|
18857
|
+
var isFocus = this.element.querySelector('.' + FOCUS$1);
|
|
18858
|
+
if (isFocus) {
|
|
18859
|
+
isFocus.classList.remove(FOCUS$1);
|
|
18860
|
+
this.element.classList.remove('e-steps-focus');
|
|
18861
|
+
}
|
|
18862
|
+
}
|
|
18863
|
+
};
|
|
18864
|
+
Stepper.prototype.updateStepperStatus = function (isInitial) {
|
|
18865
|
+
for (var index = 0; index < this.steps.length; index++) {
|
|
18866
|
+
var item = this.steps[parseInt(index.toString(), 10)];
|
|
18867
|
+
var status_1 = item.status.toLowerCase();
|
|
18868
|
+
if (isInitial && this.activeStep === 0 && index === 0) {
|
|
18869
|
+
item.status = StepStatus.InProgress;
|
|
18870
|
+
}
|
|
18871
|
+
if (item && status_1 !== 'notstarted' && index === this.activeStep) {
|
|
18872
|
+
for (var i = 0; i < this.steps.length; i++) {
|
|
18873
|
+
var itemElement = this.stepperItemElements[parseInt(i.toString(), 10)];
|
|
18874
|
+
itemElement.classList.remove(SELECTED$2, INPROGRESS, COMPLETED, NOTSTARTED);
|
|
18875
|
+
var prevOnChange = this.isProtectedOnChange;
|
|
18876
|
+
this.isProtectedOnChange = true;
|
|
18877
|
+
if (status_1 === 'completed') {
|
|
18878
|
+
this.updateStatusClass(i, index, itemElement);
|
|
18879
|
+
}
|
|
18880
|
+
else {
|
|
18881
|
+
this.updateStatusClass(i, index, itemElement, true);
|
|
18882
|
+
}
|
|
18883
|
+
this.isProtectedOnChange = prevOnChange;
|
|
18884
|
+
}
|
|
18885
|
+
}
|
|
18886
|
+
else if (item && status_1 !== 'notstarted' && index !== this.activeStep) {
|
|
18887
|
+
this.navigationHandler(this.activeStep, null, true);
|
|
18888
|
+
}
|
|
18889
|
+
}
|
|
18890
|
+
};
|
|
18891
|
+
Stepper.prototype.updateStatusClass = function (currentStep, index, ele, isInprogress) {
|
|
18892
|
+
var stepItem = this.steps[parseInt(currentStep.toString(), 10)];
|
|
18893
|
+
if (currentStep < index) {
|
|
18894
|
+
ele.classList.add(COMPLETED);
|
|
18895
|
+
stepItem.status = StepStatus.Completed;
|
|
18896
|
+
}
|
|
18897
|
+
else if (currentStep === index) {
|
|
18898
|
+
ele.classList.add(isInprogress ? INPROGRESS : COMPLETED, SELECTED$2);
|
|
18899
|
+
}
|
|
18900
|
+
else {
|
|
18901
|
+
ele.classList.add(NOTSTARTED);
|
|
18902
|
+
}
|
|
18903
|
+
};
|
|
18904
|
+
Stepper.prototype.renderItems = function () {
|
|
18905
|
+
var _this = this;
|
|
18906
|
+
for (var index = 0; index < this.steps.length; index++) {
|
|
18907
|
+
this.stepperItemContainer = this.createElement('li', { className: ITEMCONTAINER });
|
|
18908
|
+
this.stepperItemContainer.classList[(index === 0) ? 'add' : 'remove'](SELECTED$2, INPROGRESS);
|
|
18909
|
+
this.stepperItemContainer.classList[(index !== 0) ? 'add' : 'remove'](NOTSTARTED);
|
|
18910
|
+
if (this.element.classList.contains(HORIZSTEP)) {
|
|
18911
|
+
this.stepperItemContainer.style.setProperty('--max-width', 100 / this.steps.length + '%');
|
|
18912
|
+
}
|
|
18913
|
+
var stepSpan = this.createElement('span', { className: 'e-step' });
|
|
18914
|
+
if (this.renderDefault(index) && (isNullOrUndefined(this.template) || this.template === '')) {
|
|
18915
|
+
var isIndicator = (!this.element.classList.contains('e-step-type-default') && this.stepType.toLowerCase() === 'indicator') ? true : false;
|
|
18916
|
+
if (isIndicator) {
|
|
18917
|
+
stepSpan.classList.add('e-icons', INDICATORICON);
|
|
18918
|
+
}
|
|
18919
|
+
if (!isIndicator) {
|
|
18920
|
+
stepSpan.classList.add('e-step-content');
|
|
18921
|
+
stepSpan.innerHTML = (index + 1).toString();
|
|
18922
|
+
}
|
|
18923
|
+
this.stepperItemContainer.appendChild(stepSpan);
|
|
18924
|
+
}
|
|
18925
|
+
else if (isNullOrUndefined(this.template) || this.template === '') {
|
|
18926
|
+
var isRender = true;
|
|
18927
|
+
var item = this.steps[parseInt(index.toString(), 10)];
|
|
18928
|
+
if (item.iconCss && (((!item.text && !item.label) || !this.element.classList.contains(LABELINDICATOR)))) {
|
|
18929
|
+
var itemIcon = item.iconCss.trim().split(' ');
|
|
18930
|
+
stepSpan.classList.add(ICONCSS);
|
|
18931
|
+
for (var i = 0; i < itemIcon.length; i++) {
|
|
18932
|
+
stepSpan.classList.add(itemIcon[parseInt(i.toString(), 10)]);
|
|
18933
|
+
}
|
|
18934
|
+
this.stepperItemContainer.appendChild(stepSpan);
|
|
18935
|
+
this.stepperItemContainer.classList.add(STEPICON);
|
|
18936
|
+
if ((this.element.classList.contains(HORIZSTEP) && (this.labelPosition.toLowerCase() === 'start' || this.labelPosition.toLowerCase() === 'end') && item.label) ||
|
|
18937
|
+
(this.element.classList.contains(VERTICALSTEP) && (this.labelPosition.toLowerCase() === 'top' || this.labelPosition.toLowerCase() === 'bottom') && item.label)) {
|
|
18938
|
+
this.element.classList.add('e-label-' + this.labelPosition.toLowerCase());
|
|
18939
|
+
var textSpan = this.createElement('span', { className: TEXTCSS + ' ' + TEXT });
|
|
18940
|
+
textSpan.innerText = item.label;
|
|
18941
|
+
this.stepperItemContainer.appendChild(textSpan);
|
|
18942
|
+
this.stepperItemContainer.classList.add(STEPTEXT);
|
|
18943
|
+
isRender = false;
|
|
18944
|
+
}
|
|
18945
|
+
}
|
|
18946
|
+
if (item.text && (!item.iconCss || !this.element.classList.contains(STEPINDICATOR)) && isRender && !(item.iconCss && item.label)) {
|
|
18947
|
+
if (!item.iconCss && this.element.classList.contains(STEPINDICATOR)) {
|
|
18948
|
+
this.checkValidState(item, stepSpan);
|
|
18949
|
+
var prevOnChange = this.isProtectedOnChange;
|
|
18950
|
+
this.isProtectedOnChange = true;
|
|
18951
|
+
item.label = null;
|
|
18952
|
+
this.isProtectedOnChange = prevOnChange;
|
|
18953
|
+
}
|
|
18954
|
+
else {
|
|
18955
|
+
this.textContainer = this.createElement('span', { className: TEXTCSS });
|
|
18956
|
+
var textSpan = this.createElement('span', { className: TEXT });
|
|
18957
|
+
if (!item.label) {
|
|
18958
|
+
textSpan.innerText = item.text;
|
|
18959
|
+
(item.isValid !== null && (!item.iconCss || this.element.classList.contains(LABELINDICATOR))) ? this.textContainer.appendChild(textSpan) : textSpan.classList.add(TEXTCSS);
|
|
18960
|
+
this.stepperItemContainer.appendChild((item.isValid !== null && (!item.iconCss || this.element.classList.contains(LABELINDICATOR))) ? this.textContainer : textSpan);
|
|
18961
|
+
this.stepperItemContainer.classList.add(STEPTEXT);
|
|
18962
|
+
}
|
|
18963
|
+
if (!item.iconCss || this.element.classList.contains(LABELINDICATOR)) {
|
|
18964
|
+
this.stepperItemContainer.classList.add('e-step-text-only');
|
|
18965
|
+
if (!item.label && item.isValid !== null) {
|
|
18966
|
+
var iconSpan = this.createElement('span', { className: 'e-step-validation-icon e-icons' });
|
|
18967
|
+
this.textContainer.appendChild(iconSpan);
|
|
18968
|
+
}
|
|
18969
|
+
}
|
|
18970
|
+
if (item.label && this.element.classList.contains(LABELINDICATOR)) {
|
|
18971
|
+
textSpan.innerText = item.label;
|
|
18972
|
+
}
|
|
18973
|
+
var prevOnChange = this.isProtectedOnChange;
|
|
18974
|
+
this.isProtectedOnChange = true;
|
|
18975
|
+
item.text = item.label ? null : item.text;
|
|
18976
|
+
this.isProtectedOnChange = prevOnChange;
|
|
18977
|
+
}
|
|
18978
|
+
}
|
|
18979
|
+
if (item.cssClass) {
|
|
18980
|
+
addClass([this.stepperItemContainer], item.cssClass.trim().split(' '));
|
|
18981
|
+
}
|
|
18982
|
+
if (item.disabled) {
|
|
18983
|
+
this.stepperItemContainer.classList[item.disabled ? 'add' : 'remove'](DISABLED$2);
|
|
18984
|
+
attributes(this.stepperItemContainer, { 'tabindex': '-1', 'aria-disabled': 'true' });
|
|
18985
|
+
}
|
|
18986
|
+
if (item.label && (!item.iconCss || !this.element.classList.contains(STEPINDICATOR)) && isRender) {
|
|
18987
|
+
if (!item.iconCss && !item.text && this.element.classList.contains(STEPINDICATOR)) {
|
|
18988
|
+
this.checkValidState(item, stepSpan, true);
|
|
18989
|
+
}
|
|
18990
|
+
else if ((!((this.element.classList.contains(LABELINDICATOR)) && item.text)) || (this.element.classList.contains(LABELINDICATOR) && item.label)) {
|
|
18991
|
+
this.labelContainer = this.createElement('span', { className: STEPLABEL });
|
|
18992
|
+
var labelSpan = this.createElement('span', { className: LABEL });
|
|
18993
|
+
labelSpan.innerText = item.label;
|
|
18994
|
+
this.labelContainer.appendChild(labelSpan);
|
|
18995
|
+
this.stepperItemContainer.classList.add(STEPSLABEL);
|
|
18996
|
+
this.updateLabelPosition();
|
|
18997
|
+
if ((!item.iconCss && !item.text) || this.element.classList.contains(LABELINDICATOR)) {
|
|
18998
|
+
this.stepperItemContainer.classList.add('e-step-label-only');
|
|
18999
|
+
if (item.isValid !== null) {
|
|
19000
|
+
var iconSpan = this.createElement('span', { className: 'e-step-validation-icon e-icons' });
|
|
19001
|
+
this.labelContainer.appendChild(iconSpan);
|
|
19002
|
+
}
|
|
19003
|
+
}
|
|
19004
|
+
}
|
|
19005
|
+
}
|
|
19006
|
+
if (item.optional) {
|
|
19007
|
+
var optionalSpan = this.createElement('span', { className: OPTIONAL });
|
|
19008
|
+
this.l10n.setLocale(this.locale);
|
|
19009
|
+
var optionalContent = this.l10n.getConstant('optional');
|
|
19010
|
+
optionalSpan.innerText = optionalContent;
|
|
19011
|
+
if (item.label && (this.labelContainer && ((this.element.classList.contains(LABELAFTER) && !this.stepperItemContainer.classList.contains('e-step-label-only'))
|
|
19012
|
+
|| (this.element.classList.contains(HORIZSTEP) && this.element.classList.contains(LABELBEFORE) && !this.stepperItemContainer.classList.contains('e-step-label-only'))))
|
|
19013
|
+
|| (this.element.classList.contains(VERTICALSTEP) && this.element.classList.contains(LABELBEFORE))) {
|
|
19014
|
+
this.labelContainer.appendChild(optionalSpan);
|
|
19015
|
+
}
|
|
19016
|
+
else {
|
|
19017
|
+
this.stepperItemContainer.appendChild(optionalSpan);
|
|
19018
|
+
}
|
|
19019
|
+
}
|
|
19020
|
+
if (item.isValid !== null) {
|
|
19021
|
+
item.isValid ? this.stepperItemContainer.classList.add('e-step-valid') : this.stepperItemContainer.classList.add('e-step-error');
|
|
19022
|
+
}
|
|
19023
|
+
}
|
|
19024
|
+
this.renderItemContent(index, false);
|
|
19025
|
+
if (this.stepperItemContainer.classList.contains(INPROGRESS)) {
|
|
19026
|
+
attributes(this.stepperItemContainer, { 'tabindex': '0', 'aria-current': 'true' });
|
|
19027
|
+
}
|
|
19028
|
+
else {
|
|
19029
|
+
attributes(this.stepperItemContainer, { 'tabindex': '-1' });
|
|
19030
|
+
}
|
|
19031
|
+
this.wireItemsEvents(this.stepperItemContainer, index);
|
|
19032
|
+
this.stepperItemElements.push(this.stepperItemContainer);
|
|
19033
|
+
var eventArgs = { element: this.stepperItemContainer, index: index };
|
|
19034
|
+
this.trigger('beforeStepRender', eventArgs, function (args) {
|
|
19035
|
+
_this.stepperItemList.appendChild(args.element);
|
|
19036
|
+
});
|
|
19037
|
+
if (this.isAngular && this.template) {
|
|
19038
|
+
setTimeout(function () {
|
|
19039
|
+
_this.calculateProgressBarPosition();
|
|
19040
|
+
});
|
|
19041
|
+
}
|
|
19042
|
+
else {
|
|
19043
|
+
this.calculateProgressBarPosition();
|
|
19044
|
+
}
|
|
19045
|
+
}
|
|
19046
|
+
if (this.element.classList.contains(VERTICALSTEP)) {
|
|
19047
|
+
if (this.element.classList.contains(LABELBEFORE)) {
|
|
19048
|
+
var listItems = this.stepperItemList.querySelectorAll('.' + LABEL);
|
|
19049
|
+
for (var i = 0; i < listItems.length; i++) {
|
|
19050
|
+
var labelEle = listItems[parseInt((i).toString(), 10)];
|
|
19051
|
+
labelEle.style.setProperty('--label-width', (this.beforeLabelWidth) + 5 + 'px');
|
|
19052
|
+
}
|
|
19053
|
+
}
|
|
19054
|
+
}
|
|
19055
|
+
};
|
|
19056
|
+
Stepper.prototype.calculateProgressBarPosition = function () {
|
|
19057
|
+
var isBeforeLabel = (this.element.classList.contains(LABELBEFORE)) ? true : false;
|
|
19058
|
+
var isStepVertical = (this.element.classList.contains(VERTICALSTEP)) ? true : false;
|
|
19059
|
+
if (isStepVertical) {
|
|
19060
|
+
var iconOnly = (this.stepperItemContainer.classList.contains(STEPICON) && !this.stepperItemContainer.classList.contains(STEPTEXT) && !this.stepperItemContainer.classList.contains(STEPSLABEL)) ? true : false;
|
|
19061
|
+
var textEle = (this.stepperItemContainer.querySelector('.' + TEXTCSS));
|
|
19062
|
+
if (textEle) {
|
|
19063
|
+
this.textEleWidth = this.textEleWidth < textEle.offsetWidth ? textEle.offsetWidth : this.textEleWidth;
|
|
19064
|
+
}
|
|
19065
|
+
if (isBeforeLabel) {
|
|
19066
|
+
var itemWidth = void 0;
|
|
19067
|
+
var labelWidth = this.stepperItemContainer.querySelector('.' + LABEL).offsetWidth + 15;
|
|
19068
|
+
if (this.beforeLabelWidth < labelWidth) {
|
|
19069
|
+
this.beforeLabelWidth = labelWidth;
|
|
19070
|
+
}
|
|
19071
|
+
if (this.element.querySelector('ol').lastChild.querySelector('.' + ICONCSS)) {
|
|
19072
|
+
itemWidth = (this.beforeLabelWidth + (this.stepperItemContainer.querySelector('.' + ICONCSS).offsetWidth / 2));
|
|
19073
|
+
}
|
|
19074
|
+
else if (this.stepperItemContainer.querySelector('.' + TEXTCSS)) {
|
|
19075
|
+
itemWidth = (this.beforeLabelWidth + (this.stepperItemContainer.querySelector('.' + TEXTCSS).offsetWidth / 2));
|
|
19076
|
+
}
|
|
19077
|
+
if (this.progressBarPosition < itemWidth) {
|
|
19078
|
+
this.progressBarPosition = itemWidth;
|
|
19079
|
+
}
|
|
19080
|
+
}
|
|
19081
|
+
else if (this.progressBarPosition < (iconOnly ? this.stepperItemContainer.offsetWidth : this.element.querySelector('ol').lastChild.firstChild.offsetWidth)) {
|
|
19082
|
+
this.progressBarPosition = iconOnly ? this.stepperItemContainer.offsetWidth : this.element.querySelector('ol').lastChild.firstChild.offsetWidth;
|
|
19083
|
+
}
|
|
19084
|
+
}
|
|
19085
|
+
};
|
|
19086
|
+
Stepper.prototype.checkValidState = function (item, stepSpan, isLabel) {
|
|
19087
|
+
if (item.isValid == null) {
|
|
19088
|
+
stepSpan.classList.add('e-step-content');
|
|
19089
|
+
if (isLabel) {
|
|
19090
|
+
stepSpan.innerHTML = item.label;
|
|
19091
|
+
}
|
|
19092
|
+
else {
|
|
19093
|
+
stepSpan.innerHTML = item.label ? item.label : item.text;
|
|
19094
|
+
}
|
|
19095
|
+
this.stepperItemContainer.appendChild(stepSpan);
|
|
19096
|
+
}
|
|
19097
|
+
else {
|
|
19098
|
+
stepSpan.classList.add(ICONCSS);
|
|
19099
|
+
this.stepperItemContainer.appendChild(stepSpan);
|
|
19100
|
+
this.stepperItemContainer.classList.add(STEPICON);
|
|
19101
|
+
}
|
|
19102
|
+
};
|
|
19103
|
+
Stepper.prototype.updateCurrentLabel = function () {
|
|
19104
|
+
var currentLabelPos;
|
|
19105
|
+
if (this.element.classList.contains(HORIZSTEP)) {
|
|
19106
|
+
currentLabelPos = this.labelPosition.toLowerCase() === 'top' ? 'before' : this.labelPosition.toLowerCase() === 'bottom' ? 'after' : this.labelPosition.toLowerCase();
|
|
19107
|
+
}
|
|
19108
|
+
else {
|
|
19109
|
+
currentLabelPos = this.labelPosition.toLowerCase() === 'start' ? 'before' : this.labelPosition.toLowerCase() === 'end' ? 'after' : this.labelPosition.toLowerCase();
|
|
19110
|
+
}
|
|
19111
|
+
return currentLabelPos;
|
|
19112
|
+
};
|
|
19113
|
+
Stepper.prototype.updateLabelPosition = function () {
|
|
19114
|
+
this.clearLabelPosition();
|
|
19115
|
+
this.labelContainer.classList.add('e-label-' + this.updateCurrentLabel());
|
|
19116
|
+
if (this.labelPosition.toLowerCase() === 'start' && this.orientation.toLowerCase() === 'vertical') {
|
|
19117
|
+
this.stepperItemContainer.firstChild ? this.stepperItemContainer.firstChild.before(this.labelContainer) : this.stepperItemContainer.appendChild(this.labelContainer);
|
|
19118
|
+
}
|
|
19119
|
+
else {
|
|
19120
|
+
this.stepperItemContainer.appendChild(this.labelContainer);
|
|
19121
|
+
}
|
|
19122
|
+
this.element.classList.add('e-label-' + this.updateCurrentLabel());
|
|
19123
|
+
};
|
|
19124
|
+
Stepper.prototype.clearLabelPosition = function () {
|
|
19125
|
+
var removeCss = this.labelContainer.classList.value.match(/(e-label-[after|before]+)/g);
|
|
19126
|
+
if (removeCss) {
|
|
19127
|
+
removeClass([this.labelContainer], removeCss);
|
|
19128
|
+
removeClass([this.element], removeCss);
|
|
19129
|
+
}
|
|
19130
|
+
};
|
|
19131
|
+
Stepper.prototype.checkValidStep = function () {
|
|
19132
|
+
for (var index = 0; index < this.steps.length; index++) {
|
|
19133
|
+
var item = this.steps[parseInt(index.toString(), 10)];
|
|
19134
|
+
var itemElement = this.stepperItemElements[parseInt(index.toString(), 10)];
|
|
19135
|
+
if (item.isValid !== null) {
|
|
19136
|
+
var indicatorEle = void 0;
|
|
19137
|
+
var iconEle = void 0;
|
|
19138
|
+
if (this.element.classList.contains(STEPINDICATOR) && !item.iconCss) {
|
|
19139
|
+
indicatorEle = itemElement.querySelector('.' + ICONCSS);
|
|
19140
|
+
}
|
|
19141
|
+
else {
|
|
19142
|
+
iconEle = itemElement.querySelector('.' + ICONCSS);
|
|
19143
|
+
}
|
|
19144
|
+
var textLabelIcon = itemElement.querySelector('.e-step-validation-icon');
|
|
19145
|
+
var itemIcon = item.iconCss.trim().split(' ');
|
|
19146
|
+
var validStep = itemElement.classList.contains('e-step-valid');
|
|
19147
|
+
if (indicatorEle) {
|
|
19148
|
+
indicatorEle.classList.add('e-icons', validStep ? 'e-check' : 'e-circle-info');
|
|
19149
|
+
}
|
|
19150
|
+
if (iconEle) {
|
|
19151
|
+
for (var i = 0; i < itemIcon.length; i++) {
|
|
19152
|
+
iconEle.classList.remove(itemIcon[parseInt(i.toString(), 10)]);
|
|
19153
|
+
}
|
|
19154
|
+
iconEle.classList.add('e-icons', validStep ? 'e-check' : 'e-circle-info');
|
|
19155
|
+
}
|
|
19156
|
+
if (textLabelIcon) {
|
|
19157
|
+
textLabelIcon.classList.add(validStep ? 'e-circle-check' : 'e-circle-info');
|
|
19158
|
+
if (this.element.classList.contains(VERTICALSTEP)) {
|
|
19159
|
+
var labelEle = itemElement.querySelector('.' + LABEL);
|
|
19160
|
+
var textEle = itemElement.querySelector('.' + TEXT);
|
|
19161
|
+
var itemWidth = textEle ? textEle.offsetWidth + textEle.getBoundingClientRect().left :
|
|
19162
|
+
labelEle.offsetWidth + labelEle.getBoundingClientRect().left;
|
|
19163
|
+
var validationIcon = itemElement.querySelector('.e-step-validation-icon');
|
|
19164
|
+
validationIcon.style.setProperty('--icon-position', (itemWidth + 20) + 'px');
|
|
19165
|
+
}
|
|
19166
|
+
}
|
|
19167
|
+
}
|
|
19168
|
+
}
|
|
19169
|
+
};
|
|
19170
|
+
Stepper.prototype.updateTooltip = function () {
|
|
19171
|
+
if (this.showTooltip) {
|
|
19172
|
+
this.tooltipObj = new Tooltip({
|
|
19173
|
+
target: '.e-step-container', windowCollision: true,
|
|
19174
|
+
opensOn: 'Custom', cssClass: this.cssClass ? (STEPPERTOOLTIP + ' ' + this.cssClass) : STEPPERTOOLTIP,
|
|
19175
|
+
position: 'TopCenter'
|
|
19176
|
+
});
|
|
19177
|
+
this.tooltipObj.appendTo(this.stepperItemList);
|
|
19178
|
+
}
|
|
19179
|
+
else {
|
|
19180
|
+
if (!isNullOrUndefined(this.tooltipObj)) {
|
|
19181
|
+
this.tooltipObj.destroy();
|
|
19182
|
+
this.tooltipObj = null;
|
|
19183
|
+
}
|
|
19184
|
+
}
|
|
19185
|
+
};
|
|
19186
|
+
Stepper.prototype.wireItemsEvents = function (itemElement, index) {
|
|
19187
|
+
var _this = this;
|
|
19188
|
+
EventHandler.add(itemElement, 'click', function (e) {
|
|
19189
|
+
if (_this.linear) {
|
|
19190
|
+
var linearModeValue = index - _this.activeStep;
|
|
19191
|
+
if (Math.abs(linearModeValue) === 1) {
|
|
19192
|
+
_this.stepClickHandler(index, e, itemElement);
|
|
19193
|
+
}
|
|
19194
|
+
}
|
|
19195
|
+
else {
|
|
19196
|
+
_this.stepClickHandler(index, e, itemElement);
|
|
19197
|
+
}
|
|
19198
|
+
}, this);
|
|
19199
|
+
EventHandler.add(itemElement, 'mouseover', function () { return _this.openStepperTooltip(index); }, this);
|
|
19200
|
+
EventHandler.add(itemElement, 'mouseleave', function () { return _this.closeStepperTooltip(); }, this);
|
|
19201
|
+
};
|
|
19202
|
+
Stepper.prototype.openStepperTooltip = function (index) {
|
|
19203
|
+
var currentStep = this.steps[parseInt(index.toString(), 10)];
|
|
19204
|
+
if (this.showTooltip && (currentStep.label || currentStep.text)) {
|
|
19205
|
+
if (!this.tooltipOpen) {
|
|
19206
|
+
this.updateTooltipContent(index);
|
|
19207
|
+
this.tooltipObj.open(this.stepperItemElements[parseInt((index).toString(), 10)]);
|
|
19208
|
+
if (this.stepType.toLocaleLowerCase() !== 'label' && ((this.stepType.toLocaleLowerCase() === 'indicator') ||
|
|
19209
|
+
(currentStep.label !== '' && currentStep.iconCss !== ''))) {
|
|
19210
|
+
var tooltipPopupClass = currentStep.status.toLowerCase() === 'inprogress' ?
|
|
19211
|
+
STEPPERTOOLTIP + " " + STEPPERIPROGRESSTIP + " " + (this.cssClass ? this.cssClass : '') : STEPPERTOOLTIP + " " + (this.cssClass ? this.cssClass : '');
|
|
19212
|
+
this.tooltipObj.setProperties({ cssClass: tooltipPopupClass.trim() });
|
|
19213
|
+
}
|
|
19214
|
+
this.tooltipOpen = true;
|
|
19215
|
+
}
|
|
19216
|
+
}
|
|
19217
|
+
};
|
|
19218
|
+
Stepper.prototype.closeStepperTooltip = function () {
|
|
19219
|
+
if (this.tooltipOpen) {
|
|
19220
|
+
this.tooltipObj.close();
|
|
19221
|
+
this.tooltipOpen = false;
|
|
19222
|
+
}
|
|
19223
|
+
};
|
|
19224
|
+
Stepper.prototype.updateTooltipContent = function (index) {
|
|
19225
|
+
if (this.showTooltip) {
|
|
19226
|
+
if (this.isReact) {
|
|
19227
|
+
this.clearTemplate(['stepperTooltipTemplate']);
|
|
19228
|
+
}
|
|
19229
|
+
var content = void 0;
|
|
19230
|
+
var currentStep = this.steps[parseInt(index.toString(), 10)];
|
|
19231
|
+
if (this.tooltipTemplate) {
|
|
19232
|
+
content = this.createElement('span', { className: 'e-stepper-tooltip-content' });
|
|
19233
|
+
var templateFunction = this.getTemplateFunction(this.tooltipTemplate);
|
|
19234
|
+
append(templateFunction({ value: currentStep }, this, 'stepperTooltipTemplate', (this.element.id + 'tooltipTemplate'), this.isStringTemplate), content);
|
|
19235
|
+
this.tooltipObj.setProperties({ content: content }, true);
|
|
19236
|
+
}
|
|
19237
|
+
else {
|
|
19238
|
+
var content_1 = currentStep.label ? currentStep.label : currentStep.text;
|
|
19239
|
+
this.tooltipObj.setProperties({ content: initializeCSPTemplate(function () { return content_1; }) }, true);
|
|
19240
|
+
}
|
|
19241
|
+
this.renderReactTemplates();
|
|
19242
|
+
}
|
|
19243
|
+
};
|
|
19244
|
+
Stepper.prototype.stepClickHandler = function (index, e, itemElement) {
|
|
19245
|
+
var clickEventArgs = {
|
|
19246
|
+
element: itemElement, event: e, previousStep: this.activeStep,
|
|
19247
|
+
activeStep: index
|
|
19248
|
+
};
|
|
19249
|
+
this.trigger('stepClick', clickEventArgs);
|
|
19250
|
+
this.navigateToStep(index, e, itemElement, true);
|
|
19251
|
+
};
|
|
19252
|
+
Stepper.prototype.updateTemplateFunction = function () {
|
|
19253
|
+
this.templateFunction = this.template ? this.getTemplateFunction(this.template) : null;
|
|
19254
|
+
};
|
|
19255
|
+
Stepper.prototype.renderItemContent = function (index, isrerender) {
|
|
19256
|
+
var listItems = this.stepperItemList.querySelectorAll('li');
|
|
19257
|
+
if (isrerender) {
|
|
19258
|
+
this.removeItemContent(listItems[parseInt((index).toString(), 10)]);
|
|
19259
|
+
}
|
|
19260
|
+
if (this.template) {
|
|
19261
|
+
isrerender ? listItems[parseInt((index).toString(), 10)].classList.add(TEMPLATE) :
|
|
19262
|
+
this.stepperItemContainer.classList.add(TEMPLATE);
|
|
19263
|
+
var item = this.steps[parseInt(index.toString(), 10)];
|
|
19264
|
+
append(this.templateFunction({ step: item, currentStep: index }, this, 'stepperTemplate', (this.element.id + '_stepperTemplate'), this.isStringTemplate), isrerender ? listItems[parseInt((index).toString(), 10)] : this.stepperItemContainer);
|
|
19265
|
+
}
|
|
19266
|
+
this.renderReactTemplates();
|
|
19267
|
+
};
|
|
19268
|
+
Stepper.prototype.removeItemContent = function (ele) {
|
|
19269
|
+
ele.classList.remove(TEMPLATE);
|
|
19270
|
+
var firstChild = ele.firstElementChild;
|
|
19271
|
+
for (var i = 0; i < ele.childElementCount; i++) {
|
|
19272
|
+
firstChild.remove();
|
|
19273
|
+
}
|
|
19274
|
+
};
|
|
19275
|
+
Stepper.prototype.updateContent = function () {
|
|
19276
|
+
if (this.isReact) {
|
|
19277
|
+
this.clearTemplate(['stepperTemplate']);
|
|
19278
|
+
}
|
|
19279
|
+
for (var i = 0; i < this.steps.length; i++) {
|
|
19280
|
+
this.renderItemContent(i, true);
|
|
19281
|
+
}
|
|
19282
|
+
};
|
|
19283
|
+
/**
|
|
19284
|
+
* Gets template content based on the template property value.
|
|
19285
|
+
*
|
|
19286
|
+
* @param {string | Function} template - Template property value.
|
|
19287
|
+
* @returns {Function} - Return template function.
|
|
19288
|
+
* @hidden
|
|
19289
|
+
*/
|
|
19290
|
+
Stepper.prototype.getTemplateFunction = function (template) {
|
|
19291
|
+
if (typeof template === 'string') {
|
|
19292
|
+
var content = '';
|
|
19293
|
+
try {
|
|
19294
|
+
var tempEle = select(template);
|
|
19295
|
+
if (tempEle) {
|
|
19296
|
+
//Return innerHTML incase of jsrenderer script else outerHTML
|
|
19297
|
+
content = tempEle.tagName === 'SCRIPT' ? tempEle.innerHTML : tempEle.outerHTML;
|
|
19298
|
+
}
|
|
19299
|
+
else {
|
|
19300
|
+
content = template;
|
|
19301
|
+
}
|
|
19302
|
+
}
|
|
19303
|
+
catch (e) {
|
|
19304
|
+
content = template;
|
|
19305
|
+
}
|
|
19306
|
+
return compile(content);
|
|
19307
|
+
}
|
|
19308
|
+
else {
|
|
19309
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
19310
|
+
return compile(template);
|
|
19311
|
+
}
|
|
19312
|
+
};
|
|
19313
|
+
Stepper.prototype.navigateToStep = function (index, e, itemElement, isInteracted, isUpdated) {
|
|
19314
|
+
var _this = this;
|
|
19315
|
+
var eventArgs = {
|
|
19316
|
+
element: itemElement, event: e, isInteracted: isInteracted,
|
|
19317
|
+
previousStep: this.activeStep, activeStep: index, cancel: false
|
|
19318
|
+
};
|
|
19319
|
+
if (isUpdated != false) {
|
|
19320
|
+
var previousStep_1 = this.activeStep;
|
|
19321
|
+
this.trigger('stepChanging', eventArgs, function (args) {
|
|
19322
|
+
if (args.cancel) {
|
|
19323
|
+
return;
|
|
19324
|
+
}
|
|
19325
|
+
_this.navigationHandler(index);
|
|
19326
|
+
var eventArgs = {
|
|
19327
|
+
element: itemElement, event: e, isInteracted: isInteracted,
|
|
19328
|
+
previousStep: previousStep_1, activeStep: _this.activeStep
|
|
19329
|
+
};
|
|
19330
|
+
_this.trigger('stepChanged', eventArgs);
|
|
19331
|
+
});
|
|
19332
|
+
}
|
|
19333
|
+
else {
|
|
19334
|
+
this.navigationHandler(index);
|
|
19335
|
+
}
|
|
19336
|
+
};
|
|
19337
|
+
Stepper.prototype.navigationHandler = function (index, stepStatus, isUpdated) {
|
|
19338
|
+
index = (index >= this.steps.length - 1) ? this.steps.length - 1 : index;
|
|
19339
|
+
var Itemslength = this.stepperItemElements.length;
|
|
19340
|
+
if (index >= 0 && index < Itemslength - 1) {
|
|
19341
|
+
index = this.stepperItemElements[parseInt(index.toString(), 10)].classList.contains(DISABLED$2) ? this.activeStep : index;
|
|
19342
|
+
}
|
|
19343
|
+
var prevOnChange = this.isProtectedOnChange;
|
|
19344
|
+
this.isProtectedOnChange = true;
|
|
19345
|
+
this.activeStep = index;
|
|
19346
|
+
this.isProtectedOnChange = prevOnChange;
|
|
19347
|
+
for (var i = 0; i < this.steps.length; i++) {
|
|
19348
|
+
var itemElement = this.stepperItemElements[parseInt(i.toString(), 10)];
|
|
19349
|
+
var item = this.steps[parseInt(i.toString(), 10)];
|
|
19350
|
+
itemElement.classList.remove(SELECTED$2, INPROGRESS, COMPLETED, NOTSTARTED);
|
|
19351
|
+
if (i === this.activeStep) {
|
|
19352
|
+
itemElement.classList.add(SELECTED$2);
|
|
19353
|
+
}
|
|
19354
|
+
if (this.activeStep >= 0 && this.progressbar) {
|
|
19355
|
+
if (this.element.classList.contains(HORIZSTEP)) {
|
|
19356
|
+
if ((this.element.classList.contains(LABELBEFORE) || this.element.classList.contains(LABELAFTER)) && !this.element.classList.contains(STEPINDICATOR) &&
|
|
19357
|
+
this.stepperItemElements[parseInt(this.activeStep.toString(), 10)].classList.contains(STEPICON)) {
|
|
19358
|
+
var progressPos = this.element.querySelector('.e-stepper-progressbar');
|
|
19359
|
+
var selectedEle = this.stepperItemElements[parseInt(this.activeStep.toString(), 10)].firstChild;
|
|
19360
|
+
var value = this.activeStep === 0 ? 0 : (selectedEle.offsetLeft - progressPos.offsetLeft + (selectedEle.offsetWidth / 2)) / progressPos.offsetWidth * 100;
|
|
19361
|
+
if (this.element.classList.contains(RTL$3)) {
|
|
19362
|
+
var elementPos = this.stepperItemElements[0].firstChild;
|
|
19363
|
+
value = ((progressPos.offsetWidth - selectedEle.offsetLeft) + Math.abs((elementPos.offsetLeft + elementPos.offsetWidth) - this.stepperItemList.offsetWidth)) / progressPos.offsetWidth * 100;
|
|
19364
|
+
this.progressbar.style.setProperty(PROGRESSVALUE$1, (value) + '%');
|
|
19365
|
+
}
|
|
19366
|
+
else {
|
|
19367
|
+
this.progressbar.style.setProperty(PROGRESSVALUE$1, (value) + '%');
|
|
19368
|
+
}
|
|
19369
|
+
}
|
|
19370
|
+
else {
|
|
19371
|
+
var totalLiWidth = 0;
|
|
19372
|
+
var activeLiWidth = 0;
|
|
19373
|
+
for (var j = 0; j < this.stepperItemElements.length; j++) {
|
|
19374
|
+
totalLiWidth = totalLiWidth + this.stepperItemElements[parseInt(j.toString(), 10)].offsetWidth;
|
|
19375
|
+
if (j <= this.activeStep) {
|
|
19376
|
+
if (j < this.activeStep) {
|
|
19377
|
+
activeLiWidth = activeLiWidth + this.stepperItemElements[parseInt(j.toString(), 10)].offsetWidth;
|
|
19378
|
+
}
|
|
19379
|
+
else if (j == this.activeStep && j !== 0) {
|
|
19380
|
+
activeLiWidth = activeLiWidth + (this.stepperItemElements[parseInt(j.toString(), 10)].offsetWidth / 2);
|
|
19381
|
+
}
|
|
19382
|
+
}
|
|
19383
|
+
}
|
|
19384
|
+
var spaceWidth = (this.stepperItemList.offsetWidth - totalLiWidth) / (this.stepperItemElements.length - 1);
|
|
19385
|
+
var progressValue = ((activeLiWidth + (spaceWidth * this.activeStep)) / this.stepperItemList.offsetWidth) * 100;
|
|
19386
|
+
this.progressbar.style.setProperty(PROGRESSVALUE$1, (progressValue) + '%');
|
|
19387
|
+
}
|
|
19388
|
+
}
|
|
19389
|
+
else {
|
|
19390
|
+
this.progressbar.style.setProperty(PROGRESSVALUE$1, ((100 / (this.steps.length - 1)) * index) + '%');
|
|
19391
|
+
}
|
|
19392
|
+
}
|
|
19393
|
+
else if (this.activeStep < 0 && this.progressbar) {
|
|
19394
|
+
this.progressbar.style.setProperty(PROGRESSVALUE$1, 0 + '%');
|
|
19395
|
+
}
|
|
19396
|
+
if (i === this.activeStep) {
|
|
19397
|
+
itemElement.classList.add(INPROGRESS);
|
|
19398
|
+
}
|
|
19399
|
+
else if (this.activeStep > 0 && i < this.activeStep) {
|
|
19400
|
+
itemElement.classList.add(COMPLETED);
|
|
19401
|
+
}
|
|
19402
|
+
else {
|
|
19403
|
+
itemElement.classList.add(NOTSTARTED);
|
|
19404
|
+
}
|
|
19405
|
+
if (itemElement.classList.contains(INPROGRESS)) {
|
|
19406
|
+
attributes(itemElement, { 'tabindex': '0', 'aria-current': 'true' });
|
|
19407
|
+
}
|
|
19408
|
+
else {
|
|
19409
|
+
attributes(itemElement, { 'tabindex': '-1', 'aria-current': 'false' });
|
|
19410
|
+
}
|
|
19411
|
+
var prevOnChange_1 = this.isProtectedOnChange;
|
|
19412
|
+
this.isProtectedOnChange = true;
|
|
19413
|
+
if (isUpdated !== false) {
|
|
19414
|
+
if (i < this.activeStep || (this.steps.length - 1 === this.activeStep && item.status.toLowerCase() === "completed")) {
|
|
19415
|
+
item.status = StepStatus.Completed;
|
|
19416
|
+
}
|
|
19417
|
+
else if (i === this.activeStep) {
|
|
19418
|
+
item.status = StepStatus.InProgress;
|
|
19419
|
+
}
|
|
19420
|
+
else if (i > this.activeStep) {
|
|
19421
|
+
item.status = StepStatus.NotStarted;
|
|
19422
|
+
}
|
|
19423
|
+
if (stepStatus && this.activeStep === i) {
|
|
19424
|
+
item.status = stepStatus;
|
|
19425
|
+
}
|
|
19426
|
+
if (item.status.toLowerCase() === "completed") {
|
|
19427
|
+
itemElement.classList.remove(SELECTED$2, INPROGRESS, NOTSTARTED);
|
|
19428
|
+
itemElement.classList.add(COMPLETED);
|
|
19429
|
+
}
|
|
19430
|
+
if (item.status.toLowerCase() === "notstarted") {
|
|
19431
|
+
itemElement.classList.remove(SELECTED$2, INPROGRESS, COMPLETED);
|
|
19432
|
+
itemElement.classList.add(NOTSTARTED);
|
|
19433
|
+
}
|
|
19434
|
+
}
|
|
19435
|
+
this.isProtectedOnChange = prevOnChange_1;
|
|
19436
|
+
if (this.renderDefault(i) && this.element.classList.contains(STEPINDICATOR)) {
|
|
19437
|
+
if (itemElement.classList.contains(COMPLETED)) {
|
|
19438
|
+
itemElement.firstChild.classList.remove('e-icons', 'e-step-indicator');
|
|
19439
|
+
itemElement.firstChild.classList.add(ICONCSS, 'e-icons', 'e-check');
|
|
19440
|
+
}
|
|
19441
|
+
else if (itemElement.classList.contains(INPROGRESS) || itemElement.classList.contains(NOTSTARTED)) {
|
|
19442
|
+
itemElement.firstChild.classList.remove(ICONCSS, 'e-icons', 'e-check');
|
|
19443
|
+
itemElement.firstChild.classList.add('e-icons', 'e-step-indicator');
|
|
19444
|
+
}
|
|
19445
|
+
}
|
|
19446
|
+
}
|
|
19447
|
+
};
|
|
19448
|
+
Stepper.prototype.removeItemElements = function () {
|
|
19449
|
+
for (var i = 0; i < this.stepperItemElements.length; i++) {
|
|
19450
|
+
remove(this.stepperItemElements[parseInt(i.toString(), 10)]);
|
|
19451
|
+
}
|
|
19452
|
+
this.stepperItemElements = [];
|
|
19453
|
+
};
|
|
19454
|
+
Stepper.prototype.nextStep = function () {
|
|
19455
|
+
if (this.activeStep !== this.steps.length - 1) {
|
|
19456
|
+
this.navigateToStep(this.activeStep + 1, null, null, false);
|
|
19457
|
+
}
|
|
19458
|
+
};
|
|
19459
|
+
Stepper.prototype.previousStep = function () {
|
|
19460
|
+
if (this.activeStep > 0) {
|
|
19461
|
+
this.navigateToStep(this.activeStep - 1, null, null, false);
|
|
19462
|
+
}
|
|
19463
|
+
};
|
|
19464
|
+
Stepper.prototype.reset = function () {
|
|
19465
|
+
if (this.activeStep !== 0) {
|
|
19466
|
+
var isDisabled = this.stepperItemElements[0].classList.contains(DISABLED$2) ? true : false;
|
|
19467
|
+
this.navigateToStep(isDisabled ? -1 : 0, null, null, false);
|
|
19468
|
+
}
|
|
19469
|
+
};
|
|
19470
|
+
Stepper.prototype.updateElementClassArray = function () {
|
|
19471
|
+
var classArray = [RTL$3, READONLY, 'e-steps-focus', LABELAFTER, LABELBEFORE, 'e-label-top',
|
|
19472
|
+
'e-label-bottom', 'e-label-start', 'e-label-end', STEPINDICATOR, LABELINDICATOR, VERTICALSTEP, HORIZSTEP];
|
|
19473
|
+
removeClass([this.element], classArray);
|
|
19474
|
+
};
|
|
19475
|
+
Stepper.prototype.destroy = function () {
|
|
19476
|
+
var _this = this;
|
|
19477
|
+
_super.prototype.destroy.call(this);
|
|
19478
|
+
EventHandler.remove(window, 'resize', function () { if (_this.stepperItemList && _this.progressbar) {
|
|
19479
|
+
_this.setProgressPosition(_this.element, true);
|
|
19480
|
+
} });
|
|
19481
|
+
EventHandler.remove(window, 'click', function () { _this.updateStepFocus(); });
|
|
19482
|
+
// unwires the events and detach the li elements
|
|
19483
|
+
this.removeItemElements();
|
|
19484
|
+
this.clearTemplate();
|
|
19485
|
+
if (this.stepperItemList) {
|
|
19486
|
+
remove(this.stepperItemList);
|
|
19487
|
+
}
|
|
19488
|
+
this.stepperItemList = null;
|
|
19489
|
+
if (this.progressStep) {
|
|
19490
|
+
remove(this.progressStep);
|
|
19491
|
+
}
|
|
19492
|
+
this.progressStep = null;
|
|
19493
|
+
this.progressbar = null;
|
|
19494
|
+
this.progressBarPosition = null;
|
|
19495
|
+
this.stepperItemContainer = null;
|
|
19496
|
+
this.textContainer = null;
|
|
19497
|
+
this.labelContainer = null;
|
|
19498
|
+
this.updateElementClassArray();
|
|
19499
|
+
this.element.removeAttribute('aria-label');
|
|
19500
|
+
if (this.showTooltip) {
|
|
19501
|
+
this.tooltipObj.destroy();
|
|
19502
|
+
this.tooltipObj = null;
|
|
19503
|
+
}
|
|
19504
|
+
if (this.keyboardModuleStepper) {
|
|
19505
|
+
this.keyboardModuleStepper.destroy();
|
|
19506
|
+
}
|
|
19507
|
+
this.keyboardModuleStepper = null;
|
|
19508
|
+
};
|
|
19509
|
+
Stepper.prototype.wireKeyboardEvent = function () {
|
|
19510
|
+
this.keyboardModuleStepper = new KeyboardEvents(this.element, {
|
|
19511
|
+
keyAction: this.keyActionHandler.bind(this),
|
|
19512
|
+
keyConfigs: this.keyConfigs,
|
|
19513
|
+
eventName: 'keydown'
|
|
19514
|
+
});
|
|
19515
|
+
};
|
|
19516
|
+
Stepper.prototype.keyActionHandler = function (e) {
|
|
19517
|
+
if (this.readOnly) {
|
|
19518
|
+
return;
|
|
19519
|
+
}
|
|
19520
|
+
switch (e.action) {
|
|
19521
|
+
case 'uparrow':
|
|
19522
|
+
case 'downarrow':
|
|
19523
|
+
case 'leftarrow':
|
|
19524
|
+
case 'rightarrow':
|
|
19525
|
+
case 'tab':
|
|
19526
|
+
case 'shiftTab':
|
|
19527
|
+
this.handleNavigation(this.enableRtl && this.element.classList.contains(HORIZSTEP) ? (e.action === 'leftarrow' || e.action === 'shiftTab' || e.action === 'uparrow') : (e.action === 'rightarrow' || e.action === 'tab' || e.action === 'downarrow'), e);
|
|
19528
|
+
break;
|
|
19529
|
+
case 'space':
|
|
19530
|
+
case 'enter':
|
|
19531
|
+
case 'escape':
|
|
19532
|
+
this.handleNavigation(null, e);
|
|
19533
|
+
break;
|
|
19534
|
+
case 'home':
|
|
19535
|
+
case 'end':
|
|
19536
|
+
this.handleNavigation(null, e, this.enableRtl);
|
|
19537
|
+
break;
|
|
19538
|
+
}
|
|
19539
|
+
};
|
|
19540
|
+
Stepper.prototype.handleNavigation = function (isNextStep, e, isRTL) {
|
|
19541
|
+
this.isKeyNavFocus = true;
|
|
19542
|
+
this.element.classList.add('e-steps-focus');
|
|
19543
|
+
var focusedEle = this.element.querySelector('.' + FOCUS$1);
|
|
19544
|
+
if (!focusedEle) {
|
|
19545
|
+
focusedEle = this.element.querySelector('.' + SELECTED$2);
|
|
19546
|
+
}
|
|
19547
|
+
var stepItems = Array.prototype.slice.call(this.stepperItemList.children);
|
|
19548
|
+
var index = stepItems.indexOf(focusedEle);
|
|
19549
|
+
if (e.action === 'tab' || e.action === 'shiftTab' || e.action === 'downarrow' || e.action === 'uparrow' || e.action === 'space' || e.action === 'home' || e.action === 'end') {
|
|
19550
|
+
if ((e.action === 'tab' && index === stepItems.length - 1) || (e.action === 'shiftTab' && index === 0)) {
|
|
19551
|
+
if (focusedEle.classList.contains(FOCUS$1)) {
|
|
19552
|
+
this.updateStepFocus();
|
|
19553
|
+
return;
|
|
19554
|
+
}
|
|
19555
|
+
}
|
|
19556
|
+
else {
|
|
19557
|
+
e.preventDefault();
|
|
19558
|
+
}
|
|
19559
|
+
}
|
|
19560
|
+
if (e.action === 'escape') {
|
|
19561
|
+
stepItems[parseInt(index.toString(), 10)].classList.remove(FOCUS$1);
|
|
19562
|
+
this.element.classList.remove('e-steps-focus');
|
|
19563
|
+
}
|
|
19564
|
+
if (!(e.action === 'space' || e.action === 'enter')) {
|
|
19565
|
+
var prevIndex = index;
|
|
19566
|
+
index = isNextStep ? index + 1 : index - 1;
|
|
19567
|
+
while ((index >= 0 && index < stepItems.length) && stepItems[parseInt(index.toString(), 10)].classList.contains(DISABLED$2)) {
|
|
19568
|
+
index = isNextStep ? index + 1 : index - 1;
|
|
19569
|
+
}
|
|
19570
|
+
index = (index < 0) ? 0 : (index > stepItems.length - 1) ? stepItems.length - 1 : index;
|
|
19571
|
+
if (stepItems[parseInt(prevIndex.toString(), 10)].classList.contains(FOCUS$1)) {
|
|
19572
|
+
stepItems[parseInt(prevIndex.toString(), 10)].classList.remove(FOCUS$1);
|
|
19573
|
+
}
|
|
19574
|
+
if ((e.action === 'home' || e.action === 'end')) {
|
|
19575
|
+
if (e.action === 'home') {
|
|
19576
|
+
isRTL ? index = stepItems.length - 1 : index = 0;
|
|
19577
|
+
}
|
|
19578
|
+
else {
|
|
19579
|
+
isRTL ? index = 0 : index = stepItems.length - 1;
|
|
19580
|
+
}
|
|
19581
|
+
}
|
|
19582
|
+
if (index >= 0 && index < stepItems.length) {
|
|
19583
|
+
stepItems[parseInt(index.toString(), 10)].classList.add(FOCUS$1);
|
|
19584
|
+
}
|
|
19585
|
+
}
|
|
19586
|
+
else if ((e.action === 'space' || e.action === 'enter')) {
|
|
19587
|
+
var isupdateFocus = false;
|
|
19588
|
+
if (this.linear) {
|
|
19589
|
+
var linearModeValue = this.activeStep - index;
|
|
19590
|
+
if (Math.abs(linearModeValue) === 1) {
|
|
19591
|
+
this.navigateToStep(index, null, null, true);
|
|
19592
|
+
isupdateFocus = true;
|
|
19593
|
+
}
|
|
19594
|
+
}
|
|
19595
|
+
else {
|
|
19596
|
+
this.navigateToStep(index, null, null, true);
|
|
19597
|
+
isupdateFocus = true;
|
|
19598
|
+
}
|
|
19599
|
+
if (isupdateFocus) {
|
|
19600
|
+
this.updateStepFocus();
|
|
19601
|
+
this.stepperItemElements[index].focus();
|
|
19602
|
+
}
|
|
19603
|
+
}
|
|
19604
|
+
};
|
|
19605
|
+
Stepper.prototype.renderStepperItems = function (isUpdate, isStepType) {
|
|
19606
|
+
this.updateElementClassArray();
|
|
19607
|
+
this.removeItemElements();
|
|
19608
|
+
this.element.querySelector('.e-stepper-progressbar').remove();
|
|
19609
|
+
isUpdate ? this.updatePosition() : null;
|
|
19610
|
+
isStepType ? this.updateStepType() : null;
|
|
19611
|
+
this.readOnly ? (!this.element.classList.contains(READONLY)) ? this.element.classList.add(READONLY) : null : null;
|
|
19612
|
+
this.enableRtl ? (!this.element.classList.contains(RTL$3)) ? this.element.classList.add(RTL$3) : null : null;
|
|
19613
|
+
this.updateOrientaion(this.element);
|
|
19614
|
+
this.renderItems();
|
|
19615
|
+
this.renderProgressBar(this.element);
|
|
19616
|
+
this.checkValidStep();
|
|
19617
|
+
this.updateAnimation();
|
|
19618
|
+
this.navigateToStep(this.activeStep, null, this.stepperItemElements[this.activeStep], true);
|
|
19619
|
+
};
|
|
19620
|
+
/**
|
|
19621
|
+
* Called internally if any of the property value changed.
|
|
19622
|
+
*
|
|
19623
|
+
* @param {StepperModel} newProp - Specifies new properties
|
|
19624
|
+
* @param {StepperModel} oldProp - Specifies old properties
|
|
19625
|
+
* @returns {void}
|
|
19626
|
+
* @private
|
|
19627
|
+
*/
|
|
19628
|
+
Stepper.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
19629
|
+
for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
|
|
19630
|
+
var prop = _a[_i];
|
|
19631
|
+
switch (prop) {
|
|
19632
|
+
case 'steps': {
|
|
19633
|
+
if (!(newProp.steps instanceof Array && oldProp.steps instanceof Array)) {
|
|
19634
|
+
var stepCounts = Object.keys(newProp.steps);
|
|
19635
|
+
for (var i = 0; i < stepCounts.length; i++) {
|
|
19636
|
+
var index = parseInt(Object.keys(newProp.steps)[i], 10);
|
|
19637
|
+
var changedPropsCount = Object.keys(newProp.steps[index]).length;
|
|
19638
|
+
for (var j = 0; j < changedPropsCount; j++) {
|
|
19639
|
+
var property = Object.keys(newProp.steps[index])[j];
|
|
19640
|
+
if (property === 'status') {
|
|
19641
|
+
if (this.activeStep === index) {
|
|
19642
|
+
this.navigationHandler(index, newProp.steps[index].status);
|
|
19643
|
+
}
|
|
19644
|
+
else {
|
|
19645
|
+
this.steps[index].status = oldProp.steps[index].status;
|
|
19646
|
+
}
|
|
19647
|
+
}
|
|
19648
|
+
else {
|
|
19649
|
+
this.removeItemElements();
|
|
19650
|
+
this.renderItems();
|
|
19651
|
+
this.updateStepperStatus();
|
|
19652
|
+
}
|
|
19653
|
+
this.checkValidStep();
|
|
19654
|
+
}
|
|
19655
|
+
}
|
|
19656
|
+
}
|
|
19657
|
+
else {
|
|
19658
|
+
this.renderStepperItems(true, true);
|
|
19659
|
+
}
|
|
19660
|
+
break;
|
|
19661
|
+
}
|
|
19662
|
+
case 'orientation':
|
|
19663
|
+
this.updateOrientaion(this.element);
|
|
19664
|
+
this.renderStepperItems(true);
|
|
19665
|
+
break;
|
|
19666
|
+
case 'activeStep':
|
|
19667
|
+
this.activeStep = (newProp.activeStep > this.steps.length - 1 || newProp.activeStep < -1) ? oldProp.activeStep : this.activeStep;
|
|
19668
|
+
if (this.activeStep >= 0 && this.stepperItemElements[parseInt(this.activeStep.toString(), 10)].classList.contains(DISABLED$2)) {
|
|
19669
|
+
this.activeStep = oldProp.activeStep;
|
|
19670
|
+
}
|
|
19671
|
+
if (this.linear) {
|
|
19672
|
+
var linearModeValue = oldProp.activeStep - this.activeStep;
|
|
19673
|
+
if (Math.abs(linearModeValue) === 1) {
|
|
19674
|
+
this.navigateToStep(this.activeStep, null, null, true);
|
|
19675
|
+
}
|
|
19676
|
+
}
|
|
19677
|
+
else {
|
|
19678
|
+
this.navigateToStep(this.activeStep, null, this.stepperItemElements[this.activeStep], true);
|
|
19679
|
+
}
|
|
19680
|
+
break;
|
|
19681
|
+
case 'enableRtl':
|
|
19682
|
+
this.element.classList[this.enableRtl ? 'add' : 'remove'](RTL$3);
|
|
19683
|
+
break;
|
|
19684
|
+
case 'readOnly':
|
|
19685
|
+
this.element.classList[this.readOnly ? 'add' : 'remove'](READONLY);
|
|
19686
|
+
break;
|
|
19687
|
+
case 'cssClass':
|
|
19688
|
+
if (oldProp.cssClass) {
|
|
19689
|
+
removeClass([this.element], oldProp.cssClass.trim().split(' '));
|
|
19690
|
+
}
|
|
19691
|
+
if (newProp.cssClass) {
|
|
19692
|
+
addClass([this.element], newProp.cssClass.trim().split(' '));
|
|
19693
|
+
}
|
|
19694
|
+
if (this.tooltipObj) {
|
|
19695
|
+
this.tooltipObj.setProperties({ cssClass: this.cssClass ? (STEPPERTOOLTIP + ' ' + this.cssClass) : STEPPERTOOLTIP });
|
|
19696
|
+
}
|
|
19697
|
+
break;
|
|
19698
|
+
case 'labelPosition':
|
|
19699
|
+
this.renderStepperItems(true);
|
|
19700
|
+
break;
|
|
19701
|
+
case 'showTooltip':
|
|
19702
|
+
this.updateTooltip();
|
|
19703
|
+
break;
|
|
19704
|
+
case 'stepType':
|
|
19705
|
+
this.renderStepperItems(true, true);
|
|
19706
|
+
break;
|
|
19707
|
+
case 'template':
|
|
19708
|
+
this.updateTemplateFunction();
|
|
19709
|
+
this.updateContent();
|
|
19710
|
+
break;
|
|
19711
|
+
case 'animation':
|
|
19712
|
+
this.updateAnimation();
|
|
19713
|
+
break;
|
|
19714
|
+
}
|
|
19715
|
+
}
|
|
19716
|
+
};
|
|
19717
|
+
__decorate$14([
|
|
19718
|
+
Property(0)
|
|
19719
|
+
], Stepper.prototype, "activeStep", void 0);
|
|
19720
|
+
__decorate$14([
|
|
19721
|
+
Complex({}, StepperAnimationSettings)
|
|
19722
|
+
], Stepper.prototype, "animation", void 0);
|
|
19723
|
+
__decorate$14([
|
|
19724
|
+
Property(false)
|
|
19725
|
+
], Stepper.prototype, "linear", void 0);
|
|
19726
|
+
__decorate$14([
|
|
19727
|
+
Property(false)
|
|
19728
|
+
], Stepper.prototype, "showTooltip", void 0);
|
|
19729
|
+
__decorate$14([
|
|
19730
|
+
Property('')
|
|
19731
|
+
], Stepper.prototype, "template", void 0);
|
|
19732
|
+
__decorate$14([
|
|
19733
|
+
Property('')
|
|
19734
|
+
], Stepper.prototype, "tooltipTemplate", void 0);
|
|
19735
|
+
__decorate$14([
|
|
19736
|
+
Property(StepLabelPosition.Bottom)
|
|
19737
|
+
], Stepper.prototype, "labelPosition", void 0);
|
|
19738
|
+
__decorate$14([
|
|
19739
|
+
Property(StepType.Default)
|
|
19740
|
+
], Stepper.prototype, "stepType", void 0);
|
|
19741
|
+
__decorate$14([
|
|
19742
|
+
Event()
|
|
19743
|
+
], Stepper.prototype, "stepChanged", void 0);
|
|
19744
|
+
__decorate$14([
|
|
19745
|
+
Event()
|
|
19746
|
+
], Stepper.prototype, "stepChanging", void 0);
|
|
19747
|
+
__decorate$14([
|
|
19748
|
+
Event()
|
|
19749
|
+
], Stepper.prototype, "stepClick", void 0);
|
|
19750
|
+
__decorate$14([
|
|
19751
|
+
Event()
|
|
19752
|
+
], Stepper.prototype, "beforeStepRender", void 0);
|
|
19753
|
+
Stepper = __decorate$14([
|
|
19754
|
+
NotifyPropertyChanges
|
|
19755
|
+
], Stepper);
|
|
19756
|
+
return Stepper;
|
|
19757
|
+
}(StepperBase));
|
|
19758
|
+
|
|
19759
|
+
/** Stepper export modules */
|
|
19760
|
+
|
|
18291
19761
|
/**
|
|
18292
19762
|
* Navigation all modules
|
|
18293
19763
|
*/
|
|
18294
19764
|
|
|
18295
|
-
export { MenuAnimationSettings, MenuItem, FieldSettings, HScroll, VScroll, addScrolling, destroyScroll, Item, Toolbar, AccordionActionSettings, AccordionAnimationSettings, AccordionItem, Accordion, ContextMenu, Menu, TabActionSettings, TabAnimationSettings, Header, TabItem, Tab, FieldsSettings, ActionSettings, NodeAnimationSettings, TreeView, Sidebar, BreadcrumbOverflowMode, BreadcrumbItem, Breadcrumb, CarouselSwipeMode, CarouselItem, Carousel, AppBar };
|
|
19765
|
+
export { MenuAnimationSettings, MenuItem, FieldSettings, HScroll, VScroll, addScrolling, destroyScroll, Item, Toolbar, AccordionActionSettings, AccordionAnimationSettings, AccordionItem, Accordion, ContextMenu, Menu, TabActionSettings, TabAnimationSettings, Header, TabItem, Tab, FieldsSettings, ActionSettings, NodeAnimationSettings, TreeView, Sidebar, BreadcrumbOverflowMode, BreadcrumbItem, Breadcrumb, CarouselSwipeMode, CarouselItem, Carousel, AppBar, StepStatus, Step, StepperOrientation, StepperBase, StepperAnimationSettings, StepLabelPosition, StepType, Stepper };
|
|
18296
19766
|
//# sourceMappingURL=ej2-navigations.es5.js.map
|