@aeris-ui/core 22.0.0-alpha.7 → 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 +1339 -514
- 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 -103
- 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 -112
- 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 +549 -176
- 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 +918 -257
- 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 +1258 -1413
- 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/schematics/runtime/theme-builder/aeris-theme.js +28 -16
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
- package/styles/_fallback-colors.scss +3 -3
- package/styles/_tokens.scss +5 -5
- package/styles/aeris.css +12 -16
- package/styles/controls.css +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 -73
- 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 +265 -115
- 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 +466 -451
- 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,117 +1,196 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { ɵAerisAppendTo
|
|
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
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, computed, input, model, output, signal, viewChild } from "@angular/core";
|
|
3
|
+
import { ɵAerisAppendTo } from "@aeris-ui/core";
|
|
4
|
+
var AerisPaginator = class AerisPaginator {
|
|
5
|
+
static nextId = 0;
|
|
6
|
+
first = model(0, ...ngDevMode ? [{ debugName: "first" }] : /* istanbul ignore next */ []);
|
|
7
|
+
rows = model(10, ...ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []);
|
|
8
|
+
totalRecords = input(0, ...ngDevMode ? [{ debugName: "totalRecords" }] : /* istanbul ignore next */ []);
|
|
9
|
+
pageLinkSize = input(5, ...ngDevMode ? [{ debugName: "pageLinkSize" }] : /* istanbul ignore next */ []);
|
|
10
|
+
rowsPerPageOptions = input([], ...ngDevMode ? [{ debugName: "rowsPerPageOptions" }] : /* istanbul ignore next */ []);
|
|
11
|
+
appendTo = input(...ngDevMode ? [void 0, { debugName: "appendTo" }] : /* istanbul ignore next */ []);
|
|
12
|
+
viewportMargin = input(8, ...ngDevMode ? [{ debugName: "viewportMargin" }] : /* istanbul ignore next */ []);
|
|
13
|
+
ariaLabel = input("Pagination", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
14
|
+
rowsPerPageLabel = input("Rows per page", ...ngDevMode ? [{ debugName: "rowsPerPageLabel" }] : /* istanbul ignore next */ []);
|
|
15
|
+
page = output();
|
|
16
|
+
rowsPanelOpen = signal(false, ...ngDevMode ? [{ debugName: "rowsPanelOpen" }] : /* istanbul ignore next */ []);
|
|
17
|
+
rowsTrigger = viewChild("rowsTrigger", ...ngDevMode ? [{ debugName: "rowsTrigger" }] : /* istanbul ignore next */ []);
|
|
18
|
+
rowsPanel = viewChild("rowsPanel", ...ngDevMode ? [{ debugName: "rowsPanel" }] : /* istanbul ignore next */ []);
|
|
19
|
+
rowsPanelPortal = viewChild(ɵAerisAppendTo, ...ngDevMode ? [{ debugName: "rowsPanelPortal" }] : /* istanbul ignore next */ []);
|
|
20
|
+
rowsLabelId = `aeris-paginator-rows-label-${AerisPaginator.nextId++}`;
|
|
21
|
+
rowsValueId = `${this.rowsLabelId}-value`;
|
|
22
|
+
rowsListboxId = `${this.rowsLabelId}-listbox`;
|
|
23
|
+
pageCount = computed(() => Math.max(1, Math.ceil(this.totalRecords() / Math.max(1, this.rows()))), ...ngDevMode ? [{ debugName: "pageCount" }] : /* istanbul ignore next */ []);
|
|
24
|
+
currentPage = computed(() => Math.min(this.pageCount() - 1, Math.max(0, Math.floor(this.first() / Math.max(1, this.rows())))), ...ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []);
|
|
25
|
+
visiblePages = computed(() => {
|
|
26
|
+
const count = this.pageCount();
|
|
27
|
+
const size = Math.max(1, this.pageLinkSize());
|
|
28
|
+
const half = Math.floor(size / 2);
|
|
29
|
+
const start = Math.min(Math.max(0, this.currentPage() - half), Math.max(0, count - size));
|
|
30
|
+
const end = Math.min(count, start + size);
|
|
31
|
+
return Array.from({ length: end - start }, (_, index) => start + index);
|
|
32
|
+
}, ...ngDevMode ? [{ debugName: "visiblePages" }] : /* istanbul ignore next */ []);
|
|
33
|
+
pageReport = computed(() => {
|
|
34
|
+
const total = this.totalRecords();
|
|
35
|
+
if (total === 0) return "0 of 0";
|
|
36
|
+
return `${Math.min(this.first() + 1, total)}-${Math.min(this.first() + this.rows(), total)} of ${total}`;
|
|
37
|
+
}, ...ngDevMode ? [{ debugName: "pageReport" }] : /* istanbul ignore next */ []);
|
|
38
|
+
goToPage(page) {
|
|
39
|
+
const safePage = Math.min(Math.max(page, 0), this.pageCount() - 1);
|
|
40
|
+
this.first.set(safePage * this.rows());
|
|
41
|
+
this.emitPage();
|
|
42
|
+
}
|
|
43
|
+
toggleRowsPanel() {
|
|
44
|
+
if (this.rowsPanelOpen()) this.closeRowsPanel();
|
|
45
|
+
else this.rowsPanelOpen.set(true);
|
|
46
|
+
}
|
|
47
|
+
selectRows(rows) {
|
|
48
|
+
this.rows.set(rows);
|
|
49
|
+
this.first.set(0);
|
|
50
|
+
this.closeRowsPanel();
|
|
51
|
+
this.emitPage();
|
|
52
|
+
}
|
|
53
|
+
handleRowsTriggerKeydown(event) {
|
|
54
|
+
if (event.key === "Escape") {
|
|
55
|
+
this.closeRowsPanel();
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if (event.key === "Enter" || event.key === " " || event.key === "ArrowDown") {
|
|
59
|
+
event.preventDefault();
|
|
60
|
+
this.rowsPanelOpen.set(true);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
handleRowsPanelKeydown(event) {
|
|
64
|
+
if (event.key !== "Escape") return;
|
|
65
|
+
event.preventDefault();
|
|
66
|
+
this.closeRowsPanel();
|
|
67
|
+
}
|
|
68
|
+
handleRowsFocusOut(event) {
|
|
69
|
+
const nextTarget = event.relatedTarget;
|
|
70
|
+
if (nextTarget instanceof Node && (event.currentTarget.contains(nextTarget) || this.rowsPanel()?.nativeElement.contains(nextTarget))) return;
|
|
71
|
+
this.closeRowsPanel();
|
|
72
|
+
}
|
|
73
|
+
closeRowsPanel() {
|
|
74
|
+
this.rowsPanelPortal()?.restore();
|
|
75
|
+
this.rowsPanelOpen.set(false);
|
|
76
|
+
}
|
|
77
|
+
emitPage() {
|
|
78
|
+
this.page.emit({
|
|
79
|
+
first: this.first(),
|
|
80
|
+
rows: this.rows(),
|
|
81
|
+
page: this.currentPage(),
|
|
82
|
+
pageCount: this.pageCount()
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
86
|
+
minVersion: "12.0.0",
|
|
87
|
+
version: "22.2.1",
|
|
88
|
+
ngImport: i0,
|
|
89
|
+
type: AerisPaginator,
|
|
90
|
+
deps: [],
|
|
91
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
92
|
+
});
|
|
93
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
94
|
+
minVersion: "17.0.0",
|
|
95
|
+
version: "22.2.1",
|
|
96
|
+
type: AerisPaginator,
|
|
97
|
+
isStandalone: true,
|
|
98
|
+
selector: "aeris-paginator",
|
|
99
|
+
inputs: {
|
|
100
|
+
first: {
|
|
101
|
+
classPropertyName: "first",
|
|
102
|
+
publicName: "first",
|
|
103
|
+
isSignal: true,
|
|
104
|
+
isRequired: false,
|
|
105
|
+
transformFunction: null
|
|
106
|
+
},
|
|
107
|
+
rows: {
|
|
108
|
+
classPropertyName: "rows",
|
|
109
|
+
publicName: "rows",
|
|
110
|
+
isSignal: true,
|
|
111
|
+
isRequired: false,
|
|
112
|
+
transformFunction: null
|
|
113
|
+
},
|
|
114
|
+
totalRecords: {
|
|
115
|
+
classPropertyName: "totalRecords",
|
|
116
|
+
publicName: "totalRecords",
|
|
117
|
+
isSignal: true,
|
|
118
|
+
isRequired: false,
|
|
119
|
+
transformFunction: null
|
|
120
|
+
},
|
|
121
|
+
pageLinkSize: {
|
|
122
|
+
classPropertyName: "pageLinkSize",
|
|
123
|
+
publicName: "pageLinkSize",
|
|
124
|
+
isSignal: true,
|
|
125
|
+
isRequired: false,
|
|
126
|
+
transformFunction: null
|
|
127
|
+
},
|
|
128
|
+
rowsPerPageOptions: {
|
|
129
|
+
classPropertyName: "rowsPerPageOptions",
|
|
130
|
+
publicName: "rowsPerPageOptions",
|
|
131
|
+
isSignal: true,
|
|
132
|
+
isRequired: false,
|
|
133
|
+
transformFunction: null
|
|
134
|
+
},
|
|
135
|
+
appendTo: {
|
|
136
|
+
classPropertyName: "appendTo",
|
|
137
|
+
publicName: "appendTo",
|
|
138
|
+
isSignal: true,
|
|
139
|
+
isRequired: false,
|
|
140
|
+
transformFunction: null
|
|
141
|
+
},
|
|
142
|
+
viewportMargin: {
|
|
143
|
+
classPropertyName: "viewportMargin",
|
|
144
|
+
publicName: "viewportMargin",
|
|
145
|
+
isSignal: true,
|
|
146
|
+
isRequired: false,
|
|
147
|
+
transformFunction: null
|
|
148
|
+
},
|
|
149
|
+
ariaLabel: {
|
|
150
|
+
classPropertyName: "ariaLabel",
|
|
151
|
+
publicName: "ariaLabel",
|
|
152
|
+
isSignal: true,
|
|
153
|
+
isRequired: false,
|
|
154
|
+
transformFunction: null
|
|
155
|
+
},
|
|
156
|
+
rowsPerPageLabel: {
|
|
157
|
+
classPropertyName: "rowsPerPageLabel",
|
|
158
|
+
publicName: "rowsPerPageLabel",
|
|
159
|
+
isSignal: true,
|
|
160
|
+
isRequired: false,
|
|
161
|
+
transformFunction: null
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
outputs: {
|
|
165
|
+
first: "firstChange",
|
|
166
|
+
rows: "rowsChange",
|
|
167
|
+
page: "page"
|
|
168
|
+
},
|
|
169
|
+
viewQueries: [
|
|
170
|
+
{
|
|
171
|
+
propertyName: "rowsTrigger",
|
|
172
|
+
first: true,
|
|
173
|
+
predicate: ["rowsTrigger"],
|
|
174
|
+
descendants: true,
|
|
175
|
+
isSignal: true
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
propertyName: "rowsPanel",
|
|
179
|
+
first: true,
|
|
180
|
+
predicate: ["rowsPanel"],
|
|
181
|
+
descendants: true,
|
|
182
|
+
isSignal: true
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
propertyName: "rowsPanelPortal",
|
|
186
|
+
first: true,
|
|
187
|
+
predicate: ɵAerisAppendTo,
|
|
188
|
+
descendants: true,
|
|
189
|
+
isSignal: true
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
ngImport: i0,
|
|
193
|
+
template: `
|
|
115
194
|
<nav class="aeris-paginator" [attr.aria-label]="ariaLabel()">
|
|
116
195
|
<span class="aeris-paginator__report" aria-live="polite">{{ pageReport() }}</span>
|
|
117
196
|
|
|
@@ -191,11 +270,39 @@ class AerisPaginator {
|
|
|
191
270
|
</div>
|
|
192
271
|
}
|
|
193
272
|
</nav>
|
|
194
|
-
`,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
273
|
+
`,
|
|
274
|
+
isInline: true,
|
|
275
|
+
styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:block;min-width:0}.aeris-paginator{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:calc(var(--aeris-density-gap, .5rem) * 2);min-width:0;color:var(--aeris-text-2, #555555);font-size:.8125rem}.aeris-paginator__pages{display:inline-flex;flex-wrap:wrap;flex:1 1 18rem;gap:calc(var(--aeris-density-gap, .5rem) * .7);justify-content:center;min-width:0}button,select{min-height:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font:inherit}button{min-width:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);padding:0 calc(var(--aeris-control-padding-x, .75rem) * .75);border-color:var(--aeris-border);font-weight:700;cursor:pointer;transition:border-color .14s ease,background-color .14s ease,color .14s ease,transform .14s ease}button:hover:not(:disabled){border-color:color-mix(in srgb,var(--aeris-primary, #2c694b) 58%,var(--aeris-border, #deddd7));background:var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec));color:var(--aeris-text, #222222);transform:translateY(-1px)}.aeris-paginator__pages>button[aria-current=page]:hover{background:color-mix(in srgb,var(--aeris-primary, #2c694b) 22%,var(--aeris-surface, #fff))}button[aria-current=page]{border-color:var(--aeris-primary, #2c694b);background:color-mix(in srgb,var(--aeris-primary, #2c694b) 16%,var(--aeris-surface, #fff));color:var(--aeris-primary-text, #2c694b)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,.aeris-paginator__rows-trigger:focus-visible{outline:2px solid var(--aeris-focus, #2c432c);outline-offset:2px}.aeris-paginator__page-icon{position:relative;width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);display:block}.aeris-paginator__page-icon:before,.aeris-paginator__page-icon:after{position:absolute;inset:0;background:currentColor;content:\"\";-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-paginator__page-icon--previous:before,.aeris-paginator__page-icon--first:before,.aeris-paginator__page-icon--first:after{transform:rotate(90deg)}.aeris-paginator__page-icon--next:before,.aeris-paginator__page-icon--last:before,.aeris-paginator__page-icon--last:after{transform:rotate(-90deg)}.aeris-paginator__page-icon--previous:after,.aeris-paginator__page-icon--next:after{content:none}.aeris-paginator__page-icon--first:before{translate:-.18rem 0}.aeris-paginator__page-icon--first:after{translate:.18rem 0}.aeris-paginator__page-icon--last:before{translate:.18rem 0}.aeris-paginator__page-icon--last:after{translate:-.18rem 0}:host-context([dir=rtl]) .aeris-paginator__page-icon--previous:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--first:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--first:after{transform:rotate(-90deg)}:host-context([dir=rtl]) .aeris-paginator__page-icon--next:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--last:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--last:after{transform:rotate(90deg)}.aeris-paginator__rows{position:relative;display:inline-flex;flex:0 1 auto;align-items:center;gap:var(--aeris-density-gap, .5rem);min-width:0;white-space:nowrap}.aeris-paginator__rows-trigger{min-width:4.5rem;display:inline-flex;align-items:center;justify-content:space-between;gap:calc(var(--aeris-density-gap, .5rem) + .25rem);padding:0 var(--aeris-control-padding-x, .75rem);cursor:pointer}.aeris-paginator__chevron{position:relative;width:1rem;height:1rem}.aeris-paginator__chevron:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-paginator__rows-panel{position:absolute;z-index:20;top:calc(100% + var(--aeris-density-gap, .5rem));right:0;min-width:5.75rem;padding:calc(var(--aeris-density-gap, .5rem) * .7);border:1px solid var(--aeris-border);border-radius:var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem));background:var(--aeris-surface, #fff);box-shadow:0 1rem 2.5rem #1f231b29}.aeris-paginator__rows-panel button{width:100%;min-height:var(--aeris-item-height, 2.5rem);justify-content:space-between;display:flex;align-items:center;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #555555);font-weight:600;text-align:left}.aeris-paginator__rows-panel button:hover,.aeris-paginator__rows-panel button[aria-selected=true]{background:color-mix(in srgb,var(--aeris-primary, #2c694b) 12%,transparent);color:var(--aeris-primary-text, #2c694b)}.aeris-paginator__check{width:.65rem;height:.35rem;border-bottom:1.75px solid currentColor;border-left:1.75px solid currentColor;transform:rotate(-45deg)}@media(max-width:42rem){.aeris-paginator{align-items:stretch;display:grid;grid-template-columns:1fr;justify-items:center;gap:calc(var(--aeris-density-gap, .5rem) + .25rem)}.aeris-paginator__report,.aeris-paginator__rows{justify-content:center}.aeris-paginator__pages{width:100%;flex:none;order:2}.aeris-paginator__rows{order:3}.aeris-paginator__rows-panel{right:50%;transform:translate(50%)}}@media(max-width:30rem){.aeris-paginator{font-size:.78125rem}.aeris-paginator__pages{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-block:.15rem;scrollbar-width:thin}.aeris-paginator__pages button{flex:0 0 auto}.aeris-paginator__rows{width:100%;flex-wrap:wrap}.aeris-paginator__rows-trigger{flex:1 1 6rem;max-width:9rem}}@media(prefers-reduced-motion:reduce){button{transition:none}button:hover:not(:disabled){transform:none}}\n"],
|
|
276
|
+
dependencies: [{
|
|
277
|
+
kind: "directive",
|
|
278
|
+
type: ɵAerisAppendTo,
|
|
279
|
+
selector: "[aerisInternalAppendTo]",
|
|
280
|
+
inputs: [
|
|
281
|
+
"aerisInternalAppendTo",
|
|
282
|
+
"aerisInternalAppendToDefault",
|
|
283
|
+
"aerisInternalAppendToAnchor",
|
|
284
|
+
"aerisInternalAppendToOffset",
|
|
285
|
+
"aerisInternalAppendToMatchWidth",
|
|
286
|
+
"aerisInternalAppendToPlacement",
|
|
287
|
+
"aerisInternalAppendToAlignment",
|
|
288
|
+
"aerisInternalAppendToCollisionPadding",
|
|
289
|
+
"aerisInternalAppendToPositionSelf"
|
|
290
|
+
],
|
|
291
|
+
outputs: ["aerisInternalAppendToOutside"]
|
|
292
|
+
}]
|
|
293
|
+
});
|
|
294
|
+
};
|
|
295
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
296
|
+
minVersion: "12.0.0",
|
|
297
|
+
version: "22.2.1",
|
|
298
|
+
ngImport: i0,
|
|
299
|
+
type: AerisPaginator,
|
|
300
|
+
decorators: [{
|
|
301
|
+
type: Component,
|
|
302
|
+
args: [{
|
|
303
|
+
selector: "aeris-paginator",
|
|
304
|
+
imports: [ɵAerisAppendTo],
|
|
305
|
+
template: `
|
|
199
306
|
<nav class="aeris-paginator" [attr.aria-label]="ariaLabel()">
|
|
200
307
|
<span class="aeris-paginator__report" aria-live="polite">{{ pageReport() }}</span>
|
|
201
308
|
|
|
@@ -275,12 +382,107 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
275
382
|
</div>
|
|
276
383
|
}
|
|
277
384
|
</nav>
|
|
278
|
-
`,
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
385
|
+
`,
|
|
386
|
+
styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:block;min-width:0}.aeris-paginator{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:calc(var(--aeris-density-gap, .5rem) * 2);min-width:0;color:var(--aeris-text-2, #555555);font-size:.8125rem}.aeris-paginator__pages{display:inline-flex;flex-wrap:wrap;flex:1 1 18rem;gap:calc(var(--aeris-density-gap, .5rem) * .7);justify-content:center;min-width:0}button,select{min-height:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font:inherit}button{min-width:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);padding:0 calc(var(--aeris-control-padding-x, .75rem) * .75);border-color:var(--aeris-border);font-weight:700;cursor:pointer;transition:border-color .14s ease,background-color .14s ease,color .14s ease,transform .14s ease}button:hover:not(:disabled){border-color:color-mix(in srgb,var(--aeris-primary, #2c694b) 58%,var(--aeris-border, #deddd7));background:var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec));color:var(--aeris-text, #222222);transform:translateY(-1px)}.aeris-paginator__pages>button[aria-current=page]:hover{background:color-mix(in srgb,var(--aeris-primary, #2c694b) 22%,var(--aeris-surface, #fff))}button[aria-current=page]{border-color:var(--aeris-primary, #2c694b);background:color-mix(in srgb,var(--aeris-primary, #2c694b) 16%,var(--aeris-surface, #fff));color:var(--aeris-primary-text, #2c694b)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,.aeris-paginator__rows-trigger:focus-visible{outline:2px solid var(--aeris-focus, #2c432c);outline-offset:2px}.aeris-paginator__page-icon{position:relative;width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);display:block}.aeris-paginator__page-icon:before,.aeris-paginator__page-icon:after{position:absolute;inset:0;background:currentColor;content:\"\";-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-paginator__page-icon--previous:before,.aeris-paginator__page-icon--first:before,.aeris-paginator__page-icon--first:after{transform:rotate(90deg)}.aeris-paginator__page-icon--next:before,.aeris-paginator__page-icon--last:before,.aeris-paginator__page-icon--last:after{transform:rotate(-90deg)}.aeris-paginator__page-icon--previous:after,.aeris-paginator__page-icon--next:after{content:none}.aeris-paginator__page-icon--first:before{translate:-.18rem 0}.aeris-paginator__page-icon--first:after{translate:.18rem 0}.aeris-paginator__page-icon--last:before{translate:.18rem 0}.aeris-paginator__page-icon--last:after{translate:-.18rem 0}:host-context([dir=rtl]) .aeris-paginator__page-icon--previous:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--first:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--first:after{transform:rotate(-90deg)}:host-context([dir=rtl]) .aeris-paginator__page-icon--next:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--last:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--last:after{transform:rotate(90deg)}.aeris-paginator__rows{position:relative;display:inline-flex;flex:0 1 auto;align-items:center;gap:var(--aeris-density-gap, .5rem);min-width:0;white-space:nowrap}.aeris-paginator__rows-trigger{min-width:4.5rem;display:inline-flex;align-items:center;justify-content:space-between;gap:calc(var(--aeris-density-gap, .5rem) + .25rem);padding:0 var(--aeris-control-padding-x, .75rem);cursor:pointer}.aeris-paginator__chevron{position:relative;width:1rem;height:1rem}.aeris-paginator__chevron:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-paginator__rows-panel{position:absolute;z-index:20;top:calc(100% + var(--aeris-density-gap, .5rem));right:0;min-width:5.75rem;padding:calc(var(--aeris-density-gap, .5rem) * .7);border:1px solid var(--aeris-border);border-radius:var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem));background:var(--aeris-surface, #fff);box-shadow:0 1rem 2.5rem #1f231b29}.aeris-paginator__rows-panel button{width:100%;min-height:var(--aeris-item-height, 2.5rem);justify-content:space-between;display:flex;align-items:center;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #555555);font-weight:600;text-align:left}.aeris-paginator__rows-panel button:hover,.aeris-paginator__rows-panel button[aria-selected=true]{background:color-mix(in srgb,var(--aeris-primary, #2c694b) 12%,transparent);color:var(--aeris-primary-text, #2c694b)}.aeris-paginator__check{width:.65rem;height:.35rem;border-bottom:1.75px solid currentColor;border-left:1.75px solid currentColor;transform:rotate(-45deg)}@media(max-width:42rem){.aeris-paginator{align-items:stretch;display:grid;grid-template-columns:1fr;justify-items:center;gap:calc(var(--aeris-density-gap, .5rem) + .25rem)}.aeris-paginator__report,.aeris-paginator__rows{justify-content:center}.aeris-paginator__pages{width:100%;flex:none;order:2}.aeris-paginator__rows{order:3}.aeris-paginator__rows-panel{right:50%;transform:translate(50%)}}@media(max-width:30rem){.aeris-paginator{font-size:.78125rem}.aeris-paginator__pages{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-block:.15rem;scrollbar-width:thin}.aeris-paginator__pages button{flex:0 0 auto}.aeris-paginator__rows{width:100%;flex-wrap:wrap}.aeris-paginator__rows-trigger{flex:1 1 6rem;max-width:9rem}}@media(prefers-reduced-motion:reduce){button{transition:none}button:hover:not(:disabled){transform:none}}\n"]
|
|
387
|
+
}]
|
|
388
|
+
}],
|
|
389
|
+
propDecorators: {
|
|
390
|
+
first: [{
|
|
391
|
+
type: i0.Input,
|
|
392
|
+
args: [{
|
|
393
|
+
isSignal: true,
|
|
394
|
+
alias: "first",
|
|
395
|
+
required: false
|
|
396
|
+
}]
|
|
397
|
+
}, {
|
|
398
|
+
type: i0.Output,
|
|
399
|
+
args: ["firstChange"]
|
|
400
|
+
}],
|
|
401
|
+
rows: [{
|
|
402
|
+
type: i0.Input,
|
|
403
|
+
args: [{
|
|
404
|
+
isSignal: true,
|
|
405
|
+
alias: "rows",
|
|
406
|
+
required: false
|
|
407
|
+
}]
|
|
408
|
+
}, {
|
|
409
|
+
type: i0.Output,
|
|
410
|
+
args: ["rowsChange"]
|
|
411
|
+
}],
|
|
412
|
+
totalRecords: [{
|
|
413
|
+
type: i0.Input,
|
|
414
|
+
args: [{
|
|
415
|
+
isSignal: true,
|
|
416
|
+
alias: "totalRecords",
|
|
417
|
+
required: false
|
|
418
|
+
}]
|
|
419
|
+
}],
|
|
420
|
+
pageLinkSize: [{
|
|
421
|
+
type: i0.Input,
|
|
422
|
+
args: [{
|
|
423
|
+
isSignal: true,
|
|
424
|
+
alias: "pageLinkSize",
|
|
425
|
+
required: false
|
|
426
|
+
}]
|
|
427
|
+
}],
|
|
428
|
+
rowsPerPageOptions: [{
|
|
429
|
+
type: i0.Input,
|
|
430
|
+
args: [{
|
|
431
|
+
isSignal: true,
|
|
432
|
+
alias: "rowsPerPageOptions",
|
|
433
|
+
required: false
|
|
434
|
+
}]
|
|
435
|
+
}],
|
|
436
|
+
appendTo: [{
|
|
437
|
+
type: i0.Input,
|
|
438
|
+
args: [{
|
|
439
|
+
isSignal: true,
|
|
440
|
+
alias: "appendTo",
|
|
441
|
+
required: false
|
|
442
|
+
}]
|
|
443
|
+
}],
|
|
444
|
+
viewportMargin: [{
|
|
445
|
+
type: i0.Input,
|
|
446
|
+
args: [{
|
|
447
|
+
isSignal: true,
|
|
448
|
+
alias: "viewportMargin",
|
|
449
|
+
required: false
|
|
450
|
+
}]
|
|
451
|
+
}],
|
|
452
|
+
ariaLabel: [{
|
|
453
|
+
type: i0.Input,
|
|
454
|
+
args: [{
|
|
455
|
+
isSignal: true,
|
|
456
|
+
alias: "ariaLabel",
|
|
457
|
+
required: false
|
|
458
|
+
}]
|
|
459
|
+
}],
|
|
460
|
+
rowsPerPageLabel: [{
|
|
461
|
+
type: i0.Input,
|
|
462
|
+
args: [{
|
|
463
|
+
isSignal: true,
|
|
464
|
+
alias: "rowsPerPageLabel",
|
|
465
|
+
required: false
|
|
466
|
+
}]
|
|
467
|
+
}],
|
|
468
|
+
page: [{
|
|
469
|
+
type: i0.Output,
|
|
470
|
+
args: ["page"]
|
|
471
|
+
}],
|
|
472
|
+
rowsTrigger: [{
|
|
473
|
+
type: i0.ViewChild,
|
|
474
|
+
args: ["rowsTrigger", { isSignal: true }]
|
|
475
|
+
}],
|
|
476
|
+
rowsPanel: [{
|
|
477
|
+
type: i0.ViewChild,
|
|
478
|
+
args: ["rowsPanel", { isSignal: true }]
|
|
479
|
+
}],
|
|
480
|
+
rowsPanelPortal: [{
|
|
481
|
+
type: i0.ViewChild,
|
|
482
|
+
args: [i0.forwardRef(() => ɵAerisAppendTo), { isSignal: true }]
|
|
483
|
+
}]
|
|
484
|
+
}
|
|
485
|
+
});
|
|
285
486
|
export { AerisPaginator };
|
|
286
|
-
|
|
487
|
+
|
|
488
|
+
//# sourceMappingURL=aeris-ui-core-paginator.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aeris-ui-core-paginator.mjs","sources":["../../../projects/aeris-ui/paginator/aeris-paginator.ts","../../../projects/aeris-ui/paginator/aeris-ui-core-paginator.ts"],"sourcesContent":["import { Component, ElementRef, computed, input, model, output, signal, viewChild } from '@angular/core';\nimport { ɵAerisAppendTo, type AerisAppendTo, type AerisOverlayCollisionPadding } from '@aeris-ui/core';\n\nexport interface AerisPaginatorPageEvent {\n readonly first: number;\n readonly rows: number;\n readonly page: number;\n readonly pageCount: number;\n}\n\n@Component({\n selector: 'aeris-paginator',\n imports: [ɵAerisAppendTo],\n template: `\n <nav class=\"aeris-paginator\" [attr.aria-label]=\"ariaLabel()\">\n <span class=\"aeris-paginator__report\" aria-live=\"polite\">{{ pageReport() }}</span>\n\n <div class=\"aeris-paginator__pages\">\n <button type=\"button\" aria-label=\"First page\" [disabled]=\"currentPage() === 0\" (click)=\"goToPage(0)\">\n <span class=\"aeris-paginator__page-icon aeris-paginator__page-icon--first\" aria-hidden=\"true\"></span>\n </button>\n <button type=\"button\" aria-label=\"Previous page\" [disabled]=\"currentPage() === 0\" (click)=\"goToPage(currentPage() - 1)\">\n <span class=\"aeris-paginator__page-icon aeris-paginator__page-icon--previous\" aria-hidden=\"true\"></span>\n </button>\n\n @for (page of visiblePages(); track page) {\n <button\n #rowsTrigger\n type=\"button\"\n [attr.aria-label]=\"'Page ' + (page + 1)\"\n [attr.aria-current]=\"page === currentPage() ? 'page' : null\"\n (click)=\"goToPage(page)\"\n >\n {{ page + 1 }}\n </button>\n }\n\n <button type=\"button\" aria-label=\"Next page\" [disabled]=\"currentPage() >= pageCount() - 1\" (click)=\"goToPage(currentPage() + 1)\">\n <span class=\"aeris-paginator__page-icon aeris-paginator__page-icon--next\" aria-hidden=\"true\"></span>\n </button>\n <button type=\"button\" aria-label=\"Last page\" [disabled]=\"currentPage() >= pageCount() - 1\" (click)=\"goToPage(pageCount() - 1)\">\n <span class=\"aeris-paginator__page-icon aeris-paginator__page-icon--last\" aria-hidden=\"true\"></span>\n </button>\n </div>\n\n @if (rowsPerPageOptions().length) {\n <div class=\"aeris-paginator__rows\" (focusout)=\"handleRowsFocusOut($event)\">\n <span [id]=\"rowsLabelId\">{{ rowsPerPageLabel() }}</span>\n <button\n class=\"aeris-paginator__rows-trigger\"\n type=\"button\"\n aria-haspopup=\"listbox\"\n [attr.aria-labelledby]=\"rowsLabelId + ' ' + rowsValueId\"\n [attr.aria-expanded]=\"rowsPanelOpen()\"\n [attr.aria-controls]=\"rowsListboxId\"\n (click)=\"toggleRowsPanel()\"\n (keydown)=\"handleRowsTriggerKeydown($event)\"\n >\n <span [id]=\"rowsValueId\">{{ rows() }}</span>\n <span class=\"aeris-paginator__chevron\" aria-hidden=\"true\"></span>\n </button>\n\n @if (rowsPanelOpen()) {\n <div\n #rowsPanel\n class=\"aeris-paginator__rows-panel\"\n [aerisInternalAppendTo]=\"appendTo()\"\n [aerisInternalAppendToAnchor]=\"this.rowsTrigger()?.nativeElement ?? null\"\n [aerisInternalAppendToCollisionPadding]=\"viewportMargin()\"\n (aerisInternalAppendToOutside)=\"closeRowsPanel()\"\n [id]=\"rowsListboxId\"\n role=\"listbox\"\n [attr.aria-labelledby]=\"rowsLabelId\"\n (keydown)=\"handleRowsPanelKeydown($event)\"\n >\n @for (option of rowsPerPageOptions(); track option) {\n <button\n type=\"button\"\n role=\"option\"\n [attr.aria-selected]=\"option === rows()\"\n (click)=\"selectRows(option)\"\n >\n <span>{{ option }}</span>\n @if (option === rows()) {\n <span class=\"aeris-paginator__check\" aria-hidden=\"true\"></span>\n }\n </button>\n }\n </div>\n }\n </div>\n }\n </nav>\n `,\n styleUrl: './aeris-paginator.scss',\n})\nexport class AerisPaginator {\n private static nextId = 0;\n readonly first = model(0);\n readonly rows = model(10);\n readonly totalRecords = input(0);\n readonly pageLinkSize = input(5);\n readonly rowsPerPageOptions = input<readonly number[]>([]);\n readonly appendTo = input<AerisAppendTo>();\n readonly viewportMargin = input<number | AerisOverlayCollisionPadding>(8);\n readonly ariaLabel = input('Pagination');\n readonly rowsPerPageLabel = input('Rows per page');\n readonly page = output<AerisPaginatorPageEvent>();\n protected readonly rowsPanelOpen = signal(false);\n protected readonly rowsTrigger = viewChild<ElementRef<HTMLButtonElement>>('rowsTrigger');\n private readonly rowsPanel = viewChild<ElementRef<HTMLElement>>('rowsPanel');\n private readonly rowsPanelPortal = viewChild(ɵAerisAppendTo);\n protected readonly rowsLabelId = `aeris-paginator-rows-label-${AerisPaginator.nextId++}`;\n protected readonly rowsValueId = `${this.rowsLabelId}-value`;\n protected readonly rowsListboxId = `${this.rowsLabelId}-listbox`;\n\n protected readonly pageCount = computed(() =>\n Math.max(1, Math.ceil(this.totalRecords() / Math.max(1, this.rows()))),\n );\n protected readonly currentPage = computed(() =>\n Math.min(\n this.pageCount() - 1,\n Math.max(0, Math.floor(this.first() / Math.max(1, this.rows()))),\n ),\n );\n protected readonly visiblePages = computed(() => {\n const count = this.pageCount();\n const size = Math.max(1, this.pageLinkSize());\n const half = Math.floor(size / 2);\n const start = Math.min(\n Math.max(0, this.currentPage() - half),\n Math.max(0, count - size),\n );\n const end = Math.min(count, start + size);\n return Array.from({ length: end - start }, (_, index) => start + index);\n });\n protected readonly pageReport = computed(() => {\n const total = this.totalRecords();\n if (total === 0) return '0 of 0';\n const start = Math.min(this.first() + 1, total);\n const end = Math.min(this.first() + this.rows(), total);\n return `${start}-${end} of ${total}`;\n });\n\n protected goToPage(page: number): void {\n const safePage = Math.min(Math.max(page, 0), this.pageCount() - 1);\n this.first.set(safePage * this.rows());\n this.emitPage();\n }\n\n protected toggleRowsPanel(): void {\n if (this.rowsPanelOpen()) this.closeRowsPanel();\n else this.rowsPanelOpen.set(true);\n }\n\n protected selectRows(rows: number): void {\n this.rows.set(rows);\n this.first.set(0);\n this.closeRowsPanel();\n this.emitPage();\n }\n\n protected handleRowsTriggerKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n this.closeRowsPanel();\n return;\n }\n\n if (event.key === 'Enter' || event.key === ' ' || event.key === 'ArrowDown') {\n event.preventDefault();\n this.rowsPanelOpen.set(true);\n }\n }\n\n protected handleRowsPanelKeydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape') return;\n event.preventDefault();\n this.closeRowsPanel();\n }\n\n protected handleRowsFocusOut(event: FocusEvent): void {\n const nextTarget = event.relatedTarget;\n if (\n nextTarget instanceof Node &&\n ((event.currentTarget as HTMLElement).contains(nextTarget) ||\n this.rowsPanel()?.nativeElement.contains(nextTarget))\n ) {\n return;\n }\n this.closeRowsPanel();\n }\n\n protected closeRowsPanel(): void {\n this.rowsPanelPortal()?.restore();\n this.rowsPanelOpen.set(false);\n }\n\n private emitPage(): void {\n this.page.emit({\n first: this.first(),\n rows: this.rows(),\n page: this.currentPage(),\n pageCount: this.pageCount(),\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵAerisAppendTo"],"mappings":";;;;MAgGa,cAAc,CAAA;AACjB,IAAA,OAAO,MAAM,GAAG,CAAC;IAChB,KAAK,GAAG,KAAK,CAAC,CAAC;8EAAC;IAChB,IAAI,GAAG,KAAK,CAAC,EAAE;6EAAC;IAChB,YAAY,GAAG,KAAK,CAAC,CAAC;qFAAC;IACvB,YAAY,GAAG,KAAK,CAAC,CAAC;qFAAC;IACvB,kBAAkB,GAAG,KAAK,CAAoB,EAAE;2FAAC;AACjD,IAAA,QAAQ,GAAG,KAAK;4FAAiB;IACjC,cAAc,GAAG,KAAK,CAAwC,CAAC;uFAAC;IAChE,SAAS,GAAG,KAAK,CAAC,YAAY;kFAAC;IAC/B,gBAAgB,GAAG,KAAK,CAAC,eAAe;yFAAC;IACzC,IAAI,GAAG,MAAM,EAA2B;IAC9B,aAAa,GAAG,MAAM,CAAC,KAAK;sFAAC;IAC7B,WAAW,GAAG,SAAS,CAAgC,aAAa;oFAAC;IACvE,SAAS,GAAG,SAAS,CAA0B,WAAW;kFAAC;IAC3D,eAAe,GAAG,SAAS,CAACA,cAAc;wFAAC;AACzC,IAAA,WAAW,GAAG,CAAA,2BAAA,EAA8B,cAAc,CAAC,MAAM,EAAE,EAAE;AACrE,IAAA,WAAW,GAAG,CAAA,EAAG,IAAI,CAAC,WAAW,QAAQ;AACzC,IAAA,aAAa,GAAG,CAAA,EAAG,IAAI,CAAC,WAAW,UAAU;AAE7C,IAA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AA,EAAA,uCAAA,EAAA,mCAAA,CAAA,EAAA,OAAA,EAAA,CAAA,8BAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FAoFb,cAAc,EAAA,UAAA,EAAA,CAAA;kBAtF1B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,EAAA,OAAA,EAClB,CAACA,cAAc,CAAC,EAAA,QAAA,EACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,ylMAAA,CAAA,EAAA;imCAgByE,aAAa,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACvB,WAAW,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAC9BA,cAAc,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AC/G7D;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"aeris-ui-core-paginator.mjs","names":[],"sources":["../../../projects/aeris-ui/paginator/aeris-paginator.ts"],"sourcesContent":["import { Component, ElementRef, computed, input, model, output, signal, viewChild } from '@angular/core';\nimport { ɵAerisAppendTo, type AerisAppendTo, type AerisOverlayCollisionPadding } from '@aeris-ui/core';\n\nexport interface AerisPaginatorPageEvent {\n readonly first: number;\n readonly rows: number;\n readonly page: number;\n readonly pageCount: number;\n}\n\n@Component({\n selector: 'aeris-paginator',\n imports: [ɵAerisAppendTo],\n template: `\n <nav class=\"aeris-paginator\" [attr.aria-label]=\"ariaLabel()\">\n <span class=\"aeris-paginator__report\" aria-live=\"polite\">{{ pageReport() }}</span>\n\n <div class=\"aeris-paginator__pages\">\n <button type=\"button\" aria-label=\"First page\" [disabled]=\"currentPage() === 0\" (click)=\"goToPage(0)\">\n <span class=\"aeris-paginator__page-icon aeris-paginator__page-icon--first\" aria-hidden=\"true\"></span>\n </button>\n <button type=\"button\" aria-label=\"Previous page\" [disabled]=\"currentPage() === 0\" (click)=\"goToPage(currentPage() - 1)\">\n <span class=\"aeris-paginator__page-icon aeris-paginator__page-icon--previous\" aria-hidden=\"true\"></span>\n </button>\n\n @for (page of visiblePages(); track page) {\n <button\n #rowsTrigger\n type=\"button\"\n [attr.aria-label]=\"'Page ' + (page + 1)\"\n [attr.aria-current]=\"page === currentPage() ? 'page' : null\"\n (click)=\"goToPage(page)\"\n >\n {{ page + 1 }}\n </button>\n }\n\n <button type=\"button\" aria-label=\"Next page\" [disabled]=\"currentPage() >= pageCount() - 1\" (click)=\"goToPage(currentPage() + 1)\">\n <span class=\"aeris-paginator__page-icon aeris-paginator__page-icon--next\" aria-hidden=\"true\"></span>\n </button>\n <button type=\"button\" aria-label=\"Last page\" [disabled]=\"currentPage() >= pageCount() - 1\" (click)=\"goToPage(pageCount() - 1)\">\n <span class=\"aeris-paginator__page-icon aeris-paginator__page-icon--last\" aria-hidden=\"true\"></span>\n </button>\n </div>\n\n @if (rowsPerPageOptions().length) {\n <div class=\"aeris-paginator__rows\" (focusout)=\"handleRowsFocusOut($event)\">\n <span [id]=\"rowsLabelId\">{{ rowsPerPageLabel() }}</span>\n <button\n class=\"aeris-paginator__rows-trigger\"\n type=\"button\"\n aria-haspopup=\"listbox\"\n [attr.aria-labelledby]=\"rowsLabelId + ' ' + rowsValueId\"\n [attr.aria-expanded]=\"rowsPanelOpen()\"\n [attr.aria-controls]=\"rowsListboxId\"\n (click)=\"toggleRowsPanel()\"\n (keydown)=\"handleRowsTriggerKeydown($event)\"\n >\n <span [id]=\"rowsValueId\">{{ rows() }}</span>\n <span class=\"aeris-paginator__chevron\" aria-hidden=\"true\"></span>\n </button>\n\n @if (rowsPanelOpen()) {\n <div\n #rowsPanel\n class=\"aeris-paginator__rows-panel\"\n [aerisInternalAppendTo]=\"appendTo()\"\n [aerisInternalAppendToAnchor]=\"this.rowsTrigger()?.nativeElement ?? null\"\n [aerisInternalAppendToCollisionPadding]=\"viewportMargin()\"\n (aerisInternalAppendToOutside)=\"closeRowsPanel()\"\n [id]=\"rowsListboxId\"\n role=\"listbox\"\n [attr.aria-labelledby]=\"rowsLabelId\"\n (keydown)=\"handleRowsPanelKeydown($event)\"\n >\n @for (option of rowsPerPageOptions(); track option) {\n <button\n type=\"button\"\n role=\"option\"\n [attr.aria-selected]=\"option === rows()\"\n (click)=\"selectRows(option)\"\n >\n <span>{{ option }}</span>\n @if (option === rows()) {\n <span class=\"aeris-paginator__check\" aria-hidden=\"true\"></span>\n }\n </button>\n }\n </div>\n }\n </div>\n }\n </nav>\n `,\n styleUrl: './aeris-paginator.scss',\n})\nexport class AerisPaginator {\n private static nextId = 0;\n readonly first = model(0);\n readonly rows = model(10);\n readonly totalRecords = input(0);\n readonly pageLinkSize = input(5);\n readonly rowsPerPageOptions = input<readonly number[]>([]);\n readonly appendTo = input<AerisAppendTo>();\n readonly viewportMargin = input<number | AerisOverlayCollisionPadding>(8);\n readonly ariaLabel = input('Pagination');\n readonly rowsPerPageLabel = input('Rows per page');\n readonly page = output<AerisPaginatorPageEvent>();\n protected readonly rowsPanelOpen = signal(false);\n protected readonly rowsTrigger = viewChild<ElementRef<HTMLButtonElement>>('rowsTrigger');\n private readonly rowsPanel = viewChild<ElementRef<HTMLElement>>('rowsPanel');\n private readonly rowsPanelPortal = viewChild(ɵAerisAppendTo);\n protected readonly rowsLabelId = `aeris-paginator-rows-label-${AerisPaginator.nextId++}`;\n protected readonly rowsValueId = `${this.rowsLabelId}-value`;\n protected readonly rowsListboxId = `${this.rowsLabelId}-listbox`;\n\n protected readonly pageCount = computed(() =>\n Math.max(1, Math.ceil(this.totalRecords() / Math.max(1, this.rows()))),\n );\n protected readonly currentPage = computed(() =>\n Math.min(\n this.pageCount() - 1,\n Math.max(0, Math.floor(this.first() / Math.max(1, this.rows()))),\n ),\n );\n protected readonly visiblePages = computed(() => {\n const count = this.pageCount();\n const size = Math.max(1, this.pageLinkSize());\n const half = Math.floor(size / 2);\n const start = Math.min(\n Math.max(0, this.currentPage() - half),\n Math.max(0, count - size),\n );\n const end = Math.min(count, start + size);\n return Array.from({ length: end - start }, (_, index) => start + index);\n });\n protected readonly pageReport = computed(() => {\n const total = this.totalRecords();\n if (total === 0) return '0 of 0';\n const start = Math.min(this.first() + 1, total);\n const end = Math.min(this.first() + this.rows(), total);\n return `${start}-${end} of ${total}`;\n });\n\n protected goToPage(page: number): void {\n const safePage = Math.min(Math.max(page, 0), this.pageCount() - 1);\n this.first.set(safePage * this.rows());\n this.emitPage();\n }\n\n protected toggleRowsPanel(): void {\n if (this.rowsPanelOpen()) this.closeRowsPanel();\n else this.rowsPanelOpen.set(true);\n }\n\n protected selectRows(rows: number): void {\n this.rows.set(rows);\n this.first.set(0);\n this.closeRowsPanel();\n this.emitPage();\n }\n\n protected handleRowsTriggerKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n this.closeRowsPanel();\n return;\n }\n\n if (event.key === 'Enter' || event.key === ' ' || event.key === 'ArrowDown') {\n event.preventDefault();\n this.rowsPanelOpen.set(true);\n }\n }\n\n protected handleRowsPanelKeydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape') return;\n event.preventDefault();\n this.closeRowsPanel();\n }\n\n protected handleRowsFocusOut(event: FocusEvent): void {\n const nextTarget = event.relatedTarget;\n if (\n nextTarget instanceof Node &&\n ((event.currentTarget as HTMLElement).contains(nextTarget) ||\n this.rowsPanel()?.nativeElement.contains(nextTarget))\n ) {\n return;\n }\n this.closeRowsPanel();\n }\n\n protected closeRowsPanel(): void {\n this.rowsPanelPortal()?.restore();\n this.rowsPanelOpen.set(false);\n }\n\n private emitPage(): void {\n this.page.emit({\n first: this.first(),\n rows: this.rows(),\n page: this.currentPage(),\n pageCount: this.pageCount(),\n });\n }\n}\n"],"mappings":";;;AAgGA,IAAa,iBAAb,MAAa,eAAc;CACjB,OAAO,SAAS;CACf,QAAQ,MAAM,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAChB,OAAO,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAChB,eAAe,MAAM,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,eAAA,CAAA,+BAAA,CAAA,CAAA;CACvB,eAAe,MAAM,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,eAAA,CAAA,+BAAA,CAAA,CAAA;CACvB,qBAAqB,MAAyB,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,qBAAA,CAAA,+BAAA,CAAA,CAAA;CACjD,WAAW,MAAsB,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CACjC,iBAAiB,MAA6C,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,iBAAA,CAAA,+BAAA,CAAA,CAAA;CAChE,YAAY,MAAM,cAAa,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAC/B,mBAAmB,MAAM,iBAAgB,GAAA,YAAA,CAAA,EAAA,WAAA,mBAAA,CAAA,+BAAA,CAAA,CAAA;CACzC,OAAO,OAAM;CACH,gBAAgB,OAAO,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,gBAAA,CAAA,+BAAA,CAAA,CAAA;CAC7B,cAAc,UAAyC,eAAc,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CACvE,YAAY,UAAmC,aAAY,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,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