@syncfusion/ej2-navigations 28.1.41 → 28.2.3-1479479
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +243 -260
- package/README.md +301 -301
- package/blazorGlobalSrc/accordion/accordion-model.d.ts +285 -0
- package/blazorGlobalSrc/accordion/accordion.d.ts +458 -0
- package/blazorGlobalSrc/accordion/accordion.js +1411 -0
- package/blazorGlobalSrc/accordion/index.d.ts +5 -0
- package/blazorGlobalSrc/accordion/index.js +4 -0
- package/blazorGlobalSrc/appbar/appbar-model.d.ts +76 -0
- package/blazorGlobalSrc/appbar/appbar.d.ts +115 -0
- package/blazorGlobalSrc/appbar/appbar.js +221 -0
- package/blazorGlobalSrc/appbar/index.d.ts +3 -0
- package/blazorGlobalSrc/appbar/index.js +2 -0
- package/blazorGlobalSrc/breadcrumb/breadcrumb-model.d.ts +170 -0
- package/blazorGlobalSrc/breadcrumb/breadcrumb.d.ts +297 -0
- package/blazorGlobalSrc/breadcrumb/breadcrumb.js +833 -0
- package/blazorGlobalSrc/breadcrumb/index.d.ts +5 -0
- package/blazorGlobalSrc/breadcrumb/index.js +4 -0
- package/blazorGlobalSrc/carousel/carousel-model.d.ts +282 -0
- package/blazorGlobalSrc/carousel/carousel.d.ts +439 -0
- package/blazorGlobalSrc/carousel/carousel.js +1353 -0
- package/blazorGlobalSrc/carousel/index.d.ts +3 -0
- package/blazorGlobalSrc/carousel/index.js +2 -0
- package/blazorGlobalSrc/common/h-scroll-model.d.ts +16 -0
- package/blazorGlobalSrc/common/h-scroll.d.ts +105 -0
- package/blazorGlobalSrc/common/h-scroll.js +499 -0
- package/blazorGlobalSrc/common/index.d.ts +9 -0
- package/blazorGlobalSrc/common/index.js +8 -0
- package/blazorGlobalSrc/common/menu-base-model.d.ts +308 -0
- package/blazorGlobalSrc/common/menu-base.d.ts +553 -0
- package/blazorGlobalSrc/common/menu-base.js +2502 -0
- package/blazorGlobalSrc/common/menu-scroll.d.ts +29 -0
- package/blazorGlobalSrc/common/menu-scroll.js +103 -0
- package/blazorGlobalSrc/common/v-scroll-model.d.ts +16 -0
- package/blazorGlobalSrc/common/v-scroll.d.ts +106 -0
- package/blazorGlobalSrc/common/v-scroll.js +471 -0
- package/blazorGlobalSrc/context-menu/context-menu-model.d.ts +47 -0
- package/blazorGlobalSrc/context-menu/context-menu.d.ts +101 -0
- package/blazorGlobalSrc/context-menu/context-menu.js +143 -0
- package/blazorGlobalSrc/context-menu/index.d.ts +5 -0
- package/blazorGlobalSrc/context-menu/index.js +4 -0
- package/blazorGlobalSrc/global.js +1 -0
- package/blazorGlobalSrc/index.d.ts +16 -0
- package/blazorGlobalSrc/index.js +16 -0
- package/blazorGlobalSrc/menu/index.d.ts +5 -0
- package/blazorGlobalSrc/menu/index.js +4 -0
- package/blazorGlobalSrc/menu/menu-model.d.ts +70 -0
- package/blazorGlobalSrc/menu/menu.d.ts +127 -0
- package/blazorGlobalSrc/menu/menu.js +288 -0
- package/blazorGlobalSrc/sidebar/index.d.ts +5 -0
- package/blazorGlobalSrc/sidebar/index.js +4 -0
- package/blazorGlobalSrc/sidebar/sidebar-model.d.ts +200 -0
- package/blazorGlobalSrc/sidebar/sidebar.d.ts +335 -0
- package/blazorGlobalSrc/sidebar/sidebar.js +729 -0
- package/blazorGlobalSrc/stepper/index.d.ts +3 -0
- package/blazorGlobalSrc/stepper/index.js +2 -0
- package/blazorGlobalSrc/stepper/stepper-model.d.ts +159 -0
- package/blazorGlobalSrc/stepper/stepper.d.ts +381 -0
- package/blazorGlobalSrc/stepper/stepper.js +1305 -0
- package/blazorGlobalSrc/stepper-base/index.d.ts +5 -0
- package/blazorGlobalSrc/stepper-base/index.js +4 -0
- package/blazorGlobalSrc/stepper-base/stepper-base-model.d.ts +121 -0
- package/blazorGlobalSrc/stepper-base/stepper-base.d.ts +184 -0
- package/blazorGlobalSrc/stepper-base/stepper-base.js +230 -0
- package/blazorGlobalSrc/tab/index.d.ts +5 -0
- package/blazorGlobalSrc/tab/index.js +4 -0
- package/blazorGlobalSrc/tab/tab-model.d.ts +408 -0
- package/blazorGlobalSrc/tab/tab.d.ts +715 -0
- package/blazorGlobalSrc/tab/tab.js +2564 -0
- package/blazorGlobalSrc/toolbar/index.d.ts +5 -0
- package/blazorGlobalSrc/toolbar/index.js +4 -0
- package/blazorGlobalSrc/toolbar/toolbar-model.d.ts +287 -0
- package/blazorGlobalSrc/toolbar/toolbar.d.ts +522 -0
- package/blazorGlobalSrc/toolbar/toolbar.js +2408 -0
- package/blazorGlobalSrc/treeview/index.d.ts +5 -0
- package/blazorGlobalSrc/treeview/index.js +4 -0
- package/blazorGlobalSrc/treeview/treeview-model.d.ts +630 -0
- package/blazorGlobalSrc/treeview/treeview.d.ts +1509 -0
- package/blazorGlobalSrc/treeview/treeview.js +5766 -0
- package/dist/ej2-navigations.min.js +1 -10
- package/dist/ej2-navigations.umd.min.js +1 -10
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +107 -96
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +301 -290
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +1 -10
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/dist/ts/undefined +285 -0
- package/license +10 -10
- package/package.json +166 -166
- package/src/accordion/accordion-model.d.ts +199 -199
- package/src/accordion/accordion.js +19 -19
- package/src/appbar/appbar-model.d.ts +51 -51
- package/src/appbar/appbar.js +19 -19
- package/src/breadcrumb/breadcrumb-model.d.ts +114 -114
- package/src/breadcrumb/breadcrumb.js +19 -19
- package/src/carousel/carousel-model.d.ts +204 -204
- package/src/carousel/carousel.js +19 -19
- package/src/common/h-scroll-model.d.ts +6 -6
- package/src/common/h-scroll.js +19 -19
- package/src/common/menu-base-model.d.ts +234 -234
- package/src/common/menu-base.js +26 -19
- package/src/common/v-scroll-model.d.ts +6 -6
- package/src/common/v-scroll.js +19 -19
- package/src/context-menu/context-menu-model.d.ts +29 -29
- package/src/context-menu/context-menu.js +19 -19
- package/src/menu/menu-model.d.ts +45 -45
- package/src/menu/menu.js +19 -19
- package/src/sidebar/sidebar-model.d.ts +189 -189
- package/src/sidebar/sidebar.js +19 -19
- package/src/stepper/stepper.js +19 -19
- package/src/stepper-base/stepper-base.js +19 -19
- package/src/tab/tab-model.d.ts +305 -305
- package/src/tab/tab.js +19 -19
- package/src/toolbar/toolbar-model.d.ts +209 -209
- package/src/toolbar/toolbar.js +19 -19
- package/src/treeview/treeview-model.d.ts +520 -520
- package/src/treeview/treeview.d.ts +2 -1
- package/src/treeview/treeview.js +28 -24
- package/styles/accordion/_all.scss +2 -2
- package/styles/accordion/_bds-definition.scss +167 -167
- package/styles/accordion/_bigger.scss +121 -121
- package/styles/accordion/_bootstrap-dark-definition.scss +169 -167
- package/styles/accordion/_bootstrap-definition.scss +167 -167
- package/styles/accordion/_bootstrap4-definition.scss +177 -175
- package/styles/accordion/_bootstrap5-definition.scss +168 -168
- package/styles/accordion/_bootstrap5.3-definition.scss +168 -168
- package/styles/accordion/_fabric-dark-definition.scss +171 -171
- package/styles/accordion/_fabric-definition.scss +171 -171
- package/styles/accordion/_fluent-definition.scss +168 -168
- package/styles/accordion/_fluent2-definition.scss +167 -167
- package/styles/accordion/_fusionnew-definition.scss +168 -168
- package/styles/accordion/_highcontrast-definition.scss +193 -193
- package/styles/accordion/_highcontrast-light-definition.scss +193 -193
- package/styles/accordion/_layout.scss +236 -236
- package/styles/accordion/_material-dark-definition.scss +171 -171
- package/styles/accordion/_material-definition.scss +165 -165
- package/styles/accordion/_material3-definition.scss +168 -168
- package/styles/accordion/_tailwind-definition.scss +167 -167
- package/styles/accordion/_tailwind3-definition.scss +168 -168
- package/styles/accordion/_theme.scss +418 -418
- package/styles/accordion/bootstrap-dark.css +12 -12
- package/styles/accordion/bootstrap4.css +4 -4
- package/styles/accordion/bootstrap5-dark.css +37 -37
- package/styles/accordion/bootstrap5.css +16 -16
- package/styles/accordion/fabric.css +11 -11
- package/styles/accordion/icons/_bds.scss +15 -15
- package/styles/accordion/icons/_bootstrap-dark.scss +15 -15
- package/styles/accordion/icons/_bootstrap.scss +15 -15
- package/styles/accordion/icons/_bootstrap4.scss +15 -15
- package/styles/accordion/icons/_bootstrap5.3.scss +15 -15
- package/styles/accordion/icons/_bootstrap5.scss +15 -15
- package/styles/accordion/icons/_fabric-dark.scss +15 -15
- package/styles/accordion/icons/_fabric.scss +15 -15
- package/styles/accordion/icons/_fluent.scss +15 -15
- package/styles/accordion/icons/_fluent2.scss +15 -15
- package/styles/accordion/icons/_fusionnew.scss +15 -15
- package/styles/accordion/icons/_highcontrast-light.scss +15 -15
- package/styles/accordion/icons/_highcontrast.scss +15 -15
- package/styles/accordion/icons/_material-dark.scss +15 -15
- package/styles/accordion/icons/_material.scss +15 -15
- package/styles/accordion/icons/_material3.scss +15 -15
- package/styles/accordion/icons/_tailwind.scss +15 -15
- package/styles/accordion/icons/_tailwind3.scss +15 -15
- package/styles/accordion/material3-dark.scss +1 -1
- package/styles/accordion/material3.scss +1 -1
- package/styles/accordion/tailwind-dark.css +2 -2
- package/styles/appbar/_all.scss +2 -2
- package/styles/appbar/_bds-definition.scss +24 -24
- package/styles/appbar/_bigger.scss +15 -15
- package/styles/appbar/_bootstrap-dark-definition.scss +6 -6
- package/styles/appbar/_bootstrap-definition.scss +6 -6
- package/styles/appbar/_bootstrap4-definition.scss +6 -6
- package/styles/appbar/_bootstrap5-definition.scss +6 -6
- package/styles/appbar/_bootstrap5.3-definition.scss +6 -6
- package/styles/appbar/_fabric-dark-definition.scss +6 -6
- package/styles/appbar/_fabric-definition.scss +6 -6
- package/styles/appbar/_fluent-definition.scss +6 -6
- package/styles/appbar/_fluent2-definition.scss +23 -23
- package/styles/appbar/_fusionnew-definition.scss +6 -6
- package/styles/appbar/_highcontrast-definition.scss +6 -6
- package/styles/appbar/_highcontrast-light-definition.scss +6 -6
- package/styles/appbar/_layout.scss +76 -76
- package/styles/appbar/_material-dark-definition.scss +6 -6
- package/styles/appbar/_material-definition.scss +6 -6
- package/styles/appbar/_material3-definition.scss +6 -6
- package/styles/appbar/_tailwind-definition.scss +6 -6
- package/styles/appbar/_tailwind3-definition.scss +6 -6
- package/styles/appbar/_theme.scss +216 -216
- package/styles/appbar/material3-dark.scss +1 -1
- package/styles/appbar/material3.scss +1 -1
- package/styles/bds-lite.css +70 -5
- package/styles/bds.css +72 -7
- package/styles/bootstrap-dark-lite.css +120 -55
- package/styles/bootstrap-dark.css +124 -59
- package/styles/bootstrap-lite.css +72 -7
- package/styles/bootstrap.css +76 -11
- package/styles/bootstrap4-lite.css +153 -88
- package/styles/bootstrap4.css +156 -91
- package/styles/bootstrap5-dark-lite.css +288 -229
- package/styles/bootstrap5-dark.css +291 -232
- package/styles/bootstrap5-lite.css +150 -91
- package/styles/bootstrap5.3-lite.css +88 -27
- package/styles/bootstrap5.3.css +96 -29
- package/styles/bootstrap5.css +153 -94
- package/styles/breadcrumb/_all.scss +2 -2
- package/styles/breadcrumb/_bds-definition.scss +60 -60
- package/styles/breadcrumb/_bigger.scss +168 -166
- package/styles/breadcrumb/_bootstrap-dark-definition.scss +54 -54
- package/styles/breadcrumb/_bootstrap-definition.scss +54 -54
- package/styles/breadcrumb/_bootstrap4-definition.scss +56 -54
- package/styles/breadcrumb/_bootstrap5-definition.scss +65 -63
- package/styles/breadcrumb/_bootstrap5.3-definition.scss +61 -61
- package/styles/breadcrumb/_fabric-dark-definition.scss +59 -59
- package/styles/breadcrumb/_fabric-definition.scss +59 -59
- package/styles/breadcrumb/_fluent-definition.scss +63 -63
- package/styles/breadcrumb/_fluent2-definition.scss +61 -61
- package/styles/breadcrumb/_fusionnew-definition.scss +65 -59
- package/styles/breadcrumb/_highcontrast-definition.scss +61 -61
- package/styles/breadcrumb/_highcontrast-light-definition.scss +61 -61
- package/styles/breadcrumb/_layout.scss +465 -449
- package/styles/breadcrumb/_material-dark-definition.scss +50 -50
- package/styles/breadcrumb/_material-definition.scss +50 -50
- package/styles/breadcrumb/_material3-definition.scss +60 -60
- package/styles/breadcrumb/_tailwind-definition.scss +60 -60
- package/styles/breadcrumb/_tailwind3-definition.scss +61 -61
- package/styles/breadcrumb/_theme.scss +296 -296
- package/styles/breadcrumb/bds.css +15 -0
- package/styles/breadcrumb/bootstrap-dark.css +17 -2
- package/styles/breadcrumb/bootstrap.css +15 -0
- package/styles/breadcrumb/bootstrap4.css +19 -4
- package/styles/breadcrumb/bootstrap5-dark.css +27 -12
- package/styles/breadcrumb/bootstrap5.3.css +15 -0
- package/styles/breadcrumb/bootstrap5.css +18 -3
- package/styles/breadcrumb/fabric-dark.css +18 -3
- package/styles/breadcrumb/fabric.css +15 -0
- package/styles/breadcrumb/fluent-dark.css +15 -0
- package/styles/breadcrumb/fluent.css +15 -0
- package/styles/breadcrumb/fluent2.css +15 -0
- package/styles/breadcrumb/highcontrast-light.css +15 -0
- package/styles/breadcrumb/highcontrast.css +15 -0
- package/styles/breadcrumb/icons/_bds.scss +23 -23
- package/styles/breadcrumb/icons/_bootstrap-dark.scss +12 -12
- package/styles/breadcrumb/icons/_bootstrap.scss +12 -12
- package/styles/breadcrumb/icons/_bootstrap4.scss +12 -12
- package/styles/breadcrumb/icons/_bootstrap5.3.scss +23 -23
- package/styles/breadcrumb/icons/_bootstrap5.scss +23 -23
- package/styles/breadcrumb/icons/_fabric-dark.scss +12 -12
- package/styles/breadcrumb/icons/_fabric.scss +12 -12
- package/styles/breadcrumb/icons/_fluent.scss +23 -23
- package/styles/breadcrumb/icons/_fluent2.scss +23 -23
- package/styles/breadcrumb/icons/_fusionnew.scss +23 -23
- package/styles/breadcrumb/icons/_highcontrast-light.scss +12 -12
- package/styles/breadcrumb/icons/_highcontrast.scss +12 -12
- package/styles/breadcrumb/icons/_material-dark.scss +23 -23
- package/styles/breadcrumb/icons/_material.scss +23 -23
- package/styles/breadcrumb/icons/_material3.scss +12 -12
- package/styles/breadcrumb/icons/_tailwind-dark.scss +23 -23
- package/styles/breadcrumb/icons/_tailwind.scss +23 -23
- package/styles/breadcrumb/icons/_tailwind3.scss +23 -23
- package/styles/breadcrumb/material-dark.css +15 -0
- package/styles/breadcrumb/material.css +15 -0
- package/styles/breadcrumb/material3-dark.css +15 -0
- package/styles/breadcrumb/material3-dark.scss +1 -1
- package/styles/breadcrumb/material3.css +15 -0
- package/styles/breadcrumb/material3.scss +1 -1
- package/styles/breadcrumb/tailwind-dark.css +15 -0
- package/styles/breadcrumb/tailwind.css +15 -0
- package/styles/breadcrumb/tailwind3.css +15 -0
- package/styles/carousel/_all.scss +2 -2
- package/styles/carousel/_bds-definition.scss +20 -20
- package/styles/carousel/_bootstrap-dark-definition.scss +20 -20
- package/styles/carousel/_bootstrap-definition.scss +20 -20
- package/styles/carousel/_bootstrap4-definition.scss +20 -20
- package/styles/carousel/_bootstrap5-definition.scss +20 -20
- package/styles/carousel/_bootstrap5.3-definition.scss +20 -20
- package/styles/carousel/_fabric-dark-definition.scss +20 -20
- package/styles/carousel/_fabric-definition.scss +20 -20
- package/styles/carousel/_fluent-definition.scss +20 -20
- package/styles/carousel/_fluent2-definition.scss +23 -23
- package/styles/carousel/_fusionnew-definition.scss +20 -20
- package/styles/carousel/_highcontrast-definition.scss +20 -20
- package/styles/carousel/_highcontrast-light-definition.scss +20 -20
- package/styles/carousel/_layout.scss +257 -257
- package/styles/carousel/_material-dark-definition.scss +20 -20
- package/styles/carousel/_material-definition.scss +20 -20
- package/styles/carousel/_material3-definition.scss +21 -21
- package/styles/carousel/_tailwind-definition.scss +20 -20
- package/styles/carousel/_tailwind3-definition.scss +24 -24
- package/styles/carousel/_theme.scss +108 -108
- package/styles/carousel/icons/_bds.scss +30 -30
- package/styles/carousel/icons/_bootstrap-dark.scss +30 -30
- package/styles/carousel/icons/_bootstrap.scss +30 -30
- package/styles/carousel/icons/_bootstrap4.scss +30 -30
- package/styles/carousel/icons/_bootstrap5.3.scss +30 -30
- package/styles/carousel/icons/_bootstrap5.scss +30 -30
- package/styles/carousel/icons/_fabric-dark.scss +30 -30
- package/styles/carousel/icons/_fabric.scss +30 -30
- package/styles/carousel/icons/_fluent.scss +30 -30
- package/styles/carousel/icons/_fluent2.scss +30 -30
- package/styles/carousel/icons/_fusionnew.scss +30 -30
- package/styles/carousel/icons/_highcontrast-light.scss +30 -30
- package/styles/carousel/icons/_highcontrast.scss +30 -30
- package/styles/carousel/icons/_material-dark.scss +30 -30
- package/styles/carousel/icons/_material.scss +30 -30
- package/styles/carousel/icons/_material3.scss +30 -30
- package/styles/carousel/icons/_tailwind.scss +30 -30
- package/styles/carousel/icons/_tailwind3.scss +30 -30
- package/styles/carousel/material3-dark.scss +1 -1
- package/styles/carousel/material3.scss +1 -1
- package/styles/context-menu/_all.scss +2 -2
- package/styles/context-menu/_bds-definition.scss +67 -67
- package/styles/context-menu/_bigger.scss +111 -111
- package/styles/context-menu/_bootstrap-dark-definition.scss +50 -50
- package/styles/context-menu/_bootstrap-definition.scss +50 -50
- package/styles/context-menu/_bootstrap4-definition.scss +52 -50
- package/styles/context-menu/_bootstrap5-definition.scss +52 -52
- package/styles/context-menu/_bootstrap5.3-definition.scss +52 -52
- package/styles/context-menu/_fabric-dark-definition.scss +50 -50
- package/styles/context-menu/_fabric-definition.scss +50 -50
- package/styles/context-menu/_fluent-definition.scss +51 -51
- package/styles/context-menu/_fluent2-definition.scss +52 -52
- package/styles/context-menu/_fusionnew-definition.scss +52 -51
- package/styles/context-menu/_highcontrast-definition.scss +50 -50
- package/styles/context-menu/_highcontrast-light-definition.scss +50 -50
- package/styles/context-menu/_layout-mixin.scss +140 -140
- package/styles/context-menu/_layout.scss +179 -174
- package/styles/context-menu/_material-dark-definition.scss +50 -50
- package/styles/context-menu/_material-definition.scss +50 -50
- package/styles/context-menu/_material3-definition.scss +51 -51
- package/styles/context-menu/_tailwind-definition.scss +52 -52
- package/styles/context-menu/_tailwind3-definition.scss +55 -55
- package/styles/context-menu/_theme-mixin.scss +91 -91
- package/styles/context-menu/_theme.scss +77 -69
- package/styles/context-menu/bds.css +7 -1
- package/styles/context-menu/bootstrap-dark.css +7 -1
- package/styles/context-menu/bootstrap.css +7 -1
- package/styles/context-menu/bootstrap4.css +8 -2
- package/styles/context-menu/bootstrap5-dark.css +14 -8
- package/styles/context-menu/bootstrap5.3.css +7 -1
- package/styles/context-menu/bootstrap5.css +7 -1
- package/styles/context-menu/fabric-dark.css +7 -1
- package/styles/context-menu/fabric.css +7 -1
- package/styles/context-menu/fluent-dark.css +7 -1
- package/styles/context-menu/fluent.css +7 -1
- package/styles/context-menu/fluent2.css +7 -1
- package/styles/context-menu/highcontrast-light.css +7 -1
- package/styles/context-menu/highcontrast.css +7 -1
- package/styles/context-menu/icons/_bds.scss +31 -31
- package/styles/context-menu/icons/_bootstrap-dark.scss +31 -31
- package/styles/context-menu/icons/_bootstrap.scss +31 -31
- package/styles/context-menu/icons/_bootstrap4.scss +31 -31
- package/styles/context-menu/icons/_bootstrap5.3.scss +31 -31
- package/styles/context-menu/icons/_bootstrap5.scss +31 -31
- package/styles/context-menu/icons/_fabric-dark.scss +31 -31
- package/styles/context-menu/icons/_fabric.scss +31 -31
- package/styles/context-menu/icons/_fluent.scss +31 -31
- package/styles/context-menu/icons/_fluent2.scss +31 -31
- package/styles/context-menu/icons/_fusionnew.scss +31 -31
- package/styles/context-menu/icons/_highcontrast-light.scss +31 -31
- package/styles/context-menu/icons/_highcontrast.scss +31 -31
- package/styles/context-menu/icons/_material-dark.scss +31 -31
- package/styles/context-menu/icons/_material.scss +31 -31
- package/styles/context-menu/icons/_material3.scss +31 -31
- package/styles/context-menu/icons/_tailwind-dark.scss +31 -31
- package/styles/context-menu/icons/_tailwind.scss +31 -31
- package/styles/context-menu/icons/_tailwind3.scss +31 -31
- package/styles/context-menu/material-dark.css +8 -1
- package/styles/context-menu/material.css +7 -1
- package/styles/context-menu/material3-dark.css +8 -1
- package/styles/context-menu/material3-dark.scss +1 -1
- package/styles/context-menu/material3.css +8 -1
- package/styles/context-menu/material3.scss +1 -1
- package/styles/context-menu/tailwind-dark.css +7 -1
- package/styles/context-menu/tailwind.css +7 -1
- package/styles/context-menu/tailwind3.css +7 -1
- package/styles/fabric-dark-lite.css +76 -11
- package/styles/fabric-dark.css +78 -13
- package/styles/fabric-lite.css +108 -43
- package/styles/fabric.css +110 -45
- package/styles/fluent-dark-lite.css +88 -25
- package/styles/fluent-dark.css +91 -28
- package/styles/fluent-lite.css +88 -25
- package/styles/fluent.css +91 -28
- package/styles/fluent2-lite.css +91 -36
- package/styles/fluent2.css +93 -38
- package/styles/h-scroll/_all.scss +2 -2
- package/styles/h-scroll/_bds-definition.scss +83 -83
- package/styles/h-scroll/_bigger.scss +39 -39
- package/styles/h-scroll/_bootstrap-dark-definition.scss +57 -57
- package/styles/h-scroll/_bootstrap-definition.scss +56 -56
- package/styles/h-scroll/_bootstrap4-definition.scss +58 -56
- package/styles/h-scroll/_bootstrap5-definition.scss +83 -83
- package/styles/h-scroll/_bootstrap5.3-definition.scss +83 -83
- package/styles/h-scroll/_fabric-dark-definition.scss +58 -58
- package/styles/h-scroll/_fabric-definition.scss +55 -55
- package/styles/h-scroll/_fluent-definition.scss +83 -83
- package/styles/h-scroll/_fluent2-definition.scss +83 -83
- package/styles/h-scroll/_fusionnew-definition.scss +83 -83
- package/styles/h-scroll/_highcontrast-definition.scss +56 -56
- package/styles/h-scroll/_highcontrast-light-definition.scss +59 -59
- package/styles/h-scroll/_layout.scss +160 -160
- package/styles/h-scroll/_material-dark-definition.scss +85 -85
- package/styles/h-scroll/_material-definition.scss +82 -82
- package/styles/h-scroll/_material3-definition.scss +83 -83
- package/styles/h-scroll/_tailwind-definition.scss +83 -83
- package/styles/h-scroll/_tailwind3-definition.scss +83 -83
- package/styles/h-scroll/_theme.scss +146 -146
- package/styles/h-scroll/bds.css +1 -1
- package/styles/h-scroll/bootstrap-dark.css +1 -1
- package/styles/h-scroll/bootstrap.css +1 -1
- package/styles/h-scroll/bootstrap4.css +6 -6
- package/styles/h-scroll/bootstrap5-dark.css +7 -7
- package/styles/h-scroll/bootstrap5.3.css +1 -1
- package/styles/h-scroll/bootstrap5.css +1 -1
- package/styles/h-scroll/fabric-dark.css +1 -1
- package/styles/h-scroll/fabric.css +2 -2
- package/styles/h-scroll/fluent-dark.css +1 -1
- package/styles/h-scroll/fluent.css +1 -1
- package/styles/h-scroll/fluent2.css +1 -1
- package/styles/h-scroll/highcontrast-light.css +1 -1
- package/styles/h-scroll/highcontrast.css +1 -1
- package/styles/h-scroll/icons/_bds.scss +49 -49
- package/styles/h-scroll/icons/_bootstrap-dark.scss +49 -49
- package/styles/h-scroll/icons/_bootstrap.scss +49 -49
- package/styles/h-scroll/icons/_bootstrap4.scss +49 -49
- package/styles/h-scroll/icons/_bootstrap5.3.scss +49 -49
- package/styles/h-scroll/icons/_bootstrap5.scss +49 -49
- package/styles/h-scroll/icons/_fabric-dark.scss +49 -49
- package/styles/h-scroll/icons/_fabric.scss +49 -49
- package/styles/h-scroll/icons/_fluent.scss +49 -49
- package/styles/h-scroll/icons/_fluent2.scss +49 -49
- package/styles/h-scroll/icons/_fusionnew.scss +49 -49
- package/styles/h-scroll/icons/_highcontrast-light.scss +49 -49
- package/styles/h-scroll/icons/_highcontrast.scss +49 -49
- package/styles/h-scroll/icons/_material-dark.scss +49 -49
- package/styles/h-scroll/icons/_material.scss +49 -49
- package/styles/h-scroll/icons/_material3.scss +49 -49
- package/styles/h-scroll/icons/_tailwind.scss +49 -49
- package/styles/h-scroll/icons/_tailwind3.scss +49 -49
- package/styles/h-scroll/material-dark.css +1 -1
- package/styles/h-scroll/material.css +1 -1
- package/styles/h-scroll/material3-dark.css +1 -1
- package/styles/h-scroll/material3-dark.scss +1 -1
- package/styles/h-scroll/material3.css +1 -1
- package/styles/h-scroll/material3.scss +1 -1
- package/styles/h-scroll/tailwind-dark.css +1 -1
- package/styles/h-scroll/tailwind.css +1 -1
- package/styles/h-scroll/tailwind3.css +1 -1
- package/styles/highcontrast-light-lite.css +70 -5
- package/styles/highcontrast-light.css +72 -7
- package/styles/highcontrast-lite.css +73 -8
- package/styles/highcontrast.css +75 -10
- package/styles/material-dark-lite.css +75 -9
- package/styles/material-dark.css +77 -11
- package/styles/material-lite.css +81 -16
- package/styles/material.css +83 -18
- package/styles/material3-dark-lite.css +81 -15
- package/styles/material3-dark.css +91 -20
- package/styles/material3-dark.scss +1 -1
- package/styles/material3-lite.css +81 -15
- package/styles/material3.css +91 -20
- package/styles/material3.scss +1 -1
- package/styles/menu/_all.scss +2 -2
- package/styles/menu/_bds-definition.scss +65 -65
- package/styles/menu/_bigger.scss +381 -381
- package/styles/menu/_bootstrap-dark-definition.scss +61 -61
- package/styles/menu/_bootstrap-definition.scss +65 -65
- package/styles/menu/_bootstrap4-definition.scss +66 -64
- package/styles/menu/_bootstrap5-definition.scss +66 -66
- package/styles/menu/_bootstrap5.3-definition.scss +66 -66
- package/styles/menu/_fabric-dark-definition.scss +61 -61
- package/styles/menu/_fabric-definition.scss +64 -64
- package/styles/menu/_fluent-definition.scss +66 -66
- package/styles/menu/_fluent2-definition.scss +67 -67
- package/styles/menu/_fusionnew-definition.scss +66 -66
- package/styles/menu/_highcontrast-definition.scss +65 -65
- package/styles/menu/_highcontrast-light-definition.scss +61 -61
- package/styles/menu/_layout.scss +501 -501
- package/styles/menu/_material-dark-definition.scss +61 -61
- package/styles/menu/_material-definition.scss +64 -64
- package/styles/menu/_material3-definition.scss +66 -66
- package/styles/menu/_tailwind-definition.scss +65 -65
- package/styles/menu/_tailwind3-definition.scss +66 -66
- package/styles/menu/_theme.scss +428 -418
- package/styles/menu/bootstrap4.css +13 -13
- package/styles/menu/bootstrap5-dark.css +14 -14
- package/styles/menu/fluent2.css +12 -3
- package/styles/menu/icons/_bds.scss +104 -104
- package/styles/menu/icons/_bootstrap-dark.scss +105 -105
- package/styles/menu/icons/_bootstrap.scss +104 -104
- package/styles/menu/icons/_bootstrap4.scss +104 -104
- package/styles/menu/icons/_bootstrap5.3.scss +104 -104
- package/styles/menu/icons/_bootstrap5.scss +104 -104
- package/styles/menu/icons/_fabric-dark.scss +104 -104
- package/styles/menu/icons/_fabric.scss +104 -104
- package/styles/menu/icons/_fluent.scss +104 -104
- package/styles/menu/icons/_fluent2.scss +104 -104
- package/styles/menu/icons/_fusionnew.scss +104 -104
- package/styles/menu/icons/_highcontrast-light.scss +104 -104
- package/styles/menu/icons/_highcontrast.scss +104 -104
- package/styles/menu/icons/_material-dark.scss +104 -104
- package/styles/menu/icons/_material.scss +104 -104
- package/styles/menu/icons/_material3.scss +104 -104
- package/styles/menu/icons/_tailwind-dark.scss +104 -104
- package/styles/menu/icons/_tailwind.scss +104 -104
- package/styles/menu/icons/_tailwind3.scss +104 -104
- package/styles/menu/material3-dark.scss +1 -1
- package/styles/menu/material3.scss +1 -1
- package/styles/pager/_all.scss +2 -2
- package/styles/pager/_bds-definition.scss +152 -152
- package/styles/pager/_bigger.scss +364 -363
- package/styles/pager/_bootstrap-dark-definition.scss +152 -151
- package/styles/pager/_bootstrap-definition.scss +151 -151
- package/styles/pager/_bootstrap4-definition.scss +152 -151
- package/styles/pager/_bootstrap5-definition.scss +166 -166
- package/styles/pager/_bootstrap5.3-definition.scss +166 -166
- package/styles/pager/_fabric-dark-definition.scss +149 -149
- package/styles/pager/_fabric-definition.scss +149 -149
- package/styles/pager/_fluent-definition.scss +153 -153
- package/styles/pager/_fluent2-definition.scss +152 -152
- package/styles/pager/_fusionnew-definition.scss +166 -166
- package/styles/pager/_highcontrast-definition.scss +149 -149
- package/styles/pager/_highcontrast-light-definition.scss +149 -149
- package/styles/pager/_layout.scss +776 -768
- package/styles/pager/_material-dark-definition.scss +150 -150
- package/styles/pager/_material-definition.scss +150 -150
- package/styles/pager/_material3-definition.scss +166 -166
- package/styles/pager/_tailwind-definition.scss +152 -152
- package/styles/pager/_tailwind3-definition.scss +166 -166
- package/styles/pager/_theme.scss +189 -189
- package/styles/pager/bds.css +13 -3
- package/styles/pager/bootstrap-dark.css +17 -7
- package/styles/pager/bootstrap.css +13 -3
- package/styles/pager/bootstrap4.css +14 -4
- package/styles/pager/bootstrap5-dark.css +21 -17
- package/styles/pager/bootstrap5.3.css +7 -3
- package/styles/pager/bootstrap5.css +12 -8
- package/styles/pager/fabric-dark.css +13 -3
- package/styles/pager/fabric.css +15 -5
- package/styles/pager/fluent-dark.css +14 -4
- package/styles/pager/fluent.css +14 -4
- package/styles/pager/fluent2.css +13 -3
- package/styles/pager/highcontrast-light.css +13 -3
- package/styles/pager/highcontrast.css +13 -3
- package/styles/pager/icons/_bds.scss +50 -50
- package/styles/pager/icons/_bootstrap-dark.scss +50 -50
- package/styles/pager/icons/_bootstrap.scss +50 -50
- package/styles/pager/icons/_bootstrap4.scss +50 -50
- package/styles/pager/icons/_bootstrap5.3.scss +50 -50
- package/styles/pager/icons/_bootstrap5.scss +50 -50
- package/styles/pager/icons/_fabric-dark.scss +50 -50
- package/styles/pager/icons/_fabric.scss +50 -50
- package/styles/pager/icons/_fluent.scss +50 -50
- package/styles/pager/icons/_fluent2.scss +50 -50
- package/styles/pager/icons/_fusionnew.scss +50 -50
- package/styles/pager/icons/_highcontrast-light.scss +50 -50
- package/styles/pager/icons/_highcontrast.scss +46 -46
- package/styles/pager/icons/_material-dark.scss +50 -50
- package/styles/pager/icons/_material.scss +46 -46
- package/styles/pager/icons/_material3.scss +50 -50
- package/styles/pager/icons/_tailwind.scss +50 -50
- package/styles/pager/icons/_tailwind3.scss +50 -50
- package/styles/pager/material-dark.css +13 -3
- package/styles/pager/material.css +13 -3
- package/styles/pager/material3-dark.css +20 -5
- package/styles/pager/material3-dark.scss +1 -1
- package/styles/pager/material3.css +20 -5
- package/styles/pager/material3.scss +1 -1
- package/styles/pager/tailwind-dark.css +13 -3
- package/styles/pager/tailwind.css +13 -3
- package/styles/pager/tailwind3.css +14 -4
- package/styles/sidebar/_all.scss +3 -3
- package/styles/sidebar/_bds-definition.scss +53 -53
- package/styles/sidebar/_bootstrap-dark-definition.scss +4 -4
- package/styles/sidebar/_bootstrap-definition.scss +4 -4
- package/styles/sidebar/_bootstrap4-definition.scss +4 -4
- package/styles/sidebar/_bootstrap5-definition.scss +6 -6
- package/styles/sidebar/_bootstrap5.3-definition.scss +6 -6
- package/styles/sidebar/_fabric-dark-definition.scss +4 -4
- package/styles/sidebar/_fabric-definition.scss +4 -4
- package/styles/sidebar/_fluent-definition.scss +6 -6
- package/styles/sidebar/_fluent2-definition.scss +8 -8
- package/styles/sidebar/_fusionnew-definition.scss +6 -6
- package/styles/sidebar/_highcontrast-definition.scss +4 -4
- package/styles/sidebar/_highcontrast-light-definition.scss +4 -4
- package/styles/sidebar/_icons.scss +1 -1
- package/styles/sidebar/_layout.scss +1 -1
- package/styles/sidebar/_material-dark-definition.scss +4 -4
- package/styles/sidebar/_material-definition.scss +6 -6
- package/styles/sidebar/_material3-definition.scss +4 -4
- package/styles/sidebar/_tailwind-definition.scss +6 -6
- package/styles/sidebar/_tailwind3-definition.scss +6 -6
- package/styles/sidebar/_theme.scss +251 -251
- package/styles/sidebar/bootstrap5-dark.css +1 -1
- package/styles/sidebar/material3-dark.scss +1 -1
- package/styles/sidebar/material3.scss +1 -1
- package/styles/stepper/_bds-definition.scss +72 -72
- package/styles/stepper/_bigger.scss +53 -53
- package/styles/stepper/_bootstrap4-definition.scss +4 -2
- package/styles/stepper/_bootstrap5.3-definition.scss +72 -72
- package/styles/stepper/_fluent2-definition.scss +72 -72
- package/styles/stepper/_material-dark-definition.scss +4 -2
- package/styles/stepper/_material-definition.scss +7 -5
- package/styles/stepper/_tailwind3-definition.scss +72 -72
- package/styles/stepper/bootstrap-dark.css +2 -2
- package/styles/stepper/bootstrap4.css +2 -2
- package/styles/stepper/bootstrap5-dark.css +20 -20
- package/styles/stepper/bootstrap5.css +2 -2
- package/styles/stepper/fabric-dark.css +2 -2
- package/styles/stepper/fabric.css +2 -2
- package/styles/stepper/fluent-dark.css +1 -1
- package/styles/stepper/fluent.css +1 -1
- package/styles/stepper/icons/_bds.scss +5 -5
- package/styles/stepper/icons/_bootstrap5.3.scss +5 -5
- package/styles/stepper/icons/_fluent2.scss +5 -5
- package/styles/stepper/icons/_tailwind3.scss +5 -5
- package/styles/stepper/material-dark.css +2 -2
- package/styles/stepper/material.css +8 -8
- package/styles/stepper/material3-dark.scss +1 -1
- package/styles/stepper/material3.scss +1 -1
- package/styles/tab/_all.scss +2 -2
- package/styles/tab/_bds-definition.scss +661 -661
- package/styles/tab/_bigger.scss +1276 -1276
- package/styles/tab/_bootstrap-dark-definition.scss +630 -628
- package/styles/tab/_bootstrap-definition.scss +629 -629
- package/styles/tab/_bootstrap4-definition.scss +637 -635
- package/styles/tab/_bootstrap5-definition.scss +635 -633
- package/styles/tab/_bootstrap5.3-definition.scss +636 -634
- package/styles/tab/_fabric-dark-definition.scss +641 -641
- package/styles/tab/_fabric-definition.scss +643 -643
- package/styles/tab/_fluent-definition.scss +637 -635
- package/styles/tab/_fluent2-definition.scss +664 -664
- package/styles/tab/_fusionnew-definition.scss +632 -632
- package/styles/tab/_highcontrast-definition.scss +667 -667
- package/styles/tab/_highcontrast-light-definition.scss +666 -666
- package/styles/tab/_icons.scss +34 -34
- package/styles/tab/_layout.scss +2191 -2187
- package/styles/tab/_material-dark-definition.scss +646 -646
- package/styles/tab/_material-definition.scss +645 -645
- package/styles/tab/_material3-definition.scss +634 -634
- package/styles/tab/_tailwind-definition.scss +648 -648
- package/styles/tab/_tailwind3-definition.scss +634 -634
- package/styles/tab/_theme.scss +1580 -1580
- package/styles/tab/bds.css +5 -0
- package/styles/tab/bootstrap-dark.css +35 -30
- package/styles/tab/bootstrap.css +7 -2
- package/styles/tab/bootstrap4.css +38 -33
- package/styles/tab/bootstrap5-dark.css +60 -55
- package/styles/tab/bootstrap5.3.css +18 -13
- package/styles/tab/bootstrap5.css +40 -35
- package/styles/tab/fabric-dark.css +5 -0
- package/styles/tab/fabric.css +10 -5
- package/styles/tab/fluent-dark.css +19 -14
- package/styles/tab/fluent.css +19 -14
- package/styles/tab/fluent2.css +7 -2
- package/styles/tab/highcontrast-light.css +5 -0
- package/styles/tab/highcontrast.css +6 -1
- package/styles/tab/icons/_bds.scss +90 -90
- package/styles/tab/icons/_bootstrap-dark.scss +98 -98
- package/styles/tab/icons/_bootstrap.scss +98 -98
- package/styles/tab/icons/_bootstrap4.scss +101 -101
- package/styles/tab/icons/_bootstrap5.3.scss +90 -90
- package/styles/tab/icons/_bootstrap5.scss +90 -90
- package/styles/tab/icons/_fabric-dark.scss +98 -98
- package/styles/tab/icons/_fabric.scss +98 -98
- package/styles/tab/icons/_fluent.scss +98 -98
- package/styles/tab/icons/_fluent2.scss +98 -98
- package/styles/tab/icons/_fusionnew.scss +90 -90
- package/styles/tab/icons/_highcontrast-light.scss +90 -90
- package/styles/tab/icons/_highcontrast.scss +101 -101
- package/styles/tab/icons/_material-dark.scss +90 -90
- package/styles/tab/icons/_material.scss +90 -90
- package/styles/tab/icons/_material3.scss +90 -90
- package/styles/tab/icons/_tailwind.scss +90 -90
- package/styles/tab/icons/_tailwind3.scss +90 -90
- package/styles/tab/material-dark.css +5 -0
- package/styles/tab/material.css +6 -1
- package/styles/tab/material3-dark.css +15 -10
- package/styles/tab/material3-dark.scss +1 -1
- package/styles/tab/material3.css +15 -10
- package/styles/tab/material3.scss +1 -1
- package/styles/tab/tailwind-dark.css +13 -8
- package/styles/tab/tailwind.css +13 -8
- package/styles/tab/tailwind3.css +32 -26
- package/styles/tailwind-dark-lite.css +80 -15
- package/styles/tailwind-dark.css +84 -19
- package/styles/tailwind-lite.css +78 -13
- package/styles/tailwind.css +82 -17
- package/styles/tailwind3-lite.css +105 -58
- package/styles/tailwind3.css +109 -61
- package/styles/toolbar/_all.scss +2 -2
- package/styles/toolbar/_bds-definition.scss +197 -197
- package/styles/toolbar/_bigger.scss +323 -323
- package/styles/toolbar/_bootstrap-dark-definition.scss +193 -193
- package/styles/toolbar/_bootstrap-definition.scss +203 -203
- package/styles/toolbar/_bootstrap4-definition.scss +200 -198
- package/styles/toolbar/_bootstrap5-definition.scss +198 -198
- package/styles/toolbar/_bootstrap5.3-definition.scss +198 -198
- package/styles/toolbar/_fabric-dark-definition.scss +207 -207
- package/styles/toolbar/_fabric-definition.scss +195 -195
- package/styles/toolbar/_fluent-definition.scss +197 -197
- package/styles/toolbar/_fluent2-definition.scss +198 -198
- package/styles/toolbar/_fusionnew-definition.scss +198 -198
- package/styles/toolbar/_highcontrast-definition.scss +204 -204
- package/styles/toolbar/_highcontrast-light-definition.scss +218 -218
- package/styles/toolbar/_layout.scss +781 -748
- package/styles/toolbar/_material-dark-definition.scss +233 -231
- package/styles/toolbar/_material-definition.scss +221 -219
- package/styles/toolbar/_material3-definition.scss +199 -199
- package/styles/toolbar/_tailwind-definition.scss +197 -197
- package/styles/toolbar/_tailwind3-definition.scss +199 -199
- package/styles/toolbar/_theme.scss +410 -436
- package/styles/toolbar/bds.css +23 -2
- package/styles/toolbar/bootstrap-dark.css +25 -4
- package/styles/toolbar/bootstrap.css +25 -4
- package/styles/toolbar/bootstrap4.css +35 -14
- package/styles/toolbar/bootstrap5-dark.css +70 -49
- package/styles/toolbar/bootstrap5.3.css +33 -4
- package/styles/toolbar/bootstrap5.css +46 -25
- package/styles/toolbar/fabric-dark.css +23 -2
- package/styles/toolbar/fabric.css +32 -11
- package/styles/toolbar/fluent-dark.css +23 -2
- package/styles/toolbar/fluent.css +23 -2
- package/styles/toolbar/fluent2.css +30 -28
- package/styles/toolbar/highcontrast-light.css +23 -2
- package/styles/toolbar/highcontrast.css +25 -4
- package/styles/toolbar/icons/_bds.scss +14 -14
- package/styles/toolbar/icons/_bootstrap-dark.scss +14 -14
- package/styles/toolbar/icons/_bootstrap.scss +14 -14
- package/styles/toolbar/icons/_bootstrap4.scss +14 -14
- package/styles/toolbar/icons/_bootstrap5.3.scss +14 -14
- package/styles/toolbar/icons/_bootstrap5.scss +14 -14
- package/styles/toolbar/icons/_fabric-dark.scss +14 -14
- package/styles/toolbar/icons/_fabric.scss +14 -14
- package/styles/toolbar/icons/_fluent.scss +14 -14
- package/styles/toolbar/icons/_fluent2.scss +14 -14
- package/styles/toolbar/icons/_fusionnew.scss +14 -14
- package/styles/toolbar/icons/_highcontrast-light.scss +14 -14
- package/styles/toolbar/icons/_highcontrast.scss +14 -14
- package/styles/toolbar/icons/_material-dark.scss +14 -14
- package/styles/toolbar/icons/_material.scss +14 -14
- package/styles/toolbar/icons/_material3.scss +14 -14
- package/styles/toolbar/icons/_tailwind.scss +14 -14
- package/styles/toolbar/icons/_tailwind3.scss +14 -14
- package/styles/toolbar/material-dark.css +25 -4
- package/styles/toolbar/material.css +25 -4
- package/styles/toolbar/material3-dark.css +23 -2
- package/styles/toolbar/material3-dark.scss +1 -1
- package/styles/toolbar/material3.css +23 -2
- package/styles/toolbar/material3.scss +1 -1
- package/styles/toolbar/tailwind-dark.css +23 -2
- package/styles/toolbar/tailwind.css +23 -2
- package/styles/toolbar/tailwind3.css +30 -28
- package/styles/treeview/_all.scss +2 -2
- package/styles/treeview/_bds-definition.scss +131 -131
- package/styles/treeview/_bigger.scss +410 -406
- package/styles/treeview/_bootstrap-dark-definition.scss +118 -118
- package/styles/treeview/_bootstrap-definition.scss +113 -113
- package/styles/treeview/_bootstrap4-definition.scss +143 -141
- package/styles/treeview/_bootstrap5-definition.scss +122 -120
- package/styles/treeview/_bootstrap5.3-definition.scss +119 -119
- package/styles/treeview/_fabric-dark-definition.scss +116 -116
- package/styles/treeview/_fabric-definition.scss +112 -112
- package/styles/treeview/_fluent-definition.scss +122 -120
- package/styles/treeview/_fluent2-definition.scss +128 -128
- package/styles/treeview/_fusionnew-definition.scss +120 -120
- package/styles/treeview/_highcontrast-definition.scss +118 -118
- package/styles/treeview/_highcontrast-light-definition.scss +123 -123
- package/styles/treeview/_layout.scss +769 -761
- package/styles/treeview/_material-dark-definition.scss +114 -114
- package/styles/treeview/_material-definition.scss +112 -112
- package/styles/treeview/_material3-definition.scss +110 -110
- package/styles/treeview/_tailwind-definition.scss +126 -124
- package/styles/treeview/_tailwind3-definition.scss +126 -126
- package/styles/treeview/_theme.scss +352 -350
- package/styles/treeview/bds.css +8 -0
- package/styles/treeview/bootstrap-dark.css +8 -0
- package/styles/treeview/bootstrap.css +8 -0
- package/styles/treeview/bootstrap4.css +17 -9
- package/styles/treeview/bootstrap5-dark.css +20 -12
- package/styles/treeview/bootstrap5.3.css +15 -7
- package/styles/treeview/bootstrap5.css +11 -3
- package/styles/treeview/fabric-dark.css +8 -0
- package/styles/treeview/fabric.css +15 -7
- package/styles/treeview/fluent-dark.css +11 -5
- package/styles/treeview/fluent.css +11 -5
- package/styles/treeview/fluent2.css +8 -0
- package/styles/treeview/highcontrast-light.css +8 -0
- package/styles/treeview/highcontrast.css +8 -0
- package/styles/treeview/icons/_bds.scss +44 -44
- package/styles/treeview/icons/_bootstrap-dark.scss +40 -40
- package/styles/treeview/icons/_bootstrap.scss +40 -40
- package/styles/treeview/icons/_bootstrap4.scss +40 -40
- package/styles/treeview/icons/_bootstrap5.3.scss +44 -44
- package/styles/treeview/icons/_bootstrap5.scss +44 -44
- package/styles/treeview/icons/_fabric-dark.scss +44 -44
- package/styles/treeview/icons/_fabric.scss +44 -44
- package/styles/treeview/icons/_fluent.scss +44 -44
- package/styles/treeview/icons/_fluent2.scss +44 -44
- package/styles/treeview/icons/_fusionnew.scss +44 -44
- package/styles/treeview/icons/_highcontrast-light.scss +44 -44
- package/styles/treeview/icons/_highcontrast.scss +44 -44
- package/styles/treeview/icons/_material-dark.scss +44 -44
- package/styles/treeview/icons/_material.scss +44 -44
- package/styles/treeview/icons/_material3.scss +44 -44
- package/styles/treeview/icons/_tailwind-dark.scss +44 -44
- package/styles/treeview/icons/_tailwind.scss +44 -44
- package/styles/treeview/icons/_tailwind3.scss +44 -44
- package/styles/treeview/material-dark.css +8 -0
- package/styles/treeview/material.css +8 -0
- package/styles/treeview/material3-dark.css +9 -1
- package/styles/treeview/material3-dark.scss +1 -1
- package/styles/treeview/material3.css +9 -1
- package/styles/treeview/material3.scss +1 -1
- package/styles/treeview/tailwind-dark.css +10 -2
- package/styles/treeview/tailwind.css +10 -2
- package/styles/treeview/tailwind3.css +10 -1
- package/styles/v-scroll/_all.scss +2 -2
- package/styles/v-scroll/_bds-definition.scss +49 -49
- package/styles/v-scroll/_bigger.scss +28 -28
- package/styles/v-scroll/_bootstrap-dark-definition.scss +51 -51
- package/styles/v-scroll/_bootstrap-definition.scss +49 -49
- package/styles/v-scroll/_bootstrap4-definition.scss +49 -49
- package/styles/v-scroll/_bootstrap5-definition.scss +49 -49
- package/styles/v-scroll/_bootstrap5.3-definition.scss +49 -49
- package/styles/v-scroll/_fabric-dark-definition.scss +52 -52
- package/styles/v-scroll/_fabric-definition.scss +50 -50
- package/styles/v-scroll/_fluent-definition.scss +49 -49
- package/styles/v-scroll/_fluent2-definition.scss +49 -49
- package/styles/v-scroll/_fusionnew-definition.scss +49 -49
- package/styles/v-scroll/_highcontrast-definition.scss +50 -50
- package/styles/v-scroll/_highcontrast-light-definition.scss +52 -52
- package/styles/v-scroll/_layout.scss +135 -135
- package/styles/v-scroll/_material-dark-definition.scss +79 -79
- package/styles/v-scroll/_material-definition.scss +77 -77
- package/styles/v-scroll/_material3-definition.scss +49 -49
- package/styles/v-scroll/_tailwind-definition.scss +49 -49
- package/styles/v-scroll/_tailwind3-definition.scss +49 -49
- package/styles/v-scroll/_theme.scss +114 -114
- package/styles/v-scroll/fabric-dark.css +1 -1
- package/styles/v-scroll/fabric.css +1 -1
- package/styles/v-scroll/icons/_bds.scss +27 -27
- package/styles/v-scroll/icons/_bootstrap-dark.scss +27 -27
- package/styles/v-scroll/icons/_bootstrap.scss +27 -27
- package/styles/v-scroll/icons/_bootstrap4.scss +27 -27
- package/styles/v-scroll/icons/_bootstrap5.3.scss +27 -27
- package/styles/v-scroll/icons/_bootstrap5.scss +27 -27
- package/styles/v-scroll/icons/_fabric-dark.scss +27 -27
- package/styles/v-scroll/icons/_fabric.scss +27 -27
- package/styles/v-scroll/icons/_fluent.scss +27 -27
- package/styles/v-scroll/icons/_fluent2.scss +27 -27
- package/styles/v-scroll/icons/_fusionnew.scss +27 -27
- package/styles/v-scroll/icons/_highcontrast-light.scss +27 -27
- package/styles/v-scroll/icons/_highcontrast.scss +27 -27
- package/styles/v-scroll/icons/_material-dark.scss +27 -27
- package/styles/v-scroll/icons/_material.scss +27 -27
- package/styles/v-scroll/icons/_material3.scss +27 -27
- package/styles/v-scroll/icons/_tailwind.scss +27 -27
- package/styles/v-scroll/icons/_tailwind3.scss +27 -27
- package/styles/v-scroll/material3-dark.scss +1 -1
- package/styles/v-scroll/material3.scss +1 -1
- package/tslint.json +111 -111
- package/helpers/e2e/accordionHelper.d.ts +0 -56
- package/helpers/e2e/accordionHelper.js +0 -71
- package/helpers/e2e/contextmenuHelper.d.ts +0 -37
- package/helpers/e2e/contextmenuHelper.js +0 -53
- package/helpers/e2e/index.d.ts +0 -7
- package/helpers/e2e/index.js +0 -14
- package/helpers/e2e/menuHelper.d.ts +0 -37
- package/helpers/e2e/menuHelper.js +0 -53
- package/helpers/e2e/sidebarHelper.d.ts +0 -94
- package/helpers/e2e/sidebarHelper.js +0 -110
- package/helpers/e2e/tabHelper.d.ts +0 -60
- package/helpers/e2e/tabHelper.js +0 -74
- package/helpers/e2e/toolbarHelper.d.ts +0 -60
- package/helpers/e2e/toolbarHelper.js +0 -74
- package/helpers/e2e/treeview.d.ts +0 -50
- package/helpers/e2e/treeview.js +0 -80
|
@@ -0,0 +1,1305 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
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;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
21
|
+
///<reference path='../stepper-base/stepper-base-model.d.ts'/>
|
|
22
|
+
import { attributes, NotifyPropertyChanges, L10n, append, isNullOrUndefined, getUniqueID, Complex, KeyboardEvents, ChildProperty, Property, EventHandler, Event, addClass, remove, removeClass, initializeCSPTemplate, select, compile } from '@syncfusion/ej2-base';
|
|
23
|
+
import { StepperBase, StepStatus } from '../stepper-base/stepper-base';
|
|
24
|
+
import { Tooltip } from '@syncfusion/ej2-popups';
|
|
25
|
+
var ITEMCONTAINER = 'e-step-container';
|
|
26
|
+
var ITEMLIST = 'e-stepper-steps';
|
|
27
|
+
var ICONCSS = 'e-indicator';
|
|
28
|
+
var TEXTCSS = 'e-step-text-container';
|
|
29
|
+
var STEPLABEL = 'e-step-label-container';
|
|
30
|
+
var OPTIONAL = 'e-step-label-optional';
|
|
31
|
+
var SELECTED = 'e-step-selected';
|
|
32
|
+
var INPROGRESS = 'e-step-inprogress';
|
|
33
|
+
var NOTSTARTED = 'e-step-notstarted';
|
|
34
|
+
var FOCUS = 'e-step-focus';
|
|
35
|
+
var COMPLETED = 'e-step-completed';
|
|
36
|
+
var DISABLED = 'e-step-disabled';
|
|
37
|
+
var READONLY = 'e-stepper-readonly';
|
|
38
|
+
var PROGRESSVALUE = '--progress-value';
|
|
39
|
+
var RTL = 'e-rtl';
|
|
40
|
+
var TEMPLATE = 'e-step-template';
|
|
41
|
+
var LABELAFTER = 'e-label-after';
|
|
42
|
+
var LABELBEFORE = 'e-label-before';
|
|
43
|
+
var VERTICALSTEP = 'e-vertical';
|
|
44
|
+
var HORIZSTEP = 'e-horizontal';
|
|
45
|
+
var STEPICON = 'e-step-item';
|
|
46
|
+
var STEPTEXT = 'e-step-text';
|
|
47
|
+
var TEXT = 'e-text';
|
|
48
|
+
var STEPSLABEL = 'e-step-label';
|
|
49
|
+
var LABEL = 'e-label';
|
|
50
|
+
var STEPINDICATOR = 'e-step-type-indicator';
|
|
51
|
+
var LABELINDICATOR = 'e-step-type-label';
|
|
52
|
+
var INDICATORICON = 'e-step-indicator';
|
|
53
|
+
var STEPPERTOOLTIP = 'e-stepper-tooltip';
|
|
54
|
+
var STEPPERIPROGRESSTIP = 'e-step-inprogress-tip';
|
|
55
|
+
var LINEARSTEP = 'e-linear';
|
|
56
|
+
var PREVSTEP = 'e-previous';
|
|
57
|
+
var NEXTSTEP = 'e-next';
|
|
58
|
+
/**
|
|
59
|
+
* Defines the step progress animation of the Stepper.
|
|
60
|
+
*/
|
|
61
|
+
var StepperAnimationSettings = /** @class */ (function (_super) {
|
|
62
|
+
__extends(StepperAnimationSettings, _super);
|
|
63
|
+
function StepperAnimationSettings() {
|
|
64
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
65
|
+
}
|
|
66
|
+
__decorate([
|
|
67
|
+
Property(true)
|
|
68
|
+
], StepperAnimationSettings.prototype, "enable", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
Property(2000)
|
|
71
|
+
], StepperAnimationSettings.prototype, "duration", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
Property(0)
|
|
74
|
+
], StepperAnimationSettings.prototype, "delay", void 0);
|
|
75
|
+
return StepperAnimationSettings;
|
|
76
|
+
}(ChildProperty));
|
|
77
|
+
export { StepperAnimationSettings };
|
|
78
|
+
/**
|
|
79
|
+
* Defines the label position in the Stepper.
|
|
80
|
+
*/
|
|
81
|
+
export var StepLabelPosition;
|
|
82
|
+
(function (StepLabelPosition) {
|
|
83
|
+
/**
|
|
84
|
+
* Displays the label on top position regardless of the Stepper's orientation.
|
|
85
|
+
*/
|
|
86
|
+
StepLabelPosition["Top"] = "Top";
|
|
87
|
+
/**
|
|
88
|
+
* Displays the label on bottom position regardless of the Stepper's orientation.
|
|
89
|
+
*/
|
|
90
|
+
StepLabelPosition["Bottom"] = "Bottom";
|
|
91
|
+
/**
|
|
92
|
+
* Displays the label on left side regardless of the Stepper's orientation.
|
|
93
|
+
*/
|
|
94
|
+
StepLabelPosition["Start"] = "Start";
|
|
95
|
+
/**
|
|
96
|
+
* Displays the label on right side regardless of the Stepper's orientation.
|
|
97
|
+
*/
|
|
98
|
+
StepLabelPosition["End"] = "End";
|
|
99
|
+
})(StepLabelPosition || (StepLabelPosition = {}));
|
|
100
|
+
/**
|
|
101
|
+
* Defines whether steps are display with only indicator, only labels or combination of both.
|
|
102
|
+
*/
|
|
103
|
+
export var StepType;
|
|
104
|
+
(function (StepType) {
|
|
105
|
+
/**
|
|
106
|
+
* Steps are shown indicator with label defined.
|
|
107
|
+
*/
|
|
108
|
+
StepType["Default"] = "Default";
|
|
109
|
+
/**
|
|
110
|
+
* Steps are shown with only label.
|
|
111
|
+
*/
|
|
112
|
+
StepType["Label"] = "Label";
|
|
113
|
+
/**
|
|
114
|
+
* Steps are shown with only indicator.
|
|
115
|
+
*/
|
|
116
|
+
StepType["Indicator"] = "Indicator";
|
|
117
|
+
})(StepType || (StepType = {}));
|
|
118
|
+
/**
|
|
119
|
+
* The Stepper component visualizes several steps and indicates the current progress by highlighting already completed steps.
|
|
120
|
+
*
|
|
121
|
+
* ```html
|
|
122
|
+
* <nav id="stepper"></nav>
|
|
123
|
+
* ```
|
|
124
|
+
* ```typescript
|
|
125
|
+
* <script>
|
|
126
|
+
* let stepperObj: Stepper = new Stepper({steps : [{}, {}, {}, {}, {}]});
|
|
127
|
+
* stepperObj.appendTo('#stepper');
|
|
128
|
+
* </script>
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
var Stepper = /** @class */ (function (_super) {
|
|
132
|
+
__extends(Stepper, _super);
|
|
133
|
+
/**
|
|
134
|
+
* * Constructor for creating the Stepper component.
|
|
135
|
+
*
|
|
136
|
+
* @param {StepperModel} options - Specifies the Stepper model.
|
|
137
|
+
* @param {string | HTMLElement} element - Specifies the element to render as component.
|
|
138
|
+
* @private
|
|
139
|
+
*/
|
|
140
|
+
function Stepper(options, element) {
|
|
141
|
+
var _this = _super.call(this, options, element) || this;
|
|
142
|
+
_this.stepperItemElements = [];
|
|
143
|
+
return _this;
|
|
144
|
+
}
|
|
145
|
+
Stepper.prototype.preRender = function () {
|
|
146
|
+
if (!this.element.id) {
|
|
147
|
+
this.element.id = getUniqueID('e-' + this.getModuleName());
|
|
148
|
+
}
|
|
149
|
+
var localeText = { optional: 'Optional' };
|
|
150
|
+
this.l10n = new L10n('stepper', localeText, this.locale);
|
|
151
|
+
this.keyConfigs = {
|
|
152
|
+
downarrow: 'downarrow',
|
|
153
|
+
leftarrow: 'leftarrow',
|
|
154
|
+
rightarrow: 'rightarrow',
|
|
155
|
+
uparrow: 'uparrow',
|
|
156
|
+
space: 'space',
|
|
157
|
+
enter: 'enter',
|
|
158
|
+
home: 'home',
|
|
159
|
+
end: 'end',
|
|
160
|
+
tab: 'tab',
|
|
161
|
+
shiftTab: 'shift+tab',
|
|
162
|
+
escape: 'escape'
|
|
163
|
+
};
|
|
164
|
+
this.tooltipOpen = false;
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* To get component name.
|
|
168
|
+
*
|
|
169
|
+
* @returns {string} - It returns the current module name.
|
|
170
|
+
* @private
|
|
171
|
+
*/
|
|
172
|
+
Stepper.prototype.getModuleName = function () {
|
|
173
|
+
return 'stepper';
|
|
174
|
+
};
|
|
175
|
+
Stepper.prototype.render = function () {
|
|
176
|
+
this.initialize();
|
|
177
|
+
this.navigationHandler(this.activeStep, null, false);
|
|
178
|
+
this.updateStepperStatus(true);
|
|
179
|
+
};
|
|
180
|
+
Stepper.prototype.initialize = function () {
|
|
181
|
+
this.element.setAttribute('aria-label', this.element.id);
|
|
182
|
+
this.updatePosition();
|
|
183
|
+
this.stepperItemList = this.createElement('ol', { className: ITEMLIST });
|
|
184
|
+
this.updateOrientaion(this.element);
|
|
185
|
+
this.updateStepType();
|
|
186
|
+
this.element.appendChild(this.stepperItemList);
|
|
187
|
+
if (this.cssClass) {
|
|
188
|
+
addClass([this.element], this.cssClass.trim().split(' '));
|
|
189
|
+
}
|
|
190
|
+
if (this.readOnly) {
|
|
191
|
+
this.element.classList.add(READONLY);
|
|
192
|
+
}
|
|
193
|
+
if (this.enableRtl) {
|
|
194
|
+
this.element.classList.add(RTL);
|
|
195
|
+
}
|
|
196
|
+
this.wireEvents();
|
|
197
|
+
this.updateTemplateFunction();
|
|
198
|
+
this.renderItems();
|
|
199
|
+
if (this.steps.length > 0) {
|
|
200
|
+
this.initiateProgressBar();
|
|
201
|
+
this.checkValidStep();
|
|
202
|
+
this.updateAnimation();
|
|
203
|
+
this.updateTooltip();
|
|
204
|
+
this.wireKeyboardEvent();
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
Stepper.prototype.initiateProgressBar = function () {
|
|
208
|
+
var _this = this;
|
|
209
|
+
if (this.steps.length > 1) {
|
|
210
|
+
if (this.isAngular && this.template) {
|
|
211
|
+
setTimeout(function () { _this.renderProgressBar(_this.element); });
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
this.renderProgressBar(this.element);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
Stepper.prototype.updatePosition = function () {
|
|
219
|
+
this.progressBarPosition = this.beforeLabelWidth = this.textEleWidth = 0;
|
|
220
|
+
};
|
|
221
|
+
Stepper.prototype.renderDefault = function (index) {
|
|
222
|
+
var step = this.steps[parseInt(index.toString(), 10)];
|
|
223
|
+
return !step.iconCss && !step.text && !step.label;
|
|
224
|
+
};
|
|
225
|
+
Stepper.prototype.updateAnimation = function () {
|
|
226
|
+
var progressEle = this.element.querySelector('.e-progressbar-value');
|
|
227
|
+
if (this.animation.enable) {
|
|
228
|
+
if (this.animation.duration >= 0) {
|
|
229
|
+
if (progressEle) {
|
|
230
|
+
progressEle.style.setProperty('--duration', ((this.animation.duration) + 'ms'));
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
if (this.animation.delay >= 0) {
|
|
234
|
+
if (progressEle) {
|
|
235
|
+
progressEle.style.setProperty('--delay', ((this.animation.delay) + 'ms'));
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
if (progressEle) {
|
|
241
|
+
progressEle.style.setProperty('--delay', (0 + 'ms'));
|
|
242
|
+
progressEle.style.setProperty('--duration', (0 + 'ms'));
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
Stepper.prototype.updateStepType = function () {
|
|
247
|
+
if (!isNullOrUndefined(this.stepType)) {
|
|
248
|
+
var stepTypeLower = this.stepType.toLowerCase();
|
|
249
|
+
var validStepTypes = ['indicator', 'label', 'default'];
|
|
250
|
+
if (validStepTypes.indexOf(stepTypeLower) !== -1) {
|
|
251
|
+
if (stepTypeLower !== 'default') {
|
|
252
|
+
this.element.classList.add('e-step-type-' + stepTypeLower);
|
|
253
|
+
}
|
|
254
|
+
if ((stepTypeLower === 'indicator' || stepTypeLower === 'label') && this.labelContainer) {
|
|
255
|
+
this.clearLabelPosition();
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
Stepper.prototype.wireEvents = function () {
|
|
261
|
+
EventHandler.add(window, 'resize', this.updateResize, this);
|
|
262
|
+
EventHandler.add(window, 'click', this.updateStepFocus, this);
|
|
263
|
+
};
|
|
264
|
+
Stepper.prototype.unWireEvents = function () {
|
|
265
|
+
EventHandler.remove(window, 'resize', this.updateResize);
|
|
266
|
+
EventHandler.remove(window, 'click', this.updateStepFocus);
|
|
267
|
+
};
|
|
268
|
+
Stepper.prototype.updateResize = function () {
|
|
269
|
+
if (this.stepperItemList && this.progressbar && this.element.classList.contains(HORIZSTEP)) {
|
|
270
|
+
this.setProgressPosition(this.element, true);
|
|
271
|
+
}
|
|
272
|
+
this.navigateToStep(this.activeStep, null, null, false, false);
|
|
273
|
+
};
|
|
274
|
+
Stepper.prototype.updateStepFocus = function () {
|
|
275
|
+
if (this.isKeyNavFocus) {
|
|
276
|
+
this.isKeyNavFocus = false;
|
|
277
|
+
var isFocus = this.element.querySelector('.' + FOCUS);
|
|
278
|
+
if (isFocus) {
|
|
279
|
+
isFocus.classList.remove(FOCUS);
|
|
280
|
+
this.element.classList.remove('e-steps-focus');
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
Stepper.prototype.updateStepperStatus = function (isInitial) {
|
|
285
|
+
for (var index = 0; index < this.steps.length; index++) {
|
|
286
|
+
var item = this.steps[parseInt(index.toString(), 10)];
|
|
287
|
+
var status_1 = item.status.toLowerCase();
|
|
288
|
+
if (isInitial && this.activeStep === 0 && index === 0) {
|
|
289
|
+
var prevOnChange = this.isProtectedOnChange;
|
|
290
|
+
this.isProtectedOnChange = true;
|
|
291
|
+
item.status = StepStatus.InProgress;
|
|
292
|
+
this.isProtectedOnChange = prevOnChange;
|
|
293
|
+
}
|
|
294
|
+
if (item && status_1 !== 'notstarted' && index === this.activeStep) {
|
|
295
|
+
for (var i = 0; i < this.steps.length; i++) {
|
|
296
|
+
var itemElement = this.stepperItemElements[parseInt(i.toString(), 10)];
|
|
297
|
+
itemElement.classList.remove(SELECTED, INPROGRESS, COMPLETED, NOTSTARTED);
|
|
298
|
+
var prevOnChange = this.isProtectedOnChange;
|
|
299
|
+
this.isProtectedOnChange = true;
|
|
300
|
+
if (status_1 === 'completed') {
|
|
301
|
+
this.updateStatusClass(i, index, itemElement);
|
|
302
|
+
}
|
|
303
|
+
else {
|
|
304
|
+
this.updateStatusClass(i, index, itemElement, true);
|
|
305
|
+
}
|
|
306
|
+
this.isProtectedOnChange = prevOnChange;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
else if (item && status_1 !== 'notstarted' && index !== this.activeStep) {
|
|
310
|
+
this.navigationHandler(this.activeStep, null, true);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
Stepper.prototype.updateStatusClass = function (currentStep, index, ele, isInprogress) {
|
|
315
|
+
var stepItem = this.steps[parseInt(currentStep.toString(), 10)];
|
|
316
|
+
if (currentStep < index) {
|
|
317
|
+
ele.classList.add(COMPLETED);
|
|
318
|
+
stepItem.status = StepStatus.Completed;
|
|
319
|
+
}
|
|
320
|
+
else if (currentStep === index) {
|
|
321
|
+
ele.classList.add(isInprogress ? INPROGRESS : COMPLETED, SELECTED);
|
|
322
|
+
}
|
|
323
|
+
else {
|
|
324
|
+
ele.classList.add(NOTSTARTED);
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
Stepper.prototype.renderItems = function () {
|
|
328
|
+
var _this = this;
|
|
329
|
+
var _a;
|
|
330
|
+
var isHorizontal = this.element.classList.contains(HORIZSTEP);
|
|
331
|
+
var isVertical = this.element.classList.contains(VERTICALSTEP);
|
|
332
|
+
var labelPositionLower = !isNullOrUndefined(this.labelPosition) ? this.labelPosition.toLowerCase() : '';
|
|
333
|
+
for (var index = 0; index < this.steps.length; index++) {
|
|
334
|
+
this.stepperItemContainer = this.createElement('li', { className: ITEMCONTAINER });
|
|
335
|
+
var stepSpan = this.createElement('span', { className: 'e-step' });
|
|
336
|
+
var item = this.steps[parseInt(index.toString(), 10)];
|
|
337
|
+
var isItemLabel = item.label ? true : false;
|
|
338
|
+
var isItemText = item.text ? true : false;
|
|
339
|
+
var isIndicator = this.element.classList.contains(STEPINDICATOR);
|
|
340
|
+
this.stepperItemContainer.classList[(index === 0) ? 'add' : 'remove'](SELECTED, INPROGRESS);
|
|
341
|
+
this.stepperItemContainer.classList[(index !== 0) ? 'add' : 'remove'](NOTSTARTED);
|
|
342
|
+
if (isHorizontal) {
|
|
343
|
+
this.stepperItemContainer.style.setProperty('--max-width', 100 / this.steps.length + '%');
|
|
344
|
+
}
|
|
345
|
+
if (this.renderDefault(index) && (isNullOrUndefined(this.template) || this.template === '')) {
|
|
346
|
+
var isIndicator_1 = !this.element.classList.contains('e-step-type-default') && this.stepType.toLowerCase() === 'indicator';
|
|
347
|
+
if (isIndicator_1) {
|
|
348
|
+
stepSpan.classList.add('e-icons', INDICATORICON);
|
|
349
|
+
}
|
|
350
|
+
if (!isIndicator_1 && item.isValid == null) {
|
|
351
|
+
stepSpan.classList.add('e-step-content');
|
|
352
|
+
stepSpan.innerHTML = (index + 1).toString();
|
|
353
|
+
}
|
|
354
|
+
this.stepperItemContainer.appendChild(stepSpan);
|
|
355
|
+
}
|
|
356
|
+
else if (isNullOrUndefined(this.template) || this.template === '') {
|
|
357
|
+
var isRender = true;
|
|
358
|
+
if ((item.iconCss || (!item.iconCss && isItemText && isItemLabel)) && (((!isItemText && !isItemLabel) ||
|
|
359
|
+
!this.element.classList.contains(LABELINDICATOR)))) {
|
|
360
|
+
if (item.iconCss) {
|
|
361
|
+
var itemIcon = item.iconCss.trim().split(' ');
|
|
362
|
+
(_a = stepSpan.classList).add.apply(_a, [ICONCSS].concat(itemIcon));
|
|
363
|
+
this.stepperItemContainer.classList.add(STEPICON);
|
|
364
|
+
}
|
|
365
|
+
else if (!item.iconCss && isItemText && isItemLabel) {
|
|
366
|
+
stepSpan.classList.add(ICONCSS);
|
|
367
|
+
stepSpan.innerHTML = item.text;
|
|
368
|
+
this.stepperItemContainer.classList.add(STEPICON);
|
|
369
|
+
}
|
|
370
|
+
this.stepperItemContainer.appendChild(stepSpan);
|
|
371
|
+
if (((isHorizontal && (labelPositionLower === 'start' || labelPositionLower === 'end') && isItemLabel) ||
|
|
372
|
+
(isVertical && (labelPositionLower === 'top' || labelPositionLower === 'bottom') && isItemLabel)) && !isIndicator) {
|
|
373
|
+
this.element.classList.add('e-label-' + labelPositionLower);
|
|
374
|
+
this.createTextLabelElement(item.label);
|
|
375
|
+
isRender = false;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
if (isItemText && (!item.iconCss || !isIndicator) && isRender &&
|
|
379
|
+
!(item.iconCss && isItemLabel)) {
|
|
380
|
+
if ((!item.iconCss && isIndicator) ||
|
|
381
|
+
((!item.iconCss || this.element.classList.contains(LABELINDICATOR)) && !isItemLabel)) {
|
|
382
|
+
if (!item.iconCss && !isItemLabel) {
|
|
383
|
+
this.element.classList.add('e-step-type-indicator');
|
|
384
|
+
}
|
|
385
|
+
this.checkValidState(item, stepSpan);
|
|
386
|
+
isItemLabel = false;
|
|
387
|
+
}
|
|
388
|
+
else {
|
|
389
|
+
if (!isItemLabel) {
|
|
390
|
+
this.createTextLabelElement(item.text);
|
|
391
|
+
}
|
|
392
|
+
if (isItemLabel && this.element.classList.contains(LABELINDICATOR)) {
|
|
393
|
+
var textSpan = this.createElement('span', { className: TEXT });
|
|
394
|
+
textSpan.innerText = item.label;
|
|
395
|
+
}
|
|
396
|
+
isItemText = isItemLabel ? false : true;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
if (isItemLabel && isItemLabel && (!item.iconCss || !isIndicator) && isRender) {
|
|
400
|
+
if (!item.iconCss && !isItemText && isIndicator) {
|
|
401
|
+
this.checkValidState(item, stepSpan, true);
|
|
402
|
+
}
|
|
403
|
+
else if ((!((this.element.classList.contains(LABELINDICATOR)) && isItemText)) ||
|
|
404
|
+
(this.element.classList.contains(LABELINDICATOR) && isItemLabel)) {
|
|
405
|
+
this.createTextLabelElement(item.label, true);
|
|
406
|
+
this.updateLabelPosition();
|
|
407
|
+
if ((!item.iconCss && !isItemText && !this.stepperItemContainer.classList.contains(STEPICON)) ||
|
|
408
|
+
this.element.classList.contains(LABELINDICATOR)) {
|
|
409
|
+
this.stepperItemContainer.classList.add('e-step-label-only');
|
|
410
|
+
if (item.isValid !== null) {
|
|
411
|
+
var iconSpan = this.createElement('span', { className: 'e-step-validation-icon e-icons' });
|
|
412
|
+
this.labelContainer.appendChild(iconSpan);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
if (item.optional) {
|
|
419
|
+
var optionalSpan = this.createElement('span', { className: OPTIONAL });
|
|
420
|
+
this.l10n.setLocale(this.locale);
|
|
421
|
+
var optionalContent = this.l10n.getConstant('optional');
|
|
422
|
+
optionalSpan.innerText = optionalContent;
|
|
423
|
+
if (isItemLabel && (this.labelContainer && ((this.element.classList.contains(LABELAFTER) && !this.stepperItemContainer.classList.contains('e-step-label-only'))
|
|
424
|
+
|| (isHorizontal && this.element.classList.contains(LABELBEFORE) && !this.stepperItemContainer.classList.contains('e-step-label-only'))))
|
|
425
|
+
|| (isVertical && this.element.classList.contains(LABELBEFORE))) {
|
|
426
|
+
this.labelContainer.appendChild(optionalSpan);
|
|
427
|
+
}
|
|
428
|
+
else {
|
|
429
|
+
this.stepperItemContainer.appendChild(optionalSpan);
|
|
430
|
+
}
|
|
431
|
+
if (item.isValid !== null) {
|
|
432
|
+
this.stepperItemContainer.classList.add(item.isValid ? 'e-step-valid' : 'e-step-error');
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
if (item.cssClass) {
|
|
436
|
+
addClass([this.stepperItemContainer], item.cssClass.trim().split(' '));
|
|
437
|
+
}
|
|
438
|
+
if (item.disabled) {
|
|
439
|
+
this.stepperItemContainer.classList[item.disabled ? 'add' : 'remove'](DISABLED);
|
|
440
|
+
attributes(this.stepperItemContainer, { 'tabindex': '-1', 'aria-disabled': 'true' });
|
|
441
|
+
}
|
|
442
|
+
if (item.isValid !== null) {
|
|
443
|
+
if (item.isValid) {
|
|
444
|
+
this.stepperItemContainer.classList.add('e-step-valid');
|
|
445
|
+
}
|
|
446
|
+
else {
|
|
447
|
+
this.stepperItemContainer.classList.add('e-step-error');
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
this.renderItemContent(index, false);
|
|
451
|
+
if (this.stepperItemContainer.classList.contains(INPROGRESS)) {
|
|
452
|
+
attributes(this.stepperItemContainer, { 'tabindex': '0', 'aria-current': 'true' });
|
|
453
|
+
}
|
|
454
|
+
else {
|
|
455
|
+
attributes(this.stepperItemContainer, { 'tabindex': '-1' });
|
|
456
|
+
}
|
|
457
|
+
this.wireItemsEvents(this.stepperItemContainer, index);
|
|
458
|
+
this.stepperItemElements.push(this.stepperItemContainer);
|
|
459
|
+
var eventArgs = { element: this.stepperItemContainer, index: index };
|
|
460
|
+
this.trigger('beforeStepRender', eventArgs, function (args) {
|
|
461
|
+
_this.stepperItemList.appendChild(args.element);
|
|
462
|
+
});
|
|
463
|
+
if (isVertical) {
|
|
464
|
+
if (this.isAngular && this.template) {
|
|
465
|
+
setTimeout(function () { _this.calculateProgressBarPosition(); });
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
this.calculateProgressBarPosition();
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
if (isVertical) {
|
|
473
|
+
if (this.element.classList.contains(LABELBEFORE)) {
|
|
474
|
+
var listItems = this.stepperItemList.querySelectorAll('.' + LABEL);
|
|
475
|
+
for (var i = 0; i < listItems.length; i++) {
|
|
476
|
+
var labelEle = listItems[parseInt((i).toString(), 10)];
|
|
477
|
+
labelEle.style.setProperty('--label-width', (this.beforeLabelWidth) + 5 + 'px');
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
Stepper.prototype.createTextLabelElement = function (content, isLabelEle) {
|
|
483
|
+
if (isLabelEle === void 0) { isLabelEle = false; }
|
|
484
|
+
var spanEle = this.createElement('span', { className: isLabelEle ? LABEL : TEXTCSS + " " + TEXT });
|
|
485
|
+
spanEle.innerText = content;
|
|
486
|
+
if (isLabelEle) {
|
|
487
|
+
this.labelContainer = this.createElement('span', { className: STEPLABEL });
|
|
488
|
+
this.labelContainer.appendChild(spanEle);
|
|
489
|
+
}
|
|
490
|
+
else {
|
|
491
|
+
this.stepperItemContainer.appendChild(spanEle);
|
|
492
|
+
}
|
|
493
|
+
this.stepperItemContainer.classList.add(isLabelEle ? STEPSLABEL : STEPTEXT);
|
|
494
|
+
};
|
|
495
|
+
Stepper.prototype.calculateProgressBarPosition = function () {
|
|
496
|
+
var isBeforeLabel = (this.element.classList.contains(LABELBEFORE)) ? true : false;
|
|
497
|
+
var iconOnly = (this.stepperItemContainer.classList.contains(STEPICON) &&
|
|
498
|
+
!this.stepperItemContainer.classList.contains(STEPTEXT) &&
|
|
499
|
+
!this.stepperItemContainer.classList.contains(STEPSLABEL));
|
|
500
|
+
var textEle = (this.stepperItemContainer.querySelector('.' + TEXTCSS));
|
|
501
|
+
if (textEle) {
|
|
502
|
+
this.textEleWidth = this.textEleWidth < textEle.offsetWidth ? textEle.offsetWidth : this.textEleWidth;
|
|
503
|
+
}
|
|
504
|
+
if (isBeforeLabel) {
|
|
505
|
+
var labelWidth = this.stepperItemContainer.querySelector('.' + LABEL).offsetWidth + 15;
|
|
506
|
+
this.beforeLabelWidth = Math.max(this.beforeLabelWidth, labelWidth);
|
|
507
|
+
var iconEle = this.element.querySelector('ol').lastChild.querySelector('.' + ICONCSS);
|
|
508
|
+
var textEle_1 = this.stepperItemContainer.querySelector('.' + TEXTCSS);
|
|
509
|
+
if (iconEle || textEle_1) {
|
|
510
|
+
var itemWidth = this.beforeLabelWidth + ((this.stepperItemContainer.querySelector('.' + ICONCSS)
|
|
511
|
+
|| textEle_1).offsetWidth / 2);
|
|
512
|
+
this.progressBarPosition = Math.max(this.progressBarPosition, itemWidth);
|
|
513
|
+
}
|
|
514
|
+
else {
|
|
515
|
+
this.progressBarPosition = Math.max(this.progressBarPosition, (this.beforeLabelWidth / 2));
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
else {
|
|
519
|
+
var lastChild = this.element.querySelector('ol').lastChild;
|
|
520
|
+
var lastChildWidth = iconOnly ? this.stepperItemContainer.offsetWidth :
|
|
521
|
+
lastChild.firstChild.offsetWidth;
|
|
522
|
+
this.progressBarPosition = Math.max(this.progressBarPosition, lastChildWidth);
|
|
523
|
+
}
|
|
524
|
+
};
|
|
525
|
+
Stepper.prototype.checkValidState = function (item, stepSpan, isLabel) {
|
|
526
|
+
if (item.isValid == null) {
|
|
527
|
+
stepSpan.classList.add('e-step-content');
|
|
528
|
+
if (isLabel) {
|
|
529
|
+
stepSpan.innerHTML = item.label;
|
|
530
|
+
}
|
|
531
|
+
else {
|
|
532
|
+
stepSpan.innerHTML = item.label ? item.label : item.text;
|
|
533
|
+
}
|
|
534
|
+
this.stepperItemContainer.appendChild(stepSpan);
|
|
535
|
+
}
|
|
536
|
+
else {
|
|
537
|
+
stepSpan.classList.add(ICONCSS);
|
|
538
|
+
this.stepperItemContainer.appendChild(stepSpan);
|
|
539
|
+
this.stepperItemContainer.classList.add(STEPICON);
|
|
540
|
+
}
|
|
541
|
+
};
|
|
542
|
+
Stepper.prototype.updateCurrentLabel = function () {
|
|
543
|
+
var labelPos = this.labelPosition.toLowerCase();
|
|
544
|
+
var currentLabelPos = this.element.classList.contains(HORIZSTEP)
|
|
545
|
+
? (labelPos === 'top' ? 'before' : labelPos === 'bottom' ? 'after' : labelPos)
|
|
546
|
+
: (labelPos === 'start' ? 'before' : labelPos === 'end' ? 'after' : labelPos);
|
|
547
|
+
return currentLabelPos;
|
|
548
|
+
};
|
|
549
|
+
Stepper.prototype.updateLabelPosition = function () {
|
|
550
|
+
this.clearLabelPosition();
|
|
551
|
+
this.labelContainer.classList.add('e-label-' + this.updateCurrentLabel());
|
|
552
|
+
if (this.labelPosition.toLowerCase() === 'start' && this.orientation.toLowerCase() === 'vertical') {
|
|
553
|
+
if (this.stepperItemContainer.firstChild) {
|
|
554
|
+
this.stepperItemContainer.firstChild.before(this.labelContainer);
|
|
555
|
+
}
|
|
556
|
+
else {
|
|
557
|
+
this.stepperItemContainer.appendChild(this.labelContainer);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
else {
|
|
561
|
+
this.stepperItemContainer.appendChild(this.labelContainer);
|
|
562
|
+
}
|
|
563
|
+
this.element.classList.add('e-label-' + this.updateCurrentLabel());
|
|
564
|
+
};
|
|
565
|
+
Stepper.prototype.clearLabelPosition = function () {
|
|
566
|
+
var removeCss = this.labelContainer.classList.value.match(/(e-label-[after|before]+)/g);
|
|
567
|
+
if (removeCss) {
|
|
568
|
+
removeClass([this.labelContainer], removeCss);
|
|
569
|
+
removeClass([this.element], removeCss);
|
|
570
|
+
}
|
|
571
|
+
};
|
|
572
|
+
Stepper.prototype.checkValidStep = function () {
|
|
573
|
+
var isStepIndicator = this.element.classList.contains(STEPINDICATOR);
|
|
574
|
+
var _loop_1 = function (index) {
|
|
575
|
+
var item = this_1.steps[parseInt(index.toString(), 10)];
|
|
576
|
+
var itemElement = this_1.stepperItemElements[parseInt(index.toString(), 10)];
|
|
577
|
+
if (item.isValid !== null) {
|
|
578
|
+
var indicatorEle = void 0;
|
|
579
|
+
var iconEle_1;
|
|
580
|
+
if (isStepIndicator && !item.iconCss) {
|
|
581
|
+
indicatorEle = itemElement.querySelector('.' + ICONCSS);
|
|
582
|
+
}
|
|
583
|
+
else {
|
|
584
|
+
iconEle_1 = itemElement.querySelector('.' + ICONCSS);
|
|
585
|
+
}
|
|
586
|
+
if (!indicatorEle && isStepIndicator && this_1.renderDefault(index)) {
|
|
587
|
+
indicatorEle = itemElement.querySelector('.' + INDICATORICON);
|
|
588
|
+
}
|
|
589
|
+
var textLabelIcon = itemElement.querySelector('.e-step-validation-icon');
|
|
590
|
+
var itemIcon = item.iconCss.trim().split(' ');
|
|
591
|
+
var validStep = itemElement.classList.contains('e-step-valid');
|
|
592
|
+
var validIconClass = validStep ? 'e-check' : 'e-circle-info';
|
|
593
|
+
if (indicatorEle) {
|
|
594
|
+
indicatorEle.classList.remove(INDICATORICON);
|
|
595
|
+
if (indicatorEle.innerHTML !== '') {
|
|
596
|
+
indicatorEle.innerHTML = '';
|
|
597
|
+
}
|
|
598
|
+
indicatorEle.classList.add('e-icons', validIconClass, ICONCSS);
|
|
599
|
+
}
|
|
600
|
+
if (this_1.renderDefault(index) && !isStepIndicator) {
|
|
601
|
+
var stepSpan = itemElement.querySelector('.e-step');
|
|
602
|
+
stepSpan.classList.add('e-icons', validIconClass, ICONCSS);
|
|
603
|
+
}
|
|
604
|
+
if (iconEle_1) {
|
|
605
|
+
if (iconEle_1.innerHTML !== '') {
|
|
606
|
+
iconEle_1.innerHTML = '';
|
|
607
|
+
}
|
|
608
|
+
else if (itemIcon.length > 0) {
|
|
609
|
+
itemIcon.forEach(function (icon) { iconEle_1.classList.remove(icon); });
|
|
610
|
+
}
|
|
611
|
+
iconEle_1.classList.add('e-icons', validIconClass);
|
|
612
|
+
}
|
|
613
|
+
if (textLabelIcon) {
|
|
614
|
+
textLabelIcon.classList.add(validStep ? 'e-circle-check' : 'e-circle-info');
|
|
615
|
+
if (this_1.element.classList.contains(VERTICALSTEP)) {
|
|
616
|
+
var labelEle = itemElement.querySelector('.' + LABEL);
|
|
617
|
+
var textEle = itemElement.querySelector('.' + TEXT);
|
|
618
|
+
var itemWidth = textEle ? textEle.offsetWidth + textEle.getBoundingClientRect().left :
|
|
619
|
+
labelEle.offsetWidth + labelEle.getBoundingClientRect().left;
|
|
620
|
+
var validationIcon = itemElement.querySelector('.e-step-validation-icon');
|
|
621
|
+
validationIcon.style.setProperty('--icon-position', (itemWidth + 20) + 'px');
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
var this_1 = this;
|
|
627
|
+
for (var index = 0; index < this.steps.length; index++) {
|
|
628
|
+
_loop_1(index);
|
|
629
|
+
}
|
|
630
|
+
};
|
|
631
|
+
Stepper.prototype.updateTooltip = function () {
|
|
632
|
+
if (this.showTooltip) {
|
|
633
|
+
this.tooltipObj = new Tooltip({
|
|
634
|
+
target: '.e-step-container', windowCollision: true,
|
|
635
|
+
opensOn: 'Custom', cssClass: this.cssClass ? (STEPPERTOOLTIP + ' ' + this.cssClass) : STEPPERTOOLTIP,
|
|
636
|
+
position: 'TopCenter'
|
|
637
|
+
});
|
|
638
|
+
this.tooltipObj.appendTo(this.stepperItemList);
|
|
639
|
+
}
|
|
640
|
+
else {
|
|
641
|
+
if (!isNullOrUndefined(this.tooltipObj)) {
|
|
642
|
+
this.tooltipObj.destroy();
|
|
643
|
+
this.tooltipObj = null;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
};
|
|
647
|
+
Stepper.prototype.wireItemsEvents = function (itemElement, index) {
|
|
648
|
+
EventHandler.add(itemElement, 'click', this.linearModeHandler.bind(this, itemElement, index), this);
|
|
649
|
+
EventHandler.add(itemElement, 'mouseover', this.openStepperTooltip.bind(this, index), this);
|
|
650
|
+
EventHandler.add(itemElement, 'mouseleave', this.closeStepperTooltip, this);
|
|
651
|
+
};
|
|
652
|
+
Stepper.prototype.unWireItemsEvents = function () {
|
|
653
|
+
for (var index = 0; index < this.steps.length; index++) {
|
|
654
|
+
var itemElement = this.stepperItemElements[parseInt(index.toString(), 10)];
|
|
655
|
+
EventHandler.remove(itemElement, 'click', this.linearModeHandler.bind(this, itemElement, index));
|
|
656
|
+
EventHandler.remove(itemElement, 'mouseover', this.openStepperTooltip.bind(this, index));
|
|
657
|
+
EventHandler.remove(itemElement, 'mouseleave', this.closeStepperTooltip);
|
|
658
|
+
}
|
|
659
|
+
};
|
|
660
|
+
Stepper.prototype.linearModeHandler = function (itemElement, index, e) {
|
|
661
|
+
if (this.linear) {
|
|
662
|
+
var linearModeValue = index - this.activeStep;
|
|
663
|
+
if (Math.abs(linearModeValue) === 1) {
|
|
664
|
+
this.stepClickHandler(index, e, itemElement);
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
else {
|
|
668
|
+
this.stepClickHandler(index, e, itemElement);
|
|
669
|
+
}
|
|
670
|
+
};
|
|
671
|
+
Stepper.prototype.openStepperTooltip = function (index) {
|
|
672
|
+
var currentStep = this.steps[parseInt(index.toString(), 10)];
|
|
673
|
+
if (this.showTooltip && (currentStep.label || currentStep.text)) {
|
|
674
|
+
if (!this.tooltipOpen) {
|
|
675
|
+
this.updateTooltipContent(index);
|
|
676
|
+
this.tooltipObj.open(this.stepperItemElements[parseInt((index).toString(), 10)]);
|
|
677
|
+
if (this.stepType.toLocaleLowerCase() !== 'label' && ((this.stepType.toLocaleLowerCase() === 'indicator') ||
|
|
678
|
+
(currentStep.label !== '' && currentStep.iconCss !== '') || (currentStep.label === null && currentStep.iconCss === '' && currentStep.text !== ''))) {
|
|
679
|
+
var tooltipPopupClass = currentStep.status.toLowerCase() === 'inprogress' ?
|
|
680
|
+
STEPPERTOOLTIP + " " + STEPPERIPROGRESSTIP + " " + (this.cssClass ? this.cssClass : '') : STEPPERTOOLTIP + " " + (this.cssClass ? this.cssClass : '');
|
|
681
|
+
this.tooltipObj.setProperties({ cssClass: tooltipPopupClass.trim() });
|
|
682
|
+
}
|
|
683
|
+
this.tooltipOpen = true;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
};
|
|
687
|
+
Stepper.prototype.closeStepperTooltip = function () {
|
|
688
|
+
if (this.tooltipOpen) {
|
|
689
|
+
this.tooltipObj.close();
|
|
690
|
+
this.tooltipOpen = false;
|
|
691
|
+
}
|
|
692
|
+
};
|
|
693
|
+
Stepper.prototype.updateTooltipContent = function (index) {
|
|
694
|
+
if (this.showTooltip) {
|
|
695
|
+
if (this.isReact) {
|
|
696
|
+
this.clearTemplate(['stepperTooltipTemplate']);
|
|
697
|
+
}
|
|
698
|
+
var content = void 0;
|
|
699
|
+
var currentStep = this.steps[parseInt(index.toString(), 10)];
|
|
700
|
+
if (this.tooltipTemplate) {
|
|
701
|
+
content = this.createElement('span', { className: 'e-stepper-tooltip-content' });
|
|
702
|
+
var templateFunction = this.getTemplateFunction(this.tooltipTemplate);
|
|
703
|
+
append(templateFunction({ value: currentStep }, this, 'stepperTooltipTemplate', (this.element.id + 'tooltipTemplate'), this.isStringTemplate), content);
|
|
704
|
+
this.tooltipObj.setProperties({ content: content }, true);
|
|
705
|
+
}
|
|
706
|
+
else {
|
|
707
|
+
var content_1 = currentStep.label ? currentStep.label : currentStep.text;
|
|
708
|
+
this.tooltipObj.setProperties({ content: initializeCSPTemplate(function () { return content_1; }) }, true);
|
|
709
|
+
}
|
|
710
|
+
this.renderReactTemplates();
|
|
711
|
+
}
|
|
712
|
+
};
|
|
713
|
+
Stepper.prototype.stepClickHandler = function (index, e, itemElement) {
|
|
714
|
+
var clickEventArgs = {
|
|
715
|
+
element: itemElement, event: e, previousStep: this.activeStep,
|
|
716
|
+
activeStep: index
|
|
717
|
+
};
|
|
718
|
+
this.trigger('stepClick', clickEventArgs);
|
|
719
|
+
this.navigateToStep(index, e, itemElement, true);
|
|
720
|
+
};
|
|
721
|
+
Stepper.prototype.updateTemplateFunction = function () {
|
|
722
|
+
this.templateFunction = this.template ? this.getTemplateFunction(this.template) : null;
|
|
723
|
+
};
|
|
724
|
+
Stepper.prototype.renderItemContent = function (index, isrerender) {
|
|
725
|
+
var listItems = this.stepperItemList.querySelectorAll('li');
|
|
726
|
+
if (isrerender) {
|
|
727
|
+
this.removeItemContent(listItems[parseInt((index).toString(), 10)]);
|
|
728
|
+
}
|
|
729
|
+
if (this.template) {
|
|
730
|
+
if (isrerender) {
|
|
731
|
+
listItems[parseInt((index).toString(), 10)].classList.add(TEMPLATE);
|
|
732
|
+
}
|
|
733
|
+
else {
|
|
734
|
+
this.stepperItemContainer.classList.add(TEMPLATE);
|
|
735
|
+
}
|
|
736
|
+
var item = this.steps[parseInt(index.toString(), 10)];
|
|
737
|
+
append(this.templateFunction({ step: item, currentStep: index }, this, 'stepperTemplate', (this.element.id + '_stepperTemplate'), this.isStringTemplate), isrerender ? listItems[parseInt((index).toString(), 10)] : this.stepperItemContainer);
|
|
738
|
+
}
|
|
739
|
+
this.renderReactTemplates();
|
|
740
|
+
};
|
|
741
|
+
Stepper.prototype.removeItemContent = function (ele) {
|
|
742
|
+
ele.classList.remove(TEMPLATE);
|
|
743
|
+
var firstChild = ele.firstElementChild;
|
|
744
|
+
for (var i = 0; i < ele.childElementCount; i++) {
|
|
745
|
+
firstChild.remove();
|
|
746
|
+
}
|
|
747
|
+
};
|
|
748
|
+
Stepper.prototype.updateContent = function () {
|
|
749
|
+
if (this.isReact) {
|
|
750
|
+
this.clearTemplate(['stepperTemplate']);
|
|
751
|
+
}
|
|
752
|
+
for (var i = 0; i < this.steps.length; i++) {
|
|
753
|
+
this.renderItemContent(i, true);
|
|
754
|
+
}
|
|
755
|
+
};
|
|
756
|
+
/**
|
|
757
|
+
* Gets template content based on the template property value.
|
|
758
|
+
*
|
|
759
|
+
* @param {string | Function} template - Template property value.
|
|
760
|
+
* @returns {Function} - Return template function.
|
|
761
|
+
* @hidden
|
|
762
|
+
*/
|
|
763
|
+
Stepper.prototype.getTemplateFunction = function (template) {
|
|
764
|
+
if (typeof template === 'string') {
|
|
765
|
+
var content = '';
|
|
766
|
+
try {
|
|
767
|
+
var tempEle = select(template);
|
|
768
|
+
if (tempEle) {
|
|
769
|
+
//Return innerHTML incase of jsrenderer script else outerHTML
|
|
770
|
+
content = tempEle.tagName === 'SCRIPT' ? tempEle.innerHTML : tempEle.outerHTML;
|
|
771
|
+
}
|
|
772
|
+
else {
|
|
773
|
+
content = template;
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
catch (e) {
|
|
777
|
+
content = template;
|
|
778
|
+
}
|
|
779
|
+
return compile(content);
|
|
780
|
+
}
|
|
781
|
+
else {
|
|
782
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
783
|
+
return compile(template);
|
|
784
|
+
}
|
|
785
|
+
};
|
|
786
|
+
Stepper.prototype.navigateToStep = function (index, e, itemElement, isInteracted, isUpdated) {
|
|
787
|
+
var _this = this;
|
|
788
|
+
var eventArgs = {
|
|
789
|
+
element: itemElement, event: e, isInteracted: isInteracted,
|
|
790
|
+
previousStep: this.activeStep, activeStep: index, cancel: false
|
|
791
|
+
};
|
|
792
|
+
if (isUpdated !== false) {
|
|
793
|
+
var previousStep_1 = this.activeStep;
|
|
794
|
+
this.trigger('stepChanging', eventArgs, function (args) {
|
|
795
|
+
if (args.cancel) {
|
|
796
|
+
return;
|
|
797
|
+
}
|
|
798
|
+
_this.navigationHandler(index);
|
|
799
|
+
var eventArgs = {
|
|
800
|
+
element: itemElement, event: e, isInteracted: isInteracted,
|
|
801
|
+
previousStep: previousStep_1, activeStep: _this.activeStep
|
|
802
|
+
};
|
|
803
|
+
_this.trigger('stepChanged', eventArgs);
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
else {
|
|
807
|
+
this.navigationHandler(index);
|
|
808
|
+
}
|
|
809
|
+
};
|
|
810
|
+
Stepper.prototype.navigationHandler = function (index, stepStatus, isUpdated) {
|
|
811
|
+
index = Math.min(index, this.steps.length - 1);
|
|
812
|
+
var Itemslength = this.stepperItemElements.length;
|
|
813
|
+
if (index >= 0 && index < Itemslength - 1) {
|
|
814
|
+
index = this.stepperItemElements[parseInt(index.toString(), 10)].classList.contains(DISABLED) ? this.activeStep : index;
|
|
815
|
+
}
|
|
816
|
+
var prevOnChange = this.isProtectedOnChange;
|
|
817
|
+
this.isProtectedOnChange = true;
|
|
818
|
+
this.activeStep = parseInt(index.toString(), 10);
|
|
819
|
+
this.isProtectedOnChange = prevOnChange;
|
|
820
|
+
for (var i = 0; i < this.steps.length; i++) {
|
|
821
|
+
var itemElement = this.stepperItemElements[parseInt(i.toString(), 10)];
|
|
822
|
+
var item = this.steps[parseInt(i.toString(), 10)];
|
|
823
|
+
itemElement.classList.remove(SELECTED, INPROGRESS, COMPLETED, NOTSTARTED);
|
|
824
|
+
if (i === this.activeStep) {
|
|
825
|
+
itemElement.classList.add(SELECTED);
|
|
826
|
+
}
|
|
827
|
+
if (this.activeStep >= 0 && this.progressbar) {
|
|
828
|
+
if (this.element.classList.contains(HORIZSTEP)) {
|
|
829
|
+
this.calculateProgressbarPos();
|
|
830
|
+
}
|
|
831
|
+
else {
|
|
832
|
+
this.progressbar.style.setProperty(PROGRESSVALUE, ((100 / (this.steps.length - 1)) * index) + '%');
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
else if (this.activeStep < 0 && this.progressbar) {
|
|
836
|
+
this.progressbar.style.setProperty(PROGRESSVALUE, 0 + '%');
|
|
837
|
+
}
|
|
838
|
+
if (i === this.activeStep) {
|
|
839
|
+
itemElement.classList.add(INPROGRESS);
|
|
840
|
+
}
|
|
841
|
+
else if (this.activeStep > 0 && i < this.activeStep) {
|
|
842
|
+
itemElement.classList.add(COMPLETED);
|
|
843
|
+
}
|
|
844
|
+
else {
|
|
845
|
+
itemElement.classList.add(NOTSTARTED);
|
|
846
|
+
}
|
|
847
|
+
if (itemElement.classList.contains(INPROGRESS)) {
|
|
848
|
+
attributes(itemElement, { 'tabindex': '0', 'aria-current': 'true' });
|
|
849
|
+
}
|
|
850
|
+
else {
|
|
851
|
+
attributes(itemElement, { 'tabindex': '-1', 'aria-current': 'false' });
|
|
852
|
+
}
|
|
853
|
+
var prevOnChange_1 = this.isProtectedOnChange;
|
|
854
|
+
this.isProtectedOnChange = true;
|
|
855
|
+
if (isUpdated !== false) {
|
|
856
|
+
if (i < this.activeStep || (this.steps.length - 1 === this.activeStep && item.status.toLowerCase() === 'completed')) {
|
|
857
|
+
item.status = StepStatus.Completed;
|
|
858
|
+
}
|
|
859
|
+
else if (i === this.activeStep) {
|
|
860
|
+
item.status = StepStatus.InProgress;
|
|
861
|
+
}
|
|
862
|
+
else if (i > this.activeStep) {
|
|
863
|
+
item.status = StepStatus.NotStarted;
|
|
864
|
+
}
|
|
865
|
+
if (stepStatus && this.activeStep === i) {
|
|
866
|
+
item.status = stepStatus;
|
|
867
|
+
}
|
|
868
|
+
if (item.status.toLowerCase() === 'completed') {
|
|
869
|
+
itemElement.classList.remove(SELECTED, INPROGRESS, NOTSTARTED);
|
|
870
|
+
itemElement.classList.add(COMPLETED);
|
|
871
|
+
}
|
|
872
|
+
if (item.status.toLowerCase() === 'notstarted') {
|
|
873
|
+
itemElement.classList.remove(SELECTED, INPROGRESS, COMPLETED);
|
|
874
|
+
itemElement.classList.add(NOTSTARTED);
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
this.isProtectedOnChange = prevOnChange_1;
|
|
878
|
+
this.updateIndicatorStatus(i, itemElement);
|
|
879
|
+
}
|
|
880
|
+
this.updateStepInteractions();
|
|
881
|
+
};
|
|
882
|
+
Stepper.prototype.calculateProgressbarPos = function () {
|
|
883
|
+
var _this = this;
|
|
884
|
+
if ((this.element.classList.contains(LABELBEFORE) || this.element.classList.contains(LABELAFTER)) &&
|
|
885
|
+
!this.element.classList.contains(STEPINDICATOR) &&
|
|
886
|
+
this.stepperItemElements[parseInt(this.activeStep.toString(), 10)].classList.contains(STEPICON)) {
|
|
887
|
+
var progressPos = this.element.querySelector('.e-stepper-progressbar');
|
|
888
|
+
var selectedEle = this.stepperItemElements[parseInt(this.activeStep.toString(), 10)]
|
|
889
|
+
.firstChild;
|
|
890
|
+
var value = this.activeStep === 0 ? 0 : (selectedEle.offsetLeft - progressPos.offsetLeft +
|
|
891
|
+
(selectedEle.offsetWidth / 2)) / progressPos.offsetWidth * 100;
|
|
892
|
+
if (this.element.classList.contains(RTL)) {
|
|
893
|
+
value = (progressPos.getBoundingClientRect().right - selectedEle.getBoundingClientRect().right +
|
|
894
|
+
(selectedEle.offsetWidth / 2)) / progressPos.offsetWidth * 100;
|
|
895
|
+
this.progressbar.style.setProperty(PROGRESSVALUE, (value) + '%');
|
|
896
|
+
}
|
|
897
|
+
else {
|
|
898
|
+
this.progressbar.style.setProperty(PROGRESSVALUE, (value) + '%');
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
else {
|
|
902
|
+
var totalLiWidth_1 = 0;
|
|
903
|
+
var activeLiWidth_1 = 0;
|
|
904
|
+
this.stepperItemElements.forEach(function (element, index) {
|
|
905
|
+
var itemWidth = element.offsetWidth;
|
|
906
|
+
totalLiWidth_1 += itemWidth;
|
|
907
|
+
if (index <= _this.activeStep) {
|
|
908
|
+
activeLiWidth_1 += (index === _this.activeStep && index !== 0) ? (itemWidth / 2) : itemWidth;
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
var spaceWidth = (this.stepperItemList.offsetWidth - totalLiWidth_1) /
|
|
912
|
+
(this.stepperItemElements.length - 1);
|
|
913
|
+
var progressValue = ((activeLiWidth_1 + (spaceWidth * this.activeStep)) /
|
|
914
|
+
this.stepperItemList.offsetWidth) * 100;
|
|
915
|
+
this.progressbar.style.setProperty(PROGRESSVALUE, (progressValue) + '%');
|
|
916
|
+
}
|
|
917
|
+
};
|
|
918
|
+
Stepper.prototype.updateIndicatorStatus = function (index, itemElement) {
|
|
919
|
+
if (this.renderDefault(index) && this.element.classList.contains(STEPINDICATOR) && !itemElement.classList.contains('e-step-valid')
|
|
920
|
+
&& !itemElement.classList.contains('e-step-error')) {
|
|
921
|
+
if (itemElement.classList.contains(COMPLETED)) {
|
|
922
|
+
itemElement.firstChild.classList.remove('e-icons', 'e-step-indicator');
|
|
923
|
+
itemElement.firstChild.classList.add(ICONCSS, 'e-icons', 'e-check');
|
|
924
|
+
}
|
|
925
|
+
else if (itemElement.classList.contains(INPROGRESS) || itemElement.classList.contains(NOTSTARTED)) {
|
|
926
|
+
itemElement.firstChild.classList.remove(ICONCSS, 'e-icons', 'e-check');
|
|
927
|
+
itemElement.firstChild.classList.add('e-icons', 'e-step-indicator');
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
};
|
|
931
|
+
Stepper.prototype.updateStepInteractions = function () {
|
|
932
|
+
var _this = this;
|
|
933
|
+
this.element.classList.toggle(LINEARSTEP, this.linear);
|
|
934
|
+
this.stepperItemElements.forEach(function (step, index) {
|
|
935
|
+
step.classList.toggle(PREVSTEP, (index === _this.activeStep - 1));
|
|
936
|
+
step.classList.toggle(NEXTSTEP, (index === _this.activeStep + 1));
|
|
937
|
+
});
|
|
938
|
+
};
|
|
939
|
+
Stepper.prototype.removeItemElements = function () {
|
|
940
|
+
for (var i = 0; i < this.stepperItemElements.length; i++) {
|
|
941
|
+
remove(this.stepperItemElements[parseInt(i.toString(), 10)]);
|
|
942
|
+
}
|
|
943
|
+
this.stepperItemElements = [];
|
|
944
|
+
};
|
|
945
|
+
/**
|
|
946
|
+
* Move to next step from current step in Stepper.
|
|
947
|
+
*
|
|
948
|
+
* @returns {void}
|
|
949
|
+
*/
|
|
950
|
+
Stepper.prototype.nextStep = function () {
|
|
951
|
+
if (this.activeStep !== this.steps.length - 1) {
|
|
952
|
+
this.navigateToStep(this.activeStep + 1, null, null, false);
|
|
953
|
+
}
|
|
954
|
+
};
|
|
955
|
+
/**
|
|
956
|
+
* Move to previous step from current step in Stepper.
|
|
957
|
+
*
|
|
958
|
+
* @returns {void}
|
|
959
|
+
*/
|
|
960
|
+
Stepper.prototype.previousStep = function () {
|
|
961
|
+
if (this.activeStep > 0) {
|
|
962
|
+
this.navigateToStep(this.activeStep - 1, null, null, false);
|
|
963
|
+
}
|
|
964
|
+
};
|
|
965
|
+
/**
|
|
966
|
+
* Reset the state of the Stepper and move to the first step.
|
|
967
|
+
*
|
|
968
|
+
* @returns {void}
|
|
969
|
+
*/
|
|
970
|
+
Stepper.prototype.reset = function () {
|
|
971
|
+
if (this.activeStep === 0) {
|
|
972
|
+
this.updateStepInteractions();
|
|
973
|
+
}
|
|
974
|
+
else {
|
|
975
|
+
var isDisabled = this.stepperItemElements[0].classList.contains(DISABLED) ? true : false;
|
|
976
|
+
this.navigateToStep(isDisabled ? -1 : 0, null, null, false);
|
|
977
|
+
}
|
|
978
|
+
};
|
|
979
|
+
/**
|
|
980
|
+
* Refreshes the position of the progress bar programmatically when the dimensions of the parent container are changed.
|
|
981
|
+
*
|
|
982
|
+
* @returns {void}
|
|
983
|
+
*/
|
|
984
|
+
Stepper.prototype.refreshProgressbar = function () {
|
|
985
|
+
if (this.stepperItemList && this.progressbar) {
|
|
986
|
+
this.setProgressPosition(this.element);
|
|
987
|
+
}
|
|
988
|
+
this.navigateToStep(this.activeStep, null, null, false, false);
|
|
989
|
+
};
|
|
990
|
+
Stepper.prototype.updateElementClassArray = function () {
|
|
991
|
+
var classArray = [RTL, READONLY, 'e-steps-focus', LABELAFTER, LABELBEFORE, 'e-label-top',
|
|
992
|
+
'e-label-bottom', 'e-label-start', 'e-label-end', STEPINDICATOR, LABELINDICATOR, VERTICALSTEP, HORIZSTEP, LINEARSTEP];
|
|
993
|
+
removeClass([this.element], classArray);
|
|
994
|
+
};
|
|
995
|
+
/**
|
|
996
|
+
* Destroy the stepper control.
|
|
997
|
+
*
|
|
998
|
+
* @returns {void}
|
|
999
|
+
*/
|
|
1000
|
+
Stepper.prototype.destroy = function () {
|
|
1001
|
+
_super.prototype.destroy.call(this);
|
|
1002
|
+
this.unWireEvents();
|
|
1003
|
+
this.unWireItemsEvents();
|
|
1004
|
+
// unwires the events and detach the li elements
|
|
1005
|
+
this.removeItemElements();
|
|
1006
|
+
this.clearTemplate();
|
|
1007
|
+
if (this.stepperItemList) {
|
|
1008
|
+
remove(this.stepperItemList);
|
|
1009
|
+
}
|
|
1010
|
+
this.stepperItemList = null;
|
|
1011
|
+
if (this.progressStep) {
|
|
1012
|
+
remove(this.progressStep);
|
|
1013
|
+
}
|
|
1014
|
+
this.progressStep = null;
|
|
1015
|
+
this.progressbar = null;
|
|
1016
|
+
this.progressBarPosition = null;
|
|
1017
|
+
this.stepperItemContainer = null;
|
|
1018
|
+
this.textContainer = null;
|
|
1019
|
+
this.labelContainer = null;
|
|
1020
|
+
this.updateElementClassArray();
|
|
1021
|
+
this.element.removeAttribute('aria-label');
|
|
1022
|
+
if (this.showTooltip) {
|
|
1023
|
+
this.tooltipObj.destroy();
|
|
1024
|
+
this.tooltipObj = null;
|
|
1025
|
+
}
|
|
1026
|
+
if (this.keyboardModuleStepper) {
|
|
1027
|
+
this.keyboardModuleStepper.destroy();
|
|
1028
|
+
}
|
|
1029
|
+
this.keyboardModuleStepper = null;
|
|
1030
|
+
};
|
|
1031
|
+
Stepper.prototype.wireKeyboardEvent = function () {
|
|
1032
|
+
this.keyboardModuleStepper = new KeyboardEvents(this.element, {
|
|
1033
|
+
keyAction: this.keyActionHandler.bind(this),
|
|
1034
|
+
keyConfigs: this.keyConfigs,
|
|
1035
|
+
eventName: 'keydown'
|
|
1036
|
+
});
|
|
1037
|
+
};
|
|
1038
|
+
Stepper.prototype.keyActionHandler = function (e) {
|
|
1039
|
+
if (this.readOnly) {
|
|
1040
|
+
return;
|
|
1041
|
+
}
|
|
1042
|
+
switch (e.action) {
|
|
1043
|
+
case 'uparrow':
|
|
1044
|
+
case 'downarrow':
|
|
1045
|
+
case 'leftarrow':
|
|
1046
|
+
case 'rightarrow':
|
|
1047
|
+
case 'tab':
|
|
1048
|
+
case 'shiftTab':
|
|
1049
|
+
this.handleNavigation(this.enableRtl && this.element.classList.contains(HORIZSTEP) ? (e.action === 'leftarrow' || e.action === 'tab' || e.action === 'uparrow') : (e.action === 'rightarrow' || e.action === 'tab' || e.action === 'downarrow'), e);
|
|
1050
|
+
break;
|
|
1051
|
+
case 'space':
|
|
1052
|
+
case 'enter':
|
|
1053
|
+
case 'escape':
|
|
1054
|
+
this.handleNavigation(null, e);
|
|
1055
|
+
break;
|
|
1056
|
+
case 'home':
|
|
1057
|
+
case 'end':
|
|
1058
|
+
this.handleNavigation(null, e, this.enableRtl);
|
|
1059
|
+
break;
|
|
1060
|
+
}
|
|
1061
|
+
};
|
|
1062
|
+
Stepper.prototype.handleNavigation = function (isNextStep, e, isRTL) {
|
|
1063
|
+
this.isKeyNavFocus = true;
|
|
1064
|
+
this.element.classList.add('e-steps-focus');
|
|
1065
|
+
var focusedEle = this.element.querySelector('.' + FOCUS);
|
|
1066
|
+
if (!focusedEle) {
|
|
1067
|
+
focusedEle = this.element.querySelector('.' + SELECTED);
|
|
1068
|
+
}
|
|
1069
|
+
var stepItems = Array.prototype.slice.call(this.stepperItemList.children);
|
|
1070
|
+
var index = stepItems.indexOf(focusedEle);
|
|
1071
|
+
if (e.action === 'tab' || e.action === 'shiftTab' || e.action === 'downarrow' || e.action === 'uparrow' || e.action === 'space' || e.action === 'home' || e.action === 'end') {
|
|
1072
|
+
if ((e.action === 'tab' && index === stepItems.length - 1) || (e.action === 'shiftTab' && index === 0)) {
|
|
1073
|
+
if (focusedEle.classList.contains(FOCUS)) {
|
|
1074
|
+
this.updateStepFocus();
|
|
1075
|
+
return;
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
else {
|
|
1079
|
+
e.preventDefault();
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
if (e.action === 'escape') {
|
|
1083
|
+
stepItems[parseInt(index.toString(), 10)].classList.remove(FOCUS);
|
|
1084
|
+
this.element.classList.remove('e-steps-focus');
|
|
1085
|
+
}
|
|
1086
|
+
if (!(e.action === 'space' || e.action === 'enter')) {
|
|
1087
|
+
var prevIndex = index;
|
|
1088
|
+
index = isNextStep ? index + 1 : index - 1;
|
|
1089
|
+
while ((index >= 0 && index < stepItems.length) && stepItems[parseInt(index.toString(), 10)].classList.contains(DISABLED)) {
|
|
1090
|
+
index = isNextStep ? index + 1 : index - 1;
|
|
1091
|
+
}
|
|
1092
|
+
index = (index < 0) ? 0 : (index > stepItems.length - 1) ? stepItems.length - 1 : index;
|
|
1093
|
+
if (stepItems[parseInt(prevIndex.toString(), 10)].classList.contains(FOCUS)) {
|
|
1094
|
+
stepItems[parseInt(prevIndex.toString(), 10)].classList.remove(FOCUS);
|
|
1095
|
+
}
|
|
1096
|
+
if ((e.action === 'home' || e.action === 'end')) {
|
|
1097
|
+
if (e.action === 'home') {
|
|
1098
|
+
index = isRTL ? stepItems.length - 1 : 0;
|
|
1099
|
+
}
|
|
1100
|
+
else {
|
|
1101
|
+
index = isRTL ? 0 : stepItems.length - 1;
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
if (index >= 0 && index < stepItems.length) {
|
|
1105
|
+
stepItems[parseInt(index.toString(), 10)].classList.add(FOCUS);
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
else if ((e.action === 'space' || e.action === 'enter')) {
|
|
1109
|
+
var isupdateFocus = false;
|
|
1110
|
+
if (this.linear) {
|
|
1111
|
+
var linearModeValue = this.activeStep - index;
|
|
1112
|
+
if (Math.abs(linearModeValue) === 1) {
|
|
1113
|
+
this.navigateToStep(index, null, null, true);
|
|
1114
|
+
isupdateFocus = true;
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
else {
|
|
1118
|
+
this.navigateToStep(index, null, null, true);
|
|
1119
|
+
isupdateFocus = true;
|
|
1120
|
+
}
|
|
1121
|
+
if (isupdateFocus) {
|
|
1122
|
+
this.updateStepFocus();
|
|
1123
|
+
this.stepperItemElements[index].focus();
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
};
|
|
1127
|
+
Stepper.prototype.renderStepperItems = function (isUpdate, isStepType) {
|
|
1128
|
+
this.updateElementClassArray();
|
|
1129
|
+
this.removeItemElements();
|
|
1130
|
+
this.element.querySelector('.e-stepper-progressbar').remove();
|
|
1131
|
+
if (isUpdate) {
|
|
1132
|
+
this.updatePosition();
|
|
1133
|
+
}
|
|
1134
|
+
if (isStepType) {
|
|
1135
|
+
this.updateStepType();
|
|
1136
|
+
}
|
|
1137
|
+
if (this.readOnly && !this.element.classList.contains(READONLY)) {
|
|
1138
|
+
this.element.classList.add(READONLY);
|
|
1139
|
+
}
|
|
1140
|
+
if (this.enableRtl && !this.element.classList.contains(RTL)) {
|
|
1141
|
+
this.element.classList.add(RTL);
|
|
1142
|
+
}
|
|
1143
|
+
this.updateOrientaion(this.element);
|
|
1144
|
+
this.renderItems();
|
|
1145
|
+
this.renderProgressBar(this.element);
|
|
1146
|
+
this.checkValidStep();
|
|
1147
|
+
this.updateAnimation();
|
|
1148
|
+
this.navigateToStep(this.activeStep, null, this.stepperItemElements[this.activeStep], true);
|
|
1149
|
+
};
|
|
1150
|
+
Stepper.prototype.updateDynamicSteps = function (steps, prevSteps) {
|
|
1151
|
+
if (!(steps instanceof Array && prevSteps instanceof Array)) {
|
|
1152
|
+
var stepCounts = Object.keys(steps);
|
|
1153
|
+
for (var i = 0; i < stepCounts.length; i++) {
|
|
1154
|
+
var index = parseInt(Object.keys(steps)[i], 10);
|
|
1155
|
+
var changedPropsCount = Object.keys(steps[index]).length;
|
|
1156
|
+
for (var j = 0; j < changedPropsCount; j++) {
|
|
1157
|
+
var property = Object.keys(steps[index])[j];
|
|
1158
|
+
if (property === 'status') {
|
|
1159
|
+
if (this.activeStep === index) {
|
|
1160
|
+
this.navigationHandler(index, steps[index].status);
|
|
1161
|
+
}
|
|
1162
|
+
else {
|
|
1163
|
+
this.steps[index].status = prevSteps[index].status;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
else {
|
|
1167
|
+
this.removeItemElements();
|
|
1168
|
+
this.renderItems();
|
|
1169
|
+
this.updateStepperStatus();
|
|
1170
|
+
}
|
|
1171
|
+
if (property === 'label' && (this.steps[index].iconCss || this.steps[index].text) &&
|
|
1172
|
+
this.stepType.toLowerCase() === 'default') {
|
|
1173
|
+
this.refreshProgressbar();
|
|
1174
|
+
}
|
|
1175
|
+
this.updateStepInteractions();
|
|
1176
|
+
this.checkValidStep();
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
else {
|
|
1181
|
+
this.renderStepperItems(true, true);
|
|
1182
|
+
}
|
|
1183
|
+
};
|
|
1184
|
+
Stepper.prototype.updateDynamicActiveStep = function (activeStep, preActiveStep) {
|
|
1185
|
+
this.activeStep = (activeStep > this.steps.length - 1 || activeStep < -1) ? preActiveStep : this.activeStep;
|
|
1186
|
+
if (this.activeStep >= 0 && this.stepperItemElements[parseInt(this.activeStep.toString(), 10)].classList.contains(DISABLED)) {
|
|
1187
|
+
this.activeStep = preActiveStep;
|
|
1188
|
+
}
|
|
1189
|
+
if (this.linear) {
|
|
1190
|
+
var linearModeValue = preActiveStep - this.activeStep;
|
|
1191
|
+
if (Math.abs(linearModeValue) === 1) {
|
|
1192
|
+
this.navigateToStep(this.activeStep, null, null, true);
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
else {
|
|
1196
|
+
this.navigateToStep(this.activeStep, null, this.stepperItemElements[this.activeStep], true);
|
|
1197
|
+
}
|
|
1198
|
+
};
|
|
1199
|
+
Stepper.prototype.updateDynamicCssClass = function (cssClass, prevCssClass) {
|
|
1200
|
+
if (prevCssClass) {
|
|
1201
|
+
removeClass([this.element], prevCssClass.trim().split(' '));
|
|
1202
|
+
}
|
|
1203
|
+
if (cssClass) {
|
|
1204
|
+
addClass([this.element], cssClass.trim().split(' '));
|
|
1205
|
+
}
|
|
1206
|
+
if (this.tooltipObj) {
|
|
1207
|
+
this.tooltipObj.setProperties({ cssClass: this.cssClass ? (STEPPERTOOLTIP + ' ' + this.cssClass) : STEPPERTOOLTIP });
|
|
1208
|
+
}
|
|
1209
|
+
};
|
|
1210
|
+
/**
|
|
1211
|
+
* Called internally if any of the property value changed.
|
|
1212
|
+
*
|
|
1213
|
+
* @param {StepperModel} newProp - Specifies new properties
|
|
1214
|
+
* @param {StepperModel} oldProp - Specifies old properties
|
|
1215
|
+
* @returns {void}
|
|
1216
|
+
* @private
|
|
1217
|
+
*/
|
|
1218
|
+
Stepper.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
1219
|
+
for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
|
|
1220
|
+
var prop = _a[_i];
|
|
1221
|
+
switch (prop) {
|
|
1222
|
+
case 'steps': {
|
|
1223
|
+
this.updateDynamicSteps(newProp.steps, oldProp.steps);
|
|
1224
|
+
break;
|
|
1225
|
+
}
|
|
1226
|
+
case 'orientation':
|
|
1227
|
+
this.updateOrientaion(this.element);
|
|
1228
|
+
this.renderStepperItems(true);
|
|
1229
|
+
break;
|
|
1230
|
+
case 'activeStep':
|
|
1231
|
+
this.updateDynamicActiveStep(newProp.activeStep, oldProp.activeStep);
|
|
1232
|
+
break;
|
|
1233
|
+
case 'enableRtl':
|
|
1234
|
+
this.element.classList[this.enableRtl ? 'add' : 'remove'](RTL);
|
|
1235
|
+
break;
|
|
1236
|
+
case 'readOnly':
|
|
1237
|
+
this.element.classList[this.readOnly ? 'add' : 'remove'](READONLY);
|
|
1238
|
+
break;
|
|
1239
|
+
case 'cssClass':
|
|
1240
|
+
this.updateDynamicCssClass(newProp.cssClass, oldProp.cssClass);
|
|
1241
|
+
break;
|
|
1242
|
+
case 'labelPosition':
|
|
1243
|
+
this.renderStepperItems(true);
|
|
1244
|
+
break;
|
|
1245
|
+
case 'showTooltip':
|
|
1246
|
+
this.updateTooltip();
|
|
1247
|
+
break;
|
|
1248
|
+
case 'stepType':
|
|
1249
|
+
this.renderStepperItems(true, true);
|
|
1250
|
+
break;
|
|
1251
|
+
case 'template':
|
|
1252
|
+
this.updateTemplateFunction();
|
|
1253
|
+
this.updateContent();
|
|
1254
|
+
break;
|
|
1255
|
+
case 'animation':
|
|
1256
|
+
this.updateAnimation();
|
|
1257
|
+
break;
|
|
1258
|
+
case 'linear':
|
|
1259
|
+
this.updateStepInteractions();
|
|
1260
|
+
break;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
};
|
|
1264
|
+
__decorate([
|
|
1265
|
+
Property(0)
|
|
1266
|
+
], Stepper.prototype, "activeStep", void 0);
|
|
1267
|
+
__decorate([
|
|
1268
|
+
Complex({}, StepperAnimationSettings)
|
|
1269
|
+
], Stepper.prototype, "animation", void 0);
|
|
1270
|
+
__decorate([
|
|
1271
|
+
Property(false)
|
|
1272
|
+
], Stepper.prototype, "linear", void 0);
|
|
1273
|
+
__decorate([
|
|
1274
|
+
Property(false)
|
|
1275
|
+
], Stepper.prototype, "showTooltip", void 0);
|
|
1276
|
+
__decorate([
|
|
1277
|
+
Property('')
|
|
1278
|
+
], Stepper.prototype, "template", void 0);
|
|
1279
|
+
__decorate([
|
|
1280
|
+
Property('')
|
|
1281
|
+
], Stepper.prototype, "tooltipTemplate", void 0);
|
|
1282
|
+
__decorate([
|
|
1283
|
+
Property(StepLabelPosition.Bottom)
|
|
1284
|
+
], Stepper.prototype, "labelPosition", void 0);
|
|
1285
|
+
__decorate([
|
|
1286
|
+
Property(StepType.Default)
|
|
1287
|
+
], Stepper.prototype, "stepType", void 0);
|
|
1288
|
+
__decorate([
|
|
1289
|
+
Event()
|
|
1290
|
+
], Stepper.prototype, "stepChanged", void 0);
|
|
1291
|
+
__decorate([
|
|
1292
|
+
Event()
|
|
1293
|
+
], Stepper.prototype, "stepChanging", void 0);
|
|
1294
|
+
__decorate([
|
|
1295
|
+
Event()
|
|
1296
|
+
], Stepper.prototype, "stepClick", void 0);
|
|
1297
|
+
__decorate([
|
|
1298
|
+
Event()
|
|
1299
|
+
], Stepper.prototype, "beforeStepRender", void 0);
|
|
1300
|
+
Stepper = __decorate([
|
|
1301
|
+
NotifyPropertyChanges
|
|
1302
|
+
], Stepper);
|
|
1303
|
+
return Stepper;
|
|
1304
|
+
}(StepperBase));
|
|
1305
|
+
export { Stepper };
|