@syncfusion/ej2-navigations 28.1.41 → 28.2.3-1479479
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +243 -260
- package/README.md +301 -301
- package/blazorGlobalSrc/accordion/accordion-model.d.ts +285 -0
- package/blazorGlobalSrc/accordion/accordion.d.ts +458 -0
- package/blazorGlobalSrc/accordion/accordion.js +1411 -0
- package/blazorGlobalSrc/accordion/index.d.ts +5 -0
- package/blazorGlobalSrc/accordion/index.js +4 -0
- package/blazorGlobalSrc/appbar/appbar-model.d.ts +76 -0
- package/blazorGlobalSrc/appbar/appbar.d.ts +115 -0
- package/blazorGlobalSrc/appbar/appbar.js +221 -0
- package/blazorGlobalSrc/appbar/index.d.ts +3 -0
- package/blazorGlobalSrc/appbar/index.js +2 -0
- package/blazorGlobalSrc/breadcrumb/breadcrumb-model.d.ts +170 -0
- package/blazorGlobalSrc/breadcrumb/breadcrumb.d.ts +297 -0
- package/blazorGlobalSrc/breadcrumb/breadcrumb.js +833 -0
- package/blazorGlobalSrc/breadcrumb/index.d.ts +5 -0
- package/blazorGlobalSrc/breadcrumb/index.js +4 -0
- package/blazorGlobalSrc/carousel/carousel-model.d.ts +282 -0
- package/blazorGlobalSrc/carousel/carousel.d.ts +439 -0
- package/blazorGlobalSrc/carousel/carousel.js +1353 -0
- package/blazorGlobalSrc/carousel/index.d.ts +3 -0
- package/blazorGlobalSrc/carousel/index.js +2 -0
- package/blazorGlobalSrc/common/h-scroll-model.d.ts +16 -0
- package/blazorGlobalSrc/common/h-scroll.d.ts +105 -0
- package/blazorGlobalSrc/common/h-scroll.js +499 -0
- package/blazorGlobalSrc/common/index.d.ts +9 -0
- package/blazorGlobalSrc/common/index.js +8 -0
- package/blazorGlobalSrc/common/menu-base-model.d.ts +308 -0
- package/blazorGlobalSrc/common/menu-base.d.ts +553 -0
- package/blazorGlobalSrc/common/menu-base.js +2502 -0
- package/blazorGlobalSrc/common/menu-scroll.d.ts +29 -0
- package/blazorGlobalSrc/common/menu-scroll.js +103 -0
- package/blazorGlobalSrc/common/v-scroll-model.d.ts +16 -0
- package/blazorGlobalSrc/common/v-scroll.d.ts +106 -0
- package/blazorGlobalSrc/common/v-scroll.js +471 -0
- package/blazorGlobalSrc/context-menu/context-menu-model.d.ts +47 -0
- package/blazorGlobalSrc/context-menu/context-menu.d.ts +101 -0
- package/blazorGlobalSrc/context-menu/context-menu.js +143 -0
- package/blazorGlobalSrc/context-menu/index.d.ts +5 -0
- package/blazorGlobalSrc/context-menu/index.js +4 -0
- package/blazorGlobalSrc/global.js +1 -0
- package/blazorGlobalSrc/index.d.ts +16 -0
- package/blazorGlobalSrc/index.js +16 -0
- package/blazorGlobalSrc/menu/index.d.ts +5 -0
- package/blazorGlobalSrc/menu/index.js +4 -0
- package/blazorGlobalSrc/menu/menu-model.d.ts +70 -0
- package/blazorGlobalSrc/menu/menu.d.ts +127 -0
- package/blazorGlobalSrc/menu/menu.js +288 -0
- package/blazorGlobalSrc/sidebar/index.d.ts +5 -0
- package/blazorGlobalSrc/sidebar/index.js +4 -0
- package/blazorGlobalSrc/sidebar/sidebar-model.d.ts +200 -0
- package/blazorGlobalSrc/sidebar/sidebar.d.ts +335 -0
- package/blazorGlobalSrc/sidebar/sidebar.js +729 -0
- package/blazorGlobalSrc/stepper/index.d.ts +3 -0
- package/blazorGlobalSrc/stepper/index.js +2 -0
- package/blazorGlobalSrc/stepper/stepper-model.d.ts +159 -0
- package/blazorGlobalSrc/stepper/stepper.d.ts +381 -0
- package/blazorGlobalSrc/stepper/stepper.js +1305 -0
- package/blazorGlobalSrc/stepper-base/index.d.ts +5 -0
- package/blazorGlobalSrc/stepper-base/index.js +4 -0
- package/blazorGlobalSrc/stepper-base/stepper-base-model.d.ts +121 -0
- package/blazorGlobalSrc/stepper-base/stepper-base.d.ts +184 -0
- package/blazorGlobalSrc/stepper-base/stepper-base.js +230 -0
- package/blazorGlobalSrc/tab/index.d.ts +5 -0
- package/blazorGlobalSrc/tab/index.js +4 -0
- package/blazorGlobalSrc/tab/tab-model.d.ts +408 -0
- package/blazorGlobalSrc/tab/tab.d.ts +715 -0
- package/blazorGlobalSrc/tab/tab.js +2564 -0
- package/blazorGlobalSrc/toolbar/index.d.ts +5 -0
- package/blazorGlobalSrc/toolbar/index.js +4 -0
- package/blazorGlobalSrc/toolbar/toolbar-model.d.ts +287 -0
- package/blazorGlobalSrc/toolbar/toolbar.d.ts +522 -0
- package/blazorGlobalSrc/toolbar/toolbar.js +2408 -0
- package/blazorGlobalSrc/treeview/index.d.ts +5 -0
- package/blazorGlobalSrc/treeview/index.js +4 -0
- package/blazorGlobalSrc/treeview/treeview-model.d.ts +630 -0
- package/blazorGlobalSrc/treeview/treeview.d.ts +1509 -0
- package/blazorGlobalSrc/treeview/treeview.js +5766 -0
- package/dist/ej2-navigations.min.js +1 -10
- package/dist/ej2-navigations.umd.min.js +1 -10
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +107 -96
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +301 -290
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +1 -10
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/dist/ts/undefined +285 -0
- package/license +10 -10
- package/package.json +166 -166
- package/src/accordion/accordion-model.d.ts +199 -199
- package/src/accordion/accordion.js +19 -19
- package/src/appbar/appbar-model.d.ts +51 -51
- package/src/appbar/appbar.js +19 -19
- package/src/breadcrumb/breadcrumb-model.d.ts +114 -114
- package/src/breadcrumb/breadcrumb.js +19 -19
- package/src/carousel/carousel-model.d.ts +204 -204
- package/src/carousel/carousel.js +19 -19
- package/src/common/h-scroll-model.d.ts +6 -6
- package/src/common/h-scroll.js +19 -19
- package/src/common/menu-base-model.d.ts +234 -234
- package/src/common/menu-base.js +26 -19
- package/src/common/v-scroll-model.d.ts +6 -6
- package/src/common/v-scroll.js +19 -19
- package/src/context-menu/context-menu-model.d.ts +29 -29
- package/src/context-menu/context-menu.js +19 -19
- package/src/menu/menu-model.d.ts +45 -45
- package/src/menu/menu.js +19 -19
- package/src/sidebar/sidebar-model.d.ts +189 -189
- package/src/sidebar/sidebar.js +19 -19
- package/src/stepper/stepper.js +19 -19
- package/src/stepper-base/stepper-base.js +19 -19
- package/src/tab/tab-model.d.ts +305 -305
- package/src/tab/tab.js +19 -19
- package/src/toolbar/toolbar-model.d.ts +209 -209
- package/src/toolbar/toolbar.js +19 -19
- package/src/treeview/treeview-model.d.ts +520 -520
- package/src/treeview/treeview.d.ts +2 -1
- package/src/treeview/treeview.js +28 -24
- package/styles/accordion/_all.scss +2 -2
- package/styles/accordion/_bds-definition.scss +167 -167
- package/styles/accordion/_bigger.scss +121 -121
- package/styles/accordion/_bootstrap-dark-definition.scss +169 -167
- package/styles/accordion/_bootstrap-definition.scss +167 -167
- package/styles/accordion/_bootstrap4-definition.scss +177 -175
- package/styles/accordion/_bootstrap5-definition.scss +168 -168
- package/styles/accordion/_bootstrap5.3-definition.scss +168 -168
- package/styles/accordion/_fabric-dark-definition.scss +171 -171
- package/styles/accordion/_fabric-definition.scss +171 -171
- package/styles/accordion/_fluent-definition.scss +168 -168
- package/styles/accordion/_fluent2-definition.scss +167 -167
- package/styles/accordion/_fusionnew-definition.scss +168 -168
- package/styles/accordion/_highcontrast-definition.scss +193 -193
- package/styles/accordion/_highcontrast-light-definition.scss +193 -193
- package/styles/accordion/_layout.scss +236 -236
- package/styles/accordion/_material-dark-definition.scss +171 -171
- package/styles/accordion/_material-definition.scss +165 -165
- package/styles/accordion/_material3-definition.scss +168 -168
- package/styles/accordion/_tailwind-definition.scss +167 -167
- package/styles/accordion/_tailwind3-definition.scss +168 -168
- package/styles/accordion/_theme.scss +418 -418
- package/styles/accordion/bootstrap-dark.css +12 -12
- package/styles/accordion/bootstrap4.css +4 -4
- package/styles/accordion/bootstrap5-dark.css +37 -37
- package/styles/accordion/bootstrap5.css +16 -16
- package/styles/accordion/fabric.css +11 -11
- package/styles/accordion/icons/_bds.scss +15 -15
- package/styles/accordion/icons/_bootstrap-dark.scss +15 -15
- package/styles/accordion/icons/_bootstrap.scss +15 -15
- package/styles/accordion/icons/_bootstrap4.scss +15 -15
- package/styles/accordion/icons/_bootstrap5.3.scss +15 -15
- package/styles/accordion/icons/_bootstrap5.scss +15 -15
- package/styles/accordion/icons/_fabric-dark.scss +15 -15
- package/styles/accordion/icons/_fabric.scss +15 -15
- package/styles/accordion/icons/_fluent.scss +15 -15
- package/styles/accordion/icons/_fluent2.scss +15 -15
- package/styles/accordion/icons/_fusionnew.scss +15 -15
- package/styles/accordion/icons/_highcontrast-light.scss +15 -15
- package/styles/accordion/icons/_highcontrast.scss +15 -15
- package/styles/accordion/icons/_material-dark.scss +15 -15
- package/styles/accordion/icons/_material.scss +15 -15
- package/styles/accordion/icons/_material3.scss +15 -15
- package/styles/accordion/icons/_tailwind.scss +15 -15
- package/styles/accordion/icons/_tailwind3.scss +15 -15
- package/styles/accordion/material3-dark.scss +1 -1
- package/styles/accordion/material3.scss +1 -1
- package/styles/accordion/tailwind-dark.css +2 -2
- package/styles/appbar/_all.scss +2 -2
- package/styles/appbar/_bds-definition.scss +24 -24
- package/styles/appbar/_bigger.scss +15 -15
- package/styles/appbar/_bootstrap-dark-definition.scss +6 -6
- package/styles/appbar/_bootstrap-definition.scss +6 -6
- package/styles/appbar/_bootstrap4-definition.scss +6 -6
- package/styles/appbar/_bootstrap5-definition.scss +6 -6
- package/styles/appbar/_bootstrap5.3-definition.scss +6 -6
- package/styles/appbar/_fabric-dark-definition.scss +6 -6
- package/styles/appbar/_fabric-definition.scss +6 -6
- package/styles/appbar/_fluent-definition.scss +6 -6
- package/styles/appbar/_fluent2-definition.scss +23 -23
- package/styles/appbar/_fusionnew-definition.scss +6 -6
- package/styles/appbar/_highcontrast-definition.scss +6 -6
- package/styles/appbar/_highcontrast-light-definition.scss +6 -6
- package/styles/appbar/_layout.scss +76 -76
- package/styles/appbar/_material-dark-definition.scss +6 -6
- package/styles/appbar/_material-definition.scss +6 -6
- package/styles/appbar/_material3-definition.scss +6 -6
- package/styles/appbar/_tailwind-definition.scss +6 -6
- package/styles/appbar/_tailwind3-definition.scss +6 -6
- package/styles/appbar/_theme.scss +216 -216
- package/styles/appbar/material3-dark.scss +1 -1
- package/styles/appbar/material3.scss +1 -1
- package/styles/bds-lite.css +70 -5
- package/styles/bds.css +72 -7
- package/styles/bootstrap-dark-lite.css +120 -55
- package/styles/bootstrap-dark.css +124 -59
- package/styles/bootstrap-lite.css +72 -7
- package/styles/bootstrap.css +76 -11
- package/styles/bootstrap4-lite.css +153 -88
- package/styles/bootstrap4.css +156 -91
- package/styles/bootstrap5-dark-lite.css +288 -229
- package/styles/bootstrap5-dark.css +291 -232
- package/styles/bootstrap5-lite.css +150 -91
- package/styles/bootstrap5.3-lite.css +88 -27
- package/styles/bootstrap5.3.css +96 -29
- package/styles/bootstrap5.css +153 -94
- package/styles/breadcrumb/_all.scss +2 -2
- package/styles/breadcrumb/_bds-definition.scss +60 -60
- package/styles/breadcrumb/_bigger.scss +168 -166
- package/styles/breadcrumb/_bootstrap-dark-definition.scss +54 -54
- package/styles/breadcrumb/_bootstrap-definition.scss +54 -54
- package/styles/breadcrumb/_bootstrap4-definition.scss +56 -54
- package/styles/breadcrumb/_bootstrap5-definition.scss +65 -63
- package/styles/breadcrumb/_bootstrap5.3-definition.scss +61 -61
- package/styles/breadcrumb/_fabric-dark-definition.scss +59 -59
- package/styles/breadcrumb/_fabric-definition.scss +59 -59
- package/styles/breadcrumb/_fluent-definition.scss +63 -63
- package/styles/breadcrumb/_fluent2-definition.scss +61 -61
- package/styles/breadcrumb/_fusionnew-definition.scss +65 -59
- package/styles/breadcrumb/_highcontrast-definition.scss +61 -61
- package/styles/breadcrumb/_highcontrast-light-definition.scss +61 -61
- package/styles/breadcrumb/_layout.scss +465 -449
- package/styles/breadcrumb/_material-dark-definition.scss +50 -50
- package/styles/breadcrumb/_material-definition.scss +50 -50
- package/styles/breadcrumb/_material3-definition.scss +60 -60
- package/styles/breadcrumb/_tailwind-definition.scss +60 -60
- package/styles/breadcrumb/_tailwind3-definition.scss +61 -61
- package/styles/breadcrumb/_theme.scss +296 -296
- package/styles/breadcrumb/bds.css +15 -0
- package/styles/breadcrumb/bootstrap-dark.css +17 -2
- package/styles/breadcrumb/bootstrap.css +15 -0
- package/styles/breadcrumb/bootstrap4.css +19 -4
- package/styles/breadcrumb/bootstrap5-dark.css +27 -12
- package/styles/breadcrumb/bootstrap5.3.css +15 -0
- package/styles/breadcrumb/bootstrap5.css +18 -3
- package/styles/breadcrumb/fabric-dark.css +18 -3
- package/styles/breadcrumb/fabric.css +15 -0
- package/styles/breadcrumb/fluent-dark.css +15 -0
- package/styles/breadcrumb/fluent.css +15 -0
- package/styles/breadcrumb/fluent2.css +15 -0
- package/styles/breadcrumb/highcontrast-light.css +15 -0
- package/styles/breadcrumb/highcontrast.css +15 -0
- package/styles/breadcrumb/icons/_bds.scss +23 -23
- package/styles/breadcrumb/icons/_bootstrap-dark.scss +12 -12
- package/styles/breadcrumb/icons/_bootstrap.scss +12 -12
- package/styles/breadcrumb/icons/_bootstrap4.scss +12 -12
- package/styles/breadcrumb/icons/_bootstrap5.3.scss +23 -23
- package/styles/breadcrumb/icons/_bootstrap5.scss +23 -23
- package/styles/breadcrumb/icons/_fabric-dark.scss +12 -12
- package/styles/breadcrumb/icons/_fabric.scss +12 -12
- package/styles/breadcrumb/icons/_fluent.scss +23 -23
- package/styles/breadcrumb/icons/_fluent2.scss +23 -23
- package/styles/breadcrumb/icons/_fusionnew.scss +23 -23
- package/styles/breadcrumb/icons/_highcontrast-light.scss +12 -12
- package/styles/breadcrumb/icons/_highcontrast.scss +12 -12
- package/styles/breadcrumb/icons/_material-dark.scss +23 -23
- package/styles/breadcrumb/icons/_material.scss +23 -23
- package/styles/breadcrumb/icons/_material3.scss +12 -12
- package/styles/breadcrumb/icons/_tailwind-dark.scss +23 -23
- package/styles/breadcrumb/icons/_tailwind.scss +23 -23
- package/styles/breadcrumb/icons/_tailwind3.scss +23 -23
- package/styles/breadcrumb/material-dark.css +15 -0
- package/styles/breadcrumb/material.css +15 -0
- package/styles/breadcrumb/material3-dark.css +15 -0
- package/styles/breadcrumb/material3-dark.scss +1 -1
- package/styles/breadcrumb/material3.css +15 -0
- package/styles/breadcrumb/material3.scss +1 -1
- package/styles/breadcrumb/tailwind-dark.css +15 -0
- package/styles/breadcrumb/tailwind.css +15 -0
- package/styles/breadcrumb/tailwind3.css +15 -0
- package/styles/carousel/_all.scss +2 -2
- package/styles/carousel/_bds-definition.scss +20 -20
- package/styles/carousel/_bootstrap-dark-definition.scss +20 -20
- package/styles/carousel/_bootstrap-definition.scss +20 -20
- package/styles/carousel/_bootstrap4-definition.scss +20 -20
- package/styles/carousel/_bootstrap5-definition.scss +20 -20
- package/styles/carousel/_bootstrap5.3-definition.scss +20 -20
- package/styles/carousel/_fabric-dark-definition.scss +20 -20
- package/styles/carousel/_fabric-definition.scss +20 -20
- package/styles/carousel/_fluent-definition.scss +20 -20
- package/styles/carousel/_fluent2-definition.scss +23 -23
- package/styles/carousel/_fusionnew-definition.scss +20 -20
- package/styles/carousel/_highcontrast-definition.scss +20 -20
- package/styles/carousel/_highcontrast-light-definition.scss +20 -20
- package/styles/carousel/_layout.scss +257 -257
- package/styles/carousel/_material-dark-definition.scss +20 -20
- package/styles/carousel/_material-definition.scss +20 -20
- package/styles/carousel/_material3-definition.scss +21 -21
- package/styles/carousel/_tailwind-definition.scss +20 -20
- package/styles/carousel/_tailwind3-definition.scss +24 -24
- package/styles/carousel/_theme.scss +108 -108
- package/styles/carousel/icons/_bds.scss +30 -30
- package/styles/carousel/icons/_bootstrap-dark.scss +30 -30
- package/styles/carousel/icons/_bootstrap.scss +30 -30
- package/styles/carousel/icons/_bootstrap4.scss +30 -30
- package/styles/carousel/icons/_bootstrap5.3.scss +30 -30
- package/styles/carousel/icons/_bootstrap5.scss +30 -30
- package/styles/carousel/icons/_fabric-dark.scss +30 -30
- package/styles/carousel/icons/_fabric.scss +30 -30
- package/styles/carousel/icons/_fluent.scss +30 -30
- package/styles/carousel/icons/_fluent2.scss +30 -30
- package/styles/carousel/icons/_fusionnew.scss +30 -30
- package/styles/carousel/icons/_highcontrast-light.scss +30 -30
- package/styles/carousel/icons/_highcontrast.scss +30 -30
- package/styles/carousel/icons/_material-dark.scss +30 -30
- package/styles/carousel/icons/_material.scss +30 -30
- package/styles/carousel/icons/_material3.scss +30 -30
- package/styles/carousel/icons/_tailwind.scss +30 -30
- package/styles/carousel/icons/_tailwind3.scss +30 -30
- package/styles/carousel/material3-dark.scss +1 -1
- package/styles/carousel/material3.scss +1 -1
- package/styles/context-menu/_all.scss +2 -2
- package/styles/context-menu/_bds-definition.scss +67 -67
- package/styles/context-menu/_bigger.scss +111 -111
- package/styles/context-menu/_bootstrap-dark-definition.scss +50 -50
- package/styles/context-menu/_bootstrap-definition.scss +50 -50
- package/styles/context-menu/_bootstrap4-definition.scss +52 -50
- package/styles/context-menu/_bootstrap5-definition.scss +52 -52
- package/styles/context-menu/_bootstrap5.3-definition.scss +52 -52
- package/styles/context-menu/_fabric-dark-definition.scss +50 -50
- package/styles/context-menu/_fabric-definition.scss +50 -50
- package/styles/context-menu/_fluent-definition.scss +51 -51
- package/styles/context-menu/_fluent2-definition.scss +52 -52
- package/styles/context-menu/_fusionnew-definition.scss +52 -51
- package/styles/context-menu/_highcontrast-definition.scss +50 -50
- package/styles/context-menu/_highcontrast-light-definition.scss +50 -50
- package/styles/context-menu/_layout-mixin.scss +140 -140
- package/styles/context-menu/_layout.scss +179 -174
- package/styles/context-menu/_material-dark-definition.scss +50 -50
- package/styles/context-menu/_material-definition.scss +50 -50
- package/styles/context-menu/_material3-definition.scss +51 -51
- package/styles/context-menu/_tailwind-definition.scss +52 -52
- package/styles/context-menu/_tailwind3-definition.scss +55 -55
- package/styles/context-menu/_theme-mixin.scss +91 -91
- package/styles/context-menu/_theme.scss +77 -69
- package/styles/context-menu/bds.css +7 -1
- package/styles/context-menu/bootstrap-dark.css +7 -1
- package/styles/context-menu/bootstrap.css +7 -1
- package/styles/context-menu/bootstrap4.css +8 -2
- package/styles/context-menu/bootstrap5-dark.css +14 -8
- package/styles/context-menu/bootstrap5.3.css +7 -1
- package/styles/context-menu/bootstrap5.css +7 -1
- package/styles/context-menu/fabric-dark.css +7 -1
- package/styles/context-menu/fabric.css +7 -1
- package/styles/context-menu/fluent-dark.css +7 -1
- package/styles/context-menu/fluent.css +7 -1
- package/styles/context-menu/fluent2.css +7 -1
- package/styles/context-menu/highcontrast-light.css +7 -1
- package/styles/context-menu/highcontrast.css +7 -1
- package/styles/context-menu/icons/_bds.scss +31 -31
- package/styles/context-menu/icons/_bootstrap-dark.scss +31 -31
- package/styles/context-menu/icons/_bootstrap.scss +31 -31
- package/styles/context-menu/icons/_bootstrap4.scss +31 -31
- package/styles/context-menu/icons/_bootstrap5.3.scss +31 -31
- package/styles/context-menu/icons/_bootstrap5.scss +31 -31
- package/styles/context-menu/icons/_fabric-dark.scss +31 -31
- package/styles/context-menu/icons/_fabric.scss +31 -31
- package/styles/context-menu/icons/_fluent.scss +31 -31
- package/styles/context-menu/icons/_fluent2.scss +31 -31
- package/styles/context-menu/icons/_fusionnew.scss +31 -31
- package/styles/context-menu/icons/_highcontrast-light.scss +31 -31
- package/styles/context-menu/icons/_highcontrast.scss +31 -31
- package/styles/context-menu/icons/_material-dark.scss +31 -31
- package/styles/context-menu/icons/_material.scss +31 -31
- package/styles/context-menu/icons/_material3.scss +31 -31
- package/styles/context-menu/icons/_tailwind-dark.scss +31 -31
- package/styles/context-menu/icons/_tailwind.scss +31 -31
- package/styles/context-menu/icons/_tailwind3.scss +31 -31
- package/styles/context-menu/material-dark.css +8 -1
- package/styles/context-menu/material.css +7 -1
- package/styles/context-menu/material3-dark.css +8 -1
- package/styles/context-menu/material3-dark.scss +1 -1
- package/styles/context-menu/material3.css +8 -1
- package/styles/context-menu/material3.scss +1 -1
- package/styles/context-menu/tailwind-dark.css +7 -1
- package/styles/context-menu/tailwind.css +7 -1
- package/styles/context-menu/tailwind3.css +7 -1
- package/styles/fabric-dark-lite.css +76 -11
- package/styles/fabric-dark.css +78 -13
- package/styles/fabric-lite.css +108 -43
- package/styles/fabric.css +110 -45
- package/styles/fluent-dark-lite.css +88 -25
- package/styles/fluent-dark.css +91 -28
- package/styles/fluent-lite.css +88 -25
- package/styles/fluent.css +91 -28
- package/styles/fluent2-lite.css +91 -36
- package/styles/fluent2.css +93 -38
- package/styles/h-scroll/_all.scss +2 -2
- package/styles/h-scroll/_bds-definition.scss +83 -83
- package/styles/h-scroll/_bigger.scss +39 -39
- package/styles/h-scroll/_bootstrap-dark-definition.scss +57 -57
- package/styles/h-scroll/_bootstrap-definition.scss +56 -56
- package/styles/h-scroll/_bootstrap4-definition.scss +58 -56
- package/styles/h-scroll/_bootstrap5-definition.scss +83 -83
- package/styles/h-scroll/_bootstrap5.3-definition.scss +83 -83
- package/styles/h-scroll/_fabric-dark-definition.scss +58 -58
- package/styles/h-scroll/_fabric-definition.scss +55 -55
- package/styles/h-scroll/_fluent-definition.scss +83 -83
- package/styles/h-scroll/_fluent2-definition.scss +83 -83
- package/styles/h-scroll/_fusionnew-definition.scss +83 -83
- package/styles/h-scroll/_highcontrast-definition.scss +56 -56
- package/styles/h-scroll/_highcontrast-light-definition.scss +59 -59
- package/styles/h-scroll/_layout.scss +160 -160
- package/styles/h-scroll/_material-dark-definition.scss +85 -85
- package/styles/h-scroll/_material-definition.scss +82 -82
- package/styles/h-scroll/_material3-definition.scss +83 -83
- package/styles/h-scroll/_tailwind-definition.scss +83 -83
- package/styles/h-scroll/_tailwind3-definition.scss +83 -83
- package/styles/h-scroll/_theme.scss +146 -146
- package/styles/h-scroll/bds.css +1 -1
- package/styles/h-scroll/bootstrap-dark.css +1 -1
- package/styles/h-scroll/bootstrap.css +1 -1
- package/styles/h-scroll/bootstrap4.css +6 -6
- package/styles/h-scroll/bootstrap5-dark.css +7 -7
- package/styles/h-scroll/bootstrap5.3.css +1 -1
- package/styles/h-scroll/bootstrap5.css +1 -1
- package/styles/h-scroll/fabric-dark.css +1 -1
- package/styles/h-scroll/fabric.css +2 -2
- package/styles/h-scroll/fluent-dark.css +1 -1
- package/styles/h-scroll/fluent.css +1 -1
- package/styles/h-scroll/fluent2.css +1 -1
- package/styles/h-scroll/highcontrast-light.css +1 -1
- package/styles/h-scroll/highcontrast.css +1 -1
- package/styles/h-scroll/icons/_bds.scss +49 -49
- package/styles/h-scroll/icons/_bootstrap-dark.scss +49 -49
- package/styles/h-scroll/icons/_bootstrap.scss +49 -49
- package/styles/h-scroll/icons/_bootstrap4.scss +49 -49
- package/styles/h-scroll/icons/_bootstrap5.3.scss +49 -49
- package/styles/h-scroll/icons/_bootstrap5.scss +49 -49
- package/styles/h-scroll/icons/_fabric-dark.scss +49 -49
- package/styles/h-scroll/icons/_fabric.scss +49 -49
- package/styles/h-scroll/icons/_fluent.scss +49 -49
- package/styles/h-scroll/icons/_fluent2.scss +49 -49
- package/styles/h-scroll/icons/_fusionnew.scss +49 -49
- package/styles/h-scroll/icons/_highcontrast-light.scss +49 -49
- package/styles/h-scroll/icons/_highcontrast.scss +49 -49
- package/styles/h-scroll/icons/_material-dark.scss +49 -49
- package/styles/h-scroll/icons/_material.scss +49 -49
- package/styles/h-scroll/icons/_material3.scss +49 -49
- package/styles/h-scroll/icons/_tailwind.scss +49 -49
- package/styles/h-scroll/icons/_tailwind3.scss +49 -49
- package/styles/h-scroll/material-dark.css +1 -1
- package/styles/h-scroll/material.css +1 -1
- package/styles/h-scroll/material3-dark.css +1 -1
- package/styles/h-scroll/material3-dark.scss +1 -1
- package/styles/h-scroll/material3.css +1 -1
- package/styles/h-scroll/material3.scss +1 -1
- package/styles/h-scroll/tailwind-dark.css +1 -1
- package/styles/h-scroll/tailwind.css +1 -1
- package/styles/h-scroll/tailwind3.css +1 -1
- package/styles/highcontrast-light-lite.css +70 -5
- package/styles/highcontrast-light.css +72 -7
- package/styles/highcontrast-lite.css +73 -8
- package/styles/highcontrast.css +75 -10
- package/styles/material-dark-lite.css +75 -9
- package/styles/material-dark.css +77 -11
- package/styles/material-lite.css +81 -16
- package/styles/material.css +83 -18
- package/styles/material3-dark-lite.css +81 -15
- package/styles/material3-dark.css +91 -20
- package/styles/material3-dark.scss +1 -1
- package/styles/material3-lite.css +81 -15
- package/styles/material3.css +91 -20
- package/styles/material3.scss +1 -1
- package/styles/menu/_all.scss +2 -2
- package/styles/menu/_bds-definition.scss +65 -65
- package/styles/menu/_bigger.scss +381 -381
- package/styles/menu/_bootstrap-dark-definition.scss +61 -61
- package/styles/menu/_bootstrap-definition.scss +65 -65
- package/styles/menu/_bootstrap4-definition.scss +66 -64
- package/styles/menu/_bootstrap5-definition.scss +66 -66
- package/styles/menu/_bootstrap5.3-definition.scss +66 -66
- package/styles/menu/_fabric-dark-definition.scss +61 -61
- package/styles/menu/_fabric-definition.scss +64 -64
- package/styles/menu/_fluent-definition.scss +66 -66
- package/styles/menu/_fluent2-definition.scss +67 -67
- package/styles/menu/_fusionnew-definition.scss +66 -66
- package/styles/menu/_highcontrast-definition.scss +65 -65
- package/styles/menu/_highcontrast-light-definition.scss +61 -61
- package/styles/menu/_layout.scss +501 -501
- package/styles/menu/_material-dark-definition.scss +61 -61
- package/styles/menu/_material-definition.scss +64 -64
- package/styles/menu/_material3-definition.scss +66 -66
- package/styles/menu/_tailwind-definition.scss +65 -65
- package/styles/menu/_tailwind3-definition.scss +66 -66
- package/styles/menu/_theme.scss +428 -418
- package/styles/menu/bootstrap4.css +13 -13
- package/styles/menu/bootstrap5-dark.css +14 -14
- package/styles/menu/fluent2.css +12 -3
- package/styles/menu/icons/_bds.scss +104 -104
- package/styles/menu/icons/_bootstrap-dark.scss +105 -105
- package/styles/menu/icons/_bootstrap.scss +104 -104
- package/styles/menu/icons/_bootstrap4.scss +104 -104
- package/styles/menu/icons/_bootstrap5.3.scss +104 -104
- package/styles/menu/icons/_bootstrap5.scss +104 -104
- package/styles/menu/icons/_fabric-dark.scss +104 -104
- package/styles/menu/icons/_fabric.scss +104 -104
- package/styles/menu/icons/_fluent.scss +104 -104
- package/styles/menu/icons/_fluent2.scss +104 -104
- package/styles/menu/icons/_fusionnew.scss +104 -104
- package/styles/menu/icons/_highcontrast-light.scss +104 -104
- package/styles/menu/icons/_highcontrast.scss +104 -104
- package/styles/menu/icons/_material-dark.scss +104 -104
- package/styles/menu/icons/_material.scss +104 -104
- package/styles/menu/icons/_material3.scss +104 -104
- package/styles/menu/icons/_tailwind-dark.scss +104 -104
- package/styles/menu/icons/_tailwind.scss +104 -104
- package/styles/menu/icons/_tailwind3.scss +104 -104
- package/styles/menu/material3-dark.scss +1 -1
- package/styles/menu/material3.scss +1 -1
- package/styles/pager/_all.scss +2 -2
- package/styles/pager/_bds-definition.scss +152 -152
- package/styles/pager/_bigger.scss +364 -363
- package/styles/pager/_bootstrap-dark-definition.scss +152 -151
- package/styles/pager/_bootstrap-definition.scss +151 -151
- package/styles/pager/_bootstrap4-definition.scss +152 -151
- package/styles/pager/_bootstrap5-definition.scss +166 -166
- package/styles/pager/_bootstrap5.3-definition.scss +166 -166
- package/styles/pager/_fabric-dark-definition.scss +149 -149
- package/styles/pager/_fabric-definition.scss +149 -149
- package/styles/pager/_fluent-definition.scss +153 -153
- package/styles/pager/_fluent2-definition.scss +152 -152
- package/styles/pager/_fusionnew-definition.scss +166 -166
- package/styles/pager/_highcontrast-definition.scss +149 -149
- package/styles/pager/_highcontrast-light-definition.scss +149 -149
- package/styles/pager/_layout.scss +776 -768
- package/styles/pager/_material-dark-definition.scss +150 -150
- package/styles/pager/_material-definition.scss +150 -150
- package/styles/pager/_material3-definition.scss +166 -166
- package/styles/pager/_tailwind-definition.scss +152 -152
- package/styles/pager/_tailwind3-definition.scss +166 -166
- package/styles/pager/_theme.scss +189 -189
- package/styles/pager/bds.css +13 -3
- package/styles/pager/bootstrap-dark.css +17 -7
- package/styles/pager/bootstrap.css +13 -3
- package/styles/pager/bootstrap4.css +14 -4
- package/styles/pager/bootstrap5-dark.css +21 -17
- package/styles/pager/bootstrap5.3.css +7 -3
- package/styles/pager/bootstrap5.css +12 -8
- package/styles/pager/fabric-dark.css +13 -3
- package/styles/pager/fabric.css +15 -5
- package/styles/pager/fluent-dark.css +14 -4
- package/styles/pager/fluent.css +14 -4
- package/styles/pager/fluent2.css +13 -3
- package/styles/pager/highcontrast-light.css +13 -3
- package/styles/pager/highcontrast.css +13 -3
- package/styles/pager/icons/_bds.scss +50 -50
- package/styles/pager/icons/_bootstrap-dark.scss +50 -50
- package/styles/pager/icons/_bootstrap.scss +50 -50
- package/styles/pager/icons/_bootstrap4.scss +50 -50
- package/styles/pager/icons/_bootstrap5.3.scss +50 -50
- package/styles/pager/icons/_bootstrap5.scss +50 -50
- package/styles/pager/icons/_fabric-dark.scss +50 -50
- package/styles/pager/icons/_fabric.scss +50 -50
- package/styles/pager/icons/_fluent.scss +50 -50
- package/styles/pager/icons/_fluent2.scss +50 -50
- package/styles/pager/icons/_fusionnew.scss +50 -50
- package/styles/pager/icons/_highcontrast-light.scss +50 -50
- package/styles/pager/icons/_highcontrast.scss +46 -46
- package/styles/pager/icons/_material-dark.scss +50 -50
- package/styles/pager/icons/_material.scss +46 -46
- package/styles/pager/icons/_material3.scss +50 -50
- package/styles/pager/icons/_tailwind.scss +50 -50
- package/styles/pager/icons/_tailwind3.scss +50 -50
- package/styles/pager/material-dark.css +13 -3
- package/styles/pager/material.css +13 -3
- package/styles/pager/material3-dark.css +20 -5
- package/styles/pager/material3-dark.scss +1 -1
- package/styles/pager/material3.css +20 -5
- package/styles/pager/material3.scss +1 -1
- package/styles/pager/tailwind-dark.css +13 -3
- package/styles/pager/tailwind.css +13 -3
- package/styles/pager/tailwind3.css +14 -4
- package/styles/sidebar/_all.scss +3 -3
- package/styles/sidebar/_bds-definition.scss +53 -53
- package/styles/sidebar/_bootstrap-dark-definition.scss +4 -4
- package/styles/sidebar/_bootstrap-definition.scss +4 -4
- package/styles/sidebar/_bootstrap4-definition.scss +4 -4
- package/styles/sidebar/_bootstrap5-definition.scss +6 -6
- package/styles/sidebar/_bootstrap5.3-definition.scss +6 -6
- package/styles/sidebar/_fabric-dark-definition.scss +4 -4
- package/styles/sidebar/_fabric-definition.scss +4 -4
- package/styles/sidebar/_fluent-definition.scss +6 -6
- package/styles/sidebar/_fluent2-definition.scss +8 -8
- package/styles/sidebar/_fusionnew-definition.scss +6 -6
- package/styles/sidebar/_highcontrast-definition.scss +4 -4
- package/styles/sidebar/_highcontrast-light-definition.scss +4 -4
- package/styles/sidebar/_icons.scss +1 -1
- package/styles/sidebar/_layout.scss +1 -1
- package/styles/sidebar/_material-dark-definition.scss +4 -4
- package/styles/sidebar/_material-definition.scss +6 -6
- package/styles/sidebar/_material3-definition.scss +4 -4
- package/styles/sidebar/_tailwind-definition.scss +6 -6
- package/styles/sidebar/_tailwind3-definition.scss +6 -6
- package/styles/sidebar/_theme.scss +251 -251
- package/styles/sidebar/bootstrap5-dark.css +1 -1
- package/styles/sidebar/material3-dark.scss +1 -1
- package/styles/sidebar/material3.scss +1 -1
- package/styles/stepper/_bds-definition.scss +72 -72
- package/styles/stepper/_bigger.scss +53 -53
- package/styles/stepper/_bootstrap4-definition.scss +4 -2
- package/styles/stepper/_bootstrap5.3-definition.scss +72 -72
- package/styles/stepper/_fluent2-definition.scss +72 -72
- package/styles/stepper/_material-dark-definition.scss +4 -2
- package/styles/stepper/_material-definition.scss +7 -5
- package/styles/stepper/_tailwind3-definition.scss +72 -72
- package/styles/stepper/bootstrap-dark.css +2 -2
- package/styles/stepper/bootstrap4.css +2 -2
- package/styles/stepper/bootstrap5-dark.css +20 -20
- package/styles/stepper/bootstrap5.css +2 -2
- package/styles/stepper/fabric-dark.css +2 -2
- package/styles/stepper/fabric.css +2 -2
- package/styles/stepper/fluent-dark.css +1 -1
- package/styles/stepper/fluent.css +1 -1
- package/styles/stepper/icons/_bds.scss +5 -5
- package/styles/stepper/icons/_bootstrap5.3.scss +5 -5
- package/styles/stepper/icons/_fluent2.scss +5 -5
- package/styles/stepper/icons/_tailwind3.scss +5 -5
- package/styles/stepper/material-dark.css +2 -2
- package/styles/stepper/material.css +8 -8
- package/styles/stepper/material3-dark.scss +1 -1
- package/styles/stepper/material3.scss +1 -1
- package/styles/tab/_all.scss +2 -2
- package/styles/tab/_bds-definition.scss +661 -661
- package/styles/tab/_bigger.scss +1276 -1276
- package/styles/tab/_bootstrap-dark-definition.scss +630 -628
- package/styles/tab/_bootstrap-definition.scss +629 -629
- package/styles/tab/_bootstrap4-definition.scss +637 -635
- package/styles/tab/_bootstrap5-definition.scss +635 -633
- package/styles/tab/_bootstrap5.3-definition.scss +636 -634
- package/styles/tab/_fabric-dark-definition.scss +641 -641
- package/styles/tab/_fabric-definition.scss +643 -643
- package/styles/tab/_fluent-definition.scss +637 -635
- package/styles/tab/_fluent2-definition.scss +664 -664
- package/styles/tab/_fusionnew-definition.scss +632 -632
- package/styles/tab/_highcontrast-definition.scss +667 -667
- package/styles/tab/_highcontrast-light-definition.scss +666 -666
- package/styles/tab/_icons.scss +34 -34
- package/styles/tab/_layout.scss +2191 -2187
- package/styles/tab/_material-dark-definition.scss +646 -646
- package/styles/tab/_material-definition.scss +645 -645
- package/styles/tab/_material3-definition.scss +634 -634
- package/styles/tab/_tailwind-definition.scss +648 -648
- package/styles/tab/_tailwind3-definition.scss +634 -634
- package/styles/tab/_theme.scss +1580 -1580
- package/styles/tab/bds.css +5 -0
- package/styles/tab/bootstrap-dark.css +35 -30
- package/styles/tab/bootstrap.css +7 -2
- package/styles/tab/bootstrap4.css +38 -33
- package/styles/tab/bootstrap5-dark.css +60 -55
- package/styles/tab/bootstrap5.3.css +18 -13
- package/styles/tab/bootstrap5.css +40 -35
- package/styles/tab/fabric-dark.css +5 -0
- package/styles/tab/fabric.css +10 -5
- package/styles/tab/fluent-dark.css +19 -14
- package/styles/tab/fluent.css +19 -14
- package/styles/tab/fluent2.css +7 -2
- package/styles/tab/highcontrast-light.css +5 -0
- package/styles/tab/highcontrast.css +6 -1
- package/styles/tab/icons/_bds.scss +90 -90
- package/styles/tab/icons/_bootstrap-dark.scss +98 -98
- package/styles/tab/icons/_bootstrap.scss +98 -98
- package/styles/tab/icons/_bootstrap4.scss +101 -101
- package/styles/tab/icons/_bootstrap5.3.scss +90 -90
- package/styles/tab/icons/_bootstrap5.scss +90 -90
- package/styles/tab/icons/_fabric-dark.scss +98 -98
- package/styles/tab/icons/_fabric.scss +98 -98
- package/styles/tab/icons/_fluent.scss +98 -98
- package/styles/tab/icons/_fluent2.scss +98 -98
- package/styles/tab/icons/_fusionnew.scss +90 -90
- package/styles/tab/icons/_highcontrast-light.scss +90 -90
- package/styles/tab/icons/_highcontrast.scss +101 -101
- package/styles/tab/icons/_material-dark.scss +90 -90
- package/styles/tab/icons/_material.scss +90 -90
- package/styles/tab/icons/_material3.scss +90 -90
- package/styles/tab/icons/_tailwind.scss +90 -90
- package/styles/tab/icons/_tailwind3.scss +90 -90
- package/styles/tab/material-dark.css +5 -0
- package/styles/tab/material.css +6 -1
- package/styles/tab/material3-dark.css +15 -10
- package/styles/tab/material3-dark.scss +1 -1
- package/styles/tab/material3.css +15 -10
- package/styles/tab/material3.scss +1 -1
- package/styles/tab/tailwind-dark.css +13 -8
- package/styles/tab/tailwind.css +13 -8
- package/styles/tab/tailwind3.css +32 -26
- package/styles/tailwind-dark-lite.css +80 -15
- package/styles/tailwind-dark.css +84 -19
- package/styles/tailwind-lite.css +78 -13
- package/styles/tailwind.css +82 -17
- package/styles/tailwind3-lite.css +105 -58
- package/styles/tailwind3.css +109 -61
- package/styles/toolbar/_all.scss +2 -2
- package/styles/toolbar/_bds-definition.scss +197 -197
- package/styles/toolbar/_bigger.scss +323 -323
- package/styles/toolbar/_bootstrap-dark-definition.scss +193 -193
- package/styles/toolbar/_bootstrap-definition.scss +203 -203
- package/styles/toolbar/_bootstrap4-definition.scss +200 -198
- package/styles/toolbar/_bootstrap5-definition.scss +198 -198
- package/styles/toolbar/_bootstrap5.3-definition.scss +198 -198
- package/styles/toolbar/_fabric-dark-definition.scss +207 -207
- package/styles/toolbar/_fabric-definition.scss +195 -195
- package/styles/toolbar/_fluent-definition.scss +197 -197
- package/styles/toolbar/_fluent2-definition.scss +198 -198
- package/styles/toolbar/_fusionnew-definition.scss +198 -198
- package/styles/toolbar/_highcontrast-definition.scss +204 -204
- package/styles/toolbar/_highcontrast-light-definition.scss +218 -218
- package/styles/toolbar/_layout.scss +781 -748
- package/styles/toolbar/_material-dark-definition.scss +233 -231
- package/styles/toolbar/_material-definition.scss +221 -219
- package/styles/toolbar/_material3-definition.scss +199 -199
- package/styles/toolbar/_tailwind-definition.scss +197 -197
- package/styles/toolbar/_tailwind3-definition.scss +199 -199
- package/styles/toolbar/_theme.scss +410 -436
- package/styles/toolbar/bds.css +23 -2
- package/styles/toolbar/bootstrap-dark.css +25 -4
- package/styles/toolbar/bootstrap.css +25 -4
- package/styles/toolbar/bootstrap4.css +35 -14
- package/styles/toolbar/bootstrap5-dark.css +70 -49
- package/styles/toolbar/bootstrap5.3.css +33 -4
- package/styles/toolbar/bootstrap5.css +46 -25
- package/styles/toolbar/fabric-dark.css +23 -2
- package/styles/toolbar/fabric.css +32 -11
- package/styles/toolbar/fluent-dark.css +23 -2
- package/styles/toolbar/fluent.css +23 -2
- package/styles/toolbar/fluent2.css +30 -28
- package/styles/toolbar/highcontrast-light.css +23 -2
- package/styles/toolbar/highcontrast.css +25 -4
- package/styles/toolbar/icons/_bds.scss +14 -14
- package/styles/toolbar/icons/_bootstrap-dark.scss +14 -14
- package/styles/toolbar/icons/_bootstrap.scss +14 -14
- package/styles/toolbar/icons/_bootstrap4.scss +14 -14
- package/styles/toolbar/icons/_bootstrap5.3.scss +14 -14
- package/styles/toolbar/icons/_bootstrap5.scss +14 -14
- package/styles/toolbar/icons/_fabric-dark.scss +14 -14
- package/styles/toolbar/icons/_fabric.scss +14 -14
- package/styles/toolbar/icons/_fluent.scss +14 -14
- package/styles/toolbar/icons/_fluent2.scss +14 -14
- package/styles/toolbar/icons/_fusionnew.scss +14 -14
- package/styles/toolbar/icons/_highcontrast-light.scss +14 -14
- package/styles/toolbar/icons/_highcontrast.scss +14 -14
- package/styles/toolbar/icons/_material-dark.scss +14 -14
- package/styles/toolbar/icons/_material.scss +14 -14
- package/styles/toolbar/icons/_material3.scss +14 -14
- package/styles/toolbar/icons/_tailwind.scss +14 -14
- package/styles/toolbar/icons/_tailwind3.scss +14 -14
- package/styles/toolbar/material-dark.css +25 -4
- package/styles/toolbar/material.css +25 -4
- package/styles/toolbar/material3-dark.css +23 -2
- package/styles/toolbar/material3-dark.scss +1 -1
- package/styles/toolbar/material3.css +23 -2
- package/styles/toolbar/material3.scss +1 -1
- package/styles/toolbar/tailwind-dark.css +23 -2
- package/styles/toolbar/tailwind.css +23 -2
- package/styles/toolbar/tailwind3.css +30 -28
- package/styles/treeview/_all.scss +2 -2
- package/styles/treeview/_bds-definition.scss +131 -131
- package/styles/treeview/_bigger.scss +410 -406
- package/styles/treeview/_bootstrap-dark-definition.scss +118 -118
- package/styles/treeview/_bootstrap-definition.scss +113 -113
- package/styles/treeview/_bootstrap4-definition.scss +143 -141
- package/styles/treeview/_bootstrap5-definition.scss +122 -120
- package/styles/treeview/_bootstrap5.3-definition.scss +119 -119
- package/styles/treeview/_fabric-dark-definition.scss +116 -116
- package/styles/treeview/_fabric-definition.scss +112 -112
- package/styles/treeview/_fluent-definition.scss +122 -120
- package/styles/treeview/_fluent2-definition.scss +128 -128
- package/styles/treeview/_fusionnew-definition.scss +120 -120
- package/styles/treeview/_highcontrast-definition.scss +118 -118
- package/styles/treeview/_highcontrast-light-definition.scss +123 -123
- package/styles/treeview/_layout.scss +769 -761
- package/styles/treeview/_material-dark-definition.scss +114 -114
- package/styles/treeview/_material-definition.scss +112 -112
- package/styles/treeview/_material3-definition.scss +110 -110
- package/styles/treeview/_tailwind-definition.scss +126 -124
- package/styles/treeview/_tailwind3-definition.scss +126 -126
- package/styles/treeview/_theme.scss +352 -350
- package/styles/treeview/bds.css +8 -0
- package/styles/treeview/bootstrap-dark.css +8 -0
- package/styles/treeview/bootstrap.css +8 -0
- package/styles/treeview/bootstrap4.css +17 -9
- package/styles/treeview/bootstrap5-dark.css +20 -12
- package/styles/treeview/bootstrap5.3.css +15 -7
- package/styles/treeview/bootstrap5.css +11 -3
- package/styles/treeview/fabric-dark.css +8 -0
- package/styles/treeview/fabric.css +15 -7
- package/styles/treeview/fluent-dark.css +11 -5
- package/styles/treeview/fluent.css +11 -5
- package/styles/treeview/fluent2.css +8 -0
- package/styles/treeview/highcontrast-light.css +8 -0
- package/styles/treeview/highcontrast.css +8 -0
- package/styles/treeview/icons/_bds.scss +44 -44
- package/styles/treeview/icons/_bootstrap-dark.scss +40 -40
- package/styles/treeview/icons/_bootstrap.scss +40 -40
- package/styles/treeview/icons/_bootstrap4.scss +40 -40
- package/styles/treeview/icons/_bootstrap5.3.scss +44 -44
- package/styles/treeview/icons/_bootstrap5.scss +44 -44
- package/styles/treeview/icons/_fabric-dark.scss +44 -44
- package/styles/treeview/icons/_fabric.scss +44 -44
- package/styles/treeview/icons/_fluent.scss +44 -44
- package/styles/treeview/icons/_fluent2.scss +44 -44
- package/styles/treeview/icons/_fusionnew.scss +44 -44
- package/styles/treeview/icons/_highcontrast-light.scss +44 -44
- package/styles/treeview/icons/_highcontrast.scss +44 -44
- package/styles/treeview/icons/_material-dark.scss +44 -44
- package/styles/treeview/icons/_material.scss +44 -44
- package/styles/treeview/icons/_material3.scss +44 -44
- package/styles/treeview/icons/_tailwind-dark.scss +44 -44
- package/styles/treeview/icons/_tailwind.scss +44 -44
- package/styles/treeview/icons/_tailwind3.scss +44 -44
- package/styles/treeview/material-dark.css +8 -0
- package/styles/treeview/material.css +8 -0
- package/styles/treeview/material3-dark.css +9 -1
- package/styles/treeview/material3-dark.scss +1 -1
- package/styles/treeview/material3.css +9 -1
- package/styles/treeview/material3.scss +1 -1
- package/styles/treeview/tailwind-dark.css +10 -2
- package/styles/treeview/tailwind.css +10 -2
- package/styles/treeview/tailwind3.css +10 -1
- package/styles/v-scroll/_all.scss +2 -2
- package/styles/v-scroll/_bds-definition.scss +49 -49
- package/styles/v-scroll/_bigger.scss +28 -28
- package/styles/v-scroll/_bootstrap-dark-definition.scss +51 -51
- package/styles/v-scroll/_bootstrap-definition.scss +49 -49
- package/styles/v-scroll/_bootstrap4-definition.scss +49 -49
- package/styles/v-scroll/_bootstrap5-definition.scss +49 -49
- package/styles/v-scroll/_bootstrap5.3-definition.scss +49 -49
- package/styles/v-scroll/_fabric-dark-definition.scss +52 -52
- package/styles/v-scroll/_fabric-definition.scss +50 -50
- package/styles/v-scroll/_fluent-definition.scss +49 -49
- package/styles/v-scroll/_fluent2-definition.scss +49 -49
- package/styles/v-scroll/_fusionnew-definition.scss +49 -49
- package/styles/v-scroll/_highcontrast-definition.scss +50 -50
- package/styles/v-scroll/_highcontrast-light-definition.scss +52 -52
- package/styles/v-scroll/_layout.scss +135 -135
- package/styles/v-scroll/_material-dark-definition.scss +79 -79
- package/styles/v-scroll/_material-definition.scss +77 -77
- package/styles/v-scroll/_material3-definition.scss +49 -49
- package/styles/v-scroll/_tailwind-definition.scss +49 -49
- package/styles/v-scroll/_tailwind3-definition.scss +49 -49
- package/styles/v-scroll/_theme.scss +114 -114
- package/styles/v-scroll/fabric-dark.css +1 -1
- package/styles/v-scroll/fabric.css +1 -1
- package/styles/v-scroll/icons/_bds.scss +27 -27
- package/styles/v-scroll/icons/_bootstrap-dark.scss +27 -27
- package/styles/v-scroll/icons/_bootstrap.scss +27 -27
- package/styles/v-scroll/icons/_bootstrap4.scss +27 -27
- package/styles/v-scroll/icons/_bootstrap5.3.scss +27 -27
- package/styles/v-scroll/icons/_bootstrap5.scss +27 -27
- package/styles/v-scroll/icons/_fabric-dark.scss +27 -27
- package/styles/v-scroll/icons/_fabric.scss +27 -27
- package/styles/v-scroll/icons/_fluent.scss +27 -27
- package/styles/v-scroll/icons/_fluent2.scss +27 -27
- package/styles/v-scroll/icons/_fusionnew.scss +27 -27
- package/styles/v-scroll/icons/_highcontrast-light.scss +27 -27
- package/styles/v-scroll/icons/_highcontrast.scss +27 -27
- package/styles/v-scroll/icons/_material-dark.scss +27 -27
- package/styles/v-scroll/icons/_material.scss +27 -27
- package/styles/v-scroll/icons/_material3.scss +27 -27
- package/styles/v-scroll/icons/_tailwind.scss +27 -27
- package/styles/v-scroll/icons/_tailwind3.scss +27 -27
- package/styles/v-scroll/material3-dark.scss +1 -1
- package/styles/v-scroll/material3.scss +1 -1
- package/tslint.json +111 -111
- package/helpers/e2e/accordionHelper.d.ts +0 -56
- package/helpers/e2e/accordionHelper.js +0 -71
- package/helpers/e2e/contextmenuHelper.d.ts +0 -37
- package/helpers/e2e/contextmenuHelper.js +0 -53
- package/helpers/e2e/index.d.ts +0 -7
- package/helpers/e2e/index.js +0 -14
- package/helpers/e2e/menuHelper.d.ts +0 -37
- package/helpers/e2e/menuHelper.js +0 -53
- package/helpers/e2e/sidebarHelper.d.ts +0 -94
- package/helpers/e2e/sidebarHelper.js +0 -110
- package/helpers/e2e/tabHelper.d.ts +0 -60
- package/helpers/e2e/tabHelper.js +0 -74
- package/helpers/e2e/toolbarHelper.d.ts +0 -60
- package/helpers/e2e/toolbarHelper.js +0 -74
- package/helpers/e2e/treeview.d.ts +0 -50
- package/helpers/e2e/treeview.js +0 -80
|
@@ -0,0 +1,1353 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
21
|
+
import { Component, EventHandler, Collection, Property, Event, formatUnit, NotifyPropertyChanges, Browser } from '@syncfusion/ej2-base';
|
|
22
|
+
import { ChildProperty, addClass, removeClass, setStyleAttribute, attributes, getUniqueID, compile, getInstance, L10n } from '@syncfusion/ej2-base';
|
|
23
|
+
import { append, closest, isNullOrUndefined, remove, classList, Touch, KeyboardEvents } from '@syncfusion/ej2-base';
|
|
24
|
+
import { Button } from '@syncfusion/ej2-buttons';
|
|
25
|
+
// Constant variables
|
|
26
|
+
var CLS_CAROUSEL = 'e-carousel';
|
|
27
|
+
var CLS_ACTIVE = 'e-active';
|
|
28
|
+
var CLS_RTL = 'e-rtl';
|
|
29
|
+
var CLS_PARTIAL = 'e-partial';
|
|
30
|
+
var CLS_SWIPE = 'e-swipe';
|
|
31
|
+
var CLS_SLIDE_CONTAINER = 'e-carousel-slide-container';
|
|
32
|
+
var CLS_ITEMS = 'e-carousel-items';
|
|
33
|
+
var CLS_CLONED = 'e-cloned';
|
|
34
|
+
var CLS_ITEM = 'e-carousel-item';
|
|
35
|
+
var CLS_PREVIOUS = 'e-previous';
|
|
36
|
+
var CLS_NEXT = 'e-next';
|
|
37
|
+
var CLS_PREV_ICON = 'e-previous-icon';
|
|
38
|
+
var CLS_NEXT_ICON = 'e-next-icon';
|
|
39
|
+
var CLS_NAVIGATORS = 'e-carousel-navigators';
|
|
40
|
+
var CLS_INDICATORS = 'e-carousel-indicators';
|
|
41
|
+
var CLS_INDICATOR_BARS = 'e-indicator-bars';
|
|
42
|
+
var CLS_INDICATOR_BAR = 'e-indicator-bar';
|
|
43
|
+
var CLS_INDICATOR = 'e-indicator';
|
|
44
|
+
var CLS_ICON = 'e-icons';
|
|
45
|
+
var CLS_PLAY_PAUSE = 'e-play-pause';
|
|
46
|
+
var CLS_PLAY_ICON = 'e-play-icon';
|
|
47
|
+
var CLS_PAUSE_ICON = 'e-pause-icon';
|
|
48
|
+
var CLS_PREV_BUTTON = 'e-previous-button';
|
|
49
|
+
var CLS_NEXT_BUTTON = 'e-next-button';
|
|
50
|
+
var CLS_PLAY_BUTTON = 'e-play-button';
|
|
51
|
+
var CLS_FLAT = 'e-flat';
|
|
52
|
+
var CLS_ROUND = 'e-round';
|
|
53
|
+
var CLS_HOVER_ARROWS = 'e-hover-arrows';
|
|
54
|
+
var CLS_HOVER = 'e-carousel-hover';
|
|
55
|
+
var CLS_TEMPLATE = 'e-template';
|
|
56
|
+
var CLS_SLIDE_ANIMATION = 'e-carousel-slide-animation';
|
|
57
|
+
var CLS_FADE_ANIMATION = 'e-carousel-fade-animation';
|
|
58
|
+
var CLS_CUSTOM_ANIMATION = 'e-carousel-custom-animation';
|
|
59
|
+
var CLS_ANIMATION_NONE = 'e-carousel-animation-none';
|
|
60
|
+
var CLS_PREV_SLIDE = 'e-prev';
|
|
61
|
+
var CLS_NEXT_SLIDE = 'e-next';
|
|
62
|
+
var CLS_TRANSITION_START = 'e-transition-start';
|
|
63
|
+
var CLS_TRANSITION_END = 'e-transition-end';
|
|
64
|
+
/**
|
|
65
|
+
* Specifies the action (touch & mouse) which enables the slide swiping action in carousel.
|
|
66
|
+
* * Touch - Enables or disables the swiping action in touch interaction.
|
|
67
|
+
* * Mouse - Enables or disables the swiping action in mouse interaction.
|
|
68
|
+
*
|
|
69
|
+
* @aspNumberEnum
|
|
70
|
+
*/
|
|
71
|
+
export var CarouselSwipeMode;
|
|
72
|
+
(function (CarouselSwipeMode) {
|
|
73
|
+
/** Enables or disables the swiping action in touch interaction. */
|
|
74
|
+
CarouselSwipeMode[CarouselSwipeMode["Touch"] = 1] = "Touch";
|
|
75
|
+
/** Enables or disables the swiping action in mouse interaction. */
|
|
76
|
+
CarouselSwipeMode[CarouselSwipeMode["Mouse"] = 2] = "Mouse";
|
|
77
|
+
})(CarouselSwipeMode || (CarouselSwipeMode = {}));
|
|
78
|
+
/** Specifies the carousel individual item. */
|
|
79
|
+
var CarouselItem = /** @class */ (function (_super) {
|
|
80
|
+
__extends(CarouselItem, _super);
|
|
81
|
+
function CarouselItem() {
|
|
82
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
83
|
+
}
|
|
84
|
+
__decorate([
|
|
85
|
+
Property()
|
|
86
|
+
], CarouselItem.prototype, "cssClass", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
Property()
|
|
89
|
+
], CarouselItem.prototype, "interval", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
Property()
|
|
92
|
+
], CarouselItem.prototype, "template", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
Property()
|
|
95
|
+
], CarouselItem.prototype, "htmlAttributes", void 0);
|
|
96
|
+
return CarouselItem;
|
|
97
|
+
}(ChildProperty));
|
|
98
|
+
export { CarouselItem };
|
|
99
|
+
var Carousel = /** @class */ (function (_super) {
|
|
100
|
+
__extends(Carousel, _super);
|
|
101
|
+
/**
|
|
102
|
+
* Constructor for creating the Carousel widget
|
|
103
|
+
*
|
|
104
|
+
* @param {CarouselModel} options Accepts the carousel model properties to initiate the rendering
|
|
105
|
+
* @param {string | HTMLElement} element Accepts the DOM element reference
|
|
106
|
+
*/
|
|
107
|
+
function Carousel(options, element) {
|
|
108
|
+
var _this = _super.call(this, options, element) || this;
|
|
109
|
+
_this.isSwipe = false;
|
|
110
|
+
return _this;
|
|
111
|
+
}
|
|
112
|
+
Carousel.prototype.getModuleName = function () {
|
|
113
|
+
return CLS_CAROUSEL.replace('e-', '');
|
|
114
|
+
};
|
|
115
|
+
Carousel.prototype.getPersistData = function () {
|
|
116
|
+
return this.addOnPersist(['selectedIndex']);
|
|
117
|
+
};
|
|
118
|
+
Carousel.prototype.preRender = function () {
|
|
119
|
+
this.keyConfigs = {
|
|
120
|
+
home: 'home',
|
|
121
|
+
end: 'end',
|
|
122
|
+
space: 'space',
|
|
123
|
+
moveLeft: 'leftarrow',
|
|
124
|
+
moveRight: 'rightarrow',
|
|
125
|
+
moveUp: 'uparrow',
|
|
126
|
+
moveDown: 'downarrow'
|
|
127
|
+
};
|
|
128
|
+
var defaultLocale = {
|
|
129
|
+
nextSlide: 'Next slide',
|
|
130
|
+
of: 'of',
|
|
131
|
+
pauseSlideTransition: 'Pause slide transition',
|
|
132
|
+
playSlideTransition: 'Play slide transition',
|
|
133
|
+
previousSlide: 'Previous slide',
|
|
134
|
+
slide: 'Slide',
|
|
135
|
+
slideShow: 'Slide show'
|
|
136
|
+
};
|
|
137
|
+
this.localeObj = new L10n(this.getModuleName(), defaultLocale, this.locale);
|
|
138
|
+
};
|
|
139
|
+
Carousel.prototype.render = function () {
|
|
140
|
+
this.initialize();
|
|
141
|
+
this.renderSlides();
|
|
142
|
+
this.renderNavigators();
|
|
143
|
+
this.renderPlayButton();
|
|
144
|
+
this.renderIndicators();
|
|
145
|
+
this.applyAnimation();
|
|
146
|
+
this.wireEvents();
|
|
147
|
+
};
|
|
148
|
+
Carousel.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
149
|
+
var target;
|
|
150
|
+
var rtlElement;
|
|
151
|
+
for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
|
|
152
|
+
var prop = _a[_i];
|
|
153
|
+
switch (prop) {
|
|
154
|
+
case 'animationEffect':
|
|
155
|
+
this.applyAnimation();
|
|
156
|
+
break;
|
|
157
|
+
case 'cssClass':
|
|
158
|
+
classList(this.element, [newProp.cssClass], [oldProp.cssClass]);
|
|
159
|
+
break;
|
|
160
|
+
case 'selectedIndex':
|
|
161
|
+
this.setActiveSlide(this.selectedIndex, oldProp.selectedIndex > this.selectedIndex ? 'Previous' : 'Next');
|
|
162
|
+
this.autoSlide();
|
|
163
|
+
break;
|
|
164
|
+
case 'htmlAttributes':
|
|
165
|
+
if (!isNullOrUndefined(this.htmlAttributes)) {
|
|
166
|
+
this.setHtmlAttributes(this.htmlAttributes, this.element);
|
|
167
|
+
}
|
|
168
|
+
break;
|
|
169
|
+
case 'enableTouchSwipe':
|
|
170
|
+
if (!this.enableTouchSwipe && this.touchModule) {
|
|
171
|
+
this.touchModule.destroy();
|
|
172
|
+
}
|
|
173
|
+
if (this.element.querySelector("." + CLS_ITEMS)) {
|
|
174
|
+
this.renderTouchActions();
|
|
175
|
+
}
|
|
176
|
+
break;
|
|
177
|
+
case 'loop':
|
|
178
|
+
if (this.loop && isNullOrUndefined(this.autoSlideInterval)) {
|
|
179
|
+
this.applySlideInterval();
|
|
180
|
+
}
|
|
181
|
+
this.handleNavigatorsActions(this.selectedIndex);
|
|
182
|
+
if (this.partialVisible || !(this.swipeMode === (~CarouselSwipeMode.Touch & ~CarouselSwipeMode.Mouse))) {
|
|
183
|
+
this.reRenderSlides();
|
|
184
|
+
}
|
|
185
|
+
break;
|
|
186
|
+
case 'allowKeyboardInteraction':
|
|
187
|
+
if (this.keyModule) {
|
|
188
|
+
this.keyModule.destroy();
|
|
189
|
+
this.keyModule = null;
|
|
190
|
+
}
|
|
191
|
+
if (newProp.allowKeyboardInteraction) {
|
|
192
|
+
this.renderKeyboardActions();
|
|
193
|
+
}
|
|
194
|
+
break;
|
|
195
|
+
case 'enableRtl':
|
|
196
|
+
rtlElement = [].slice.call(this.element.querySelectorAll("." + CLS_PREV_BUTTON + ",\n ." + CLS_NEXT_BUTTON + ", ." + CLS_PLAY_BUTTON));
|
|
197
|
+
rtlElement.push(this.element);
|
|
198
|
+
if (this.enableRtl) {
|
|
199
|
+
addClass(rtlElement, CLS_RTL);
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
removeClass(rtlElement, CLS_RTL);
|
|
203
|
+
}
|
|
204
|
+
if (this.partialVisible || !(this.swipeMode === (~CarouselSwipeMode.Touch & ~CarouselSwipeMode.Mouse))) {
|
|
205
|
+
var cloneCount = this.loop ? this.getNumOfItems() : 0;
|
|
206
|
+
var slideWidth = this.itemsContainer.firstElementChild.clientWidth;
|
|
207
|
+
this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + cloneCount);
|
|
208
|
+
}
|
|
209
|
+
break;
|
|
210
|
+
case 'buttonsVisibility':
|
|
211
|
+
target = this.element.querySelector("." + CLS_NAVIGATORS);
|
|
212
|
+
if (target) {
|
|
213
|
+
switch (this.buttonsVisibility) {
|
|
214
|
+
case 'Hidden':
|
|
215
|
+
this.resetTemplates(['previousButtonTemplate', 'nextButtonTemplate']);
|
|
216
|
+
remove(target);
|
|
217
|
+
break;
|
|
218
|
+
case 'VisibleOnHover':
|
|
219
|
+
addClass([].slice.call(target.childNodes), CLS_HOVER_ARROWS);
|
|
220
|
+
break;
|
|
221
|
+
case 'Visible':
|
|
222
|
+
removeClass([].slice.call(target.childNodes), CLS_HOVER_ARROWS);
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
this.renderNavigators();
|
|
228
|
+
this.renderPlayButton();
|
|
229
|
+
}
|
|
230
|
+
break;
|
|
231
|
+
case 'width':
|
|
232
|
+
setStyleAttribute(this.element, { 'width': formatUnit(this.width) });
|
|
233
|
+
break;
|
|
234
|
+
case 'height':
|
|
235
|
+
setStyleAttribute(this.element, { 'height': formatUnit(this.height) });
|
|
236
|
+
break;
|
|
237
|
+
case 'autoPlay':
|
|
238
|
+
if (this.showPlayButton && isNullOrUndefined(this.playButtonTemplate)) {
|
|
239
|
+
this.playButtonClickHandler(null, true);
|
|
240
|
+
}
|
|
241
|
+
this.autoSlide();
|
|
242
|
+
break;
|
|
243
|
+
case 'interval':
|
|
244
|
+
this.autoSlide();
|
|
245
|
+
break;
|
|
246
|
+
case 'showIndicators':
|
|
247
|
+
case 'indicatorsType':
|
|
248
|
+
target = this.element.querySelector("." + CLS_INDICATORS);
|
|
249
|
+
if (target) {
|
|
250
|
+
this.resetTemplates(['indicatorsTemplate']);
|
|
251
|
+
remove(target);
|
|
252
|
+
}
|
|
253
|
+
this.renderIndicators();
|
|
254
|
+
break;
|
|
255
|
+
case 'showPlayButton':
|
|
256
|
+
target = this.element.querySelector("." + CLS_PLAY_PAUSE);
|
|
257
|
+
if (!this.showPlayButton && target) {
|
|
258
|
+
remove(target);
|
|
259
|
+
this.resetTemplates(['playButtonTemplate']);
|
|
260
|
+
}
|
|
261
|
+
this.renderPlayButton();
|
|
262
|
+
break;
|
|
263
|
+
case 'items':
|
|
264
|
+
case 'dataSource': {
|
|
265
|
+
var selectedData = prop === 'dataSource' ? this.dataSource : this.items;
|
|
266
|
+
if (!isNullOrUndefined(selectedData) && selectedData.length > 0 && this.selectedIndex >= selectedData.length) {
|
|
267
|
+
this.setActiveSlide(selectedData.length - 1, 'Previous');
|
|
268
|
+
this.autoSlide();
|
|
269
|
+
}
|
|
270
|
+
this.reRenderSlides();
|
|
271
|
+
this.reRenderIndicators();
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
case 'partialVisible':
|
|
275
|
+
if (this.partialVisible) {
|
|
276
|
+
addClass([this.element], CLS_PARTIAL);
|
|
277
|
+
}
|
|
278
|
+
else {
|
|
279
|
+
removeClass([this.element], CLS_PARTIAL);
|
|
280
|
+
}
|
|
281
|
+
this.reRenderSlides();
|
|
282
|
+
break;
|
|
283
|
+
case 'swipeMode':
|
|
284
|
+
EventHandler.remove(this.element, 'mousedown touchstart', this.swipeStart);
|
|
285
|
+
EventHandler.remove(this.element, 'mousemove touchmove', this.swiping);
|
|
286
|
+
EventHandler.remove(this.element, 'mouseup touchend', this.swipStop);
|
|
287
|
+
this.swipeModehandlers();
|
|
288
|
+
this.reRenderSlides();
|
|
289
|
+
break;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
Carousel.prototype.reRenderSlides = function () {
|
|
294
|
+
var target = this.element.querySelector("." + CLS_ITEMS);
|
|
295
|
+
if (target) {
|
|
296
|
+
this.resetTemplates(['itemTemplate']);
|
|
297
|
+
remove(target);
|
|
298
|
+
}
|
|
299
|
+
this.renderSlides();
|
|
300
|
+
};
|
|
301
|
+
Carousel.prototype.reRenderIndicators = function () {
|
|
302
|
+
var target = this.element.querySelector("." + CLS_INDICATORS);
|
|
303
|
+
if (target) {
|
|
304
|
+
this.resetTemplates(['indicatorsTemplate']);
|
|
305
|
+
remove(target);
|
|
306
|
+
}
|
|
307
|
+
this.renderIndicators();
|
|
308
|
+
};
|
|
309
|
+
Carousel.prototype.initialize = function () {
|
|
310
|
+
var carouselClasses = [];
|
|
311
|
+
carouselClasses.push(CLS_CAROUSEL);
|
|
312
|
+
if (this.cssClass) {
|
|
313
|
+
carouselClasses.push(this.cssClass);
|
|
314
|
+
}
|
|
315
|
+
if (this.enableRtl) {
|
|
316
|
+
carouselClasses.push(CLS_RTL);
|
|
317
|
+
}
|
|
318
|
+
if (this.partialVisible) {
|
|
319
|
+
carouselClasses.push(CLS_PARTIAL);
|
|
320
|
+
}
|
|
321
|
+
if (!(this.swipeMode === (~CarouselSwipeMode.Touch & ~CarouselSwipeMode.Mouse))) {
|
|
322
|
+
carouselClasses.push(CLS_SWIPE);
|
|
323
|
+
}
|
|
324
|
+
addClass([this.element], carouselClasses);
|
|
325
|
+
setStyleAttribute(this.element, { 'width': formatUnit(this.width), 'height': formatUnit(this.height) });
|
|
326
|
+
attributes(this.element, { 'role': 'group', 'aria-roledescription': 'carousel', 'aria-label': this.localeObj.getConstant('slideShow') });
|
|
327
|
+
if (!isNullOrUndefined(this.htmlAttributes)) {
|
|
328
|
+
this.setHtmlAttributes(this.htmlAttributes, this.element);
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
Carousel.prototype.renderSlides = function () {
|
|
332
|
+
var _this = this;
|
|
333
|
+
var slideContainer = this.element.querySelector('.' + CLS_SLIDE_CONTAINER);
|
|
334
|
+
if (!slideContainer) {
|
|
335
|
+
slideContainer = this.createElement('div', { className: CLS_SLIDE_CONTAINER, attrs: { 'tabindex': '0', 'role': 'tabpanel' } });
|
|
336
|
+
this.element.appendChild(slideContainer);
|
|
337
|
+
}
|
|
338
|
+
this.itemsContainer = this.createElement('div', { className: CLS_ITEMS, attrs: { 'aria-live': this.autoPlay ? 'off' : 'polite' } });
|
|
339
|
+
slideContainer.appendChild(this.itemsContainer);
|
|
340
|
+
var numOfItems = this.getNumOfItems();
|
|
341
|
+
if (numOfItems > 0 && this.loop) {
|
|
342
|
+
if (this.items.length > 0) {
|
|
343
|
+
this.items.slice(-numOfItems).forEach(function (item, index) {
|
|
344
|
+
_this.renderSlide(item, item.template, index, _this.itemsContainer, true);
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
else if (!isNullOrUndefined(this.dataSource) && this.dataSource.length > 0) {
|
|
348
|
+
this.dataSource.slice(-numOfItems).forEach(function (item, index) {
|
|
349
|
+
_this.renderSlide(item, _this.itemTemplate, index, _this.itemsContainer, true);
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
if (this.items.length > 0) {
|
|
354
|
+
this.slideItems = this.items;
|
|
355
|
+
this.items.forEach(function (item, index) {
|
|
356
|
+
_this.renderSlide(item, item.template, index, _this.itemsContainer);
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
else if (!isNullOrUndefined(this.dataSource) && this.dataSource.length > 0) {
|
|
360
|
+
this.slideItems = this.dataSource;
|
|
361
|
+
this.dataSource.forEach(function (item, index) {
|
|
362
|
+
_this.renderSlide(item, _this.itemTemplate, index, _this.itemsContainer);
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
if (numOfItems > 0 && this.loop) {
|
|
366
|
+
if (this.items.length > 0) {
|
|
367
|
+
this.items.slice(0, numOfItems).forEach(function (item, index) {
|
|
368
|
+
_this.renderSlide(item, item.template, index, _this.itemsContainer, true);
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
else if (!isNullOrUndefined(this.dataSource) && this.dataSource.length > 0) {
|
|
372
|
+
this.dataSource.slice(0, numOfItems).forEach(function (item, index) {
|
|
373
|
+
_this.renderSlide(item, _this.itemTemplate, index, _this.itemsContainer, true);
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
this.renderTemplates();
|
|
378
|
+
this.itemsContainer.style.setProperty('--carousel-items-count', "" + this.itemsContainer.children.length);
|
|
379
|
+
var slideWidth = isNullOrUndefined(this.itemsContainer.firstElementChild) ? 0 :
|
|
380
|
+
this.itemsContainer.firstElementChild.clientWidth;
|
|
381
|
+
this.itemsContainer.style.transitionProperty = 'none';
|
|
382
|
+
var cloneCount = this.loop ? numOfItems : 0;
|
|
383
|
+
this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + cloneCount);
|
|
384
|
+
this.autoSlide();
|
|
385
|
+
this.renderTouchActions();
|
|
386
|
+
this.renderKeyboardActions();
|
|
387
|
+
};
|
|
388
|
+
Carousel.prototype.getTranslateX = function (slideWidth, count) {
|
|
389
|
+
if (count === void 0) { count = 1; }
|
|
390
|
+
return this.enableRtl ? "translateX(" + (slideWidth) * (count) + "px)" :
|
|
391
|
+
"translateX(" + -(slideWidth) * (count) + "px)";
|
|
392
|
+
};
|
|
393
|
+
Carousel.prototype.renderSlide = function (item, itemTemplate, index, container, isClone) {
|
|
394
|
+
if (isClone === void 0) { isClone = false; }
|
|
395
|
+
var itemEle = this.createElement('div', {
|
|
396
|
+
id: getUniqueID('carousel_item'),
|
|
397
|
+
className: CLS_ITEM + " " + (item.cssClass ? item.cssClass : '') + " " + (this.selectedIndex === index && !isClone ? CLS_ACTIVE : ''),
|
|
398
|
+
attrs: {
|
|
399
|
+
'aria-hidden': this.selectedIndex === index && !isClone ? 'false' : 'true', 'data-index': index.toString(),
|
|
400
|
+
'role': 'group', 'aria-roledescription': 'slide'
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
if (isClone) {
|
|
404
|
+
itemEle.classList.add(CLS_CLONED);
|
|
405
|
+
}
|
|
406
|
+
if (!isNullOrUndefined(item.htmlAttributes)) {
|
|
407
|
+
this.setHtmlAttributes(item.htmlAttributes, itemEle);
|
|
408
|
+
}
|
|
409
|
+
var templateId = this.element.id + '_template';
|
|
410
|
+
var template = this.templateParser(itemTemplate)(item, this, 'itemTemplate', templateId, false);
|
|
411
|
+
append(template, itemEle);
|
|
412
|
+
container.appendChild(itemEle);
|
|
413
|
+
};
|
|
414
|
+
Carousel.prototype.renderNavigators = function () {
|
|
415
|
+
if (this.buttonsVisibility === 'Hidden') {
|
|
416
|
+
return;
|
|
417
|
+
}
|
|
418
|
+
var navigators = this.createElement('div', { className: CLS_NAVIGATORS });
|
|
419
|
+
var itemsContainer = this.element.querySelector("." + CLS_SLIDE_CONTAINER);
|
|
420
|
+
itemsContainer.insertAdjacentElement('afterend', navigators);
|
|
421
|
+
if (!isNullOrUndefined(this.slideItems) && this.slideItems.length > 1) {
|
|
422
|
+
this.renderNavigatorButton('Previous');
|
|
423
|
+
this.renderNavigatorButton('Next');
|
|
424
|
+
}
|
|
425
|
+
this.renderTemplates();
|
|
426
|
+
};
|
|
427
|
+
Carousel.prototype.renderNavigatorButton = function (direction) {
|
|
428
|
+
var buttonContainer = this.createElement('div', {
|
|
429
|
+
className: (direction === 'Previous' ? CLS_PREVIOUS : CLS_NEXT) + ' ' + (this.buttonsVisibility === 'VisibleOnHover' ? CLS_HOVER_ARROWS : '')
|
|
430
|
+
});
|
|
431
|
+
if (direction === 'Previous' && this.previousButtonTemplate) {
|
|
432
|
+
addClass([buttonContainer], CLS_TEMPLATE);
|
|
433
|
+
var templateId = this.element.id + '_previousButtonTemplate';
|
|
434
|
+
var template = this.templateParser(this.previousButtonTemplate)({ type: 'Previous' }, this, 'previousButtonTemplate', templateId, false);
|
|
435
|
+
append(template, buttonContainer);
|
|
436
|
+
}
|
|
437
|
+
else if (direction === 'Next' && this.nextButtonTemplate) {
|
|
438
|
+
addClass([buttonContainer], CLS_TEMPLATE);
|
|
439
|
+
var templateId = this.element.id + '_nextButtonTemplate';
|
|
440
|
+
var template = this.templateParser(this.nextButtonTemplate)({ type: 'Next' }, this, 'nextButtonTemplate', templateId, false);
|
|
441
|
+
append(template, buttonContainer);
|
|
442
|
+
}
|
|
443
|
+
else {
|
|
444
|
+
var button = this.createElement('button', {
|
|
445
|
+
attrs: { 'aria-label': this.localeObj.getConstant(direction === 'Previous' ? 'previousSlide' : 'nextSlide'), 'type': 'button' }
|
|
446
|
+
});
|
|
447
|
+
var buttonObj = new Button({
|
|
448
|
+
cssClass: CLS_FLAT + ' ' + CLS_ROUND + ' ' + (direction === 'Previous' ? CLS_PREV_BUTTON : CLS_NEXT_BUTTON),
|
|
449
|
+
iconCss: CLS_ICON + ' ' + (direction === 'Previous' ? CLS_PREV_ICON : CLS_NEXT_ICON),
|
|
450
|
+
enableRtl: this.enableRtl,
|
|
451
|
+
disabled: !this.loop && this.selectedIndex === (direction === 'Previous' ? 0 : this.slideItems.length - 1)
|
|
452
|
+
});
|
|
453
|
+
buttonObj.appendTo(button);
|
|
454
|
+
buttonContainer.appendChild(button);
|
|
455
|
+
}
|
|
456
|
+
this.element.querySelector('.' + CLS_NAVIGATORS).appendChild(buttonContainer);
|
|
457
|
+
EventHandler.add(buttonContainer, 'click', this.navigatorClickHandler, this);
|
|
458
|
+
};
|
|
459
|
+
Carousel.prototype.renderPlayButton = function () {
|
|
460
|
+
if (isNullOrUndefined(this.slideItems) || this.buttonsVisibility === 'Hidden' || !this.showPlayButton || this.slideItems.length <= 1) {
|
|
461
|
+
return;
|
|
462
|
+
}
|
|
463
|
+
var playPauseWrap = this.createElement('div', {
|
|
464
|
+
className: CLS_PLAY_PAUSE + ' ' + (this.buttonsVisibility === 'VisibleOnHover' ? CLS_HOVER_ARROWS : '')
|
|
465
|
+
});
|
|
466
|
+
if (this.playButtonTemplate) {
|
|
467
|
+
addClass([playPauseWrap], CLS_TEMPLATE);
|
|
468
|
+
var templateId = this.element.id + '_playButtonTemplate';
|
|
469
|
+
var template = this.templateParser(this.playButtonTemplate)({}, this, 'playButtonTemplate', templateId, false);
|
|
470
|
+
append(template, playPauseWrap);
|
|
471
|
+
}
|
|
472
|
+
else {
|
|
473
|
+
var playButton = this.createElement('button', {
|
|
474
|
+
attrs: { 'aria-label': this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition'), 'type': 'button' }
|
|
475
|
+
});
|
|
476
|
+
var isLastSlide = this.selectedIndex === this.slideItems.length - 1 && !this.loop;
|
|
477
|
+
var buttonObj = new Button({
|
|
478
|
+
cssClass: CLS_FLAT + ' ' + CLS_ROUND + ' ' + CLS_PLAY_BUTTON,
|
|
479
|
+
iconCss: CLS_ICON + ' ' + (this.autoPlay && !isLastSlide ? CLS_PAUSE_ICON : CLS_PLAY_ICON),
|
|
480
|
+
isToggle: true,
|
|
481
|
+
enableRtl: this.enableRtl
|
|
482
|
+
});
|
|
483
|
+
if (isLastSlide) {
|
|
484
|
+
this.setProperties({ autoPlay: false }, true);
|
|
485
|
+
playButton.setAttribute('aria-label', this.localeObj.getConstant('playSlideTransition'));
|
|
486
|
+
this.itemsContainer.setAttribute('aria-live', 'polite');
|
|
487
|
+
}
|
|
488
|
+
buttonObj.appendTo(playButton);
|
|
489
|
+
playPauseWrap.appendChild(playButton);
|
|
490
|
+
}
|
|
491
|
+
var navigators = this.element.querySelector("." + CLS_NAVIGATORS);
|
|
492
|
+
navigators.insertBefore(playPauseWrap, navigators.lastElementChild);
|
|
493
|
+
this.renderTemplates();
|
|
494
|
+
EventHandler.add(playPauseWrap, 'click', this.playButtonClickHandler, this);
|
|
495
|
+
};
|
|
496
|
+
Carousel.prototype.renderIndicators = function () {
|
|
497
|
+
var _this = this;
|
|
498
|
+
if (!this.showIndicators || isNullOrUndefined(this.indicatorsType)) {
|
|
499
|
+
return;
|
|
500
|
+
}
|
|
501
|
+
var indicatorClass = 'e-default';
|
|
502
|
+
if (!this.indicatorsTemplate) {
|
|
503
|
+
indicatorClass = "e-" + this.indicatorsType.toLowerCase();
|
|
504
|
+
}
|
|
505
|
+
var indicatorWrap = this.createElement('div', { className: CLS_INDICATORS + " " + indicatorClass });
|
|
506
|
+
var indicatorBars = this.createElement('div', { className: CLS_INDICATOR_BARS });
|
|
507
|
+
indicatorWrap.appendChild(indicatorBars);
|
|
508
|
+
var progress;
|
|
509
|
+
if (this.slideItems) {
|
|
510
|
+
switch (this.indicatorsType) {
|
|
511
|
+
case 'Fraction':
|
|
512
|
+
if (this.indicatorsTemplate) {
|
|
513
|
+
this.renderIndicatorTemplate(indicatorBars, this.selectedIndex + 1);
|
|
514
|
+
}
|
|
515
|
+
else {
|
|
516
|
+
indicatorBars.innerText = this.selectedIndex + 1 + " / " + this.slideItems.length;
|
|
517
|
+
}
|
|
518
|
+
break;
|
|
519
|
+
case 'Progress':
|
|
520
|
+
if (this.indicatorsTemplate) {
|
|
521
|
+
this.renderIndicatorTemplate(indicatorBars, this.selectedIndex + 1);
|
|
522
|
+
}
|
|
523
|
+
else {
|
|
524
|
+
progress = this.createElement('div', { className: CLS_INDICATOR_BAR });
|
|
525
|
+
progress.style.setProperty('--carousel-items-current', "" + (this.selectedIndex + 1));
|
|
526
|
+
progress.style.setProperty('--carousel-items-count', "" + this.slideItems.length);
|
|
527
|
+
indicatorBars.appendChild(progress);
|
|
528
|
+
}
|
|
529
|
+
break;
|
|
530
|
+
case 'Default':
|
|
531
|
+
case 'Dynamic':
|
|
532
|
+
this.slideItems.forEach(function (item, index) {
|
|
533
|
+
var indicatorBar = _this.createElement('div', {
|
|
534
|
+
className: CLS_INDICATOR_BAR + ' ' + (_this.selectedIndex === index ? CLS_ACTIVE : _this.selectedIndex - 1 === index ? CLS_PREV_SLIDE : _this.selectedIndex + 1 === index ? CLS_NEXT_SLIDE : ''),
|
|
535
|
+
attrs: { 'data-index': index.toString(), 'aria-current': _this.selectedIndex === index ? 'true' : 'false' }
|
|
536
|
+
});
|
|
537
|
+
indicatorBar.style.setProperty('--carousel-items-current', "" + _this.selectedIndex);
|
|
538
|
+
if (_this.indicatorsTemplate) {
|
|
539
|
+
_this.renderIndicatorTemplate(indicatorBar, index);
|
|
540
|
+
}
|
|
541
|
+
else if (_this.indicatorsType === 'Default') {
|
|
542
|
+
var indicator = _this.createElement('button', { className: CLS_INDICATOR, attrs: { 'type': 'button', 'aria-label': _this.localeObj.getConstant('slide') + ' ' + (index + 1) + ' ' + _this.localeObj.getConstant('of') + ' ' + _this.slideItems.length } });
|
|
543
|
+
indicatorBar.appendChild(indicator);
|
|
544
|
+
indicator.appendChild(_this.createElement('div', {}));
|
|
545
|
+
var buttonObj = new Button({ cssClass: 'e-flat e-small' });
|
|
546
|
+
buttonObj.appendTo(indicator);
|
|
547
|
+
}
|
|
548
|
+
indicatorBars.appendChild(indicatorBar);
|
|
549
|
+
if (_this.indicatorsType === 'Default') {
|
|
550
|
+
EventHandler.add(indicatorBar, 'click', _this.indicatorClickHandler, _this);
|
|
551
|
+
}
|
|
552
|
+
});
|
|
553
|
+
break;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
this.element.appendChild(indicatorWrap);
|
|
557
|
+
};
|
|
558
|
+
Carousel.prototype.renderIndicatorTemplate = function (indicatorBar, index) {
|
|
559
|
+
if (index === void 0) { index = 0; }
|
|
560
|
+
addClass([indicatorBar], CLS_TEMPLATE);
|
|
561
|
+
var templateId = this.element.id + '_indicatorsTemplate';
|
|
562
|
+
var template = this.templateParser(this.indicatorsTemplate)({ index: index, selectedIndex: this.selectedIndex }, this, 'indicatorsTemplate', templateId, false);
|
|
563
|
+
append(template, indicatorBar);
|
|
564
|
+
};
|
|
565
|
+
Carousel.prototype.renderKeyboardActions = function () {
|
|
566
|
+
if (!this.allowKeyboardInteraction) {
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
this.keyModule = new KeyboardEvents(this.element, { keyAction: this.keyHandler.bind(this), keyConfigs: this.keyConfigs });
|
|
570
|
+
};
|
|
571
|
+
Carousel.prototype.renderTouchActions = function () {
|
|
572
|
+
if (!this.enableTouchSwipe) {
|
|
573
|
+
return;
|
|
574
|
+
}
|
|
575
|
+
this.touchModule = new Touch(this.element, { swipe: this.swipeHandler.bind(this) });
|
|
576
|
+
};
|
|
577
|
+
Carousel.prototype.applyAnimation = function () {
|
|
578
|
+
removeClass([this.element], [CLS_CUSTOM_ANIMATION, CLS_FADE_ANIMATION, CLS_SLIDE_ANIMATION, CLS_ANIMATION_NONE]);
|
|
579
|
+
switch (this.animationEffect) {
|
|
580
|
+
case 'Slide':
|
|
581
|
+
addClass([this.element], CLS_SLIDE_ANIMATION);
|
|
582
|
+
break;
|
|
583
|
+
case 'Fade':
|
|
584
|
+
addClass([this.element], CLS_FADE_ANIMATION);
|
|
585
|
+
break;
|
|
586
|
+
case 'None':
|
|
587
|
+
addClass([this.element], CLS_ANIMATION_NONE);
|
|
588
|
+
break;
|
|
589
|
+
case 'Custom':
|
|
590
|
+
addClass([this.element], CLS_CUSTOM_ANIMATION);
|
|
591
|
+
break;
|
|
592
|
+
}
|
|
593
|
+
};
|
|
594
|
+
Carousel.prototype.autoSlide = function () {
|
|
595
|
+
if (isNullOrUndefined(this.slideItems) || this.slideItems.length <= 1) {
|
|
596
|
+
return;
|
|
597
|
+
}
|
|
598
|
+
this.resetSlideInterval();
|
|
599
|
+
this.applySlideInterval();
|
|
600
|
+
};
|
|
601
|
+
Carousel.prototype.autoSlideChange = function () {
|
|
602
|
+
var activeSlide = this.element.querySelector("." + CLS_ITEM + "." + CLS_ACTIVE)
|
|
603
|
+
|| this.element.querySelector("." + CLS_INDICATORS + " ." + CLS_ACTIVE);
|
|
604
|
+
if (isNullOrUndefined(activeSlide)) {
|
|
605
|
+
return;
|
|
606
|
+
}
|
|
607
|
+
var activeIndex = parseInt(activeSlide.dataset.index, 10);
|
|
608
|
+
if (!this.loop && activeIndex === this.slideItems.length - 1) {
|
|
609
|
+
this.resetSlideInterval();
|
|
610
|
+
}
|
|
611
|
+
else {
|
|
612
|
+
var index = (activeIndex + 1) % this.slideItems.length;
|
|
613
|
+
if (!this.element.classList.contains(CLS_HOVER)) {
|
|
614
|
+
this.setActiveSlide(index, 'Next');
|
|
615
|
+
}
|
|
616
|
+
this.autoSlide();
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
Carousel.prototype.applySlideInterval = function () {
|
|
620
|
+
var _this = this;
|
|
621
|
+
if (!this.autoPlay || this.element.classList.contains(CLS_HOVER)) {
|
|
622
|
+
return;
|
|
623
|
+
}
|
|
624
|
+
var itemInterval = this.interval;
|
|
625
|
+
if (this.items.length > 0 && !isNullOrUndefined(this.items[this.selectedIndex || 0].interval)) {
|
|
626
|
+
itemInterval = this.items[this.selectedIndex || 0].interval;
|
|
627
|
+
}
|
|
628
|
+
this.autoSlideInterval = setInterval(function () { return _this.autoSlideChange(); }, itemInterval);
|
|
629
|
+
};
|
|
630
|
+
Carousel.prototype.resetSlideInterval = function () {
|
|
631
|
+
clearInterval(this.autoSlideInterval);
|
|
632
|
+
this.autoSlideInterval = null;
|
|
633
|
+
};
|
|
634
|
+
Carousel.prototype.getSlideIndex = function (direction) {
|
|
635
|
+
var currentIndex = this.selectedIndex || 0;
|
|
636
|
+
if (direction === 'Previous') {
|
|
637
|
+
currentIndex--;
|
|
638
|
+
if (currentIndex < 0) {
|
|
639
|
+
currentIndex = this.slideItems.length - 1;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
else {
|
|
643
|
+
currentIndex++;
|
|
644
|
+
if (currentIndex === this.slideItems.length) {
|
|
645
|
+
currentIndex = 0;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
return currentIndex;
|
|
649
|
+
};
|
|
650
|
+
Carousel.prototype.setActiveSlide = function (currentIndex, direction, isSwiped) {
|
|
651
|
+
var _this = this;
|
|
652
|
+
if (isSwiped === void 0) { isSwiped = false; }
|
|
653
|
+
if (this.element.querySelectorAll("." + CLS_ITEM + "." + CLS_PREV_SLIDE + ",." + CLS_ITEM + "." + CLS_NEXT_SLIDE).length > 0) {
|
|
654
|
+
return;
|
|
655
|
+
}
|
|
656
|
+
currentIndex = isNullOrUndefined(currentIndex) ? 0 : currentIndex;
|
|
657
|
+
var allSlides = [].slice.call(this.element.querySelectorAll("." + CLS_ITEM + ":not(.e-cloned)"));
|
|
658
|
+
var activeSlide = this.element.querySelector("." + CLS_ITEM + "." + CLS_ACTIVE);
|
|
659
|
+
if (isNullOrUndefined(activeSlide) && this.showIndicators) {
|
|
660
|
+
var activeIndicator = this.element.querySelector("." + CLS_INDICATOR_BAR + "." + CLS_ACTIVE);
|
|
661
|
+
var activeIndex_1 = parseInt(activeIndicator.dataset.index, 10);
|
|
662
|
+
addClass([allSlides[parseInt(activeIndex_1.toString(), 10)]], CLS_ACTIVE);
|
|
663
|
+
return;
|
|
664
|
+
}
|
|
665
|
+
else if (isNullOrUndefined(activeSlide)) {
|
|
666
|
+
addClass([allSlides[parseInt(currentIndex.toString(), 10)]], CLS_ACTIVE);
|
|
667
|
+
return;
|
|
668
|
+
}
|
|
669
|
+
var activeIndex = parseInt(activeSlide.dataset.index, 10);
|
|
670
|
+
var currentSlide = allSlides[parseInt(currentIndex.toString(), 10)];
|
|
671
|
+
var eventArgs = {
|
|
672
|
+
currentIndex: activeIndex,
|
|
673
|
+
nextIndex: currentIndex,
|
|
674
|
+
currentSlide: activeSlide,
|
|
675
|
+
nextSlide: currentSlide,
|
|
676
|
+
slideDirection: direction,
|
|
677
|
+
isSwiped: isSwiped,
|
|
678
|
+
cancel: false
|
|
679
|
+
};
|
|
680
|
+
this.trigger('slideChanging', eventArgs, function (args) {
|
|
681
|
+
if (args.cancel) {
|
|
682
|
+
return;
|
|
683
|
+
}
|
|
684
|
+
_this.setProperties({ selectedIndex: currentIndex }, true);
|
|
685
|
+
attributes(args.currentSlide, { 'aria-hidden': 'true' });
|
|
686
|
+
attributes(args.nextSlide, { 'aria-hidden': 'false' });
|
|
687
|
+
_this.refreshIndicators(activeIndex, currentIndex);
|
|
688
|
+
_this.slideChangedEventArgs = {
|
|
689
|
+
currentIndex: args.nextIndex,
|
|
690
|
+
previousIndex: args.currentIndex,
|
|
691
|
+
currentSlide: args.nextSlide,
|
|
692
|
+
previousSlide: args.currentSlide,
|
|
693
|
+
slideDirection: direction,
|
|
694
|
+
isSwiped: isSwiped
|
|
695
|
+
};
|
|
696
|
+
var slideWidth = allSlides[parseInt(currentIndex.toString(), 10)].clientWidth;
|
|
697
|
+
var numOfItems = _this.getNumOfItems();
|
|
698
|
+
if (!_this.isSwipe) {
|
|
699
|
+
_this.itemsContainer.style.transitionDuration = '0.6s';
|
|
700
|
+
}
|
|
701
|
+
_this.isSwipe = false;
|
|
702
|
+
if ((_this.animationEffect === 'Fade')) {
|
|
703
|
+
_this.itemsContainer.classList.add('e-fade-in-out');
|
|
704
|
+
}
|
|
705
|
+
else {
|
|
706
|
+
_this.itemsContainer.style.transitionProperty = 'transform';
|
|
707
|
+
}
|
|
708
|
+
if (_this.loop) {
|
|
709
|
+
if (_this.slideChangedEventArgs.currentIndex === 0 && _this.slideChangedEventArgs.slideDirection === 'Next') {
|
|
710
|
+
_this.itemsContainer.style.transform = _this.getTranslateX(slideWidth, allSlides.length + numOfItems);
|
|
711
|
+
}
|
|
712
|
+
else if (_this.slideChangedEventArgs.currentIndex === _this.slideItems.length - 1 && _this.slideChangedEventArgs.slideDirection === 'Previous') {
|
|
713
|
+
_this.itemsContainer.style.transform = _this.partialVisible ? _this.getTranslateX(slideWidth) : 'translateX(0px)';
|
|
714
|
+
}
|
|
715
|
+
else {
|
|
716
|
+
_this.itemsContainer.style.transform = _this.getTranslateX(slideWidth, currentIndex + numOfItems);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
else {
|
|
720
|
+
_this.itemsContainer.style.transform = _this.getTranslateX(slideWidth, currentIndex);
|
|
721
|
+
}
|
|
722
|
+
if (_this.animationEffect === 'Slide') {
|
|
723
|
+
if (direction === 'Previous') {
|
|
724
|
+
addClass([args.nextSlide], CLS_PREV_SLIDE);
|
|
725
|
+
args.nextSlide.setAttribute('data-slide-height', args.nextSlide.offsetHeight.toString());
|
|
726
|
+
addClass([args.currentSlide, args.nextSlide], CLS_TRANSITION_END);
|
|
727
|
+
}
|
|
728
|
+
else {
|
|
729
|
+
addClass([args.nextSlide], CLS_NEXT_SLIDE);
|
|
730
|
+
args.nextSlide.setAttribute('data-slide-height', args.nextSlide.offsetHeight.toString());
|
|
731
|
+
addClass([args.currentSlide, args.nextSlide], CLS_TRANSITION_START);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
else if (_this.animationEffect === 'Fade') {
|
|
735
|
+
removeClass([args.currentSlide], CLS_ACTIVE);
|
|
736
|
+
addClass([args.nextSlide], CLS_ACTIVE);
|
|
737
|
+
}
|
|
738
|
+
else if (_this.animationEffect === 'Custom') {
|
|
739
|
+
if (direction === 'Previous') {
|
|
740
|
+
addClass([args.nextSlide], CLS_NEXT_SLIDE);
|
|
741
|
+
addClass([args.currentSlide], CLS_PREV_SLIDE);
|
|
742
|
+
}
|
|
743
|
+
else {
|
|
744
|
+
addClass([args.currentSlide], CLS_PREV_SLIDE);
|
|
745
|
+
addClass([args.nextSlide], CLS_NEXT_SLIDE);
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
else {
|
|
749
|
+
_this.onTransitionEnd();
|
|
750
|
+
}
|
|
751
|
+
_this.handleNavigatorsActions(currentIndex);
|
|
752
|
+
});
|
|
753
|
+
};
|
|
754
|
+
Carousel.prototype.onTransitionEnd = function () {
|
|
755
|
+
var _this = this;
|
|
756
|
+
removeClass(this.element.querySelectorAll("." + CLS_ITEMS), 'e-fade-in-out');
|
|
757
|
+
var numOfItems = this.getNumOfItems();
|
|
758
|
+
if (this.slideChangedEventArgs) {
|
|
759
|
+
this.itemsContainer.style.transitionProperty = 'none';
|
|
760
|
+
if (this.loop && (this.slideChangedEventArgs.currentIndex === 0 && this.slideChangedEventArgs.slideDirection === 'Next' ||
|
|
761
|
+
this.slideChangedEventArgs.currentIndex === this.slideItems.length - 1 && this.slideChangedEventArgs.slideDirection === 'Previous')) {
|
|
762
|
+
var slideWidth = this.slideChangedEventArgs.currentSlide.clientWidth;
|
|
763
|
+
this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.slideChangedEventArgs.currentIndex + numOfItems);
|
|
764
|
+
}
|
|
765
|
+
addClass([this.slideChangedEventArgs.currentSlide], CLS_ACTIVE);
|
|
766
|
+
removeClass([this.slideChangedEventArgs.previousSlide], CLS_ACTIVE);
|
|
767
|
+
this.trigger('slideChanged', this.slideChangedEventArgs, function () {
|
|
768
|
+
removeClass(_this.element.querySelectorAll("." + CLS_ITEM), [CLS_PREV_SLIDE, CLS_NEXT_SLIDE, CLS_TRANSITION_START, CLS_TRANSITION_END]);
|
|
769
|
+
_this.slideChangedEventArgs = null;
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
};
|
|
773
|
+
Carousel.prototype.refreshIndicators = function (activeIndex, currentIndex) {
|
|
774
|
+
var _this = this;
|
|
775
|
+
var slideIndicator = this.element.querySelector("." + CLS_INDICATOR_BARS);
|
|
776
|
+
if (isNullOrUndefined(slideIndicator)) {
|
|
777
|
+
return;
|
|
778
|
+
}
|
|
779
|
+
var indicators = [].slice.call(slideIndicator.childNodes);
|
|
780
|
+
switch (this.indicatorsType) {
|
|
781
|
+
case 'Default':
|
|
782
|
+
case 'Dynamic':
|
|
783
|
+
attributes(indicators[parseInt(activeIndex.toString(), 10)], { 'aria-current': 'false' });
|
|
784
|
+
attributes(indicators[parseInt(currentIndex.toString(), 10)], { 'aria-current': 'true' });
|
|
785
|
+
removeClass(indicators, [CLS_ACTIVE, CLS_PREV_SLIDE, CLS_NEXT_SLIDE]);
|
|
786
|
+
addClass([indicators[parseInt(currentIndex.toString(), 10)]], CLS_ACTIVE);
|
|
787
|
+
if (indicators[currentIndex - 1]) {
|
|
788
|
+
addClass([indicators[currentIndex - 1]], CLS_PREV_SLIDE);
|
|
789
|
+
}
|
|
790
|
+
if (indicators[currentIndex + 1]) {
|
|
791
|
+
addClass([indicators[currentIndex + 1]], CLS_NEXT_SLIDE);
|
|
792
|
+
}
|
|
793
|
+
indicators.forEach(function (item) { return item.style.setProperty('--carousel-items-current', "" + _this.selectedIndex); });
|
|
794
|
+
break;
|
|
795
|
+
case 'Fraction':
|
|
796
|
+
if (this.indicatorsTemplate) {
|
|
797
|
+
if (slideIndicator.children.length > 0) {
|
|
798
|
+
slideIndicator.removeChild(slideIndicator.firstElementChild);
|
|
799
|
+
}
|
|
800
|
+
this.renderIndicatorTemplate(slideIndicator, currentIndex + 1);
|
|
801
|
+
}
|
|
802
|
+
else {
|
|
803
|
+
slideIndicator.innerText = this.selectedIndex + 1 + " / " + this.slideItems.length;
|
|
804
|
+
}
|
|
805
|
+
break;
|
|
806
|
+
case 'Progress':
|
|
807
|
+
if (this.indicatorsTemplate) {
|
|
808
|
+
if (slideIndicator.children.length > 0) {
|
|
809
|
+
slideIndicator.removeChild(slideIndicator.firstElementChild);
|
|
810
|
+
}
|
|
811
|
+
this.renderIndicatorTemplate(slideIndicator, currentIndex + 1);
|
|
812
|
+
}
|
|
813
|
+
else {
|
|
814
|
+
slideIndicator.firstElementChild.style.setProperty('--carousel-items-current', "" + (this.selectedIndex + 1));
|
|
815
|
+
}
|
|
816
|
+
break;
|
|
817
|
+
}
|
|
818
|
+
};
|
|
819
|
+
Carousel.prototype.setHtmlAttributes = function (attribute, element) {
|
|
820
|
+
var keys = Object.keys(attribute);
|
|
821
|
+
for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {
|
|
822
|
+
var key = keys_1[_i];
|
|
823
|
+
if (key === 'class') {
|
|
824
|
+
addClass([element], attribute["" + key]);
|
|
825
|
+
}
|
|
826
|
+
else {
|
|
827
|
+
element.setAttribute(key, attribute["" + key]);
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
};
|
|
831
|
+
Carousel.prototype.templateParser = function (template) {
|
|
832
|
+
if (template) {
|
|
833
|
+
try {
|
|
834
|
+
if (typeof template !== 'function' && document.querySelectorAll(template).length) {
|
|
835
|
+
return compile(document.querySelector(template).innerHTML.trim());
|
|
836
|
+
}
|
|
837
|
+
else {
|
|
838
|
+
return compile(template);
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
catch (error) {
|
|
842
|
+
return compile(template);
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
return undefined;
|
|
846
|
+
};
|
|
847
|
+
Carousel.prototype.getNavigatorState = function (target, isPrevious) {
|
|
848
|
+
var button = target.querySelector("." + (isPrevious ? CLS_PREV_BUTTON : CLS_NEXT_BUTTON));
|
|
849
|
+
if (button) {
|
|
850
|
+
var buttonObj = getInstance(button, Button);
|
|
851
|
+
return buttonObj.disabled;
|
|
852
|
+
}
|
|
853
|
+
return false;
|
|
854
|
+
};
|
|
855
|
+
Carousel.prototype.navigatorClickHandler = function (e) {
|
|
856
|
+
var target = e.currentTarget;
|
|
857
|
+
var isDisabled = this.getNavigatorState(target, target.classList.contains(CLS_PREVIOUS));
|
|
858
|
+
if (isDisabled) {
|
|
859
|
+
return;
|
|
860
|
+
}
|
|
861
|
+
var direction = target.classList.contains(CLS_PREVIOUS) ? 'Previous' : 'Next';
|
|
862
|
+
this.setActiveSlide(this.getSlideIndex(direction), direction);
|
|
863
|
+
this.autoSlide();
|
|
864
|
+
};
|
|
865
|
+
Carousel.prototype.indicatorClickHandler = function (e) {
|
|
866
|
+
var target = closest(e.target, "." + CLS_INDICATOR_BAR);
|
|
867
|
+
var index = parseInt(target.dataset.index, 10);
|
|
868
|
+
if (this.selectedIndex !== index) {
|
|
869
|
+
this.setActiveSlide(index, this.selectedIndex > index ? 'Previous' : 'Next');
|
|
870
|
+
this.autoSlide();
|
|
871
|
+
}
|
|
872
|
+
};
|
|
873
|
+
Carousel.prototype.playButtonClickHandler = function (e, isPropertyChange) {
|
|
874
|
+
if (isPropertyChange === void 0) { isPropertyChange = false; }
|
|
875
|
+
var playButton = this.element.querySelector("." + CLS_PLAY_BUTTON);
|
|
876
|
+
if (playButton) {
|
|
877
|
+
var buttonObj = getInstance(playButton, Button);
|
|
878
|
+
if (!isPropertyChange) {
|
|
879
|
+
this.setProperties({ autoPlay: !this.autoPlay }, true);
|
|
880
|
+
}
|
|
881
|
+
playButton.setAttribute('aria-label', this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition'));
|
|
882
|
+
buttonObj.iconCss = CLS_ICON + ' ' + (this.autoPlay ? CLS_PAUSE_ICON : CLS_PLAY_ICON);
|
|
883
|
+
buttonObj.dataBind();
|
|
884
|
+
this.itemsContainer.setAttribute('aria-live', this.autoPlay ? 'off' : 'polite');
|
|
885
|
+
if (this.autoPlay && !this.loop && this.selectedIndex === this.slideItems.length - 1) {
|
|
886
|
+
this.setActiveSlide(0, 'Next');
|
|
887
|
+
}
|
|
888
|
+
this.autoSlide();
|
|
889
|
+
}
|
|
890
|
+
};
|
|
891
|
+
Carousel.prototype.keyHandler = function (e) {
|
|
892
|
+
if (!this.allowKeyboardInteraction) {
|
|
893
|
+
return;
|
|
894
|
+
}
|
|
895
|
+
var direction;
|
|
896
|
+
var slideIndex;
|
|
897
|
+
var isSlideTransition = false;
|
|
898
|
+
var target = e.target;
|
|
899
|
+
e.preventDefault();
|
|
900
|
+
switch (e.action) {
|
|
901
|
+
case 'space':
|
|
902
|
+
if (this.showIndicators && target.classList.contains(CLS_INDICATOR)) {
|
|
903
|
+
target.click();
|
|
904
|
+
}
|
|
905
|
+
else if (target.classList.contains(CLS_CAROUSEL) || target.classList.contains(CLS_PLAY_BUTTON)) {
|
|
906
|
+
this.playButtonClickHandler(e);
|
|
907
|
+
}
|
|
908
|
+
else if (target.classList.contains(CLS_NEXT_BUTTON)) {
|
|
909
|
+
this.next();
|
|
910
|
+
}
|
|
911
|
+
else if (target.classList.contains(CLS_PREV_BUTTON)) {
|
|
912
|
+
this.prev();
|
|
913
|
+
}
|
|
914
|
+
break;
|
|
915
|
+
case 'end':
|
|
916
|
+
slideIndex = this.slideItems.length - 1;
|
|
917
|
+
direction = 'Next';
|
|
918
|
+
isSlideTransition = true;
|
|
919
|
+
break;
|
|
920
|
+
case 'home':
|
|
921
|
+
slideIndex = 0;
|
|
922
|
+
direction = 'Previous';
|
|
923
|
+
isSlideTransition = true;
|
|
924
|
+
break;
|
|
925
|
+
case 'moveUp':
|
|
926
|
+
case 'moveLeft':
|
|
927
|
+
case 'moveDown':
|
|
928
|
+
case 'moveRight':
|
|
929
|
+
if (this.showIndicators && isNullOrUndefined(this.indicatorsTemplate)) {
|
|
930
|
+
this.element.focus();
|
|
931
|
+
}
|
|
932
|
+
direction = (e.action === 'moveUp' || e.action === 'moveLeft') ? 'Previous' : 'Next';
|
|
933
|
+
slideIndex = this.getSlideIndex(direction);
|
|
934
|
+
isSlideTransition = !this.isSuspendSlideTransition(slideIndex, direction);
|
|
935
|
+
break;
|
|
936
|
+
}
|
|
937
|
+
if (isSlideTransition) {
|
|
938
|
+
this.setActiveSlide(slideIndex, direction);
|
|
939
|
+
this.autoSlide();
|
|
940
|
+
isSlideTransition = false;
|
|
941
|
+
}
|
|
942
|
+
};
|
|
943
|
+
Carousel.prototype.swipeHandler = function (e) {
|
|
944
|
+
if (this.element.classList.contains(CLS_HOVER) || isNullOrUndefined(this.slideItems) || this.slideItems.length <= 1) {
|
|
945
|
+
return;
|
|
946
|
+
}
|
|
947
|
+
var direction = (e.swipeDirection === 'Right') ? 'Previous' : 'Next';
|
|
948
|
+
var slideIndex = this.getSlideIndex(direction);
|
|
949
|
+
if (!this.isSuspendSlideTransition(slideIndex, direction)) {
|
|
950
|
+
this.setActiveSlide(slideIndex, direction, true);
|
|
951
|
+
this.autoSlide();
|
|
952
|
+
}
|
|
953
|
+
};
|
|
954
|
+
Carousel.prototype.isSuspendSlideTransition = function (index, direction) {
|
|
955
|
+
return !this.loop && (direction === 'Next' && index === 0 || direction === 'Previous' && index === this.slideItems.length - 1);
|
|
956
|
+
};
|
|
957
|
+
Carousel.prototype.handleNavigatorsActions = function (index) {
|
|
958
|
+
if (this.buttonsVisibility === 'Hidden') {
|
|
959
|
+
return;
|
|
960
|
+
}
|
|
961
|
+
if (this.showPlayButton) {
|
|
962
|
+
var playButton = this.element.querySelector("." + CLS_PLAY_BUTTON);
|
|
963
|
+
var isLastSlide = this.selectedIndex === this.slideItems.length - 1 && !this.loop;
|
|
964
|
+
var isButtonUpdate = isNullOrUndefined(this.playButtonTemplate) && playButton && isLastSlide;
|
|
965
|
+
if (isNullOrUndefined(this.playButtonTemplate) && playButton && !isLastSlide) {
|
|
966
|
+
isButtonUpdate = !playButton.classList.contains(CLS_ACTIVE);
|
|
967
|
+
}
|
|
968
|
+
if (isButtonUpdate) {
|
|
969
|
+
this.setProperties({ autoPlay: !isLastSlide }, true);
|
|
970
|
+
playButton.setAttribute('aria-label', this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition'));
|
|
971
|
+
this.itemsContainer.setAttribute('aria-live', this.autoPlay ? 'off' : 'polite');
|
|
972
|
+
var buttonObj = getInstance(playButton, Button);
|
|
973
|
+
buttonObj.iconCss = CLS_ICON + ' ' + (this.autoPlay ? CLS_PAUSE_ICON : CLS_PLAY_ICON);
|
|
974
|
+
buttonObj.dataBind();
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
var prevButton = this.element.querySelector("." + CLS_PREV_BUTTON);
|
|
978
|
+
if (prevButton && isNullOrUndefined(this.previousButtonTemplate)) {
|
|
979
|
+
var buttonObj = getInstance(prevButton, Button);
|
|
980
|
+
buttonObj.disabled = !this.loop && index === 0;
|
|
981
|
+
buttonObj.dataBind();
|
|
982
|
+
}
|
|
983
|
+
var nextButton = this.element.querySelector("." + CLS_NEXT_BUTTON);
|
|
984
|
+
if (nextButton && isNullOrUndefined(this.nextButtonTemplate)) {
|
|
985
|
+
var buttonObj = getInstance(nextButton, Button);
|
|
986
|
+
buttonObj.disabled = !this.loop && index === this.slideItems.length - 1;
|
|
987
|
+
buttonObj.dataBind();
|
|
988
|
+
}
|
|
989
|
+
};
|
|
990
|
+
Carousel.prototype.onHoverActions = function (e) {
|
|
991
|
+
var navigator = this.element.querySelector("." + CLS_NAVIGATORS);
|
|
992
|
+
switch (e.type) {
|
|
993
|
+
case 'mouseenter':
|
|
994
|
+
if (this.buttonsVisibility === 'VisibleOnHover' && navigator) {
|
|
995
|
+
removeClass([].slice.call(navigator.childNodes), CLS_HOVER_ARROWS);
|
|
996
|
+
}
|
|
997
|
+
if (this.pauseOnHover) {
|
|
998
|
+
addClass([this.element], CLS_HOVER);
|
|
999
|
+
}
|
|
1000
|
+
break;
|
|
1001
|
+
case 'mouseleave':
|
|
1002
|
+
if (this.buttonsVisibility === 'VisibleOnHover' && navigator) {
|
|
1003
|
+
addClass([].slice.call(navigator.childNodes), CLS_HOVER_ARROWS);
|
|
1004
|
+
}
|
|
1005
|
+
removeClass([this.element], CLS_HOVER);
|
|
1006
|
+
if (this.isSwipe) {
|
|
1007
|
+
this.swipStop();
|
|
1008
|
+
}
|
|
1009
|
+
break;
|
|
1010
|
+
}
|
|
1011
|
+
this.autoSlide();
|
|
1012
|
+
};
|
|
1013
|
+
Carousel.prototype.onFocusActions = function (e) {
|
|
1014
|
+
switch (e.type) {
|
|
1015
|
+
case 'focusin':
|
|
1016
|
+
addClass([this.element], CLS_HOVER);
|
|
1017
|
+
break;
|
|
1018
|
+
case 'focusout':
|
|
1019
|
+
removeClass([this.element], CLS_HOVER);
|
|
1020
|
+
break;
|
|
1021
|
+
}
|
|
1022
|
+
this.autoSlide();
|
|
1023
|
+
};
|
|
1024
|
+
Carousel.prototype.destroyButtons = function () {
|
|
1025
|
+
var buttonCollections = [].slice.call(this.element.querySelectorAll('.e-control.e-btn'));
|
|
1026
|
+
for (var _i = 0, buttonCollections_1 = buttonCollections; _i < buttonCollections_1.length; _i++) {
|
|
1027
|
+
var button = buttonCollections_1[_i];
|
|
1028
|
+
var instance = getInstance(button, Button);
|
|
1029
|
+
if (instance) {
|
|
1030
|
+
instance.destroy();
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
};
|
|
1034
|
+
Carousel.prototype.getNumOfItems = function () {
|
|
1035
|
+
return this.partialVisible ? 2 : 1;
|
|
1036
|
+
};
|
|
1037
|
+
Carousel.prototype.getTranslateValue = function (element) {
|
|
1038
|
+
var style = getComputedStyle(element);
|
|
1039
|
+
return window.WebKitCSSMatrix ?
|
|
1040
|
+
new WebKitCSSMatrix(style.webkitTransform).m41 : 0;
|
|
1041
|
+
};
|
|
1042
|
+
Carousel.prototype.swipeStart = function (e) {
|
|
1043
|
+
if (!this.timeStampStart) {
|
|
1044
|
+
this.timeStampStart = Date.now();
|
|
1045
|
+
}
|
|
1046
|
+
e.preventDefault();
|
|
1047
|
+
this.isSwipe = false;
|
|
1048
|
+
this.itemsContainer.classList.add('e-swipe-start');
|
|
1049
|
+
this.prevPageX = e.touches ? e.touches[0].pageX : e.pageX;
|
|
1050
|
+
this.initialTranslate = this.getTranslateValue(this.itemsContainer);
|
|
1051
|
+
};
|
|
1052
|
+
Carousel.prototype.swiping = function (e) {
|
|
1053
|
+
if (!this.itemsContainer.classList.contains('e-swipe-start')) {
|
|
1054
|
+
return;
|
|
1055
|
+
}
|
|
1056
|
+
this.isSwipe = true;
|
|
1057
|
+
e.preventDefault();
|
|
1058
|
+
var pageX = e.touches ? e.touches[0].pageX : e.pageX;
|
|
1059
|
+
var positionDiff = this.prevPageX - (pageX);
|
|
1060
|
+
if (!this.loop && ((this.enableRtl && ((this.selectedIndex === 0 && positionDiff > 0) ||
|
|
1061
|
+
(this.selectedIndex === this.itemsContainer.childElementCount - 1 && positionDiff < 0))) ||
|
|
1062
|
+
(!this.enableRtl && ((this.selectedIndex === 0 && positionDiff < 0) ||
|
|
1063
|
+
(this.selectedIndex === this.itemsContainer.childElementCount - 1 && positionDiff > 0))))) {
|
|
1064
|
+
return;
|
|
1065
|
+
}
|
|
1066
|
+
this.itemsContainer.style.transform = "translateX(" + (this.initialTranslate + (this.enableRtl ? positionDiff : -positionDiff)) + "px)";
|
|
1067
|
+
};
|
|
1068
|
+
Carousel.prototype.swipStop = function () {
|
|
1069
|
+
var time = Date.now() - this.timeStampStart;
|
|
1070
|
+
var distanceX = this.getTranslateValue(this.itemsContainer) - this.initialTranslate;
|
|
1071
|
+
distanceX = distanceX < 0 ? distanceX * -1 : distanceX;
|
|
1072
|
+
if (this.isSwipe) {
|
|
1073
|
+
var offsetDist = distanceX * (Browser.isDevice ? 6 : 1.66);
|
|
1074
|
+
this.itemsContainer.style.transitionDuration = (((Browser.isDevice ? distanceX : offsetDist) / time) / 10) + 's';
|
|
1075
|
+
}
|
|
1076
|
+
var slideWidth = this.itemsContainer.firstElementChild.clientWidth;
|
|
1077
|
+
var threshold = slideWidth / 2;
|
|
1078
|
+
this.itemsContainer.classList.remove('e-swipe-start');
|
|
1079
|
+
var value = this.getTranslateValue(this.itemsContainer);
|
|
1080
|
+
if (value - this.initialTranslate < -threshold) {
|
|
1081
|
+
this.swipeNavigation(!this.enableRtl);
|
|
1082
|
+
}
|
|
1083
|
+
else if (value - this.initialTranslate > threshold) {
|
|
1084
|
+
this.swipeNavigation(this.enableRtl);
|
|
1085
|
+
}
|
|
1086
|
+
else {
|
|
1087
|
+
this.itemsContainer.style.transform = "translateX(" + this.initialTranslate + "px)";
|
|
1088
|
+
if (this.animationEffect === 'Fade') {
|
|
1089
|
+
this.itemsContainer.classList.add('e-fade-in-out');
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
};
|
|
1093
|
+
Carousel.prototype.swipeNavigation = function (isRtl) {
|
|
1094
|
+
if (isRtl) {
|
|
1095
|
+
this.next();
|
|
1096
|
+
}
|
|
1097
|
+
else {
|
|
1098
|
+
this.prev();
|
|
1099
|
+
}
|
|
1100
|
+
};
|
|
1101
|
+
Carousel.prototype.swipeModehandlers = function () {
|
|
1102
|
+
if ((this.swipeMode & CarouselSwipeMode.Touch) === CarouselSwipeMode.Touch) {
|
|
1103
|
+
EventHandler.add(this.itemsContainer, 'touchstart', this.swipeStart, this);
|
|
1104
|
+
EventHandler.add(this.itemsContainer, 'touchmove', this.swiping, this);
|
|
1105
|
+
EventHandler.add(this.itemsContainer, 'touchend', this.swipStop, this);
|
|
1106
|
+
}
|
|
1107
|
+
if ((this.swipeMode & CarouselSwipeMode.Mouse) === CarouselSwipeMode.Mouse) {
|
|
1108
|
+
EventHandler.add(this.itemsContainer, 'mousedown', this.swipeStart, this);
|
|
1109
|
+
EventHandler.add(this.itemsContainer, 'mousemove', this.swiping, this);
|
|
1110
|
+
EventHandler.add(this.itemsContainer, 'mouseup', this.swipStop, this);
|
|
1111
|
+
}
|
|
1112
|
+
if ((this.swipeMode === 0) && (this.swipeMode & CarouselSwipeMode.Mouse & CarouselSwipeMode.Touch) ===
|
|
1113
|
+
(CarouselSwipeMode.Mouse & CarouselSwipeMode.Touch)) {
|
|
1114
|
+
EventHandler.add(this.itemsContainer, 'mousedown touchstart', this.swipeStart, this);
|
|
1115
|
+
EventHandler.add(this.itemsContainer, 'mousemove touchmove', this.swiping, this);
|
|
1116
|
+
EventHandler.add(this.itemsContainer, 'mouseup touchend', this.swipStop, this);
|
|
1117
|
+
}
|
|
1118
|
+
};
|
|
1119
|
+
Carousel.prototype.resizeHandler = function () {
|
|
1120
|
+
if (this.itemsContainer && this.itemsContainer.firstElementChild) {
|
|
1121
|
+
var numOfItems = this.getNumOfItems();
|
|
1122
|
+
var slideWidth = this.itemsContainer.firstElementChild.clientWidth;
|
|
1123
|
+
if (this.loop) {
|
|
1124
|
+
this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + numOfItems);
|
|
1125
|
+
}
|
|
1126
|
+
else {
|
|
1127
|
+
this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex);
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
};
|
|
1131
|
+
Carousel.prototype.wireEvents = function () {
|
|
1132
|
+
if (this.animationEffect !== 'Custom' && this.enableTouchSwipe) {
|
|
1133
|
+
this.swipeModehandlers();
|
|
1134
|
+
}
|
|
1135
|
+
EventHandler.add(this.element, 'focusin focusout', this.onFocusActions, this);
|
|
1136
|
+
EventHandler.add(this.element, 'mouseenter mouseleave', this.onHoverActions, this);
|
|
1137
|
+
EventHandler.add(this.element.firstElementChild, 'animationend', this.onTransitionEnd, this);
|
|
1138
|
+
EventHandler.add(this.element.firstElementChild, 'transitionend', this.onTransitionEnd, this);
|
|
1139
|
+
EventHandler.add(window, 'resize', this.resizeHandler, this);
|
|
1140
|
+
};
|
|
1141
|
+
Carousel.prototype.unWireEvents = function () {
|
|
1142
|
+
var _this = this;
|
|
1143
|
+
var indicators = [].slice.call(this.element.querySelectorAll("." + CLS_INDICATOR_BAR));
|
|
1144
|
+
indicators.forEach(function (indicator) {
|
|
1145
|
+
EventHandler.remove(indicator, 'click', _this.indicatorClickHandler);
|
|
1146
|
+
});
|
|
1147
|
+
var navigators = [].slice.call(this.element.querySelectorAll("." + CLS_PREVIOUS + ",." + CLS_NEXT));
|
|
1148
|
+
navigators.forEach(function (navigator) {
|
|
1149
|
+
EventHandler.remove(navigator, 'click', _this.navigatorClickHandler);
|
|
1150
|
+
});
|
|
1151
|
+
var playIcon = this.element.querySelector("." + CLS_PLAY_PAUSE);
|
|
1152
|
+
if (playIcon) {
|
|
1153
|
+
EventHandler.remove(playIcon, 'click', this.playButtonClickHandler);
|
|
1154
|
+
}
|
|
1155
|
+
EventHandler.remove(this.element.firstElementChild, 'animationend', this.onTransitionEnd);
|
|
1156
|
+
EventHandler.remove(this.element.firstElementChild, 'transitionend', this.onTransitionEnd);
|
|
1157
|
+
EventHandler.clearEvents(this.element);
|
|
1158
|
+
EventHandler.clearEvents(this.itemsContainer);
|
|
1159
|
+
EventHandler.remove(window, 'resize', this.resizeHandler);
|
|
1160
|
+
};
|
|
1161
|
+
/**
|
|
1162
|
+
* Method to transit from the current slide to the previous slide.
|
|
1163
|
+
*
|
|
1164
|
+
* @returns {void}
|
|
1165
|
+
*/
|
|
1166
|
+
Carousel.prototype.prev = function () {
|
|
1167
|
+
if (!this.loop && this.selectedIndex === 0) {
|
|
1168
|
+
return;
|
|
1169
|
+
}
|
|
1170
|
+
var index = (this.selectedIndex === 0) ? this.slideItems.length - 1 : this.selectedIndex - 1;
|
|
1171
|
+
this.setActiveSlide(index, 'Previous');
|
|
1172
|
+
this.autoSlide();
|
|
1173
|
+
};
|
|
1174
|
+
/**
|
|
1175
|
+
* Method to transit from the current slide to the next slide.
|
|
1176
|
+
*
|
|
1177
|
+
* @returns {void}
|
|
1178
|
+
*/
|
|
1179
|
+
Carousel.prototype.next = function () {
|
|
1180
|
+
if (!this.loop && this.selectedIndex === this.slideItems.length - 1) {
|
|
1181
|
+
return;
|
|
1182
|
+
}
|
|
1183
|
+
var index = (this.selectedIndex === this.slideItems.length - 1) ? 0 : this.selectedIndex + 1;
|
|
1184
|
+
this.setActiveSlide(index, 'Next');
|
|
1185
|
+
this.autoSlide();
|
|
1186
|
+
};
|
|
1187
|
+
/**
|
|
1188
|
+
* Method to play the slides programmatically.
|
|
1189
|
+
*
|
|
1190
|
+
* @returns {void}
|
|
1191
|
+
*/
|
|
1192
|
+
Carousel.prototype.play = function () {
|
|
1193
|
+
var playIcon = this.element.querySelector("." + CLS_PLAY_ICON);
|
|
1194
|
+
if (this.showPlayButton && playIcon) {
|
|
1195
|
+
classList(playIcon, [CLS_PAUSE_ICON], [CLS_PLAY_ICON]);
|
|
1196
|
+
var playButton = this.element.querySelector("." + CLS_PLAY_BUTTON);
|
|
1197
|
+
playButton.setAttribute('aria-label', this.localeObj.getConstant('pauseSlideTransition'));
|
|
1198
|
+
}
|
|
1199
|
+
this.setProperties({ autoPlay: true }, true);
|
|
1200
|
+
this.itemsContainer.setAttribute('aria-live', 'off');
|
|
1201
|
+
this.applySlideInterval();
|
|
1202
|
+
};
|
|
1203
|
+
/**
|
|
1204
|
+
* Method to pause the slides programmatically.
|
|
1205
|
+
*
|
|
1206
|
+
* @returns {void}
|
|
1207
|
+
*/
|
|
1208
|
+
Carousel.prototype.pause = function () {
|
|
1209
|
+
var pauseIcon = this.element.querySelector("." + CLS_PAUSE_ICON);
|
|
1210
|
+
if (this.showPlayButton && pauseIcon) {
|
|
1211
|
+
var playButton = this.element.querySelector("." + CLS_PLAY_BUTTON);
|
|
1212
|
+
playButton.setAttribute('aria-label', this.localeObj.getConstant('playSlideTransition'));
|
|
1213
|
+
classList(pauseIcon, [CLS_PLAY_ICON], [CLS_PAUSE_ICON]);
|
|
1214
|
+
}
|
|
1215
|
+
this.setProperties({ autoPlay: false }, true);
|
|
1216
|
+
this.itemsContainer.setAttribute('aria-live', 'off');
|
|
1217
|
+
this.resetSlideInterval();
|
|
1218
|
+
};
|
|
1219
|
+
/**
|
|
1220
|
+
* Method to render react and angular templates
|
|
1221
|
+
*
|
|
1222
|
+
* @returns {void}
|
|
1223
|
+
* @private
|
|
1224
|
+
*/
|
|
1225
|
+
Carousel.prototype.renderTemplates = function () {
|
|
1226
|
+
if (this.isAngular || this.isReact) {
|
|
1227
|
+
this.renderReactTemplates();
|
|
1228
|
+
}
|
|
1229
|
+
};
|
|
1230
|
+
/**
|
|
1231
|
+
* Method to reset react and angular templates
|
|
1232
|
+
*
|
|
1233
|
+
* @param {string[]} templates Accepts the template ID
|
|
1234
|
+
* @returns {void}
|
|
1235
|
+
* @private
|
|
1236
|
+
*/
|
|
1237
|
+
Carousel.prototype.resetTemplates = function (templates) {
|
|
1238
|
+
if (this.isAngular || this.isReact) {
|
|
1239
|
+
this.clearTemplate(templates);
|
|
1240
|
+
}
|
|
1241
|
+
};
|
|
1242
|
+
/**
|
|
1243
|
+
* Method for destroy the carousel component.
|
|
1244
|
+
*
|
|
1245
|
+
* @returns {void}
|
|
1246
|
+
*/
|
|
1247
|
+
Carousel.prototype.destroy = function () {
|
|
1248
|
+
var _this = this;
|
|
1249
|
+
this.resetTemplates();
|
|
1250
|
+
if (this.touchModule) {
|
|
1251
|
+
this.touchModule.destroy();
|
|
1252
|
+
this.touchModule = null;
|
|
1253
|
+
}
|
|
1254
|
+
if (this.keyModule) {
|
|
1255
|
+
this.keyModule.destroy();
|
|
1256
|
+
this.keyModule = null;
|
|
1257
|
+
}
|
|
1258
|
+
this.resetSlideInterval();
|
|
1259
|
+
this.destroyButtons();
|
|
1260
|
+
this.unWireEvents();
|
|
1261
|
+
[].slice.call(this.element.children).forEach(function (ele) { _this.element.removeChild(ele); });
|
|
1262
|
+
removeClass([this.element], [CLS_CAROUSEL, this.cssClass, CLS_RTL, CLS_SWIPE]);
|
|
1263
|
+
['role', 'style'].forEach(function (attr) { _this.element.removeAttribute(attr); });
|
|
1264
|
+
this.itemsContainer = null;
|
|
1265
|
+
_super.prototype.destroy.call(this);
|
|
1266
|
+
};
|
|
1267
|
+
__decorate([
|
|
1268
|
+
Collection([], CarouselItem)
|
|
1269
|
+
], Carousel.prototype, "items", void 0);
|
|
1270
|
+
__decorate([
|
|
1271
|
+
Property('Slide')
|
|
1272
|
+
], Carousel.prototype, "animationEffect", void 0);
|
|
1273
|
+
__decorate([
|
|
1274
|
+
Property()
|
|
1275
|
+
], Carousel.prototype, "previousButtonTemplate", void 0);
|
|
1276
|
+
__decorate([
|
|
1277
|
+
Property()
|
|
1278
|
+
], Carousel.prototype, "nextButtonTemplate", void 0);
|
|
1279
|
+
__decorate([
|
|
1280
|
+
Property()
|
|
1281
|
+
], Carousel.prototype, "indicatorsTemplate", void 0);
|
|
1282
|
+
__decorate([
|
|
1283
|
+
Property()
|
|
1284
|
+
], Carousel.prototype, "playButtonTemplate", void 0);
|
|
1285
|
+
__decorate([
|
|
1286
|
+
Property()
|
|
1287
|
+
], Carousel.prototype, "cssClass", void 0);
|
|
1288
|
+
__decorate([
|
|
1289
|
+
Property([])
|
|
1290
|
+
], Carousel.prototype, "dataSource", void 0);
|
|
1291
|
+
__decorate([
|
|
1292
|
+
Property()
|
|
1293
|
+
], Carousel.prototype, "itemTemplate", void 0);
|
|
1294
|
+
__decorate([
|
|
1295
|
+
Property(0)
|
|
1296
|
+
], Carousel.prototype, "selectedIndex", void 0);
|
|
1297
|
+
__decorate([
|
|
1298
|
+
Property('100%')
|
|
1299
|
+
], Carousel.prototype, "width", void 0);
|
|
1300
|
+
__decorate([
|
|
1301
|
+
Property('100%')
|
|
1302
|
+
], Carousel.prototype, "height", void 0);
|
|
1303
|
+
__decorate([
|
|
1304
|
+
Property(5000)
|
|
1305
|
+
], Carousel.prototype, "interval", void 0);
|
|
1306
|
+
__decorate([
|
|
1307
|
+
Property(true)
|
|
1308
|
+
], Carousel.prototype, "autoPlay", void 0);
|
|
1309
|
+
__decorate([
|
|
1310
|
+
Property(true)
|
|
1311
|
+
], Carousel.prototype, "pauseOnHover", void 0);
|
|
1312
|
+
__decorate([
|
|
1313
|
+
Property(true)
|
|
1314
|
+
], Carousel.prototype, "loop", void 0);
|
|
1315
|
+
__decorate([
|
|
1316
|
+
Property(false)
|
|
1317
|
+
], Carousel.prototype, "showPlayButton", void 0);
|
|
1318
|
+
__decorate([
|
|
1319
|
+
Property(true)
|
|
1320
|
+
], Carousel.prototype, "enableTouchSwipe", void 0);
|
|
1321
|
+
__decorate([
|
|
1322
|
+
Property(true)
|
|
1323
|
+
], Carousel.prototype, "allowKeyboardInteraction", void 0);
|
|
1324
|
+
__decorate([
|
|
1325
|
+
Property(true)
|
|
1326
|
+
], Carousel.prototype, "showIndicators", void 0);
|
|
1327
|
+
__decorate([
|
|
1328
|
+
Property('Default')
|
|
1329
|
+
], Carousel.prototype, "indicatorsType", void 0);
|
|
1330
|
+
__decorate([
|
|
1331
|
+
Property('Visible')
|
|
1332
|
+
], Carousel.prototype, "buttonsVisibility", void 0);
|
|
1333
|
+
__decorate([
|
|
1334
|
+
Property(false)
|
|
1335
|
+
], Carousel.prototype, "partialVisible", void 0);
|
|
1336
|
+
__decorate([
|
|
1337
|
+
Property(CarouselSwipeMode.Touch)
|
|
1338
|
+
], Carousel.prototype, "swipeMode", void 0);
|
|
1339
|
+
__decorate([
|
|
1340
|
+
Property()
|
|
1341
|
+
], Carousel.prototype, "htmlAttributes", void 0);
|
|
1342
|
+
__decorate([
|
|
1343
|
+
Event()
|
|
1344
|
+
], Carousel.prototype, "slideChanging", void 0);
|
|
1345
|
+
__decorate([
|
|
1346
|
+
Event()
|
|
1347
|
+
], Carousel.prototype, "slideChanged", void 0);
|
|
1348
|
+
Carousel = __decorate([
|
|
1349
|
+
NotifyPropertyChanges
|
|
1350
|
+
], Carousel);
|
|
1351
|
+
return Carousel;
|
|
1352
|
+
}(Component));
|
|
1353
|
+
export { Carousel };
|