@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,134 +1,280 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, afterNextRender, booleanAttribute, computed, input, numberAttribute, output, signal, viewChild } from "@angular/core";
|
|
4
3
|
let nextScrollPanelId = 0;
|
|
5
|
-
class AerisScrollPanel {
|
|
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
|
-
|
|
4
|
+
var AerisScrollPanel = class AerisScrollPanel {
|
|
5
|
+
instanceId = ++nextScrollPanelId;
|
|
6
|
+
viewport = viewChild("viewport", ...ngDevMode ? [{ debugName: "viewport" }] : /* istanbul ignore next */ []);
|
|
7
|
+
canScrollTop = signal(false, ...ngDevMode ? [{ debugName: "canScrollTop" }] : /* istanbul ignore next */ []);
|
|
8
|
+
canScrollBottom = signal(false, ...ngDevMode ? [{ debugName: "canScrollBottom" }] : /* istanbul ignore next */ []);
|
|
9
|
+
canScrollStart = signal(false, ...ngDevMode ? [{ debugName: "canScrollStart" }] : /* istanbul ignore next */ []);
|
|
10
|
+
canScrollEnd = signal(false, ...ngDevMode ? [{ debugName: "canScrollEnd" }] : /* istanbul ignore next */ []);
|
|
11
|
+
id = input(`aeris-scroll-panel-${this.instanceId}`, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
|
|
12
|
+
orientation = input("vertical", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
|
|
13
|
+
variant = input("auto", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
14
|
+
fade = input(false, {
|
|
15
|
+
...ngDevMode ? { debugName: "fade" } : /* istanbul ignore next */ {},
|
|
16
|
+
transform: booleanAttribute
|
|
17
|
+
});
|
|
18
|
+
fluid = input(true, {
|
|
19
|
+
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
20
|
+
transform: booleanAttribute
|
|
21
|
+
});
|
|
22
|
+
focusable = input(true, {
|
|
23
|
+
...ngDevMode ? { debugName: "focusable" } : /* istanbul ignore next */ {},
|
|
24
|
+
transform: booleanAttribute
|
|
25
|
+
});
|
|
26
|
+
tabIndex = input(0, {
|
|
27
|
+
...ngDevMode ? { debugName: "tabIndex" } : /* istanbul ignore next */ {},
|
|
28
|
+
transform: numberAttribute
|
|
29
|
+
});
|
|
30
|
+
height = input("14rem", ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
31
|
+
maxHeight = input("", ...ngDevMode ? [{ debugName: "maxHeight" }] : /* istanbul ignore next */ []);
|
|
32
|
+
width = input("100%", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
33
|
+
maxWidth = input("", ...ngDevMode ? [{ debugName: "maxWidth" }] : /* istanbul ignore next */ []);
|
|
34
|
+
role = input("region", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
|
|
35
|
+
ariaLabel = input("Scrollable content", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
36
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
37
|
+
ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
38
|
+
scrolled = output();
|
|
39
|
+
reachedTop = output();
|
|
40
|
+
reachedBottom = output();
|
|
41
|
+
reachedStart = output();
|
|
42
|
+
reachedEnd = output();
|
|
43
|
+
viewportId = computed(() => `${this.id()}-viewport`, ...ngDevMode ? [{ debugName: "viewportId" }] : /* istanbul ignore next */ []);
|
|
44
|
+
resolvedAriaLabel = computed(() => this.ariaLabelledBy() ? null : this.ariaLabel() || null, ...ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []);
|
|
45
|
+
constructor() {
|
|
46
|
+
afterNextRender(() => this.refresh());
|
|
47
|
+
}
|
|
48
|
+
scrollTo(options) {
|
|
49
|
+
this.viewportElement()?.scrollTo(options);
|
|
50
|
+
}
|
|
51
|
+
scrollBy(options) {
|
|
52
|
+
this.viewportElement()?.scrollBy(options);
|
|
53
|
+
}
|
|
54
|
+
scrollToTop(options = {}) {
|
|
55
|
+
this.scrollTo({
|
|
56
|
+
...options,
|
|
57
|
+
top: 0
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
scrollToBottom(options = {}) {
|
|
61
|
+
const viewport = this.viewportElement();
|
|
62
|
+
if (!viewport) return;
|
|
63
|
+
this.scrollTo({
|
|
64
|
+
...options,
|
|
65
|
+
top: viewport.scrollHeight - viewport.clientHeight
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
scrollToStart(options = {}) {
|
|
69
|
+
this.scrollTo({
|
|
70
|
+
...options,
|
|
71
|
+
left: 0
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
scrollToEnd(options = {}) {
|
|
75
|
+
const viewport = this.viewportElement();
|
|
76
|
+
if (!viewport) return;
|
|
77
|
+
this.scrollTo({
|
|
78
|
+
...options,
|
|
79
|
+
left: viewport.scrollWidth - viewport.clientWidth
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
refresh() {
|
|
83
|
+
const viewport = this.viewportElement();
|
|
84
|
+
if (!viewport) return;
|
|
85
|
+
this.updateScrollState(this.createScrollEvent(viewport, null));
|
|
86
|
+
}
|
|
87
|
+
handleScroll(event) {
|
|
88
|
+
const target = event.currentTarget;
|
|
89
|
+
if (!(target instanceof HTMLElement)) return;
|
|
90
|
+
const scrollEvent = this.createScrollEvent(target, event);
|
|
91
|
+
this.updateScrollState(scrollEvent);
|
|
92
|
+
this.scrolled.emit(scrollEvent);
|
|
93
|
+
if (scrollEvent.atTop) this.reachedTop.emit(scrollEvent);
|
|
94
|
+
if (scrollEvent.atBottom) this.reachedBottom.emit(scrollEvent);
|
|
95
|
+
if (scrollEvent.atStart) this.reachedStart.emit(scrollEvent);
|
|
96
|
+
if (scrollEvent.atEnd) this.reachedEnd.emit(scrollEvent);
|
|
97
|
+
}
|
|
98
|
+
viewportElement() {
|
|
99
|
+
return this.viewport()?.nativeElement ?? null;
|
|
100
|
+
}
|
|
101
|
+
createScrollEvent(viewport, originalEvent) {
|
|
102
|
+
const tolerance = 1;
|
|
103
|
+
const maxTop = Math.max(0, viewport.scrollHeight - viewport.clientHeight);
|
|
104
|
+
const maxLeft = Math.max(0, viewport.scrollWidth - viewport.clientWidth);
|
|
105
|
+
const scrollTop = viewport.scrollTop;
|
|
106
|
+
const scrollLeft = viewport.scrollLeft;
|
|
107
|
+
return {
|
|
108
|
+
originalEvent,
|
|
109
|
+
scrollTop,
|
|
110
|
+
scrollLeft,
|
|
111
|
+
scrollHeight: viewport.scrollHeight,
|
|
112
|
+
scrollWidth: viewport.scrollWidth,
|
|
113
|
+
clientHeight: viewport.clientHeight,
|
|
114
|
+
clientWidth: viewport.clientWidth,
|
|
115
|
+
atTop: scrollTop <= tolerance,
|
|
116
|
+
atBottom: maxTop - scrollTop <= tolerance,
|
|
117
|
+
atStart: scrollLeft <= tolerance,
|
|
118
|
+
atEnd: maxLeft - scrollLeft <= tolerance
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
updateScrollState(event) {
|
|
122
|
+
this.canScrollTop.set(!event.atTop);
|
|
123
|
+
this.canScrollBottom.set(!event.atBottom);
|
|
124
|
+
this.canScrollStart.set(!event.atStart);
|
|
125
|
+
this.canScrollEnd.set(!event.atEnd);
|
|
126
|
+
}
|
|
127
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
128
|
+
minVersion: "12.0.0",
|
|
129
|
+
version: "22.2.1",
|
|
130
|
+
ngImport: i0,
|
|
131
|
+
type: AerisScrollPanel,
|
|
132
|
+
deps: [],
|
|
133
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
134
|
+
});
|
|
135
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
136
|
+
minVersion: "17.2.0",
|
|
137
|
+
version: "22.2.1",
|
|
138
|
+
type: AerisScrollPanel,
|
|
139
|
+
isStandalone: true,
|
|
140
|
+
selector: "aeris-scroll-panel",
|
|
141
|
+
inputs: {
|
|
142
|
+
id: {
|
|
143
|
+
classPropertyName: "id",
|
|
144
|
+
publicName: "id",
|
|
145
|
+
isSignal: true,
|
|
146
|
+
isRequired: false,
|
|
147
|
+
transformFunction: null
|
|
148
|
+
},
|
|
149
|
+
orientation: {
|
|
150
|
+
classPropertyName: "orientation",
|
|
151
|
+
publicName: "orientation",
|
|
152
|
+
isSignal: true,
|
|
153
|
+
isRequired: false,
|
|
154
|
+
transformFunction: null
|
|
155
|
+
},
|
|
156
|
+
variant: {
|
|
157
|
+
classPropertyName: "variant",
|
|
158
|
+
publicName: "variant",
|
|
159
|
+
isSignal: true,
|
|
160
|
+
isRequired: false,
|
|
161
|
+
transformFunction: null
|
|
162
|
+
},
|
|
163
|
+
fade: {
|
|
164
|
+
classPropertyName: "fade",
|
|
165
|
+
publicName: "fade",
|
|
166
|
+
isSignal: true,
|
|
167
|
+
isRequired: false,
|
|
168
|
+
transformFunction: null
|
|
169
|
+
},
|
|
170
|
+
fluid: {
|
|
171
|
+
classPropertyName: "fluid",
|
|
172
|
+
publicName: "fluid",
|
|
173
|
+
isSignal: true,
|
|
174
|
+
isRequired: false,
|
|
175
|
+
transformFunction: null
|
|
176
|
+
},
|
|
177
|
+
focusable: {
|
|
178
|
+
classPropertyName: "focusable",
|
|
179
|
+
publicName: "focusable",
|
|
180
|
+
isSignal: true,
|
|
181
|
+
isRequired: false,
|
|
182
|
+
transformFunction: null
|
|
183
|
+
},
|
|
184
|
+
tabIndex: {
|
|
185
|
+
classPropertyName: "tabIndex",
|
|
186
|
+
publicName: "tabIndex",
|
|
187
|
+
isSignal: true,
|
|
188
|
+
isRequired: false,
|
|
189
|
+
transformFunction: null
|
|
190
|
+
},
|
|
191
|
+
height: {
|
|
192
|
+
classPropertyName: "height",
|
|
193
|
+
publicName: "height",
|
|
194
|
+
isSignal: true,
|
|
195
|
+
isRequired: false,
|
|
196
|
+
transformFunction: null
|
|
197
|
+
},
|
|
198
|
+
maxHeight: {
|
|
199
|
+
classPropertyName: "maxHeight",
|
|
200
|
+
publicName: "maxHeight",
|
|
201
|
+
isSignal: true,
|
|
202
|
+
isRequired: false,
|
|
203
|
+
transformFunction: null
|
|
204
|
+
},
|
|
205
|
+
width: {
|
|
206
|
+
classPropertyName: "width",
|
|
207
|
+
publicName: "width",
|
|
208
|
+
isSignal: true,
|
|
209
|
+
isRequired: false,
|
|
210
|
+
transformFunction: null
|
|
211
|
+
},
|
|
212
|
+
maxWidth: {
|
|
213
|
+
classPropertyName: "maxWidth",
|
|
214
|
+
publicName: "maxWidth",
|
|
215
|
+
isSignal: true,
|
|
216
|
+
isRequired: false,
|
|
217
|
+
transformFunction: null
|
|
218
|
+
},
|
|
219
|
+
role: {
|
|
220
|
+
classPropertyName: "role",
|
|
221
|
+
publicName: "role",
|
|
222
|
+
isSignal: true,
|
|
223
|
+
isRequired: false,
|
|
224
|
+
transformFunction: null
|
|
225
|
+
},
|
|
226
|
+
ariaLabel: {
|
|
227
|
+
classPropertyName: "ariaLabel",
|
|
228
|
+
publicName: "ariaLabel",
|
|
229
|
+
isSignal: true,
|
|
230
|
+
isRequired: false,
|
|
231
|
+
transformFunction: null
|
|
232
|
+
},
|
|
233
|
+
ariaLabelledBy: {
|
|
234
|
+
classPropertyName: "ariaLabelledBy",
|
|
235
|
+
publicName: "ariaLabelledBy",
|
|
236
|
+
isSignal: true,
|
|
237
|
+
isRequired: false,
|
|
238
|
+
transformFunction: null
|
|
239
|
+
},
|
|
240
|
+
ariaDescribedBy: {
|
|
241
|
+
classPropertyName: "ariaDescribedBy",
|
|
242
|
+
publicName: "ariaDescribedBy",
|
|
243
|
+
isSignal: true,
|
|
244
|
+
isRequired: false,
|
|
245
|
+
transformFunction: null
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
outputs: {
|
|
249
|
+
scrolled: "scrolled",
|
|
250
|
+
reachedTop: "reachedTop",
|
|
251
|
+
reachedBottom: "reachedBottom",
|
|
252
|
+
reachedStart: "reachedStart",
|
|
253
|
+
reachedEnd: "reachedEnd"
|
|
254
|
+
},
|
|
255
|
+
host: {
|
|
256
|
+
properties: {
|
|
257
|
+
"attr.id": "id()",
|
|
258
|
+
"attr.data-orientation": "orientation()",
|
|
259
|
+
"attr.data-variant": "variant()",
|
|
260
|
+
"attr.data-fade": "fade() || null",
|
|
261
|
+
"attr.data-fluid": "fluid() || null",
|
|
262
|
+
"attr.data-scroll-top": "canScrollTop() || null",
|
|
263
|
+
"attr.data-scroll-bottom": "canScrollBottom() || null",
|
|
264
|
+
"attr.data-scroll-start": "canScrollStart() || null",
|
|
265
|
+
"attr.data-scroll-end": "canScrollEnd() || null"
|
|
266
|
+
},
|
|
267
|
+
classAttribute: "aeris-scroll-panel"
|
|
268
|
+
},
|
|
269
|
+
viewQueries: [{
|
|
270
|
+
propertyName: "viewport",
|
|
271
|
+
first: true,
|
|
272
|
+
predicate: ["viewport"],
|
|
273
|
+
descendants: true,
|
|
274
|
+
isSignal: true
|
|
275
|
+
}],
|
|
276
|
+
ngImport: i0,
|
|
277
|
+
template: `
|
|
132
278
|
<div
|
|
133
279
|
class="aeris-scroll-panel__frame"
|
|
134
280
|
[style.block-size]="height() || null"
|
|
@@ -156,11 +302,21 @@ class AerisScrollPanel {
|
|
|
156
302
|
<span class="aeris-scroll-panel__fade aeris-scroll-panel__fade--start" aria-hidden="true"></span>
|
|
157
303
|
<span class="aeris-scroll-panel__fade aeris-scroll-panel__fade--end" aria-hidden="true"></span>
|
|
158
304
|
</div>
|
|
159
|
-
`,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
305
|
+
`,
|
|
306
|
+
isInline: true,
|
|
307
|
+
styles: [":host{display:block;min-inline-size:0}:host([data-fluid=true]){inline-size:100%}.aeris-scroll-panel__frame{position:relative;min-inline-size:0;overflow:hidden;border:var(--aeris-scroll-panel-border-width, 1px) solid var(--aeris-scroll-panel-border, var(--aeris-border));border-radius:var(--aeris-scroll-panel-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-scroll-panel-background, var(--aeris-surface, #fff));color:var(--aeris-scroll-panel-color, var(--aeris-text, #222222))}.aeris-scroll-panel__frame:has(.aeris-scroll-panel__viewport:focus-visible){outline:3px solid color-mix(in srgb,var(--focus, var(--aeris-primary, #2c694b)) 42%,transparent);outline-offset:3px}.aeris-scroll-panel__viewport{position:relative;z-index:1;min-inline-size:0;inline-size:100%;block-size:100%;overflow:auto;overscroll-behavior:contain;background:transparent;color:inherit;scrollbar-color:var(--aeris-scroll-panel-thumb, color-mix(in srgb, var(--aeris-text, #222222) 34%, transparent)) var(--aeris-scroll-panel-track, transparent);scrollbar-gutter:stable;scrollbar-width:thin}.aeris-scroll-panel__viewport:focus-visible{outline:none}.aeris-scroll-panel__viewport::-webkit-scrollbar{inline-size:var(--aeris-scroll-panel-scrollbar-size, .75rem);block-size:var(--aeris-scroll-panel-scrollbar-size, .75rem)}.aeris-scroll-panel__viewport::-webkit-scrollbar-track{border-radius:999px;background:var(--aeris-scroll-panel-track, transparent)}.aeris-scroll-panel__viewport::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:999px;background:var(--aeris-scroll-panel-thumb, color-mix(in srgb, var(--aeris-text, #222222) 34%, transparent));background-clip:content-box}.aeris-scroll-panel__viewport::-webkit-scrollbar-thumb:hover{background:var(--aeris-scroll-panel-thumb-hover, color-mix(in srgb, var(--aeris-text, #222222) 48%, transparent));background-clip:content-box}.aeris-scroll-panel__content{min-inline-size:0;padding:var(--aeris-scroll-panel-padding, 1rem);color:var(--aeris-scroll-panel-content-color, var(--aeris-text-2, #555555));font-size:var(--aeris-scroll-panel-content-size, .875rem);line-height:1.65}.aeris-scroll-panel__content>:first-child{margin-block-start:0}.aeris-scroll-panel__content>:last-child{margin-block-end:0}:host([data-orientation=vertical]) .aeris-scroll-panel__viewport{overflow-x:hidden;overflow-y:auto}:host([data-orientation=horizontal]) .aeris-scroll-panel__viewport{overflow-x:auto;overflow-y:hidden}:host([data-orientation=horizontal]) .aeris-scroll-panel__content,:host([data-orientation=both]) .aeris-scroll-panel__content{inline-size:max-content;min-inline-size:100%}:host([data-variant=hover]) .aeris-scroll-panel__viewport{scrollbar-color:transparent transparent}:host([data-variant=hover]) .aeris-scroll-panel__viewport:is(:hover,:focus-within){scrollbar-color:var(--aeris-scroll-panel-thumb, color-mix(in srgb, var(--aeris-text, #222222) 34%, transparent)) var(--aeris-scroll-panel-track, transparent)}:host([data-variant=hover]) .aeris-scroll-panel__viewport::-webkit-scrollbar-thumb{background:transparent}:host([data-variant=hover]) .aeris-scroll-panel__viewport:is(:hover,:focus-within)::-webkit-scrollbar-thumb{background:var(--aeris-scroll-panel-thumb, color-mix(in srgb, var(--aeris-text, #222222) 34%, transparent));background-clip:content-box}:host([data-variant=always]) .aeris-scroll-panel__viewport{scrollbar-color:var(--aeris-scroll-panel-thumb-always, color-mix(in srgb, var(--aeris-text, #222222) 42%, transparent)) var(--aeris-scroll-panel-track-always, color-mix(in srgb, var(--aeris-text, #222222) 8%, transparent))}:host([data-variant=always]) .aeris-scroll-panel__viewport::-webkit-scrollbar-track{background:var(--aeris-scroll-panel-track-always, color-mix(in srgb, var(--aeris-text, #222222) 8%, transparent))}:host([data-variant=always]) .aeris-scroll-panel__viewport::-webkit-scrollbar-thumb{background:var(--aeris-scroll-panel-thumb-always, color-mix(in srgb, var(--aeris-text, #222222) 42%, transparent));background-clip:content-box}:host([data-variant=hidden]) .aeris-scroll-panel__viewport{scrollbar-width:none}:host([data-variant=hidden]) .aeris-scroll-panel__viewport::-webkit-scrollbar{display:none}.aeris-scroll-panel__fade{--_fade-size: var(--aeris-scroll-panel-fade-size, 2rem);position:absolute;z-index:2;display:block;pointer-events:none;opacity:0;transition:opacity .14s ease}.aeris-scroll-panel__fade--top,.aeris-scroll-panel__fade--bottom{inset-inline:0;block-size:var(--_fade-size)}.aeris-scroll-panel__fade--top{inset-block-start:0;background:linear-gradient(to bottom,var(--aeris-scroll-panel-background, var(--aeris-surface, #fff)),transparent)}.aeris-scroll-panel__fade--bottom{inset-block-end:0;background:linear-gradient(to top,var(--aeris-scroll-panel-background, var(--aeris-surface, #fff)),transparent)}.aeris-scroll-panel__fade--start,.aeris-scroll-panel__fade--end{inset-block:0;inline-size:var(--_fade-size)}.aeris-scroll-panel__fade--start{inset-inline-start:0;background:linear-gradient(to right,var(--aeris-scroll-panel-background, var(--aeris-surface, #fff)),transparent)}.aeris-scroll-panel__fade--end{inset-inline-end:0;background:linear-gradient(to left,var(--aeris-scroll-panel-background, var(--aeris-surface, #fff)),transparent)}:host([data-fade=true][data-scroll-top=true]) .aeris-scroll-panel__fade--top,:host([data-fade=true][data-scroll-bottom=true]) .aeris-scroll-panel__fade--bottom,:host([data-fade=true][data-scroll-start=true]) .aeris-scroll-panel__fade--start,:host([data-fade=true][data-scroll-end=true]) .aeris-scroll-panel__fade--end{opacity:1}@media(prefers-reduced-motion:reduce){.aeris-scroll-panel__viewport{scroll-behavior:auto}.aeris-scroll-panel__fade{transition:none}}\n"]
|
|
308
|
+
});
|
|
309
|
+
};
|
|
310
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
311
|
+
minVersion: "12.0.0",
|
|
312
|
+
version: "22.2.1",
|
|
313
|
+
ngImport: i0,
|
|
314
|
+
type: AerisScrollPanel,
|
|
315
|
+
decorators: [{
|
|
316
|
+
type: Component,
|
|
317
|
+
args: [{
|
|
318
|
+
selector: "aeris-scroll-panel",
|
|
319
|
+
template: `
|
|
164
320
|
<div
|
|
165
321
|
class="aeris-scroll-panel__frame"
|
|
166
322
|
[style.block-size]="height() || null"
|
|
@@ -188,24 +344,171 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
188
344
|
<span class="aeris-scroll-panel__fade aeris-scroll-panel__fade--start" aria-hidden="true"></span>
|
|
189
345
|
<span class="aeris-scroll-panel__fade aeris-scroll-panel__fade--end" aria-hidden="true"></span>
|
|
190
346
|
</div>
|
|
191
|
-
`,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
347
|
+
`,
|
|
348
|
+
host: {
|
|
349
|
+
class: "aeris-scroll-panel",
|
|
350
|
+
"[attr.id]": "id()",
|
|
351
|
+
"[attr.data-orientation]": "orientation()",
|
|
352
|
+
"[attr.data-variant]": "variant()",
|
|
353
|
+
"[attr.data-fade]": "fade() || null",
|
|
354
|
+
"[attr.data-fluid]": "fluid() || null",
|
|
355
|
+
"[attr.data-scroll-top]": "canScrollTop() || null",
|
|
356
|
+
"[attr.data-scroll-bottom]": "canScrollBottom() || null",
|
|
357
|
+
"[attr.data-scroll-start]": "canScrollStart() || null",
|
|
358
|
+
"[attr.data-scroll-end]": "canScrollEnd() || null"
|
|
359
|
+
},
|
|
360
|
+
styles: [":host{display:block;min-inline-size:0}:host([data-fluid=true]){inline-size:100%}.aeris-scroll-panel__frame{position:relative;min-inline-size:0;overflow:hidden;border:var(--aeris-scroll-panel-border-width, 1px) solid var(--aeris-scroll-panel-border, var(--aeris-border));border-radius:var(--aeris-scroll-panel-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-scroll-panel-background, var(--aeris-surface, #fff));color:var(--aeris-scroll-panel-color, var(--aeris-text, #222222))}.aeris-scroll-panel__frame:has(.aeris-scroll-panel__viewport:focus-visible){outline:3px solid color-mix(in srgb,var(--focus, var(--aeris-primary, #2c694b)) 42%,transparent);outline-offset:3px}.aeris-scroll-panel__viewport{position:relative;z-index:1;min-inline-size:0;inline-size:100%;block-size:100%;overflow:auto;overscroll-behavior:contain;background:transparent;color:inherit;scrollbar-color:var(--aeris-scroll-panel-thumb, color-mix(in srgb, var(--aeris-text, #222222) 34%, transparent)) var(--aeris-scroll-panel-track, transparent);scrollbar-gutter:stable;scrollbar-width:thin}.aeris-scroll-panel__viewport:focus-visible{outline:none}.aeris-scroll-panel__viewport::-webkit-scrollbar{inline-size:var(--aeris-scroll-panel-scrollbar-size, .75rem);block-size:var(--aeris-scroll-panel-scrollbar-size, .75rem)}.aeris-scroll-panel__viewport::-webkit-scrollbar-track{border-radius:999px;background:var(--aeris-scroll-panel-track, transparent)}.aeris-scroll-panel__viewport::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:999px;background:var(--aeris-scroll-panel-thumb, color-mix(in srgb, var(--aeris-text, #222222) 34%, transparent));background-clip:content-box}.aeris-scroll-panel__viewport::-webkit-scrollbar-thumb:hover{background:var(--aeris-scroll-panel-thumb-hover, color-mix(in srgb, var(--aeris-text, #222222) 48%, transparent));background-clip:content-box}.aeris-scroll-panel__content{min-inline-size:0;padding:var(--aeris-scroll-panel-padding, 1rem);color:var(--aeris-scroll-panel-content-color, var(--aeris-text-2, #555555));font-size:var(--aeris-scroll-panel-content-size, .875rem);line-height:1.65}.aeris-scroll-panel__content>:first-child{margin-block-start:0}.aeris-scroll-panel__content>:last-child{margin-block-end:0}:host([data-orientation=vertical]) .aeris-scroll-panel__viewport{overflow-x:hidden;overflow-y:auto}:host([data-orientation=horizontal]) .aeris-scroll-panel__viewport{overflow-x:auto;overflow-y:hidden}:host([data-orientation=horizontal]) .aeris-scroll-panel__content,:host([data-orientation=both]) .aeris-scroll-panel__content{inline-size:max-content;min-inline-size:100%}:host([data-variant=hover]) .aeris-scroll-panel__viewport{scrollbar-color:transparent transparent}:host([data-variant=hover]) .aeris-scroll-panel__viewport:is(:hover,:focus-within){scrollbar-color:var(--aeris-scroll-panel-thumb, color-mix(in srgb, var(--aeris-text, #222222) 34%, transparent)) var(--aeris-scroll-panel-track, transparent)}:host([data-variant=hover]) .aeris-scroll-panel__viewport::-webkit-scrollbar-thumb{background:transparent}:host([data-variant=hover]) .aeris-scroll-panel__viewport:is(:hover,:focus-within)::-webkit-scrollbar-thumb{background:var(--aeris-scroll-panel-thumb, color-mix(in srgb, var(--aeris-text, #222222) 34%, transparent));background-clip:content-box}:host([data-variant=always]) .aeris-scroll-panel__viewport{scrollbar-color:var(--aeris-scroll-panel-thumb-always, color-mix(in srgb, var(--aeris-text, #222222) 42%, transparent)) var(--aeris-scroll-panel-track-always, color-mix(in srgb, var(--aeris-text, #222222) 8%, transparent))}:host([data-variant=always]) .aeris-scroll-panel__viewport::-webkit-scrollbar-track{background:var(--aeris-scroll-panel-track-always, color-mix(in srgb, var(--aeris-text, #222222) 8%, transparent))}:host([data-variant=always]) .aeris-scroll-panel__viewport::-webkit-scrollbar-thumb{background:var(--aeris-scroll-panel-thumb-always, color-mix(in srgb, var(--aeris-text, #222222) 42%, transparent));background-clip:content-box}:host([data-variant=hidden]) .aeris-scroll-panel__viewport{scrollbar-width:none}:host([data-variant=hidden]) .aeris-scroll-panel__viewport::-webkit-scrollbar{display:none}.aeris-scroll-panel__fade{--_fade-size: var(--aeris-scroll-panel-fade-size, 2rem);position:absolute;z-index:2;display:block;pointer-events:none;opacity:0;transition:opacity .14s ease}.aeris-scroll-panel__fade--top,.aeris-scroll-panel__fade--bottom{inset-inline:0;block-size:var(--_fade-size)}.aeris-scroll-panel__fade--top{inset-block-start:0;background:linear-gradient(to bottom,var(--aeris-scroll-panel-background, var(--aeris-surface, #fff)),transparent)}.aeris-scroll-panel__fade--bottom{inset-block-end:0;background:linear-gradient(to top,var(--aeris-scroll-panel-background, var(--aeris-surface, #fff)),transparent)}.aeris-scroll-panel__fade--start,.aeris-scroll-panel__fade--end{inset-block:0;inline-size:var(--_fade-size)}.aeris-scroll-panel__fade--start{inset-inline-start:0;background:linear-gradient(to right,var(--aeris-scroll-panel-background, var(--aeris-surface, #fff)),transparent)}.aeris-scroll-panel__fade--end{inset-inline-end:0;background:linear-gradient(to left,var(--aeris-scroll-panel-background, var(--aeris-surface, #fff)),transparent)}:host([data-fade=true][data-scroll-top=true]) .aeris-scroll-panel__fade--top,:host([data-fade=true][data-scroll-bottom=true]) .aeris-scroll-panel__fade--bottom,:host([data-fade=true][data-scroll-start=true]) .aeris-scroll-panel__fade--start,:host([data-fade=true][data-scroll-end=true]) .aeris-scroll-panel__fade--end{opacity:1}@media(prefers-reduced-motion:reduce){.aeris-scroll-panel__viewport{scroll-behavior:auto}.aeris-scroll-panel__fade{transition:none}}\n"]
|
|
361
|
+
}]
|
|
362
|
+
}],
|
|
363
|
+
ctorParameters: () => [],
|
|
364
|
+
propDecorators: {
|
|
365
|
+
viewport: [{
|
|
366
|
+
type: i0.ViewChild,
|
|
367
|
+
args: ["viewport", { isSignal: true }]
|
|
368
|
+
}],
|
|
369
|
+
id: [{
|
|
370
|
+
type: i0.Input,
|
|
371
|
+
args: [{
|
|
372
|
+
isSignal: true,
|
|
373
|
+
alias: "id",
|
|
374
|
+
required: false
|
|
375
|
+
}]
|
|
376
|
+
}],
|
|
377
|
+
orientation: [{
|
|
378
|
+
type: i0.Input,
|
|
379
|
+
args: [{
|
|
380
|
+
isSignal: true,
|
|
381
|
+
alias: "orientation",
|
|
382
|
+
required: false
|
|
383
|
+
}]
|
|
384
|
+
}],
|
|
385
|
+
variant: [{
|
|
386
|
+
type: i0.Input,
|
|
387
|
+
args: [{
|
|
388
|
+
isSignal: true,
|
|
389
|
+
alias: "variant",
|
|
390
|
+
required: false
|
|
391
|
+
}]
|
|
392
|
+
}],
|
|
393
|
+
fade: [{
|
|
394
|
+
type: i0.Input,
|
|
395
|
+
args: [{
|
|
396
|
+
isSignal: true,
|
|
397
|
+
alias: "fade",
|
|
398
|
+
required: false
|
|
399
|
+
}]
|
|
400
|
+
}],
|
|
401
|
+
fluid: [{
|
|
402
|
+
type: i0.Input,
|
|
403
|
+
args: [{
|
|
404
|
+
isSignal: true,
|
|
405
|
+
alias: "fluid",
|
|
406
|
+
required: false
|
|
407
|
+
}]
|
|
408
|
+
}],
|
|
409
|
+
focusable: [{
|
|
410
|
+
type: i0.Input,
|
|
411
|
+
args: [{
|
|
412
|
+
isSignal: true,
|
|
413
|
+
alias: "focusable",
|
|
414
|
+
required: false
|
|
415
|
+
}]
|
|
416
|
+
}],
|
|
417
|
+
tabIndex: [{
|
|
418
|
+
type: i0.Input,
|
|
419
|
+
args: [{
|
|
420
|
+
isSignal: true,
|
|
421
|
+
alias: "tabIndex",
|
|
422
|
+
required: false
|
|
423
|
+
}]
|
|
424
|
+
}],
|
|
425
|
+
height: [{
|
|
426
|
+
type: i0.Input,
|
|
427
|
+
args: [{
|
|
428
|
+
isSignal: true,
|
|
429
|
+
alias: "height",
|
|
430
|
+
required: false
|
|
431
|
+
}]
|
|
432
|
+
}],
|
|
433
|
+
maxHeight: [{
|
|
434
|
+
type: i0.Input,
|
|
435
|
+
args: [{
|
|
436
|
+
isSignal: true,
|
|
437
|
+
alias: "maxHeight",
|
|
438
|
+
required: false
|
|
439
|
+
}]
|
|
440
|
+
}],
|
|
441
|
+
width: [{
|
|
442
|
+
type: i0.Input,
|
|
443
|
+
args: [{
|
|
444
|
+
isSignal: true,
|
|
445
|
+
alias: "width",
|
|
446
|
+
required: false
|
|
447
|
+
}]
|
|
448
|
+
}],
|
|
449
|
+
maxWidth: [{
|
|
450
|
+
type: i0.Input,
|
|
451
|
+
args: [{
|
|
452
|
+
isSignal: true,
|
|
453
|
+
alias: "maxWidth",
|
|
454
|
+
required: false
|
|
455
|
+
}]
|
|
456
|
+
}],
|
|
457
|
+
role: [{
|
|
458
|
+
type: i0.Input,
|
|
459
|
+
args: [{
|
|
460
|
+
isSignal: true,
|
|
461
|
+
alias: "role",
|
|
462
|
+
required: false
|
|
463
|
+
}]
|
|
464
|
+
}],
|
|
465
|
+
ariaLabel: [{
|
|
466
|
+
type: i0.Input,
|
|
467
|
+
args: [{
|
|
468
|
+
isSignal: true,
|
|
469
|
+
alias: "ariaLabel",
|
|
470
|
+
required: false
|
|
471
|
+
}]
|
|
472
|
+
}],
|
|
473
|
+
ariaLabelledBy: [{
|
|
474
|
+
type: i0.Input,
|
|
475
|
+
args: [{
|
|
476
|
+
isSignal: true,
|
|
477
|
+
alias: "ariaLabelledBy",
|
|
478
|
+
required: false
|
|
479
|
+
}]
|
|
480
|
+
}],
|
|
481
|
+
ariaDescribedBy: [{
|
|
482
|
+
type: i0.Input,
|
|
483
|
+
args: [{
|
|
484
|
+
isSignal: true,
|
|
485
|
+
alias: "ariaDescribedBy",
|
|
486
|
+
required: false
|
|
487
|
+
}]
|
|
488
|
+
}],
|
|
489
|
+
scrolled: [{
|
|
490
|
+
type: i0.Output,
|
|
491
|
+
args: ["scrolled"]
|
|
492
|
+
}],
|
|
493
|
+
reachedTop: [{
|
|
494
|
+
type: i0.Output,
|
|
495
|
+
args: ["reachedTop"]
|
|
496
|
+
}],
|
|
497
|
+
reachedBottom: [{
|
|
498
|
+
type: i0.Output,
|
|
499
|
+
args: ["reachedBottom"]
|
|
500
|
+
}],
|
|
501
|
+
reachedStart: [{
|
|
502
|
+
type: i0.Output,
|
|
503
|
+
args: ["reachedStart"]
|
|
504
|
+
}],
|
|
505
|
+
reachedEnd: [{
|
|
506
|
+
type: i0.Output,
|
|
507
|
+
args: ["reachedEnd"]
|
|
508
|
+
}]
|
|
509
|
+
}
|
|
510
|
+
});
|
|
204
511
|
const AerisScrollPanelModule = [AerisScrollPanel];
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Generated bundle index. Do not edit.
|
|
208
|
-
*/
|
|
209
|
-
|
|
210
512
|
export { AerisScrollPanel, AerisScrollPanelModule };
|
|
211
|
-
|
|
513
|
+
|
|
514
|
+
//# sourceMappingURL=aeris-ui-core-scroll-panel.mjs.map
|