@syncfusion/ej2-navigations 27.2.4 → 28.1.33-686179
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/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 +573 -386
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +819 -626
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/license +10 -10
- package/package.json +167 -167
- 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 +206 -194
- package/src/carousel/carousel.d.ts +11 -0
- package/src/carousel/carousel.js +43 -22
- 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 +236 -229
- package/src/common/menu-base.d.ts +7 -0
- package/src/common/menu-base.js +99 -38
- 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 +33 -18
- package/src/context-menu/context-menu.d.ts +13 -0
- package/src/context-menu/context-menu.js +29 -19
- package/src/menu/menu-model.d.ts +45 -45
- package/src/menu/menu.js +23 -19
- package/src/sidebar/sidebar-model.d.ts +189 -189
- package/src/sidebar/sidebar.js +19 -19
- package/src/stepper/stepper.d.ts +9 -0
- package/src/stepper/stepper.js +281 -256
- package/src/stepper-base/stepper-base.js +34 -30
- package/src/tab/tab-model.d.ts +306 -293
- package/src/tab/tab.d.ts +26 -2
- package/src/tab/tab.js +99 -32
- package/src/toolbar/toolbar-model.d.ts +209 -215
- package/src/toolbar/toolbar.d.ts +0 -6
- package/src/toolbar/toolbar.js +19 -19
- package/src/treeview/treeview-model.d.ts +520 -520
- package/src/treeview/treeview.d.ts +2 -10
- package/src/treeview/treeview.js +37 -36
- 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 -0
- package/styles/accordion/_theme.scss +418 -418
- package/styles/accordion/bds.css +544 -0
- package/styles/accordion/bds.scss +5 -0
- 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 -0
- 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/accordion/tailwind3.css +552 -0
- package/styles/accordion/tailwind3.scss +5 -0
- 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 -0
- package/styles/appbar/_theme.scss +216 -216
- package/styles/appbar/bds.css +302 -0
- package/styles/appbar/bds.scss +4 -0
- package/styles/appbar/material3-dark.scss +1 -1
- package/styles/appbar/material3.scss +1 -1
- package/styles/appbar/tailwind3.css +285 -0
- package/styles/appbar/tailwind3.scss +4 -0
- package/styles/bds-lite.css +9233 -0
- package/styles/bds-lite.scss +47 -0
- package/styles/bds.css +11954 -0
- package/styles/bds.scss +59 -0
- package/styles/bootstrap-dark-lite.css +21 -13
- package/styles/bootstrap-dark.css +35 -14
- package/styles/bootstrap-lite.css +21 -13
- package/styles/bootstrap.css +35 -14
- package/styles/bootstrap4-lite.css +23 -15
- package/styles/bootstrap4.css +37 -16
- package/styles/bootstrap5-dark-lite.css +42 -34
- package/styles/bootstrap5-dark.css +56 -35
- package/styles/bootstrap5-lite.css +29 -21
- package/styles/bootstrap5.3-lite.css +29 -13
- package/styles/bootstrap5.3.css +43 -14
- package/styles/bootstrap5.css +43 -22
- package/styles/breadcrumb/_all.scss +2 -2
- package/styles/breadcrumb/_bds-definition.scss +60 -60
- package/styles/breadcrumb/_bigger.scss +168 -160
- 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 +451 -431
- 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 -0
- package/styles/breadcrumb/_theme.scss +296 -236
- package/styles/breadcrumb/bds.css +418 -0
- package/styles/breadcrumb/bds.scss +5 -0
- package/styles/breadcrumb/bootstrap4.css +2 -2
- package/styles/breadcrumb/fabric-dark.css +3 -3
- 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 -0
- package/styles/breadcrumb/material3-dark.scss +1 -1
- package/styles/breadcrumb/material3.scss +1 -1
- package/styles/breadcrumb/tailwind3.css +441 -0
- package/styles/breadcrumb/tailwind3.scss +5 -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 -0
- package/styles/carousel/_theme.scss +108 -102
- package/styles/carousel/bds.css +426 -0
- package/styles/carousel/bds.scss +5 -0
- package/styles/carousel/fluent2.css +5 -0
- 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 -0
- package/styles/carousel/material3-dark.scss +1 -1
- package/styles/carousel/material3.scss +1 -1
- package/styles/carousel/tailwind3.css +396 -0
- package/styles/carousel/tailwind3.scss +5 -0
- package/styles/context-menu/_all.scss +2 -2
- package/styles/context-menu/_bds-definition.scss +67 -67
- package/styles/context-menu/_bigger.scss +111 -96
- 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 +174 -150
- 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 -0
- package/styles/context-menu/_theme-mixin.scss +91 -91
- package/styles/context-menu/_theme.scss +69 -69
- package/styles/context-menu/bds.css +421 -0
- package/styles/context-menu/bds.scss +8 -0
- package/styles/context-menu/fluent2.css +1 -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 -0
- package/styles/context-menu/material3-dark.scss +1 -1
- package/styles/context-menu/material3.scss +1 -1
- package/styles/context-menu/tailwind3.css +449 -0
- package/styles/context-menu/tailwind3.scss +8 -0
- package/styles/fabric-dark-lite.css +25 -17
- package/styles/fabric-dark.css +39 -18
- package/styles/fabric-lite.css +21 -13
- package/styles/fabric.css +35 -14
- package/styles/fluent-dark-lite.css +23 -17
- package/styles/fluent-dark.css +37 -18
- package/styles/fluent-lite.css +23 -17
- package/styles/fluent.css +37 -18
- package/styles/fluent2-lite.css +52 -24
- package/styles/fluent2.css +66 -25
- 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 -0
- package/styles/h-scroll/_theme.scss +146 -146
- package/styles/h-scroll/bds.css +311 -0
- package/styles/h-scroll/bds.scss +5 -0
- 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 -0
- package/styles/h-scroll/material3-dark.scss +1 -1
- package/styles/h-scroll/material3.scss +1 -1
- package/styles/h-scroll/tailwind3.css +311 -0
- package/styles/h-scroll/tailwind3.scss +5 -0
- package/styles/highcontrast-light-lite.css +21 -13
- package/styles/highcontrast-light.css +35 -14
- package/styles/highcontrast-lite.css +24 -16
- package/styles/highcontrast.css +38 -17
- package/styles/material-dark-lite.css +21 -13
- package/styles/material-dark.css +35 -14
- package/styles/material-lite.css +21 -13
- package/styles/material.css +35 -14
- package/styles/material3-dark-lite.css +21 -13
- package/styles/material3-dark.css +45 -15
- package/styles/material3-dark.scss +1 -1
- package/styles/material3-lite.css +21 -13
- package/styles/material3.css +45 -15
- 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 -355
- 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 -466
- 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 -0
- package/styles/menu/_theme.scss +428 -386
- package/styles/menu/bds.css +1155 -0
- package/styles/menu/bds.scss +9 -0
- package/styles/menu/bootstrap5-dark.css +2 -2
- package/styles/menu/fluent2.css +13 -4
- 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 -0
- package/styles/menu/material3-dark.scss +1 -1
- package/styles/menu/material3.scss +1 -1
- package/styles/menu/tailwind3.css +1238 -0
- package/styles/menu/tailwind3.scss +9 -0
- package/styles/pager/_all.scss +2 -2
- package/styles/pager/_bds-definition.scss +152 -152
- package/styles/pager/_bigger.scss +365 -304
- 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 +768 -742
- 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 -0
- package/styles/pager/_theme.scss +189 -189
- package/styles/pager/bds.css +915 -0
- package/styles/pager/bds.scss +5 -0
- package/styles/pager/bootstrap-dark.css +7 -0
- package/styles/pager/bootstrap.css +7 -0
- package/styles/pager/bootstrap4.css +7 -0
- package/styles/pager/bootstrap5-dark.css +7 -0
- package/styles/pager/bootstrap5.3.css +7 -0
- package/styles/pager/bootstrap5.css +7 -0
- package/styles/pager/fabric-dark.css +7 -0
- package/styles/pager/fabric.css +7 -0
- package/styles/pager/fluent-dark.css +7 -0
- package/styles/pager/fluent.css +7 -0
- package/styles/pager/fluent2.css +10 -0
- package/styles/pager/highcontrast-light.css +7 -0
- package/styles/pager/highcontrast.css +7 -0
- 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 -0
- package/styles/pager/material-dark.css +7 -0
- package/styles/pager/material.css +7 -0
- package/styles/pager/material3-dark.css +15 -1
- package/styles/pager/material3-dark.scss +1 -1
- package/styles/pager/material3.css +15 -1
- package/styles/pager/material3.scss +1 -1
- package/styles/pager/tailwind-dark.css +17 -10
- package/styles/pager/tailwind.css +17 -10
- package/styles/pager/tailwind3.css +875 -0
- package/styles/pager/tailwind3.scss +5 -0
- 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 -0
- package/styles/sidebar/_theme.scss +251 -251
- package/styles/sidebar/bds.css +263 -0
- package/styles/sidebar/bds.scss +3 -0
- 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/sidebar/tailwind3.css +227 -0
- package/styles/sidebar/tailwind3.scss +3 -0
- 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/_layout.scss +2 -0
- package/styles/stepper/_material-dark-definition.scss +4 -2
- package/styles/stepper/_material-definition.scss +7 -5
- package/styles/stepper/_tailwind3-definition.scss +72 -0
- package/styles/stepper/_theme.scss +2 -1
- package/styles/stepper/bds.css +724 -0
- package/styles/stepper/bds.scss +6 -0
- package/styles/stepper/bootstrap-dark.css +4 -1
- package/styles/stepper/bootstrap.css +4 -1
- package/styles/stepper/bootstrap4.css +4 -1
- package/styles/stepper/bootstrap5-dark.css +4 -1
- package/styles/stepper/bootstrap5.3.css +4 -1
- package/styles/stepper/bootstrap5.css +4 -1
- package/styles/stepper/fabric-dark.css +4 -1
- package/styles/stepper/fabric.css +4 -1
- package/styles/stepper/fluent-dark.css +4 -1
- package/styles/stepper/fluent.css +4 -1
- package/styles/stepper/fluent2.css +4 -1
- package/styles/stepper/highcontrast-light.css +4 -1
- package/styles/stepper/highcontrast.css +4 -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 -0
- package/styles/stepper/material-dark.css +4 -1
- package/styles/stepper/material.css +4 -1
- package/styles/stepper/material3-dark.css +4 -1
- package/styles/stepper/material3-dark.scss +1 -1
- package/styles/stepper/material3.css +4 -1
- package/styles/stepper/material3.scss +1 -1
- package/styles/stepper/tailwind-dark.css +4 -1
- package/styles/stepper/tailwind.css +4 -1
- package/styles/stepper/tailwind3.css +724 -0
- package/styles/stepper/tailwind3.scss +6 -0
- package/styles/tab/_all.scss +2 -2
- package/styles/tab/_bds-definition.scss +661 -661
- package/styles/tab/_bigger.scss +1276 -1260
- package/styles/tab/_bootstrap-dark-definition.scss +630 -630
- package/styles/tab/_bootstrap-definition.scss +629 -631
- package/styles/tab/_bootstrap4-definition.scss +637 -637
- package/styles/tab/_bootstrap5-definition.scss +635 -635
- package/styles/tab/_bootstrap5.3-definition.scss +636 -636
- package/styles/tab/_fabric-dark-definition.scss +641 -643
- package/styles/tab/_fabric-definition.scss +643 -645
- package/styles/tab/_fluent-definition.scss +637 -637
- package/styles/tab/_fluent2-definition.scss +664 -666
- package/styles/tab/_fusionnew-definition.scss +632 -634
- package/styles/tab/_highcontrast-definition.scss +667 -669
- package/styles/tab/_highcontrast-light-definition.scss +666 -668
- package/styles/tab/_icons.scss +34 -34
- package/styles/tab/_layout.scss +2187 -2187
- package/styles/tab/_material-dark-definition.scss +646 -648
- package/styles/tab/_material-definition.scss +645 -647
- package/styles/tab/_material3-definition.scss +634 -636
- package/styles/tab/_tailwind-definition.scss +648 -650
- package/styles/tab/_tailwind3-definition.scss +634 -0
- package/styles/tab/_theme.scss +1580 -1592
- package/styles/tab/bds.css +4190 -0
- package/styles/tab/bds.scss +6 -0
- package/styles/tab/bootstrap-dark.css +7 -11
- package/styles/tab/bootstrap.css +7 -11
- package/styles/tab/bootstrap4.css +7 -11
- package/styles/tab/bootstrap5-dark.css +7 -11
- package/styles/tab/bootstrap5.3.css +7 -11
- package/styles/tab/bootstrap5.css +7 -11
- package/styles/tab/fabric-dark.css +7 -11
- package/styles/tab/fabric.css +7 -11
- package/styles/tab/fluent-dark.css +7 -11
- package/styles/tab/fluent.css +7 -11
- package/styles/tab/fluent2.css +10 -14
- package/styles/tab/highcontrast-light.css +7 -11
- package/styles/tab/highcontrast.css +7 -11
- 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 -0
- package/styles/tab/material-dark.css +7 -11
- package/styles/tab/material.css +7 -11
- package/styles/tab/material3-dark.css +9 -11
- package/styles/tab/material3-dark.scss +1 -1
- package/styles/tab/material3.css +9 -11
- package/styles/tab/material3.scss +1 -1
- package/styles/tab/tailwind-dark.css +11 -15
- package/styles/tab/tailwind.css +11 -15
- package/styles/tab/tailwind3.css +4125 -0
- package/styles/tab/tailwind3.scss +6 -0
- package/styles/tailwind-dark-lite.css +31 -23
- package/styles/tailwind-dark.css +52 -31
- package/styles/tailwind-lite.css +29 -21
- package/styles/tailwind.css +50 -29
- package/styles/tailwind3-lite.css +9055 -0
- package/styles/tailwind3-lite.scss +47 -0
- package/styles/tailwind3.css +11743 -0
- package/styles/tailwind3.scss +59 -0
- package/styles/toolbar/_all.scss +2 -2
- package/styles/toolbar/_bds-definition.scss +197 -197
- package/styles/toolbar/_bigger.scss +323 -309
- 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 +748 -742
- 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 -0
- package/styles/toolbar/_theme.scss +449 -436
- package/styles/toolbar/bds.css +1219 -0
- package/styles/toolbar/bds.scss +9 -0
- package/styles/toolbar/bootstrap-dark.css +1 -1
- package/styles/toolbar/bootstrap.css +1 -1
- package/styles/toolbar/bootstrap4.css +1 -1
- package/styles/toolbar/bootstrap5-dark.css +19 -19
- package/styles/toolbar/bootstrap5.3.css +9 -1
- package/styles/toolbar/bootstrap5.css +9 -9
- package/styles/toolbar/fabric-dark.css +1 -1
- package/styles/toolbar/fabric.css +1 -1
- package/styles/toolbar/fluent-dark.css +1 -1
- package/styles/toolbar/fluent.css +1 -1
- package/styles/toolbar/fluent2.css +1 -1
- package/styles/toolbar/highcontrast-light.css +1 -1
- package/styles/toolbar/highcontrast.css +1 -1
- 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 -0
- package/styles/toolbar/material-dark.css +1 -1
- package/styles/toolbar/material.css +1 -1
- package/styles/toolbar/material3-dark.css +1 -1
- package/styles/toolbar/material3-dark.scss +1 -1
- package/styles/toolbar/material3.css +1 -1
- package/styles/toolbar/material3.scss +1 -1
- package/styles/toolbar/tailwind-dark.css +1 -1
- package/styles/toolbar/tailwind.css +1 -1
- package/styles/toolbar/tailwind3.css +1211 -0
- package/styles/toolbar/tailwind3.scss +9 -0
- package/styles/treeview/_all.scss +2 -2
- package/styles/treeview/_bds-definition.scss +131 -131
- package/styles/treeview/_bigger.scss +406 -393
- 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 +761 -724
- 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 -0
- package/styles/treeview/_theme.scss +352 -350
- package/styles/treeview/bds.css +1031 -0
- package/styles/treeview/bds.scss +7 -0
- package/styles/treeview/bootstrap-dark.css +16 -1
- package/styles/treeview/bootstrap.css +16 -1
- package/styles/treeview/bootstrap4.css +16 -1
- package/styles/treeview/bootstrap5-dark.css +16 -1
- package/styles/treeview/bootstrap5.3.css +16 -1
- package/styles/treeview/bootstrap5.css +16 -1
- package/styles/treeview/fabric-dark.css +16 -1
- package/styles/treeview/fabric.css +16 -1
- package/styles/treeview/fluent-dark.css +18 -5
- package/styles/treeview/fluent.css +18 -5
- package/styles/treeview/fluent2.css +22 -4
- package/styles/treeview/highcontrast-light.css +16 -1
- package/styles/treeview/highcontrast.css +19 -4
- 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 -0
- package/styles/treeview/material-dark.css +16 -1
- package/styles/treeview/material.css +16 -1
- package/styles/treeview/material3-dark.css +16 -1
- package/styles/treeview/material3-dark.scss +1 -1
- package/styles/treeview/material3.css +16 -1
- package/styles/treeview/material3.scss +1 -1
- package/styles/treeview/tailwind-dark.css +17 -2
- package/styles/treeview/tailwind.css +17 -2
- package/styles/treeview/tailwind3.css +806 -0
- package/styles/treeview/tailwind3.scss +7 -0
- 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 -0
- package/styles/v-scroll/_theme.scss +114 -114
- package/styles/v-scroll/bds.css +218 -0
- package/styles/v-scroll/bds.scss +5 -0
- package/styles/v-scroll/fabric-dark.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 -0
- package/styles/v-scroll/material3-dark.scss +1 -1
- package/styles/v-scroll/material3.scss +1 -1
- package/styles/v-scroll/tailwind3.css +218 -0
- package/styles/v-scroll/tailwind3.scss +5 -0
- package/tslint.json +111 -111
- package/dist/ej2-navigations.min.js +0 -10
- package/dist/global/ej2-navigations.min.js +0 -11
- package/dist/global/ej2-navigations.min.js.map +0 -1
- package/dist/global/index.d.ts +0 -14
- 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
|
@@ -5,25 +5,25 @@ import { Button, createCheckBox, rippleMouseHandler } from '@syncfusion/ej2-butt
|
|
|
5
5
|
import { DataManager, Query } from '@syncfusion/ej2-data';
|
|
6
6
|
import { Input } from '@syncfusion/ej2-inputs';
|
|
7
7
|
|
|
8
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
9
|
-
var extendStatics = function (d, b) {
|
|
10
|
-
extendStatics = Object.setPrototypeOf ||
|
|
11
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
13
|
-
return extendStatics(d, b);
|
|
14
|
-
};
|
|
15
|
-
return function (d, b) {
|
|
16
|
-
extendStatics(d, b);
|
|
17
|
-
function __() { this.constructor = d; }
|
|
18
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
19
|
-
};
|
|
20
|
-
})();
|
|
21
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
22
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24
|
-
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;
|
|
25
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26
|
-
};
|
|
8
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
9
|
+
var extendStatics = function (d, b) {
|
|
10
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
13
|
+
return extendStatics(d, b);
|
|
14
|
+
};
|
|
15
|
+
return function (d, b) {
|
|
16
|
+
extendStatics(d, b);
|
|
17
|
+
function __() { this.constructor = d; }
|
|
18
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
19
|
+
};
|
|
20
|
+
})();
|
|
21
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
22
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24
|
+
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;
|
|
25
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26
|
+
};
|
|
27
27
|
var CLS_ROOT = 'e-hscroll';
|
|
28
28
|
var CLS_RTL = 'e-rtl';
|
|
29
29
|
var CLS_DISABLE = 'e-overlay';
|
|
@@ -52,7 +52,7 @@ var OVERLAY_MAXWID = 40;
|
|
|
52
52
|
* </script>
|
|
53
53
|
* ```
|
|
54
54
|
*/
|
|
55
|
-
var HScroll = /** @
|
|
55
|
+
var HScroll = /** @class */ (function (_super) {
|
|
56
56
|
__extends(HScroll, _super);
|
|
57
57
|
/**
|
|
58
58
|
* Initializes a new instance of the HScroll class.
|
|
@@ -501,25 +501,25 @@ var HScroll = /** @__PURE__ @class */ (function (_super) {
|
|
|
501
501
|
return HScroll;
|
|
502
502
|
}(Component));
|
|
503
503
|
|
|
504
|
-
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
505
|
-
var extendStatics = function (d, b) {
|
|
506
|
-
extendStatics = Object.setPrototypeOf ||
|
|
507
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
508
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
509
|
-
return extendStatics(d, b);
|
|
510
|
-
};
|
|
511
|
-
return function (d, b) {
|
|
512
|
-
extendStatics(d, b);
|
|
513
|
-
function __() { this.constructor = d; }
|
|
514
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
515
|
-
};
|
|
516
|
-
})();
|
|
517
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
518
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
519
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
520
|
-
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;
|
|
521
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
522
|
-
};
|
|
504
|
+
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
505
|
+
var extendStatics = function (d, b) {
|
|
506
|
+
extendStatics = Object.setPrototypeOf ||
|
|
507
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
508
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
509
|
+
return extendStatics(d, b);
|
|
510
|
+
};
|
|
511
|
+
return function (d, b) {
|
|
512
|
+
extendStatics(d, b);
|
|
513
|
+
function __() { this.constructor = d; }
|
|
514
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
515
|
+
};
|
|
516
|
+
})();
|
|
517
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
518
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
519
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
520
|
+
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;
|
|
521
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
522
|
+
};
|
|
523
523
|
var CLS_ROOT$1 = 'e-vscroll';
|
|
524
524
|
var CLS_RTL$1 = 'e-rtl';
|
|
525
525
|
var CLS_DISABLE$1 = 'e-overlay';
|
|
@@ -548,7 +548,7 @@ var OVERLAY_MAXWID$1 = 40;
|
|
|
548
548
|
* </script>
|
|
549
549
|
* ```
|
|
550
550
|
*/
|
|
551
|
-
var VScroll = /** @
|
|
551
|
+
var VScroll = /** @class */ (function (_super) {
|
|
552
552
|
__extends$1(VScroll, _super);
|
|
553
553
|
/**
|
|
554
554
|
* Initializes a new instance of the VScroll class.
|
|
@@ -1070,25 +1070,25 @@ function destroyScroll(scrollObj, element, skipEle) {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
1072
|
|
|
1073
|
-
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
1074
|
-
var extendStatics = function (d, b) {
|
|
1075
|
-
extendStatics = Object.setPrototypeOf ||
|
|
1076
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1077
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1078
|
-
return extendStatics(d, b);
|
|
1079
|
-
};
|
|
1080
|
-
return function (d, b) {
|
|
1081
|
-
extendStatics(d, b);
|
|
1082
|
-
function __() { this.constructor = d; }
|
|
1083
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1084
|
-
};
|
|
1085
|
-
})();
|
|
1086
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1087
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1088
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1089
|
-
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;
|
|
1090
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1091
|
-
};
|
|
1073
|
+
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
1074
|
+
var extendStatics = function (d, b) {
|
|
1075
|
+
extendStatics = Object.setPrototypeOf ||
|
|
1076
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1077
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1078
|
+
return extendStatics(d, b);
|
|
1079
|
+
};
|
|
1080
|
+
return function (d, b) {
|
|
1081
|
+
extendStatics(d, b);
|
|
1082
|
+
function __() { this.constructor = d; }
|
|
1083
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1084
|
+
};
|
|
1085
|
+
})();
|
|
1086
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1087
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1088
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1089
|
+
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;
|
|
1090
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1091
|
+
};
|
|
1092
1092
|
var ENTER = 'enter';
|
|
1093
1093
|
var ESCAPE = 'escape';
|
|
1094
1094
|
var FOCUSED = 'e-focused';
|
|
@@ -1113,7 +1113,7 @@ var TEMPLATE_PROPERTY = 'Template';
|
|
|
1113
1113
|
/**
|
|
1114
1114
|
* Configures the field options of the Menu.
|
|
1115
1115
|
*/
|
|
1116
|
-
var FieldSettings = /** @
|
|
1116
|
+
var FieldSettings = /** @class */ (function (_super) {
|
|
1117
1117
|
__extends$2(FieldSettings, _super);
|
|
1118
1118
|
function FieldSettings() {
|
|
1119
1119
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -1144,7 +1144,7 @@ var FieldSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
1144
1144
|
/**
|
|
1145
1145
|
* Specifies menu items.
|
|
1146
1146
|
*/
|
|
1147
|
-
var MenuItem = /** @
|
|
1147
|
+
var MenuItem = /** @class */ (function (_super) {
|
|
1148
1148
|
__extends$2(MenuItem, _super);
|
|
1149
1149
|
function MenuItem() {
|
|
1150
1150
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -1167,12 +1167,15 @@ var MenuItem = /** @__PURE__ @class */ (function (_super) {
|
|
|
1167
1167
|
__decorate$2([
|
|
1168
1168
|
Property('')
|
|
1169
1169
|
], MenuItem.prototype, "url", void 0);
|
|
1170
|
+
__decorate$2([
|
|
1171
|
+
Property()
|
|
1172
|
+
], MenuItem.prototype, "htmlAttributes", void 0);
|
|
1170
1173
|
return MenuItem;
|
|
1171
1174
|
}(ChildProperty));
|
|
1172
1175
|
/**
|
|
1173
1176
|
* Animation configuration settings.
|
|
1174
1177
|
*/
|
|
1175
|
-
var MenuAnimationSettings = /** @
|
|
1178
|
+
var MenuAnimationSettings = /** @class */ (function (_super) {
|
|
1176
1179
|
__extends$2(MenuAnimationSettings, _super);
|
|
1177
1180
|
function MenuAnimationSettings() {
|
|
1178
1181
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -1193,7 +1196,7 @@ var MenuAnimationSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
1193
1196
|
*
|
|
1194
1197
|
* @private
|
|
1195
1198
|
*/
|
|
1196
|
-
var MenuBase = /** @
|
|
1199
|
+
var MenuBase = /** @class */ (function (_super) {
|
|
1197
1200
|
__extends$2(MenuBase, _super);
|
|
1198
1201
|
/**
|
|
1199
1202
|
* Constructor for creating the widget.
|
|
@@ -1896,7 +1899,10 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1896
1899
|
var data = {
|
|
1897
1900
|
text: item[this.getField('text')].toString(), iconCss: ICONS + ' e-previous'
|
|
1898
1901
|
};
|
|
1899
|
-
|
|
1902
|
+
if (this.template) {
|
|
1903
|
+
item.iconCss = (item.iconCss || '') + ICONS + ' e-previous';
|
|
1904
|
+
}
|
|
1905
|
+
var hdata = new MenuItem(this.items[0], 'items', this.template ? item : data, true);
|
|
1900
1906
|
var hli = this.createItems([hdata]).children[0];
|
|
1901
1907
|
hli.classList.add(HEADER);
|
|
1902
1908
|
this.uList.insertBefore(hli, this.uList.children[0]);
|
|
@@ -2145,6 +2151,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2145
2151
|
timingFunction: _this.animationSettings.easing
|
|
2146
2152
|
} : null;
|
|
2147
2153
|
_this.popupObj.show(animationOptions, _this.lItem);
|
|
2154
|
+
if (Browser.isDevice) {
|
|
2155
|
+
_this.popupWrapper.style.left = _this.left + 'px';
|
|
2156
|
+
}
|
|
2148
2157
|
}
|
|
2149
2158
|
}
|
|
2150
2159
|
else {
|
|
@@ -2285,8 +2294,34 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2285
2294
|
}
|
|
2286
2295
|
}
|
|
2287
2296
|
this.toggleVisiblity(ul, false);
|
|
2288
|
-
|
|
2289
|
-
|
|
2297
|
+
var wrapper = closest(this.element, '.e-' + this.getModuleName() + '-wrapper');
|
|
2298
|
+
if (!this.isMenu && this.enableScrolling && ul && wrapper && wrapper.offsetHeight > 0) {
|
|
2299
|
+
var menuVScroll = closest(ul, '.e-menu-vscroll');
|
|
2300
|
+
ul.style.display = 'block';
|
|
2301
|
+
if (menuVScroll) {
|
|
2302
|
+
destroyScroll(getInstance(menuVScroll, VScroll), menuVScroll);
|
|
2303
|
+
}
|
|
2304
|
+
var cmenuWidth = Math.ceil(this.getMenuWidth(ul, ul.offsetWidth, this.enableRtl));
|
|
2305
|
+
var cmenu = addScrolling(this.createElement, wrapper, ul, 'vscroll', this.enableRtl, wrapper.offsetHeight);
|
|
2306
|
+
Object.assign(cmenu.style, {
|
|
2307
|
+
top: top + "px",
|
|
2308
|
+
left: left + "px",
|
|
2309
|
+
width: cmenuWidth + "px",
|
|
2310
|
+
position: 'absolute',
|
|
2311
|
+
display: 'none'
|
|
2312
|
+
});
|
|
2313
|
+
}
|
|
2314
|
+
else {
|
|
2315
|
+
ul.style.top = top + px;
|
|
2316
|
+
ul.style.left = left + px;
|
|
2317
|
+
}
|
|
2318
|
+
};
|
|
2319
|
+
MenuBase.prototype.getMenuWidth = function (cmenu, width, isRtl) {
|
|
2320
|
+
var caretIcon = cmenu.getElementsByClassName(CARET)[0];
|
|
2321
|
+
if (caretIcon) {
|
|
2322
|
+
width += parseInt(getComputedStyle(caretIcon)[isRtl ? 'marginRight' : 'marginLeft'], 10);
|
|
2323
|
+
}
|
|
2324
|
+
return width < 120 ? 120 : width;
|
|
2290
2325
|
};
|
|
2291
2326
|
MenuBase.prototype.toggleVisiblity = function (ul, isVisible) {
|
|
2292
2327
|
if (isVisible === void 0) { isVisible = true; }
|
|
@@ -2312,15 +2347,24 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2312
2347
|
args.curData.htmlAttributes = {};
|
|
2313
2348
|
}
|
|
2314
2349
|
if (Browser.isIE) {
|
|
2315
|
-
args.curData.htmlAttributes.role
|
|
2316
|
-
|
|
2350
|
+
if (!args.curData.htmlAttributes.role) {
|
|
2351
|
+
args.curData.htmlAttributes.role = 'menuitem';
|
|
2352
|
+
}
|
|
2353
|
+
if (!args.curData.htmlAttributes.tabindex) {
|
|
2354
|
+
args.curData.htmlAttributes.tabindex = '-1';
|
|
2355
|
+
}
|
|
2317
2356
|
}
|
|
2318
2357
|
else {
|
|
2319
|
-
Object.assign(args.curData.htmlAttributes, {
|
|
2358
|
+
Object.assign(args.curData.htmlAttributes, {
|
|
2359
|
+
role: args.curData.htmlAttributes.role || 'menuitem',
|
|
2360
|
+
tabindex: args.curData.htmlAttributes.tabindex || '-1'
|
|
2361
|
+
});
|
|
2320
2362
|
}
|
|
2321
2363
|
if (_this.isMenu && !args.curData[_this.getField('separator', level)]) {
|
|
2322
|
-
args.curData.htmlAttributes['aria-label']
|
|
2323
|
-
args.curData[
|
|
2364
|
+
if (!args.curData.htmlAttributes['aria-label']) {
|
|
2365
|
+
args.curData.htmlAttributes['aria-label'] = args.curData[args.fields.text] ?
|
|
2366
|
+
args.curData[args.fields.text] : args.curData[args.fields.id];
|
|
2367
|
+
}
|
|
2324
2368
|
}
|
|
2325
2369
|
if (args.curData[args.fields[fields.iconCss]] === '') {
|
|
2326
2370
|
args.curData[args.fields[fields.iconCss]] = null;
|
|
@@ -2329,7 +2373,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2329
2373
|
itemCreated: function (args) {
|
|
2330
2374
|
if (args.curData[_this.getField('separator', level)]) {
|
|
2331
2375
|
args.item.classList.add(SEPARATOR);
|
|
2332
|
-
args.
|
|
2376
|
+
if (!args.curData.htmlAttributes.role) {
|
|
2377
|
+
args.item.setAttribute('role', 'separator');
|
|
2378
|
+
}
|
|
2333
2379
|
}
|
|
2334
2380
|
if (showIcon && !args.curData[args.fields.iconCss]
|
|
2335
2381
|
&& !args.curData[_this.getField('separator', level)]) {
|
|
@@ -2579,9 +2625,10 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2579
2625
|
}
|
|
2580
2626
|
}
|
|
2581
2627
|
else {
|
|
2582
|
-
if (
|
|
2583
|
-
var popupEle = closest(trgt, '.' + POPUP);
|
|
2584
|
-
var cIdx = Array.prototype.indexOf.call(this.getPopups(), popupEle) + 1
|
|
2628
|
+
if (trgt.tagName === 'DIV' && closest(trgt, '.e-menu-vscroll') && (this.navIdx.length || !this.isMenu && this.enableScrolling && this.navIdx.length === 0)) {
|
|
2629
|
+
var popupEle = this.isMenu ? closest(trgt, '.' + POPUP) : closest(trgt, '.e-menu-vscroll');
|
|
2630
|
+
var cIdx = this.isMenu ? Array.prototype.indexOf.call(this.getPopups(), popupEle) + 1
|
|
2631
|
+
: this.getIdx(wrapper, select('ul.e-menu-parent', popupEle));
|
|
2585
2632
|
if (cIdx < this.navIdx.length) {
|
|
2586
2633
|
this.closeMenu(cIdx + 1, e);
|
|
2587
2634
|
if (popupEle) {
|
|
@@ -2730,7 +2777,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2730
2777
|
};
|
|
2731
2778
|
MenuBase.prototype.getIdx = function (ul, li, skipHdr) {
|
|
2732
2779
|
if (skipHdr === void 0) { skipHdr = true; }
|
|
2733
|
-
var
|
|
2780
|
+
var ulElem = !this.isMenu && this.enableScrolling && select('.e-menu-vscroll', ul)
|
|
2781
|
+
? selectAll('.e-menu-parent', ul) : Array.from(ul.children);
|
|
2782
|
+
var idx = Array.prototype.indexOf.call(ulElem, li);
|
|
2734
2783
|
if (skipHdr && ul.children[0].classList.contains(HEADER)) {
|
|
2735
2784
|
idx--;
|
|
2736
2785
|
}
|
|
@@ -2814,7 +2863,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2814
2863
|
}
|
|
2815
2864
|
else {
|
|
2816
2865
|
var ul_3 = wrapper.children[0];
|
|
2817
|
-
if (this_1.element.classList.contains('e-vertical')) {
|
|
2866
|
+
if (this_1.element.classList.contains('e-vertical') || !this_1.isMenu) {
|
|
2818
2867
|
destroyScroll(getInstance(ul_3, VScroll), ul_3);
|
|
2819
2868
|
}
|
|
2820
2869
|
else {
|
|
@@ -2985,6 +3034,8 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2985
3034
|
if (isMenuOpen === void 0) { isMenuOpen = true; }
|
|
2986
3035
|
var pUlHeight;
|
|
2987
3036
|
var pElement;
|
|
3037
|
+
var animateElement = (this.enableScrolling && !this.isMenu && closest(ul, '.e-menu-vscroll'))
|
|
3038
|
+
? closest(ul, '.e-menu-vscroll') : ul;
|
|
2988
3039
|
if (this.animationSettings.effect === 'None' || !isMenuOpen) {
|
|
2989
3040
|
if (this.hamburgerMode && ul) {
|
|
2990
3041
|
ul.style.top = '0px';
|
|
@@ -2993,7 +3044,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2993
3044
|
this.end(ul, isMenuOpen);
|
|
2994
3045
|
}
|
|
2995
3046
|
else {
|
|
2996
|
-
this.animation.animate(
|
|
3047
|
+
this.animation.animate(animateElement, {
|
|
2997
3048
|
name: this.animationSettings.effect,
|
|
2998
3049
|
duration: this.animationSettings.duration,
|
|
2999
3050
|
timingFunction: this.animationSettings.easing,
|
|
@@ -3011,7 +3062,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
3011
3062
|
}
|
|
3012
3063
|
else {
|
|
3013
3064
|
options.element.style.display = 'block';
|
|
3014
|
-
options.element.style.maxHeight = options.element.getBoundingClientRect().height + 'px';
|
|
3065
|
+
options.element.style.maxHeight = _this.isMenu ? options.element.getBoundingClientRect().height + 'px' : options.element.scrollHeight + 'px';
|
|
3015
3066
|
}
|
|
3016
3067
|
},
|
|
3017
3068
|
progress: function (options) {
|
|
@@ -3048,11 +3099,15 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
3048
3099
|
}
|
|
3049
3100
|
};
|
|
3050
3101
|
MenuBase.prototype.end = function (ul, isMenuOpen) {
|
|
3051
|
-
if (isMenuOpen &&
|
|
3052
|
-
if (this.isMenu || !Browser.isDevice) {
|
|
3102
|
+
if (isMenuOpen && this.isContextMenuClosed) {
|
|
3103
|
+
if (this.isMenu || !Browser.isDevice || (!this.isMenu && this.isAnimationNone && Browser.isDevice)) {
|
|
3053
3104
|
ul.style.display = 'block';
|
|
3054
3105
|
}
|
|
3055
3106
|
ul.style.maxHeight = '';
|
|
3107
|
+
var scrollMenu = this.enableScrolling && !this.isMenu ? closest(ul, '.e-menu-vscroll') : null;
|
|
3108
|
+
if (scrollMenu) {
|
|
3109
|
+
scrollMenu.style.display = 'block';
|
|
3110
|
+
}
|
|
3056
3111
|
this.triggerOpen(ul);
|
|
3057
3112
|
if (ul.querySelector('.' + FOCUSED)) {
|
|
3058
3113
|
ul.querySelector('.' + FOCUSED).focus();
|
|
@@ -3080,6 +3135,10 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
3080
3135
|
}
|
|
3081
3136
|
}
|
|
3082
3137
|
else {
|
|
3138
|
+
var scrollMenu = this.enableScrolling && !this.isMenu ? closest(ul, '.e-menu-vscroll') : null;
|
|
3139
|
+
if (scrollMenu) {
|
|
3140
|
+
destroyScroll(getInstance(scrollMenu, VScroll), scrollMenu);
|
|
3141
|
+
}
|
|
3083
3142
|
if (ul === this.element) {
|
|
3084
3143
|
var fli = this.getLIByClass(this.element, FOCUSED);
|
|
3085
3144
|
if (fli) {
|
|
@@ -3123,7 +3182,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
3123
3182
|
level = isCallBack ? level + 1 : 0;
|
|
3124
3183
|
for (var i = 0, len = items.length; i < len; i++) {
|
|
3125
3184
|
item = items[i];
|
|
3126
|
-
|
|
3185
|
+
var currentField = isUniqueId ? item[this.getField('itemId', level)] : item[this.getField('text', level)];
|
|
3186
|
+
var itemId = (item.htmlAttributes && 'id' in item.htmlAttributes) ? item.htmlAttributes.id : currentField;
|
|
3187
|
+
if (itemId === data) {
|
|
3127
3188
|
nIndex.push(i);
|
|
3128
3189
|
break;
|
|
3129
3190
|
}
|
|
@@ -3466,25 +3527,25 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
3466
3527
|
return MenuBase;
|
|
3467
3528
|
}(Component));
|
|
3468
3529
|
|
|
3469
|
-
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
3470
|
-
var extendStatics = function (d, b) {
|
|
3471
|
-
extendStatics = Object.setPrototypeOf ||
|
|
3472
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
3473
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
3474
|
-
return extendStatics(d, b);
|
|
3475
|
-
};
|
|
3476
|
-
return function (d, b) {
|
|
3477
|
-
extendStatics(d, b);
|
|
3478
|
-
function __() { this.constructor = d; }
|
|
3479
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
3480
|
-
};
|
|
3481
|
-
})();
|
|
3482
|
-
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3483
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3484
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3485
|
-
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;
|
|
3486
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3487
|
-
};
|
|
3530
|
+
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
3531
|
+
var extendStatics = function (d, b) {
|
|
3532
|
+
extendStatics = Object.setPrototypeOf ||
|
|
3533
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
3534
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
3535
|
+
return extendStatics(d, b);
|
|
3536
|
+
};
|
|
3537
|
+
return function (d, b) {
|
|
3538
|
+
extendStatics(d, b);
|
|
3539
|
+
function __() { this.constructor = d; }
|
|
3540
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
3541
|
+
};
|
|
3542
|
+
})();
|
|
3543
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3544
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3545
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3546
|
+
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;
|
|
3547
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3548
|
+
};
|
|
3488
3549
|
var CLS_VERTICAL = 'e-vertical';
|
|
3489
3550
|
var CLS_ITEMS = 'e-toolbar-items';
|
|
3490
3551
|
var CLS_ITEM = 'e-toolbar-item';
|
|
@@ -3528,7 +3589,7 @@ var CLS_EXTENDEDPOPOPEN = 'e-tbar-extended';
|
|
|
3528
3589
|
/**
|
|
3529
3590
|
* An item object that is used to configure Toolbar commands.
|
|
3530
3591
|
*/
|
|
3531
|
-
var Item = /** @
|
|
3592
|
+
var Item = /** @class */ (function (_super) {
|
|
3532
3593
|
__extends$3(Item, _super);
|
|
3533
3594
|
function Item() {
|
|
3534
3595
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -3599,7 +3660,7 @@ var Item = /** @__PURE__ @class */ (function (_super) {
|
|
|
3599
3660
|
* </script>
|
|
3600
3661
|
* ```
|
|
3601
3662
|
*/
|
|
3602
|
-
var Toolbar = /** @
|
|
3663
|
+
var Toolbar = /** @class */ (function (_super) {
|
|
3603
3664
|
__extends$3(Toolbar, _super);
|
|
3604
3665
|
/**
|
|
3605
3666
|
* Initializes a new instance of the Toolbar class.
|
|
@@ -5862,25 +5923,25 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
5862
5923
|
return Toolbar;
|
|
5863
5924
|
}(Component));
|
|
5864
5925
|
|
|
5865
|
-
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
5866
|
-
var extendStatics = function (d, b) {
|
|
5867
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5868
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5869
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
5870
|
-
return extendStatics(d, b);
|
|
5871
|
-
};
|
|
5872
|
-
return function (d, b) {
|
|
5873
|
-
extendStatics(d, b);
|
|
5874
|
-
function __() { this.constructor = d; }
|
|
5875
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
5876
|
-
};
|
|
5877
|
-
})();
|
|
5878
|
-
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5879
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5880
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5881
|
-
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;
|
|
5882
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5883
|
-
};
|
|
5926
|
+
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
5927
|
+
var extendStatics = function (d, b) {
|
|
5928
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5929
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5930
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
5931
|
+
return extendStatics(d, b);
|
|
5932
|
+
};
|
|
5933
|
+
return function (d, b) {
|
|
5934
|
+
extendStatics(d, b);
|
|
5935
|
+
function __() { this.constructor = d; }
|
|
5936
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
5937
|
+
};
|
|
5938
|
+
})();
|
|
5939
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5940
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5941
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5942
|
+
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;
|
|
5943
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5944
|
+
};
|
|
5884
5945
|
var CLS_ACRDN_ROOT = 'e-acrdn-root';
|
|
5885
5946
|
var CLS_ROOT$2 = 'e-accordion';
|
|
5886
5947
|
var CLS_ITEM$1 = 'e-acrdn-item';
|
|
@@ -5908,7 +5969,7 @@ var CLS_CONTAINER = 'e-accordion-container';
|
|
|
5908
5969
|
/**
|
|
5909
5970
|
* Objects used for configuring the Accordion expanding item action properties.
|
|
5910
5971
|
*/
|
|
5911
|
-
var AccordionActionSettings = /** @
|
|
5972
|
+
var AccordionActionSettings = /** @class */ (function (_super) {
|
|
5912
5973
|
__extends$4(AccordionActionSettings, _super);
|
|
5913
5974
|
function AccordionActionSettings() {
|
|
5914
5975
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -5927,7 +5988,7 @@ var AccordionActionSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
5927
5988
|
/**
|
|
5928
5989
|
* Objects used for configuring the Accordion animation properties.
|
|
5929
5990
|
*/
|
|
5930
|
-
var AccordionAnimationSettings = /** @
|
|
5991
|
+
var AccordionAnimationSettings = /** @class */ (function (_super) {
|
|
5931
5992
|
__extends$4(AccordionAnimationSettings, _super);
|
|
5932
5993
|
function AccordionAnimationSettings() {
|
|
5933
5994
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -5943,7 +6004,7 @@ var AccordionAnimationSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
5943
6004
|
/**
|
|
5944
6005
|
* An item object that is used to configure Accordion items.
|
|
5945
6006
|
*/
|
|
5946
|
-
var AccordionItem = /** @
|
|
6007
|
+
var AccordionItem = /** @class */ (function (_super) {
|
|
5947
6008
|
__extends$4(AccordionItem, _super);
|
|
5948
6009
|
function AccordionItem() {
|
|
5949
6010
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -5984,7 +6045,7 @@ var AccordionItem = /** @__PURE__ @class */ (function (_super) {
|
|
|
5984
6045
|
* </script>
|
|
5985
6046
|
* ```
|
|
5986
6047
|
*/
|
|
5987
|
-
var Accordion = /** @
|
|
6048
|
+
var Accordion = /** @class */ (function (_super) {
|
|
5988
6049
|
__extends$4(Accordion, _super);
|
|
5989
6050
|
/**
|
|
5990
6051
|
* Initializes a new instance of the Accordion class.
|
|
@@ -7256,25 +7317,25 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
|
|
|
7256
7317
|
return Accordion;
|
|
7257
7318
|
}(Component));
|
|
7258
7319
|
|
|
7259
|
-
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
7260
|
-
var extendStatics = function (d, b) {
|
|
7261
|
-
extendStatics = Object.setPrototypeOf ||
|
|
7262
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7263
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7264
|
-
return extendStatics(d, b);
|
|
7265
|
-
};
|
|
7266
|
-
return function (d, b) {
|
|
7267
|
-
extendStatics(d, b);
|
|
7268
|
-
function __() { this.constructor = d; }
|
|
7269
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7270
|
-
};
|
|
7271
|
-
})();
|
|
7272
|
-
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7273
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7274
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7275
|
-
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;
|
|
7276
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7277
|
-
};
|
|
7320
|
+
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
7321
|
+
var extendStatics = function (d, b) {
|
|
7322
|
+
extendStatics = Object.setPrototypeOf ||
|
|
7323
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7324
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7325
|
+
return extendStatics(d, b);
|
|
7326
|
+
};
|
|
7327
|
+
return function (d, b) {
|
|
7328
|
+
extendStatics(d, b);
|
|
7329
|
+
function __() { this.constructor = d; }
|
|
7330
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7331
|
+
};
|
|
7332
|
+
})();
|
|
7333
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7334
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7335
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7336
|
+
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;
|
|
7337
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7338
|
+
};
|
|
7278
7339
|
/**
|
|
7279
7340
|
* The ContextMenu is a graphical user interface that appears on the user right click/touch hold operation.
|
|
7280
7341
|
* ```html
|
|
@@ -7287,7 +7348,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
7287
7348
|
* </script>
|
|
7288
7349
|
* ```
|
|
7289
7350
|
*/
|
|
7290
|
-
var ContextMenu = /** @
|
|
7351
|
+
var ContextMenu = /** @class */ (function (_super) {
|
|
7291
7352
|
__extends$5(ContextMenu, _super);
|
|
7292
7353
|
/**
|
|
7293
7354
|
* Constructor for creating the widget.
|
|
@@ -7311,6 +7372,7 @@ var ContextMenu = /** @__PURE__ @class */ (function (_super) {
|
|
|
7311
7372
|
_super.prototype.preRender.call(this);
|
|
7312
7373
|
};
|
|
7313
7374
|
ContextMenu.prototype.initialize = function () {
|
|
7375
|
+
this.template = this.itemTemplate ? this.itemTemplate : null;
|
|
7314
7376
|
_super.prototype.initialize.call(this);
|
|
7315
7377
|
attributes(this.element, { 'role': 'menubar', 'tabindex': '0' });
|
|
7316
7378
|
this.element.style.zIndex = getZindexPartial(this.element).toString();
|
|
@@ -7357,6 +7419,9 @@ var ContextMenu = /** @__PURE__ @class */ (function (_super) {
|
|
|
7357
7419
|
this.unWireEvents(oldProp.target);
|
|
7358
7420
|
this.wireEvents();
|
|
7359
7421
|
break;
|
|
7422
|
+
case 'itemTemplate':
|
|
7423
|
+
this.itemTemplate = newProp.itemTemplate;
|
|
7424
|
+
this.refresh();
|
|
7360
7425
|
}
|
|
7361
7426
|
}
|
|
7362
7427
|
};
|
|
@@ -7378,31 +7443,37 @@ var ContextMenu = /** @__PURE__ @class */ (function (_super) {
|
|
|
7378
7443
|
__decorate$5([
|
|
7379
7444
|
Collection([], MenuItem)
|
|
7380
7445
|
], ContextMenu.prototype, "items", void 0);
|
|
7446
|
+
__decorate$5([
|
|
7447
|
+
Property(null)
|
|
7448
|
+
], ContextMenu.prototype, "itemTemplate", void 0);
|
|
7449
|
+
__decorate$5([
|
|
7450
|
+
Property(false)
|
|
7451
|
+
], ContextMenu.prototype, "enableScrolling", void 0);
|
|
7381
7452
|
ContextMenu = __decorate$5([
|
|
7382
7453
|
NotifyPropertyChanges
|
|
7383
7454
|
], ContextMenu);
|
|
7384
7455
|
return ContextMenu;
|
|
7385
7456
|
}(MenuBase));
|
|
7386
7457
|
|
|
7387
|
-
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
7388
|
-
var extendStatics = function (d, b) {
|
|
7389
|
-
extendStatics = Object.setPrototypeOf ||
|
|
7390
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7391
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7392
|
-
return extendStatics(d, b);
|
|
7393
|
-
};
|
|
7394
|
-
return function (d, b) {
|
|
7395
|
-
extendStatics(d, b);
|
|
7396
|
-
function __() { this.constructor = d; }
|
|
7397
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7398
|
-
};
|
|
7399
|
-
})();
|
|
7400
|
-
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7401
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7402
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7403
|
-
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;
|
|
7404
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7405
|
-
};
|
|
7458
|
+
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
7459
|
+
var extendStatics = function (d, b) {
|
|
7460
|
+
extendStatics = Object.setPrototypeOf ||
|
|
7461
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7462
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7463
|
+
return extendStatics(d, b);
|
|
7464
|
+
};
|
|
7465
|
+
return function (d, b) {
|
|
7466
|
+
extendStatics(d, b);
|
|
7467
|
+
function __() { this.constructor = d; }
|
|
7468
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7469
|
+
};
|
|
7470
|
+
})();
|
|
7471
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7472
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7473
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7474
|
+
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;
|
|
7475
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7476
|
+
};
|
|
7406
7477
|
var VMENU = 'e-vertical';
|
|
7407
7478
|
var SCROLLABLE = 'e-scrollable';
|
|
7408
7479
|
var HAMBURGER = 'e-hamburger';
|
|
@@ -7418,7 +7489,7 @@ var HAMBURGER = 'e-hamburger';
|
|
|
7418
7489
|
* </script>
|
|
7419
7490
|
* ```
|
|
7420
7491
|
*/
|
|
7421
|
-
var Menu = /** @
|
|
7492
|
+
var Menu = /** @class */ (function (_super) {
|
|
7422
7493
|
__extends$6(Menu, _super);
|
|
7423
7494
|
/**
|
|
7424
7495
|
* Constructor for creating the component.
|
|
@@ -7592,6 +7663,10 @@ var Menu = /** @__PURE__ @class */ (function (_super) {
|
|
|
7592
7663
|
}
|
|
7593
7664
|
}
|
|
7594
7665
|
break;
|
|
7666
|
+
case 'template':
|
|
7667
|
+
this.template = newProp.template;
|
|
7668
|
+
this.refresh();
|
|
7669
|
+
break;
|
|
7595
7670
|
}
|
|
7596
7671
|
}
|
|
7597
7672
|
_super.prototype.onPropertyChanged.call(this, newProp, oldProp);
|
|
@@ -7663,25 +7738,25 @@ var Menu = /** @__PURE__ @class */ (function (_super) {
|
|
|
7663
7738
|
return Menu;
|
|
7664
7739
|
}(MenuBase));
|
|
7665
7740
|
|
|
7666
|
-
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
7667
|
-
var extendStatics = function (d, b) {
|
|
7668
|
-
extendStatics = Object.setPrototypeOf ||
|
|
7669
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7670
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7671
|
-
return extendStatics(d, b);
|
|
7672
|
-
};
|
|
7673
|
-
return function (d, b) {
|
|
7674
|
-
extendStatics(d, b);
|
|
7675
|
-
function __() { this.constructor = d; }
|
|
7676
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7677
|
-
};
|
|
7678
|
-
})();
|
|
7679
|
-
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7680
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7681
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7682
|
-
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;
|
|
7683
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7684
|
-
};
|
|
7741
|
+
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
7742
|
+
var extendStatics = function (d, b) {
|
|
7743
|
+
extendStatics = Object.setPrototypeOf ||
|
|
7744
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7745
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7746
|
+
return extendStatics(d, b);
|
|
7747
|
+
};
|
|
7748
|
+
return function (d, b) {
|
|
7749
|
+
extendStatics(d, b);
|
|
7750
|
+
function __() { this.constructor = d; }
|
|
7751
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7752
|
+
};
|
|
7753
|
+
})();
|
|
7754
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7755
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7756
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7757
|
+
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;
|
|
7758
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7759
|
+
};
|
|
7685
7760
|
var CLS_TAB = 'e-tab';
|
|
7686
7761
|
var CLS_HEADER$1 = 'e-tab-header';
|
|
7687
7762
|
var CLS_BLA_TEM = 'blazor-template';
|
|
@@ -7728,7 +7803,7 @@ var CLS_REORDER_ACTIVE_ITEM = 'e-reorder-active-item';
|
|
|
7728
7803
|
/**
|
|
7729
7804
|
* Objects used for configuring the Tab selecting item action properties.
|
|
7730
7805
|
*/
|
|
7731
|
-
var TabActionSettings = /** @
|
|
7806
|
+
var TabActionSettings = /** @class */ (function (_super) {
|
|
7732
7807
|
__extends$7(TabActionSettings, _super);
|
|
7733
7808
|
function TabActionSettings() {
|
|
7734
7809
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -7747,7 +7822,7 @@ var TabActionSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
7747
7822
|
/**
|
|
7748
7823
|
* Objects used for configuring the Tab animation properties.
|
|
7749
7824
|
*/
|
|
7750
|
-
var TabAnimationSettings = /** @
|
|
7825
|
+
var TabAnimationSettings = /** @class */ (function (_super) {
|
|
7751
7826
|
__extends$7(TabAnimationSettings, _super);
|
|
7752
7827
|
function TabAnimationSettings() {
|
|
7753
7828
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -7763,7 +7838,7 @@ var TabAnimationSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
7763
7838
|
/**
|
|
7764
7839
|
* Objects used for configuring the Tab item header properties.
|
|
7765
7840
|
*/
|
|
7766
|
-
var Header = /** @
|
|
7841
|
+
var Header = /** @class */ (function (_super) {
|
|
7767
7842
|
__extends$7(Header, _super);
|
|
7768
7843
|
function Header() {
|
|
7769
7844
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -7782,7 +7857,7 @@ var Header = /** @__PURE__ @class */ (function (_super) {
|
|
|
7782
7857
|
/**
|
|
7783
7858
|
* An array of object that is used to configure the Tab.
|
|
7784
7859
|
*/
|
|
7785
|
-
var TabItem = /** @
|
|
7860
|
+
var TabItem = /** @class */ (function (_super) {
|
|
7786
7861
|
__extends$7(TabItem, _super);
|
|
7787
7862
|
function TabItem() {
|
|
7788
7863
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -7824,7 +7899,7 @@ var TabItem = /** @__PURE__ @class */ (function (_super) {
|
|
|
7824
7899
|
* </script>
|
|
7825
7900
|
* ```
|
|
7826
7901
|
*/
|
|
7827
|
-
var Tab = /** @
|
|
7902
|
+
var Tab = /** @class */ (function (_super) {
|
|
7828
7903
|
__extends$7(Tab, _super);
|
|
7829
7904
|
/**
|
|
7830
7905
|
* Initializes a new instance of the Tab class.
|
|
@@ -8107,6 +8182,17 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8107
8182
|
}
|
|
8108
8183
|
}
|
|
8109
8184
|
};
|
|
8185
|
+
Tab.prototype.createContentElement = function (index) {
|
|
8186
|
+
var contentElement = this.createElement('div', {
|
|
8187
|
+
id: CLS_CONTENT$1 + this.tabId + '_' + index, className: CLS_ITEM$2,
|
|
8188
|
+
attrs: { 'role': 'tabpanel', 'aria-labelledby': CLS_ITEM$2 + this.tabId + '_' + index }
|
|
8189
|
+
});
|
|
8190
|
+
if (['Dynamic', 'Demand'].indexOf(this.loadOn) !== -1 ||
|
|
8191
|
+
(this.loadOn === 'Init' && index === Number(this.extIndex(this.itemIndexArray[0])))) {
|
|
8192
|
+
addClass([contentElement], CLS_ACTIVE$1);
|
|
8193
|
+
}
|
|
8194
|
+
return contentElement;
|
|
8195
|
+
};
|
|
8110
8196
|
Tab.prototype.renderContent = function () {
|
|
8111
8197
|
this.cntEle = select('.' + CLS_CONTENT$1, this.element);
|
|
8112
8198
|
var hdrItem = selectAll('.' + CLS_TB_ITEM, this.element);
|
|
@@ -8121,11 +8207,26 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8121
8207
|
}
|
|
8122
8208
|
}
|
|
8123
8209
|
}
|
|
8210
|
+
else {
|
|
8211
|
+
if (selectAll('.' + CLS_TB_ITEM, this.element).length > 0) {
|
|
8212
|
+
if (this.loadOn === 'Init') {
|
|
8213
|
+
for (var i = 0; i < this.itemIndexArray.length; i++) {
|
|
8214
|
+
if (this.itemIndexArray[i]) {
|
|
8215
|
+
this.cntEle.appendChild(this.createContentElement(Number(this.extIndex(this.itemIndexArray[i]))));
|
|
8216
|
+
}
|
|
8217
|
+
}
|
|
8218
|
+
}
|
|
8219
|
+
else if (this.loadOn === 'Dynamic') {
|
|
8220
|
+
this.cntEle.appendChild(this.createContentElement(this.selectedItem > 0 ?
|
|
8221
|
+
this.selectedItem : Number(this.extIndex(this.itemIndexArray[0]))));
|
|
8222
|
+
}
|
|
8223
|
+
}
|
|
8224
|
+
}
|
|
8124
8225
|
};
|
|
8125
8226
|
Tab.prototype.reRenderItems = function () {
|
|
8126
8227
|
this.renderContainer();
|
|
8127
8228
|
if (!isNullOrUndefined(this.cntEle)) {
|
|
8128
|
-
this.
|
|
8229
|
+
this.bindSwipeEvents();
|
|
8129
8230
|
}
|
|
8130
8231
|
};
|
|
8131
8232
|
Tab.prototype.parseObject = function (items, index) {
|
|
@@ -8627,6 +8728,24 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8627
8728
|
}
|
|
8628
8729
|
}
|
|
8629
8730
|
};
|
|
8731
|
+
Tab.prototype.loadContentInitMode = function (ele) {
|
|
8732
|
+
if (!ele) {
|
|
8733
|
+
return;
|
|
8734
|
+
}
|
|
8735
|
+
if (this.loadOn === 'Init') {
|
|
8736
|
+
for (var i = 0; i < this.items.length; i++) {
|
|
8737
|
+
if (this.cntEle.children.item(i)) {
|
|
8738
|
+
this.getContent(this.cntEle.children.item(i), this.items[i].content, 'render', i);
|
|
8739
|
+
}
|
|
8740
|
+
}
|
|
8741
|
+
}
|
|
8742
|
+
};
|
|
8743
|
+
Tab.prototype.loadContentElement = function () {
|
|
8744
|
+
if (!this.isTemplate) {
|
|
8745
|
+
var ele = this.cntEle.children.item(0);
|
|
8746
|
+
this.loadContentInitMode(ele);
|
|
8747
|
+
}
|
|
8748
|
+
};
|
|
8630
8749
|
Tab.prototype.setContentHeight = function (val) {
|
|
8631
8750
|
if (this.element.classList.contains(CLS_FILL)) {
|
|
8632
8751
|
removeClass([this.element], [CLS_FILL]);
|
|
@@ -8636,6 +8755,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8636
8755
|
}
|
|
8637
8756
|
var hdrEle = this.getTabHeader();
|
|
8638
8757
|
if (this.heightAdjustMode === 'None') {
|
|
8758
|
+
this.loadContentElement();
|
|
8639
8759
|
if (this.height === 'auto') {
|
|
8640
8760
|
return;
|
|
8641
8761
|
}
|
|
@@ -8648,6 +8768,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8648
8768
|
else if (this.heightAdjustMode === 'Fill') {
|
|
8649
8769
|
addClass([this.element], [CLS_FILL]);
|
|
8650
8770
|
setStyleAttribute(this.element, { 'height': '100%' });
|
|
8771
|
+
this.loadContentElement();
|
|
8651
8772
|
this.cntEle.style.height = 'calc(100% - ' + this.hdrEle.offsetHeight + 'px)';
|
|
8652
8773
|
}
|
|
8653
8774
|
else if (this.heightAdjustMode === 'Auto') {
|
|
@@ -8662,11 +8783,8 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8662
8783
|
}
|
|
8663
8784
|
else {
|
|
8664
8785
|
this.cntEle = select('.' + CLS_CONTENT$1, this.element);
|
|
8665
|
-
if (val === true) {
|
|
8666
|
-
this.cntEle.appendChild(this.
|
|
8667
|
-
id: (CLS_CONTENT$1 + this.tabId + '_' + 0), className: CLS_ITEM$2 + ' ' + CLS_ACTIVE$1,
|
|
8668
|
-
attrs: { 'role': 'tabpanel', 'aria-labelledby': CLS_ITEM$2 + this.tabId + '_' + 0 }
|
|
8669
|
-
}));
|
|
8786
|
+
if (val === true && this.loadOn === 'Demand') {
|
|
8787
|
+
this.cntEle.appendChild(this.createContentElement(Number(this.extIndex(this.itemIndexArray[0]))));
|
|
8670
8788
|
}
|
|
8671
8789
|
var ele = this.cntEle.children.item(0);
|
|
8672
8790
|
for (var i = 0; i < this.items.length; i++) {
|
|
@@ -8680,7 +8798,10 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8680
8798
|
this.clearTemplate(['content']);
|
|
8681
8799
|
}
|
|
8682
8800
|
this.templateEle = [];
|
|
8683
|
-
|
|
8801
|
+
if (this.loadOn === 'Demand') {
|
|
8802
|
+
this.getContent(ele, this.items[0].content, 'render', 0);
|
|
8803
|
+
}
|
|
8804
|
+
this.loadContentInitMode(ele);
|
|
8684
8805
|
if (this.prevIndex !== this.selectedItem) {
|
|
8685
8806
|
ele.classList.remove(CLS_ACTIVE$1);
|
|
8686
8807
|
}
|
|
@@ -8688,6 +8809,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8688
8809
|
setStyleAttribute(this.cntEle, { 'height': this.maxHeight + 'px' });
|
|
8689
8810
|
}
|
|
8690
8811
|
else {
|
|
8812
|
+
this.loadContentElement();
|
|
8691
8813
|
setStyleAttribute(this.cntEle, { 'height': 'auto' });
|
|
8692
8814
|
}
|
|
8693
8815
|
};
|
|
@@ -8771,7 +8893,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8771
8893
|
return;
|
|
8772
8894
|
}
|
|
8773
8895
|
if (!this.isTemplate) {
|
|
8774
|
-
attributes(trg.firstElementChild, { 'aria-controls': CLS_CONTENT$1 + this.tabId + '_' +
|
|
8896
|
+
attributes(trg.firstElementChild, { 'aria-controls': CLS_CONTENT$1 + this.tabId + '_' + this.extIndex(trg.id) });
|
|
8775
8897
|
}
|
|
8776
8898
|
var id = trg.id;
|
|
8777
8899
|
this.removeActiveClass();
|
|
@@ -8792,6 +8914,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8792
8914
|
}
|
|
8793
8915
|
else {
|
|
8794
8916
|
this.cntEle = select('.' + CLS_TAB + ' > .' + CLS_CONTENT$1, this.element);
|
|
8917
|
+
while (this.loadOn === 'Dynamic' && this.cntEle.firstElementChild) {
|
|
8918
|
+
this.cntEle.removeChild(this.cntEle.firstElementChild);
|
|
8919
|
+
}
|
|
8795
8920
|
var item = this.getTrgContent(this.cntEle, this.extIndex(id));
|
|
8796
8921
|
if (isNullOrUndefined(item)) {
|
|
8797
8922
|
this.cntEle.appendChild(this.createElement('div', {
|
|
@@ -8867,13 +8992,18 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8867
8992
|
}
|
|
8868
8993
|
}
|
|
8869
8994
|
};
|
|
8995
|
+
Tab.prototype.bindSwipeEvents = function () {
|
|
8996
|
+
if (this.swipeMode !== 'None') {
|
|
8997
|
+
this.touchModule = new Touch(this.cntEle, { swipe: this.swipeHandler.bind(this) });
|
|
8998
|
+
}
|
|
8999
|
+
};
|
|
8870
9000
|
Tab.prototype.wireEvents = function () {
|
|
8871
9001
|
this.bindDraggable();
|
|
8872
9002
|
window.addEventListener('resize', this.resizeContext);
|
|
8873
9003
|
EventHandler.add(this.element, 'mouseover', this.hoverHandler, this);
|
|
8874
9004
|
EventHandler.add(this.element, 'keydown', this.spaceKeyDown, this);
|
|
8875
9005
|
if (!isNullOrUndefined(this.cntEle)) {
|
|
8876
|
-
this.
|
|
9006
|
+
this.bindSwipeEvents();
|
|
8877
9007
|
}
|
|
8878
9008
|
this.keyModule = new KeyboardEvents(this.element, { keyAction: this.keyHandler.bind(this), keyConfigs: this.keyConfigs });
|
|
8879
9009
|
this.tabKeyModule = new KeyboardEvents(this.element, {
|
|
@@ -8918,7 +9048,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8918
9048
|
}
|
|
8919
9049
|
};
|
|
8920
9050
|
Tab.prototype.swipeHandler = function (e) {
|
|
8921
|
-
if (e.velocity < 3 && isNullOrUndefined(e.originalEvent.changedTouches))
|
|
9051
|
+
if ((e.velocity < 3 && isNullOrUndefined(e.originalEvent.changedTouches)) ||
|
|
9052
|
+
(this.swipeMode === 'Touch' && ((e.originalEvent.type === 'mouseup') || e.originalEvent.type === 'mouseleave')) ||
|
|
9053
|
+
(this.swipeMode === 'Mouse' && e.originalEvent.type === 'touchend') || (this.swipeMode === 'None')) {
|
|
8922
9054
|
return;
|
|
8923
9055
|
}
|
|
8924
9056
|
if (this.isNested) {
|
|
@@ -9396,7 +9528,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9396
9528
|
else {
|
|
9397
9529
|
if (_this.items.length > 0 && _this.draggingItems.length > 0) {
|
|
9398
9530
|
_this.items = _this.draggingItems;
|
|
9399
|
-
_this.selectedItem = _this.droppedIndex;
|
|
9531
|
+
_this.selectedItem = isNullOrUndefined(_this.droppedIndex) ? _this.getEleIndex(_this.dragItem) : _this.droppedIndex;
|
|
9400
9532
|
_this.refresh();
|
|
9401
9533
|
}
|
|
9402
9534
|
else {
|
|
@@ -9515,7 +9647,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9515
9647
|
_this.items.splice((index + i_1), 0, item);
|
|
9516
9648
|
i_1++;
|
|
9517
9649
|
}
|
|
9518
|
-
if (
|
|
9650
|
+
if (!isNullOrUndefined(item.header) && !isNullOrUndefined(item.header.text) && (_this.isTemplate || _this.loadOn === 'Init')) {
|
|
9519
9651
|
var no = lastEleIndex + place;
|
|
9520
9652
|
var ele = _this.createElement('div', {
|
|
9521
9653
|
id: CLS_CONTENT$1 + _this.tabId + '_' + no, className: CLS_ITEM$2,
|
|
@@ -9906,6 +10038,13 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9906
10038
|
case 'allowDragAndDrop':
|
|
9907
10039
|
this.bindDraggable();
|
|
9908
10040
|
break;
|
|
10041
|
+
case 'swipeMode':
|
|
10042
|
+
if (this.touchModule) {
|
|
10043
|
+
this.touchModule.destroy();
|
|
10044
|
+
this.touchModule = null;
|
|
10045
|
+
}
|
|
10046
|
+
this.bindSwipeEvents();
|
|
10047
|
+
break;
|
|
9909
10048
|
case 'dragArea':
|
|
9910
10049
|
if (this.allowDragAndDrop) {
|
|
9911
10050
|
this.draggableItems.forEach(function (item) {
|
|
@@ -10057,6 +10196,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
10057
10196
|
__decorate$7([
|
|
10058
10197
|
Property('100%')
|
|
10059
10198
|
], Tab.prototype, "width", void 0);
|
|
10199
|
+
__decorate$7([
|
|
10200
|
+
Property('Both')
|
|
10201
|
+
], Tab.prototype, "swipeMode", void 0);
|
|
10060
10202
|
__decorate$7([
|
|
10061
10203
|
Property('auto')
|
|
10062
10204
|
], Tab.prototype, "height", void 0);
|
|
@@ -10076,7 +10218,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
10076
10218
|
Property('Scrollable')
|
|
10077
10219
|
], Tab.prototype, "overflowMode", void 0);
|
|
10078
10220
|
__decorate$7([
|
|
10079
|
-
Property('
|
|
10221
|
+
Property('Demand')
|
|
10080
10222
|
], Tab.prototype, "loadOn", void 0);
|
|
10081
10223
|
__decorate$7([
|
|
10082
10224
|
Property(false)
|
|
@@ -10144,25 +10286,25 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
10144
10286
|
return Tab;
|
|
10145
10287
|
}(Component));
|
|
10146
10288
|
|
|
10147
|
-
var __extends$8 = (undefined && undefined.__extends) || (function () {
|
|
10148
|
-
var extendStatics = function (d, b) {
|
|
10149
|
-
extendStatics = Object.setPrototypeOf ||
|
|
10150
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10151
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
10152
|
-
return extendStatics(d, b);
|
|
10153
|
-
};
|
|
10154
|
-
return function (d, b) {
|
|
10155
|
-
extendStatics(d, b);
|
|
10156
|
-
function __() { this.constructor = d; }
|
|
10157
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10158
|
-
};
|
|
10159
|
-
})();
|
|
10160
|
-
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
10161
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10162
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10163
|
-
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;
|
|
10164
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10165
|
-
};
|
|
10289
|
+
var __extends$8 = (undefined && undefined.__extends) || (function () {
|
|
10290
|
+
var extendStatics = function (d, b) {
|
|
10291
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10292
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10293
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
10294
|
+
return extendStatics(d, b);
|
|
10295
|
+
};
|
|
10296
|
+
return function (d, b) {
|
|
10297
|
+
extendStatics(d, b);
|
|
10298
|
+
function __() { this.constructor = d; }
|
|
10299
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10300
|
+
};
|
|
10301
|
+
})();
|
|
10302
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
10303
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10304
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10305
|
+
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;
|
|
10306
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10307
|
+
};
|
|
10166
10308
|
var ROOT = 'e-treeview';
|
|
10167
10309
|
var CONTROL = 'e-control';
|
|
10168
10310
|
var COLLAPSIBLE = 'e-icon-collapsible';
|
|
@@ -10224,7 +10366,7 @@ var treeAriaAttr = {
|
|
|
10224
10366
|
/**
|
|
10225
10367
|
* Configures the fields to bind to the properties of node in the TreeView component.
|
|
10226
10368
|
*/
|
|
10227
|
-
var FieldsSettings = /** @
|
|
10369
|
+
var FieldsSettings = /** @class */ (function (_super) {
|
|
10228
10370
|
__extends$8(FieldsSettings, _super);
|
|
10229
10371
|
function FieldsSettings() {
|
|
10230
10372
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -10285,7 +10427,7 @@ var FieldsSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
10285
10427
|
/**
|
|
10286
10428
|
* Configures animation settings for the TreeView component.
|
|
10287
10429
|
*/
|
|
10288
|
-
var ActionSettings = /** @
|
|
10430
|
+
var ActionSettings = /** @class */ (function (_super) {
|
|
10289
10431
|
__extends$8(ActionSettings, _super);
|
|
10290
10432
|
function ActionSettings() {
|
|
10291
10433
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -10304,7 +10446,7 @@ var ActionSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
10304
10446
|
/**
|
|
10305
10447
|
* Configures the animation settings for expanding and collapsing nodes in TreeView.
|
|
10306
10448
|
*/
|
|
10307
|
-
var NodeAnimationSettings = /** @
|
|
10449
|
+
var NodeAnimationSettings = /** @class */ (function (_super) {
|
|
10308
10450
|
__extends$8(NodeAnimationSettings, _super);
|
|
10309
10451
|
function NodeAnimationSettings() {
|
|
10310
10452
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -10328,7 +10470,7 @@ var NodeAnimationSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
10328
10470
|
* treeObj.appendTo('#tree');
|
|
10329
10471
|
* ```
|
|
10330
10472
|
*/
|
|
10331
|
-
var TreeView = /** @
|
|
10473
|
+
var TreeView = /** @class */ (function (_super) {
|
|
10332
10474
|
__extends$8(TreeView, _super);
|
|
10333
10475
|
function TreeView(options, element) {
|
|
10334
10476
|
var _this = _super.call(this, options, element) || this;
|
|
@@ -10350,6 +10492,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
10350
10492
|
_this.mouseDownStatus = false;
|
|
10351
10493
|
_this.isDropIn = false;
|
|
10352
10494
|
_this.OldCheckedData = [];
|
|
10495
|
+
_this.isHiddenItem = false;
|
|
10353
10496
|
return _this;
|
|
10354
10497
|
}
|
|
10355
10498
|
TreeView_1 = TreeView;
|
|
@@ -10846,10 +10989,6 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
10846
10989
|
this.changeState(node, 'uncheck', null, true, true);
|
|
10847
10990
|
}
|
|
10848
10991
|
}
|
|
10849
|
-
var parentElement = closest(node, '.' + PARENTITEM);
|
|
10850
|
-
if (!isNullOrUndefined(parentElement)) {
|
|
10851
|
-
this.ensureParentCheckState(closest(parentElement, '.' + LISTITEM));
|
|
10852
|
-
}
|
|
10853
10992
|
}
|
|
10854
10993
|
};
|
|
10855
10994
|
/**
|
|
@@ -11968,6 +12107,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
11968
12107
|
this.expandArgs.isInteracted = this.isInteracted;
|
|
11969
12108
|
this.trigger('nodeExpanded', this.expandArgs);
|
|
11970
12109
|
}
|
|
12110
|
+
if (this.isHiddenItem) {
|
|
12111
|
+
this.collapseAll([this.getNodeData(currLi).id]);
|
|
12112
|
+
}
|
|
11971
12113
|
};
|
|
11972
12114
|
TreeView.prototype.addExpand = function (liEle) {
|
|
11973
12115
|
liEle.setAttribute('aria-expanded', 'true');
|
|
@@ -12500,7 +12642,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
12500
12642
|
this.expandOnType = (this.expandOn === 'Auto') ? (Browser.isDevice ? 'Click' : 'DblClick') : this.expandOn;
|
|
12501
12643
|
};
|
|
12502
12644
|
TreeView.prototype.expandHandler = function (e) {
|
|
12503
|
-
var target = e.originalEvent.
|
|
12645
|
+
var target = Browser.isDevice && e.originalEvent.changedTouches && !Browser.isIos
|
|
12646
|
+
? document.elementFromPoint(e.originalEvent.changedTouches[0].clientX, e.originalEvent.changedTouches[0].clientY)
|
|
12647
|
+
: e.originalEvent.target;
|
|
12504
12648
|
if (!target || target.classList.contains(INPUT) || target.classList.contains(ROOT) ||
|
|
12505
12649
|
target.classList.contains(PARENTITEM) || target.classList.contains(LISTITEM) ||
|
|
12506
12650
|
target.classList.contains(ICON) || this.showCheckBox && closest(target, '.' + CHECKBOXWRAP)) {
|
|
@@ -14849,15 +14993,6 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
14849
14993
|
}
|
|
14850
14994
|
}
|
|
14851
14995
|
};
|
|
14852
|
-
/**
|
|
14853
|
-
* Checks whether the checkedNodes entered are valid and sets the valid checkedNodes while changing via setmodel(for hierarchical DS)
|
|
14854
|
-
*
|
|
14855
|
-
* @param {Object[]} childItems - The child items to check.
|
|
14856
|
-
* @param {string} node - The node to set the check state for.
|
|
14857
|
-
* @param {Object} [treeData] - The optional tree data.
|
|
14858
|
-
* @returns {void}
|
|
14859
|
-
* @private
|
|
14860
|
-
*/
|
|
14861
14996
|
/**
|
|
14862
14997
|
* Checks whether the checkedNodes entered are valid and sets the valid checkedNodes while changing via setmodel(for hierarchical DS)
|
|
14863
14998
|
*
|
|
@@ -15340,9 +15475,11 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
15340
15475
|
var pid = getValue(this.fields.parentID, nodes[parseInt(i.toString(), 10)]);
|
|
15341
15476
|
dropLi = pid ? this.getElement(pid.toString()) : pid;
|
|
15342
15477
|
if (!isNullOrUndefined(pid) && isNullOrUndefined(dropLi)) {
|
|
15478
|
+
this.isHiddenItem = true;
|
|
15343
15479
|
this.preventExpand = false;
|
|
15344
15480
|
this.ensureVisible(pid);
|
|
15345
15481
|
this.preventExpand = preventTargetExpand;
|
|
15482
|
+
this.isHiddenItem = false;
|
|
15346
15483
|
dropLi = this.getElement(pid.toString());
|
|
15347
15484
|
}
|
|
15348
15485
|
this.addGivenNodes([nodes[parseInt(i.toString(), 10)]], dropLi, index);
|
|
@@ -15451,7 +15588,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
15451
15588
|
else if (this.dataType === 2) {
|
|
15452
15589
|
parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId);
|
|
15453
15590
|
}
|
|
15454
|
-
this.expandAll(parentsId.reverse());
|
|
15591
|
+
this.expandAll(parentsId.reverse(), null, null, this.isHiddenItem);
|
|
15455
15592
|
var liEle = this.getElement(node);
|
|
15456
15593
|
if (!isNullOrUndefined(liEle)) {
|
|
15457
15594
|
if (typeof node == 'object') {
|
|
@@ -15483,7 +15620,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
15483
15620
|
}
|
|
15484
15621
|
else {
|
|
15485
15622
|
this.expandAllNodes(excludeHiddenNodes);
|
|
15486
|
-
if (!this.loadOnDemand) {
|
|
15623
|
+
if (!this.loadOnDemand || this.element.classList.contains('e-filtering')) {
|
|
15487
15624
|
this.updateAttributes(this.element);
|
|
15488
15625
|
this.updateList();
|
|
15489
15626
|
}
|
|
@@ -15551,10 +15688,16 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
15551
15688
|
* @returns {void}
|
|
15552
15689
|
*/
|
|
15553
15690
|
TreeView.prototype.moveNodes = function (sourceNodes, target, index, preventTargetExpand) {
|
|
15691
|
+
if (isNullOrUndefined(sourceNodes) || sourceNodes.length === 0) {
|
|
15692
|
+
return;
|
|
15693
|
+
}
|
|
15554
15694
|
var dropLi = this.getElement(target);
|
|
15555
15695
|
var nodeData = [];
|
|
15556
15696
|
if (isNullOrUndefined(dropLi)) {
|
|
15557
|
-
|
|
15697
|
+
this.isHiddenItem = true;
|
|
15698
|
+
this.ensureVisible(target);
|
|
15699
|
+
this.isHiddenItem = false;
|
|
15700
|
+
dropLi = this.getElement(target);
|
|
15558
15701
|
}
|
|
15559
15702
|
for (var i = 0; i < sourceNodes.length; i++) {
|
|
15560
15703
|
var dragLi = this.getElement(sourceNodes[parseInt(i.toString(), 10)]);
|
|
@@ -15886,25 +16029,25 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
15886
16029
|
return TreeView;
|
|
15887
16030
|
}(Component));
|
|
15888
16031
|
|
|
15889
|
-
var __extends$9 = (undefined && undefined.__extends) || (function () {
|
|
15890
|
-
var extendStatics = function (d, b) {
|
|
15891
|
-
extendStatics = Object.setPrototypeOf ||
|
|
15892
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
15893
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
15894
|
-
return extendStatics(d, b);
|
|
15895
|
-
};
|
|
15896
|
-
return function (d, b) {
|
|
15897
|
-
extendStatics(d, b);
|
|
15898
|
-
function __() { this.constructor = d; }
|
|
15899
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15900
|
-
};
|
|
15901
|
-
})();
|
|
15902
|
-
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15903
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15904
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15905
|
-
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;
|
|
15906
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15907
|
-
};
|
|
16032
|
+
var __extends$9 = (undefined && undefined.__extends) || (function () {
|
|
16033
|
+
var extendStatics = function (d, b) {
|
|
16034
|
+
extendStatics = Object.setPrototypeOf ||
|
|
16035
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16036
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16037
|
+
return extendStatics(d, b);
|
|
16038
|
+
};
|
|
16039
|
+
return function (d, b) {
|
|
16040
|
+
extendStatics(d, b);
|
|
16041
|
+
function __() { this.constructor = d; }
|
|
16042
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16043
|
+
};
|
|
16044
|
+
})();
|
|
16045
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
16046
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16047
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16048
|
+
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;
|
|
16049
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16050
|
+
};
|
|
15908
16051
|
var CONTROL$1 = 'e-control';
|
|
15909
16052
|
var ROOT$1 = 'e-sidebar';
|
|
15910
16053
|
var DOCKER = 'e-dock';
|
|
@@ -15938,7 +16081,7 @@ var SIDEBARABSOLUTE = 'e-sidebar-absolute';
|
|
|
15938
16081
|
* </script>
|
|
15939
16082
|
* ```
|
|
15940
16083
|
*/
|
|
15941
|
-
var Sidebar = /** @
|
|
16084
|
+
var Sidebar = /** @class */ (function (_super) {
|
|
15942
16085
|
__extends$9(Sidebar, _super);
|
|
15943
16086
|
function Sidebar(options, element) {
|
|
15944
16087
|
var _this = _super.call(this, options, element) || this;
|
|
@@ -16612,25 +16755,25 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
|
|
|
16612
16755
|
return Sidebar;
|
|
16613
16756
|
}(Component));
|
|
16614
16757
|
|
|
16615
|
-
var __extends$a = (undefined && undefined.__extends) || (function () {
|
|
16616
|
-
var extendStatics = function (d, b) {
|
|
16617
|
-
extendStatics = Object.setPrototypeOf ||
|
|
16618
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16619
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16620
|
-
return extendStatics(d, b);
|
|
16621
|
-
};
|
|
16622
|
-
return function (d, b) {
|
|
16623
|
-
extendStatics(d, b);
|
|
16624
|
-
function __() { this.constructor = d; }
|
|
16625
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16626
|
-
};
|
|
16627
|
-
})();
|
|
16628
|
-
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
16629
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16630
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16631
|
-
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;
|
|
16632
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16633
|
-
};
|
|
16758
|
+
var __extends$a = (undefined && undefined.__extends) || (function () {
|
|
16759
|
+
var extendStatics = function (d, b) {
|
|
16760
|
+
extendStatics = Object.setPrototypeOf ||
|
|
16761
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16762
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16763
|
+
return extendStatics(d, b);
|
|
16764
|
+
};
|
|
16765
|
+
return function (d, b) {
|
|
16766
|
+
extendStatics(d, b);
|
|
16767
|
+
function __() { this.constructor = d; }
|
|
16768
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16769
|
+
};
|
|
16770
|
+
})();
|
|
16771
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
16772
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16773
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16774
|
+
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;
|
|
16775
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16776
|
+
};
|
|
16634
16777
|
var ICONRIGHT = 'e-icon-right';
|
|
16635
16778
|
var ITEMTEXTCLASS = 'e-breadcrumb-text';
|
|
16636
16779
|
var ICONCLASS = 'e-breadcrumb-icon';
|
|
@@ -16675,7 +16818,7 @@ var BreadcrumbOverflowMode;
|
|
|
16675
16818
|
*/
|
|
16676
16819
|
BreadcrumbOverflowMode["None"] = "None";
|
|
16677
16820
|
})(BreadcrumbOverflowMode || (BreadcrumbOverflowMode = {}));
|
|
16678
|
-
var BreadcrumbItem = /** @
|
|
16821
|
+
var BreadcrumbItem = /** @class */ (function (_super) {
|
|
16679
16822
|
__extends$a(BreadcrumbItem, _super);
|
|
16680
16823
|
function BreadcrumbItem() {
|
|
16681
16824
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -16710,7 +16853,7 @@ var BreadcrumbItem = /** @__PURE__ @class */ (function (_super) {
|
|
|
16710
16853
|
* </script>
|
|
16711
16854
|
* ```
|
|
16712
16855
|
*/
|
|
16713
|
-
var Breadcrumb = /** @
|
|
16856
|
+
var Breadcrumb = /** @class */ (function (_super) {
|
|
16714
16857
|
__extends$a(Breadcrumb, _super);
|
|
16715
16858
|
/**
|
|
16716
16859
|
* Constructor for creating the widget.
|
|
@@ -17441,25 +17584,25 @@ var Breadcrumb = /** @__PURE__ @class */ (function (_super) {
|
|
|
17441
17584
|
return Breadcrumb;
|
|
17442
17585
|
}(Component));
|
|
17443
17586
|
|
|
17444
|
-
var __extends$b = (undefined && undefined.__extends) || (function () {
|
|
17445
|
-
var extendStatics = function (d, b) {
|
|
17446
|
-
extendStatics = Object.setPrototypeOf ||
|
|
17447
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17448
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
17449
|
-
return extendStatics(d, b);
|
|
17450
|
-
};
|
|
17451
|
-
return function (d, b) {
|
|
17452
|
-
extendStatics(d, b);
|
|
17453
|
-
function __() { this.constructor = d; }
|
|
17454
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17455
|
-
};
|
|
17456
|
-
})();
|
|
17457
|
-
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
17458
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17459
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17460
|
-
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;
|
|
17461
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17462
|
-
};
|
|
17587
|
+
var __extends$b = (undefined && undefined.__extends) || (function () {
|
|
17588
|
+
var extendStatics = function (d, b) {
|
|
17589
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17590
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17591
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
17592
|
+
return extendStatics(d, b);
|
|
17593
|
+
};
|
|
17594
|
+
return function (d, b) {
|
|
17595
|
+
extendStatics(d, b);
|
|
17596
|
+
function __() { this.constructor = d; }
|
|
17597
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17598
|
+
};
|
|
17599
|
+
})();
|
|
17600
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
17601
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17602
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17603
|
+
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;
|
|
17604
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17605
|
+
};
|
|
17463
17606
|
// Constant variables
|
|
17464
17607
|
var CLS_CAROUSEL = 'e-carousel';
|
|
17465
17608
|
var CLS_ACTIVE$2 = 'e-active';
|
|
@@ -17514,7 +17657,7 @@ var CarouselSwipeMode;
|
|
|
17514
17657
|
CarouselSwipeMode[CarouselSwipeMode["Mouse"] = 2] = "Mouse";
|
|
17515
17658
|
})(CarouselSwipeMode || (CarouselSwipeMode = {}));
|
|
17516
17659
|
/** Specifies the carousel individual item. */
|
|
17517
|
-
var CarouselItem = /** @
|
|
17660
|
+
var CarouselItem = /** @class */ (function (_super) {
|
|
17518
17661
|
__extends$b(CarouselItem, _super);
|
|
17519
17662
|
function CarouselItem() {
|
|
17520
17663
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -17533,7 +17676,7 @@ var CarouselItem = /** @__PURE__ @class */ (function (_super) {
|
|
|
17533
17676
|
], CarouselItem.prototype, "htmlAttributes", void 0);
|
|
17534
17677
|
return CarouselItem;
|
|
17535
17678
|
}(ChildProperty));
|
|
17536
|
-
var Carousel = /** @
|
|
17679
|
+
var Carousel = /** @class */ (function (_super) {
|
|
17537
17680
|
__extends$b(Carousel, _super);
|
|
17538
17681
|
/**
|
|
17539
17682
|
* Constructor for creating the Carousel widget
|
|
@@ -17620,6 +17763,15 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
17620
17763
|
this.reRenderSlides();
|
|
17621
17764
|
}
|
|
17622
17765
|
break;
|
|
17766
|
+
case 'allowKeyboardInteraction':
|
|
17767
|
+
if (this.keyModule) {
|
|
17768
|
+
this.keyModule.destroy();
|
|
17769
|
+
this.keyModule = null;
|
|
17770
|
+
}
|
|
17771
|
+
if (newProp.allowKeyboardInteraction) {
|
|
17772
|
+
this.renderKeyboardActions();
|
|
17773
|
+
}
|
|
17774
|
+
break;
|
|
17623
17775
|
case 'enableRtl':
|
|
17624
17776
|
rtlElement = [].slice.call(this.element.querySelectorAll("." + CLS_PREV_BUTTON + ",\n ." + CLS_NEXT_BUTTON + ", ." + CLS_PLAY_BUTTON));
|
|
17625
17777
|
rtlElement.push(this.element);
|
|
@@ -17991,6 +18143,9 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
17991
18143
|
append(template, indicatorBar);
|
|
17992
18144
|
};
|
|
17993
18145
|
Carousel.prototype.renderKeyboardActions = function () {
|
|
18146
|
+
if (!this.allowKeyboardInteraction) {
|
|
18147
|
+
return;
|
|
18148
|
+
}
|
|
17994
18149
|
this.keyModule = new KeyboardEvents(this.element, { keyAction: this.keyHandler.bind(this), keyConfigs: this.keyConfigs });
|
|
17995
18150
|
};
|
|
17996
18151
|
Carousel.prototype.renderTouchActions = function () {
|
|
@@ -18314,6 +18469,9 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
18314
18469
|
}
|
|
18315
18470
|
};
|
|
18316
18471
|
Carousel.prototype.keyHandler = function (e) {
|
|
18472
|
+
if (!this.allowKeyboardInteraction) {
|
|
18473
|
+
return;
|
|
18474
|
+
}
|
|
18317
18475
|
var direction;
|
|
18318
18476
|
var slideIndex;
|
|
18319
18477
|
var isSlideTransition = false;
|
|
@@ -18462,6 +18620,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
18462
18620
|
if (!this.timeStampStart) {
|
|
18463
18621
|
this.timeStampStart = Date.now();
|
|
18464
18622
|
}
|
|
18623
|
+
e.preventDefault();
|
|
18465
18624
|
this.isSwipe = false;
|
|
18466
18625
|
this.itemsContainer.classList.add('e-swipe-start');
|
|
18467
18626
|
this.prevPageX = e.touches ? e.touches[0].pageX : e.pageX;
|
|
@@ -18471,6 +18630,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
18471
18630
|
if (!this.itemsContainer.classList.contains('e-swipe-start')) {
|
|
18472
18631
|
return;
|
|
18473
18632
|
}
|
|
18633
|
+
this.isSwipe = true;
|
|
18474
18634
|
e.preventDefault();
|
|
18475
18635
|
var pageX = e.touches ? e.touches[0].pageX : e.pageX;
|
|
18476
18636
|
var positionDiff = this.prevPageX - (pageX);
|
|
@@ -18483,7 +18643,6 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
18483
18643
|
this.itemsContainer.style.transform = "translateX(" + (this.initialTranslate + (this.enableRtl ? positionDiff : -positionDiff)) + "px)";
|
|
18484
18644
|
};
|
|
18485
18645
|
Carousel.prototype.swipStop = function () {
|
|
18486
|
-
this.isSwipe = true;
|
|
18487
18646
|
var time = Date.now() - this.timeStampStart;
|
|
18488
18647
|
var distanceX = this.getTranslateValue(this.itemsContainer) - this.initialTranslate;
|
|
18489
18648
|
distanceX = distanceX < 0 ? distanceX * -1 : distanceX;
|
|
@@ -18669,8 +18828,10 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
18669
18828
|
this.touchModule.destroy();
|
|
18670
18829
|
this.touchModule = null;
|
|
18671
18830
|
}
|
|
18672
|
-
this.keyModule
|
|
18673
|
-
|
|
18831
|
+
if (this.keyModule) {
|
|
18832
|
+
this.keyModule.destroy();
|
|
18833
|
+
this.keyModule = null;
|
|
18834
|
+
}
|
|
18674
18835
|
this.resetSlideInterval();
|
|
18675
18836
|
this.destroyButtons();
|
|
18676
18837
|
this.unWireEvents();
|
|
@@ -18734,6 +18895,9 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
18734
18895
|
__decorate$b([
|
|
18735
18896
|
Property(true)
|
|
18736
18897
|
], Carousel.prototype, "enableTouchSwipe", void 0);
|
|
18898
|
+
__decorate$b([
|
|
18899
|
+
Property(true)
|
|
18900
|
+
], Carousel.prototype, "allowKeyboardInteraction", void 0);
|
|
18737
18901
|
__decorate$b([
|
|
18738
18902
|
Property(true)
|
|
18739
18903
|
], Carousel.prototype, "showIndicators", void 0);
|
|
@@ -18764,25 +18928,25 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
18764
18928
|
return Carousel;
|
|
18765
18929
|
}(Component));
|
|
18766
18930
|
|
|
18767
|
-
var __extends$c = (undefined && undefined.__extends) || (function () {
|
|
18768
|
-
var extendStatics = function (d, b) {
|
|
18769
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18770
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18771
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
18772
|
-
return extendStatics(d, b);
|
|
18773
|
-
};
|
|
18774
|
-
return function (d, b) {
|
|
18775
|
-
extendStatics(d, b);
|
|
18776
|
-
function __() { this.constructor = d; }
|
|
18777
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18778
|
-
};
|
|
18779
|
-
})();
|
|
18780
|
-
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
18781
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18782
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
18783
|
-
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;
|
|
18784
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18785
|
-
};
|
|
18931
|
+
var __extends$c = (undefined && undefined.__extends) || (function () {
|
|
18932
|
+
var extendStatics = function (d, b) {
|
|
18933
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18934
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18935
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
18936
|
+
return extendStatics(d, b);
|
|
18937
|
+
};
|
|
18938
|
+
return function (d, b) {
|
|
18939
|
+
extendStatics(d, b);
|
|
18940
|
+
function __() { this.constructor = d; }
|
|
18941
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18942
|
+
};
|
|
18943
|
+
})();
|
|
18944
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
18945
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18946
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
18947
|
+
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;
|
|
18948
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18949
|
+
};
|
|
18786
18950
|
// Constant variables
|
|
18787
18951
|
var CLS_APPBAR = 'e-appbar';
|
|
18788
18952
|
var CLS_HORIZONTAL_BOTTOM = 'e-horizontal-bottom';
|
|
@@ -18799,7 +18963,7 @@ var CLS_INHERIT = 'e-inherit';
|
|
|
18799
18963
|
* Support to inherit colors from AppBar provided to <c>Button</c>, <c>DropDownButton</c>, <c>Menu</c> and <c>TextBox</c>.
|
|
18800
18964
|
* Set <c>CssClass</c> property with <code>e-inherit</code> CSS class to inherit the background and color from AppBar.
|
|
18801
18965
|
*/
|
|
18802
|
-
var AppBar = /** @
|
|
18966
|
+
var AppBar = /** @class */ (function (_super) {
|
|
18803
18967
|
__extends$c(AppBar, _super);
|
|
18804
18968
|
/**
|
|
18805
18969
|
* Constructor for creating the AppBar widget
|
|
@@ -18983,26 +19147,30 @@ var AppBar = /** @__PURE__ @class */ (function (_super) {
|
|
|
18983
19147
|
return AppBar;
|
|
18984
19148
|
}(Component));
|
|
18985
19149
|
|
|
18986
|
-
var __extends$d = (undefined && undefined.__extends) || (function () {
|
|
18987
|
-
var extendStatics = function (d, b) {
|
|
18988
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18989
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18990
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
18991
|
-
return extendStatics(d, b);
|
|
18992
|
-
};
|
|
18993
|
-
return function (d, b) {
|
|
18994
|
-
extendStatics(d, b);
|
|
18995
|
-
function __() { this.constructor = d; }
|
|
18996
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18997
|
-
};
|
|
18998
|
-
})();
|
|
18999
|
-
var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
19000
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19001
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19002
|
-
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;
|
|
19003
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19004
|
-
};
|
|
19150
|
+
var __extends$d = (undefined && undefined.__extends) || (function () {
|
|
19151
|
+
var extendStatics = function (d, b) {
|
|
19152
|
+
extendStatics = Object.setPrototypeOf ||
|
|
19153
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19154
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
19155
|
+
return extendStatics(d, b);
|
|
19156
|
+
};
|
|
19157
|
+
return function (d, b) {
|
|
19158
|
+
extendStatics(d, b);
|
|
19159
|
+
function __() { this.constructor = d; }
|
|
19160
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
19161
|
+
};
|
|
19162
|
+
})();
|
|
19163
|
+
var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
19164
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19165
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19166
|
+
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;
|
|
19167
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19168
|
+
};
|
|
19005
19169
|
var PROGRESSVALUE = '--progress-value';
|
|
19170
|
+
var PROGRESSPOS = '--progress-position';
|
|
19171
|
+
var VERTICALSTEP = 'e-vertical';
|
|
19172
|
+
var HORIZSTEP = 'e-horizontal';
|
|
19173
|
+
var ITEMLIST = 'e-stepper-steps';
|
|
19006
19174
|
/**
|
|
19007
19175
|
* Defines the status of the step.
|
|
19008
19176
|
*/
|
|
@@ -19024,7 +19192,7 @@ var StepStatus;
|
|
|
19024
19192
|
/**
|
|
19025
19193
|
* Specifies the steps of the Stepper.
|
|
19026
19194
|
*/
|
|
19027
|
-
var Step = /** @
|
|
19195
|
+
var Step = /** @class */ (function (_super) {
|
|
19028
19196
|
__extends$d(Step, _super);
|
|
19029
19197
|
function Step() {
|
|
19030
19198
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -19072,7 +19240,7 @@ var StepperOrientation;
|
|
|
19072
19240
|
/**
|
|
19073
19241
|
* StepperBase component act as base class to the stepper component.
|
|
19074
19242
|
*/
|
|
19075
|
-
var StepperBase = /** @
|
|
19243
|
+
var StepperBase = /** @class */ (function (_super) {
|
|
19076
19244
|
__extends$d(StepperBase, _super);
|
|
19077
19245
|
/**
|
|
19078
19246
|
* * Constructor for Base class
|
|
@@ -19121,8 +19289,8 @@ var StepperBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
19121
19289
|
StepperBase.prototype.render = function () {
|
|
19122
19290
|
};
|
|
19123
19291
|
StepperBase.prototype.updateOrientaion = function (wrapper) {
|
|
19124
|
-
if (wrapper.classList.contains(
|
|
19125
|
-
wrapper.classList.remove(
|
|
19292
|
+
if (wrapper.classList.contains(HORIZSTEP) || wrapper.classList.contains(VERTICALSTEP)) {
|
|
19293
|
+
wrapper.classList.remove(HORIZSTEP, VERTICALSTEP);
|
|
19126
19294
|
}
|
|
19127
19295
|
if (!(isNullOrUndefined(this.orientation))) {
|
|
19128
19296
|
wrapper.classList.add('e-' + this.orientation.toLocaleLowerCase());
|
|
@@ -19131,23 +19299,23 @@ var StepperBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
19131
19299
|
StepperBase.prototype.renderProgressBar = function (wrapper) {
|
|
19132
19300
|
this.progressStep = this.createElement('div', { className: 'e-stepper-progressbar' });
|
|
19133
19301
|
this.progressbar = this.createElement('div', { className: 'e-progressbar-value' });
|
|
19302
|
+
var beforeLabel = (wrapper.querySelector('li').querySelector('.e-step-label-container'));
|
|
19134
19303
|
this.progressStep.appendChild(this.progressbar);
|
|
19135
19304
|
wrapper.prepend(this.progressStep);
|
|
19136
19305
|
this.progressbar.style.setProperty(PROGRESSVALUE, (0) + '%');
|
|
19137
|
-
|
|
19138
|
-
if (wrapper.classList.contains('e-vertical')) {
|
|
19306
|
+
if (wrapper.classList.contains(VERTICALSTEP)) {
|
|
19139
19307
|
if (wrapper.classList.contains('e-label-bottom') || wrapper.classList.contains('e-label-top')) {
|
|
19140
|
-
var stepsContainer = (wrapper.querySelector('.
|
|
19141
|
-
this.progressStep.style.setProperty(
|
|
19308
|
+
var stepsContainer = (wrapper.querySelector('.' + ITEMLIST));
|
|
19309
|
+
this.progressStep.style.setProperty(PROGRESSPOS, (stepsContainer.offsetWidth / 2) + 'px');
|
|
19142
19310
|
}
|
|
19143
19311
|
else {
|
|
19144
|
-
this.progressStep.style.setProperty(
|
|
19312
|
+
this.progressStep.style.setProperty(PROGRESSPOS, ((this.progressBarPosition / 2) - 1) + 'px');
|
|
19145
19313
|
}
|
|
19146
19314
|
}
|
|
19147
19315
|
if (beforeLabel && (beforeLabel.classList.contains('e-label-before'))) {
|
|
19148
|
-
this.progressStep.style.setProperty(
|
|
19316
|
+
this.progressStep.style.setProperty(PROGRESSPOS, (((this.progressBarPosition) - 1)) + 5 + 'px');
|
|
19149
19317
|
}
|
|
19150
|
-
if (wrapper.classList.contains(
|
|
19318
|
+
if (wrapper.classList.contains(HORIZSTEP)) {
|
|
19151
19319
|
this.setProgressPosition(wrapper);
|
|
19152
19320
|
}
|
|
19153
19321
|
};
|
|
@@ -19164,9 +19332,9 @@ var StepperBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
19164
19332
|
}
|
|
19165
19333
|
this.progressStep.style.setProperty('--progress-top-position', topPos + 'px');
|
|
19166
19334
|
}
|
|
19167
|
-
var lastEle = wrapper.querySelector('.
|
|
19335
|
+
var lastEle = wrapper.querySelector('.' + ITEMLIST).lastChild.firstChild;
|
|
19168
19336
|
if (wrapper.classList.contains('e-rtl')) {
|
|
19169
|
-
var leftPost = ((stepItemEle.offsetLeft + stepItemEle.offsetWidth) - wrapper.querySelector('.
|
|
19337
|
+
var leftPost = ((stepItemEle.offsetLeft + stepItemEle.offsetWidth) - wrapper.querySelector('.' + ITEMLIST).offsetWidth);
|
|
19170
19338
|
this.progressStep.style.setProperty('--progress-left-position', Math.abs(leftPost) + 'px');
|
|
19171
19339
|
this.progressStep.style.setProperty('--progress-bar-width', Math.abs(lastEle.offsetLeft - stepItemEle.offsetLeft) + 'px');
|
|
19172
19340
|
}
|
|
@@ -19207,27 +19375,27 @@ var StepperBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
19207
19375
|
return StepperBase;
|
|
19208
19376
|
}(Component));
|
|
19209
19377
|
|
|
19210
|
-
var __extends$e = (undefined && undefined.__extends) || (function () {
|
|
19211
|
-
var extendStatics = function (d, b) {
|
|
19212
|
-
extendStatics = Object.setPrototypeOf ||
|
|
19213
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19214
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
19215
|
-
return extendStatics(d, b);
|
|
19216
|
-
};
|
|
19217
|
-
return function (d, b) {
|
|
19218
|
-
extendStatics(d, b);
|
|
19219
|
-
function __() { this.constructor = d; }
|
|
19220
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
19221
|
-
};
|
|
19222
|
-
})();
|
|
19223
|
-
var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
19224
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19225
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19226
|
-
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;
|
|
19227
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19228
|
-
};
|
|
19378
|
+
var __extends$e = (undefined && undefined.__extends) || (function () {
|
|
19379
|
+
var extendStatics = function (d, b) {
|
|
19380
|
+
extendStatics = Object.setPrototypeOf ||
|
|
19381
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19382
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
19383
|
+
return extendStatics(d, b);
|
|
19384
|
+
};
|
|
19385
|
+
return function (d, b) {
|
|
19386
|
+
extendStatics(d, b);
|
|
19387
|
+
function __() { this.constructor = d; }
|
|
19388
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
19389
|
+
};
|
|
19390
|
+
})();
|
|
19391
|
+
var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
19392
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19393
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19394
|
+
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;
|
|
19395
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19396
|
+
};
|
|
19229
19397
|
var ITEMCONTAINER = 'e-step-container';
|
|
19230
|
-
var ITEMLIST = 'e-stepper-steps';
|
|
19398
|
+
var ITEMLIST$1 = 'e-stepper-steps';
|
|
19231
19399
|
var ICONCSS = 'e-indicator';
|
|
19232
19400
|
var TEXTCSS = 'e-step-text-container';
|
|
19233
19401
|
var STEPLABEL = 'e-step-label-container';
|
|
@@ -19244,8 +19412,8 @@ var RTL$3 = 'e-rtl';
|
|
|
19244
19412
|
var TEMPLATE = 'e-step-template';
|
|
19245
19413
|
var LABELAFTER = 'e-label-after';
|
|
19246
19414
|
var LABELBEFORE = 'e-label-before';
|
|
19247
|
-
var VERTICALSTEP = 'e-vertical';
|
|
19248
|
-
var HORIZSTEP = 'e-horizontal';
|
|
19415
|
+
var VERTICALSTEP$1 = 'e-vertical';
|
|
19416
|
+
var HORIZSTEP$1 = 'e-horizontal';
|
|
19249
19417
|
var STEPICON = 'e-step-item';
|
|
19250
19418
|
var STEPTEXT = 'e-step-text';
|
|
19251
19419
|
var TEXT = 'e-text';
|
|
@@ -19262,7 +19430,7 @@ var NEXTSTEP = 'e-next';
|
|
|
19262
19430
|
/**
|
|
19263
19431
|
* Defines the step progress animation of the Stepper.
|
|
19264
19432
|
*/
|
|
19265
|
-
var StepperAnimationSettings = /** @
|
|
19433
|
+
var StepperAnimationSettings = /** @class */ (function (_super) {
|
|
19266
19434
|
__extends$e(StepperAnimationSettings, _super);
|
|
19267
19435
|
function StepperAnimationSettings() {
|
|
19268
19436
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -19331,7 +19499,7 @@ var StepType;
|
|
|
19331
19499
|
* </script>
|
|
19332
19500
|
* ```
|
|
19333
19501
|
*/
|
|
19334
|
-
var Stepper = /** @
|
|
19502
|
+
var Stepper = /** @class */ (function (_super) {
|
|
19335
19503
|
__extends$e(Stepper, _super);
|
|
19336
19504
|
/**
|
|
19337
19505
|
* * Constructor for creating the Stepper component.
|
|
@@ -19381,10 +19549,9 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19381
19549
|
this.updateStepperStatus(true);
|
|
19382
19550
|
};
|
|
19383
19551
|
Stepper.prototype.initialize = function () {
|
|
19384
|
-
var _this = this;
|
|
19385
19552
|
this.element.setAttribute('aria-label', this.element.id);
|
|
19386
19553
|
this.updatePosition();
|
|
19387
|
-
this.stepperItemList = this.createElement('ol', { className: ITEMLIST });
|
|
19554
|
+
this.stepperItemList = this.createElement('ol', { className: ITEMLIST$1 });
|
|
19388
19555
|
this.updateOrientaion(this.element);
|
|
19389
19556
|
this.updateStepType();
|
|
19390
19557
|
this.element.appendChild(this.stepperItemList);
|
|
@@ -19401,28 +19568,30 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19401
19568
|
this.updateTemplateFunction();
|
|
19402
19569
|
this.renderItems();
|
|
19403
19570
|
if (this.steps.length > 0) {
|
|
19404
|
-
|
|
19405
|
-
if (this.isAngular && this.template) {
|
|
19406
|
-
setTimeout(function () {
|
|
19407
|
-
_this.renderProgressBar(_this.element);
|
|
19408
|
-
});
|
|
19409
|
-
}
|
|
19410
|
-
else {
|
|
19411
|
-
this.renderProgressBar(this.element);
|
|
19412
|
-
}
|
|
19413
|
-
}
|
|
19571
|
+
this.initiateProgressBar();
|
|
19414
19572
|
this.checkValidStep();
|
|
19415
19573
|
this.updateAnimation();
|
|
19416
19574
|
this.updateTooltip();
|
|
19417
19575
|
this.wireKeyboardEvent();
|
|
19418
19576
|
}
|
|
19419
19577
|
};
|
|
19578
|
+
Stepper.prototype.initiateProgressBar = function () {
|
|
19579
|
+
var _this = this;
|
|
19580
|
+
if (this.steps.length > 1) {
|
|
19581
|
+
if (this.isAngular && this.template) {
|
|
19582
|
+
setTimeout(function () { _this.renderProgressBar(_this.element); });
|
|
19583
|
+
}
|
|
19584
|
+
else {
|
|
19585
|
+
this.renderProgressBar(this.element);
|
|
19586
|
+
}
|
|
19587
|
+
}
|
|
19588
|
+
};
|
|
19420
19589
|
Stepper.prototype.updatePosition = function () {
|
|
19421
19590
|
this.progressBarPosition = this.beforeLabelWidth = this.textEleWidth = 0;
|
|
19422
19591
|
};
|
|
19423
19592
|
Stepper.prototype.renderDefault = function (index) {
|
|
19424
|
-
|
|
19425
|
-
|
|
19593
|
+
var step = this.steps[parseInt(index.toString(), 10)];
|
|
19594
|
+
return !step.iconCss && !step.text && !step.label;
|
|
19426
19595
|
};
|
|
19427
19596
|
Stepper.prototype.updateAnimation = function () {
|
|
19428
19597
|
var progressEle = this.element.querySelector('.e-progressbar-value');
|
|
@@ -19446,12 +19615,16 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19446
19615
|
}
|
|
19447
19616
|
};
|
|
19448
19617
|
Stepper.prototype.updateStepType = function () {
|
|
19449
|
-
if (!
|
|
19450
|
-
|
|
19451
|
-
|
|
19452
|
-
|
|
19453
|
-
|
|
19454
|
-
|
|
19618
|
+
if (!isNullOrUndefined(this.stepType)) {
|
|
19619
|
+
var stepTypeLower = this.stepType.toLowerCase();
|
|
19620
|
+
var validStepTypes = ['indicator', 'label', 'default'];
|
|
19621
|
+
if (validStepTypes.indexOf(stepTypeLower) !== -1) {
|
|
19622
|
+
if (stepTypeLower !== 'default') {
|
|
19623
|
+
this.element.classList.add('e-step-type-' + stepTypeLower);
|
|
19624
|
+
}
|
|
19625
|
+
if ((stepTypeLower === 'indicator' || stepTypeLower === 'label') && this.labelContainer) {
|
|
19626
|
+
this.clearLabelPosition();
|
|
19627
|
+
}
|
|
19455
19628
|
}
|
|
19456
19629
|
}
|
|
19457
19630
|
};
|
|
@@ -19464,7 +19637,7 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19464
19637
|
EventHandler.remove(window, 'click', this.updateStepFocus);
|
|
19465
19638
|
};
|
|
19466
19639
|
Stepper.prototype.updateResize = function () {
|
|
19467
|
-
if (this.stepperItemList && this.progressbar && this.element.classList.contains(HORIZSTEP)) {
|
|
19640
|
+
if (this.stepperItemList && this.progressbar && this.element.classList.contains(HORIZSTEP$1)) {
|
|
19468
19641
|
this.setProgressPosition(this.element, true);
|
|
19469
19642
|
}
|
|
19470
19643
|
this.navigateToStep(this.activeStep, null, null, false, false);
|
|
@@ -19524,23 +19697,28 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19524
19697
|
};
|
|
19525
19698
|
Stepper.prototype.renderItems = function () {
|
|
19526
19699
|
var _this = this;
|
|
19700
|
+
var _a;
|
|
19701
|
+
var isHorizontal = this.element.classList.contains(HORIZSTEP$1);
|
|
19702
|
+
var isVertical = this.element.classList.contains(VERTICALSTEP$1);
|
|
19703
|
+
var labelPositionLower = !isNullOrUndefined(this.labelPosition) ? this.labelPosition.toLowerCase() : '';
|
|
19527
19704
|
for (var index = 0; index < this.steps.length; index++) {
|
|
19528
19705
|
this.stepperItemContainer = this.createElement('li', { className: ITEMCONTAINER });
|
|
19529
|
-
this.stepperItemContainer.classList[(index === 0) ? 'add' : 'remove'](SELECTED$2, INPROGRESS);
|
|
19530
|
-
this.stepperItemContainer.classList[(index !== 0) ? 'add' : 'remove'](NOTSTARTED);
|
|
19531
|
-
if (this.element.classList.contains(HORIZSTEP)) {
|
|
19532
|
-
this.stepperItemContainer.style.setProperty('--max-width', 100 / this.steps.length + '%');
|
|
19533
|
-
}
|
|
19534
19706
|
var stepSpan = this.createElement('span', { className: 'e-step' });
|
|
19535
19707
|
var item = this.steps[parseInt(index.toString(), 10)];
|
|
19536
19708
|
var isItemLabel = item.label ? true : false;
|
|
19537
19709
|
var isItemText = item.text ? true : false;
|
|
19710
|
+
var isIndicator = this.element.classList.contains(STEPINDICATOR);
|
|
19711
|
+
this.stepperItemContainer.classList[(index === 0) ? 'add' : 'remove'](SELECTED$2, INPROGRESS);
|
|
19712
|
+
this.stepperItemContainer.classList[(index !== 0) ? 'add' : 'remove'](NOTSTARTED);
|
|
19713
|
+
if (isHorizontal) {
|
|
19714
|
+
this.stepperItemContainer.style.setProperty('--max-width', 100 / this.steps.length + '%');
|
|
19715
|
+
}
|
|
19538
19716
|
if (this.renderDefault(index) && (isNullOrUndefined(this.template) || this.template === '')) {
|
|
19539
|
-
var
|
|
19540
|
-
if (
|
|
19717
|
+
var isIndicator_1 = !this.element.classList.contains('e-step-type-default') && this.stepType.toLowerCase() === 'indicator';
|
|
19718
|
+
if (isIndicator_1) {
|
|
19541
19719
|
stepSpan.classList.add('e-icons', INDICATORICON);
|
|
19542
19720
|
}
|
|
19543
|
-
if (!
|
|
19721
|
+
if (!isIndicator_1 && item.isValid == null) {
|
|
19544
19722
|
stepSpan.classList.add('e-step-content');
|
|
19545
19723
|
stepSpan.innerHTML = (index + 1).toString();
|
|
19546
19724
|
}
|
|
@@ -19552,10 +19730,7 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19552
19730
|
!this.element.classList.contains(LABELINDICATOR)))) {
|
|
19553
19731
|
if (item.iconCss) {
|
|
19554
19732
|
var itemIcon = item.iconCss.trim().split(' ');
|
|
19555
|
-
stepSpan.classList.add(ICONCSS);
|
|
19556
|
-
for (var i = 0; i < itemIcon.length; i++) {
|
|
19557
|
-
stepSpan.classList.add(itemIcon[parseInt(i.toString(), 10)]);
|
|
19558
|
-
}
|
|
19733
|
+
(_a = stepSpan.classList).add.apply(_a, [ICONCSS].concat(itemIcon));
|
|
19559
19734
|
this.stepperItemContainer.classList.add(STEPICON);
|
|
19560
19735
|
}
|
|
19561
19736
|
else if (!item.iconCss && isItemText && isItemLabel) {
|
|
@@ -19564,51 +19739,41 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19564
19739
|
this.stepperItemContainer.classList.add(STEPICON);
|
|
19565
19740
|
}
|
|
19566
19741
|
this.stepperItemContainer.appendChild(stepSpan);
|
|
19567
|
-
if ((
|
|
19568
|
-
(
|
|
19569
|
-
this.element.classList.add('e-label-' +
|
|
19570
|
-
|
|
19571
|
-
textSpan.innerText = item.label;
|
|
19572
|
-
this.stepperItemContainer.appendChild(textSpan);
|
|
19573
|
-
this.stepperItemContainer.classList.add(STEPTEXT);
|
|
19742
|
+
if (((isHorizontal && (labelPositionLower === 'start' || labelPositionLower === 'end') && isItemLabel) ||
|
|
19743
|
+
(isVertical && (labelPositionLower === 'top' || labelPositionLower === 'bottom') && isItemLabel)) && !isIndicator) {
|
|
19744
|
+
this.element.classList.add('e-label-' + labelPositionLower);
|
|
19745
|
+
this.createTextLabelElement(item.label);
|
|
19574
19746
|
isRender = false;
|
|
19575
19747
|
}
|
|
19576
19748
|
}
|
|
19577
|
-
if (isItemText && (!item.iconCss || !
|
|
19749
|
+
if (isItemText && (!item.iconCss || !isIndicator) && isRender &&
|
|
19578
19750
|
!(item.iconCss && isItemLabel)) {
|
|
19579
|
-
if ((!item.iconCss &&
|
|
19751
|
+
if ((!item.iconCss && isIndicator) ||
|
|
19580
19752
|
((!item.iconCss || this.element.classList.contains(LABELINDICATOR)) && !isItemLabel)) {
|
|
19581
19753
|
if (!item.iconCss && !isItemLabel) {
|
|
19582
19754
|
this.element.classList.add('e-step-type-indicator');
|
|
19583
19755
|
}
|
|
19584
19756
|
this.checkValidState(item, stepSpan);
|
|
19585
|
-
isItemLabel =
|
|
19757
|
+
isItemLabel = false;
|
|
19586
19758
|
}
|
|
19587
19759
|
else {
|
|
19588
|
-
var textSpan = this.createElement('span', { className: TEXT });
|
|
19589
19760
|
if (!isItemLabel) {
|
|
19590
|
-
|
|
19591
|
-
textSpan.classList.add(TEXTCSS);
|
|
19592
|
-
this.stepperItemContainer.appendChild(textSpan);
|
|
19593
|
-
this.stepperItemContainer.classList.add(STEPTEXT);
|
|
19761
|
+
this.createTextLabelElement(item.text);
|
|
19594
19762
|
}
|
|
19595
19763
|
if (isItemLabel && this.element.classList.contains(LABELINDICATOR)) {
|
|
19764
|
+
var textSpan = this.createElement('span', { className: TEXT });
|
|
19596
19765
|
textSpan.innerText = item.label;
|
|
19597
19766
|
}
|
|
19598
|
-
isItemText =
|
|
19767
|
+
isItemText = isItemLabel ? false : true;
|
|
19599
19768
|
}
|
|
19600
19769
|
}
|
|
19601
|
-
if (isItemLabel && (!item.iconCss || !
|
|
19602
|
-
if (!item.iconCss && !isItemText &&
|
|
19770
|
+
if (isItemLabel && isItemLabel && (!item.iconCss || !isIndicator) && isRender) {
|
|
19771
|
+
if (!item.iconCss && !isItemText && isIndicator) {
|
|
19603
19772
|
this.checkValidState(item, stepSpan, true);
|
|
19604
19773
|
}
|
|
19605
19774
|
else if ((!((this.element.classList.contains(LABELINDICATOR)) && isItemText)) ||
|
|
19606
19775
|
(this.element.classList.contains(LABELINDICATOR) && isItemLabel)) {
|
|
19607
|
-
this.
|
|
19608
|
-
var labelSpan = this.createElement('span', { className: LABEL });
|
|
19609
|
-
labelSpan.innerText = item.label;
|
|
19610
|
-
this.labelContainer.appendChild(labelSpan);
|
|
19611
|
-
this.stepperItemContainer.classList.add(STEPSLABEL);
|
|
19776
|
+
this.createTextLabelElement(item.label, true);
|
|
19612
19777
|
this.updateLabelPosition();
|
|
19613
19778
|
if ((!item.iconCss && !isItemText && !this.stepperItemContainer.classList.contains(STEPICON)) ||
|
|
19614
19779
|
this.element.classList.contains(LABELINDICATOR)) {
|
|
@@ -19627,8 +19792,8 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19627
19792
|
var optionalContent = this.l10n.getConstant('optional');
|
|
19628
19793
|
optionalSpan.innerText = optionalContent;
|
|
19629
19794
|
if (isItemLabel && (this.labelContainer && ((this.element.classList.contains(LABELAFTER) && !this.stepperItemContainer.classList.contains('e-step-label-only'))
|
|
19630
|
-
|| (
|
|
19631
|
-
|| (
|
|
19795
|
+
|| (isHorizontal && this.element.classList.contains(LABELBEFORE) && !this.stepperItemContainer.classList.contains('e-step-label-only'))))
|
|
19796
|
+
|| (isVertical && this.element.classList.contains(LABELBEFORE))) {
|
|
19632
19797
|
this.labelContainer.appendChild(optionalSpan);
|
|
19633
19798
|
}
|
|
19634
19799
|
else {
|
|
@@ -19666,16 +19831,16 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19666
19831
|
this.trigger('beforeStepRender', eventArgs, function (args) {
|
|
19667
19832
|
_this.stepperItemList.appendChild(args.element);
|
|
19668
19833
|
});
|
|
19669
|
-
if (
|
|
19670
|
-
|
|
19671
|
-
_this.calculateProgressBarPosition();
|
|
19672
|
-
}
|
|
19673
|
-
|
|
19674
|
-
|
|
19675
|
-
|
|
19834
|
+
if (isVertical) {
|
|
19835
|
+
if (this.isAngular && this.template) {
|
|
19836
|
+
setTimeout(function () { _this.calculateProgressBarPosition(); });
|
|
19837
|
+
}
|
|
19838
|
+
else {
|
|
19839
|
+
this.calculateProgressBarPosition();
|
|
19840
|
+
}
|
|
19676
19841
|
}
|
|
19677
19842
|
}
|
|
19678
|
-
if (
|
|
19843
|
+
if (isVertical) {
|
|
19679
19844
|
if (this.element.classList.contains(LABELBEFORE)) {
|
|
19680
19845
|
var listItems = this.stepperItemList.querySelectorAll('.' + LABEL);
|
|
19681
19846
|
for (var i = 0; i < listItems.length; i++) {
|
|
@@ -19685,37 +19850,48 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19685
19850
|
}
|
|
19686
19851
|
}
|
|
19687
19852
|
};
|
|
19853
|
+
Stepper.prototype.createTextLabelElement = function (content, isLabelEle) {
|
|
19854
|
+
if (isLabelEle === void 0) { isLabelEle = false; }
|
|
19855
|
+
var spanEle = this.createElement('span', { className: isLabelEle ? LABEL : TEXTCSS + " " + TEXT });
|
|
19856
|
+
spanEle.innerText = content;
|
|
19857
|
+
if (isLabelEle) {
|
|
19858
|
+
this.labelContainer = this.createElement('span', { className: STEPLABEL });
|
|
19859
|
+
this.labelContainer.appendChild(spanEle);
|
|
19860
|
+
}
|
|
19861
|
+
else {
|
|
19862
|
+
this.stepperItemContainer.appendChild(spanEle);
|
|
19863
|
+
}
|
|
19864
|
+
this.stepperItemContainer.classList.add(isLabelEle ? STEPSLABEL : STEPTEXT);
|
|
19865
|
+
};
|
|
19688
19866
|
Stepper.prototype.calculateProgressBarPosition = function () {
|
|
19689
19867
|
var isBeforeLabel = (this.element.classList.contains(LABELBEFORE)) ? true : false;
|
|
19690
|
-
var
|
|
19691
|
-
|
|
19692
|
-
|
|
19693
|
-
|
|
19694
|
-
|
|
19695
|
-
|
|
19696
|
-
|
|
19697
|
-
|
|
19698
|
-
|
|
19699
|
-
|
|
19700
|
-
|
|
19701
|
-
|
|
19702
|
-
|
|
19703
|
-
|
|
19704
|
-
|
|
19705
|
-
|
|
19706
|
-
itemWidth = (this.beforeLabelWidth + (this.stepperItemContainer.querySelector('.' + ICONCSS).offsetWidth / 2));
|
|
19707
|
-
}
|
|
19708
|
-
else if (this.stepperItemContainer.querySelector('.' + TEXTCSS)) {
|
|
19709
|
-
itemWidth = (this.beforeLabelWidth + (this.stepperItemContainer.querySelector('.' + TEXTCSS).offsetWidth / 2));
|
|
19710
|
-
}
|
|
19711
|
-
if (this.progressBarPosition < itemWidth) {
|
|
19712
|
-
this.progressBarPosition = itemWidth;
|
|
19713
|
-
}
|
|
19868
|
+
var iconOnly = (this.stepperItemContainer.classList.contains(STEPICON) &&
|
|
19869
|
+
!this.stepperItemContainer.classList.contains(STEPTEXT) &&
|
|
19870
|
+
!this.stepperItemContainer.classList.contains(STEPSLABEL));
|
|
19871
|
+
var textEle = (this.stepperItemContainer.querySelector('.' + TEXTCSS));
|
|
19872
|
+
if (textEle) {
|
|
19873
|
+
this.textEleWidth = this.textEleWidth < textEle.offsetWidth ? textEle.offsetWidth : this.textEleWidth;
|
|
19874
|
+
}
|
|
19875
|
+
if (isBeforeLabel) {
|
|
19876
|
+
var labelWidth = this.stepperItemContainer.querySelector('.' + LABEL).offsetWidth + 15;
|
|
19877
|
+
this.beforeLabelWidth = Math.max(this.beforeLabelWidth, labelWidth);
|
|
19878
|
+
var iconEle = this.element.querySelector('ol').lastChild.querySelector('.' + ICONCSS);
|
|
19879
|
+
var textEle_1 = this.stepperItemContainer.querySelector('.' + TEXTCSS);
|
|
19880
|
+
if (iconEle || textEle_1) {
|
|
19881
|
+
var itemWidth = this.beforeLabelWidth + ((this.stepperItemContainer.querySelector('.' + ICONCSS)
|
|
19882
|
+
|| textEle_1).offsetWidth / 2);
|
|
19883
|
+
this.progressBarPosition = Math.max(this.progressBarPosition, itemWidth);
|
|
19714
19884
|
}
|
|
19715
|
-
else
|
|
19716
|
-
this.progressBarPosition =
|
|
19885
|
+
else {
|
|
19886
|
+
this.progressBarPosition = Math.max(this.progressBarPosition, (this.beforeLabelWidth / 2));
|
|
19717
19887
|
}
|
|
19718
19888
|
}
|
|
19889
|
+
else {
|
|
19890
|
+
var lastChild = this.element.querySelector('ol').lastChild;
|
|
19891
|
+
var lastChildWidth = iconOnly ? this.stepperItemContainer.offsetWidth :
|
|
19892
|
+
lastChild.firstChild.offsetWidth;
|
|
19893
|
+
this.progressBarPosition = Math.max(this.progressBarPosition, lastChildWidth);
|
|
19894
|
+
}
|
|
19719
19895
|
};
|
|
19720
19896
|
Stepper.prototype.checkValidState = function (item, stepSpan, isLabel) {
|
|
19721
19897
|
if (item.isValid == null) {
|
|
@@ -19735,13 +19911,10 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19735
19911
|
}
|
|
19736
19912
|
};
|
|
19737
19913
|
Stepper.prototype.updateCurrentLabel = function () {
|
|
19738
|
-
var
|
|
19739
|
-
|
|
19740
|
-
|
|
19741
|
-
|
|
19742
|
-
else {
|
|
19743
|
-
currentLabelPos = this.labelPosition.toLowerCase() === 'start' ? 'before' : this.labelPosition.toLowerCase() === 'end' ? 'after' : this.labelPosition.toLowerCase();
|
|
19744
|
-
}
|
|
19914
|
+
var labelPos = this.labelPosition.toLowerCase();
|
|
19915
|
+
var currentLabelPos = this.element.classList.contains(HORIZSTEP$1)
|
|
19916
|
+
? (labelPos === 'top' ? 'before' : labelPos === 'bottom' ? 'after' : labelPos)
|
|
19917
|
+
: (labelPos === 'start' ? 'before' : labelPos === 'end' ? 'after' : labelPos);
|
|
19745
19918
|
return currentLabelPos;
|
|
19746
19919
|
};
|
|
19747
19920
|
Stepper.prototype.updateLabelPosition = function () {
|
|
@@ -19768,49 +19941,49 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19768
19941
|
}
|
|
19769
19942
|
};
|
|
19770
19943
|
Stepper.prototype.checkValidStep = function () {
|
|
19771
|
-
|
|
19772
|
-
|
|
19773
|
-
var
|
|
19944
|
+
var isStepIndicator = this.element.classList.contains(STEPINDICATOR);
|
|
19945
|
+
var _loop_1 = function (index) {
|
|
19946
|
+
var item = this_1.steps[parseInt(index.toString(), 10)];
|
|
19947
|
+
var itemElement = this_1.stepperItemElements[parseInt(index.toString(), 10)];
|
|
19774
19948
|
if (item.isValid !== null) {
|
|
19775
19949
|
var indicatorEle = void 0;
|
|
19776
|
-
var
|
|
19777
|
-
if (
|
|
19950
|
+
var iconEle_1;
|
|
19951
|
+
if (isStepIndicator && !item.iconCss) {
|
|
19778
19952
|
indicatorEle = itemElement.querySelector('.' + ICONCSS);
|
|
19779
19953
|
}
|
|
19780
19954
|
else {
|
|
19781
|
-
|
|
19955
|
+
iconEle_1 = itemElement.querySelector('.' + ICONCSS);
|
|
19782
19956
|
}
|
|
19783
|
-
if (!indicatorEle &&
|
|
19957
|
+
if (!indicatorEle && isStepIndicator && this_1.renderDefault(index)) {
|
|
19784
19958
|
indicatorEle = itemElement.querySelector('.' + INDICATORICON);
|
|
19785
19959
|
}
|
|
19786
19960
|
var textLabelIcon = itemElement.querySelector('.e-step-validation-icon');
|
|
19787
19961
|
var itemIcon = item.iconCss.trim().split(' ');
|
|
19788
19962
|
var validStep = itemElement.classList.contains('e-step-valid');
|
|
19963
|
+
var validIconClass = validStep ? 'e-check' : 'e-circle-info';
|
|
19789
19964
|
if (indicatorEle) {
|
|
19790
19965
|
indicatorEle.classList.remove(INDICATORICON);
|
|
19791
19966
|
if (indicatorEle.innerHTML !== '') {
|
|
19792
19967
|
indicatorEle.innerHTML = '';
|
|
19793
19968
|
}
|
|
19794
|
-
indicatorEle.classList.add('e-icons',
|
|
19969
|
+
indicatorEle.classList.add('e-icons', validIconClass, ICONCSS);
|
|
19795
19970
|
}
|
|
19796
|
-
if (
|
|
19971
|
+
if (this_1.renderDefault(index) && !isStepIndicator) {
|
|
19797
19972
|
var stepSpan = itemElement.querySelector('.e-step');
|
|
19798
|
-
stepSpan.classList.add('e-icons',
|
|
19973
|
+
stepSpan.classList.add('e-icons', validIconClass, ICONCSS);
|
|
19799
19974
|
}
|
|
19800
|
-
if (
|
|
19801
|
-
if (
|
|
19802
|
-
|
|
19975
|
+
if (iconEle_1) {
|
|
19976
|
+
if (iconEle_1.innerHTML !== '') {
|
|
19977
|
+
iconEle_1.innerHTML = '';
|
|
19803
19978
|
}
|
|
19804
19979
|
else if (itemIcon.length > 0) {
|
|
19805
|
-
|
|
19806
|
-
iconEle.classList.remove(itemIcon[parseInt(i.toString(), 10)]);
|
|
19807
|
-
}
|
|
19980
|
+
itemIcon.forEach(function (icon) { iconEle_1.classList.remove(icon); });
|
|
19808
19981
|
}
|
|
19809
|
-
|
|
19982
|
+
iconEle_1.classList.add('e-icons', validIconClass);
|
|
19810
19983
|
}
|
|
19811
19984
|
if (textLabelIcon) {
|
|
19812
19985
|
textLabelIcon.classList.add(validStep ? 'e-circle-check' : 'e-circle-info');
|
|
19813
|
-
if (
|
|
19986
|
+
if (this_1.element.classList.contains(VERTICALSTEP$1)) {
|
|
19814
19987
|
var labelEle = itemElement.querySelector('.' + LABEL);
|
|
19815
19988
|
var textEle = itemElement.querySelector('.' + TEXT);
|
|
19816
19989
|
var itemWidth = textEle ? textEle.offsetWidth + textEle.getBoundingClientRect().left :
|
|
@@ -19820,6 +19993,10 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19820
19993
|
}
|
|
19821
19994
|
}
|
|
19822
19995
|
}
|
|
19996
|
+
};
|
|
19997
|
+
var this_1 = this;
|
|
19998
|
+
for (var index = 0; index < this.steps.length; index++) {
|
|
19999
|
+
_loop_1(index);
|
|
19823
20000
|
}
|
|
19824
20001
|
};
|
|
19825
20002
|
Stepper.prototype.updateTooltip = function () {
|
|
@@ -19839,20 +20016,28 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19839
20016
|
}
|
|
19840
20017
|
};
|
|
19841
20018
|
Stepper.prototype.wireItemsEvents = function (itemElement, index) {
|
|
19842
|
-
|
|
19843
|
-
EventHandler.add(itemElement, '
|
|
19844
|
-
|
|
19845
|
-
|
|
19846
|
-
|
|
19847
|
-
|
|
19848
|
-
|
|
19849
|
-
|
|
19850
|
-
|
|
19851
|
-
|
|
20019
|
+
EventHandler.add(itemElement, 'click', this.linearModeHandler.bind(this, itemElement, index), this);
|
|
20020
|
+
EventHandler.add(itemElement, 'mouseover', this.openStepperTooltip.bind(this, index), this);
|
|
20021
|
+
EventHandler.add(itemElement, 'mouseleave', this.closeStepperTooltip, this);
|
|
20022
|
+
};
|
|
20023
|
+
Stepper.prototype.unWireItemsEvents = function () {
|
|
20024
|
+
for (var index = 0; index < this.steps.length; index++) {
|
|
20025
|
+
var itemElement = this.stepperItemElements[parseInt(index.toString(), 10)];
|
|
20026
|
+
EventHandler.remove(itemElement, 'click', this.linearModeHandler.bind(this, itemElement, index));
|
|
20027
|
+
EventHandler.remove(itemElement, 'mouseover', this.openStepperTooltip.bind(this, index));
|
|
20028
|
+
EventHandler.remove(itemElement, 'mouseleave', this.closeStepperTooltip);
|
|
20029
|
+
}
|
|
20030
|
+
};
|
|
20031
|
+
Stepper.prototype.linearModeHandler = function (itemElement, index, e) {
|
|
20032
|
+
if (this.linear) {
|
|
20033
|
+
var linearModeValue = index - this.activeStep;
|
|
20034
|
+
if (Math.abs(linearModeValue) === 1) {
|
|
20035
|
+
this.stepClickHandler(index, e, itemElement);
|
|
19852
20036
|
}
|
|
19853
|
-
}
|
|
19854
|
-
|
|
19855
|
-
|
|
20037
|
+
}
|
|
20038
|
+
else {
|
|
20039
|
+
this.stepClickHandler(index, e, itemElement);
|
|
20040
|
+
}
|
|
19856
20041
|
};
|
|
19857
20042
|
Stepper.prototype.openStepperTooltip = function (index) {
|
|
19858
20043
|
var currentStep = this.steps[parseInt(index.toString(), 10)];
|
|
@@ -19994,7 +20179,7 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19994
20179
|
}
|
|
19995
20180
|
};
|
|
19996
20181
|
Stepper.prototype.navigationHandler = function (index, stepStatus, isUpdated) {
|
|
19997
|
-
index = (index
|
|
20182
|
+
index = Math.min(index, this.steps.length - 1);
|
|
19998
20183
|
var Itemslength = this.stepperItemElements.length;
|
|
19999
20184
|
if (index >= 0 && index < Itemslength - 1) {
|
|
20000
20185
|
index = this.stepperItemElements[parseInt(index.toString(), 10)].classList.contains(DISABLED$2) ? this.activeStep : index;
|
|
@@ -20011,46 +20196,8 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
20011
20196
|
itemElement.classList.add(SELECTED$2);
|
|
20012
20197
|
}
|
|
20013
20198
|
if (this.activeStep >= 0 && this.progressbar) {
|
|
20014
|
-
if (this.element.classList.contains(HORIZSTEP)) {
|
|
20015
|
-
|
|
20016
|
-
!this.element.classList.contains(STEPINDICATOR) &&
|
|
20017
|
-
this.stepperItemElements[parseInt(this.activeStep.toString(), 10)].classList.contains(STEPICON)) {
|
|
20018
|
-
var progressPos = this.element.querySelector('.e-stepper-progressbar');
|
|
20019
|
-
var selectedEle = this.stepperItemElements[parseInt(this.activeStep.toString(), 10)]
|
|
20020
|
-
.firstChild;
|
|
20021
|
-
var value = this.activeStep === 0 ? 0 : (selectedEle.offsetLeft - progressPos.offsetLeft +
|
|
20022
|
-
(selectedEle.offsetWidth / 2)) / progressPos.offsetWidth * 100;
|
|
20023
|
-
if (this.element.classList.contains(RTL$3)) {
|
|
20024
|
-
value = (progressPos.getBoundingClientRect().right - selectedEle.getBoundingClientRect().right +
|
|
20025
|
-
(selectedEle.offsetWidth / 2)) / progressPos.offsetWidth * 100;
|
|
20026
|
-
this.progressbar.style.setProperty(PROGRESSVALUE$1, (value) + '%');
|
|
20027
|
-
}
|
|
20028
|
-
else {
|
|
20029
|
-
this.progressbar.style.setProperty(PROGRESSVALUE$1, (value) + '%');
|
|
20030
|
-
}
|
|
20031
|
-
}
|
|
20032
|
-
else {
|
|
20033
|
-
var totalLiWidth = 0;
|
|
20034
|
-
var activeLiWidth = 0;
|
|
20035
|
-
for (var j = 0; j < this.stepperItemElements.length; j++) {
|
|
20036
|
-
totalLiWidth = totalLiWidth + this.stepperItemElements[parseInt(j.toString(), 10)].offsetWidth;
|
|
20037
|
-
if (j <= this.activeStep) {
|
|
20038
|
-
if (j < this.activeStep) {
|
|
20039
|
-
activeLiWidth = activeLiWidth +
|
|
20040
|
-
this.stepperItemElements[parseInt(j.toString(), 10)].offsetWidth;
|
|
20041
|
-
}
|
|
20042
|
-
else if (j === this.activeStep && j !== 0) {
|
|
20043
|
-
activeLiWidth = activeLiWidth +
|
|
20044
|
-
(this.stepperItemElements[parseInt(j.toString(), 10)].offsetWidth / 2);
|
|
20045
|
-
}
|
|
20046
|
-
}
|
|
20047
|
-
}
|
|
20048
|
-
var spaceWidth = (this.stepperItemList.offsetWidth - totalLiWidth) /
|
|
20049
|
-
(this.stepperItemElements.length - 1);
|
|
20050
|
-
var progressValue = ((activeLiWidth + (spaceWidth * this.activeStep)) /
|
|
20051
|
-
this.stepperItemList.offsetWidth) * 100;
|
|
20052
|
-
this.progressbar.style.setProperty(PROGRESSVALUE$1, (progressValue) + '%');
|
|
20053
|
-
}
|
|
20199
|
+
if (this.element.classList.contains(HORIZSTEP$1)) {
|
|
20200
|
+
this.calculateProgressbarPos();
|
|
20054
20201
|
}
|
|
20055
20202
|
else {
|
|
20056
20203
|
this.progressbar.style.setProperty(PROGRESSVALUE$1, ((100 / (this.steps.length - 1)) * index) + '%');
|
|
@@ -20099,27 +20246,65 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
20099
20246
|
}
|
|
20100
20247
|
}
|
|
20101
20248
|
this.isProtectedOnChange = prevOnChange_1;
|
|
20102
|
-
|
|
20103
|
-
|
|
20104
|
-
|
|
20105
|
-
|
|
20106
|
-
|
|
20107
|
-
|
|
20108
|
-
|
|
20109
|
-
|
|
20249
|
+
this.updateIndicatorStatus(i, itemElement);
|
|
20250
|
+
}
|
|
20251
|
+
this.updateStepInteractions();
|
|
20252
|
+
};
|
|
20253
|
+
Stepper.prototype.calculateProgressbarPos = function () {
|
|
20254
|
+
var _this = this;
|
|
20255
|
+
if ((this.element.classList.contains(LABELBEFORE) || this.element.classList.contains(LABELAFTER)) &&
|
|
20256
|
+
!this.element.classList.contains(STEPINDICATOR) &&
|
|
20257
|
+
this.stepperItemElements[parseInt(this.activeStep.toString(), 10)].classList.contains(STEPICON)) {
|
|
20258
|
+
var progressPos = this.element.querySelector('.e-stepper-progressbar');
|
|
20259
|
+
var selectedEle = this.stepperItemElements[parseInt(this.activeStep.toString(), 10)]
|
|
20260
|
+
.firstChild;
|
|
20261
|
+
var value = this.activeStep === 0 ? 0 : (selectedEle.offsetLeft - progressPos.offsetLeft +
|
|
20262
|
+
(selectedEle.offsetWidth / 2)) / progressPos.offsetWidth * 100;
|
|
20263
|
+
if (this.element.classList.contains(RTL$3)) {
|
|
20264
|
+
value = (progressPos.getBoundingClientRect().right - selectedEle.getBoundingClientRect().right +
|
|
20265
|
+
(selectedEle.offsetWidth / 2)) / progressPos.offsetWidth * 100;
|
|
20266
|
+
this.progressbar.style.setProperty(PROGRESSVALUE$1, (value) + '%');
|
|
20267
|
+
}
|
|
20268
|
+
else {
|
|
20269
|
+
this.progressbar.style.setProperty(PROGRESSVALUE$1, (value) + '%');
|
|
20270
|
+
}
|
|
20271
|
+
}
|
|
20272
|
+
else {
|
|
20273
|
+
var totalLiWidth_1 = 0;
|
|
20274
|
+
var activeLiWidth_1 = 0;
|
|
20275
|
+
this.stepperItemElements.forEach(function (element, index) {
|
|
20276
|
+
var itemWidth = element.offsetWidth;
|
|
20277
|
+
totalLiWidth_1 += itemWidth;
|
|
20278
|
+
if (index <= _this.activeStep) {
|
|
20279
|
+
activeLiWidth_1 += (index === _this.activeStep && index !== 0) ? (itemWidth / 2) : itemWidth;
|
|
20110
20280
|
}
|
|
20281
|
+
});
|
|
20282
|
+
var spaceWidth = (this.stepperItemList.offsetWidth - totalLiWidth_1) /
|
|
20283
|
+
(this.stepperItemElements.length - 1);
|
|
20284
|
+
var progressValue = ((activeLiWidth_1 + (spaceWidth * this.activeStep)) /
|
|
20285
|
+
this.stepperItemList.offsetWidth) * 100;
|
|
20286
|
+
this.progressbar.style.setProperty(PROGRESSVALUE$1, (progressValue) + '%');
|
|
20287
|
+
}
|
|
20288
|
+
};
|
|
20289
|
+
Stepper.prototype.updateIndicatorStatus = function (index, itemElement) {
|
|
20290
|
+
if (this.renderDefault(index) && this.element.classList.contains(STEPINDICATOR) && !itemElement.classList.contains('e-step-valid')
|
|
20291
|
+
&& !itemElement.classList.contains('e-step-error')) {
|
|
20292
|
+
if (itemElement.classList.contains(COMPLETED)) {
|
|
20293
|
+
itemElement.firstChild.classList.remove('e-icons', 'e-step-indicator');
|
|
20294
|
+
itemElement.firstChild.classList.add(ICONCSS, 'e-icons', 'e-check');
|
|
20295
|
+
}
|
|
20296
|
+
else if (itemElement.classList.contains(INPROGRESS) || itemElement.classList.contains(NOTSTARTED)) {
|
|
20297
|
+
itemElement.firstChild.classList.remove(ICONCSS, 'e-icons', 'e-check');
|
|
20298
|
+
itemElement.firstChild.classList.add('e-icons', 'e-step-indicator');
|
|
20111
20299
|
}
|
|
20112
20300
|
}
|
|
20113
|
-
this.updateStepInteractions();
|
|
20114
20301
|
};
|
|
20115
20302
|
Stepper.prototype.updateStepInteractions = function () {
|
|
20116
20303
|
var _this = this;
|
|
20117
20304
|
this.element.classList.toggle(LINEARSTEP, this.linear);
|
|
20118
20305
|
this.stepperItemElements.forEach(function (step, index) {
|
|
20119
|
-
|
|
20120
|
-
|
|
20121
|
-
step.classList.toggle(PREVSTEP, isPreviousStep);
|
|
20122
|
-
step.classList.toggle(NEXTSTEP, isNextStep);
|
|
20306
|
+
step.classList.toggle(PREVSTEP, (index === _this.activeStep - 1));
|
|
20307
|
+
step.classList.toggle(NEXTSTEP, (index === _this.activeStep + 1));
|
|
20123
20308
|
});
|
|
20124
20309
|
};
|
|
20125
20310
|
Stepper.prototype.removeItemElements = function () {
|
|
@@ -20175,7 +20360,7 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
20175
20360
|
};
|
|
20176
20361
|
Stepper.prototype.updateElementClassArray = function () {
|
|
20177
20362
|
var classArray = [RTL$3, READONLY, 'e-steps-focus', LABELAFTER, LABELBEFORE, 'e-label-top',
|
|
20178
|
-
'e-label-bottom', 'e-label-start', 'e-label-end', STEPINDICATOR, LABELINDICATOR, VERTICALSTEP, HORIZSTEP, LINEARSTEP];
|
|
20363
|
+
'e-label-bottom', 'e-label-start', 'e-label-end', STEPINDICATOR, LABELINDICATOR, VERTICALSTEP$1, HORIZSTEP$1, LINEARSTEP];
|
|
20179
20364
|
removeClass([this.element], classArray);
|
|
20180
20365
|
};
|
|
20181
20366
|
/**
|
|
@@ -20186,6 +20371,7 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
20186
20371
|
Stepper.prototype.destroy = function () {
|
|
20187
20372
|
_super.prototype.destroy.call(this);
|
|
20188
20373
|
this.unWireEvents();
|
|
20374
|
+
this.unWireItemsEvents();
|
|
20189
20375
|
// unwires the events and detach the li elements
|
|
20190
20376
|
this.removeItemElements();
|
|
20191
20377
|
this.clearTemplate();
|
|
@@ -20231,7 +20417,7 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
20231
20417
|
case 'rightarrow':
|
|
20232
20418
|
case 'tab':
|
|
20233
20419
|
case 'shiftTab':
|
|
20234
|
-
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);
|
|
20420
|
+
this.handleNavigation(this.enableRtl && this.element.classList.contains(HORIZSTEP$1) ? (e.action === 'leftarrow' || e.action === 'tab' || e.action === 'uparrow') : (e.action === 'rightarrow' || e.action === 'tab' || e.action === 'downarrow'), e);
|
|
20235
20421
|
break;
|
|
20236
20422
|
case 'space':
|
|
20237
20423
|
case 'enter':
|
|
@@ -20332,6 +20518,66 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
20332
20518
|
this.updateAnimation();
|
|
20333
20519
|
this.navigateToStep(this.activeStep, null, this.stepperItemElements[this.activeStep], true);
|
|
20334
20520
|
};
|
|
20521
|
+
Stepper.prototype.updateDynamicSteps = function (steps, prevSteps) {
|
|
20522
|
+
if (!(steps instanceof Array && prevSteps instanceof Array)) {
|
|
20523
|
+
var stepCounts = Object.keys(steps);
|
|
20524
|
+
for (var i = 0; i < stepCounts.length; i++) {
|
|
20525
|
+
var index = parseInt(Object.keys(steps)[i], 10);
|
|
20526
|
+
var changedPropsCount = Object.keys(steps[index]).length;
|
|
20527
|
+
for (var j = 0; j < changedPropsCount; j++) {
|
|
20528
|
+
var property = Object.keys(steps[index])[j];
|
|
20529
|
+
if (property === 'status') {
|
|
20530
|
+
if (this.activeStep === index) {
|
|
20531
|
+
this.navigationHandler(index, steps[index].status);
|
|
20532
|
+
}
|
|
20533
|
+
else {
|
|
20534
|
+
this.steps[index].status = prevSteps[index].status;
|
|
20535
|
+
}
|
|
20536
|
+
}
|
|
20537
|
+
else {
|
|
20538
|
+
this.removeItemElements();
|
|
20539
|
+
this.renderItems();
|
|
20540
|
+
this.updateStepperStatus();
|
|
20541
|
+
}
|
|
20542
|
+
if (property === 'label' && (this.steps[index].iconCss || this.steps[index].text) &&
|
|
20543
|
+
this.stepType.toLowerCase() === 'default') {
|
|
20544
|
+
this.refreshProgressbar();
|
|
20545
|
+
}
|
|
20546
|
+
this.updateStepInteractions();
|
|
20547
|
+
this.checkValidStep();
|
|
20548
|
+
}
|
|
20549
|
+
}
|
|
20550
|
+
}
|
|
20551
|
+
else {
|
|
20552
|
+
this.renderStepperItems(true, true);
|
|
20553
|
+
}
|
|
20554
|
+
};
|
|
20555
|
+
Stepper.prototype.updateDynamicActiveStep = function (activeStep, preActiveStep) {
|
|
20556
|
+
this.activeStep = (activeStep > this.steps.length - 1 || activeStep < -1) ? preActiveStep : this.activeStep;
|
|
20557
|
+
if (this.activeStep >= 0 && this.stepperItemElements[parseInt(this.activeStep.toString(), 10)].classList.contains(DISABLED$2)) {
|
|
20558
|
+
this.activeStep = preActiveStep;
|
|
20559
|
+
}
|
|
20560
|
+
if (this.linear) {
|
|
20561
|
+
var linearModeValue = preActiveStep - this.activeStep;
|
|
20562
|
+
if (Math.abs(linearModeValue) === 1) {
|
|
20563
|
+
this.navigateToStep(this.activeStep, null, null, true);
|
|
20564
|
+
}
|
|
20565
|
+
}
|
|
20566
|
+
else {
|
|
20567
|
+
this.navigateToStep(this.activeStep, null, this.stepperItemElements[this.activeStep], true);
|
|
20568
|
+
}
|
|
20569
|
+
};
|
|
20570
|
+
Stepper.prototype.updateDynamicCssClass = function (cssClass, prevCssClass) {
|
|
20571
|
+
if (prevCssClass) {
|
|
20572
|
+
removeClass([this.element], prevCssClass.trim().split(' '));
|
|
20573
|
+
}
|
|
20574
|
+
if (cssClass) {
|
|
20575
|
+
addClass([this.element], cssClass.trim().split(' '));
|
|
20576
|
+
}
|
|
20577
|
+
if (this.tooltipObj) {
|
|
20578
|
+
this.tooltipObj.setProperties({ cssClass: this.cssClass ? (STEPPERTOOLTIP + ' ' + this.cssClass) : STEPPERTOOLTIP });
|
|
20579
|
+
}
|
|
20580
|
+
};
|
|
20335
20581
|
/**
|
|
20336
20582
|
* Called internally if any of the property value changed.
|
|
20337
20583
|
*
|
|
@@ -20345,38 +20591,7 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
20345
20591
|
var prop = _a[_i];
|
|
20346
20592
|
switch (prop) {
|
|
20347
20593
|
case 'steps': {
|
|
20348
|
-
|
|
20349
|
-
var stepCounts = Object.keys(newProp.steps);
|
|
20350
|
-
for (var i = 0; i < stepCounts.length; i++) {
|
|
20351
|
-
var index = parseInt(Object.keys(newProp.steps)[i], 10);
|
|
20352
|
-
var changedPropsCount = Object.keys(newProp.steps[index]).length;
|
|
20353
|
-
for (var j = 0; j < changedPropsCount; j++) {
|
|
20354
|
-
var property = Object.keys(newProp.steps[index])[j];
|
|
20355
|
-
if (property === 'status') {
|
|
20356
|
-
if (this.activeStep === index) {
|
|
20357
|
-
this.navigationHandler(index, newProp.steps[index].status);
|
|
20358
|
-
}
|
|
20359
|
-
else {
|
|
20360
|
-
this.steps[index].status = oldProp.steps[index].status;
|
|
20361
|
-
}
|
|
20362
|
-
}
|
|
20363
|
-
else {
|
|
20364
|
-
this.removeItemElements();
|
|
20365
|
-
this.renderItems();
|
|
20366
|
-
this.updateStepperStatus();
|
|
20367
|
-
}
|
|
20368
|
-
if (property === 'label' && (this.steps[index].iconCss || this.steps[index].text) &&
|
|
20369
|
-
this.stepType.toLowerCase() === 'default') {
|
|
20370
|
-
this.refreshProgressbar();
|
|
20371
|
-
}
|
|
20372
|
-
this.updateStepInteractions();
|
|
20373
|
-
this.checkValidStep();
|
|
20374
|
-
}
|
|
20375
|
-
}
|
|
20376
|
-
}
|
|
20377
|
-
else {
|
|
20378
|
-
this.renderStepperItems(true, true);
|
|
20379
|
-
}
|
|
20594
|
+
this.updateDynamicSteps(newProp.steps, oldProp.steps);
|
|
20380
20595
|
break;
|
|
20381
20596
|
}
|
|
20382
20597
|
case 'orientation':
|
|
@@ -20384,21 +20599,7 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
20384
20599
|
this.renderStepperItems(true);
|
|
20385
20600
|
break;
|
|
20386
20601
|
case 'activeStep':
|
|
20387
|
-
this.
|
|
20388
|
-
oldProp.activeStep : this.activeStep;
|
|
20389
|
-
if (this.activeStep >= 0 && this.stepperItemElements[parseInt(this.activeStep.toString(), 10)]
|
|
20390
|
-
.classList.contains(DISABLED$2)) {
|
|
20391
|
-
this.activeStep = oldProp.activeStep;
|
|
20392
|
-
}
|
|
20393
|
-
if (this.linear) {
|
|
20394
|
-
var linearModeValue = oldProp.activeStep - this.activeStep;
|
|
20395
|
-
if (Math.abs(linearModeValue) === 1) {
|
|
20396
|
-
this.navigateToStep(this.activeStep, null, null, true);
|
|
20397
|
-
}
|
|
20398
|
-
}
|
|
20399
|
-
else {
|
|
20400
|
-
this.navigateToStep(this.activeStep, null, this.stepperItemElements[this.activeStep], true);
|
|
20401
|
-
}
|
|
20602
|
+
this.updateDynamicActiveStep(newProp.activeStep, oldProp.activeStep);
|
|
20402
20603
|
break;
|
|
20403
20604
|
case 'enableRtl':
|
|
20404
20605
|
this.element.classList[this.enableRtl ? 'add' : 'remove'](RTL$3);
|
|
@@ -20407,15 +20608,7 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
20407
20608
|
this.element.classList[this.readOnly ? 'add' : 'remove'](READONLY);
|
|
20408
20609
|
break;
|
|
20409
20610
|
case 'cssClass':
|
|
20410
|
-
|
|
20411
|
-
removeClass([this.element], oldProp.cssClass.trim().split(' '));
|
|
20412
|
-
}
|
|
20413
|
-
if (newProp.cssClass) {
|
|
20414
|
-
addClass([this.element], newProp.cssClass.trim().split(' '));
|
|
20415
|
-
}
|
|
20416
|
-
if (this.tooltipObj) {
|
|
20417
|
-
this.tooltipObj.setProperties({ cssClass: this.cssClass ? (STEPPERTOOLTIP + ' ' + this.cssClass) : STEPPERTOOLTIP });
|
|
20418
|
-
}
|
|
20611
|
+
this.updateDynamicCssClass(newProp.cssClass, oldProp.cssClass);
|
|
20419
20612
|
break;
|
|
20420
20613
|
case 'labelPosition':
|
|
20421
20614
|
this.renderStepperItems(true);
|