yukit-web 0.10.6 → 0.10.8

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.
Files changed (193) hide show
  1. package/fesm2022/yukit-web-chart.mjs +807 -552
  2. package/fesm2022/yukit-web-chart.mjs.map +1 -1
  3. package/fesm2022/yukit-web-helm-accordion.mjs +271 -100
  4. package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
  5. package/fesm2022/yukit-web-helm-alert-dialog.mjs +675 -243
  6. package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
  7. package/fesm2022/yukit-web-helm-alert.mjs +199 -91
  8. package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
  9. package/fesm2022/yukit-web-helm-aspect-ratio.mjs +77 -43
  10. package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
  11. package/fesm2022/yukit-web-helm-attachment.mjs +552 -205
  12. package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
  13. package/fesm2022/yukit-web-helm-autocomplete.mjs +913 -288
  14. package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
  15. package/fesm2022/yukit-web-helm-avatar.mjs +298 -137
  16. package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
  17. package/fesm2022/yukit-web-helm-badge.mjs +78 -44
  18. package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
  19. package/fesm2022/yukit-web-helm-breadcrumb.mjs +466 -183
  20. package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
  21. package/fesm2022/yukit-web-helm-bubble.mjs +297 -118
  22. package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
  23. package/fesm2022/yukit-web-helm-button-group.mjs +179 -83
  24. package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
  25. package/fesm2022/yukit-web-helm-button.mjs +137 -67
  26. package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
  27. package/fesm2022/yukit-web-helm-calendar.mjs +957 -230
  28. package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
  29. package/fesm2022/yukit-web-helm-card.mjs +318 -136
  30. package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
  31. package/fesm2022/yukit-web-helm-carousel.mjs +563 -233
  32. package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
  33. package/fesm2022/yukit-web-helm-checkbox.mjs +367 -101
  34. package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
  35. package/fesm2022/yukit-web-helm-collapsible.mjs +155 -61
  36. package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
  37. package/fesm2022/yukit-web-helm-combobox.mjs +1572 -481
  38. package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
  39. package/fesm2022/yukit-web-helm-command.mjs +752 -260
  40. package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
  41. package/fesm2022/yukit-web-helm-context-menu.mjs +161 -63
  42. package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
  43. package/fesm2022/yukit-web-helm-date-picker.mjs +2322 -932
  44. package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
  45. package/fesm2022/yukit-web-helm-dialog.mjs +625 -240
  46. package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
  47. package/fesm2022/yukit-web-helm-drawer.mjs +539 -222
  48. package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
  49. package/fesm2022/yukit-web-helm-dropdown-menu.mjs +1295 -493
  50. package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
  51. package/fesm2022/yukit-web-helm-empty.mjs +280 -121
  52. package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
  53. package/fesm2022/yukit-web-helm-field.mjs +670 -301
  54. package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
  55. package/fesm2022/yukit-web-helm-hover-card.mjs +198 -99
  56. package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
  57. package/fesm2022/yukit-web-helm-input-group.mjs +357 -165
  58. package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
  59. package/fesm2022/yukit-web-helm-input-otp.mjs +306 -114
  60. package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
  61. package/fesm2022/yukit-web-helm-input.mjs +62 -30
  62. package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
  63. package/fesm2022/yukit-web-helm-item.mjs +545 -227
  64. package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
  65. package/fesm2022/yukit-web-helm-kbd.mjs +85 -44
  66. package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
  67. package/fesm2022/yukit-web-helm-label.mjs +60 -28
  68. package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
  69. package/fesm2022/yukit-web-helm-marker.mjs +165 -74
  70. package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
  71. package/fesm2022/yukit-web-helm-menubar.mjs +207 -82
  72. package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
  73. package/fesm2022/yukit-web-helm-message.mjs +277 -112
  74. package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
  75. package/fesm2022/yukit-web-helm-native-select.mjs +363 -129
  76. package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
  77. package/fesm2022/yukit-web-helm-navigation-menu.mjs +398 -166
  78. package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
  79. package/fesm2022/yukit-web-helm-pagination.mjs +1444 -460
  80. package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
  81. package/fesm2022/yukit-web-helm-popover.mjs +358 -133
  82. package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
  83. package/fesm2022/yukit-web-helm-progress.mjs +126 -58
  84. package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
  85. package/fesm2022/yukit-web-helm-radio-group.mjs +420 -144
  86. package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
  87. package/fesm2022/yukit-web-helm-resizable.mjs +210 -91
  88. package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
  89. package/fesm2022/yukit-web-helm-scroll-area.mjs +64 -34
  90. package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
  91. package/fesm2022/yukit-web-helm-select.mjs +1059 -351
  92. package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
  93. package/fesm2022/yukit-web-helm-separator.mjs +61 -31
  94. package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
  95. package/fesm2022/yukit-web-helm-sheet.mjs +590 -231
  96. package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
  97. package/fesm2022/yukit-web-helm-sidebar.mjs +1781 -757
  98. package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
  99. package/fesm2022/yukit-web-helm-skeleton.mjs +45 -27
  100. package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
  101. package/fesm2022/yukit-web-helm-slider.mjs +139 -59
  102. package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
  103. package/fesm2022/yukit-web-helm-sonner.mjs +350 -62
  104. package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
  105. package/fesm2022/yukit-web-helm-spinner.mjs +118 -44
  106. package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
  107. package/fesm2022/yukit-web-helm-switch.mjs +326 -94
  108. package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
  109. package/fesm2022/yukit-web-helm-table.mjs +374 -177
  110. package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
  111. package/fesm2022/yukit-web-helm-tabs.mjs +549 -173
  112. package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
  113. package/fesm2022/yukit-web-helm-textarea.mjs +62 -30
  114. package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
  115. package/fesm2022/yukit-web-helm-toggle-group.mjs +291 -89
  116. package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
  117. package/fesm2022/yukit-web-helm-toggle.mjs +132 -57
  118. package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
  119. package/fesm2022/yukit-web-helm-tooltip.mjs +84 -54
  120. package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
  121. package/fesm2022/yukit-web-helm-typography.mjs +461 -202
  122. package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
  123. package/fesm2022/yukit-web-helm-utils.mjs +131 -253
  124. package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
  125. package/fesm2022/yukit-web.mjs +24592 -9669
  126. package/fesm2022/yukit-web.mjs.map +1 -1
  127. package/package.json +9 -9
  128. package/src/lib/theme/components/button.css +14 -0
  129. package/src/lib/theme/spartan-overwrites/sonner.css +2 -2
  130. package/src/lib/theme/tokens/component-colors.css +6 -2
  131. package/types/yukit-web-chart.d.ts +184 -125
  132. package/types/yukit-web-helm-accordion.d.ts +49 -28
  133. package/types/yukit-web-helm-alert-dialog.d.ts +127 -73
  134. package/types/yukit-web-helm-alert.d.ts +30 -32
  135. package/types/yukit-web-helm-aspect-ratio.d.ts +17 -15
  136. package/types/yukit-web-helm-attachment.d.ts +97 -69
  137. package/types/yukit-web-helm-autocomplete.d.ts +205 -79
  138. package/types/yukit-web-helm-avatar.d.ts +44 -39
  139. package/types/yukit-web-helm-badge.d.ts +18 -17
  140. package/types/yukit-web-helm-breadcrumb.d.ts +69 -45
  141. package/types/yukit-web-helm-bubble.d.ts +54 -40
  142. package/types/yukit-web-helm-button-group.d.ts +29 -22
  143. package/types/yukit-web-helm-button.d.ts +41 -31
  144. package/types/yukit-web-helm-calendar.d.ts +157 -85
  145. package/types/yukit-web-helm-card.d.ts +38 -42
  146. package/types/yukit-web-helm-carousel.d.ts +105 -73
  147. package/types/yukit-web-helm-checkbox.d.ts +117 -58
  148. package/types/yukit-web-helm-collapsible.d.ts +34 -19
  149. package/types/yukit-web-helm-combobox.d.ts +355 -150
  150. package/types/yukit-web-helm-command.d.ts +140 -73
  151. package/types/yukit-web-helm-context-menu.d.ts +48 -27
  152. package/types/yukit-web-helm-date-picker.d.ts +852 -556
  153. package/types/yukit-web-helm-dialog.d.ts +106 -78
  154. package/types/yukit-web-helm-drawer.d.ts +90 -61
  155. package/types/yukit-web-helm-dropdown-menu.d.ts +278 -158
  156. package/types/yukit-web-helm-empty.d.ts +38 -42
  157. package/types/yukit-web-helm-field.d.ts +122 -91
  158. package/types/yukit-web-helm-hover-card.d.ts +39 -27
  159. package/types/yukit-web-helm-input-group.d.ts +63 -41
  160. package/types/yukit-web-helm-input-otp.d.ts +38 -35
  161. package/types/yukit-web-helm-input.d.ts +19 -12
  162. package/types/yukit-web-helm-item.d.ts +90 -82
  163. package/types/yukit-web-helm-kbd.d.ts +10 -15
  164. package/types/yukit-web-helm-label.d.ts +14 -11
  165. package/types/yukit-web-helm-marker.d.ts +26 -27
  166. package/types/yukit-web-helm-menubar.d.ts +61 -32
  167. package/types/yukit-web-helm-message.d.ts +34 -38
  168. package/types/yukit-web-helm-native-select.d.ts +102 -61
  169. package/types/yukit-web-helm-navigation-menu.d.ts +76 -42
  170. package/types/yukit-web-helm-pagination.d.ts +344 -166
  171. package/types/yukit-web-helm-popover.d.ts +62 -42
  172. package/types/yukit-web-helm-progress.d.ts +27 -20
  173. package/types/yukit-web-helm-radio-group.d.ts +121 -63
  174. package/types/yukit-web-helm-resizable.d.ts +46 -24
  175. package/types/yukit-web-helm-scroll-area.d.ts +6 -10
  176. package/types/yukit-web-helm-select.d.ts +231 -114
  177. package/types/yukit-web-helm-separator.d.ts +15 -12
  178. package/types/yukit-web-helm-sheet.d.ts +94 -65
  179. package/types/yukit-web-helm-sidebar.d.ts +322 -232
  180. package/types/yukit-web-helm-skeleton.d.ts +6 -10
  181. package/types/yukit-web-helm-slider.d.ts +33 -13
  182. package/types/yukit-web-helm-sonner.d.ts +112 -51
  183. package/types/yukit-web-helm-spinner.d.ts +24 -17
  184. package/types/yukit-web-helm-switch.d.ts +89 -51
  185. package/types/yukit-web-helm-table.d.ts +38 -42
  186. package/types/yukit-web-helm-tabs.d.ts +116 -60
  187. package/types/yukit-web-helm-textarea.d.ts +19 -12
  188. package/types/yukit-web-helm-toggle-group.d.ts +81 -32
  189. package/types/yukit-web-helm-toggle.d.ts +39 -21
  190. package/types/yukit-web-helm-tooltip.d.ts +21 -16
  191. package/types/yukit-web-helm-typography.d.ts +62 -77
  192. package/types/yukit-web-helm-utils.d.ts +8 -11
  193. package/types/yukit-web.d.ts +5125 -2357
