@aeris-ui/core 22.0.0-alpha.8 → 22.0.0-alpha.9
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 +2 -2
- package/fesm2022/aeris-ui-core-accordion.mjs +646 -255
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-complete.mjs +1171 -428
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
- package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
- package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-badge.mjs +562 -115
- package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-block-ui.mjs +205 -101
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +547 -177
- package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button-group.mjs +153 -38
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button.mjs +730 -110
- package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-card.mjs +371 -101
- package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-carousel.mjs +690 -353
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +915 -423
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +455 -258
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-checkbox.mjs +432 -135
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chip.mjs +430 -117
- package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
- package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-color-picker.mjs +1313 -683
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-compare.mjs +819 -310
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1392 -551
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1447 -744
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +900 -450
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker.mjs +1656 -863
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +1066 -355
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-divider.mjs +204 -43
- package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-drawer.mjs +1002 -326
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +402 -249
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +934 -572
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +1313 -511
- package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
- package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
- package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-form-field.mjs +672 -170
- package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-galleria.mjs +1987 -797
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-glass.mjs +110 -33
- package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-icon-field.mjs +426 -106
- package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-inplace.mjs +452 -130
- package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-group.mjs +413 -114
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-mask.mjs +650 -248
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +902 -334
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-otp.mjs +667 -253
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-text.mjs +618 -152
- package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
- package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-mega-menu.mjs +601 -388
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +1032 -495
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +960 -491
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-message.mjs +477 -145
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-meter-group.mjs +587 -196
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +1550 -552
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-order-list.mjs +518 -202
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +455 -177
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +329 -127
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +596 -196
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-password.mjs +894 -247
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +1280 -659
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-popover.mjs +892 -386
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +545 -177
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +410 -133
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-radio-button.mjs +386 -119
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-rating.mjs +502 -225
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
- package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-top.mjs +204 -63
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-select.mjs +1794 -643
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
- package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-slider.mjs +868 -404
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-speed-dial.mjs +800 -329
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +880 -270
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +812 -352
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-stepper.mjs +697 -254
- package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
- package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-table.mjs +1984 -865
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +686 -324
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +846 -212
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1256 -1423
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +132 -147
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +885 -465
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
- package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toast.mjs +855 -615
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +390 -127
- package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toolbar.mjs +458 -121
- package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tooltip.mjs +623 -345
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-select.mjs +1356 -601
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +2001 -942
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +1103 -658
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +861 -842
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +1 -1
- package/types/aeris-ui-core-accordion.d.ts +166 -93
- package/types/aeris-ui-core-animate-on-scroll.d.ts +71 -31
- package/types/aeris-ui-core-auto-complete.d.ts +326 -149
- package/types/aeris-ui-core-auto-focus.d.ts +24 -16
- package/types/aeris-ui-core-avatar.d.ts +112 -42
- package/types/aeris-ui-core-badge.d.ts +160 -47
- package/types/aeris-ui-core-block-ui.d.ts +47 -27
- package/types/aeris-ui-core-breadcrumb.d.ts +162 -92
- package/types/aeris-ui-core-button-group.d.ts +37 -16
- package/types/aeris-ui-core-button.d.ts +226 -64
- package/types/aeris-ui-core-card.d.ts +74 -37
- package/types/aeris-ui-core-carousel.d.ts +197 -117
- package/types/aeris-ui-core-cascade-select.d.ts +252 -131
- package/types/aeris-ui-core-chart.d.ts +134 -84
- package/types/aeris-ui-core-checkbox.d.ts +139 -55
- package/types/aeris-ui-core-chip.d.ts +116 -51
- package/types/aeris-ui-core-class-names.d.ts +22 -20
- package/types/aeris-ui-core-color-picker.d.ts +347 -150
- package/types/aeris-ui-core-compare.d.ts +224 -101
- package/types/aeris-ui-core-confirm-dialog.d.ts +441 -249
- package/types/aeris-ui-core-confirm-popup.d.ts +440 -268
- package/types/aeris-ui-core-context-menu.d.ts +262 -150
- package/types/aeris-ui-core-date-picker.d.ts +488 -226
- package/types/aeris-ui-core-dialog.d.ts +288 -121
- package/types/aeris-ui-core-divider.d.ts +58 -20
- package/types/aeris-ui-core-drawer.d.ts +273 -116
- package/types/aeris-ui-core-dynamic-dialog.d.ts +157 -140
- package/types/aeris-ui-core-editor.d.ts +243 -124
- package/types/aeris-ui-core-file-upload.d.ts +366 -197
- package/types/aeris-ui-core-filter-service.d.ts +48 -52
- package/types/aeris-ui-core-fluid.d.ts +12 -9
- package/types/aeris-ui-core-focus-trap.d.ts +39 -31
- package/types/aeris-ui-core-form-field.d.ts +158 -62
- package/types/aeris-ui-core-galleria.d.ts +589 -256
- package/types/aeris-ui-core-glass.d.ts +24 -11
- package/types/aeris-ui-core-icon-field.d.ts +94 -34
- package/types/aeris-ui-core-inplace.d.ts +123 -62
- package/types/aeris-ui-core-input-group.d.ts +84 -35
- package/types/aeris-ui-core-input-mask.d.ts +194 -71
- package/types/aeris-ui-core-input-number.d.ts +272 -90
- package/types/aeris-ui-core-input-otp.d.ts +190 -82
- package/types/aeris-ui-core-input-text.d.ts +185 -62
- package/types/aeris-ui-core-key-filter.d.ts +53 -39
- package/types/aeris-ui-core-mega-menu.d.ts +174 -123
- package/types/aeris-ui-core-menu.d.ts +275 -172
- package/types/aeris-ui-core-menubar.d.ts +272 -160
- package/types/aeris-ui-core-message.d.ts +132 -61
- package/types/aeris-ui-core-meter-group.d.ts +162 -90
- package/types/aeris-ui-core-multi-select.d.ts +435 -187
- package/types/aeris-ui-core-order-list.d.ts +143 -66
- package/types/aeris-ui-core-organization-chart.d.ts +132 -77
- package/types/aeris-ui-core-paginator.d.ts +92 -46
- package/types/aeris-ui-core-panel.d.ts +149 -78
- package/types/aeris-ui-core-password.d.ts +257 -108
- package/types/aeris-ui-core-pick-list.d.ts +373 -179
- package/types/aeris-ui-core-popover.d.ts +218 -107
- package/types/aeris-ui-core-progress-bar.d.ts +156 -74
- package/types/aeris-ui-core-progress-spinner.d.ts +110 -48
- package/types/aeris-ui-core-radio-button.d.ts +124 -51
- package/types/aeris-ui-core-rating.d.ts +149 -76
- package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
- package/types/aeris-ui-core-scroll-top.d.ts +64 -29
- package/types/aeris-ui-core-select.d.ts +474 -226
- package/types/aeris-ui-core-skeleton.d.ts +39 -17
- package/types/aeris-ui-core-slider.d.ts +270 -116
- package/types/aeris-ui-core-speed-dial.d.ts +240 -112
- package/types/aeris-ui-core-split-button.d.ts +264 -121
- package/types/aeris-ui-core-splitter.d.ts +224 -106
- package/types/aeris-ui-core-stepper.d.ts +183 -91
- package/types/aeris-ui-core-style-class.d.ts +141 -71
- package/types/aeris-ui-core-table.d.ts +595 -308
- package/types/aeris-ui-core-tabs.d.ts +163 -90
- package/types/aeris-ui-core-textarea.d.ts +261 -81
- package/types/aeris-ui-core-theme-builder.d.ts +463 -475
- package/types/aeris-ui-core-theming.d.ts +42 -49
- package/types/aeris-ui-core-tiered-menu.d.ts +249 -147
- package/types/aeris-ui-core-timeline.d.ts +108 -71
- package/types/aeris-ui-core-toast.d.ts +219 -155
- package/types/aeris-ui-core-toggle-switch.d.ts +125 -52
- package/types/aeris-ui-core-toolbar.d.ts +98 -41
- package/types/aeris-ui-core-tooltip.d.ts +157 -92
- package/types/aeris-ui-core-tree-select.d.ts +359 -179
- package/types/aeris-ui-core-tree-table.d.ts +565 -290
- package/types/aeris-ui-core-tree.d.ts +269 -165
- package/types/aeris-ui-core.d.ts +161 -125
|
@@ -1,336 +1,502 @@
|
|
|
1
|
-
import { DOCUMENT,
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
1
|
+
import { DOCUMENT, NgTemplateOutlet, isPlatformBrowser } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, DestroyRef, Directive, ElementRef, PLATFORM_ID, TemplateRef, afterNextRender, booleanAttribute, computed, contentChild, effect, inject, input, model, output, signal } from "@angular/core";
|
|
4
|
+
var AerisCarouselItemTemplate = class AerisCarouselItemTemplate {
|
|
5
|
+
template = inject(TemplateRef);
|
|
6
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
10
|
+
minVersion: "12.0.0",
|
|
11
|
+
version: "22.2.1",
|
|
12
|
+
ngImport: i0,
|
|
13
|
+
type: AerisCarouselItemTemplate,
|
|
14
|
+
deps: [],
|
|
15
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
16
|
+
});
|
|
17
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
18
|
+
minVersion: "14.0.0",
|
|
19
|
+
version: "22.2.1",
|
|
20
|
+
type: AerisCarouselItemTemplate,
|
|
21
|
+
isStandalone: true,
|
|
22
|
+
selector: "ng-template[aerisCarouselItem]",
|
|
23
|
+
ngImport: i0
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
27
|
+
minVersion: "12.0.0",
|
|
28
|
+
version: "22.2.1",
|
|
29
|
+
ngImport: i0,
|
|
30
|
+
type: AerisCarouselItemTemplate,
|
|
31
|
+
decorators: [{
|
|
32
|
+
type: Directive,
|
|
33
|
+
args: [{ selector: "ng-template[aerisCarouselItem]" }]
|
|
34
|
+
}]
|
|
35
|
+
});
|
|
36
|
+
var AerisCarouselHeaderTemplate = class AerisCarouselHeaderTemplate {
|
|
37
|
+
template = inject(TemplateRef);
|
|
38
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
39
|
+
minVersion: "12.0.0",
|
|
40
|
+
version: "22.2.1",
|
|
41
|
+
ngImport: i0,
|
|
42
|
+
type: AerisCarouselHeaderTemplate,
|
|
43
|
+
deps: [],
|
|
44
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
45
|
+
});
|
|
46
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
47
|
+
minVersion: "14.0.0",
|
|
48
|
+
version: "22.2.1",
|
|
49
|
+
type: AerisCarouselHeaderTemplate,
|
|
50
|
+
isStandalone: true,
|
|
51
|
+
selector: "ng-template[aerisCarouselHeader]",
|
|
52
|
+
ngImport: i0
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
56
|
+
minVersion: "12.0.0",
|
|
57
|
+
version: "22.2.1",
|
|
58
|
+
ngImport: i0,
|
|
59
|
+
type: AerisCarouselHeaderTemplate,
|
|
60
|
+
decorators: [{
|
|
61
|
+
type: Directive,
|
|
62
|
+
args: [{ selector: "ng-template[aerisCarouselHeader]" }]
|
|
63
|
+
}]
|
|
64
|
+
});
|
|
65
|
+
var AerisCarouselFooterTemplate = class AerisCarouselFooterTemplate {
|
|
66
|
+
template = inject(TemplateRef);
|
|
67
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
68
|
+
minVersion: "12.0.0",
|
|
69
|
+
version: "22.2.1",
|
|
70
|
+
ngImport: i0,
|
|
71
|
+
type: AerisCarouselFooterTemplate,
|
|
72
|
+
deps: [],
|
|
73
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
74
|
+
});
|
|
75
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
76
|
+
minVersion: "14.0.0",
|
|
77
|
+
version: "22.2.1",
|
|
78
|
+
type: AerisCarouselFooterTemplate,
|
|
79
|
+
isStandalone: true,
|
|
80
|
+
selector: "ng-template[aerisCarouselFooter]",
|
|
81
|
+
ngImport: i0
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
85
|
+
minVersion: "12.0.0",
|
|
86
|
+
version: "22.2.1",
|
|
87
|
+
ngImport: i0,
|
|
88
|
+
type: AerisCarouselFooterTemplate,
|
|
89
|
+
decorators: [{
|
|
90
|
+
type: Directive,
|
|
91
|
+
args: [{ selector: "ng-template[aerisCarouselFooter]" }]
|
|
92
|
+
}]
|
|
93
|
+
});
|
|
94
|
+
var AerisCarousel = class AerisCarousel {
|
|
95
|
+
host = inject(ElementRef);
|
|
96
|
+
document = inject(DOCUMENT);
|
|
97
|
+
platformId = inject(PLATFORM_ID);
|
|
98
|
+
destroyRef = inject(DestroyRef);
|
|
99
|
+
browser = isPlatformBrowser(this.platformId);
|
|
100
|
+
viewportWidth = signal(0, ...ngDevMode ? [{ debugName: "viewportWidth" }] : /* istanbul ignore next */ []);
|
|
101
|
+
hoverPaused = signal(false, ...ngDevMode ? [{ debugName: "hoverPaused" }] : /* istanbul ignore next */ []);
|
|
102
|
+
focusPaused = signal(false, ...ngDevMode ? [{ debugName: "focusPaused" }] : /* istanbul ignore next */ []);
|
|
103
|
+
autoplayStopped = signal(false, ...ngDevMode ? [{ debugName: "autoplayStopped" }] : /* istanbul ignore next */ []);
|
|
104
|
+
paused = computed(() => this.hoverPaused() || this.focusPaused() || this.autoplayStopped(), ...ngDevMode ? [{ debugName: "paused" }] : /* istanbul ignore next */ []);
|
|
105
|
+
pointerStart = signal(null, ...ngDevMode ? [{ debugName: "pointerStart" }] : /* istanbul ignore next */ []);
|
|
106
|
+
dragOffset = signal(0, ...ngDevMode ? [{ debugName: "dragOffset" }] : /* istanbul ignore next */ []);
|
|
107
|
+
dragging = signal(false, ...ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []);
|
|
108
|
+
resizeObserver = null;
|
|
109
|
+
itemTemplate = contentChild(AerisCarouselItemTemplate, ...ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []);
|
|
110
|
+
headerTemplate = contentChild(AerisCarouselHeaderTemplate, ...ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []);
|
|
111
|
+
footerTemplate = contentChild(AerisCarouselFooterTemplate, ...ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []);
|
|
112
|
+
value = input([], ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
113
|
+
page = model(0, ...ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []);
|
|
114
|
+
numVisible = input(1, ...ngDevMode ? [{ debugName: "numVisible" }] : /* istanbul ignore next */ []);
|
|
115
|
+
numScroll = input(1, ...ngDevMode ? [{ debugName: "numScroll" }] : /* istanbul ignore next */ []);
|
|
116
|
+
responsiveOptions = input([], ...ngDevMode ? [{ debugName: "responsiveOptions" }] : /* istanbul ignore next */ []);
|
|
117
|
+
circular = input(false, {
|
|
118
|
+
...ngDevMode ? { debugName: "circular" } : /* istanbul ignore next */ {},
|
|
119
|
+
transform: booleanAttribute
|
|
120
|
+
});
|
|
121
|
+
showNavigators = input(true, {
|
|
122
|
+
...ngDevMode ? { debugName: "showNavigators" } : /* istanbul ignore next */ {},
|
|
123
|
+
transform: booleanAttribute
|
|
124
|
+
});
|
|
125
|
+
showIndicators = input(true, {
|
|
126
|
+
...ngDevMode ? { debugName: "showIndicators" } : /* istanbul ignore next */ {},
|
|
127
|
+
transform: booleanAttribute
|
|
128
|
+
});
|
|
129
|
+
autoplayInterval = input(0, ...ngDevMode ? [{ debugName: "autoplayInterval" }] : /* istanbul ignore next */ []);
|
|
130
|
+
pauseOnHover = input(true, {
|
|
131
|
+
...ngDevMode ? { debugName: "pauseOnHover" } : /* istanbul ignore next */ {},
|
|
132
|
+
transform: booleanAttribute
|
|
133
|
+
});
|
|
134
|
+
orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
|
|
135
|
+
verticalViewportHeight = input("20rem", ...ngDevMode ? [{ debugName: "verticalViewportHeight" }] : /* istanbul ignore next */ []);
|
|
136
|
+
ariaLabel = input("Carousel", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
137
|
+
indicatorAriaLabel = input("Carousel pages", ...ngDevMode ? [{ debugName: "indicatorAriaLabel" }] : /* istanbul ignore next */ []);
|
|
138
|
+
previousAriaLabel = input("Previous items", ...ngDevMode ? [{ debugName: "previousAriaLabel" }] : /* istanbul ignore next */ []);
|
|
139
|
+
nextAriaLabel = input("Next items", ...ngDevMode ? [{ debugName: "nextAriaLabel" }] : /* istanbul ignore next */ []);
|
|
140
|
+
pageChanged = output();
|
|
141
|
+
resolvedSettings = computed(() => {
|
|
142
|
+
const base = {
|
|
143
|
+
numVisible: this.safeCount(this.numVisible()),
|
|
144
|
+
numScroll: this.safeCount(this.numScroll())
|
|
145
|
+
};
|
|
146
|
+
const width = this.viewportWidth();
|
|
147
|
+
if (!width) return base;
|
|
148
|
+
const matching = [...this.responsiveOptions()].map((option) => ({
|
|
149
|
+
option,
|
|
150
|
+
pixels: this.breakpointPixels(option.breakpoint)
|
|
151
|
+
})).filter((option) => option.pixels > 0 && width <= option.pixels).sort((left, right) => left.pixels - right.pixels)[0]?.option;
|
|
152
|
+
return {
|
|
153
|
+
numVisible: this.safeCount(matching?.numVisible ?? base.numVisible),
|
|
154
|
+
numScroll: this.safeCount(matching?.numScroll ?? base.numScroll)
|
|
155
|
+
};
|
|
156
|
+
}, ...ngDevMode ? [{ debugName: "resolvedSettings" }] : /* istanbul ignore next */ []);
|
|
157
|
+
visibleCount = computed(() => Math.min(this.value().length || 1, this.resolvedSettings().numVisible), ...ngDevMode ? [{ debugName: "visibleCount" }] : /* istanbul ignore next */ []);
|
|
158
|
+
pageCount = computed(() => {
|
|
159
|
+
const length = this.value().length;
|
|
160
|
+
if (length <= this.visibleCount()) return 1;
|
|
161
|
+
return Math.ceil((length - this.visibleCount()) / this.resolvedSettings().numScroll) + 1;
|
|
162
|
+
}, ...ngDevMode ? [{ debugName: "pageCount" }] : /* istanbul ignore next */ []);
|
|
163
|
+
currentPage = computed(() => Math.min(Math.max(this.page(), 0), this.pageCount() - 1), ...ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []);
|
|
164
|
+
firstVisibleIndex = computed(() => Math.min(this.currentPage() * this.resolvedSettings().numScroll, Math.max(0, this.value().length - this.visibleCount())), ...ngDevMode ? [{ debugName: "firstVisibleIndex" }] : /* istanbul ignore next */ []);
|
|
165
|
+
lastVisibleIndex = computed(() => Math.min(this.value().length - 1, this.firstVisibleIndex() + this.visibleCount() - 1), ...ngDevMode ? [{ debugName: "lastVisibleIndex" }] : /* istanbul ignore next */ []);
|
|
166
|
+
itemViews = computed(() => {
|
|
167
|
+
const first = this.firstVisibleIndex();
|
|
168
|
+
const last = this.lastVisibleIndex();
|
|
169
|
+
return this.value().map((item, index) => ({
|
|
170
|
+
item,
|
|
171
|
+
index,
|
|
172
|
+
context: {
|
|
173
|
+
$implicit: item,
|
|
174
|
+
item,
|
|
175
|
+
index,
|
|
176
|
+
visible: index >= first && index <= last
|
|
177
|
+
}
|
|
178
|
+
}));
|
|
179
|
+
}, ...ngDevMode ? [{ debugName: "itemViews" }] : /* istanbul ignore next */ []);
|
|
180
|
+
indicators = computed(() => Array.from({ length: this.pageCount() }, (_, page) => ({
|
|
181
|
+
page,
|
|
182
|
+
label: `Show items ${this.indicatorRange(page)}`
|
|
183
|
+
})), ...ngDevMode ? [{ debugName: "indicators" }] : /* istanbul ignore next */ []);
|
|
184
|
+
previousDisabled = computed(() => !this.circular() && this.currentPage() === 0, ...ngDevMode ? [{ debugName: "previousDisabled" }] : /* istanbul ignore next */ []);
|
|
185
|
+
nextDisabled = computed(() => !this.circular() && this.currentPage() >= this.pageCount() - 1, ...ngDevMode ? [{ debugName: "nextDisabled" }] : /* istanbul ignore next */ []);
|
|
186
|
+
trackInlineSize = computed(() => this.orientation() === "horizontal" ? `${this.value().length / this.visibleCount() * 100}%` : null, ...ngDevMode ? [{ debugName: "trackInlineSize" }] : /* istanbul ignore next */ []);
|
|
187
|
+
trackBlockSize = computed(() => this.orientation() === "vertical" ? `${this.value().length / this.visibleCount() * 100}%` : null, ...ngDevMode ? [{ debugName: "trackBlockSize" }] : /* istanbul ignore next */ []);
|
|
188
|
+
trackTransform = computed(() => {
|
|
189
|
+
const total = Math.max(1, this.value().length);
|
|
190
|
+
const offset = this.firstVisibleIndex() / total * 100;
|
|
191
|
+
const dragOffset = this.dragOffset();
|
|
192
|
+
if (this.orientation() === "vertical") return `translate3d(0, calc(-${offset}% + ${dragOffset}px), 0)`;
|
|
193
|
+
return `translate3d(calc(${this.isRtl() ? offset : -offset}% + ${dragOffset}px), 0, 0)`;
|
|
194
|
+
}, ...ngDevMode ? [{ debugName: "trackTransform" }] : /* istanbul ignore next */ []);
|
|
195
|
+
constructor() {
|
|
196
|
+
afterNextRender(() => this.observeSize());
|
|
197
|
+
this.destroyRef.onDestroy(() => this.resizeObserver?.disconnect());
|
|
198
|
+
effect((onCleanup) => {
|
|
199
|
+
const interval = this.autoplayInterval();
|
|
200
|
+
if (!(interval > 0 && this.pageCount() > 1 && !this.paused()) || !this.browser) return;
|
|
201
|
+
const timer = setInterval(() => this.next("autoplay"), interval);
|
|
202
|
+
onCleanup(() => clearInterval(timer));
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
next(reason = "api") {
|
|
206
|
+
const pageCount = this.pageCount();
|
|
207
|
+
if (pageCount <= 1) return;
|
|
208
|
+
const current = this.currentPage();
|
|
209
|
+
if (current >= pageCount - 1 && !this.circular()) return;
|
|
210
|
+
this.changePage(current >= pageCount - 1 ? 0 : current + 1, reason);
|
|
211
|
+
}
|
|
212
|
+
previous(reason = "api") {
|
|
213
|
+
const pageCount = this.pageCount();
|
|
214
|
+
if (pageCount <= 1) return;
|
|
215
|
+
const current = this.currentPage();
|
|
216
|
+
if (current <= 0 && !this.circular()) return;
|
|
217
|
+
this.changePage(current <= 0 ? pageCount - 1 : current - 1, reason);
|
|
218
|
+
}
|
|
219
|
+
goToPage(page, reason = "api") {
|
|
220
|
+
const target = Math.min(Math.max(0, Math.floor(page)), this.pageCount() - 1);
|
|
221
|
+
if (target === this.currentPage()) return;
|
|
222
|
+
this.changePage(target, reason);
|
|
223
|
+
}
|
|
224
|
+
startAutoplay() {
|
|
225
|
+
this.autoplayStopped.set(false);
|
|
226
|
+
}
|
|
227
|
+
stopAutoplay() {
|
|
228
|
+
this.autoplayStopped.set(true);
|
|
229
|
+
}
|
|
230
|
+
handleViewportKeydown(event) {
|
|
231
|
+
const nextKey = this.orientation() === "vertical" ? "ArrowDown" : this.isRtl() ? "ArrowLeft" : "ArrowRight";
|
|
232
|
+
const previousKey = this.orientation() === "vertical" ? "ArrowUp" : this.isRtl() ? "ArrowRight" : "ArrowLeft";
|
|
233
|
+
if (event.key === nextKey) {
|
|
234
|
+
event.preventDefault();
|
|
235
|
+
this.next("keyboard");
|
|
236
|
+
} else if (event.key === previousKey) {
|
|
237
|
+
event.preventDefault();
|
|
238
|
+
this.previous("keyboard");
|
|
239
|
+
} else if (event.key === "Home") {
|
|
240
|
+
event.preventDefault();
|
|
241
|
+
this.goToPage(0, "keyboard");
|
|
242
|
+
} else if (event.key === "End") {
|
|
243
|
+
event.preventDefault();
|
|
244
|
+
this.goToPage(this.pageCount() - 1, "keyboard");
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
handlePointerDown(event) {
|
|
248
|
+
if (event.pointerType === "mouse" && event.button !== 0) return;
|
|
249
|
+
event.preventDefault();
|
|
250
|
+
event.currentTarget.setPointerCapture?.(event.pointerId);
|
|
251
|
+
this.pointerStart.set(this.orientation() === "vertical" ? event.clientY : event.clientX);
|
|
252
|
+
this.dragOffset.set(0);
|
|
253
|
+
this.dragging.set(true);
|
|
254
|
+
}
|
|
255
|
+
handlePointerMove(event) {
|
|
256
|
+
const start = this.pointerStart();
|
|
257
|
+
if (start === null) return;
|
|
258
|
+
event.preventDefault();
|
|
259
|
+
const point = this.orientation() === "vertical" ? event.clientY : event.clientX;
|
|
260
|
+
this.dragOffset.set(point - start);
|
|
261
|
+
}
|
|
262
|
+
handlePointerUp(event) {
|
|
263
|
+
const start = this.pointerStart();
|
|
264
|
+
const currentTarget = event.currentTarget;
|
|
265
|
+
if (currentTarget.hasPointerCapture?.(event.pointerId)) currentTarget.releasePointerCapture(event.pointerId);
|
|
266
|
+
if (start === null) {
|
|
267
|
+
this.clearPointer();
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
const distance = (this.orientation() === "vertical" ? event.clientY : event.clientX) - start;
|
|
271
|
+
this.clearPointer();
|
|
272
|
+
if (Math.abs(distance) < 32) return;
|
|
273
|
+
const viewportSize = this.orientation() === "vertical" ? currentTarget.clientHeight : currentTarget.clientWidth;
|
|
274
|
+
const stepSize = viewportSize > 0 ? viewportSize / this.visibleCount() * this.resolvedSettings().numScroll : 80;
|
|
275
|
+
const pageDelta = Math.max(1, Math.round(Math.abs(distance) / stepSize));
|
|
276
|
+
const direction = this.dragDirection(distance);
|
|
277
|
+
this.goToPage(this.dragTargetPage(this.currentPage() + direction * pageDelta), "swipe");
|
|
278
|
+
}
|
|
279
|
+
clearPointer() {
|
|
280
|
+
this.pointerStart.set(null);
|
|
281
|
+
this.dragOffset.set(0);
|
|
282
|
+
this.dragging.set(false);
|
|
283
|
+
}
|
|
284
|
+
setHoverPaused(paused) {
|
|
285
|
+
if (this.pauseOnHover()) this.hoverPaused.set(paused);
|
|
286
|
+
}
|
|
287
|
+
setFocusPaused(paused) {
|
|
288
|
+
if (this.pauseOnHover()) this.focusPaused.set(paused);
|
|
289
|
+
}
|
|
290
|
+
handleFocusOut(event) {
|
|
291
|
+
const next = event.relatedTarget;
|
|
292
|
+
if (next instanceof Node && this.host.nativeElement.contains(next)) return;
|
|
293
|
+
this.setFocusPaused(false);
|
|
294
|
+
}
|
|
295
|
+
changePage(page, reason) {
|
|
296
|
+
this.page.set(page);
|
|
297
|
+
this.pageChanged.emit({
|
|
298
|
+
page,
|
|
299
|
+
first: Math.min(page * this.resolvedSettings().numScroll, Math.max(0, this.value().length - this.visibleCount())),
|
|
300
|
+
last: Math.min(this.value().length - 1, page * this.resolvedSettings().numScroll + this.visibleCount() - 1),
|
|
301
|
+
reason
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
dragDirection(distance) {
|
|
305
|
+
const direction = distance < 0 ? 1 : -1;
|
|
306
|
+
return this.orientation() === "horizontal" && this.isRtl() ? -direction : direction;
|
|
307
|
+
}
|
|
308
|
+
dragTargetPage(page) {
|
|
309
|
+
const pageCount = this.pageCount();
|
|
310
|
+
if (!this.circular()) return Math.min(Math.max(0, page), pageCount - 1);
|
|
311
|
+
return (page % pageCount + pageCount) % pageCount;
|
|
312
|
+
}
|
|
313
|
+
observeSize() {
|
|
314
|
+
if (!this.browser || typeof ResizeObserver === "undefined") return;
|
|
315
|
+
this.resizeObserver = new ResizeObserver((entries) => {
|
|
316
|
+
const width = entries[0]?.contentRect.width;
|
|
317
|
+
if (width) this.viewportWidth.set(width);
|
|
318
|
+
});
|
|
319
|
+
this.resizeObserver.observe(this.host.nativeElement);
|
|
320
|
+
}
|
|
321
|
+
safeCount(value) {
|
|
322
|
+
return Number.isFinite(value) ? Math.max(1, Math.floor(value)) : 1;
|
|
323
|
+
}
|
|
324
|
+
breakpointPixels(value) {
|
|
325
|
+
const match = /^(\d+(?:\.\d+)?)(px|rem|em)?$/.exec(value.trim());
|
|
326
|
+
if (!match) return 0;
|
|
327
|
+
const amount = Number(match[1]);
|
|
328
|
+
if ((match[2] ?? "px") === "px") return amount;
|
|
329
|
+
return amount * (Number.parseFloat(getComputedStyle(this.document.documentElement).fontSize) || 16);
|
|
330
|
+
}
|
|
331
|
+
indicatorRange(page) {
|
|
332
|
+
const first = Math.min(page * this.resolvedSettings().numScroll, Math.max(0, this.value().length - this.visibleCount()));
|
|
333
|
+
const last = Math.min(this.value().length, first + this.visibleCount());
|
|
334
|
+
return `${first + 1} to ${last}`;
|
|
335
|
+
}
|
|
336
|
+
isRtl() {
|
|
337
|
+
return this.document.documentElement.dir === "rtl";
|
|
338
|
+
}
|
|
339
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
340
|
+
minVersion: "12.0.0",
|
|
341
|
+
version: "22.2.1",
|
|
342
|
+
ngImport: i0,
|
|
343
|
+
type: AerisCarousel,
|
|
344
|
+
deps: [],
|
|
345
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
346
|
+
});
|
|
347
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
348
|
+
minVersion: "17.0.0",
|
|
349
|
+
version: "22.2.1",
|
|
350
|
+
type: AerisCarousel,
|
|
351
|
+
isStandalone: true,
|
|
352
|
+
selector: "aeris-carousel",
|
|
353
|
+
inputs: {
|
|
354
|
+
value: {
|
|
355
|
+
classPropertyName: "value",
|
|
356
|
+
publicName: "value",
|
|
357
|
+
isSignal: true,
|
|
358
|
+
isRequired: false,
|
|
359
|
+
transformFunction: null
|
|
360
|
+
},
|
|
361
|
+
page: {
|
|
362
|
+
classPropertyName: "page",
|
|
363
|
+
publicName: "page",
|
|
364
|
+
isSignal: true,
|
|
365
|
+
isRequired: false,
|
|
366
|
+
transformFunction: null
|
|
367
|
+
},
|
|
368
|
+
numVisible: {
|
|
369
|
+
classPropertyName: "numVisible",
|
|
370
|
+
publicName: "numVisible",
|
|
371
|
+
isSignal: true,
|
|
372
|
+
isRequired: false,
|
|
373
|
+
transformFunction: null
|
|
374
|
+
},
|
|
375
|
+
numScroll: {
|
|
376
|
+
classPropertyName: "numScroll",
|
|
377
|
+
publicName: "numScroll",
|
|
378
|
+
isSignal: true,
|
|
379
|
+
isRequired: false,
|
|
380
|
+
transformFunction: null
|
|
381
|
+
},
|
|
382
|
+
responsiveOptions: {
|
|
383
|
+
classPropertyName: "responsiveOptions",
|
|
384
|
+
publicName: "responsiveOptions",
|
|
385
|
+
isSignal: true,
|
|
386
|
+
isRequired: false,
|
|
387
|
+
transformFunction: null
|
|
388
|
+
},
|
|
389
|
+
circular: {
|
|
390
|
+
classPropertyName: "circular",
|
|
391
|
+
publicName: "circular",
|
|
392
|
+
isSignal: true,
|
|
393
|
+
isRequired: false,
|
|
394
|
+
transformFunction: null
|
|
395
|
+
},
|
|
396
|
+
showNavigators: {
|
|
397
|
+
classPropertyName: "showNavigators",
|
|
398
|
+
publicName: "showNavigators",
|
|
399
|
+
isSignal: true,
|
|
400
|
+
isRequired: false,
|
|
401
|
+
transformFunction: null
|
|
402
|
+
},
|
|
403
|
+
showIndicators: {
|
|
404
|
+
classPropertyName: "showIndicators",
|
|
405
|
+
publicName: "showIndicators",
|
|
406
|
+
isSignal: true,
|
|
407
|
+
isRequired: false,
|
|
408
|
+
transformFunction: null
|
|
409
|
+
},
|
|
410
|
+
autoplayInterval: {
|
|
411
|
+
classPropertyName: "autoplayInterval",
|
|
412
|
+
publicName: "autoplayInterval",
|
|
413
|
+
isSignal: true,
|
|
414
|
+
isRequired: false,
|
|
415
|
+
transformFunction: null
|
|
416
|
+
},
|
|
417
|
+
pauseOnHover: {
|
|
418
|
+
classPropertyName: "pauseOnHover",
|
|
419
|
+
publicName: "pauseOnHover",
|
|
420
|
+
isSignal: true,
|
|
421
|
+
isRequired: false,
|
|
422
|
+
transformFunction: null
|
|
423
|
+
},
|
|
424
|
+
orientation: {
|
|
425
|
+
classPropertyName: "orientation",
|
|
426
|
+
publicName: "orientation",
|
|
427
|
+
isSignal: true,
|
|
428
|
+
isRequired: false,
|
|
429
|
+
transformFunction: null
|
|
430
|
+
},
|
|
431
|
+
verticalViewportHeight: {
|
|
432
|
+
classPropertyName: "verticalViewportHeight",
|
|
433
|
+
publicName: "verticalViewportHeight",
|
|
434
|
+
isSignal: true,
|
|
435
|
+
isRequired: false,
|
|
436
|
+
transformFunction: null
|
|
437
|
+
},
|
|
438
|
+
ariaLabel: {
|
|
439
|
+
classPropertyName: "ariaLabel",
|
|
440
|
+
publicName: "ariaLabel",
|
|
441
|
+
isSignal: true,
|
|
442
|
+
isRequired: false,
|
|
443
|
+
transformFunction: null
|
|
444
|
+
},
|
|
445
|
+
indicatorAriaLabel: {
|
|
446
|
+
classPropertyName: "indicatorAriaLabel",
|
|
447
|
+
publicName: "indicatorAriaLabel",
|
|
448
|
+
isSignal: true,
|
|
449
|
+
isRequired: false,
|
|
450
|
+
transformFunction: null
|
|
451
|
+
},
|
|
452
|
+
previousAriaLabel: {
|
|
453
|
+
classPropertyName: "previousAriaLabel",
|
|
454
|
+
publicName: "previousAriaLabel",
|
|
455
|
+
isSignal: true,
|
|
456
|
+
isRequired: false,
|
|
457
|
+
transformFunction: null
|
|
458
|
+
},
|
|
459
|
+
nextAriaLabel: {
|
|
460
|
+
classPropertyName: "nextAriaLabel",
|
|
461
|
+
publicName: "nextAriaLabel",
|
|
462
|
+
isSignal: true,
|
|
463
|
+
isRequired: false,
|
|
464
|
+
transformFunction: null
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
outputs: {
|
|
468
|
+
page: "pageChange",
|
|
469
|
+
pageChanged: "pageChanged"
|
|
470
|
+
},
|
|
471
|
+
host: {
|
|
472
|
+
properties: { "attr.data-orientation": "orientation()" },
|
|
473
|
+
classAttribute: "aeris-carousel-host"
|
|
474
|
+
},
|
|
475
|
+
queries: [
|
|
476
|
+
{
|
|
477
|
+
propertyName: "itemTemplate",
|
|
478
|
+
first: true,
|
|
479
|
+
predicate: AerisCarouselItemTemplate,
|
|
480
|
+
descendants: true,
|
|
481
|
+
isSignal: true
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
propertyName: "headerTemplate",
|
|
485
|
+
first: true,
|
|
486
|
+
predicate: AerisCarouselHeaderTemplate,
|
|
487
|
+
descendants: true,
|
|
488
|
+
isSignal: true
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
propertyName: "footerTemplate",
|
|
492
|
+
first: true,
|
|
493
|
+
predicate: AerisCarouselFooterTemplate,
|
|
494
|
+
descendants: true,
|
|
495
|
+
isSignal: true
|
|
496
|
+
}
|
|
497
|
+
],
|
|
498
|
+
ngImport: i0,
|
|
499
|
+
template: `
|
|
334
500
|
<section class="aeris-carousel" [attr.aria-label]="ariaLabel()" [attr.aria-roledescription]="'carousel'">
|
|
335
501
|
<ng-template #indicatorList>
|
|
336
502
|
<div class="aeris-carousel__indicators" [attr.data-orientation]="orientation()" role="group" [attr.aria-label]="indicatorAriaLabel()">
|
|
@@ -424,11 +590,32 @@ class AerisCarousel {
|
|
|
424
590
|
<div class="aeris-carousel__footer"><ng-container [ngTemplateOutlet]="footer.template" /></div>
|
|
425
591
|
}
|
|
426
592
|
</section>
|
|
427
|
-
`,
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
593
|
+
`,
|
|
594
|
+
isInline: true,
|
|
595
|
+
styles: [":host{--_aeris-carousel-chevron: var( --aeris-icon-chevron, url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='m7%209.5%205%205%205-5'%20fill='none'%20stroke='black'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E\") );display:block;min-inline-size:0}.aeris-carousel{display:grid;gap:var(--aeris-carousel-gap, calc(var(--aeris-density-gap, .5rem) * 1.5));min-inline-size:0;color:var(--aeris-carousel-color, var(--aeris-text, #222222))}.aeris-carousel__header,.aeris-carousel__footer{min-inline-size:0}.aeris-carousel__content{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--aeris-carousel-navigator-gap, var(--aeris-density-gap, .5rem));min-inline-size:0}.aeris-carousel__content[data-orientation=vertical]{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto auto;justify-items:center;gap:calc(var(--aeris-carousel-navigator-gap, var(--aeris-density-gap, .5rem)) * .5)}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator--previous{grid-row:1;transform:rotate(180deg)}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__viewport{grid-row:2;inline-size:100%}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator--next{grid-row:4;transform:rotate(0)}.aeris-carousel__viewport{min-inline-size:0;overflow:hidden;border-radius:var(--aeris-carousel-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab}.aeris-carousel__viewport:active{cursor:grabbing}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__viewport{touch-action:pan-x}.aeris-carousel__viewport:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, #2c432c) 24%,transparent);outline-offset:2px}.aeris-carousel__track{display:flex;min-inline-size:0;transition:transform var(--aeris-carousel-transition-duration, .26s) var(--aeris-carousel-transition-easing, cubic-bezier(.22, 1, .36, 1));will-change:transform}.aeris-carousel__track[data-orientation=vertical]{flex-direction:column}.aeris-carousel__track[data-dragging=true]{transition:none;cursor:grabbing}.aeris-carousel__item{box-sizing:border-box;flex:0 0 calc(100% / var(--aeris-carousel-item-count));min-inline-size:0;padding-inline:calc(var(--aeris-carousel-item-gap, var(--aeris-density-gap, .5rem)) / 2)}.aeris-carousel__track[data-orientation=vertical] .aeris-carousel__item{min-block-size:0;padding-block:0;padding-inline:0}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator{transform:none}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator--previous span{transform:rotate(180deg)}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator--next span{transform:none}.aeris-carousel__item:first-child{padding-inline-start:0}.aeris-carousel__item:last-child{padding-inline-end:0}.aeris-carousel__default-item{display:grid;min-block-size:var(--aeris-carousel-default-item-min-height, 10rem);place-items:center;padding:1rem;border:1px solid var(--aeris-carousel-item-border, var(--aeris-border));border-radius:var(--aeris-carousel-item-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-carousel-item-background, var(--aeris-surface, #fff));text-align:center}.aeris-carousel__navigator{inline-size:max(2.5rem,var(--aeris-control-height, 2.625rem));block-size:max(2.5rem,var(--aeris-control-height, 2.625rem));display:grid;flex:0 0 auto;place-items:center;padding:0;border:1px solid var(--aeris-carousel-navigator-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-carousel-navigator-radius, var(--aeris-radius-control, .6875rem));background:var(--aeris-carousel-navigator-background, var(--aeris-surface, #fff));color:var(--aeris-carousel-navigator-color, var(--aeris-text, #222222));cursor:pointer}.aeris-carousel__navigator:hover:not(:disabled){border-color:color-mix(in srgb,var(--aeris-primary, #2c694b) 50%,var(--aeris-border, #deddd7));background:color-mix(in srgb,var(--aeris-primary, #2c694b) 10%,var(--aeris-surface, #fff))}.aeris-carousel__navigator:disabled{opacity:.42;cursor:not-allowed}.aeris-carousel__navigator:focus-visible,.aeris-carousel__indicators button:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, #2c432c) 25%,transparent);outline-offset:2px}.aeris-carousel__navigator span{inline-size:1.125rem;block-size:1.125rem;background:currentColor;transform:rotate(90deg);-webkit-mask:var(--_aeris-carousel-chevron) center/100% 100% no-repeat;mask:var(--_aeris-carousel-chevron) center/100% 100% no-repeat}.aeris-carousel__navigator--next span{transform:rotate(-90deg)}:host([dir=rtl]) .aeris-carousel__navigator--previous span,:host-context([dir=rtl]) .aeris-carousel__navigator--previous span{transform:rotate(-90deg)}:host([dir=rtl]) .aeris-carousel__navigator--next span,:host-context([dir=rtl]) .aeris-carousel__navigator--next span{transform:rotate(90deg)}.aeris-carousel__indicators{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--aeris-carousel-indicator-gap, .5rem)}.aeris-carousel__indicators[data-orientation=vertical]{grid-row:3;flex-direction:row;align-items:center;justify-self:center;margin-block:.125rem}.aeris-carousel__indicators button{inline-size:var(--aeris-carousel-indicator-size, .625rem);block-size:var(--aeris-carousel-indicator-size, .625rem);padding:0;border:0;border-radius:var(--aeris-carousel-indicator-radius, 999px);background:var(--aeris-carousel-indicator-background, var(--aeris-border, #deddd7));cursor:pointer;transition:inline-size .16s ease,background .16s ease}.aeris-carousel__indicators button[aria-current=page]{inline-size:var(--aeris-carousel-active-indicator-width, 1.5rem);background:var(--aeris-carousel-active-indicator-background, var(--aeris-primary, #2c694b))}@media(max-width:38rem){.aeris-carousel__content[data-orientation=horizontal]{grid-template-columns:minmax(0,1fr)}.aeris-carousel__content[data-orientation=horizontal] .aeris-carousel__navigator{position:absolute;z-index:1;inset-block-start:50%;transform:translateY(-50%);box-shadow:0 .5rem 1.5rem #1f231b29}.aeris-carousel__content[data-orientation=horizontal]{position:relative}.aeris-carousel__content[data-orientation=horizontal] .aeris-carousel__navigator--previous{inset-inline-start:.5rem}.aeris-carousel__content[data-orientation=horizontal] .aeris-carousel__navigator--next{inset-inline-end:.5rem}}@media(prefers-reduced-motion:reduce){.aeris-carousel__track,.aeris-carousel__indicators button{transition:none}}\n"],
|
|
596
|
+
dependencies: [{
|
|
597
|
+
kind: "directive",
|
|
598
|
+
type: NgTemplateOutlet,
|
|
599
|
+
selector: "[ngTemplateOutlet]",
|
|
600
|
+
inputs: [
|
|
601
|
+
"ngTemplateOutletContext",
|
|
602
|
+
"ngTemplateOutlet",
|
|
603
|
+
"ngTemplateOutletInjector"
|
|
604
|
+
]
|
|
605
|
+
}]
|
|
606
|
+
});
|
|
607
|
+
};
|
|
608
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
609
|
+
minVersion: "12.0.0",
|
|
610
|
+
version: "22.2.1",
|
|
611
|
+
ngImport: i0,
|
|
612
|
+
type: AerisCarousel,
|
|
613
|
+
decorators: [{
|
|
614
|
+
type: Component,
|
|
615
|
+
args: [{
|
|
616
|
+
selector: "aeris-carousel",
|
|
617
|
+
imports: [NgTemplateOutlet],
|
|
618
|
+
template: `
|
|
432
619
|
<section class="aeris-carousel" [attr.aria-label]="ariaLabel()" [attr.aria-roledescription]="'carousel'">
|
|
433
620
|
<ng-template #indicatorList>
|
|
434
621
|
<div class="aeris-carousel__indicators" [attr.data-orientation]="orientation()" role="group" [attr.aria-label]="indicatorAriaLabel()">
|
|
@@ -522,21 +709,171 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
522
709
|
<div class="aeris-carousel__footer"><ng-container [ngTemplateOutlet]="footer.template" /></div>
|
|
523
710
|
}
|
|
524
711
|
</section>
|
|
525
|
-
`,
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
712
|
+
`,
|
|
713
|
+
host: {
|
|
714
|
+
class: "aeris-carousel-host",
|
|
715
|
+
"[attr.data-orientation]": "orientation()"
|
|
716
|
+
},
|
|
717
|
+
styles: [":host{--_aeris-carousel-chevron: var( --aeris-icon-chevron, url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='m7%209.5%205%205%205-5'%20fill='none'%20stroke='black'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E\") );display:block;min-inline-size:0}.aeris-carousel{display:grid;gap:var(--aeris-carousel-gap, calc(var(--aeris-density-gap, .5rem) * 1.5));min-inline-size:0;color:var(--aeris-carousel-color, var(--aeris-text, #222222))}.aeris-carousel__header,.aeris-carousel__footer{min-inline-size:0}.aeris-carousel__content{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--aeris-carousel-navigator-gap, var(--aeris-density-gap, .5rem));min-inline-size:0}.aeris-carousel__content[data-orientation=vertical]{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto auto;justify-items:center;gap:calc(var(--aeris-carousel-navigator-gap, var(--aeris-density-gap, .5rem)) * .5)}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator--previous{grid-row:1;transform:rotate(180deg)}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__viewport{grid-row:2;inline-size:100%}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator--next{grid-row:4;transform:rotate(0)}.aeris-carousel__viewport{min-inline-size:0;overflow:hidden;border-radius:var(--aeris-carousel-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab}.aeris-carousel__viewport:active{cursor:grabbing}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__viewport{touch-action:pan-x}.aeris-carousel__viewport:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, #2c432c) 24%,transparent);outline-offset:2px}.aeris-carousel__track{display:flex;min-inline-size:0;transition:transform var(--aeris-carousel-transition-duration, .26s) var(--aeris-carousel-transition-easing, cubic-bezier(.22, 1, .36, 1));will-change:transform}.aeris-carousel__track[data-orientation=vertical]{flex-direction:column}.aeris-carousel__track[data-dragging=true]{transition:none;cursor:grabbing}.aeris-carousel__item{box-sizing:border-box;flex:0 0 calc(100% / var(--aeris-carousel-item-count));min-inline-size:0;padding-inline:calc(var(--aeris-carousel-item-gap, var(--aeris-density-gap, .5rem)) / 2)}.aeris-carousel__track[data-orientation=vertical] .aeris-carousel__item{min-block-size:0;padding-block:0;padding-inline:0}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator{transform:none}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator--previous span{transform:rotate(180deg)}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator--next span{transform:none}.aeris-carousel__item:first-child{padding-inline-start:0}.aeris-carousel__item:last-child{padding-inline-end:0}.aeris-carousel__default-item{display:grid;min-block-size:var(--aeris-carousel-default-item-min-height, 10rem);place-items:center;padding:1rem;border:1px solid var(--aeris-carousel-item-border, var(--aeris-border));border-radius:var(--aeris-carousel-item-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-carousel-item-background, var(--aeris-surface, #fff));text-align:center}.aeris-carousel__navigator{inline-size:max(2.5rem,var(--aeris-control-height, 2.625rem));block-size:max(2.5rem,var(--aeris-control-height, 2.625rem));display:grid;flex:0 0 auto;place-items:center;padding:0;border:1px solid var(--aeris-carousel-navigator-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-carousel-navigator-radius, var(--aeris-radius-control, .6875rem));background:var(--aeris-carousel-navigator-background, var(--aeris-surface, #fff));color:var(--aeris-carousel-navigator-color, var(--aeris-text, #222222));cursor:pointer}.aeris-carousel__navigator:hover:not(:disabled){border-color:color-mix(in srgb,var(--aeris-primary, #2c694b) 50%,var(--aeris-border, #deddd7));background:color-mix(in srgb,var(--aeris-primary, #2c694b) 10%,var(--aeris-surface, #fff))}.aeris-carousel__navigator:disabled{opacity:.42;cursor:not-allowed}.aeris-carousel__navigator:focus-visible,.aeris-carousel__indicators button:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, #2c432c) 25%,transparent);outline-offset:2px}.aeris-carousel__navigator span{inline-size:1.125rem;block-size:1.125rem;background:currentColor;transform:rotate(90deg);-webkit-mask:var(--_aeris-carousel-chevron) center/100% 100% no-repeat;mask:var(--_aeris-carousel-chevron) center/100% 100% no-repeat}.aeris-carousel__navigator--next span{transform:rotate(-90deg)}:host([dir=rtl]) .aeris-carousel__navigator--previous span,:host-context([dir=rtl]) .aeris-carousel__navigator--previous span{transform:rotate(-90deg)}:host([dir=rtl]) .aeris-carousel__navigator--next span,:host-context([dir=rtl]) .aeris-carousel__navigator--next span{transform:rotate(90deg)}.aeris-carousel__indicators{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--aeris-carousel-indicator-gap, .5rem)}.aeris-carousel__indicators[data-orientation=vertical]{grid-row:3;flex-direction:row;align-items:center;justify-self:center;margin-block:.125rem}.aeris-carousel__indicators button{inline-size:var(--aeris-carousel-indicator-size, .625rem);block-size:var(--aeris-carousel-indicator-size, .625rem);padding:0;border:0;border-radius:var(--aeris-carousel-indicator-radius, 999px);background:var(--aeris-carousel-indicator-background, var(--aeris-border, #deddd7));cursor:pointer;transition:inline-size .16s ease,background .16s ease}.aeris-carousel__indicators button[aria-current=page]{inline-size:var(--aeris-carousel-active-indicator-width, 1.5rem);background:var(--aeris-carousel-active-indicator-background, var(--aeris-primary, #2c694b))}@media(max-width:38rem){.aeris-carousel__content[data-orientation=horizontal]{grid-template-columns:minmax(0,1fr)}.aeris-carousel__content[data-orientation=horizontal] .aeris-carousel__navigator{position:absolute;z-index:1;inset-block-start:50%;transform:translateY(-50%);box-shadow:0 .5rem 1.5rem #1f231b29}.aeris-carousel__content[data-orientation=horizontal]{position:relative}.aeris-carousel__content[data-orientation=horizontal] .aeris-carousel__navigator--previous{inset-inline-start:.5rem}.aeris-carousel__content[data-orientation=horizontal] .aeris-carousel__navigator--next{inset-inline-end:.5rem}}@media(prefers-reduced-motion:reduce){.aeris-carousel__track,.aeris-carousel__indicators button{transition:none}}\n"]
|
|
718
|
+
}]
|
|
719
|
+
}],
|
|
720
|
+
ctorParameters: () => [],
|
|
721
|
+
propDecorators: {
|
|
722
|
+
itemTemplate: [{
|
|
723
|
+
type: i0.ContentChild,
|
|
724
|
+
args: [i0.forwardRef(() => AerisCarouselItemTemplate), { isSignal: true }]
|
|
725
|
+
}],
|
|
726
|
+
headerTemplate: [{
|
|
727
|
+
type: i0.ContentChild,
|
|
728
|
+
args: [i0.forwardRef(() => AerisCarouselHeaderTemplate), { isSignal: true }]
|
|
729
|
+
}],
|
|
730
|
+
footerTemplate: [{
|
|
731
|
+
type: i0.ContentChild,
|
|
732
|
+
args: [i0.forwardRef(() => AerisCarouselFooterTemplate), { isSignal: true }]
|
|
733
|
+
}],
|
|
734
|
+
value: [{
|
|
735
|
+
type: i0.Input,
|
|
736
|
+
args: [{
|
|
737
|
+
isSignal: true,
|
|
738
|
+
alias: "value",
|
|
739
|
+
required: false
|
|
740
|
+
}]
|
|
741
|
+
}],
|
|
742
|
+
page: [{
|
|
743
|
+
type: i0.Input,
|
|
744
|
+
args: [{
|
|
745
|
+
isSignal: true,
|
|
746
|
+
alias: "page",
|
|
747
|
+
required: false
|
|
748
|
+
}]
|
|
749
|
+
}, {
|
|
750
|
+
type: i0.Output,
|
|
751
|
+
args: ["pageChange"]
|
|
752
|
+
}],
|
|
753
|
+
numVisible: [{
|
|
754
|
+
type: i0.Input,
|
|
755
|
+
args: [{
|
|
756
|
+
isSignal: true,
|
|
757
|
+
alias: "numVisible",
|
|
758
|
+
required: false
|
|
759
|
+
}]
|
|
760
|
+
}],
|
|
761
|
+
numScroll: [{
|
|
762
|
+
type: i0.Input,
|
|
763
|
+
args: [{
|
|
764
|
+
isSignal: true,
|
|
765
|
+
alias: "numScroll",
|
|
766
|
+
required: false
|
|
767
|
+
}]
|
|
768
|
+
}],
|
|
769
|
+
responsiveOptions: [{
|
|
770
|
+
type: i0.Input,
|
|
771
|
+
args: [{
|
|
772
|
+
isSignal: true,
|
|
773
|
+
alias: "responsiveOptions",
|
|
774
|
+
required: false
|
|
775
|
+
}]
|
|
776
|
+
}],
|
|
777
|
+
circular: [{
|
|
778
|
+
type: i0.Input,
|
|
779
|
+
args: [{
|
|
780
|
+
isSignal: true,
|
|
781
|
+
alias: "circular",
|
|
782
|
+
required: false
|
|
783
|
+
}]
|
|
784
|
+
}],
|
|
785
|
+
showNavigators: [{
|
|
786
|
+
type: i0.Input,
|
|
787
|
+
args: [{
|
|
788
|
+
isSignal: true,
|
|
789
|
+
alias: "showNavigators",
|
|
790
|
+
required: false
|
|
791
|
+
}]
|
|
792
|
+
}],
|
|
793
|
+
showIndicators: [{
|
|
794
|
+
type: i0.Input,
|
|
795
|
+
args: [{
|
|
796
|
+
isSignal: true,
|
|
797
|
+
alias: "showIndicators",
|
|
798
|
+
required: false
|
|
799
|
+
}]
|
|
800
|
+
}],
|
|
801
|
+
autoplayInterval: [{
|
|
802
|
+
type: i0.Input,
|
|
803
|
+
args: [{
|
|
804
|
+
isSignal: true,
|
|
805
|
+
alias: "autoplayInterval",
|
|
806
|
+
required: false
|
|
807
|
+
}]
|
|
808
|
+
}],
|
|
809
|
+
pauseOnHover: [{
|
|
810
|
+
type: i0.Input,
|
|
811
|
+
args: [{
|
|
812
|
+
isSignal: true,
|
|
813
|
+
alias: "pauseOnHover",
|
|
814
|
+
required: false
|
|
815
|
+
}]
|
|
816
|
+
}],
|
|
817
|
+
orientation: [{
|
|
818
|
+
type: i0.Input,
|
|
819
|
+
args: [{
|
|
820
|
+
isSignal: true,
|
|
821
|
+
alias: "orientation",
|
|
822
|
+
required: false
|
|
823
|
+
}]
|
|
824
|
+
}],
|
|
825
|
+
verticalViewportHeight: [{
|
|
826
|
+
type: i0.Input,
|
|
827
|
+
args: [{
|
|
828
|
+
isSignal: true,
|
|
829
|
+
alias: "verticalViewportHeight",
|
|
830
|
+
required: false
|
|
831
|
+
}]
|
|
832
|
+
}],
|
|
833
|
+
ariaLabel: [{
|
|
834
|
+
type: i0.Input,
|
|
835
|
+
args: [{
|
|
836
|
+
isSignal: true,
|
|
837
|
+
alias: "ariaLabel",
|
|
838
|
+
required: false
|
|
839
|
+
}]
|
|
840
|
+
}],
|
|
841
|
+
indicatorAriaLabel: [{
|
|
842
|
+
type: i0.Input,
|
|
843
|
+
args: [{
|
|
844
|
+
isSignal: true,
|
|
845
|
+
alias: "indicatorAriaLabel",
|
|
846
|
+
required: false
|
|
847
|
+
}]
|
|
848
|
+
}],
|
|
849
|
+
previousAriaLabel: [{
|
|
850
|
+
type: i0.Input,
|
|
851
|
+
args: [{
|
|
852
|
+
isSignal: true,
|
|
853
|
+
alias: "previousAriaLabel",
|
|
854
|
+
required: false
|
|
855
|
+
}]
|
|
856
|
+
}],
|
|
857
|
+
nextAriaLabel: [{
|
|
858
|
+
type: i0.Input,
|
|
859
|
+
args: [{
|
|
860
|
+
isSignal: true,
|
|
861
|
+
alias: "nextAriaLabel",
|
|
862
|
+
required: false
|
|
863
|
+
}]
|
|
864
|
+
}],
|
|
865
|
+
pageChanged: [{
|
|
866
|
+
type: i0.Output,
|
|
867
|
+
args: ["pageChanged"]
|
|
868
|
+
}]
|
|
869
|
+
}
|
|
870
|
+
});
|
|
530
871
|
const AerisCarouselModule = [
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
872
|
+
AerisCarousel,
|
|
873
|
+
AerisCarouselItemTemplate,
|
|
874
|
+
AerisCarouselHeaderTemplate,
|
|
875
|
+
AerisCarouselFooterTemplate
|
|
535
876
|
];
|
|
536
|
-
|
|
537
|
-
/**
|
|
538
|
-
* Generated bundle index. Do not edit.
|
|
539
|
-
*/
|
|
540
|
-
|
|
541
877
|
export { AerisCarousel, AerisCarouselFooterTemplate, AerisCarouselHeaderTemplate, AerisCarouselItemTemplate, AerisCarouselModule };
|
|
542
|
-
|
|
878
|
+
|
|
879
|
+
//# sourceMappingURL=aeris-ui-core-carousel.mjs.map
|