@syncfusion/ej2-navigations 25.2.6 → 26.1.35
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 +3 -2
- package/dist/ej2-navigations.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +1311 -1106
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +960 -740
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +2 -2
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/accordion/accordion.d.ts +0 -3
- package/src/accordion/accordion.js +5 -5
- package/src/appbar/appbar.js +1 -1
- package/src/breadcrumb/breadcrumb-model.d.ts +7 -0
- package/src/breadcrumb/breadcrumb.d.ts +6 -0
- package/src/breadcrumb/breadcrumb.js +20 -6
- package/src/carousel/carousel.d.ts +1 -0
- package/src/carousel/carousel.js +12 -9
- package/src/common/menu-base.js +21 -13
- package/src/sidebar/sidebar-model.d.ts +5 -6
- package/src/sidebar/sidebar.d.ts +8 -6
- package/src/sidebar/sidebar.js +2 -3
- package/src/stepper/stepper-model.d.ts +7 -1
- package/src/stepper/stepper.d.ts +7 -3
- package/src/stepper/stepper.js +141 -76
- package/src/stepper-base/stepper-base-model.d.ts +1 -1
- package/src/stepper-base/stepper-base.d.ts +4 -4
- package/src/stepper-base/stepper-base.js +13 -8
- package/src/tab/tab-model.d.ts +1 -1
- package/src/tab/tab.d.ts +0 -3
- package/src/tab/tab.js +2 -2
- package/src/toolbar/toolbar-model.d.ts +1 -1
- package/src/toolbar/toolbar.js +13 -9
- package/src/treeview/treeview-model.d.ts +60 -53
- package/src/treeview/treeview.d.ts +134 -29
- package/src/treeview/treeview.js +572 -392
- package/styles/accordion/_bds-definition.scss +0 -13
- package/styles/accordion/_bootstrap-dark-definition.scss +0 -9
- package/styles/accordion/_bootstrap-definition.scss +0 -14
- package/styles/accordion/_bootstrap4-definition.scss +0 -9
- package/styles/accordion/_bootstrap5-definition.scss +8 -22
- package/styles/accordion/_bootstrap5.3-definition.scss +168 -0
- package/styles/accordion/_fabric-dark-definition.scss +0 -8
- package/styles/accordion/_fabric-definition.scss +0 -13
- package/styles/accordion/_fluent-definition.scss +0 -13
- package/styles/accordion/_fluent2-definition.scss +167 -0
- package/styles/accordion/_fusionnew-definition.scss +1 -15
- package/styles/accordion/_highcontrast-definition.scss +0 -13
- package/styles/accordion/_highcontrast-light-definition.scss +0 -11
- package/styles/accordion/_layout.scss +0 -2
- package/styles/accordion/_material-dark-definition.scss +0 -11
- package/styles/accordion/_material-definition.scss +0 -13
- package/styles/accordion/_material3-definition.scss +3 -17
- package/styles/accordion/_tailwind-definition.scss +0 -13
- package/styles/accordion/_theme.scss +0 -3
- package/styles/accordion/bootstrap-dark.css +11 -9
- package/styles/accordion/bootstrap.css +11 -10
- package/styles/accordion/bootstrap4.css +11 -9
- package/styles/accordion/bootstrap5-dark.css +20 -20
- package/styles/accordion/bootstrap5.css +20 -20
- package/styles/accordion/fabric-dark.css +11 -9
- package/styles/accordion/fabric.css +11 -10
- package/styles/accordion/fluent-dark.css +11 -10
- package/styles/accordion/fluent.css +11 -10
- package/styles/accordion/fluent2.css +1574 -0
- package/styles/accordion/fluent2.scss +4 -0
- package/styles/accordion/highcontrast-light.css +11 -9
- package/styles/accordion/highcontrast.css +11 -10
- package/styles/accordion/icons/_bds.scss +0 -2
- package/styles/accordion/icons/_bootstrap-dark.scss +0 -2
- package/styles/accordion/icons/_bootstrap.scss +0 -2
- package/styles/accordion/icons/_bootstrap4.scss +0 -2
- package/styles/accordion/icons/_bootstrap5.3.scss +15 -0
- package/styles/accordion/icons/_bootstrap5.scss +0 -2
- package/styles/accordion/icons/_fabric-dark.scss +0 -2
- package/styles/accordion/icons/_fabric.scss +0 -2
- package/styles/accordion/icons/_fluent.scss +0 -2
- package/styles/accordion/icons/_fluent2.scss +15 -0
- package/styles/accordion/icons/_fusionnew.scss +0 -2
- package/styles/accordion/icons/_highcontrast-light.scss +0 -2
- package/styles/accordion/icons/_highcontrast.scss +0 -2
- package/styles/accordion/icons/_material-dark.scss +0 -2
- package/styles/accordion/icons/_material.scss +0 -2
- package/styles/accordion/icons/_material3.scss +0 -2
- package/styles/accordion/icons/_tailwind.scss +0 -2
- package/styles/accordion/material-dark.css +11 -9
- package/styles/accordion/material.css +11 -10
- package/styles/accordion/material3-dark.css +12 -12
- package/styles/accordion/material3.css +12 -12
- package/styles/accordion/tailwind-dark.css +11 -10
- package/styles/accordion/tailwind.css +11 -10
- package/styles/appbar/_bds-definition.scss +1 -3
- package/styles/appbar/_bootstrap-dark-definition.scss +0 -2
- package/styles/appbar/_bootstrap-definition.scss +0 -2
- package/styles/appbar/_bootstrap4-definition.scss +0 -2
- package/styles/appbar/_bootstrap5-definition.scss +0 -2
- package/styles/appbar/_bootstrap5.3-definition.scss +6 -0
- package/styles/appbar/_fabric-dark-definition.scss +0 -2
- package/styles/appbar/_fabric-definition.scss +0 -2
- package/styles/appbar/_fluent-definition.scss +0 -2
- package/styles/appbar/_fluent2-definition.scss +24 -0
- package/styles/appbar/_fusionnew-definition.scss +0 -2
- package/styles/appbar/_highcontrast-definition.scss +0 -2
- package/styles/appbar/_highcontrast-light-definition.scss +0 -2
- package/styles/appbar/_layout.scss +3 -2
- package/styles/appbar/_material-dark-definition.scss +0 -2
- package/styles/appbar/_material-definition.scss +0 -2
- package/styles/appbar/_material3-definition.scss +0 -2
- package/styles/appbar/_tailwind-definition.scss +0 -2
- package/styles/appbar/_theme.scss +0 -2
- package/styles/appbar/bootstrap-dark.css +52 -23
- package/styles/appbar/bootstrap.css +52 -23
- package/styles/appbar/bootstrap4.css +52 -23
- package/styles/appbar/bootstrap5-dark.css +52 -23
- package/styles/appbar/bootstrap5.css +52 -23
- package/styles/appbar/fabric-dark.css +52 -23
- package/styles/appbar/fabric.css +52 -23
- package/styles/appbar/fluent-dark.css +52 -23
- package/styles/appbar/fluent.css +52 -23
- package/styles/appbar/fluent2.css +1332 -0
- package/styles/appbar/fluent2.scss +3 -0
- package/styles/appbar/highcontrast-light.css +52 -23
- package/styles/appbar/highcontrast.css +52 -23
- package/styles/appbar/material-dark.css +52 -23
- package/styles/appbar/material.css +52 -23
- package/styles/appbar/material3-dark.css +62 -26
- package/styles/appbar/material3.css +62 -26
- package/styles/appbar/tailwind-dark.css +52 -23
- package/styles/appbar/tailwind.css +52 -23
- package/styles/bootstrap-dark.css +1042 -643
- package/styles/bootstrap-dark.scss +47 -14
- package/styles/bootstrap.css +1050 -656
- package/styles/bootstrap.scss +47 -14
- package/styles/bootstrap4.css +1060 -673
- package/styles/bootstrap4.scss +47 -14
- package/styles/bootstrap5-dark.css +1101 -736
- package/styles/bootstrap5-dark.scss +47 -14
- package/styles/bootstrap5.css +1101 -736
- package/styles/bootstrap5.scss +47 -14
- package/styles/breadcrumb/_all.scss +0 -1
- package/styles/breadcrumb/_bds-definition.scss +1 -1
- package/styles/breadcrumb/_bootstrap5.3-definition.scss +57 -0
- package/styles/breadcrumb/_fluent-definition.scss +2 -1
- package/styles/breadcrumb/_fluent2-definition.scss +61 -0
- package/styles/breadcrumb/_layout.scss +92 -10
- package/styles/breadcrumb/_theme.scss +31 -2
- package/styles/breadcrumb/bootstrap-dark.css +37 -22
- package/styles/breadcrumb/bootstrap.css +37 -22
- package/styles/breadcrumb/bootstrap4.css +37 -22
- package/styles/breadcrumb/bootstrap5-dark.css +37 -22
- package/styles/breadcrumb/bootstrap5.css +37 -22
- package/styles/breadcrumb/fabric-dark.css +37 -22
- package/styles/breadcrumb/fabric.css +37 -22
- package/styles/breadcrumb/fluent-dark.css +39 -24
- package/styles/breadcrumb/fluent.css +39 -24
- package/styles/breadcrumb/fluent2.css +1489 -0
- package/styles/breadcrumb/fluent2.scss +4 -0
- package/styles/breadcrumb/highcontrast-light.css +37 -22
- package/styles/breadcrumb/highcontrast.css +37 -22
- package/styles/breadcrumb/icons/_bds.scss +0 -2
- package/styles/breadcrumb/icons/_bootstrap-dark.scss +0 -2
- package/styles/breadcrumb/icons/_bootstrap.scss +0 -2
- package/styles/breadcrumb/icons/_bootstrap4.scss +0 -2
- package/styles/breadcrumb/icons/_bootstrap5.3.scss +23 -0
- package/styles/breadcrumb/icons/_bootstrap5.scss +0 -2
- package/styles/breadcrumb/icons/_fabric-dark.scss +0 -2
- package/styles/breadcrumb/icons/_fabric.scss +0 -2
- package/styles/breadcrumb/icons/_fluent.scss +0 -2
- package/styles/breadcrumb/icons/_fluent2.scss +23 -0
- package/styles/breadcrumb/icons/_fusionnew.scss +0 -2
- package/styles/breadcrumb/icons/_highcontrast-light.scss +0 -2
- package/styles/breadcrumb/icons/_highcontrast.scss +0 -2
- package/styles/breadcrumb/icons/_material-dark.scss +0 -2
- package/styles/breadcrumb/icons/_material.scss +0 -2
- package/styles/breadcrumb/icons/_material3.scss +0 -2
- package/styles/breadcrumb/icons/_tailwind-dark.scss +0 -2
- package/styles/breadcrumb/icons/_tailwind.scss +0 -2
- package/styles/breadcrumb/material-dark.css +37 -22
- package/styles/breadcrumb/material.css +37 -22
- package/styles/breadcrumb/material3-dark.css +39 -23
- package/styles/breadcrumb/material3.css +39 -23
- package/styles/breadcrumb/tailwind-dark.css +37 -22
- package/styles/breadcrumb/tailwind.css +37 -22
- package/styles/carousel/_bds-definition.scss +0 -7
- package/styles/carousel/_bootstrap-dark-definition.scss +0 -7
- package/styles/carousel/_bootstrap-definition.scss +0 -7
- package/styles/carousel/_bootstrap4-definition.scss +0 -7
- package/styles/carousel/_bootstrap5-definition.scss +0 -7
- package/styles/carousel/_bootstrap5.3-definition.scss +20 -0
- package/styles/carousel/_fabric-dark-definition.scss +0 -7
- package/styles/carousel/_fabric-definition.scss +0 -7
- package/styles/carousel/_fluent-definition.scss +0 -7
- package/styles/carousel/_fluent2-definition.scss +21 -0
- package/styles/carousel/_fusionnew-definition.scss +0 -7
- package/styles/carousel/_highcontrast-definition.scss +0 -7
- package/styles/carousel/_highcontrast-light-definition.scss +0 -7
- package/styles/carousel/_layout.scss +0 -2
- package/styles/carousel/_material-dark-definition.scss +0 -7
- package/styles/carousel/_material-definition.scss +0 -7
- package/styles/carousel/_material3-definition.scss +0 -7
- package/styles/carousel/_tailwind-definition.scss +0 -7
- package/styles/carousel/_theme.scss +8 -2
- package/styles/carousel/bootstrap-dark.css +93 -39
- package/styles/carousel/bootstrap.css +93 -39
- package/styles/carousel/bootstrap4.css +93 -39
- package/styles/carousel/bootstrap5-dark.css +93 -39
- package/styles/carousel/bootstrap5.css +93 -39
- package/styles/carousel/fabric-dark.css +93 -39
- package/styles/carousel/fabric.css +93 -39
- package/styles/carousel/fluent-dark.css +93 -39
- package/styles/carousel/fluent.css +93 -39
- package/styles/carousel/fluent2.css +1405 -0
- package/styles/carousel/fluent2.scss +5 -0
- package/styles/carousel/highcontrast-light.css +93 -39
- package/styles/carousel/highcontrast.css +93 -39
- package/styles/carousel/icons/_bootstrap5.3.scss +30 -0
- package/styles/carousel/icons/_fluent2.scss +30 -0
- package/styles/carousel/material-dark.css +93 -39
- package/styles/carousel/material.css +93 -39
- package/styles/carousel/material3-dark.css +98 -41
- package/styles/carousel/material3.css +98 -41
- package/styles/carousel/tailwind-dark.css +93 -39
- package/styles/carousel/tailwind.css +93 -39
- package/styles/context-menu/_bds-definition.scss +5 -2
- package/styles/context-menu/_bootstrap-dark-definition.scss +0 -3
- package/styles/context-menu/_bootstrap5-definition.scss +0 -1
- package/styles/context-menu/_bootstrap5.3-definition.scss +51 -0
- package/styles/context-menu/_fabric-dark-definition.scss +0 -3
- package/styles/context-menu/_fluent-definition.scss +0 -1
- package/styles/context-menu/_fluent2-definition.scss +52 -0
- package/styles/context-menu/_fusionnew-definition.scss +0 -1
- package/styles/context-menu/_highcontrast-light-definition.scss +0 -3
- package/styles/context-menu/_layout-mixin.scss +24 -0
- package/styles/context-menu/_layout.scss +44 -4
- package/styles/context-menu/_material-dark-definition.scss +0 -3
- package/styles/context-menu/_material3-definition.scss +0 -1
- package/styles/context-menu/_tailwind-definition.scss +0 -1
- package/styles/context-menu/_theme-mixin.scss +13 -0
- package/styles/context-menu/_theme.scss +6 -3
- package/styles/context-menu/bootstrap-dark.css +19 -11
- package/styles/context-menu/bootstrap.css +21 -12
- package/styles/context-menu/bootstrap4.css +21 -12
- package/styles/context-menu/bootstrap5-dark.css +36 -14
- package/styles/context-menu/bootstrap5.css +36 -14
- package/styles/context-menu/fabric-dark.css +19 -11
- package/styles/context-menu/fabric.css +19 -11
- package/styles/context-menu/fluent-dark.css +36 -14
- package/styles/context-menu/fluent.css +36 -14
- package/styles/context-menu/fluent2.css +1497 -0
- package/styles/context-menu/fluent2.scss +7 -0
- package/styles/context-menu/highcontrast-light.css +19 -11
- package/styles/context-menu/highcontrast.css +19 -11
- package/styles/context-menu/icons/_bds.scss +0 -2
- package/styles/context-menu/icons/_bootstrap-dark.scss +0 -2
- package/styles/context-menu/icons/_bootstrap.scss +0 -2
- package/styles/context-menu/icons/_bootstrap4.scss +0 -2
- package/styles/context-menu/icons/_bootstrap5.3.scss +31 -0
- package/styles/context-menu/icons/_bootstrap5.scss +0 -2
- package/styles/context-menu/icons/_fabric-dark.scss +0 -2
- package/styles/context-menu/icons/_fabric.scss +0 -2
- package/styles/context-menu/icons/_fluent.scss +0 -2
- package/styles/context-menu/icons/_fluent2.scss +31 -0
- package/styles/context-menu/icons/_fusionnew.scss +0 -2
- package/styles/context-menu/icons/_highcontrast-light.scss +0 -2
- package/styles/context-menu/icons/_highcontrast.scss +0 -2
- package/styles/context-menu/icons/_material-dark.scss +0 -2
- package/styles/context-menu/icons/_material.scss +0 -2
- package/styles/context-menu/icons/_material3.scss +0 -2
- package/styles/context-menu/icons/_tailwind-dark.scss +0 -2
- package/styles/context-menu/icons/_tailwind.scss +0 -2
- package/styles/context-menu/material-dark.css +49 -15
- package/styles/context-menu/material.css +49 -15
- package/styles/context-menu/material3-dark.css +38 -15
- package/styles/context-menu/material3.css +38 -15
- package/styles/context-menu/tailwind-dark.css +36 -14
- package/styles/context-menu/tailwind.css +36 -14
- package/styles/fabric-dark.css +1040 -641
- package/styles/fabric-dark.scss +47 -14
- package/styles/fabric.css +1042 -652
- package/styles/fabric.scss +47 -14
- package/styles/fluent-dark.css +1074 -698
- package/styles/fluent-dark.scss +47 -14
- package/styles/fluent.css +1074 -698
- package/styles/fluent.scss +47 -14
- package/styles/fluent2.css +13003 -0
- package/styles/fluent2.scss +47 -0
- package/styles/h-scroll/_bootstrap5.3-definition.scss +83 -0
- package/styles/h-scroll/_fluent2-definition.scss +83 -0
- package/styles/h-scroll/bootstrap-dark.css +22 -10
- package/styles/h-scroll/bootstrap.css +22 -10
- package/styles/h-scroll/bootstrap4.css +22 -10
- package/styles/h-scroll/bootstrap5-dark.css +41 -14
- package/styles/h-scroll/bootstrap5.css +41 -14
- package/styles/h-scroll/fabric-dark.css +22 -10
- package/styles/h-scroll/fabric.css +22 -10
- package/styles/h-scroll/fluent-dark.css +41 -14
- package/styles/h-scroll/fluent.css +41 -14
- package/styles/h-scroll/fluent2.css +1341 -0
- package/styles/h-scroll/fluent2.scss +4 -0
- package/styles/h-scroll/highcontrast-light.css +22 -10
- package/styles/h-scroll/highcontrast.css +22 -10
- package/styles/h-scroll/icons/_bootstrap5.3.scss +49 -0
- package/styles/h-scroll/icons/_fluent2.scss +49 -0
- package/styles/h-scroll/material-dark.css +41 -14
- package/styles/h-scroll/material.css +41 -14
- package/styles/h-scroll/material3-dark.css +44 -15
- package/styles/h-scroll/material3.css +44 -15
- package/styles/h-scroll/tailwind-dark.css +41 -14
- package/styles/h-scroll/tailwind.css +41 -14
- package/styles/highcontrast-light.css +1040 -641
- package/styles/highcontrast-light.scss +47 -14
- package/styles/highcontrast.css +1056 -655
- package/styles/highcontrast.scss +47 -14
- package/styles/material-dark.css +1144 -709
- package/styles/material-dark.scss +47 -14
- package/styles/material.css +1157 -726
- package/styles/material.scss +47 -14
- package/styles/material3-dark.css +1148 -731
- package/styles/material3-dark.scss +47 -14
- package/styles/material3.css +1148 -731
- package/styles/material3.scss +47 -14
- package/styles/menu/_bds-definition.scss +0 -1
- package/styles/menu/_bootstrap-dark-definition.scss +0 -3
- package/styles/menu/_bootstrap5-definition.scss +0 -1
- package/styles/menu/_bootstrap5.3-definition.scss +66 -0
- package/styles/menu/_fabric-dark-definition.scss +0 -3
- package/styles/menu/_fluent-definition.scss +0 -1
- package/styles/menu/_fluent2-definition.scss +67 -0
- package/styles/menu/_fusionnew-definition.scss +0 -1
- package/styles/menu/_layout.scss +38 -17
- package/styles/menu/_material-dark-definition.scss +0 -3
- package/styles/menu/_material3-definition.scss +0 -1
- package/styles/menu/_tailwind-definition.scss +0 -1
- package/styles/menu/_theme.scss +46 -14
- package/styles/menu/bootstrap-dark.css +41 -39
- package/styles/menu/bootstrap.css +43 -40
- package/styles/menu/bootstrap4.css +47 -50
- package/styles/menu/bootstrap5-dark.css +58 -42
- package/styles/menu/bootstrap5.css +58 -42
- package/styles/menu/fabric-dark.css +41 -39
- package/styles/menu/fabric.css +41 -39
- package/styles/menu/fluent-dark.css +60 -47
- package/styles/menu/fluent.css +60 -47
- package/styles/menu/fluent2.css +2226 -0
- package/styles/menu/fluent2.scss +8 -0
- package/styles/menu/highcontrast-light.css +41 -39
- package/styles/menu/highcontrast.css +41 -39
- package/styles/menu/icons/_bds.scss +2 -32
- package/styles/menu/icons/_bootstrap-dark.scss +2 -31
- package/styles/menu/icons/_bootstrap.scss +2 -32
- package/styles/menu/icons/_bootstrap4.scss +2 -32
- package/styles/menu/icons/_bootstrap5.3.scss +104 -0
- package/styles/menu/icons/_bootstrap5.scss +2 -32
- package/styles/menu/icons/_fabric-dark.scss +2 -32
- package/styles/menu/icons/_fabric.scss +2 -32
- package/styles/menu/icons/_fluent.scss +2 -32
- package/styles/menu/icons/_fluent2.scss +104 -0
- package/styles/menu/icons/_fusionnew.scss +2 -32
- package/styles/menu/icons/_highcontrast-light.scss +2 -32
- package/styles/menu/icons/_highcontrast.scss +2 -32
- package/styles/menu/icons/_material-dark.scss +2 -32
- package/styles/menu/icons/_material.scss +2 -32
- package/styles/menu/icons/_material3.scss +2 -32
- package/styles/menu/icons/_tailwind-dark.scss +2 -32
- package/styles/menu/icons/_tailwind.scss +2 -32
- package/styles/menu/material-dark.css +71 -43
- package/styles/menu/material.css +71 -43
- package/styles/menu/material3-dark.css +61 -43
- package/styles/menu/material3.css +61 -43
- package/styles/menu/tailwind-dark.css +58 -42
- package/styles/menu/tailwind.css +58 -42
- package/styles/pager/_bds-definition.scss +6 -6
- package/styles/pager/_bootstrap-dark-definition.scss +2 -2
- package/styles/pager/_bootstrap-definition.scss +8 -8
- package/styles/pager/_bootstrap4-definition.scss +10 -10
- package/styles/pager/_bootstrap5-definition.scss +19 -19
- package/styles/pager/_bootstrap5.3-definition.scss +166 -0
- package/styles/pager/_fabric-dark-definition.scss +3 -5
- package/styles/pager/_fabric-definition.scss +3 -3
- package/styles/pager/_fluent-definition.scss +11 -11
- package/styles/pager/_fluent2-definition.scss +152 -0
- package/styles/pager/_fusionnew-definition.scss +19 -19
- package/styles/pager/_highcontrast-definition.scss +2 -2
- package/styles/pager/_highcontrast-light-definition.scss +2 -4
- package/styles/pager/_layout.scss +340 -339
- package/styles/pager/_material-dark-definition.scss +4 -6
- package/styles/pager/_material-definition.scss +4 -4
- package/styles/pager/_material3-definition.scss +22 -22
- package/styles/pager/_tailwind-definition.scss +17 -17
- package/styles/pager/_theme.scss +43 -26
- package/styles/pager/bootstrap-dark.css +88 -76
- package/styles/pager/bootstrap.css +90 -78
- package/styles/pager/bootstrap4.css +90 -78
- package/styles/pager/bootstrap5-dark.css +114 -111
- package/styles/pager/bootstrap5.css +114 -111
- package/styles/pager/fabric-dark.css +86 -74
- package/styles/pager/fabric.css +86 -74
- package/styles/pager/fluent-dark.css +92 -80
- package/styles/pager/fluent.css +92 -80
- package/styles/pager/fluent2.css +1862 -0
- package/styles/pager/fluent2.scss +4 -0
- package/styles/pager/highcontrast-light.css +86 -74
- package/styles/pager/highcontrast.css +86 -74
- package/styles/pager/icons/_bootstrap5.3.scss +50 -0
- package/styles/pager/icons/_fluent2.scss +50 -0
- package/styles/pager/material-dark.css +86 -74
- package/styles/pager/material.css +86 -74
- package/styles/pager/material3-dark.css +107 -106
- package/styles/pager/material3.css +107 -106
- package/styles/pager/tailwind-dark.css +139 -144
- package/styles/pager/tailwind.css +139 -144
- package/styles/sidebar/_bds-definition.scss +8 -0
- package/styles/sidebar/_bootstrap5.3-definition.scss +6 -0
- package/styles/sidebar/_fluent2-definition.scss +8 -0
- package/styles/sidebar/_material3-definition.scss +0 -3
- package/styles/sidebar/_theme.scss +114 -45
- package/styles/sidebar/bootstrap-dark.css +124 -49
- package/styles/sidebar/bootstrap.css +124 -49
- package/styles/sidebar/bootstrap4.css +124 -49
- package/styles/sidebar/bootstrap5-dark.css +122 -47
- package/styles/sidebar/bootstrap5.css +122 -47
- package/styles/sidebar/fabric-dark.css +124 -49
- package/styles/sidebar/fabric.css +124 -49
- package/styles/sidebar/fluent-dark.css +122 -47
- package/styles/sidebar/fluent.css +122 -47
- package/styles/sidebar/fluent2.css +1263 -0
- package/styles/sidebar/fluent2.scss +3 -0
- package/styles/sidebar/highcontrast-light.css +124 -49
- package/styles/sidebar/highcontrast.css +124 -49
- package/styles/sidebar/material-dark.css +124 -49
- package/styles/sidebar/material.css +124 -49
- package/styles/sidebar/material3-dark.css +125 -49
- package/styles/sidebar/material3.css +125 -49
- package/styles/sidebar/tailwind-dark.css +122 -47
- package/styles/sidebar/tailwind.css +122 -47
- package/styles/stepper/_bds-definition.scss +0 -7
- package/styles/stepper/_bootstrap-dark-definition.scss +0 -7
- package/styles/stepper/_bootstrap-definition.scss +0 -7
- package/styles/stepper/_bootstrap4-definition.scss +0 -7
- package/styles/stepper/_bootstrap5-definition.scss +0 -7
- package/styles/stepper/_bootstrap5.3-definition.scss +73 -0
- package/styles/stepper/_fabric-dark-definition.scss +0 -7
- package/styles/stepper/_fabric-definition.scss +0 -7
- package/styles/stepper/_fluent-definition.scss +0 -7
- package/styles/stepper/_fluent2-definition.scss +72 -0
- package/styles/stepper/_fusionnew-definition.scss +0 -7
- package/styles/stepper/_highcontrast-definition.scss +0 -7
- package/styles/stepper/_highcontrast-light-definition.scss +0 -7
- package/styles/stepper/_layout.scss +90 -143
- package/styles/stepper/_material-dark-definition.scss +0 -7
- package/styles/stepper/_material-definition.scss +0 -7
- package/styles/stepper/_material3-definition.scss +0 -7
- package/styles/stepper/_tailwind-definition.scss +0 -7
- package/styles/stepper/_theme.scss +12 -20
- package/styles/stepper/bootstrap-dark.css +162 -118
- package/styles/stepper/bootstrap.css +162 -118
- package/styles/stepper/bootstrap4.css +162 -118
- package/styles/stepper/bootstrap5-dark.css +162 -118
- package/styles/stepper/bootstrap5.css +162 -118
- package/styles/stepper/fabric-dark.css +162 -118
- package/styles/stepper/fabric.css +162 -118
- package/styles/stepper/fluent-dark.css +162 -118
- package/styles/stepper/fluent.css +162 -118
- package/styles/stepper/fluent2.css +1742 -0
- package/styles/stepper/fluent2.scss +5 -0
- package/styles/stepper/highcontrast-light.css +162 -118
- package/styles/stepper/highcontrast.css +162 -118
- package/styles/stepper/icons/_bootstrap5.3.scss +5 -0
- package/styles/stepper/icons/_fluent2.scss +5 -0
- package/styles/stepper/material-dark.css +162 -118
- package/styles/stepper/material.css +162 -118
- package/styles/stepper/material3-dark.css +167 -119
- package/styles/stepper/material3.css +167 -119
- package/styles/stepper/tailwind-dark.css +162 -118
- package/styles/stepper/tailwind.css +162 -118
- package/styles/tab/_bds-definition.scss +5 -45
- package/styles/tab/_bootstrap-dark-definition.scss +0 -26
- package/styles/tab/_bootstrap-definition.scss +0 -35
- package/styles/tab/_bootstrap4-definition.scss +9 -42
- package/styles/tab/_bootstrap5-definition.scss +0 -26
- package/styles/tab/_bootstrap5.3-definition.scss +635 -0
- package/styles/tab/_fabric-dark-definition.scss +0 -22
- package/styles/tab/_fabric-definition.scss +1 -36
- package/styles/tab/_fluent-definition.scss +0 -31
- package/styles/tab/_fluent2-definition.scss +667 -0
- package/styles/tab/_fusionnew-definition.scss +0 -26
- package/styles/tab/_highcontrast-definition.scss +0 -35
- package/styles/tab/_highcontrast-light-definition.scss +0 -24
- package/styles/tab/_icons.scss +0 -2
- package/styles/tab/_layout.scss +29 -31
- package/styles/tab/_material-dark-definition.scss +0 -28
- package/styles/tab/_material-definition.scss +0 -39
- package/styles/tab/_material3-definition.scss +3 -28
- package/styles/tab/_tailwind-definition.scss +0 -39
- package/styles/tab/_theme.scss +21 -2
- package/styles/tab/bootstrap-dark.css +171 -78
- package/styles/tab/bootstrap.css +171 -83
- package/styles/tab/bootstrap4.css +177 -87
- package/styles/tab/bootstrap5-dark.css +171 -84
- package/styles/tab/bootstrap5.css +171 -84
- package/styles/tab/fabric-dark.css +171 -78
- package/styles/tab/fabric.css +173 -85
- package/styles/tab/fluent-dark.css +171 -81
- package/styles/tab/fluent.css +171 -81
- package/styles/tab/fluent2.css +5251 -0
- package/styles/tab/fluent2.scss +5 -0
- package/styles/tab/highcontrast-light.css +171 -78
- package/styles/tab/highcontrast.css +171 -83
- package/styles/tab/icons/_bds.scss +0 -2
- package/styles/tab/icons/_bootstrap-dark.scss +0 -2
- package/styles/tab/icons/_bootstrap.scss +0 -2
- package/styles/tab/icons/_bootstrap4.scss +0 -2
- package/styles/tab/icons/_bootstrap5.3.scss +90 -0
- package/styles/tab/icons/_bootstrap5.scss +0 -2
- package/styles/tab/icons/_fabric-dark.scss +0 -2
- package/styles/tab/icons/_fabric.scss +0 -2
- package/styles/tab/icons/_fluent.scss +0 -2
- package/styles/tab/icons/_fluent2.scss +98 -0
- package/styles/tab/icons/_fusionnew.scss +0 -2
- package/styles/tab/icons/_highcontrast-light.scss +0 -2
- package/styles/tab/icons/_highcontrast.scss +0 -2
- package/styles/tab/icons/_material-dark.scss +0 -2
- package/styles/tab/icons/_material.scss +0 -2
- package/styles/tab/icons/_material3.scss +0 -2
- package/styles/tab/icons/_tailwind.scss +0 -2
- package/styles/tab/material-dark.css +232 -84
- package/styles/tab/material.css +232 -90
- package/styles/tab/material3-dark.css +174 -85
- package/styles/tab/material3.css +174 -85
- package/styles/tab/tailwind-dark.css +217 -87
- package/styles/tab/tailwind.css +217 -87
- package/styles/tailwind-dark.css +1165 -763
- package/styles/tailwind-dark.scss +47 -14
- package/styles/tailwind.css +1165 -763
- package/styles/tailwind.scss +47 -14
- package/styles/toolbar/_bds-definition.scss +0 -18
- package/styles/toolbar/_bootstrap-dark-definition.scss +0 -15
- package/styles/toolbar/_bootstrap-definition.scss +0 -3
- package/styles/toolbar/_bootstrap4-definition.scss +0 -13
- package/styles/toolbar/_bootstrap5-definition.scss +0 -22
- package/styles/toolbar/_bootstrap5.3-definition.scss +198 -0
- package/styles/toolbar/_fabric-dark-definition.scss +0 -15
- package/styles/toolbar/_fabric-definition.scss +0 -13
- package/styles/toolbar/_fluent-definition.scss +0 -13
- package/styles/toolbar/_fluent2-definition.scss +197 -0
- package/styles/toolbar/_fusionnew-definition.scss +0 -22
- package/styles/toolbar/_highcontrast-definition.scss +0 -14
- package/styles/toolbar/_highcontrast-light-definition.scss +0 -15
- package/styles/toolbar/_layout.scss +18 -32
- package/styles/toolbar/_material-dark-definition.scss +0 -16
- package/styles/toolbar/_material-definition.scss +0 -16
- package/styles/toolbar/_material3-definition.scss +0 -21
- package/styles/toolbar/_tailwind-definition.scss +0 -13
- package/styles/toolbar/_theme.scss +66 -5
- package/styles/toolbar/bootstrap-dark.css +94 -61
- package/styles/toolbar/bootstrap.css +96 -62
- package/styles/toolbar/bootstrap4.css +96 -62
- package/styles/toolbar/bootstrap5-dark.css +111 -64
- package/styles/toolbar/bootstrap5.css +111 -64
- package/styles/toolbar/fabric-dark.css +94 -61
- package/styles/toolbar/fabric.css +94 -61
- package/styles/toolbar/fluent-dark.css +111 -64
- package/styles/toolbar/fluent.css +111 -64
- package/styles/toolbar/fluent2.css +2224 -0
- package/styles/toolbar/fluent2.scss +8 -0
- package/styles/toolbar/highcontrast-light.css +94 -61
- package/styles/toolbar/highcontrast.css +94 -61
- package/styles/toolbar/icons/_bds.scss +0 -2
- package/styles/toolbar/icons/_bootstrap-dark.scss +0 -2
- package/styles/toolbar/icons/_bootstrap.scss +0 -2
- package/styles/toolbar/icons/_bootstrap4.scss +0 -2
- package/styles/toolbar/icons/_bootstrap5.3.scss +14 -0
- package/styles/toolbar/icons/_bootstrap5.scss +0 -2
- package/styles/toolbar/icons/_fabric-dark.scss +0 -2
- package/styles/toolbar/icons/_fabric.scss +0 -2
- package/styles/toolbar/icons/_fluent.scss +0 -2
- package/styles/toolbar/icons/_fluent2.scss +14 -0
- package/styles/toolbar/icons/_fusionnew.scss +0 -2
- package/styles/toolbar/icons/_highcontrast-light.scss +0 -2
- package/styles/toolbar/icons/_highcontrast.scss +0 -2
- package/styles/toolbar/icons/_material-dark.scss +0 -2
- package/styles/toolbar/icons/_material.scss +0 -2
- package/styles/toolbar/icons/_material3.scss +0 -2
- package/styles/toolbar/icons/_tailwind.scss +0 -2
- package/styles/toolbar/material-dark.css +143 -69
- package/styles/toolbar/material.css +143 -70
- package/styles/toolbar/material3-dark.css +123 -65
- package/styles/toolbar/material3.css +123 -65
- package/styles/toolbar/tailwind-dark.css +111 -64
- package/styles/toolbar/tailwind.css +111 -64
- package/styles/treeview/_bootstrap5.3-definition.scss +119 -0
- package/styles/treeview/_fluent2-definition.scss +126 -0
- package/styles/treeview/_layout.scss +154 -146
- package/styles/treeview/_material3-definition.scss +1 -12
- package/styles/treeview/_theme.scss +154 -168
- package/styles/treeview/bootstrap-dark.css +106 -98
- package/styles/treeview/bootstrap.css +112 -100
- package/styles/treeview/bootstrap4.css +112 -104
- package/styles/treeview/bootstrap5-dark.css +112 -103
- package/styles/treeview/bootstrap5.css +112 -103
- package/styles/treeview/fabric-dark.css +106 -98
- package/styles/treeview/fabric.css +106 -98
- package/styles/treeview/fluent-dark.css +112 -103
- package/styles/treeview/fluent.css +112 -103
- package/styles/treeview/fluent2.css +2052 -0
- package/styles/treeview/fluent2.scss +6 -0
- package/styles/treeview/highcontrast-light.css +106 -98
- package/styles/treeview/highcontrast.css +122 -103
- package/styles/treeview/icons/_bootstrap5.3.scss +43 -0
- package/styles/treeview/icons/_fluent2.scss +43 -0
- package/styles/treeview/material-dark.css +115 -99
- package/styles/treeview/material.css +129 -101
- package/styles/treeview/material3-dark.css +136 -109
- package/styles/treeview/material3.css +136 -109
- package/styles/treeview/tailwind-dark.css +113 -105
- package/styles/treeview/tailwind.css +113 -105
- package/styles/v-scroll/_bootstrap5.3-definition.scss +49 -0
- package/styles/v-scroll/_fluent2-definition.scss +49 -0
- package/styles/v-scroll/bootstrap-dark.css +22 -10
- package/styles/v-scroll/bootstrap.css +22 -10
- package/styles/v-scroll/bootstrap4.css +22 -10
- package/styles/v-scroll/bootstrap5-dark.css +22 -10
- package/styles/v-scroll/bootstrap5.css +22 -10
- package/styles/v-scroll/fabric-dark.css +22 -10
- package/styles/v-scroll/fabric.css +22 -10
- package/styles/v-scroll/fluent-dark.css +22 -10
- package/styles/v-scroll/fluent.css +22 -10
- package/styles/v-scroll/fluent2.css +1248 -0
- package/styles/v-scroll/fluent2.scss +4 -0
- package/styles/v-scroll/highcontrast-light.css +22 -10
- package/styles/v-scroll/highcontrast.css +22 -10
- package/styles/v-scroll/icons/_bootstrap5.3.scss +27 -0
- package/styles/v-scroll/icons/_fluent2.scss +27 -0
- package/styles/v-scroll/material-dark.css +41 -14
- package/styles/v-scroll/material.css +41 -14
- package/styles/v-scroll/material3-dark.css +25 -11
- package/styles/v-scroll/material3.css +25 -11
- package/styles/v-scroll/tailwind-dark.css +22 -10
- package/styles/v-scroll/tailwind.css +22 -10
- package/CHANGELOG.md +0 -2357
package/src/stepper/stepper.js
CHANGED
|
@@ -42,7 +42,7 @@ var LABELAFTER = 'e-label-after';
|
|
|
42
42
|
var LABELBEFORE = 'e-label-before';
|
|
43
43
|
var VERTICALSTEP = 'e-vertical';
|
|
44
44
|
var HORIZSTEP = 'e-horizontal';
|
|
45
|
-
var STEPICON = 'e-step-
|
|
45
|
+
var STEPICON = 'e-step-item';
|
|
46
46
|
var STEPTEXT = 'e-step-text';
|
|
47
47
|
var TEXT = 'e-text';
|
|
48
48
|
var STEPSLABEL = 'e-step-label';
|
|
@@ -163,7 +163,7 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
163
163
|
/**
|
|
164
164
|
* To get component name.
|
|
165
165
|
*
|
|
166
|
-
* @returns {string} -
|
|
166
|
+
* @returns {string} - It returns the current module name.
|
|
167
167
|
* @private
|
|
168
168
|
*/
|
|
169
169
|
Stepper.prototype.getModuleName = function () {
|
|
@@ -240,8 +240,10 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
242
|
Stepper.prototype.updateStepType = function () {
|
|
243
|
-
if (this.stepType.toLowerCase() === 'indicator' || 'label' || 'default') {
|
|
244
|
-
this.stepType.toLowerCase() !== 'default'
|
|
243
|
+
if (!(isNullOrUndefined(this.stepType)) && (this.stepType.toLowerCase() === 'indicator' || this.stepType.toLowerCase() === 'label' || this.stepType.toLowerCase() === 'default')) {
|
|
244
|
+
if (this.stepType.toLowerCase() !== 'default') {
|
|
245
|
+
this.element.classList.add('e-step-type-' + this.stepType.toLowerCase());
|
|
246
|
+
}
|
|
245
247
|
if (((this.stepType.toLowerCase() === 'indicator' || 'label') && (this.labelContainer))) {
|
|
246
248
|
this.clearLabelPosition();
|
|
247
249
|
}
|
|
@@ -271,7 +273,10 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
271
273
|
var item = this.steps[parseInt(index.toString(), 10)];
|
|
272
274
|
var status_1 = item.status.toLowerCase();
|
|
273
275
|
if (isInitial && this.activeStep === 0 && index === 0) {
|
|
276
|
+
var prevOnChange = this.isProtectedOnChange;
|
|
277
|
+
this.isProtectedOnChange = true;
|
|
274
278
|
item.status = StepStatus.InProgress;
|
|
279
|
+
this.isProtectedOnChange = prevOnChange;
|
|
275
280
|
}
|
|
276
281
|
if (item && status_1 !== 'notstarted' && index === this.activeStep) {
|
|
277
282
|
for (var i = 0; i < this.steps.length; i++) {
|
|
@@ -316,12 +321,13 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
316
321
|
this.stepperItemContainer.style.setProperty('--max-width', 100 / this.steps.length + '%');
|
|
317
322
|
}
|
|
318
323
|
var stepSpan = this.createElement('span', { className: 'e-step' });
|
|
324
|
+
var item = this.steps[parseInt(index.toString(), 10)];
|
|
319
325
|
if (this.renderDefault(index) && (isNullOrUndefined(this.template) || this.template === '')) {
|
|
320
326
|
var isIndicator = (!this.element.classList.contains('e-step-type-default') && this.stepType.toLowerCase() === 'indicator') ? true : false;
|
|
321
327
|
if (isIndicator) {
|
|
322
328
|
stepSpan.classList.add('e-icons', INDICATORICON);
|
|
323
329
|
}
|
|
324
|
-
if (!isIndicator) {
|
|
330
|
+
if (!isIndicator && item.isValid == null) {
|
|
325
331
|
stepSpan.classList.add('e-step-content');
|
|
326
332
|
stepSpan.innerHTML = (index + 1).toString();
|
|
327
333
|
}
|
|
@@ -329,15 +335,22 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
329
335
|
}
|
|
330
336
|
else if (isNullOrUndefined(this.template) || this.template === '') {
|
|
331
337
|
var isRender = true;
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
+
if ((item.iconCss || (!item.iconCss && item.text && item.label)) && (((!item.text && !item.label) ||
|
|
339
|
+
!this.element.classList.contains(LABELINDICATOR)))) {
|
|
340
|
+
if (item.iconCss) {
|
|
341
|
+
var itemIcon = item.iconCss.trim().split(' ');
|
|
342
|
+
stepSpan.classList.add(ICONCSS);
|
|
343
|
+
for (var i = 0; i < itemIcon.length; i++) {
|
|
344
|
+
stepSpan.classList.add(itemIcon[parseInt(i.toString(), 10)]);
|
|
345
|
+
}
|
|
346
|
+
this.stepperItemContainer.classList.add(STEPICON);
|
|
347
|
+
}
|
|
348
|
+
else if (!item.iconCss && item.text && item.label) {
|
|
349
|
+
stepSpan.classList.add(ICONCSS);
|
|
350
|
+
stepSpan.innerHTML = item.text;
|
|
351
|
+
this.stepperItemContainer.classList.add(STEPICON);
|
|
338
352
|
}
|
|
339
353
|
this.stepperItemContainer.appendChild(stepSpan);
|
|
340
|
-
this.stepperItemContainer.classList.add(STEPICON);
|
|
341
354
|
if ((this.element.classList.contains(HORIZSTEP) && (this.labelPosition.toLowerCase() === 'start' || this.labelPosition.toLowerCase() === 'end') && item.label) ||
|
|
342
355
|
(this.element.classList.contains(VERTICALSTEP) && (this.labelPosition.toLowerCase() === 'top' || this.labelPosition.toLowerCase() === 'bottom') && item.label)) {
|
|
343
356
|
this.element.classList.add('e-label-' + this.labelPosition.toLowerCase());
|
|
@@ -348,8 +361,13 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
348
361
|
isRender = false;
|
|
349
362
|
}
|
|
350
363
|
}
|
|
351
|
-
if (item.text && (!item.iconCss || !this.element.classList.contains(STEPINDICATOR)) && isRender &&
|
|
352
|
-
|
|
364
|
+
if (item.text && (!item.iconCss || !this.element.classList.contains(STEPINDICATOR)) && isRender &&
|
|
365
|
+
!(item.iconCss && item.label)) {
|
|
366
|
+
if ((!item.iconCss && this.element.classList.contains(STEPINDICATOR)) ||
|
|
367
|
+
((!item.iconCss || this.element.classList.contains(LABELINDICATOR)) && !item.label)) {
|
|
368
|
+
if (!item.iconCss && !item.label) {
|
|
369
|
+
this.element.classList.add('e-step-type-indicator');
|
|
370
|
+
}
|
|
353
371
|
this.checkValidState(item, stepSpan);
|
|
354
372
|
var prevOnChange = this.isProtectedOnChange;
|
|
355
373
|
this.isProtectedOnChange = true;
|
|
@@ -357,21 +375,13 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
357
375
|
this.isProtectedOnChange = prevOnChange;
|
|
358
376
|
}
|
|
359
377
|
else {
|
|
360
|
-
this.textContainer = this.createElement('span', { className: TEXTCSS });
|
|
361
378
|
var textSpan = this.createElement('span', { className: TEXT });
|
|
362
379
|
if (!item.label) {
|
|
363
380
|
textSpan.innerText = item.text;
|
|
364
|
-
|
|
365
|
-
this.stepperItemContainer.appendChild(
|
|
381
|
+
textSpan.classList.add(TEXTCSS);
|
|
382
|
+
this.stepperItemContainer.appendChild(textSpan);
|
|
366
383
|
this.stepperItemContainer.classList.add(STEPTEXT);
|
|
367
384
|
}
|
|
368
|
-
if (!item.iconCss || this.element.classList.contains(LABELINDICATOR)) {
|
|
369
|
-
this.stepperItemContainer.classList.add('e-step-text-only');
|
|
370
|
-
if (!item.label && item.isValid !== null) {
|
|
371
|
-
var iconSpan = this.createElement('span', { className: 'e-step-validation-icon e-icons' });
|
|
372
|
-
this.textContainer.appendChild(iconSpan);
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
385
|
if (item.label && this.element.classList.contains(LABELINDICATOR)) {
|
|
376
386
|
textSpan.innerText = item.label;
|
|
377
387
|
}
|
|
@@ -381,25 +391,20 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
381
391
|
this.isProtectedOnChange = prevOnChange;
|
|
382
392
|
}
|
|
383
393
|
}
|
|
384
|
-
if (item.cssClass) {
|
|
385
|
-
addClass([this.stepperItemContainer], item.cssClass.trim().split(' '));
|
|
386
|
-
}
|
|
387
|
-
if (item.disabled) {
|
|
388
|
-
this.stepperItemContainer.classList[item.disabled ? 'add' : 'remove'](DISABLED);
|
|
389
|
-
attributes(this.stepperItemContainer, { 'tabindex': '-1', 'aria-disabled': 'true' });
|
|
390
|
-
}
|
|
391
394
|
if (item.label && (!item.iconCss || !this.element.classList.contains(STEPINDICATOR)) && isRender) {
|
|
392
395
|
if (!item.iconCss && !item.text && this.element.classList.contains(STEPINDICATOR)) {
|
|
393
396
|
this.checkValidState(item, stepSpan, true);
|
|
394
397
|
}
|
|
395
|
-
else if ((!((this.element.classList.contains(LABELINDICATOR)) && item.text)) ||
|
|
398
|
+
else if ((!((this.element.classList.contains(LABELINDICATOR)) && item.text)) ||
|
|
399
|
+
(this.element.classList.contains(LABELINDICATOR) && item.label)) {
|
|
396
400
|
this.labelContainer = this.createElement('span', { className: STEPLABEL });
|
|
397
401
|
var labelSpan = this.createElement('span', { className: LABEL });
|
|
398
402
|
labelSpan.innerText = item.label;
|
|
399
403
|
this.labelContainer.appendChild(labelSpan);
|
|
400
404
|
this.stepperItemContainer.classList.add(STEPSLABEL);
|
|
401
405
|
this.updateLabelPosition();
|
|
402
|
-
if ((!item.iconCss && !item.text
|
|
406
|
+
if ((!item.iconCss && !item.text && !this.stepperItemContainer.classList.contains(STEPICON)) ||
|
|
407
|
+
this.element.classList.contains(LABELINDICATOR)) {
|
|
403
408
|
this.stepperItemContainer.classList.add('e-step-label-only');
|
|
404
409
|
if (item.isValid !== null) {
|
|
405
410
|
var iconSpan = this.createElement('span', { className: 'e-step-validation-icon e-icons' });
|
|
@@ -408,22 +413,37 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
408
413
|
}
|
|
409
414
|
}
|
|
410
415
|
}
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
416
|
+
}
|
|
417
|
+
if (item.optional) {
|
|
418
|
+
var optionalSpan = this.createElement('span', { className: OPTIONAL });
|
|
419
|
+
this.l10n.setLocale(this.locale);
|
|
420
|
+
var optionalContent = this.l10n.getConstant('optional');
|
|
421
|
+
optionalSpan.innerText = optionalContent;
|
|
422
|
+
if (item.label && (this.labelContainer && ((this.element.classList.contains(LABELAFTER) && !this.stepperItemContainer.classList.contains('e-step-label-only'))
|
|
423
|
+
|| (this.element.classList.contains(HORIZSTEP) && this.element.classList.contains(LABELBEFORE) && !this.stepperItemContainer.classList.contains('e-step-label-only'))))
|
|
424
|
+
|| (this.element.classList.contains(VERTICALSTEP) && this.element.classList.contains(LABELBEFORE))) {
|
|
425
|
+
this.labelContainer.appendChild(optionalSpan);
|
|
426
|
+
}
|
|
427
|
+
else {
|
|
428
|
+
this.stepperItemContainer.appendChild(optionalSpan);
|
|
424
429
|
}
|
|
425
430
|
if (item.isValid !== null) {
|
|
426
|
-
|
|
431
|
+
this.stepperItemContainer.classList.add(item.isValid ? 'e-step-valid' : 'e-step-error');
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
if (item.cssClass) {
|
|
435
|
+
addClass([this.stepperItemContainer], item.cssClass.trim().split(' '));
|
|
436
|
+
}
|
|
437
|
+
if (item.disabled) {
|
|
438
|
+
this.stepperItemContainer.classList[item.disabled ? 'add' : 'remove'](DISABLED);
|
|
439
|
+
attributes(this.stepperItemContainer, { 'tabindex': '-1', 'aria-disabled': 'true' });
|
|
440
|
+
}
|
|
441
|
+
if (item.isValid !== null) {
|
|
442
|
+
if (item.isValid) {
|
|
443
|
+
this.stepperItemContainer.classList.add('e-step-valid');
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
this.stepperItemContainer.classList.add('e-step-error');
|
|
427
447
|
}
|
|
428
448
|
}
|
|
429
449
|
this.renderItemContent(index, false);
|
|
@@ -462,7 +482,9 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
462
482
|
var isBeforeLabel = (this.element.classList.contains(LABELBEFORE)) ? true : false;
|
|
463
483
|
var isStepVertical = (this.element.classList.contains(VERTICALSTEP)) ? true : false;
|
|
464
484
|
if (isStepVertical) {
|
|
465
|
-
var iconOnly = (this.stepperItemContainer.classList.contains(STEPICON) &&
|
|
485
|
+
var iconOnly = (this.stepperItemContainer.classList.contains(STEPICON) &&
|
|
486
|
+
!this.stepperItemContainer.classList.contains(STEPTEXT) &&
|
|
487
|
+
!this.stepperItemContainer.classList.contains(STEPSLABEL)) ? true : false;
|
|
466
488
|
var textEle = (this.stepperItemContainer.querySelector('.' + TEXTCSS));
|
|
467
489
|
if (textEle) {
|
|
468
490
|
this.textEleWidth = this.textEleWidth < textEle.offsetWidth ? textEle.offsetWidth : this.textEleWidth;
|
|
@@ -519,7 +541,12 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
519
541
|
this.clearLabelPosition();
|
|
520
542
|
this.labelContainer.classList.add('e-label-' + this.updateCurrentLabel());
|
|
521
543
|
if (this.labelPosition.toLowerCase() === 'start' && this.orientation.toLowerCase() === 'vertical') {
|
|
522
|
-
|
|
544
|
+
if (this.stepperItemContainer.firstChild) {
|
|
545
|
+
this.stepperItemContainer.firstChild.before(this.labelContainer);
|
|
546
|
+
}
|
|
547
|
+
else {
|
|
548
|
+
this.stepperItemContainer.appendChild(this.labelContainer);
|
|
549
|
+
}
|
|
523
550
|
}
|
|
524
551
|
else {
|
|
525
552
|
this.stepperItemContainer.appendChild(this.labelContainer);
|
|
@@ -546,15 +573,31 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
546
573
|
else {
|
|
547
574
|
iconEle = itemElement.querySelector('.' + ICONCSS);
|
|
548
575
|
}
|
|
576
|
+
if (!indicatorEle && this.element.classList.contains(STEPINDICATOR) && this.renderDefault(index)) {
|
|
577
|
+
indicatorEle = itemElement.querySelector('.' + INDICATORICON);
|
|
578
|
+
}
|
|
549
579
|
var textLabelIcon = itemElement.querySelector('.e-step-validation-icon');
|
|
550
580
|
var itemIcon = item.iconCss.trim().split(' ');
|
|
551
581
|
var validStep = itemElement.classList.contains('e-step-valid');
|
|
552
582
|
if (indicatorEle) {
|
|
553
|
-
indicatorEle.classList.
|
|
583
|
+
indicatorEle.classList.remove(INDICATORICON);
|
|
584
|
+
if (indicatorEle.innerHTML !== '') {
|
|
585
|
+
indicatorEle.innerHTML = '';
|
|
586
|
+
}
|
|
587
|
+
indicatorEle.classList.add('e-icons', validStep ? 'e-check' : 'e-circle-info', ICONCSS);
|
|
588
|
+
}
|
|
589
|
+
if (this.renderDefault(index) && !this.element.classList.contains(STEPINDICATOR)) {
|
|
590
|
+
var stepSpan = itemElement.querySelector('.e-step');
|
|
591
|
+
stepSpan.classList.add('e-icons', validStep ? 'e-check' : 'e-circle-info', ICONCSS);
|
|
554
592
|
}
|
|
555
593
|
if (iconEle) {
|
|
556
|
-
|
|
557
|
-
iconEle.
|
|
594
|
+
if (iconEle.innerHTML !== '') {
|
|
595
|
+
iconEle.innerHTML = '';
|
|
596
|
+
}
|
|
597
|
+
else if (itemIcon.length > 0) {
|
|
598
|
+
for (var i = 0; i < itemIcon.length; i++) {
|
|
599
|
+
iconEle.classList.remove(itemIcon[parseInt(i.toString(), 10)]);
|
|
600
|
+
}
|
|
558
601
|
}
|
|
559
602
|
iconEle.classList.add('e-icons', validStep ? 'e-check' : 'e-circle-info');
|
|
560
603
|
}
|
|
@@ -611,7 +654,7 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
611
654
|
this.updateTooltipContent(index);
|
|
612
655
|
this.tooltipObj.open(this.stepperItemElements[parseInt((index).toString(), 10)]);
|
|
613
656
|
if (this.stepType.toLocaleLowerCase() !== 'label' && ((this.stepType.toLocaleLowerCase() === 'indicator') ||
|
|
614
|
-
(currentStep.label !== '' && currentStep.iconCss !== ''))) {
|
|
657
|
+
(currentStep.label !== '' && currentStep.iconCss !== '') || (currentStep.label === null && currentStep.iconCss === '' && currentStep.text !== ''))) {
|
|
615
658
|
var tooltipPopupClass = currentStep.status.toLowerCase() === 'inprogress' ?
|
|
616
659
|
STEPPERTOOLTIP + " " + STEPPERIPROGRESSTIP + " " + (this.cssClass ? this.cssClass : '') : STEPPERTOOLTIP + " " + (this.cssClass ? this.cssClass : '');
|
|
617
660
|
this.tooltipObj.setProperties({ cssClass: tooltipPopupClass.trim() });
|
|
@@ -663,8 +706,12 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
663
706
|
this.removeItemContent(listItems[parseInt((index).toString(), 10)]);
|
|
664
707
|
}
|
|
665
708
|
if (this.template) {
|
|
666
|
-
|
|
709
|
+
if (isrerender) {
|
|
710
|
+
listItems[parseInt((index).toString(), 10)].classList.add(TEMPLATE);
|
|
711
|
+
}
|
|
712
|
+
else {
|
|
667
713
|
this.stepperItemContainer.classList.add(TEMPLATE);
|
|
714
|
+
}
|
|
668
715
|
var item = this.steps[parseInt(index.toString(), 10)];
|
|
669
716
|
append(this.templateFunction({ step: item, currentStep: index }, this, 'stepperTemplate', (this.element.id + '_stepperTemplate'), this.isStringTemplate), isrerender ? listItems[parseInt((index).toString(), 10)] : this.stepperItemContainer);
|
|
670
717
|
}
|
|
@@ -721,7 +768,7 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
721
768
|
element: itemElement, event: e, isInteracted: isInteracted,
|
|
722
769
|
previousStep: this.activeStep, activeStep: index, cancel: false
|
|
723
770
|
};
|
|
724
|
-
if (isUpdated
|
|
771
|
+
if (isUpdated !== false) {
|
|
725
772
|
var previousStep_1 = this.activeStep;
|
|
726
773
|
this.trigger('stepChanging', eventArgs, function (args) {
|
|
727
774
|
if (args.cancel) {
|
|
@@ -758,13 +805,17 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
758
805
|
}
|
|
759
806
|
if (this.activeStep >= 0 && this.progressbar) {
|
|
760
807
|
if (this.element.classList.contains(HORIZSTEP)) {
|
|
761
|
-
if ((this.element.classList.contains(LABELBEFORE) || this.element.classList.contains(LABELAFTER)) &&
|
|
808
|
+
if ((this.element.classList.contains(LABELBEFORE) || this.element.classList.contains(LABELAFTER)) &&
|
|
809
|
+
!this.element.classList.contains(STEPINDICATOR) &&
|
|
762
810
|
this.stepperItemElements[parseInt(this.activeStep.toString(), 10)].classList.contains(STEPICON)) {
|
|
763
811
|
var progressPos = this.element.querySelector('.e-stepper-progressbar');
|
|
764
|
-
var selectedEle = this.stepperItemElements[parseInt(this.activeStep.toString(), 10)]
|
|
765
|
-
|
|
812
|
+
var selectedEle = this.stepperItemElements[parseInt(this.activeStep.toString(), 10)]
|
|
813
|
+
.firstChild;
|
|
814
|
+
var value = this.activeStep === 0 ? 0 : (selectedEle.offsetLeft - progressPos.offsetLeft +
|
|
815
|
+
(selectedEle.offsetWidth / 2)) / progressPos.offsetWidth * 100;
|
|
766
816
|
if (this.element.classList.contains(RTL)) {
|
|
767
|
-
value = (progressPos.getBoundingClientRect().right - selectedEle.getBoundingClientRect().right +
|
|
817
|
+
value = (progressPos.getBoundingClientRect().right - selectedEle.getBoundingClientRect().right +
|
|
818
|
+
(selectedEle.offsetWidth / 2)) / progressPos.offsetWidth * 100;
|
|
768
819
|
this.progressbar.style.setProperty(PROGRESSVALUE, (value) + '%');
|
|
769
820
|
}
|
|
770
821
|
else {
|
|
@@ -778,15 +829,19 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
778
829
|
totalLiWidth = totalLiWidth + this.stepperItemElements[parseInt(j.toString(), 10)].offsetWidth;
|
|
779
830
|
if (j <= this.activeStep) {
|
|
780
831
|
if (j < this.activeStep) {
|
|
781
|
-
activeLiWidth = activeLiWidth +
|
|
832
|
+
activeLiWidth = activeLiWidth +
|
|
833
|
+
this.stepperItemElements[parseInt(j.toString(), 10)].offsetWidth;
|
|
782
834
|
}
|
|
783
|
-
else if (j
|
|
784
|
-
activeLiWidth = activeLiWidth +
|
|
835
|
+
else if (j === this.activeStep && j !== 0) {
|
|
836
|
+
activeLiWidth = activeLiWidth +
|
|
837
|
+
(this.stepperItemElements[parseInt(j.toString(), 10)].offsetWidth / 2);
|
|
785
838
|
}
|
|
786
839
|
}
|
|
787
840
|
}
|
|
788
|
-
var spaceWidth = (this.stepperItemList.offsetWidth - totalLiWidth) /
|
|
789
|
-
|
|
841
|
+
var spaceWidth = (this.stepperItemList.offsetWidth - totalLiWidth) /
|
|
842
|
+
(this.stepperItemElements.length - 1);
|
|
843
|
+
var progressValue = ((activeLiWidth + (spaceWidth * this.activeStep)) /
|
|
844
|
+
this.stepperItemList.offsetWidth) * 100;
|
|
790
845
|
this.progressbar.style.setProperty(PROGRESSVALUE, (progressValue) + '%');
|
|
791
846
|
}
|
|
792
847
|
}
|
|
@@ -815,7 +870,7 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
815
870
|
var prevOnChange_1 = this.isProtectedOnChange;
|
|
816
871
|
this.isProtectedOnChange = true;
|
|
817
872
|
if (isUpdated !== false) {
|
|
818
|
-
if (i < this.activeStep || (this.steps.length - 1 === this.activeStep && item.status.toLowerCase() ===
|
|
873
|
+
if (i < this.activeStep || (this.steps.length - 1 === this.activeStep && item.status.toLowerCase() === 'completed')) {
|
|
819
874
|
item.status = StepStatus.Completed;
|
|
820
875
|
}
|
|
821
876
|
else if (i === this.activeStep) {
|
|
@@ -827,17 +882,17 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
827
882
|
if (stepStatus && this.activeStep === i) {
|
|
828
883
|
item.status = stepStatus;
|
|
829
884
|
}
|
|
830
|
-
if (item.status.toLowerCase() ===
|
|
885
|
+
if (item.status.toLowerCase() === 'completed') {
|
|
831
886
|
itemElement.classList.remove(SELECTED, INPROGRESS, NOTSTARTED);
|
|
832
887
|
itemElement.classList.add(COMPLETED);
|
|
833
888
|
}
|
|
834
|
-
if (item.status.toLowerCase() ===
|
|
889
|
+
if (item.status.toLowerCase() === 'notstarted') {
|
|
835
890
|
itemElement.classList.remove(SELECTED, INPROGRESS, COMPLETED);
|
|
836
891
|
itemElement.classList.add(NOTSTARTED);
|
|
837
892
|
}
|
|
838
893
|
}
|
|
839
894
|
this.isProtectedOnChange = prevOnChange_1;
|
|
840
|
-
if (this.renderDefault(i) && this.element.classList.contains(STEPINDICATOR)) {
|
|
895
|
+
if (this.renderDefault(i) && this.element.classList.contains(STEPINDICATOR) && !itemElement.classList.contains('e-step-valid') && !itemElement.classList.contains('e-step-error')) {
|
|
841
896
|
if (itemElement.classList.contains(COMPLETED)) {
|
|
842
897
|
itemElement.firstChild.classList.remove('e-icons', 'e-step-indicator');
|
|
843
898
|
itemElement.firstChild.classList.add(ICONCSS, 'e-icons', 'e-check');
|
|
@@ -977,10 +1032,10 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
977
1032
|
}
|
|
978
1033
|
if ((e.action === 'home' || e.action === 'end')) {
|
|
979
1034
|
if (e.action === 'home') {
|
|
980
|
-
isRTL ?
|
|
1035
|
+
index = isRTL ? stepItems.length - 1 : 0;
|
|
981
1036
|
}
|
|
982
1037
|
else {
|
|
983
|
-
isRTL ?
|
|
1038
|
+
index = isRTL ? 0 : stepItems.length - 1;
|
|
984
1039
|
}
|
|
985
1040
|
}
|
|
986
1041
|
if (index >= 0 && index < stepItems.length) {
|
|
@@ -1010,10 +1065,18 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
1010
1065
|
this.updateElementClassArray();
|
|
1011
1066
|
this.removeItemElements();
|
|
1012
1067
|
this.element.querySelector('.e-stepper-progressbar').remove();
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1068
|
+
if (isUpdate) {
|
|
1069
|
+
this.updatePosition();
|
|
1070
|
+
}
|
|
1071
|
+
if (isStepType) {
|
|
1072
|
+
this.updateStepType();
|
|
1073
|
+
}
|
|
1074
|
+
if (this.readOnly && !this.element.classList.contains(READONLY)) {
|
|
1075
|
+
this.element.classList.add(READONLY);
|
|
1076
|
+
}
|
|
1077
|
+
if (this.enableRtl && !this.element.classList.contains(RTL)) {
|
|
1078
|
+
this.element.classList.add(RTL);
|
|
1079
|
+
}
|
|
1017
1080
|
this.updateOrientaion(this.element);
|
|
1018
1081
|
this.renderItems();
|
|
1019
1082
|
this.renderProgressBar(this.element);
|
|
@@ -1068,8 +1131,10 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
1068
1131
|
this.renderStepperItems(true);
|
|
1069
1132
|
break;
|
|
1070
1133
|
case 'activeStep':
|
|
1071
|
-
this.activeStep = (newProp.activeStep > this.steps.length - 1 || newProp.activeStep < -1) ?
|
|
1072
|
-
|
|
1134
|
+
this.activeStep = (newProp.activeStep > this.steps.length - 1 || newProp.activeStep < -1) ?
|
|
1135
|
+
oldProp.activeStep : this.activeStep;
|
|
1136
|
+
if (this.activeStep >= 0 && this.stepperItemElements[parseInt(this.activeStep.toString(), 10)]
|
|
1137
|
+
.classList.contains(DISABLED)) {
|
|
1073
1138
|
this.activeStep = oldProp.activeStep;
|
|
1074
1139
|
}
|
|
1075
1140
|
if (this.linear) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, INotifyPropertyChanged, NotifyPropertyChanges, Property, ChildProperty, Collection,
|
|
1
|
+
import { Component, INotifyPropertyChanged, NotifyPropertyChanges, Property, ChildProperty, Collection, Event, EmitType, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
2
2
|
import {StepStatus,StepperOrientation} from "./stepper-base";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -152,14 +152,14 @@ export declare class StepperBase extends Component<HTMLElement> implements INoti
|
|
|
152
152
|
* This method is abstract member of the Component<HTMLElement>.
|
|
153
153
|
*
|
|
154
154
|
* @private
|
|
155
|
-
* @returns {string}
|
|
155
|
+
* @returns {string} - It returns the current module name.
|
|
156
156
|
*/
|
|
157
157
|
getModuleName(): string;
|
|
158
158
|
/**
|
|
159
159
|
* This method is abstract member of the Component<HTMLElement>.
|
|
160
160
|
*
|
|
161
161
|
* @private
|
|
162
|
-
* @returns {string}
|
|
162
|
+
* @returns {string} - It returns the persisted data.
|
|
163
163
|
*/
|
|
164
164
|
protected getPersistData(): string;
|
|
165
165
|
/**
|
|
@@ -175,8 +175,8 @@ export declare class StepperBase extends Component<HTMLElement> implements INoti
|
|
|
175
175
|
/**
|
|
176
176
|
* This method is abstract member of the Component<HTMLElement>.
|
|
177
177
|
*
|
|
178
|
-
* @param newProp
|
|
179
|
-
* @param oldProp
|
|
178
|
+
* @param {StepperBaseModel} newProp - Specifies new properties
|
|
179
|
+
* @param {StepperBaseModel} oldProp - Specifies old properties
|
|
180
180
|
* @private
|
|
181
181
|
* @returns {void}
|
|
182
182
|
*/
|
|
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
17
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
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
|
-
import { Component, NotifyPropertyChanges, Property, ChildProperty, Collection, Event } from '@syncfusion/ej2-base';
|
|
20
|
+
import { Component, NotifyPropertyChanges, Property, ChildProperty, Collection, Event, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
21
21
|
var PROGRESSVALUE = '--progress-value';
|
|
22
22
|
/**
|
|
23
23
|
* Defines the status of the step.
|
|
@@ -107,13 +107,14 @@ var StepperBase = /** @class */ (function (_super) {
|
|
|
107
107
|
* @private
|
|
108
108
|
* @returns {void}
|
|
109
109
|
*/
|
|
110
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
110
111
|
StepperBase.prototype.preRender = function () {
|
|
111
112
|
};
|
|
112
113
|
/**
|
|
113
114
|
* This method is abstract member of the Component<HTMLElement>.
|
|
114
115
|
*
|
|
115
116
|
* @private
|
|
116
|
-
* @returns {string}
|
|
117
|
+
* @returns {string} - It returns the current module name.
|
|
117
118
|
*/
|
|
118
119
|
StepperBase.prototype.getModuleName = function () {
|
|
119
120
|
return 'stepperBase';
|
|
@@ -122,7 +123,7 @@ var StepperBase = /** @class */ (function (_super) {
|
|
|
122
123
|
* This method is abstract member of the Component<HTMLElement>.
|
|
123
124
|
*
|
|
124
125
|
* @private
|
|
125
|
-
* @returns {string}
|
|
126
|
+
* @returns {string} - It returns the persisted data.
|
|
126
127
|
*/
|
|
127
128
|
StepperBase.prototype.getPersistData = function () {
|
|
128
129
|
return this.addOnPersist([]);
|
|
@@ -133,13 +134,16 @@ var StepperBase = /** @class */ (function (_super) {
|
|
|
133
134
|
* @private
|
|
134
135
|
* @returns {void}
|
|
135
136
|
*/
|
|
137
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
136
138
|
StepperBase.prototype.render = function () {
|
|
137
139
|
};
|
|
138
140
|
StepperBase.prototype.updateOrientaion = function (wrapper) {
|
|
139
141
|
if (wrapper.classList.contains('e-horizontal') || wrapper.classList.contains('e-vertical')) {
|
|
140
|
-
wrapper.classList.
|
|
142
|
+
wrapper.classList.remove('e-horizontal', 'e-vertical');
|
|
143
|
+
}
|
|
144
|
+
if (!(isNullOrUndefined(this.orientation))) {
|
|
145
|
+
wrapper.classList.add('e-' + this.orientation.toLocaleLowerCase());
|
|
141
146
|
}
|
|
142
|
-
wrapper.classList.add('e-' + this.orientation.toLocaleLowerCase());
|
|
143
147
|
};
|
|
144
148
|
StepperBase.prototype.renderProgressBar = function (wrapper) {
|
|
145
149
|
this.progressStep = this.createElement('div', { className: 'e-stepper-progressbar' });
|
|
@@ -167,7 +171,7 @@ var StepperBase = /** @class */ (function (_super) {
|
|
|
167
171
|
StepperBase.prototype.setProgressPosition = function (wrapper, isResize) {
|
|
168
172
|
var stepItemContainer = (wrapper.querySelector('.e-step-container'));
|
|
169
173
|
var stepItemEle = stepItemContainer.firstElementChild;
|
|
170
|
-
if (isResize
|
|
174
|
+
if (isResize !== true) {
|
|
171
175
|
var topPos = 0;
|
|
172
176
|
if (wrapper.classList.contains('e-label-before')) {
|
|
173
177
|
topPos = (stepItemContainer.offsetParent.offsetHeight - (stepItemEle.offsetHeight / 2) - 1);
|
|
@@ -191,11 +195,12 @@ var StepperBase = /** @class */ (function (_super) {
|
|
|
191
195
|
/**
|
|
192
196
|
* This method is abstract member of the Component<HTMLElement>.
|
|
193
197
|
*
|
|
194
|
-
* @param newProp
|
|
195
|
-
* @param oldProp
|
|
198
|
+
* @param {StepperBaseModel} newProp - Specifies new properties
|
|
199
|
+
* @param {StepperBaseModel} oldProp - Specifies old properties
|
|
196
200
|
* @private
|
|
197
201
|
* @returns {void}
|
|
198
202
|
*/
|
|
203
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars
|
|
199
204
|
StepperBase.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
200
205
|
};
|
|
201
206
|
__decorate([
|
package/src/tab/tab-model.d.ts
CHANGED
package/src/tab/tab.d.ts
CHANGED
|
@@ -289,9 +289,6 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
289
289
|
private draggingItems;
|
|
290
290
|
private draggableItems;
|
|
291
291
|
private tbId;
|
|
292
|
-
private isAngular;
|
|
293
|
-
private isReact;
|
|
294
|
-
private isVue;
|
|
295
292
|
private resizeContext;
|
|
296
293
|
/**
|
|
297
294
|
* Contains the keyboard configuration of the Tab.
|
package/src/tab/tab.js
CHANGED
|
@@ -534,7 +534,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
var tabIndex = isNOU(item.tabIndex) ? '-1' : item.tabIndex.toString();
|
|
537
|
-
var wrapAttrs = (item.disabled) ? {} : { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-selected': 'false', 'aria-disabled': 'false' };
|
|
537
|
+
var wrapAttrs = (item.disabled) ? { role: 'tab', 'aria-disabled': 'true' } : { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-selected': 'false', 'aria-disabled': 'false' };
|
|
538
538
|
tCont.appendChild(_this.btnCls.cloneNode(true));
|
|
539
539
|
var wrap = _this.createElement('div', { className: CLS_WRAP, attrs: wrapAttrs });
|
|
540
540
|
wrap.appendChild(tCont);
|
|
@@ -945,7 +945,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
945
945
|
}
|
|
946
946
|
};
|
|
947
947
|
Tab.prototype.setCssClass = function (ele, cls, val) {
|
|
948
|
-
if (cls === '') {
|
|
948
|
+
if (cls === '' || isNOU(cls)) {
|
|
949
949
|
return;
|
|
950
950
|
}
|
|
951
951
|
var list = cls.split(' ');
|
|
@@ -236,7 +236,7 @@ export interface ToolbarModel extends ComponentModel{
|
|
|
236
236
|
* * If the popup content overflows the height of the page, the rest of the elements will be hidden.
|
|
237
237
|
*
|
|
238
238
|
* {% codeBlock src='toolbar/scrollStep/index.md' %}{% endcodeBlock %}
|
|
239
|
-
*
|
|
239
|
+
*
|
|
240
240
|
* @default null
|
|
241
241
|
*/
|
|
242
242
|
scrollStep?: number;
|