@@ -1,160 +1,488 @@
1
- import * as i0 from '@angular/core';
2
- import { input, Directive, ChangeDetectionStrategy, Component, booleanAttribute, computed, model, numberAttribute, untracked } from '@angular/core';
3
- import * as i1$1 from 'yukit-web/helm/select';
4
- import { HlmSelectImports } from 'yukit-web/helm/select';
5
- import { classes, hlm } from 'yukit-web/helm/utils';
6
- import { NgIcon, provideIcons } from '@ng-icons/core';
7
- import { lucideEllipsis, lucideChevronRight, lucideChevronLeft } from '@ng-icons/lucide';
8
- import * as i1 from '@angular/router';
9
- import { RouterLink } from '@angular/router';
10
- import { buttonVariants } from 'yukit-web/helm/button';
11
-
12
- class HlmPagination {
13
- constructor() {
14
- /** The aria-label for the pagination component. */
15
- this.ariaLabel = input('pagination', { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
16
- classes(() => 'mx-auto flex w-full justify-center');
17
- }
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmPagination, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
19
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: HlmPagination, isStandalone: true, selector: "[hlmPagination],hlm-pagination", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "pagination", "role": "navigation" }, properties: { "attr.aria-label": "ariaLabel()" } }, ngImport: i0 }); }
20
- }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmPagination, decorators: [{
22
- type: Directive,
23
- args: [{
24
- selector: '[hlmPagination],hlm-pagination',
25
- host: {
26
- 'data-slot': 'pagination',
27
- role: 'navigation',
28
- '[attr.aria-label]': 'ariaLabel()',
29
- },
30
- }]
31
- }], ctorParameters: () => [], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }] } });
32
-
33
- class HlmPaginationContent {
34
- constructor() {
35
- classes(() => 'gap-0.5 flex items-center');
36
- }
37
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmPaginationContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
38
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmPaginationContent, isStandalone: true, selector: "ul[hlmPaginationContent]", host: { attributes: { "data-slot": "pagination-content" } }, ngImport: i0 }); }
39
- }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmPaginationContent, decorators: [{
41
- type: Directive,
42
- args: [{
43
- selector: 'ul[hlmPaginationContent]',
44
- host: { 'data-slot': 'pagination-content' },
45
- }]
46
- }], ctorParameters: () => [] });
47
-
48
- class HlmPaginationEllipsis {
49
- constructor() {
50
- /** Screen reader only text for the ellipsis */
51
- this.srOnlyText = input('More pages', ...(ngDevMode ? [{ debugName: "srOnlyText" }] : /* istanbul ignore next */ []));
52
- classes(() => "size-8 [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex items-center justify-center");
53
- }
54
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmPaginationEllipsis, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
55
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: HlmPaginationEllipsis, isStandalone: true, selector: "hlm-pagination-ellipsis", inputs: { srOnlyText: { classPropertyName: "srOnlyText", publicName: "srOnlyText", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "pagination-ellipsis" } }, providers: [provideIcons({ lucideEllipsis })], ngImport: i0, template: `
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Directive, booleanAttribute, computed, input, model, numberAttribute, untracked } from "@angular/core";
3
+ import * as i1 from "yukit-web/helm/select";
4
+ import { HlmSelectImports } from "yukit-web/helm/select";
5
+ import { classes, hlm } from "yukit-web/helm/utils";
6
+ import { NgIcon, provideIcons } from "@ng-icons/core";
7
+ import { lucideChevronLeft, lucideChevronRight, lucideEllipsis } from "@ng-icons/lucide";
8
+ import * as i1$1 from "@angular/router";
9
+ import { RouterLink } from "@angular/router";
10
+ import { buttonVariants } from "yukit-web/helm/button";
11
+ var HlmPagination = class HlmPagination {
12
+ constructor() {
13
+ this.ariaLabel = input("pagination", {
14
+ ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
15
+ alias: "aria-label"
16
+ });
17
+ classes(() => "mx-auto flex w-full justify-center");
18
+ }
19
+ static {
20
+ this.ɵfac = i0.ɵɵngDeclareFactory({
21
+ minVersion: "12.0.0",
22
+ version: "22.2.4",
23
+ ngImport: i0,
24
+ type: HlmPagination,
25
+ deps: [],
26
+ target: i0.ɵɵFactoryTarget.Directive
27
+ });
28
+ }
29
+ static {
30
+ this.ɵdir = i0.ɵɵngDeclareDirective({
31
+ minVersion: "17.1.0",
32
+ version: "22.2.4",
33
+ type: HlmPagination,
34
+ isStandalone: true,
35
+ selector: "[hlmPagination],hlm-pagination",
36
+ inputs: { ariaLabel: {
37
+ classPropertyName: "ariaLabel",
38
+ publicName: "aria-label",
39
+ isSignal: true,
40
+ isRequired: false,
41
+ transformFunction: null
42
+ } },
43
+ host: {
44
+ attributes: {
45
+ "data-slot": "pagination",
46
+ "role": "navigation"
47
+ },
48
+ properties: { "attr.aria-label": "ariaLabel()" }
49
+ },
50
+ ngImport: i0
51
+ });
52
+ }
53
+ };
54
+ i0.ɵɵngDeclareClassMetadata({
55
+ minVersion: "12.0.0",
56
+ version: "22.2.4",
57
+ ngImport: i0,
58
+ type: HlmPagination,
59
+ decorators: [{
60
+ type: Directive,
61
+ args: [{
62
+ selector: "[hlmPagination],hlm-pagination",
63
+ host: {
64
+ "data-slot": "pagination",
65
+ role: "navigation",
66
+ "[attr.aria-label]": "ariaLabel()"
67
+ }
68
+ }]
69
+ }],
70
+ ctorParameters: () => [],
71
+ propDecorators: { ariaLabel: [{
72
+ type: i0.Input,
73
+ args: [{
74
+ isSignal: true,
75
+ alias: "aria-label",
76
+ required: false
77
+ }]
78
+ }] }
79
+ });
80
+ var HlmPaginationContent = class HlmPaginationContent {
81
+ constructor() {
82
+ classes(() => "gap-0.5 flex items-center");
83
+ }
84
+ static {
85
+ this.ɵfac = i0.ɵɵngDeclareFactory({
86
+ minVersion: "12.0.0",
87
+ version: "22.2.4",
88
+ ngImport: i0,
89
+ type: HlmPaginationContent,
90
+ deps: [],
91
+ target: i0.ɵɵFactoryTarget.Directive
92
+ });
93
+ }
94
+ static {
95
+ this.ɵdir = i0.ɵɵngDeclareDirective({
96
+ minVersion: "14.0.0",
97
+ version: "22.2.4",
98
+ type: HlmPaginationContent,
99
+ isStandalone: true,
100
+ selector: "ul[hlmPaginationContent]",
101
+ host: { attributes: { "data-slot": "pagination-content" } },
102
+ ngImport: i0
103
+ });
104
+ }
105
+ };
106
+ i0.ɵɵngDeclareClassMetadata({
107
+ minVersion: "12.0.0",
108
+ version: "22.2.4",
109
+ ngImport: i0,
110
+ type: HlmPaginationContent,
111
+ decorators: [{
112
+ type: Directive,
113
+ args: [{
114
+ selector: "ul[hlmPaginationContent]",
115
+ host: { "data-slot": "pagination-content" }
116
+ }]
117
+ }],
118
+ ctorParameters: () => []
119
+ });
120
+ var HlmPaginationEllipsis = class HlmPaginationEllipsis {
121
+ constructor() {
122
+ this.srOnlyText = input("More pages", ...ngDevMode ? [{ debugName: "srOnlyText" }] : /* istanbul ignore next */ []);
123
+ classes(() => "size-8 [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex items-center justify-center");
124
+ }
125
+ static {
126
+ this.ɵfac = i0.ɵɵngDeclareFactory({
127
+ minVersion: "12.0.0",
128
+ version: "22.2.4",
129
+ ngImport: i0,
130
+ type: HlmPaginationEllipsis,
131
+ deps: [],
132
+ target: i0.ɵɵFactoryTarget.Component
133
+ });
134
+ }
135
+ static {
136
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
137
+ minVersion: "17.1.0",
138
+ version: "22.2.4",
139
+ type: HlmPaginationEllipsis,
140
+ isStandalone: true,
141
+ selector: "hlm-pagination-ellipsis",
142
+ inputs: { srOnlyText: {
143
+ classPropertyName: "srOnlyText",
144
+ publicName: "srOnlyText",
145
+ isSignal: true,
146
+ isRequired: false,
147
+ transformFunction: null
148
+ } },
149
+ host: { attributes: { "data-slot": "pagination-ellipsis" } },
150
+ providers: [provideIcons({ lucideEllipsis })],
151
+ ngImport: i0,
152
+ template: `
56
153
  <ng-icon name="lucideEllipsis" />
57
154
  <span class="sr-only">{{ srOnlyText() }}</span>
58
- `, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
59
- }
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmPaginationEllipsis, decorators: [{
61
- type: Component,
62
- args: [{
63
- selector: 'hlm-pagination-ellipsis',
64
- imports: [NgIcon],
65
- providers: [provideIcons({ lucideEllipsis })],
66
- changeDetection: ChangeDetectionStrategy.OnPush,
67
- host: { 'data-slot': 'pagination-ellipsis' },
68
- template: `
155
+ `,
156
+ isInline: true,
157
+ dependencies: [{
158
+ kind: "component",
159
+ type: NgIcon,
160
+ selector: "ng-icon",
161
+ inputs: [
162
+ "name",
163
+ "svg",
164
+ "size",
165
+ "strokeWidth",
166
+ "color"
167
+ ]
168
+ }],
169
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
170
+ });
171
+ }
172
+ };
173
+ i0.ɵɵngDeclareClassMetadata({
174
+ minVersion: "12.0.0",
175
+ version: "22.2.4",
176
+ ngImport: i0,
177
+ type: HlmPaginationEllipsis,
178
+ decorators: [{
179
+ type: Component,
180
+ args: [{
181
+ selector: "hlm-pagination-ellipsis",
182
+ imports: [NgIcon],
183
+ providers: [provideIcons({ lucideEllipsis })],
184
+ changeDetection: ChangeDetectionStrategy.OnPush,
185
+ host: { "data-slot": "pagination-ellipsis" },
186
+ template: `
69
187
  <ng-icon name="lucideEllipsis" />
70
188
  <span class="sr-only">{{ srOnlyText() }}</span>
71
- `,
72
- }]
73
- }], ctorParameters: () => [], propDecorators: { srOnlyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "srOnlyText", required: false }] }] } });
74
-
75
- class HlmPaginationItem {
76
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmPaginationItem, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
77
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmPaginationItem, isStandalone: true, selector: "li[hlmPaginationItem]", host: { attributes: { "data-slot": "pagination-item" } }, ngImport: i0 }); }
78
- }
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmPaginationItem, decorators: [{
80
- type: Directive,
81
- args: [{
82
- selector: 'li[hlmPaginationItem]',
83
- host: { 'data-slot': 'pagination-item' },
84
- }]
85
- }] });
86
-
87
- class HlmPaginationLink {
88
- constructor() {
89
- /** Whether the link is active (i.e., the current page). */
90
- this.isActive = input(false, { ...(ngDevMode ? { debugName: "isActive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
91
- /** The size of the button. */
92
- this.size = input('icon', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
93
- /** The link to navigate to the page. */
94
- this.link = input(...(ngDevMode ? [undefined, { debugName: "link" }] : /* istanbul ignore next */ []));
95
- classes(() => [
96
- 'relative',
97
- buttonVariants({
98
- variant: this.isActive() ? 'outline' : 'ghost',
99
- size: this.size(),
100
- }),
101
- this.link() === undefined && 'cursor-pointer',
102
- ]);
103
- }
104
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmPaginationLink, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
105
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: HlmPaginationLink, isStandalone: true, selector: "[hlmPaginationLink]", inputs: { isActive: { classPropertyName: "isActive", publicName: "isActive", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "pagination-link" }, properties: { "attr.data-active": "isActive() ? \"true\" : null", "attr.aria-current": "isActive() ? \"page\" : null" } }, hostDirectives: [{ directive: i1.RouterLink, inputs: ["target", "target", "queryParams", "queryParams", "fragment", "fragment", "queryParamsHandling", "queryParamsHandling", "state", "state", "info", "info", "relativeTo", "relativeTo", "preserveFragment", "preserveFragment", "skipLocationChange", "skipLocationChange", "replaceUrl", "replaceUrl", "routerLink", "link"] }], ngImport: i0 }); }
106
- }
107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmPaginationLink, decorators: [{
108
- type: Directive,
109
- args: [{
110
- selector: '[hlmPaginationLink]',
111
- hostDirectives: [
112
- {
113
- directive: RouterLink,
114
- inputs: [
115
- 'target',
116
- 'queryParams',
117
- 'fragment',
118
- 'queryParamsHandling',
119
- 'state',
120
- 'info',
121
- 'relativeTo',
122
- 'preserveFragment',
123
- 'skipLocationChange',
124
- 'replaceUrl',
125
- 'routerLink: link',
126
- ],
127
- },
128
- ],
129
- host: {
130
- 'data-slot': 'pagination-link',
131
- '[attr.data-active]': 'isActive() ? "true" : null',
132
- '[attr.aria-current]': 'isActive() ? "page" : null',
133
- },
134
- }]
135
- }], ctorParameters: () => [], propDecorators: { isActive: [{ type: i0.Input, args: [{ isSignal: true, alias: "isActive", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], link: [{ type: i0.Input, args: [{ isSignal: true, alias: "link", required: false }] }] } });
136
-
137
- class HlmPaginationNext {
138
- constructor() {
139
- this.userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
140
- /** The link to navigate to the next page. */
141
- this.link = input(...(ngDevMode ? [undefined, { debugName: "link" }] : /* istanbul ignore next */ []));
142
- /** The query parameters to pass to the next page. */
143
- this.queryParams = input(...(ngDevMode ? [undefined, { debugName: "queryParams" }] : /* istanbul ignore next */ []));
144
- /** How to handle query parameters when navigating to the next page. */
145
- this.queryParamsHandling = input(...(ngDevMode ? [undefined, { debugName: "queryParamsHandling" }] : /* istanbul ignore next */ []));
146
- /** The aria-label for the next page link. */
147
- this.ariaLabel = input('Go to next page', { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
148
- /** The text to display for the next page link. */
149
- this.text = input('Next', ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
150
- /** Whether the button should only display the icon. */
151
- this.iconOnly = input(false, { ...(ngDevMode ? { debugName: "iconOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
152
- this._labelClass = computed(() => (this.iconOnly() ? 'sr-only' : 'hidden sm:block'), ...(ngDevMode ? [{ debugName: "_labelClass" }] : /* istanbul ignore next */ []));
153
- this._size = computed(() => (this.iconOnly() ? 'icon' : 'default'), ...(ngDevMode ? [{ debugName: "_size" }] : /* istanbul ignore next */ []));
154
- this._computedClass = computed(() => hlm(!this.iconOnly() && 'pe-1.5!', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []));
155
- }
156
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmPaginationNext, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
157
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: HlmPaginationNext, isStandalone: true, selector: "hlm-pagination-next", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null }, queryParams: { classPropertyName: "queryParams", publicName: "queryParams", isSignal: true, isRequired: false, transformFunction: null }, queryParamsHandling: { classPropertyName: "queryParamsHandling", publicName: "queryParamsHandling", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideIcons({ lucideChevronRight })], ngImport: i0, template: `
189
+ `
190
+ }]
191
+ }],
192
+ ctorParameters: () => [],
193
+ propDecorators: { srOnlyText: [{
194
+ type: i0.Input,
195
+ args: [{
196
+ isSignal: true,
197
+ alias: "srOnlyText",
198
+ required: false
199
+ }]
200
+ }] }
201
+ });
202
+ var HlmPaginationItem = class HlmPaginationItem {
203
+ static {
204
+ this.ɵfac = i0.ɵɵngDeclareFactory({
205
+ minVersion: "12.0.0",
206
+ version: "22.2.4",
207
+ ngImport: i0,
208
+ type: HlmPaginationItem,
209
+ deps: [],
210
+ target: i0.ɵɵFactoryTarget.Directive
211
+ });
212
+ }
213
+ static {
214
+ this.ɵdir = i0.ɵɵngDeclareDirective({
215
+ minVersion: "14.0.0",
216
+ version: "22.2.4",
217
+ type: HlmPaginationItem,
218
+ isStandalone: true,
219
+ selector: "li[hlmPaginationItem]",
220
+ host: { attributes: { "data-slot": "pagination-item" } },
221
+ ngImport: i0
222
+ });
223
+ }
224
+ };
225
+ i0.ɵɵngDeclareClassMetadata({
226
+ minVersion: "12.0.0",
227
+ version: "22.2.4",
228
+ ngImport: i0,
229
+ type: HlmPaginationItem,
230
+ decorators: [{
231
+ type: Directive,
232
+ args: [{
233
+ selector: "li[hlmPaginationItem]",
234
+ host: { "data-slot": "pagination-item" }
235
+ }]
236
+ }]
237
+ });
238
+ var HlmPaginationLink = class HlmPaginationLink {
239
+ constructor() {
240
+ this.isActive = input(false, {
241
+ ...ngDevMode ? { debugName: "isActive" } : /* istanbul ignore next */ {},
242
+ transform: booleanAttribute
243
+ });
244
+ this.size = input("icon", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
245
+ this.link = input(...ngDevMode ? [void 0, { debugName: "link" }] : /* istanbul ignore next */ []);
246
+ classes(() => [
247
+ "relative",
248
+ buttonVariants({
249
+ variant: this.isActive() ? "outline" : "ghost",
250
+ size: this.size()
251
+ }),
252
+ this.link() === void 0 && "cursor-pointer"
253
+ ]);
254
+ }
255
+ static {
256
+ this.ɵfac = i0.ɵɵngDeclareFactory({
257
+ minVersion: "12.0.0",
258
+ version: "22.2.4",
259
+ ngImport: i0,
260
+ type: HlmPaginationLink,
261
+ deps: [],
262
+ target: i0.ɵɵFactoryTarget.Directive
263
+ });
264
+ }
265
+ static {
266
+ this.ɵdir = i0.ɵɵngDeclareDirective({
267
+ minVersion: "17.1.0",
268
+ version: "22.2.4",
269
+ type: HlmPaginationLink,
270
+ isStandalone: true,
271
+ selector: "[hlmPaginationLink]",
272
+ inputs: {
273
+ isActive: {
274
+ classPropertyName: "isActive",
275
+ publicName: "isActive",
276
+ isSignal: true,
277
+ isRequired: false,
278
+ transformFunction: null
279
+ },
280
+ size: {
281
+ classPropertyName: "size",
282
+ publicName: "size",
283
+ isSignal: true,
284
+ isRequired: false,
285
+ transformFunction: null
286
+ },
287
+ link: {
288
+ classPropertyName: "link",
289
+ publicName: "link",
290
+ isSignal: true,
291
+ isRequired: false,
292
+ transformFunction: null
293
+ }
294
+ },
295
+ host: {
296
+ attributes: { "data-slot": "pagination-link" },
297
+ properties: {
298
+ "attr.data-active": "isActive() ? \"true\" : null",
299
+ "attr.aria-current": "isActive() ? \"page\" : null"
300
+ }
301
+ },
302
+ hostDirectives: [{
303
+ directive: i1$1.RouterLink,
304
+ inputs: [
305
+ "target",
306
+ "target",
307
+ "queryParams",
308
+ "queryParams",
309
+ "fragment",
310
+ "fragment",
311
+ "queryParamsHandling",
312
+ "queryParamsHandling",
313
+ "state",
314
+ "state",
315
+ "info",
316
+ "info",
317
+ "relativeTo",
318
+ "relativeTo",
319
+ "preserveFragment",
320
+ "preserveFragment",
321
+ "skipLocationChange",
322
+ "skipLocationChange",
323
+ "replaceUrl",
324
+ "replaceUrl",
325
+ "routerLink",
326
+ "link"
327
+ ]
328
+ }],
329
+ ngImport: i0
330
+ });
331
+ }
332
+ };
333
+ i0.ɵɵngDeclareClassMetadata({
334
+ minVersion: "12.0.0",
335
+ version: "22.2.4",
336
+ ngImport: i0,
337
+ type: HlmPaginationLink,
338
+ decorators: [{
339
+ type: Directive,
340
+ args: [{
341
+ selector: "[hlmPaginationLink]",
342
+ hostDirectives: [{
343
+ directive: RouterLink,
344
+ inputs: [
345
+ "target",
346
+ "queryParams",
347
+ "fragment",
348
+ "queryParamsHandling",
349
+ "state",
350
+ "info",
351
+ "relativeTo",
352
+ "preserveFragment",
353
+ "skipLocationChange",
354
+ "replaceUrl",
355
+ "routerLink: link"
356
+ ]
357
+ }],
358
+ host: {
359
+ "data-slot": "pagination-link",
360
+ "[attr.data-active]": "isActive() ? \"true\" : null",
361
+ "[attr.aria-current]": "isActive() ? \"page\" : null"
362
+ }
363
+ }]
364
+ }],
365
+ ctorParameters: () => [],
366
+ propDecorators: {
367
+ isActive: [{
368
+ type: i0.Input,
369
+ args: [{
370
+ isSignal: true,
371
+ alias: "isActive",
372
+ required: false
373
+ }]
374
+ }],
375
+ size: [{
376
+ type: i0.Input,
377
+ args: [{
378
+ isSignal: true,
379
+ alias: "size",
380
+ required: false
381
+ }]
382
+ }],
383
+ link: [{
384
+ type: i0.Input,
385
+ args: [{
386
+ isSignal: true,
387
+ alias: "link",
388
+ required: false
389
+ }]
390
+ }]
391
+ }
392
+ });
393
+ var HlmPaginationNext = class HlmPaginationNext {
394
+ constructor() {
395
+ this.userClass = input("", {
396
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
397
+ alias: "class"
398
+ });
399
+ this.link = input(...ngDevMode ? [void 0, { debugName: "link" }] : /* istanbul ignore next */ []);
400
+ this.queryParams = input(...ngDevMode ? [void 0, { debugName: "queryParams" }] : /* istanbul ignore next */ []);
401
+ this.queryParamsHandling = input(...ngDevMode ? [void 0, { debugName: "queryParamsHandling" }] : /* istanbul ignore next */ []);
402
+ this.ariaLabel = input("Go to next page", {
403
+ ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
404
+ alias: "aria-label"
405
+ });
406
+ this.text = input("Next", ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
407
+ this.iconOnly = input(false, {
408
+ ...ngDevMode ? { debugName: "iconOnly" } : /* istanbul ignore next */ {},
409
+ transform: booleanAttribute
410
+ });
411
+ this._labelClass = computed(() => this.iconOnly() ? "sr-only" : "hidden sm:block", ...ngDevMode ? [{ debugName: "_labelClass" }] : /* istanbul ignore next */ []);
412
+ this._size = computed(() => this.iconOnly() ? "icon" : "default", ...ngDevMode ? [{ debugName: "_size" }] : /* istanbul ignore next */ []);
413
+ this._computedClass = computed(() => hlm(!this.iconOnly() && "pe-1.5!", this.userClass()), ...ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []);
414
+ }
415
+ static {
416
+ this.ɵfac = i0.ɵɵngDeclareFactory({
417
+ minVersion: "12.0.0",
418
+ version: "22.2.4",
419
+ ngImport: i0,
420
+ type: HlmPaginationNext,
421
+ deps: [],
422
+ target: i0.ɵɵFactoryTarget.Component
423
+ });
424
+ }
425
+ static {
426
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
427
+ minVersion: "17.1.0",
428
+ version: "22.2.4",
429
+ type: HlmPaginationNext,
430
+ isStandalone: true,
431
+ selector: "hlm-pagination-next",
432
+ inputs: {
433
+ userClass: {
434
+ classPropertyName: "userClass",
435
+ publicName: "class",
436
+ isSignal: true,
437
+ isRequired: false,
438
+ transformFunction: null
439
+ },
440
+ link: {
441
+ classPropertyName: "link",
442
+ publicName: "link",
443
+ isSignal: true,
444
+ isRequired: false,
445
+ transformFunction: null
446
+ },
447
+ queryParams: {
448
+ classPropertyName: "queryParams",
449
+ publicName: "queryParams",
450
+ isSignal: true,
451
+ isRequired: false,
452
+ transformFunction: null
453
+ },
454
+ queryParamsHandling: {
455
+ classPropertyName: "queryParamsHandling",
456
+ publicName: "queryParamsHandling",
457
+ isSignal: true,
458
+ isRequired: false,
459
+ transformFunction: null
460
+ },
461
+ ariaLabel: {
462
+ classPropertyName: "ariaLabel",
463
+ publicName: "aria-label",
464
+ isSignal: true,
465
+ isRequired: false,
466
+ transformFunction: null
467
+ },
468
+ text: {
469
+ classPropertyName: "text",
470
+ publicName: "text",
471
+ isSignal: true,
472
+ isRequired: false,
473
+ transformFunction: null
474
+ },
475
+ iconOnly: {
476
+ classPropertyName: "iconOnly",
477
+ publicName: "iconOnly",
478
+ isSignal: true,
479
+ isRequired: false,
480
+ transformFunction: null
481
+ }
482
+ },
483
+ providers: [provideIcons({ lucideChevronRight })],
484
+ ngImport: i0,
485
+ template: `
158
486
  <a
159
487
  hlmPaginationLink
160
488
  [class]="_computedClass()"
@@ -167,16 +495,46 @@ class HlmPaginationNext {
167
495
  <span [class]="_labelClass()">{{ text() }}</span>
168
496
  <ng-icon name="lucideChevronRight" class="rtl:rotate-180" />
169
497
  </a>
170
- `, isInline: true, dependencies: [{ kind: "directive", type: HlmPaginationLink, selector: "[hlmPaginationLink]", inputs: ["isActive", "size", "link"] }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
171
- }
172
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmPaginationNext, decorators: [{
173
- type: Component,
174
- args: [{
175
- selector: 'hlm-pagination-next',
176
- imports: [HlmPaginationLink, NgIcon],
177
- providers: [provideIcons({ lucideChevronRight })],
178
- changeDetection: ChangeDetectionStrategy.OnPush,
179
- template: `
498
+ `,
499
+ isInline: true,
500
+ dependencies: [{
501
+ kind: "directive",
502
+ type: HlmPaginationLink,
503
+ selector: "[hlmPaginationLink]",
504
+ inputs: [
505
+ "isActive",
506
+ "size",
507
+ "link"
508
+ ]
509
+ }, {
510
+ kind: "component",
511
+ type: NgIcon,
512
+ selector: "ng-icon",
513
+ inputs: [
514
+ "name",
515
+ "svg",
516
+ "size",
517
+ "strokeWidth",
518
+ "color"
519
+ ]
520
+ }],
521
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
522
+ });
523
+ }
524
+ };
525
+ i0.ɵɵngDeclareClassMetadata({
526
+ minVersion: "12.0.0",
527
+ version: "22.2.4",
528
+ ngImport: i0,
529
+ type: HlmPaginationNext,
530
+ decorators: [{
531
+ type: Component,
532
+ args: [{
533
+ selector: "hlm-pagination-next",
534
+ imports: [HlmPaginationLink, NgIcon],
535
+ providers: [provideIcons({ lucideChevronRight })],
536
+ changeDetection: ChangeDetectionStrategy.OnPush,
537
+ template: `
180
538
  <a
181
539
  hlmPaginationLink
182
540
  [class]="_computedClass()"
@@ -189,31 +547,161 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
189
547
  <span [class]="_labelClass()">{{ text() }}</span>
190
548
  <ng-icon name="lucideChevronRight" class="rtl:rotate-180" />
191
549
  </a>
192
- `,
193
- }]
194
- }], propDecorators: { userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], link: [{ type: i0.Input, args: [{ isSignal: true, alias: "link", required: false }] }], queryParams: [{ type: i0.Input, args: [{ isSignal: true, alias: "queryParams", required: false }] }], queryParamsHandling: [{ type: i0.Input, args: [{ isSignal: true, alias: "queryParamsHandling", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }] } });
195
-
196
- class HlmPaginationPrevious {
197
- constructor() {
198
- this.userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
199
- /** The link to navigate to the previous page. */
200
- this.link = input(...(ngDevMode ? [undefined, { debugName: "link" }] : /* istanbul ignore next */ []));
201
- /** The query parameters to pass to the previous page. */
202
- this.queryParams = input(...(ngDevMode ? [undefined, { debugName: "queryParams" }] : /* istanbul ignore next */ []));
203
- /** How to handle query parameters when navigating to the previous page. */
204
- this.queryParamsHandling = input(...(ngDevMode ? [undefined, { debugName: "queryParamsHandling" }] : /* istanbul ignore next */ []));
205
- /** The aria-label for the previous page link. */
206
- this.ariaLabel = input('Go to previous page', { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
207
- /** The text to display for the previous page link. */
208
- this.text = input('Previous', ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
209
- /** Whether the button should only display the icon. */
210
- this.iconOnly = input(false, { ...(ngDevMode ? { debugName: "iconOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
211
- this._labelClass = computed(() => hlm(this.iconOnly() ? 'sr-only' : 'hidden sm:block'), ...(ngDevMode ? [{ debugName: "_labelClass" }] : /* istanbul ignore next */ []));
212
- this._size = computed(() => (this.iconOnly() ? 'icon' : 'default'), ...(ngDevMode ? [{ debugName: "_size" }] : /* istanbul ignore next */ []));
213
- this._computedClass = computed(() => hlm(!this.iconOnly() && 'ps-1.5!', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []));
214
- }
215
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmPaginationPrevious, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
216
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: HlmPaginationPrevious, isStandalone: true, selector: "hlm-pagination-previous", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null }, queryParams: { classPropertyName: "queryParams", publicName: "queryParams", isSignal: true, isRequired: false, transformFunction: null }, queryParamsHandling: { classPropertyName: "queryParamsHandling", publicName: "queryParamsHandling", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideIcons({ lucideChevronLeft })], ngImport: i0, template: `
550
+ `
551
+ }]
552
+ }],
553
+ propDecorators: {
554
+ userClass: [{
555
+ type: i0.Input,
556
+ args: [{
557
+ isSignal: true,
558
+ alias: "class",
559
+ required: false
560
+ }]
561
+ }],
562
+ link: [{
563
+ type: i0.Input,
564
+ args: [{
565
+ isSignal: true,
566
+ alias: "link",
567
+ required: false
568
+ }]
569
+ }],
570
+ queryParams: [{
571
+ type: i0.Input,
572
+ args: [{
573
+ isSignal: true,
574
+ alias: "queryParams",
575
+ required: false
576
+ }]
577
+ }],
578
+ queryParamsHandling: [{
579
+ type: i0.Input,
580
+ args: [{
581
+ isSignal: true,
582
+ alias: "queryParamsHandling",
583
+ required: false
584
+ }]
585
+ }],
586
+ ariaLabel: [{
587
+ type: i0.Input,
588
+ args: [{
589
+ isSignal: true,
590
+ alias: "aria-label",
591
+ required: false
592
+ }]
593
+ }],
594
+ text: [{
595
+ type: i0.Input,
596
+ args: [{
597
+ isSignal: true,
598
+ alias: "text",
599
+ required: false
600
+ }]
601
+ }],
602
+ iconOnly: [{
603
+ type: i0.Input,
604
+ args: [{
605
+ isSignal: true,
606
+ alias: "iconOnly",
607
+ required: false
608
+ }]
609
+ }]
610
+ }
611
+ });
612
+ var HlmPaginationPrevious = class HlmPaginationPrevious {
613
+ constructor() {
614
+ this.userClass = input("", {
615
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
616
+ alias: "class"
617
+ });
618
+ this.link = input(...ngDevMode ? [void 0, { debugName: "link" }] : /* istanbul ignore next */ []);
619
+ this.queryParams = input(...ngDevMode ? [void 0, { debugName: "queryParams" }] : /* istanbul ignore next */ []);
620
+ this.queryParamsHandling = input(...ngDevMode ? [void 0, { debugName: "queryParamsHandling" }] : /* istanbul ignore next */ []);
621
+ this.ariaLabel = input("Go to previous page", {
622
+ ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
623
+ alias: "aria-label"
624
+ });
625
+ this.text = input("Previous", ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
626
+ this.iconOnly = input(false, {
627
+ ...ngDevMode ? { debugName: "iconOnly" } : /* istanbul ignore next */ {},
628
+ transform: booleanAttribute
629
+ });
630
+ this._labelClass = computed(() => hlm(this.iconOnly() ? "sr-only" : "hidden sm:block"), ...ngDevMode ? [{ debugName: "_labelClass" }] : /* istanbul ignore next */ []);
631
+ this._size = computed(() => this.iconOnly() ? "icon" : "default", ...ngDevMode ? [{ debugName: "_size" }] : /* istanbul ignore next */ []);
632
+ this._computedClass = computed(() => hlm(!this.iconOnly() && "ps-1.5!", this.userClass()), ...ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []);
633
+ }
634
+ static {
635
+ this.ɵfac = i0.ɵɵngDeclareFactory({
636
+ minVersion: "12.0.0",
637
+ version: "22.2.4",
638
+ ngImport: i0,
639
+ type: HlmPaginationPrevious,
640
+ deps: [],
641
+ target: i0.ɵɵFactoryTarget.Component
642
+ });
643
+ }
644
+ static {
645
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
646
+ minVersion: "17.1.0",
647
+ version: "22.2.4",
648
+ type: HlmPaginationPrevious,
649
+ isStandalone: true,
650
+ selector: "hlm-pagination-previous",
651
+ inputs: {
652
+ userClass: {
653
+ classPropertyName: "userClass",
654
+ publicName: "class",
655
+ isSignal: true,
656
+ isRequired: false,
657
+ transformFunction: null
658
+ },
659
+ link: {
660
+ classPropertyName: "link",
661
+ publicName: "link",
662
+ isSignal: true,
663
+ isRequired: false,
664
+ transformFunction: null
665
+ },
666
+ queryParams: {
667
+ classPropertyName: "queryParams",
668
+ publicName: "queryParams",
669
+ isSignal: true,
670
+ isRequired: false,
671
+ transformFunction: null
672
+ },
673
+ queryParamsHandling: {
674
+ classPropertyName: "queryParamsHandling",
675
+ publicName: "queryParamsHandling",
676
+ isSignal: true,
677
+ isRequired: false,
678
+ transformFunction: null
679
+ },
680
+ ariaLabel: {
681
+ classPropertyName: "ariaLabel",
682
+ publicName: "aria-label",
683
+ isSignal: true,
684
+ isRequired: false,
685
+ transformFunction: null
686
+ },
687
+ text: {
688
+ classPropertyName: "text",
689
+ publicName: "text",
690
+ isSignal: true,
691
+ isRequired: false,
692
+ transformFunction: null
693
+ },
694
+ iconOnly: {
695
+ classPropertyName: "iconOnly",
696
+ publicName: "iconOnly",
697
+ isSignal: true,
698
+ isRequired: false,
699
+ transformFunction: null
700
+ }
701
+ },
702
+ providers: [provideIcons({ lucideChevronLeft })],
703
+ ngImport: i0,
704
+ template: `
217
705
  <a
218
706
  hlmPaginationLink
219
707
  [class]="_computedClass()"
@@ -226,16 +714,46 @@ class HlmPaginationPrevious {
226
714
  <ng-icon name="lucideChevronLeft" class="rtl:rotate-180" />
227
715
  <span [class]="_labelClass()">{{ text() }}</span>
228
716
  </a>
229
- `, isInline: true, dependencies: [{ kind: "directive", type: HlmPaginationLink, selector: "[hlmPaginationLink]", inputs: ["isActive", "size", "link"] }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
230
- }
231
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmPaginationPrevious, decorators: [{
232
- type: Component,
233
- args: [{
234
- selector: 'hlm-pagination-previous',
235
- imports: [HlmPaginationLink, NgIcon],
236
- providers: [provideIcons({ lucideChevronLeft })],
237
- changeDetection: ChangeDetectionStrategy.OnPush,
238
- template: `
717
+ `,
718
+ isInline: true,
719
+ dependencies: [{
720
+ kind: "directive",
721
+ type: HlmPaginationLink,
722
+ selector: "[hlmPaginationLink]",
723
+ inputs: [
724
+ "isActive",
725
+ "size",
726
+ "link"
727
+ ]
728
+ }, {
729
+ kind: "component",
730
+ type: NgIcon,
731
+ selector: "ng-icon",
732
+ inputs: [
733
+ "name",
734
+ "svg",
735
+ "size",
736
+ "strokeWidth",
737
+ "color"
738
+ ]
739
+ }],
740
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
741
+ });
742
+ }
743
+ };
744
+ i0.ɵɵngDeclareClassMetadata({
745
+ minVersion: "12.0.0",
746
+ version: "22.2.4",
747
+ ngImport: i0,
748
+ type: HlmPaginationPrevious,
749
+ decorators: [{
750
+ type: Component,
751
+ args: [{
752
+ selector: "hlm-pagination-previous",
753
+ imports: [HlmPaginationLink, NgIcon],
754
+ providers: [provideIcons({ lucideChevronLeft })],
755
+ changeDetection: ChangeDetectionStrategy.OnPush,
756
+ template: `
239
757
  <a
240
758
  hlmPaginationLink
241
759
  [class]="_computedClass()"
@@ -248,78 +766,185 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
248
766
  <ng-icon name="lucideChevronLeft" class="rtl:rotate-180" />
249
767
  <span [class]="_labelClass()">{{ text() }}</span>
250
768
  </a>
251
- `,
252
- }]
253
- }], propDecorators: { userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], link: [{ type: i0.Input, args: [{ isSignal: true, alias: "link", required: false }] }], queryParams: [{ type: i0.Input, args: [{ isSignal: true, alias: "queryParams", required: false }] }], queryParamsHandling: [{ type: i0.Input, args: [{ isSignal: true, alias: "queryParamsHandling", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }] } });
254
-
255
- class HlmNumberedPagination {
256
- constructor() {
257
- /**
258
- * The current (active) page.
259
- */
260
- this.currentPage = model.required(...(ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []));
261
- /**
262
- * The number of items per paginated page.
263
- */
264
- this.itemsPerPage = model.required(...(ngDevMode ? [{ debugName: "itemsPerPage" }] : /* istanbul ignore next */ []));
265
- /**
266
- * The total number of items in the collection. Only useful when
267
- * doing server-side paging, where the collection size is limited
268
- * to a single page returned by the server API.
269
- */
270
- this.totalItems = input.required({ ...(ngDevMode ? { debugName: "totalItems" } : /* istanbul ignore next */ {}), transform: numberAttribute });
271
- /**
272
- * The number of page links to show.
273
- */
274
- this.maxSize = input(7, { ...(ngDevMode ? { debugName: "maxSize" } : /* istanbul ignore next */ {}), transform: numberAttribute });
275
- /**
276
- * Show the first and last page buttons.
277
- */
278
- this.showEdges = input(true, { ...(ngDevMode ? { debugName: "showEdges" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
279
- /**
280
- * The page sizes to show.
281
- * Defaults to [10, 20, 50, 100]
282
- */
283
- this.pageSizes = input([10, 20, 50, 100], ...(ngDevMode ? [{ debugName: "pageSizes" }] : /* istanbul ignore next */ []));
284
- this._pageSizesWithCurrent = computed(() => {
285
- const pageSizes = this.pageSizes();
286
- return pageSizes.includes(this.itemsPerPage())
287
- ? pageSizes // if current page size is included, return the same array
288
- : [...pageSizes, this.itemsPerPage()].sort((a, b) => a - b); // otherwise, add current page size and sort the array
289
- }, ...(ngDevMode ? [{ debugName: "_pageSizesWithCurrent" }] : /* istanbul ignore next */ []));
290
- this._isFirstPageActive = computed(() => this.currentPage() === 1, ...(ngDevMode ? [{ debugName: "_isFirstPageActive" }] : /* istanbul ignore next */ []));
291
- this._isLastPageActive = computed(() => this.currentPage() === this._lastPageNumber(), ...(ngDevMode ? [{ debugName: "_isLastPageActive" }] : /* istanbul ignore next */ []));
292
- this._lastPageNumber = computed(() => {
293
- if (this.totalItems() < 1) {
294
- // when there are 0 or fewer (an error case) items, there are no "pages" as such,
295
- // but it makes sense to consider a single, empty page as the last page.
296
- return 1;
297
- }
298
- return Math.ceil(this.totalItems() / this.itemsPerPage());
299
- }, ...(ngDevMode ? [{ debugName: "_lastPageNumber" }] : /* istanbul ignore next */ []));
300
- this._pages = computed(() => {
301
- const correctedCurrentPage = outOfBoundCorrection(this.totalItems(), this.itemsPerPage(), this.currentPage());
302
- if (correctedCurrentPage !== this.currentPage()) {
303
- // update the current page
304
- untracked(() => this.currentPage.set(correctedCurrentPage));
305
- }
306
- return createPageArray(correctedCurrentPage, this.itemsPerPage(), this.totalItems(), this.maxSize());
307
- }, ...(ngDevMode ? [{ debugName: "_pages" }] : /* istanbul ignore next */ []));
308
- }
309
- goToPrevious() {
310
- this.currentPage.set(this.currentPage() - 1);
311
- }
312
- goToNext() {
313
- this.currentPage.set(this.currentPage() + 1);
314
- }
315
- goToFirst() {
316
- this.currentPage.set(1);
317
- }
318
- goToLast() {
319
- this.currentPage.set(this._lastPageNumber());
320
- }
321
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmNumberedPagination, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
322
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: HlmNumberedPagination, isStandalone: true, selector: "hlm-numbered-pagination", inputs: { currentPage: { classPropertyName: "currentPage", publicName: "currentPage", isSignal: true, isRequired: true, transformFunction: null }, itemsPerPage: { classPropertyName: "itemsPerPage", publicName: "itemsPerPage", isSignal: true, isRequired: true, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: true, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, showEdges: { classPropertyName: "showEdges", publicName: "showEdges", isSignal: true, isRequired: false, transformFunction: null }, pageSizes: { classPropertyName: "pageSizes", publicName: "pageSizes", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { currentPage: "currentPageChange", itemsPerPage: "itemsPerPageChange" }, ngImport: i0, template: `
769
+ `
770
+ }]
771
+ }],
772
+ propDecorators: {
773
+ userClass: [{
774
+ type: i0.Input,
775
+ args: [{
776
+ isSignal: true,
777
+ alias: "class",
778
+ required: false
779
+ }]
780
+ }],
781
+ link: [{
782
+ type: i0.Input,
783
+ args: [{
784
+ isSignal: true,
785
+ alias: "link",
786
+ required: false
787
+ }]
788
+ }],
789
+ queryParams: [{
790
+ type: i0.Input,
791
+ args: [{
792
+ isSignal: true,
793
+ alias: "queryParams",
794
+ required: false
795
+ }]
796
+ }],
797
+ queryParamsHandling: [{
798
+ type: i0.Input,
799
+ args: [{
800
+ isSignal: true,
801
+ alias: "queryParamsHandling",
802
+ required: false
803
+ }]
804
+ }],
805
+ ariaLabel: [{
806
+ type: i0.Input,
807
+ args: [{
808
+ isSignal: true,
809
+ alias: "aria-label",
810
+ required: false
811
+ }]
812
+ }],
813
+ text: [{
814
+ type: i0.Input,
815
+ args: [{
816
+ isSignal: true,
817
+ alias: "text",
818
+ required: false
819
+ }]
820
+ }],
821
+ iconOnly: [{
822
+ type: i0.Input,
823
+ args: [{
824
+ isSignal: true,
825
+ alias: "iconOnly",
826
+ required: false
827
+ }]
828
+ }]
829
+ }
830
+ });
831
+ var HlmNumberedPagination = class HlmNumberedPagination {
832
+ constructor() {
833
+ this.currentPage = model.required(...ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []);
834
+ this.itemsPerPage = model.required(...ngDevMode ? [{ debugName: "itemsPerPage" }] : /* istanbul ignore next */ []);
835
+ this.totalItems = input.required({
836
+ ...ngDevMode ? { debugName: "totalItems" } : /* istanbul ignore next */ {},
837
+ transform: numberAttribute
838
+ });
839
+ this.maxSize = input(7, {
840
+ ...ngDevMode ? { debugName: "maxSize" } : /* istanbul ignore next */ {},
841
+ transform: numberAttribute
842
+ });
843
+ this.showEdges = input(true, {
844
+ ...ngDevMode ? { debugName: "showEdges" } : /* istanbul ignore next */ {},
845
+ transform: booleanAttribute
846
+ });
847
+ this.pageSizes = input([
848
+ 10,
849
+ 20,
850
+ 50,
851
+ 100
852
+ ], ...ngDevMode ? [{ debugName: "pageSizes" }] : /* istanbul ignore next */ []);
853
+ this._pageSizesWithCurrent = computed(() => {
854
+ const pageSizes = this.pageSizes();
855
+ return pageSizes.includes(this.itemsPerPage()) ? pageSizes : [...pageSizes, this.itemsPerPage()].sort((a, b) => a - b);
856
+ }, ...ngDevMode ? [{ debugName: "_pageSizesWithCurrent" }] : /* istanbul ignore next */ []);
857
+ this._isFirstPageActive = computed(() => this.currentPage() === 1, ...ngDevMode ? [{ debugName: "_isFirstPageActive" }] : /* istanbul ignore next */ []);
858
+ this._isLastPageActive = computed(() => this.currentPage() === this._lastPageNumber(), ...ngDevMode ? [{ debugName: "_isLastPageActive" }] : /* istanbul ignore next */ []);
859
+ this._lastPageNumber = computed(() => {
860
+ if (this.totalItems() < 1) return 1;
861
+ return Math.ceil(this.totalItems() / this.itemsPerPage());
862
+ }, ...ngDevMode ? [{ debugName: "_lastPageNumber" }] : /* istanbul ignore next */ []);
863
+ this._pages = computed(() => {
864
+ const correctedCurrentPage = outOfBoundCorrection(this.totalItems(), this.itemsPerPage(), this.currentPage());
865
+ if (correctedCurrentPage !== this.currentPage()) untracked(() => this.currentPage.set(correctedCurrentPage));
866
+ return createPageArray(correctedCurrentPage, this.itemsPerPage(), this.totalItems(), this.maxSize());
867
+ }, ...ngDevMode ? [{ debugName: "_pages" }] : /* istanbul ignore next */ []);
868
+ }
869
+ goToPrevious() {
870
+ this.currentPage.set(this.currentPage() - 1);
871
+ }
872
+ goToNext() {
873
+ this.currentPage.set(this.currentPage() + 1);
874
+ }
875
+ goToFirst() {
876
+ this.currentPage.set(1);
877
+ }
878
+ goToLast() {
879
+ this.currentPage.set(this._lastPageNumber());
880
+ }
881
+ static {
882
+ this.ɵfac = i0.ɵɵngDeclareFactory({
883
+ minVersion: "12.0.0",
884
+ version: "22.2.4",
885
+ ngImport: i0,
886
+ type: HlmNumberedPagination,
887
+ deps: [],
888
+ target: i0.ɵɵFactoryTarget.Component
889
+ });
890
+ }
891
+ static {
892
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
893
+ minVersion: "17.0.0",
894
+ version: "22.2.4",
895
+ type: HlmNumberedPagination,
896
+ isStandalone: true,
897
+ selector: "hlm-numbered-pagination",
898
+ inputs: {
899
+ currentPage: {
900
+ classPropertyName: "currentPage",
901
+ publicName: "currentPage",
902
+ isSignal: true,
903
+ isRequired: true,
904
+ transformFunction: null
905
+ },
906
+ itemsPerPage: {
907
+ classPropertyName: "itemsPerPage",
908
+ publicName: "itemsPerPage",
909
+ isSignal: true,
910
+ isRequired: true,
911
+ transformFunction: null
912
+ },
913
+ totalItems: {
914
+ classPropertyName: "totalItems",
915
+ publicName: "totalItems",
916
+ isSignal: true,
917
+ isRequired: true,
918
+ transformFunction: null
919
+ },
920
+ maxSize: {
921
+ classPropertyName: "maxSize",
922
+ publicName: "maxSize",
923
+ isSignal: true,
924
+ isRequired: false,
925
+ transformFunction: null
926
+ },
927
+ showEdges: {
928
+ classPropertyName: "showEdges",
929
+ publicName: "showEdges",
930
+ isSignal: true,
931
+ isRequired: false,
932
+ transformFunction: null
933
+ },
934
+ pageSizes: {
935
+ classPropertyName: "pageSizes",
936
+ publicName: "pageSizes",
937
+ isSignal: true,
938
+ isRequired: false,
939
+ transformFunction: null
940
+ }
941
+ },
942
+ outputs: {
943
+ currentPage: "currentPageChange",
944
+ itemsPerPage: "itemsPerPageChange"
945
+ },
946
+ ngImport: i0,
947
+ template: `
323
948
  <div class="flex items-center justify-between gap-2 px-4 py-2">
324
949
  <div class="flex items-center gap-1 text-sm text-nowrap text-gray-600">
325
950
  <b>{{ totalItems() }}</b>
@@ -370,24 +995,137 @@ class HlmNumberedPagination {
370
995
  </hlm-select-content>
371
996
  </hlm-select>
372
997
  </div>
373
- `, isInline: true, dependencies: [{ kind: "directive", type: HlmPagination, selector: "[hlmPagination],hlm-pagination", inputs: ["aria-label"] }, { kind: "directive", type: HlmPaginationContent, selector: "ul[hlmPaginationContent]" }, { kind: "directive", type: HlmPaginationItem, selector: "li[hlmPaginationItem]" }, { kind: "component", type: HlmPaginationPrevious, selector: "hlm-pagination-previous", inputs: ["class", "link", "queryParams", "queryParamsHandling", "aria-label", "text", "iconOnly"] }, { kind: "component", type: HlmPaginationNext, selector: "hlm-pagination-next", inputs: ["class", "link", "queryParams", "queryParamsHandling", "aria-label", "text", "iconOnly"] }, { kind: "directive", type: HlmPaginationLink, selector: "[hlmPaginationLink]", inputs: ["isActive", "size", "link"] }, { kind: "component", type: HlmPaginationEllipsis, selector: "hlm-pagination-ellipsis", inputs: ["srOnlyText"] }, { kind: "directive", type: i1$1.HlmSelect, selector: "[hlmSelect],hlm-select" }, { kind: "component", type: i1$1.HlmSelectContent, selector: "hlm-select-content", inputs: ["showScroll"] }, { kind: "directive", type: i1$1.HlmSelectGroup, selector: "[hlmSelectGroup],hlm-select-group" }, { kind: "component", type: i1$1.HlmSelectItem, selector: "hlm-select-item" }, { kind: "directive", type: i1$1.HlmSelectPortal, selector: "[hlmSelectPortal]" }, { kind: "component", type: i1$1.HlmSelectTrigger, selector: "hlm-select-trigger", inputs: ["class", "buttonId", "size", "forceInvalid"] }, { kind: "directive", type: i1$1.HlmSelectValue, selector: "[hlmSelectValue],hlm-select-value" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
374
- }
375
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmNumberedPagination, decorators: [{
376
- type: Component,
377
- args: [{
378
- selector: 'hlm-numbered-pagination',
379
- imports: [
380
- HlmPagination,
381
- HlmPaginationContent,
382
- HlmPaginationItem,
383
- HlmPaginationPrevious,
384
- HlmPaginationNext,
385
- HlmPaginationLink,
386
- HlmPaginationEllipsis,
387
- HlmSelectImports,
388
- ],
389
- changeDetection: ChangeDetectionStrategy.OnPush,
390
- template: `
998
+ `,
999
+ isInline: true,
1000
+ dependencies: [
1001
+ {
1002
+ kind: "directive",
1003
+ type: HlmPagination,
1004
+ selector: "[hlmPagination],hlm-pagination",
1005
+ inputs: ["aria-label"]
1006
+ },
1007
+ {
1008
+ kind: "directive",
1009
+ type: HlmPaginationContent,
1010
+ selector: "ul[hlmPaginationContent]"
1011
+ },
1012
+ {
1013
+ kind: "directive",
1014
+ type: HlmPaginationItem,
1015
+ selector: "li[hlmPaginationItem]"
1016
+ },
1017
+ {
1018
+ kind: "component",
1019
+ type: HlmPaginationPrevious,
1020
+ selector: "hlm-pagination-previous",
1021
+ inputs: [
1022
+ "class",
1023
+ "link",
1024
+ "queryParams",
1025
+ "queryParamsHandling",
1026
+ "aria-label",
1027
+ "text",
1028
+ "iconOnly"
1029
+ ]
1030
+ },
1031
+ {
1032
+ kind: "component",
1033
+ type: HlmPaginationNext,
1034
+ selector: "hlm-pagination-next",
1035
+ inputs: [
1036
+ "class",
1037
+ "link",
1038
+ "queryParams",
1039
+ "queryParamsHandling",
1040
+ "aria-label",
1041
+ "text",
1042
+ "iconOnly"
1043
+ ]
1044
+ },
1045
+ {
1046
+ kind: "directive",
1047
+ type: HlmPaginationLink,
1048
+ selector: "[hlmPaginationLink]",
1049
+ inputs: [
1050
+ "isActive",
1051
+ "size",
1052
+ "link"
1053
+ ]
1054
+ },
1055
+ {
1056
+ kind: "component",
1057
+ type: HlmPaginationEllipsis,
1058
+ selector: "hlm-pagination-ellipsis",
1059
+ inputs: ["srOnlyText"]
1060
+ },
1061
+ {
1062
+ kind: "directive",
1063
+ type: i1.HlmSelect,
1064
+ selector: "[hlmSelect],hlm-select"
1065
+ },
1066
+ {
1067
+ kind: "component",
1068
+ type: i1.HlmSelectContent,
1069
+ selector: "hlm-select-content",
1070
+ inputs: ["showScroll"]
1071
+ },
1072
+ {
1073
+ kind: "directive",
1074
+ type: i1.HlmSelectGroup,
1075
+ selector: "[hlmSelectGroup],hlm-select-group"
1076
+ },
1077
+ {
1078
+ kind: "component",
1079
+ type: i1.HlmSelectItem,
1080
+ selector: "hlm-select-item"
1081
+ },
1082
+ {
1083
+ kind: "directive",
1084
+ type: i1.HlmSelectPortal,
1085
+ selector: "[hlmSelectPortal]"
1086
+ },
1087
+ {
1088
+ kind: "component",
1089
+ type: i1.HlmSelectTrigger,
1090
+ selector: "hlm-select-trigger",
1091
+ inputs: [
1092
+ "class",
1093
+ "buttonId",
1094
+ "size",
1095
+ "forceInvalid"
1096
+ ]
1097
+ },
1098
+ {
1099
+ kind: "directive",
1100
+ type: i1.HlmSelectValue,
1101
+ selector: "[hlmSelectValue],hlm-select-value"
1102
+ }
1103
+ ],
1104
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1105
+ });
1106
+ }
1107
+ };
1108
+ i0.ɵɵngDeclareClassMetadata({
1109
+ minVersion: "12.0.0",
1110
+ version: "22.2.4",
1111
+ ngImport: i0,
1112
+ type: HlmNumberedPagination,
1113
+ decorators: [{
1114
+ type: Component,
1115
+ args: [{
1116
+ selector: "hlm-numbered-pagination",
1117
+ imports: [
1118
+ HlmPagination,
1119
+ HlmPaginationContent,
1120
+ HlmPaginationItem,
1121
+ HlmPaginationPrevious,
1122
+ HlmPaginationNext,
1123
+ HlmPaginationLink,
1124
+ HlmPaginationEllipsis,
1125
+ HlmSelectImports
1126
+ ],
1127
+ changeDetection: ChangeDetectionStrategy.OnPush,
1128
+ template: `
391
1129
  <div class="flex items-center justify-between gap-2 px-4 py-2">
392
1130
  <div class="flex items-center gap-1 text-sm text-nowrap text-gray-600">
393
1131
  <b>{{ totalItems() }}</b>
@@ -438,147 +1176,219 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
438
1176
  </hlm-select-content>
439
1177
  </hlm-select>
440
1178
  </div>
441
- `,
442
- }]
443
- }], propDecorators: { currentPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPage", required: true }] }, { type: i0.Output, args: ["currentPageChange"] }], itemsPerPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemsPerPage", required: true }] }, { type: i0.Output, args: ["itemsPerPageChange"] }], totalItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalItems", required: true }] }], maxSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSize", required: false }] }], showEdges: [{ type: i0.Input, args: [{ isSignal: true, alias: "showEdges", required: false }] }], pageSizes: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSizes", required: false }] }] } });
444
- /**
445
- * Checks that the instance.currentPage property is within bounds for the current page range.
446
- * If not, return a correct value for currentPage, or the current value if OK.
447
- *
448
- * Copied from 'ngx-pagination' package
449
- */
1179
+ `
1180
+ }]
1181
+ }],
1182
+ propDecorators: {
1183
+ currentPage: [{
1184
+ type: i0.Input,
1185
+ args: [{
1186
+ isSignal: true,
1187
+ alias: "currentPage",
1188
+ required: true
1189
+ }]
1190
+ }, {
1191
+ type: i0.Output,
1192
+ args: ["currentPageChange"]
1193
+ }],
1194
+ itemsPerPage: [{
1195
+ type: i0.Input,
1196
+ args: [{
1197
+ isSignal: true,
1198
+ alias: "itemsPerPage",
1199
+ required: true
1200
+ }]
1201
+ }, {
1202
+ type: i0.Output,
1203
+ args: ["itemsPerPageChange"]
1204
+ }],
1205
+ totalItems: [{
1206
+ type: i0.Input,
1207
+ args: [{
1208
+ isSignal: true,
1209
+ alias: "totalItems",
1210
+ required: true
1211
+ }]
1212
+ }],
1213
+ maxSize: [{
1214
+ type: i0.Input,
1215
+ args: [{
1216
+ isSignal: true,
1217
+ alias: "maxSize",
1218
+ required: false
1219
+ }]
1220
+ }],
1221
+ showEdges: [{
1222
+ type: i0.Input,
1223
+ args: [{
1224
+ isSignal: true,
1225
+ alias: "showEdges",
1226
+ required: false
1227
+ }]
1228
+ }],
1229
+ pageSizes: [{
1230
+ type: i0.Input,
1231
+ args: [{
1232
+ isSignal: true,
1233
+ alias: "pageSizes",
1234
+ required: false
1235
+ }]
1236
+ }]
1237
+ }
1238
+ });
450
1239
  function outOfBoundCorrection(totalItems, itemsPerPage, currentPage) {
451
- const totalPages = Math.ceil(totalItems / itemsPerPage);
452
- if (totalPages < currentPage && 0 < totalPages) {
453
- return totalPages;
454
- }
455
- if (currentPage < 1) {
456
- return 1;
457
- }
458
- return currentPage;
1240
+ const totalPages = Math.ceil(totalItems / itemsPerPage);
1241
+ if (totalPages < currentPage && 0 < totalPages) return totalPages;
1242
+ if (currentPage < 1) return 1;
1243
+ return currentPage;
459
1244
  }
