@ojiepermana/angular 22.1.13 → 22.2.0
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/README.md +8 -6
- package/SUPPORT.md +3 -3
- package/chart/README.md +1 -1
- package/component/README.md +2 -2
- package/component/calendar/README.md +3 -15
- package/component/drawer/README.md +1 -2
- package/fesm2022/ojiepermana-angular-chart-area.mjs +352 -137
- package/fesm2022/ojiepermana-angular-chart-bar.mjs +744 -524
- package/fesm2022/ojiepermana-angular-chart-core.mjs +1140 -1344
- package/fesm2022/ojiepermana-angular-chart-line.mjs +393 -147
- package/fesm2022/ojiepermana-angular-chart-pie.mjs +408 -179
- package/fesm2022/ojiepermana-angular-chart-primitives.mjs +1262 -920
- package/fesm2022/ojiepermana-angular-chart-radar.mjs +473 -205
- package/fesm2022/ojiepermana-angular-chart-radial.mjs +425 -182
- package/fesm2022/ojiepermana-angular-chart-scatter.mjs +386 -210
- package/fesm2022/ojiepermana-angular-chart.mjs +3 -19
- package/fesm2022/ojiepermana-angular-component-accordion.mjs +485 -243
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +963 -325
- package/fesm2022/ojiepermana-angular-component-alert.mjs +266 -103
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +80 -35
- package/fesm2022/ojiepermana-angular-component-avatar.mjs +402 -135
- package/fesm2022/ojiepermana-angular-component-badge.mjs +109 -59
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +410 -142
- package/fesm2022/ojiepermana-angular-component-button-group.mjs +249 -96
- package/fesm2022/ojiepermana-angular-component-button.mjs +153 -75
- package/fesm2022/ojiepermana-angular-component-calendar.mjs +531 -418
- package/fesm2022/ojiepermana-angular-component-card.mjs +457 -171
- package/fesm2022/ojiepermana-angular-component-carousel.mjs +642 -272
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs +312 -108
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs +299 -115
- package/fesm2022/ojiepermana-angular-component-combobox.mjs +396 -183
- package/fesm2022/ojiepermana-angular-component-command.mjs +807 -347
- package/fesm2022/ojiepermana-angular-component-composer.mjs +807 -330
- package/fesm2022/ojiepermana-angular-component-context-menu.mjs +196 -161
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs +650 -338
- package/fesm2022/ojiepermana-angular-component-dialog.mjs +710 -316
- package/fesm2022/ojiepermana-angular-component-drawer.mjs +2 -5
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +1212 -646
- package/fesm2022/ojiepermana-angular-component-editor.mjs +987 -502
- package/fesm2022/ojiepermana-angular-component-empty.mjs +350 -137
- package/fesm2022/ojiepermana-angular-component-form.mjs +813 -434
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs +486 -277
- package/fesm2022/ojiepermana-angular-component-icon.mjs +241 -140
- package/fesm2022/ojiepermana-angular-component-input-group.mjs +449 -176
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs +891 -488
- package/fesm2022/ojiepermana-angular-component-input.mjs +86 -55
- package/fesm2022/ojiepermana-angular-component-item.mjs +713 -261
- package/fesm2022/ojiepermana-angular-component-kanban.mjs +714 -216
- package/fesm2022/ojiepermana-angular-component-kbd.mjs +124 -52
- package/fesm2022/ojiepermana-angular-component-label.mjs +82 -31
- package/fesm2022/ojiepermana-angular-component-menubar.mjs +479 -329
- package/fesm2022/ojiepermana-angular-component-native-select.mjs +167 -65
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +683 -380
- package/fesm2022/ojiepermana-angular-component-pagination.mjs +277 -94
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs +1283 -607
- package/fesm2022/ojiepermana-angular-component-popover.mjs +291 -204
- package/fesm2022/ojiepermana-angular-component-progress.mjs +176 -53
- package/fesm2022/ojiepermana-angular-component-radio.mjs +449 -142
- package/fesm2022/ojiepermana-angular-component-resizable.mjs +659 -453
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +117 -39
- package/fesm2022/ojiepermana-angular-component-segmented-control.mjs +351 -172
- package/fesm2022/ojiepermana-angular-component-select.mjs +475 -345
- package/fesm2022/ojiepermana-angular-component-separator.mjs +102 -35
- package/fesm2022/ojiepermana-angular-component-sheet.mjs +797 -347
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs +62 -29
- package/fesm2022/ojiepermana-angular-component-slider.mjs +592 -376
- package/fesm2022/ojiepermana-angular-component-spinner.mjs +135 -38
- package/fesm2022/ojiepermana-angular-component-switch.mjs +315 -103
- package/fesm2022/ojiepermana-angular-component-table.mjs +440 -153
- package/fesm2022/ojiepermana-angular-component-tabs.mjs +590 -317
- package/fesm2022/ojiepermana-angular-component-textarea.mjs +85 -50
- package/fesm2022/ojiepermana-angular-component-timeline.mjs +609 -231
- package/fesm2022/ojiepermana-angular-component-toast.mjs +229 -243
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +573 -288
- package/fesm2022/ojiepermana-angular-component-toggle.mjs +187 -78
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs +798 -517
- package/fesm2022/ojiepermana-angular-component-utils-core.mjs +159 -292
- package/fesm2022/ojiepermana-angular-component-utils-overlay.mjs +46 -58
- package/fesm2022/ojiepermana-angular-component-utils-scale.mjs +76 -38
- package/fesm2022/ojiepermana-angular-component-utils.mjs +2 -8
- package/fesm2022/ojiepermana-angular-component.mjs +0 -10
- package/fesm2022/ojiepermana-angular-navigation-core.mjs +13 -23
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs +35 -24
- package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-BKCeWzml.mjs +129 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-DFEJK2jD.mjs +811 -0
- package/fesm2022/{ojiepermana-angular-navigation-navigation-entry-grid.component-Cd-jh6tg.mjs → ojiepermana-angular-navigation-navigation-entry-grid.component-mpK9Ar08.mjs} +387 -183
- package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-BPgH7FJk.mjs +650 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-DMpYcD9t.mjs +662 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-item.component-Basp5SIk.mjs +1228 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-list.component-YUzHI9Pj.mjs +311 -0
- package/fesm2022/ojiepermana-angular-navigation-service.mjs +542 -724
- package/fesm2022/ojiepermana-angular-navigation-types.mjs +27 -56
- package/fesm2022/ojiepermana-angular-navigation.mjs +3052 -4
- package/fesm2022/ojiepermana-angular-sdk.mjs +91 -201
- package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +1115 -737
- package/fesm2022/ojiepermana-angular-theme-layout-services.mjs +245 -328
- package/fesm2022/ojiepermana-angular-theme-layout-types.mjs +35 -38
- package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +1719 -552
- package/fesm2022/ojiepermana-angular-theme-layout.mjs +847 -491
- package/fesm2022/ojiepermana-angular-theme-page-core.mjs +288 -358
- package/fesm2022/ojiepermana-angular-theme-page-filter.mjs +362 -224
- package/fesm2022/ojiepermana-angular-theme-page-overview.mjs +88 -0
- package/fesm2022/ojiepermana-angular-theme-page-root.mjs +576 -254
- package/fesm2022/ojiepermana-angular-theme-page-side.mjs +317 -177
- package/fesm2022/ojiepermana-angular-theme-page-slots.mjs +256 -112
- package/fesm2022/ojiepermana-angular-theme-page.mjs +7 -12
- package/fesm2022/ojiepermana-angular-theme-shell-services.mjs +215 -326
- package/fesm2022/ojiepermana-angular-theme-shell-types.mjs +68 -129
- package/fesm2022/ojiepermana-angular-theme-shell.mjs +907 -378
- package/fesm2022/ojiepermana-angular-theme-styles.mjs +521 -720
- package/fesm2022/ojiepermana-angular-theme.mjs +0 -10
- package/fesm2022/ojiepermana-angular.mjs +5 -24
- package/navigation/README.md +1 -1
- package/package.json +16 -12
- package/sdk/README.md +1 -1
- package/sdk/src/writer/index.js +2 -2
- package/theme/README.md +1 -1
- package/theme/layout/README.md +2 -4
- package/theme/page/README.md +50 -0
- package/theme/styles/README.md +10 -10
- package/theme/styles/css/base/prefers-dark.css +1 -1
- package/theme/styles/css/base/status.css +1 -1
- package/theme/styles/css/color/amber.css +1 -1
- package/theme/styles/css/color/blue.css +1 -1
- package/theme/styles/css/color/cyan.css +1 -1
- package/theme/styles/css/color/emerald.css +1 -1
- package/theme/styles/css/color/fuchsia.css +1 -1
- package/theme/styles/css/color/green.css +1 -1
- package/theme/styles/css/color/indigo.css +1 -1
- package/theme/styles/css/color/lime.css +1 -1
- package/theme/styles/css/color/orange.css +1 -1
- package/theme/styles/css/color/pink.css +1 -1
- package/theme/styles/css/color/purple.css +1 -1
- package/theme/styles/css/color/red.css +1 -1
- package/theme/styles/css/color/rose.css +1 -1
- package/theme/styles/css/color/sky.css +1 -1
- package/theme/styles/css/color/teal.css +1 -1
- package/theme/styles/css/color/violet.css +1 -1
- package/theme/styles/css/color/yellow.css +1 -1
- package/theme/styles/css/neutral/gray.css +1 -1
- package/theme/styles/css/neutral/mauve.css +1 -1
- package/theme/styles/css/neutral/mist.css +1 -1
- package/theme/styles/css/neutral/neutral.css +1 -1
- package/theme/styles/css/neutral/olive.css +1 -1
- package/theme/styles/css/neutral/slate.css +1 -1
- package/theme/styles/css/neutral/stone.css +1 -1
- package/theme/styles/css/neutral/taupe.css +1 -1
- package/theme/styles/css/neutral/zinc.css +1 -1
- package/types/ojiepermana-angular-chart-area.d.ts +126 -63
- package/types/ojiepermana-angular-chart-bar.d.ts +244 -154
- package/types/ojiepermana-angular-chart-core.d.ts +409 -398
- package/types/ojiepermana-angular-chart-line.d.ts +141 -68
- package/types/ojiepermana-angular-chart-pie.d.ts +192 -121
- package/types/ojiepermana-angular-chart-primitives.d.ts +283 -214
- package/types/ojiepermana-angular-chart-radar.d.ts +189 -108
- package/types/ojiepermana-angular-chart-radial.d.ts +177 -106
- package/types/ojiepermana-angular-chart-scatter.d.ts +166 -110
- package/types/ojiepermana-angular-chart.d.ts +3 -2
- package/types/ojiepermana-angular-component-accordion.d.ts +135 -81
- package/types/ojiepermana-angular-component-alert-dialog.d.ts +271 -123
- package/types/ojiepermana-angular-component-alert.d.ts +69 -39
- package/types/ojiepermana-angular-component-aspect-ratio.d.ts +20 -12
- package/types/ojiepermana-angular-component-avatar.d.ts +103 -49
- package/types/ojiepermana-angular-component-badge.d.ts +36 -24
- package/types/ojiepermana-angular-component-breadcrumb.d.ts +79 -40
- package/types/ojiepermana-angular-component-button-group.d.ts +48 -24
- package/types/ojiepermana-angular-component-button.d.ts +44 -27
- package/types/ojiepermana-angular-component-calendar.d.ts +145 -107
- package/types/ojiepermana-angular-component-card.d.ts +112 -63
- package/types/ojiepermana-angular-component-carousel.d.ts +150 -81
- package/types/ojiepermana-angular-component-checkbox.d.ts +96 -38
- package/types/ojiepermana-angular-component-collapsible.d.ts +65 -39
- package/types/ojiepermana-angular-component-combobox.d.ts +100 -55
- package/types/ojiepermana-angular-component-command.d.ts +206 -121
- package/types/ojiepermana-angular-component-composer.d.ts +184 -84
- package/types/ojiepermana-angular-component-context-menu.d.ts +51 -41
- package/types/ojiepermana-angular-component-date-picker.d.ts +199 -109
- package/types/ojiepermana-angular-component-dialog.d.ts +200 -105
- package/types/ojiepermana-angular-component-drawer.d.ts +2 -1
- package/types/ojiepermana-angular-component-dropdown-menu.d.ts +324 -202
- package/types/ojiepermana-angular-component-editor.d.ts +215 -117
- package/types/ojiepermana-angular-component-empty.d.ts +80 -45
- package/types/ojiepermana-angular-component-form.d.ts +185 -121
- package/types/ojiepermana-angular-component-hover-card.d.ts +130 -72
- package/types/ojiepermana-angular-component-icon.d.ts +87 -57
- package/types/ojiepermana-angular-component-input-group.d.ts +93 -46
- package/types/ojiepermana-angular-component-input-otp.d.ts +243 -150
- package/types/ojiepermana-angular-component-input.d.ts +27 -17
- package/types/ojiepermana-angular-component-item.d.ts +160 -84
- package/types/ojiepermana-angular-component-kanban.d.ts +157 -62
- package/types/ojiepermana-angular-component-kbd.d.ts +24 -15
- package/types/ojiepermana-angular-component-label.d.ts +19 -11
- package/types/ojiepermana-angular-component-menubar.d.ts +120 -90
- package/types/ojiepermana-angular-component-native-select.d.ts +37 -24
- package/types/ojiepermana-angular-component-navigation-menu.d.ts +157 -98
- package/types/ojiepermana-angular-component-pagination.d.ts +78 -28
- package/types/ojiepermana-angular-component-pillbox.d.ts +361 -204
- package/types/ojiepermana-angular-component-popover.d.ts +94 -64
- package/types/ojiepermana-angular-component-progress.d.ts +45 -17
- package/types/ojiepermana-angular-component-radio.d.ts +129 -53
- package/types/ojiepermana-angular-component-resizable.d.ts +160 -112
- package/types/ojiepermana-angular-component-scroll-area.d.ts +33 -15
- package/types/ojiepermana-angular-component-segmented-control.d.ts +94 -50
- package/types/ojiepermana-angular-component-select.d.ts +94 -77
- package/types/ojiepermana-angular-component-separator.d.ts +26 -14
- package/types/ojiepermana-angular-component-sheet.d.ts +226 -116
- package/types/ojiepermana-angular-component-skeleton.d.ts +13 -10
- package/types/ojiepermana-angular-component-slider.d.ts +140 -75
- package/types/ojiepermana-angular-component-spinner.d.ts +31 -13
- package/types/ojiepermana-angular-component-switch.d.ts +97 -40
- package/types/ojiepermana-angular-component-table.d.ts +102 -50
- package/types/ojiepermana-angular-component-tabs.d.ts +174 -115
- package/types/ojiepermana-angular-component-textarea.d.ts +27 -17
- package/types/ojiepermana-angular-component-timeline.d.ts +141 -59
- package/types/ojiepermana-angular-component-toast.d.ts +51 -55
- package/types/ojiepermana-angular-component-toggle-group.d.ts +159 -88
- package/types/ojiepermana-angular-component-toggle.d.ts +47 -25
- package/types/ojiepermana-angular-component-tooltip.d.ts +222 -132
- package/types/ojiepermana-angular-component-utils-core.d.ts +81 -90
- package/types/ojiepermana-angular-component-utils-overlay.d.ts +7 -11
- package/types/ojiepermana-angular-component-utils-scale.d.ts +20 -12
- package/types/ojiepermana-angular-component-utils.d.ts +2 -2
- package/types/ojiepermana-angular-component.d.ts +1 -2
- package/types/ojiepermana-angular-navigation-core.d.ts +46 -50
- package/types/ojiepermana-angular-navigation-icon.d.ts +9 -12
- package/types/ojiepermana-angular-navigation-service.d.ts +112 -115
- package/types/ojiepermana-angular-navigation-types.d.ts +121 -125
- package/types/ojiepermana-angular-navigation.d.ts +663 -374
- package/types/ojiepermana-angular-sdk.d.ts +69 -71
- package/types/ojiepermana-angular-theme-component-settings.d.ts +115 -83
- package/types/ojiepermana-angular-theme-layout-services.d.ts +119 -124
- package/types/ojiepermana-angular-theme-layout-types.d.ts +27 -31
- package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +399 -187
- package/types/ojiepermana-angular-theme-layout.d.ts +201 -112
- package/types/ojiepermana-angular-theme-page-core.d.ts +136 -142
- package/types/ojiepermana-angular-theme-page-filter.d.ts +112 -62
- package/types/ojiepermana-angular-theme-page-overview.d.ts +28 -0
- package/types/ojiepermana-angular-theme-page-root.d.ts +172 -88
- package/types/ojiepermana-angular-theme-page-side.d.ts +89 -49
- package/types/ojiepermana-angular-theme-page-slots.d.ts +58 -37
- package/types/ojiepermana-angular-theme-page.d.ts +7 -5
- package/types/ojiepermana-angular-theme-shell-services.d.ts +119 -125
- package/types/ojiepermana-angular-theme-shell-types.d.ts +38 -41
- package/types/ojiepermana-angular-theme-shell.d.ts +139 -61
- package/types/ojiepermana-angular-theme-styles.d.ts +184 -196
- package/types/ojiepermana-angular-theme.d.ts +1 -2
- package/types/ojiepermana-angular.d.ts +5 -5
- package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-CDBxQ8rk.mjs +0 -91
- package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-DBQHdvGa.mjs +0 -512
- package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-BCGvhoYj.mjs +0 -404
- package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-Dk_03e-6.mjs +0 -466
- package/fesm2022/ojiepermana-angular-navigation-ojiepermana-angular-navigation-DNKU6viC.mjs +0 -2642
|
@@ -1,224 +1,515 @@
|
|
|
1
|
-
import { isPlatformBrowser } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import EmblaCarousel from
|
|
5
|
-
import { cn } from
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
1
|
+
import { isPlatformBrowser } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, Directive, PLATFORM_ID, computed, effect, forwardRef, inject, input, output, signal, viewChild } from "@angular/core";
|
|
4
|
+
import EmblaCarousel from "embla-carousel";
|
|
5
|
+
import { cn } from "@ojiepermana/angular/component/utils/core";
|
|
6
|
+
var CarouselContextBase = class CarouselContextBase {
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
8
|
+
minVersion: "12.0.0",
|
|
9
|
+
version: "22.2.0",
|
|
10
|
+
ngImport: i0,
|
|
11
|
+
type: CarouselContextBase,
|
|
12
|
+
deps: [],
|
|
13
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
14
|
+
});
|
|
15
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
16
|
+
minVersion: "14.0.0",
|
|
17
|
+
version: "22.2.0",
|
|
18
|
+
type: CarouselContextBase,
|
|
19
|
+
isStandalone: true,
|
|
20
|
+
ngImport: i0
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
24
|
+
minVersion: "12.0.0",
|
|
25
|
+
version: "22.2.0",
|
|
26
|
+
ngImport: i0,
|
|
27
|
+
type: CarouselContextBase,
|
|
28
|
+
decorators: [{ type: Directive }]
|
|
29
|
+
});
|
|
30
|
+
var CarouselComponent = class CarouselComponent extends CarouselContextBase {
|
|
31
|
+
orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
|
|
32
|
+
opts = input({}, ...ngDevMode ? [{ debugName: "opts" }] : /* istanbul ignore next */ []);
|
|
33
|
+
plugins = input([], ...ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []);
|
|
34
|
+
keyboard = input(true, ...ngDevMode ? [{ debugName: "keyboard" }] : /* istanbul ignore next */ []);
|
|
35
|
+
label = input("Carousel", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
36
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
37
|
+
apiReady = output();
|
|
38
|
+
apiChange = output();
|
|
39
|
+
selectedIndex = signal(0, ...ngDevMode ? [{ debugName: "selectedIndex" }] : /* istanbul ignore next */ []);
|
|
40
|
+
slideCount = signal(0, ...ngDevMode ? [{ debugName: "slideCount" }] : /* istanbul ignore next */ []);
|
|
41
|
+
canScrollPrev = signal(false, ...ngDevMode ? [{ debugName: "canScrollPrev" }] : /* istanbul ignore next */ []);
|
|
42
|
+
canScrollNext = signal(false, ...ngDevMode ? [{ debugName: "canScrollNext" }] : /* istanbul ignore next */ []);
|
|
43
|
+
isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
|
|
44
|
+
viewport = signal(null, ...ngDevMode ? [{ debugName: "viewport" }] : /* istanbul ignore next */ []);
|
|
45
|
+
api = null;
|
|
46
|
+
classes = computed(() => cn("relative block", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
47
|
+
constructor() {
|
|
48
|
+
super();
|
|
49
|
+
effect((onCleanup) => {
|
|
50
|
+
const viewport = this.viewport();
|
|
51
|
+
const orientation = this.orientation();
|
|
52
|
+
const opts = this.opts();
|
|
53
|
+
const plugins = this.plugins();
|
|
54
|
+
if (!this.isBrowser || !viewport) {
|
|
55
|
+
this.api = null;
|
|
56
|
+
this.resetState();
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const carousel = EmblaCarousel(viewport, {
|
|
60
|
+
...opts,
|
|
61
|
+
axis: orientation === "horizontal" ? "x" : "y"
|
|
62
|
+
}, [...plugins]);
|
|
63
|
+
const updateState = () => this.updateState(carousel);
|
|
64
|
+
this.api = carousel;
|
|
65
|
+
this.apiChange.emit(carousel);
|
|
66
|
+
this.apiReady.emit(carousel);
|
|
67
|
+
updateState();
|
|
68
|
+
carousel.on("select", updateState);
|
|
69
|
+
carousel.on("reInit", updateState);
|
|
70
|
+
carousel.on("resize", updateState);
|
|
71
|
+
onCleanup(() => {
|
|
72
|
+
carousel.destroy();
|
|
73
|
+
if (this.api === carousel) {
|
|
74
|
+
this.api = null;
|
|
75
|
+
this.apiChange.emit(null);
|
|
76
|
+
this.resetState();
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
registerViewport(viewport) {
|
|
82
|
+
this.viewport.set(viewport);
|
|
83
|
+
}
|
|
84
|
+
unregisterViewport(viewport) {
|
|
85
|
+
if (this.viewport() === viewport) this.viewport.set(null);
|
|
86
|
+
}
|
|
87
|
+
scrollPrev() {
|
|
88
|
+
this.api?.scrollPrev();
|
|
89
|
+
}
|
|
90
|
+
scrollNext() {
|
|
91
|
+
this.api?.scrollNext();
|
|
92
|
+
}
|
|
93
|
+
scrollTo(index) {
|
|
94
|
+
this.api?.scrollTo(index);
|
|
95
|
+
}
|
|
96
|
+
onKeydown(event) {
|
|
97
|
+
if (!this.keyboard()) return;
|
|
98
|
+
const horizontal = this.orientation() === "horizontal";
|
|
99
|
+
const previousKey = horizontal ? "ArrowLeft" : "ArrowUp";
|
|
100
|
+
const nextKey = horizontal ? "ArrowRight" : "ArrowDown";
|
|
101
|
+
if (event.key === previousKey) {
|
|
102
|
+
event.preventDefault();
|
|
103
|
+
this.scrollPrev();
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
if (event.key === nextKey) {
|
|
107
|
+
event.preventDefault();
|
|
108
|
+
this.scrollNext();
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
if (event.key === "Home") {
|
|
112
|
+
event.preventDefault();
|
|
113
|
+
this.scrollTo(0);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
if (event.key === "End") {
|
|
117
|
+
event.preventDefault();
|
|
118
|
+
this.scrollTo(Math.max(0, this.slideCount() - 1));
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
updateState(carousel) {
|
|
122
|
+
this.slideCount.set(carousel.scrollSnapList().length);
|
|
123
|
+
this.selectedIndex.set(carousel.selectedScrollSnap());
|
|
124
|
+
this.canScrollPrev.set(carousel.canScrollPrev());
|
|
125
|
+
this.canScrollNext.set(carousel.canScrollNext());
|
|
126
|
+
}
|
|
127
|
+
resetState() {
|
|
128
|
+
this.selectedIndex.set(0);
|
|
129
|
+
this.slideCount.set(0);
|
|
130
|
+
this.canScrollPrev.set(false);
|
|
131
|
+
this.canScrollNext.set(false);
|
|
132
|
+
}
|
|
133
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
134
|
+
minVersion: "12.0.0",
|
|
135
|
+
version: "22.2.0",
|
|
136
|
+
ngImport: i0,
|
|
137
|
+
type: CarouselComponent,
|
|
138
|
+
deps: [],
|
|
139
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
140
|
+
});
|
|
141
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
142
|
+
minVersion: "17.1.0",
|
|
143
|
+
version: "22.2.0",
|
|
144
|
+
type: CarouselComponent,
|
|
145
|
+
isStandalone: true,
|
|
146
|
+
selector: "Carousel",
|
|
147
|
+
inputs: {
|
|
148
|
+
orientation: {
|
|
149
|
+
classPropertyName: "orientation",
|
|
150
|
+
publicName: "orientation",
|
|
151
|
+
isSignal: true,
|
|
152
|
+
isRequired: false,
|
|
153
|
+
transformFunction: null
|
|
154
|
+
},
|
|
155
|
+
opts: {
|
|
156
|
+
classPropertyName: "opts",
|
|
157
|
+
publicName: "opts",
|
|
158
|
+
isSignal: true,
|
|
159
|
+
isRequired: false,
|
|
160
|
+
transformFunction: null
|
|
161
|
+
},
|
|
162
|
+
plugins: {
|
|
163
|
+
classPropertyName: "plugins",
|
|
164
|
+
publicName: "plugins",
|
|
165
|
+
isSignal: true,
|
|
166
|
+
isRequired: false,
|
|
167
|
+
transformFunction: null
|
|
168
|
+
},
|
|
169
|
+
keyboard: {
|
|
170
|
+
classPropertyName: "keyboard",
|
|
171
|
+
publicName: "keyboard",
|
|
172
|
+
isSignal: true,
|
|
173
|
+
isRequired: false,
|
|
174
|
+
transformFunction: null
|
|
175
|
+
},
|
|
176
|
+
label: {
|
|
177
|
+
classPropertyName: "label",
|
|
178
|
+
publicName: "label",
|
|
179
|
+
isSignal: true,
|
|
180
|
+
isRequired: false,
|
|
181
|
+
transformFunction: null
|
|
182
|
+
},
|
|
183
|
+
class: {
|
|
184
|
+
classPropertyName: "class",
|
|
185
|
+
publicName: "class",
|
|
186
|
+
isSignal: true,
|
|
187
|
+
isRequired: false,
|
|
188
|
+
transformFunction: null
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
outputs: {
|
|
192
|
+
apiReady: "apiReady",
|
|
193
|
+
apiChange: "apiChange"
|
|
194
|
+
},
|
|
195
|
+
host: {
|
|
196
|
+
listeners: { "keydown": "onKeydown($event)" },
|
|
197
|
+
properties: {
|
|
198
|
+
"class": "classes()",
|
|
199
|
+
"attr.role": "\"region\"",
|
|
200
|
+
"attr.aria-roledescription": "\"carousel\"",
|
|
201
|
+
"attr.aria-label": "label()",
|
|
202
|
+
"attr.data-orientation": "orientation()",
|
|
203
|
+
"attr.tabindex": "keyboard() ? 0 : null"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
providers: [{
|
|
207
|
+
provide: CarouselContextBase,
|
|
208
|
+
useExisting: forwardRef(() => CarouselComponent)
|
|
209
|
+
}],
|
|
210
|
+
usesInheritance: true,
|
|
211
|
+
ngImport: i0,
|
|
212
|
+
template: `<ng-content />`,
|
|
213
|
+
isInline: true
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
217
|
+
minVersion: "12.0.0",
|
|
218
|
+
version: "22.2.0",
|
|
219
|
+
ngImport: i0,
|
|
220
|
+
type: CarouselComponent,
|
|
221
|
+
decorators: [{
|
|
222
|
+
type: Component,
|
|
223
|
+
args: [{
|
|
224
|
+
selector: "Carousel",
|
|
225
|
+
providers: [{
|
|
226
|
+
provide: CarouselContextBase,
|
|
227
|
+
useExisting: forwardRef(() => CarouselComponent)
|
|
228
|
+
}],
|
|
229
|
+
host: {
|
|
230
|
+
"[class]": "classes()",
|
|
231
|
+
"[attr.role]": "\"region\"",
|
|
232
|
+
"[attr.aria-roledescription]": "\"carousel\"",
|
|
233
|
+
"[attr.aria-label]": "label()",
|
|
234
|
+
"[attr.data-orientation]": "orientation()",
|
|
235
|
+
"[attr.tabindex]": "keyboard() ? 0 : null",
|
|
236
|
+
"(keydown)": "onKeydown($event)"
|
|
237
|
+
},
|
|
238
|
+
template: `<ng-content />`
|
|
239
|
+
}]
|
|
240
|
+
}],
|
|
241
|
+
ctorParameters: () => [],
|
|
242
|
+
propDecorators: {
|
|
243
|
+
orientation: [{
|
|
244
|
+
type: i0.Input,
|
|
245
|
+
args: [{
|
|
246
|
+
isSignal: true,
|
|
247
|
+
alias: "orientation",
|
|
248
|
+
required: false
|
|
249
|
+
}]
|
|
250
|
+
}],
|
|
251
|
+
opts: [{
|
|
252
|
+
type: i0.Input,
|
|
253
|
+
args: [{
|
|
254
|
+
isSignal: true,
|
|
255
|
+
alias: "opts",
|
|
256
|
+
required: false
|
|
257
|
+
}]
|
|
258
|
+
}],
|
|
259
|
+
plugins: [{
|
|
260
|
+
type: i0.Input,
|
|
261
|
+
args: [{
|
|
262
|
+
isSignal: true,
|
|
263
|
+
alias: "plugins",
|
|
264
|
+
required: false
|
|
265
|
+
}]
|
|
266
|
+
}],
|
|
267
|
+
keyboard: [{
|
|
268
|
+
type: i0.Input,
|
|
269
|
+
args: [{
|
|
270
|
+
isSignal: true,
|
|
271
|
+
alias: "keyboard",
|
|
272
|
+
required: false
|
|
273
|
+
}]
|
|
274
|
+
}],
|
|
275
|
+
label: [{
|
|
276
|
+
type: i0.Input,
|
|
277
|
+
args: [{
|
|
278
|
+
isSignal: true,
|
|
279
|
+
alias: "label",
|
|
280
|
+
required: false
|
|
281
|
+
}]
|
|
282
|
+
}],
|
|
283
|
+
class: [{
|
|
284
|
+
type: i0.Input,
|
|
285
|
+
args: [{
|
|
286
|
+
isSignal: true,
|
|
287
|
+
alias: "class",
|
|
288
|
+
required: false
|
|
289
|
+
}]
|
|
290
|
+
}],
|
|
291
|
+
apiReady: [{
|
|
292
|
+
type: i0.Output,
|
|
293
|
+
args: ["apiReady"]
|
|
294
|
+
}],
|
|
295
|
+
apiChange: [{
|
|
296
|
+
type: i0.Output,
|
|
297
|
+
args: ["apiChange"]
|
|
298
|
+
}]
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
var CarouselContentComponent = class CarouselContentComponent {
|
|
302
|
+
ctx = inject(CarouselContextBase);
|
|
303
|
+
viewport = viewChild("viewport", ...ngDevMode ? [{ debugName: "viewport" }] : /* istanbul ignore next */ []);
|
|
304
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
305
|
+
contentClasses = computed(() => cn("flex", this.ctx.orientation() === "horizontal" ? "-ml-4" : "-mt-4 flex-col", this.class()), ...ngDevMode ? [{ debugName: "contentClasses" }] : /* istanbul ignore next */ []);
|
|
306
|
+
ngAfterViewInit() {
|
|
307
|
+
const viewport = this.viewport()?.nativeElement;
|
|
308
|
+
if (viewport) this.ctx.registerViewport(viewport);
|
|
309
|
+
}
|
|
310
|
+
ngOnDestroy() {
|
|
311
|
+
const viewport = this.viewport()?.nativeElement;
|
|
312
|
+
if (viewport) this.ctx.unregisterViewport(viewport);
|
|
313
|
+
}
|
|
314
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
315
|
+
minVersion: "12.0.0",
|
|
316
|
+
version: "22.2.0",
|
|
317
|
+
ngImport: i0,
|
|
318
|
+
type: CarouselContentComponent,
|
|
319
|
+
deps: [],
|
|
320
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
321
|
+
});
|
|
322
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
323
|
+
minVersion: "17.2.0",
|
|
324
|
+
version: "22.2.0",
|
|
325
|
+
type: CarouselContentComponent,
|
|
326
|
+
isStandalone: true,
|
|
327
|
+
selector: "CarouselContent",
|
|
328
|
+
inputs: { class: {
|
|
329
|
+
classPropertyName: "class",
|
|
330
|
+
publicName: "class",
|
|
331
|
+
isSignal: true,
|
|
332
|
+
isRequired: false,
|
|
333
|
+
transformFunction: null
|
|
334
|
+
} },
|
|
335
|
+
host: { properties: { "class": "\"block\"" } },
|
|
336
|
+
viewQueries: [{
|
|
337
|
+
propertyName: "viewport",
|
|
338
|
+
first: true,
|
|
339
|
+
predicate: ["viewport"],
|
|
340
|
+
descendants: true,
|
|
341
|
+
isSignal: true
|
|
342
|
+
}],
|
|
343
|
+
ngImport: i0,
|
|
344
|
+
template: `
|
|
169
345
|
<div #viewport class="overflow-hidden">
|
|
170
346
|
<div [class]="contentClasses()"><ng-content /></div>
|
|
171
347
|
</div>
|
|
172
|
-
`,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
348
|
+
`,
|
|
349
|
+
isInline: true
|
|
350
|
+
});
|
|
351
|
+
};
|
|
352
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
353
|
+
minVersion: "12.0.0",
|
|
354
|
+
version: "22.2.0",
|
|
355
|
+
ngImport: i0,
|
|
356
|
+
type: CarouselContentComponent,
|
|
357
|
+
decorators: [{
|
|
358
|
+
type: Component,
|
|
359
|
+
args: [{
|
|
360
|
+
selector: "CarouselContent",
|
|
361
|
+
host: { "[class]": "\"block\"" },
|
|
362
|
+
template: `
|
|
182
363
|
<div #viewport class="overflow-hidden">
|
|
183
364
|
<div [class]="contentClasses()"><ng-content /></div>
|
|
184
365
|
</div>
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
366
|
+
`
|
|
367
|
+
}]
|
|
368
|
+
}],
|
|
369
|
+
propDecorators: {
|
|
370
|
+
viewport: [{
|
|
371
|
+
type: i0.ViewChild,
|
|
372
|
+
args: ["viewport", { isSignal: true }]
|
|
373
|
+
}],
|
|
374
|
+
class: [{
|
|
375
|
+
type: i0.Input,
|
|
376
|
+
args: [{
|
|
377
|
+
isSignal: true,
|
|
378
|
+
alias: "class",
|
|
379
|
+
required: false
|
|
380
|
+
}]
|
|
381
|
+
}]
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
var CarouselItemComponent = class CarouselItemComponent {
|
|
385
|
+
ctx = inject(CarouselContextBase);
|
|
386
|
+
ariaLabel = input(null, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
387
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
388
|
+
classes = computed(() => cn("min-w-0 shrink-0 grow-0 basis-full", this.ctx.orientation() === "horizontal" ? "pl-4" : "pt-4", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
389
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
390
|
+
minVersion: "12.0.0",
|
|
391
|
+
version: "22.2.0",
|
|
392
|
+
ngImport: i0,
|
|
393
|
+
type: CarouselItemComponent,
|
|
394
|
+
deps: [],
|
|
395
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
396
|
+
});
|
|
397
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
398
|
+
minVersion: "17.1.0",
|
|
399
|
+
version: "22.2.0",
|
|
400
|
+
type: CarouselItemComponent,
|
|
401
|
+
isStandalone: true,
|
|
402
|
+
selector: "CarouselItem",
|
|
403
|
+
inputs: {
|
|
404
|
+
ariaLabel: {
|
|
405
|
+
classPropertyName: "ariaLabel",
|
|
406
|
+
publicName: "ariaLabel",
|
|
407
|
+
isSignal: true,
|
|
408
|
+
isRequired: false,
|
|
409
|
+
transformFunction: null
|
|
410
|
+
},
|
|
411
|
+
class: {
|
|
412
|
+
classPropertyName: "class",
|
|
413
|
+
publicName: "class",
|
|
414
|
+
isSignal: true,
|
|
415
|
+
isRequired: false,
|
|
416
|
+
transformFunction: null
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
host: { properties: {
|
|
420
|
+
"class": "classes()",
|
|
421
|
+
"attr.role": "\"group\"",
|
|
422
|
+
"attr.aria-roledescription": "\"slide\"",
|
|
423
|
+
"attr.aria-label": "ariaLabel()"
|
|
424
|
+
} },
|
|
425
|
+
ngImport: i0,
|
|
426
|
+
template: `<ng-content />`,
|
|
427
|
+
isInline: true
|
|
428
|
+
});
|
|
429
|
+
};
|
|
430
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
431
|
+
minVersion: "12.0.0",
|
|
432
|
+
version: "22.2.0",
|
|
433
|
+
ngImport: i0,
|
|
434
|
+
type: CarouselItemComponent,
|
|
435
|
+
decorators: [{
|
|
436
|
+
type: Component,
|
|
437
|
+
args: [{
|
|
438
|
+
selector: "CarouselItem",
|
|
439
|
+
host: {
|
|
440
|
+
"[class]": "classes()",
|
|
441
|
+
"[attr.role]": "\"group\"",
|
|
442
|
+
"[attr.aria-roledescription]": "\"slide\"",
|
|
443
|
+
"[attr.aria-label]": "ariaLabel()"
|
|
444
|
+
},
|
|
445
|
+
template: `<ng-content />`
|
|
446
|
+
}]
|
|
447
|
+
}],
|
|
448
|
+
propDecorators: {
|
|
449
|
+
ariaLabel: [{
|
|
450
|
+
type: i0.Input,
|
|
451
|
+
args: [{
|
|
452
|
+
isSignal: true,
|
|
453
|
+
alias: "ariaLabel",
|
|
454
|
+
required: false
|
|
455
|
+
}]
|
|
456
|
+
}],
|
|
457
|
+
class: [{
|
|
458
|
+
type: i0.Input,
|
|
459
|
+
args: [{
|
|
460
|
+
isSignal: true,
|
|
461
|
+
alias: "class",
|
|
462
|
+
required: false
|
|
463
|
+
}]
|
|
464
|
+
}]
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
var CarouselPreviousComponent = class CarouselPreviousComponent {
|
|
468
|
+
ctx = inject(CarouselContextBase);
|
|
469
|
+
label = input("Previous slide", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
470
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
471
|
+
classes = computed(() => cn(carouselButtonClasses, carouselPreviousPlacement(this.ctx.orientation()), this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
472
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
473
|
+
minVersion: "12.0.0",
|
|
474
|
+
version: "22.2.0",
|
|
475
|
+
ngImport: i0,
|
|
476
|
+
type: CarouselPreviousComponent,
|
|
477
|
+
deps: [],
|
|
478
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
479
|
+
});
|
|
480
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
481
|
+
minVersion: "17.1.0",
|
|
482
|
+
version: "22.2.0",
|
|
483
|
+
type: CarouselPreviousComponent,
|
|
484
|
+
isStandalone: true,
|
|
485
|
+
selector: "button[CarouselPrevious]",
|
|
486
|
+
inputs: {
|
|
487
|
+
label: {
|
|
488
|
+
classPropertyName: "label",
|
|
489
|
+
publicName: "label",
|
|
490
|
+
isSignal: true,
|
|
491
|
+
isRequired: false,
|
|
492
|
+
transformFunction: null
|
|
493
|
+
},
|
|
494
|
+
class: {
|
|
495
|
+
classPropertyName: "class",
|
|
496
|
+
publicName: "class",
|
|
497
|
+
isSignal: true,
|
|
498
|
+
isRequired: false,
|
|
499
|
+
transformFunction: null
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
host: {
|
|
503
|
+
attributes: { "type": "button" },
|
|
504
|
+
listeners: { "click": "ctx.scrollPrev()" },
|
|
505
|
+
properties: {
|
|
506
|
+
"class": "classes()",
|
|
507
|
+
"attr.aria-label": "label()",
|
|
508
|
+
"disabled": "!ctx.canScrollPrev() || null"
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
ngImport: i0,
|
|
512
|
+
template: `
|
|
222
513
|
<svg
|
|
223
514
|
aria-hidden="true"
|
|
224
515
|
class="h-4 w-4"
|
|
@@ -231,20 +522,27 @@ class CarouselPreviousComponent {
|
|
|
231
522
|
>
|
|
232
523
|
<path d="m15 18-6-6 6-6" />
|
|
233
524
|
</svg>
|
|
234
|
-
`,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
525
|
+
`,
|
|
526
|
+
isInline: true
|
|
527
|
+
});
|
|
528
|
+
};
|
|
529
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
530
|
+
minVersion: "12.0.0",
|
|
531
|
+
version: "22.2.0",
|
|
532
|
+
ngImport: i0,
|
|
533
|
+
type: CarouselPreviousComponent,
|
|
534
|
+
decorators: [{
|
|
535
|
+
type: Component,
|
|
536
|
+
args: [{
|
|
537
|
+
selector: "button[CarouselPrevious]",
|
|
538
|
+
host: {
|
|
539
|
+
"[class]": "classes()",
|
|
540
|
+
type: "button",
|
|
541
|
+
"[attr.aria-label]": "label()",
|
|
542
|
+
"[disabled]": "!ctx.canScrollPrev() || null",
|
|
543
|
+
"(click)": "ctx.scrollPrev()"
|
|
544
|
+
},
|
|
545
|
+
template: `
|
|
248
546
|
<svg
|
|
249
547
|
aria-hidden="true"
|
|
250
548
|
class="h-4 w-4"
|
|
@@ -257,19 +555,74 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
|
|
|
257
555
|
>
|
|
258
556
|
<path d="m15 18-6-6 6-6" />
|
|
259
557
|
</svg>
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
558
|
+
`
|
|
559
|
+
}]
|
|
560
|
+
}],
|
|
561
|
+
propDecorators: {
|
|
562
|
+
label: [{
|
|
563
|
+
type: i0.Input,
|
|
564
|
+
args: [{
|
|
565
|
+
isSignal: true,
|
|
566
|
+
alias: "label",
|
|
567
|
+
required: false
|
|
568
|
+
}]
|
|
569
|
+
}],
|
|
570
|
+
class: [{
|
|
571
|
+
type: i0.Input,
|
|
572
|
+
args: [{
|
|
573
|
+
isSignal: true,
|
|
574
|
+
alias: "class",
|
|
575
|
+
required: false
|
|
576
|
+
}]
|
|
577
|
+
}]
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
var CarouselNextComponent = class CarouselNextComponent {
|
|
581
|
+
ctx = inject(CarouselContextBase);
|
|
582
|
+
label = input("Next slide", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
583
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
584
|
+
classes = computed(() => cn(carouselButtonClasses, carouselNextPlacement(this.ctx.orientation()), this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
585
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
586
|
+
minVersion: "12.0.0",
|
|
587
|
+
version: "22.2.0",
|
|
588
|
+
ngImport: i0,
|
|
589
|
+
type: CarouselNextComponent,
|
|
590
|
+
deps: [],
|
|
591
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
592
|
+
});
|
|
593
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
594
|
+
minVersion: "17.1.0",
|
|
595
|
+
version: "22.2.0",
|
|
596
|
+
type: CarouselNextComponent,
|
|
597
|
+
isStandalone: true,
|
|
598
|
+
selector: "button[CarouselNext]",
|
|
599
|
+
inputs: {
|
|
600
|
+
label: {
|
|
601
|
+
classPropertyName: "label",
|
|
602
|
+
publicName: "label",
|
|
603
|
+
isSignal: true,
|
|
604
|
+
isRequired: false,
|
|
605
|
+
transformFunction: null
|
|
606
|
+
},
|
|
607
|
+
class: {
|
|
608
|
+
classPropertyName: "class",
|
|
609
|
+
publicName: "class",
|
|
610
|
+
isSignal: true,
|
|
611
|
+
isRequired: false,
|
|
612
|
+
transformFunction: null
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
host: {
|
|
616
|
+
attributes: { "type": "button" },
|
|
617
|
+
listeners: { "click": "ctx.scrollNext()" },
|
|
618
|
+
properties: {
|
|
619
|
+
"class": "classes()",
|
|
620
|
+
"attr.aria-label": "label()",
|
|
621
|
+
"disabled": "!ctx.canScrollNext() || null"
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
ngImport: i0,
|
|
625
|
+
template: `
|
|
273
626
|
<svg
|
|
274
627
|
aria-hidden="true"
|
|
275
628
|
class="h-4 w-4"
|
|
@@ -282,20 +635,27 @@ class CarouselNextComponent {
|
|
|
282
635
|
>
|
|
283
636
|
<path d="m9 18 6-6-6-6" />
|
|
284
637
|
</svg>
|
|
285
|
-
`,
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
638
|
+
`,
|
|
639
|
+
isInline: true
|
|
640
|
+
});
|
|
641
|
+
};
|
|
642
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
643
|
+
minVersion: "12.0.0",
|
|
644
|
+
version: "22.2.0",
|
|
645
|
+
ngImport: i0,
|
|
646
|
+
type: CarouselNextComponent,
|
|
647
|
+
decorators: [{
|
|
648
|
+
type: Component,
|
|
649
|
+
args: [{
|
|
650
|
+
selector: "button[CarouselNext]",
|
|
651
|
+
host: {
|
|
652
|
+
"[class]": "classes()",
|
|
653
|
+
type: "button",
|
|
654
|
+
"[attr.aria-label]": "label()",
|
|
655
|
+
"[disabled]": "!ctx.canScrollNext() || null",
|
|
656
|
+
"(click)": "ctx.scrollNext()"
|
|
657
|
+
},
|
|
658
|
+
template: `
|
|
299
659
|
<svg
|
|
300
660
|
aria-hidden="true"
|
|
301
661
|
class="h-4 w-4"
|
|
@@ -308,23 +668,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
|
|
|
308
668
|
>
|
|
309
669
|
<path d="m9 18 6-6-6-6" />
|
|
310
670
|
</svg>
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
671
|
+
`
|
|
672
|
+
}]
|
|
673
|
+
}],
|
|
674
|
+
propDecorators: {
|
|
675
|
+
label: [{
|
|
676
|
+
type: i0.Input,
|
|
677
|
+
args: [{
|
|
678
|
+
isSignal: true,
|
|
679
|
+
alias: "label",
|
|
680
|
+
required: false
|
|
681
|
+
}]
|
|
682
|
+
}],
|
|
683
|
+
class: [{
|
|
684
|
+
type: i0.Input,
|
|
685
|
+
args: [{
|
|
686
|
+
isSignal: true,
|
|
687
|
+
alias: "class",
|
|
688
|
+
required: false
|
|
689
|
+
}]
|
|
690
|
+
}]
|
|
691
|
+
}
|
|
692
|
+
});
|
|
693
|
+
const carouselButtonClasses = "absolute inline-flex h-8 w-8 items-center justify-center rounded-full border border-border bg-background p-0 text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50";
|
|
315
694
|
function carouselPreviousPlacement(orientation) {
|
|
316
|
-
|
|
317
|
-
? '-left-12 top-1/2 -translate-y-1/2'
|
|
318
|
-
: '-top-12 left-1/2 -translate-x-1/2 rotate-90';
|
|
695
|
+
return orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90";
|
|
319
696
|
}
|
|
320
697
|
function carouselNextPlacement(orientation) {
|
|
321
|
-
|
|
322
|
-
? '-right-12 top-1/2 -translate-y-1/2'
|
|
323
|
-
: '-bottom-12 left-1/2 -translate-x-1/2 rotate-90';
|
|
698
|
+
return orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90";
|
|
324
699
|
}
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* Generated bundle index. Do not edit.
|
|
328
|
-
*/
|
|
329
|
-
|
|
330
|
-
export { CarouselComponent, CarouselContentComponent, CarouselContextBase, CarouselItemComponent, CarouselNextComponent, CarouselPreviousComponent };
|
|
700
|
+
export { CarouselComponent, CarouselContentComponent, CarouselContextBase, CarouselItemComponent, CarouselNextComponent, CarouselPreviousComponent };
|