460
- /**
461
- * Returns an array of Page objects to use in the pagination controls.
462
- *
463
- * Copied from 'ngx-pagination' package
464
- */
465
1245
  function createPageArray(currentPage, itemsPerPage, totalItems, paginationRange) {
466
- // paginationRange could be a string if passed from attribute, so cast to number.
467
- paginationRange = +paginationRange;
468
- const pages = [];
469
- // Return 1 as default page number
470
- // Make sense to show 1 instead of empty when there are no items
471
- const totalPages = Math.max(Math.ceil(totalItems / itemsPerPage), 1);
472
- const halfWay = Math.ceil(paginationRange / 2);
473
- const isStart = currentPage <= halfWay;
474
- const isEnd = totalPages - halfWay < currentPage;
475
- const isMiddle = !isStart && !isEnd;
476
- const ellipsesNeeded = paginationRange < totalPages;
477
- let i = 1;
478
- while (i <= totalPages && i <= paginationRange) {
479
- let label;
480
- const pageNumber = calculatePageNumber(i, currentPage, paginationRange, totalPages);
481
- const openingEllipsesNeeded = i === 2 && (isMiddle || isEnd);
482
- const closingEllipsesNeeded = i === paginationRange - 1 && (isMiddle || isStart);
483
- if (ellipsesNeeded && (openingEllipsesNeeded || closingEllipsesNeeded)) {
484
- label = '...';
485
- }
486
- else {
487
- label = pageNumber;
488
- }
489
- pages.push(label);
490
- i++;
491
- }
492
- return pages;
1246
+ paginationRange = +paginationRange;
1247
+ const pages = [];
1248
+ const totalPages = Math.max(Math.ceil(totalItems / itemsPerPage), 1);
1249
+ const halfWay = Math.ceil(paginationRange / 2);
1250
+ const isStart = currentPage <= halfWay;
1251
+ const isEnd = totalPages - halfWay < currentPage;
1252
+ const isMiddle = !isStart && !isEnd;
1253
+ const ellipsesNeeded = paginationRange < totalPages;
1254
+ let i = 1;
1255
+ while (i <= totalPages && i <= paginationRange) {
1256
+ let label;
1257
+ const pageNumber = calculatePageNumber(i, currentPage, paginationRange, totalPages);
1258
+ const openingEllipsesNeeded = i === 2 && (isMiddle || isEnd);
1259
+ const closingEllipsesNeeded = i === paginationRange - 1 && (isMiddle || isStart);
1260
+ if (ellipsesNeeded && (openingEllipsesNeeded || closingEllipsesNeeded)) label = "...";
1261
+ else label = pageNumber;
1262
+ pages.push(label);
1263
+ i++;
1264
+ }
1265
+ return pages;
493
1266
  }
494
- /**
495
- * Given the position in the sequence of pagination links [i],
496
- * figure out what page number corresponds to that position.
497
- *
498
- * Copied from 'ngx-pagination' package
499
- */
500
1267
  function calculatePageNumber(i, currentPage, paginationRange, totalPages) {
501
- const halfWay = Math.ceil(paginationRange / 2);
502
- if (i === paginationRange) {
503
- return totalPages;
504
- }
505
- if (i === 1) {
506
- return i;
507
- }
508
- if (paginationRange < totalPages) {
509
- if (totalPages - halfWay < currentPage) {
510
- return totalPages - paginationRange + i;
511
- }
512
- if (halfWay < currentPage) {
513
- return currentPage - halfWay + i;
514
- }
515
- return i;
516
- }
517
- return i;
1268
+ const halfWay = Math.ceil(paginationRange / 2);
1269
+ if (i === paginationRange) return totalPages;
1270
+ if (i === 1) return i;
1271
+ if (paginationRange < totalPages) {
1272
+ if (totalPages - halfWay < currentPage) return totalPages - paginationRange + i;
1273
+ if (halfWay < currentPage) return currentPage - halfWay + i;
1274
+ return i;
1275
+ }
1276
+ return i;
518
1277
  }
519
-
520
- class HlmNumberedPaginationQueryParams {
521
- constructor() {
522
- /**
523
- * The current (active) page.
524
- */
525
- this.currentPage = model.required(...(ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []));
526
- /**
527
- * The number of items per paginated page.
528
- */
529
- this.itemsPerPage = model.required(...(ngDevMode ? [{ debugName: "itemsPerPage" }] : /* istanbul ignore next */ []));
530
- /**
531
- * The total number of items in the collection. Only useful when
532
- * doing server-side paging, where the collection size is limited
533
- * to a single page returned by the server API.
534
- */
535
- this.totalItems = input.required({ ...(ngDevMode ? { debugName: "totalItems" } : /* istanbul ignore next */ {}), transform: numberAttribute });
536
- /**
537
- * The URL path to use for the pagination links.
538
- * Defaults to '.' (current path).
539
- */
540
- this.link = input('.', ...(ngDevMode ? [{ debugName: "link" }] : /* istanbul ignore next */ []));
541
- /**
542
- * The number of page links to show.
543
- */
544
- this.maxSize = input(7, { ...(ngDevMode ? { debugName: "maxSize" } : /* istanbul ignore next */ {}), transform: numberAttribute });
545
- /**
546
- * Show the first and last page buttons.
547
- */
548
- this.showEdges = input(true, { ...(ngDevMode ? { debugName: "showEdges" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
549
- /**
550
- * The page sizes to show.
551
- * Defaults to [10, 20, 50, 100]
552
- */
553
- this.pageSizes = input([10, 20, 50, 100], ...(ngDevMode ? [{ debugName: "pageSizes" }] : /* istanbul ignore next */ []));
554
- this._pageSizesWithCurrent = computed(() => {
555
- const pageSizes = this.pageSizes();
556
- return pageSizes.includes(this.itemsPerPage())
557
- ? pageSizes // if current page size is included, return the same array
558
- : [...pageSizes, this.itemsPerPage()].sort((a, b) => a - b); // otherwise, add current page size and sort the array
559
- }, ...(ngDevMode ? [{ debugName: "_pageSizesWithCurrent" }] : /* istanbul ignore next */ []));
560
- this._isFirstPageActive = computed(() => this.currentPage() === 1, ...(ngDevMode ? [{ debugName: "_isFirstPageActive" }] : /* istanbul ignore next */ []));
561
- this._isLastPageActive = computed(() => this.currentPage() === this._lastPageNumber(), ...(ngDevMode ? [{ debugName: "_isLastPageActive" }] : /* istanbul ignore next */ []));
562
- this._lastPageNumber = computed(() => {
563
- if (this.totalItems() < 1) {
564
- // when there are 0 or fewer (an error case) items, there are no "pages" as such,
565
- // but it makes sense to consider a single, empty page as the last page.
566
- return 1;
567
- }
568
- return Math.ceil(this.totalItems() / this.itemsPerPage());
569
- }, ...(ngDevMode ? [{ debugName: "_lastPageNumber" }] : /* istanbul ignore next */ []));
570
- this._pages = computed(() => {
571
- const correctedCurrentPage = outOfBoundCorrection(this.totalItems(), this.itemsPerPage(), this.currentPage());
572
- if (correctedCurrentPage !== this.currentPage()) {
573
- // update the current page
574
- untracked(() => this.currentPage.set(correctedCurrentPage));
575
- }
576
- return createPageArray(correctedCurrentPage, this.itemsPerPage(), this.totalItems(), this.maxSize());
577
- }, ...(ngDevMode ? [{ debugName: "_pages" }] : /* istanbul ignore next */ []));
578
- classes(() => 'flex items-center justify-between gap-2 px-4 py-2');
579
- }
580
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmNumberedPaginationQueryParams, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
581
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: HlmNumberedPaginationQueryParams, isStandalone: true, selector: "hlm-numbered-pagination-query-params", inputs: { currentPage: { classPropertyName: "currentPage", publicName: "currentPage", isSignal: true, isRequired: true, transformFunction: null }, itemsPerPage: { classPropertyName: "itemsPerPage", publicName: "itemsPerPage", isSignal: true, isRequired: true, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: true, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, showEdges: { classPropertyName: "showEdges", publicName: "showEdges", isSignal: true, isRequired: false, transformFunction: null }, pageSizes: { classPropertyName: "pageSizes", publicName: "pageSizes", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { currentPage: "currentPageChange", itemsPerPage: "itemsPerPageChange" }, ngImport: i0, template: `
1278
+ var HlmNumberedPaginationQueryParams = class HlmNumberedPaginationQueryParams {
1279
+ constructor() {
1280
+ this.currentPage = model.required(...ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []);
1281
+ this.itemsPerPage = model.required(...ngDevMode ? [{ debugName: "itemsPerPage" }] : /* istanbul ignore next */ []);
1282
+ this.totalItems = input.required({
1283
+ ...ngDevMode ? { debugName: "totalItems" } : /* istanbul ignore next */ {},
1284
+ transform: numberAttribute
1285
+ });
1286
+ this.link = input(".", ...ngDevMode ? [{ debugName: "link" }] : /* istanbul ignore next */ []);
1287
+ this.maxSize = input(7, {
1288
+ ...ngDevMode ? { debugName: "maxSize" } : /* istanbul ignore next */ {},
1289
+ transform: numberAttribute
1290
+ });
1291
+ this.showEdges = input(true, {
1292
+ ...ngDevMode ? { debugName: "showEdges" } : /* istanbul ignore next */ {},
1293
+ transform: booleanAttribute
1294
+ });
1295
+ this.pageSizes = input([
1296
+ 10,
1297
+ 20,
1298
+ 50,
1299
+ 100
1300
+ ], ...ngDevMode ? [{ debugName: "pageSizes" }] : /* istanbul ignore next */ []);
1301
+ this._pageSizesWithCurrent = computed(() => {
1302
+ const pageSizes = this.pageSizes();
1303
+ return pageSizes.includes(this.itemsPerPage()) ? pageSizes : [...pageSizes, this.itemsPerPage()].sort((a, b) => a - b);
1304
+ }, ...ngDevMode ? [{ debugName: "_pageSizesWithCurrent" }] : /* istanbul ignore next */ []);
1305
+ this._isFirstPageActive = computed(() => this.currentPage() === 1, ...ngDevMode ? [{ debugName: "_isFirstPageActive" }] : /* istanbul ignore next */ []);
1306
+ this._isLastPageActive = computed(() => this.currentPage() === this._lastPageNumber(), ...ngDevMode ? [{ debugName: "_isLastPageActive" }] : /* istanbul ignore next */ []);
1307
+ this._lastPageNumber = computed(() => {
1308
+ if (this.totalItems() < 1) return 1;
1309
+ return Math.ceil(this.totalItems() / this.itemsPerPage());
1310
+ }, ...ngDevMode ? [{ debugName: "_lastPageNumber" }] : /* istanbul ignore next */ []);
1311
+ this._pages = computed(() => {
1312
+ const correctedCurrentPage = outOfBoundCorrection(this.totalItems(), this.itemsPerPage(), this.currentPage());
1313
+ if (correctedCurrentPage !== this.currentPage()) untracked(() => this.currentPage.set(correctedCurrentPage));
1314
+ return createPageArray(correctedCurrentPage, this.itemsPerPage(), this.totalItems(), this.maxSize());
1315
+ }, ...ngDevMode ? [{ debugName: "_pages" }] : /* istanbul ignore next */ []);
1316
+ classes(() => "flex items-center justify-between gap-2 px-4 py-2");
1317
+ }
1318
+ static {
1319
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1320
+ minVersion: "12.0.0",
1321
+ version: "22.2.4",
1322
+ ngImport: i0,
1323
+ type: HlmNumberedPaginationQueryParams,
1324
+ deps: [],
1325
+ target: i0.ɵɵFactoryTarget.Component
1326
+ });
1327
+ }
1328
+ static {
1329
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1330
+ minVersion: "17.0.0",
1331
+ version: "22.2.4",
1332
+ type: HlmNumberedPaginationQueryParams,
1333
+ isStandalone: true,
1334
+ selector: "hlm-numbered-pagination-query-params",
1335
+ inputs: {
1336
+ currentPage: {
1337
+ classPropertyName: "currentPage",
1338
+ publicName: "currentPage",
1339
+ isSignal: true,
1340
+ isRequired: true,
1341
+ transformFunction: null
1342
+ },
1343
+ itemsPerPage: {
1344
+ classPropertyName: "itemsPerPage",
1345
+ publicName: "itemsPerPage",
1346
+ isSignal: true,
1347
+ isRequired: true,
1348
+ transformFunction: null
1349
+ },
1350
+ totalItems: {
1351
+ classPropertyName: "totalItems",
1352
+ publicName: "totalItems",
1353
+ isSignal: true,
1354
+ isRequired: true,
1355
+ transformFunction: null
1356
+ },
1357
+ link: {
1358
+ classPropertyName: "link",
1359
+ publicName: "link",
1360
+ isSignal: true,
1361
+ isRequired: false,
1362
+ transformFunction: null
1363
+ },
1364
+ maxSize: {
1365
+ classPropertyName: "maxSize",
1366
+ publicName: "maxSize",
1367
+ isSignal: true,
1368
+ isRequired: false,
1369
+ transformFunction: null
1370
+ },
1371
+ showEdges: {
1372
+ classPropertyName: "showEdges",
1373
+ publicName: "showEdges",
1374
+ isSignal: true,
1375
+ isRequired: false,
1376
+ transformFunction: null
1377
+ },
1378
+ pageSizes: {
1379
+ classPropertyName: "pageSizes",
1380
+ publicName: "pageSizes",
1381
+ isSignal: true,
1382
+ isRequired: false,
1383
+ transformFunction: null
1384
+ }
1385
+ },
1386
+ outputs: {
1387
+ currentPage: "currentPageChange",
1388
+ itemsPerPage: "itemsPerPageChange"
1389
+ },
1390
+ ngImport: i0,
1391
+ template: `
582
1392
  <div class="flex items-center gap-1 text-sm text-nowrap text-gray-600">
583
1393
  <b>{{ totalItems() }}</b>
584
1394
  total items |
@@ -641,24 +1451,137 @@ class HlmNumberedPaginationQueryParams {
641
1451
  </hlm-select-group>
642
1452
  </hlm-select-content>
643
1453
  </hlm-select>
644
- `, isInline: true, dependencies: [{ kind: "directive", type: HlmPagination, selector: "[hlmPagination],hlm-pagination", inputs: ["aria-label"] }, { kind: "directive", type: HlmPaginationContent, selector: "ul[hlmPaginationContent]" }, { kind: "directive", type: HlmPaginationItem, selector: "li[hlmPaginationItem]" }, { kind: "component", type: HlmPaginationPrevious, selector: "hlm-pagination-previous", inputs: ["class", "link", "queryParams", "queryParamsHandling", "aria-label", "text", "iconOnly"] }, { kind: "component", type: HlmPaginationNext, selector: "hlm-pagination-next", inputs: ["class", "link", "queryParams", "queryParamsHandling", "aria-label", "text", "iconOnly"] }, { kind: "directive", type: HlmPaginationLink, selector: "[hlmPaginationLink]", inputs: ["isActive", "size", "link"] }, { kind: "component", type: HlmPaginationEllipsis, selector: "hlm-pagination-ellipsis", inputs: ["srOnlyText"] }, { kind: "directive", type: i1$1.HlmSelect, selector: "[hlmSelect],hlm-select" }, { kind: "component", type: i1$1.HlmSelectContent, selector: "hlm-select-content", inputs: ["showScroll"] }, { kind: "directive", type: i1$1.HlmSelectGroup, selector: "[hlmSelectGroup],hlm-select-group" }, { kind: "component", type: i1$1.HlmSelectItem, selector: "hlm-select-item" }, { kind: "directive", type: i1$1.HlmSelectPortal, selector: "[hlmSelectPortal]" }, { kind: "component", type: i1$1.HlmSelectTrigger, selector: "hlm-select-trigger", inputs: ["class", "buttonId", "size", "forceInvalid"] }, { kind: "directive", type: i1$1.HlmSelectValue, selector: "[hlmSelectValue],hlm-select-value" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
645
- }
646
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmNumberedPaginationQueryParams, decorators: [{
647
- type: Component,
648
- args: [{
649
- selector: 'hlm-numbered-pagination-query-params',
650
- imports: [
651
- HlmPagination,
652
- HlmPaginationContent,
653
- HlmPaginationItem,
654
- HlmPaginationPrevious,
655
- HlmPaginationNext,
656
- HlmPaginationLink,
657
- HlmPaginationEllipsis,
658
- HlmSelectImports,
659
- ],
660
- changeDetection: ChangeDetectionStrategy.OnPush,
661
- template: `
1454
+ `,
1455
+ isInline: true,
1456
+ dependencies: [
1457
+ {
1458
+ kind: "directive",
1459
+ type: HlmPagination,
1460
+ selector: "[hlmPagination],hlm-pagination",
1461
+ inputs: ["aria-label"]
1462
+ },
1463
+ {
1464
+ kind: "directive",
1465
+ type: HlmPaginationContent,
1466
+ selector: "ul[hlmPaginationContent]"
1467
+ },
1468
+ {
1469
+ kind: "directive",
1470
+ type: HlmPaginationItem,
1471
+ selector: "li[hlmPaginationItem]"
1472
+ },
1473
+ {
1474
+ kind: "component",
1475
+ type: HlmPaginationPrevious,
1476
+ selector: "hlm-pagination-previous",
1477
+ inputs: [
1478
+ "class",
1479
+ "link",
1480
+ "queryParams",
1481
+ "queryParamsHandling",
1482
+ "aria-label",
1483
+ "text",
1484
+ "iconOnly"
1485
+ ]
1486
+ },
1487
+ {
1488
+ kind: "component",
1489
+ type: HlmPaginationNext,
1490
+ selector: "hlm-pagination-next",
1491
+ inputs: [
1492
+ "class",
1493
+ "link",
1494
+ "queryParams",
1495
+ "queryParamsHandling",
1496
+ "aria-label",
1497
+ "text",
1498
+ "iconOnly"
1499
+ ]
1500
+ },
1501
+ {
1502
+ kind: "directive",
1503
+ type: HlmPaginationLink,
1504
+ selector: "[hlmPaginationLink]",
1505
+ inputs: [
1506
+ "isActive",
1507
+ "size",
1508
+ "link"
1509
+ ]
1510
+ },
1511
+ {
1512
+ kind: "component",
1513
+ type: HlmPaginationEllipsis,
1514
+ selector: "hlm-pagination-ellipsis",
1515
+ inputs: ["srOnlyText"]
1516
+ },
1517
+ {
1518
+ kind: "directive",
1519
+ type: i1.HlmSelect,
1520
+ selector: "[hlmSelect],hlm-select"
1521
+ },
1522
+ {
1523
+ kind: "component",
1524
+ type: i1.HlmSelectContent,
1525
+ selector: "hlm-select-content",
1526
+ inputs: ["showScroll"]
1527
+ },
1528
+ {
1529
+ kind: "directive",
1530
+ type: i1.HlmSelectGroup,
1531
+ selector: "[hlmSelectGroup],hlm-select-group"
1532
+ },
1533
+ {
1534
+ kind: "component",
1535
+ type: i1.HlmSelectItem,
1536
+ selector: "hlm-select-item"
1537
+ },
1538
+ {
1539
+ kind: "directive",
1540
+ type: i1.HlmSelectPortal,
1541
+ selector: "[hlmSelectPortal]"
1542
+ },
1543
+ {
1544
+ kind: "component",
1545
+ type: i1.HlmSelectTrigger,
1546
+ selector: "hlm-select-trigger",
1547
+ inputs: [
1548
+ "class",
1549
+ "buttonId",
1550
+ "size",
1551
+ "forceInvalid"
1552
+ ]
1553
+ },
1554
+ {
1555
+ kind: "directive",
1556
+ type: i1.HlmSelectValue,
1557
+ selector: "[hlmSelectValue],hlm-select-value"
1558
+ }
1559
+ ],
1560
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1561
+ });
1562
+ }
1563
+ };
1564
+ i0.ɵɵngDeclareClassMetadata({
1565
+ minVersion: "12.0.0",
1566
+ version: "22.2.4",
1567
+ ngImport: i0,
1568
+ type: HlmNumberedPaginationQueryParams,
1569
+ decorators: [{
1570
+ type: Component,
1571
+ args: [{
1572
+ selector: "hlm-numbered-pagination-query-params",
1573
+ imports: [
1574
+ HlmPagination,
1575
+ HlmPaginationContent,
1576
+ HlmPaginationItem,
1577
+ HlmPaginationPrevious,
1578
+ HlmPaginationNext,
1579
+ HlmPaginationLink,
1580
+ HlmPaginationEllipsis,
1581
+ HlmSelectImports
1582
+ ],
1583
+ changeDetection: ChangeDetectionStrategy.OnPush,
1584
+ template: `
662
1585
  <div class="flex items-center gap-1 text-sm text-nowrap text-gray-600">
663
1586
  <b>{{ totalItems() }}</b>
664
1587
  total items |
@@ -721,25 +1644,86 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
721
1644
  </hlm-select-group>
722
1645
  </hlm-select-content>
723
1646
  </hlm-select>
724
- `,
725
- }]
726
- }], ctorParameters: () => [], propDecorators: { currentPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPage", required: true }] }, { type: i0.Output, args: ["currentPageChange"] }], itemsPerPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemsPerPage", required: true }] }, { type: i0.Output, args: ["itemsPerPageChange"] }], totalItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalItems", required: true }] }], link: [{ type: i0.Input, args: [{ isSignal: true, alias: "link", required: false }] }], maxSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSize", required: false }] }], showEdges: [{ type: i0.Input, args: [{ isSignal: true, alias: "showEdges", required: false }] }], pageSizes: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSizes", required: false }] }] } });
727
-
1647
+ `
1648
+ }]
1649
+ }],
1650
+ ctorParameters: () => [],
1651
+ propDecorators: {
1652
+ currentPage: [{
1653
+ type: i0.Input,
1654
+ args: [{
1655
+ isSignal: true,
1656
+ alias: "currentPage",
1657
+ required: true
1658
+ }]
1659
+ }, {
1660
+ type: i0.Output,
1661
+ args: ["currentPageChange"]
1662
+ }],
1663
+ itemsPerPage: [{
1664
+ type: i0.Input,
1665
+ args: [{
1666
+ isSignal: true,
1667
+ alias: "itemsPerPage",
1668
+ required: true
1669
+ }]
1670
+ }, {
1671
+ type: i0.Output,
1672
+ args: ["itemsPerPageChange"]
1673
+ }],
1674
+ totalItems: [{
1675
+ type: i0.Input,
1676
+ args: [{
1677
+ isSignal: true,
1678
+ alias: "totalItems",
1679
+ required: true
1680
+ }]
1681
+ }],
1682
+ link: [{
1683
+ type: i0.Input,
1684
+ args: [{
1685
+ isSignal: true,
1686
+ alias: "link",
1687
+ required: false
1688
+ }]
1689
+ }],
1690
+ maxSize: [{
1691
+ type: i0.Input,
1692
+ args: [{
1693
+ isSignal: true,
1694
+ alias: "maxSize",
1695
+ required: false
1696
+ }]
1697
+ }],
1698
+ showEdges: [{
1699
+ type: i0.Input,
1700
+ args: [{
1701
+ isSignal: true,
1702
+ alias: "showEdges",
1703
+ required: false
1704
+ }]
1705
+ }],
1706
+ pageSizes: [{
1707
+ type: i0.Input,
1708
+ args: [{
1709
+ isSignal: true,
1710
+ alias: "pageSizes",
1711
+ required: false
1712
+ }]
1713
+ }]
1714
+ }
1715
+ });
728
1716
  const HlmPaginationImports = [
729
- HlmPagination,
730
- HlmPaginationContent,
731
- HlmPaginationItem,
732
- HlmPaginationLink,
733
- HlmPaginationPrevious,
734
- HlmPaginationNext,
735
- HlmPaginationEllipsis,
736
- HlmNumberedPagination,
737
- HlmNumberedPaginationQueryParams,
1717
+ HlmPagination,
1718
+ HlmPaginationContent,
1719
+ HlmPaginationItem,
1720
+ HlmPaginationLink,
1721
+ HlmPaginationPrevious,
1722
+ HlmPaginationNext,
1723
+ HlmPaginationEllipsis,
1724
+ HlmNumberedPagination,
1725
+ HlmNumberedPaginationQueryParams
738
1726
  ];
739
-
740
- /**
741
- * Generated bundle index. Do not edit.
742
- */
743
-
744
1727
  export { HlmNumberedPagination, HlmNumberedPaginationQueryParams, HlmPagination, HlmPaginationContent, HlmPaginationEllipsis, HlmPaginationImports, HlmPaginationItem, HlmPaginationLink, HlmPaginationNext, HlmPaginationPrevious, createPageArray, outOfBoundCorrection };
745
- //# sourceMappingURL=yukit-web-helm-pagination.mjs.map
1728
+
1729
+ //# sourceMappingURL=yukit-web-helm-pagination.mjs.map