@4sh/ui-kit 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +7 -0
  3. package/README.md +229 -0
  4. package/fesm2022/4sh-ui-kit-forms.mjs +501 -0
  5. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -0
  6. package/fesm2022/4sh-ui-kit-motion.mjs +155 -0
  7. package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -0
  8. package/fesm2022/4sh-ui-kit-overlay.mjs +61 -0
  9. package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -0
  10. package/fesm2022/4sh-ui-kit-theming.mjs +120 -0
  11. package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -0
  12. package/fesm2022/4sh-ui-kit-types.mjs +12 -0
  13. package/fesm2022/4sh-ui-kit-types.mjs.map +1 -0
  14. package/fesm2022/4sh-ui-kit-ui-accordion.mjs +244 -0
  15. package/fesm2022/4sh-ui-kit-ui-accordion.mjs.map +1 -0
  16. package/fesm2022/4sh-ui-kit-ui-alert.mjs +160 -0
  17. package/fesm2022/4sh-ui-kit-ui-alert.mjs.map +1 -0
  18. package/fesm2022/4sh-ui-kit-ui-autocomplete.mjs +926 -0
  19. package/fesm2022/4sh-ui-kit-ui-autocomplete.mjs.map +1 -0
  20. package/fesm2022/4sh-ui-kit-ui-avatar-group.mjs +34 -0
  21. package/fesm2022/4sh-ui-kit-ui-avatar-group.mjs.map +1 -0
  22. package/fesm2022/4sh-ui-kit-ui-avatar.mjs +122 -0
  23. package/fesm2022/4sh-ui-kit-ui-avatar.mjs.map +1 -0
  24. package/fesm2022/4sh-ui-kit-ui-badge.mjs +95 -0
  25. package/fesm2022/4sh-ui-kit-ui-badge.mjs.map +1 -0
  26. package/fesm2022/4sh-ui-kit-ui-breadcrumb.mjs +190 -0
  27. package/fesm2022/4sh-ui-kit-ui-breadcrumb.mjs.map +1 -0
  28. package/fesm2022/4sh-ui-kit-ui-button-split.mjs +151 -0
  29. package/fesm2022/4sh-ui-kit-ui-button-split.mjs.map +1 -0
  30. package/fesm2022/4sh-ui-kit-ui-button.mjs +222 -0
  31. package/fesm2022/4sh-ui-kit-ui-button.mjs.map +1 -0
  32. package/fesm2022/4sh-ui-kit-ui-card.mjs +164 -0
  33. package/fesm2022/4sh-ui-kit-ui-card.mjs.map +1 -0
  34. package/fesm2022/4sh-ui-kit-ui-checkbox.mjs +118 -0
  35. package/fesm2022/4sh-ui-kit-ui-checkbox.mjs.map +1 -0
  36. package/fesm2022/4sh-ui-kit-ui-chip.mjs +205 -0
  37. package/fesm2022/4sh-ui-kit-ui-chip.mjs.map +1 -0
  38. package/fesm2022/4sh-ui-kit-ui-context-menu.mjs +219 -0
  39. package/fesm2022/4sh-ui-kit-ui-context-menu.mjs.map +1 -0
  40. package/fesm2022/4sh-ui-kit-ui-datepicker.mjs +1508 -0
  41. package/fesm2022/4sh-ui-kit-ui-datepicker.mjs.map +1 -0
  42. package/fesm2022/4sh-ui-kit-ui-drawer.mjs +300 -0
  43. package/fesm2022/4sh-ui-kit-ui-drawer.mjs.map +1 -0
  44. package/fesm2022/4sh-ui-kit-ui-empty-state.mjs +148 -0
  45. package/fesm2022/4sh-ui-kit-ui-empty-state.mjs.map +1 -0
  46. package/fesm2022/4sh-ui-kit-ui-field.mjs +102 -0
  47. package/fesm2022/4sh-ui-kit-ui-field.mjs.map +1 -0
  48. package/fesm2022/4sh-ui-kit-ui-file-upload.mjs +568 -0
  49. package/fesm2022/4sh-ui-kit-ui-file-upload.mjs.map +1 -0
  50. package/fesm2022/4sh-ui-kit-ui-helper.mjs +85 -0
  51. package/fesm2022/4sh-ui-kit-ui-helper.mjs.map +1 -0
  52. package/fesm2022/4sh-ui-kit-ui-icon.mjs +98 -0
  53. package/fesm2022/4sh-ui-kit-ui-icon.mjs.map +1 -0
  54. package/fesm2022/4sh-ui-kit-ui-image.mjs +201 -0
  55. package/fesm2022/4sh-ui-kit-ui-image.mjs.map +1 -0
  56. package/fesm2022/4sh-ui-kit-ui-input-group.mjs +119 -0
  57. package/fesm2022/4sh-ui-kit-ui-input-group.mjs.map +1 -0
  58. package/fesm2022/4sh-ui-kit-ui-input-mask.mjs +125 -0
  59. package/fesm2022/4sh-ui-kit-ui-input-mask.mjs.map +1 -0
  60. package/fesm2022/4sh-ui-kit-ui-input-number.mjs +234 -0
  61. package/fesm2022/4sh-ui-kit-ui-input-number.mjs.map +1 -0
  62. package/fesm2022/4sh-ui-kit-ui-input-otp.mjs +288 -0
  63. package/fesm2022/4sh-ui-kit-ui-input-otp.mjs.map +1 -0
  64. package/fesm2022/4sh-ui-kit-ui-input-tags.mjs +679 -0
  65. package/fesm2022/4sh-ui-kit-ui-input-tags.mjs.map +1 -0
  66. package/fesm2022/4sh-ui-kit-ui-input.mjs +121 -0
  67. package/fesm2022/4sh-ui-kit-ui-input.mjs.map +1 -0
  68. package/fesm2022/4sh-ui-kit-ui-label.mjs +61 -0
  69. package/fesm2022/4sh-ui-kit-ui-label.mjs.map +1 -0
  70. package/fesm2022/4sh-ui-kit-ui-link.mjs +147 -0
  71. package/fesm2022/4sh-ui-kit-ui-link.mjs.map +1 -0
  72. package/fesm2022/4sh-ui-kit-ui-menu.mjs +484 -0
  73. package/fesm2022/4sh-ui-kit-ui-menu.mjs.map +1 -0
  74. package/fesm2022/4sh-ui-kit-ui-modal.mjs +555 -0
  75. package/fesm2022/4sh-ui-kit-ui-modal.mjs.map +1 -0
  76. package/fesm2022/4sh-ui-kit-ui-nudger.mjs +168 -0
  77. package/fesm2022/4sh-ui-kit-ui-nudger.mjs.map +1 -0
  78. package/fesm2022/4sh-ui-kit-ui-paginator.mjs +245 -0
  79. package/fesm2022/4sh-ui-kit-ui-paginator.mjs.map +1 -0
  80. package/fesm2022/4sh-ui-kit-ui-popover.mjs +296 -0
  81. package/fesm2022/4sh-ui-kit-ui-popover.mjs.map +1 -0
  82. package/fesm2022/4sh-ui-kit-ui-progress-bar.mjs +124 -0
  83. package/fesm2022/4sh-ui-kit-ui-progress-bar.mjs.map +1 -0
  84. package/fesm2022/4sh-ui-kit-ui-radio.mjs +92 -0
  85. package/fesm2022/4sh-ui-kit-ui-radio.mjs.map +1 -0
  86. package/fesm2022/4sh-ui-kit-ui-rating.mjs +185 -0
  87. package/fesm2022/4sh-ui-kit-ui-rating.mjs.map +1 -0
  88. package/fesm2022/4sh-ui-kit-ui-read-only.mjs +146 -0
  89. package/fesm2022/4sh-ui-kit-ui-read-only.mjs.map +1 -0
  90. package/fesm2022/4sh-ui-kit-ui-segment-control.mjs +386 -0
  91. package/fesm2022/4sh-ui-kit-ui-segment-control.mjs.map +1 -0
  92. package/fesm2022/4sh-ui-kit-ui-select.mjs +868 -0
  93. package/fesm2022/4sh-ui-kit-ui-select.mjs.map +1 -0
  94. package/fesm2022/4sh-ui-kit-ui-separator.mjs +77 -0
  95. package/fesm2022/4sh-ui-kit-ui-separator.mjs.map +1 -0
  96. package/fesm2022/4sh-ui-kit-ui-sidebar.mjs +577 -0
  97. package/fesm2022/4sh-ui-kit-ui-sidebar.mjs.map +1 -0
  98. package/fesm2022/4sh-ui-kit-ui-skeleton.mjs +81 -0
  99. package/fesm2022/4sh-ui-kit-ui-skeleton.mjs.map +1 -0
  100. package/fesm2022/4sh-ui-kit-ui-slider.mjs +340 -0
  101. package/fesm2022/4sh-ui-kit-ui-slider.mjs.map +1 -0
  102. package/fesm2022/4sh-ui-kit-ui-spinner.mjs +132 -0
  103. package/fesm2022/4sh-ui-kit-ui-spinner.mjs.map +1 -0
  104. package/fesm2022/4sh-ui-kit-ui-stepper.mjs +389 -0
  105. package/fesm2022/4sh-ui-kit-ui-stepper.mjs.map +1 -0
  106. package/fesm2022/4sh-ui-kit-ui-table.mjs +1406 -0
  107. package/fesm2022/4sh-ui-kit-ui-table.mjs.map +1 -0
  108. package/fesm2022/4sh-ui-kit-ui-tabs.mjs +503 -0
  109. package/fesm2022/4sh-ui-kit-ui-tabs.mjs.map +1 -0
  110. package/fesm2022/4sh-ui-kit-ui-tag.mjs +84 -0
  111. package/fesm2022/4sh-ui-kit-ui-tag.mjs.map +1 -0
  112. package/fesm2022/4sh-ui-kit-ui-textarea.mjs +119 -0
  113. package/fesm2022/4sh-ui-kit-ui-textarea.mjs.map +1 -0
  114. package/fesm2022/4sh-ui-kit-ui-toast.mjs +424 -0
  115. package/fesm2022/4sh-ui-kit-ui-toast.mjs.map +1 -0
  116. package/fesm2022/4sh-ui-kit-ui-toggle.mjs +120 -0
  117. package/fesm2022/4sh-ui-kit-ui-toggle.mjs.map +1 -0
  118. package/fesm2022/4sh-ui-kit-ui-tooltip.mjs +445 -0
  119. package/fesm2022/4sh-ui-kit-ui-tooltip.mjs.map +1 -0
  120. package/fesm2022/4sh-ui-kit.mjs +16 -0
  121. package/fesm2022/4sh-ui-kit.mjs.map +1 -0
  122. package/package.json +287 -0
  123. package/styles/base/_base.scss +19 -0
  124. package/styles/base/_motion.scss +144 -0
  125. package/styles/base/_typography.scss +99 -0
  126. package/styles/generated/_tokens-breakpoint.scss +8 -0
  127. package/styles/generated/_tokens-metrics.scss +37 -0
  128. package/styles/generated/_tokens-primitives.scss +284 -0
  129. package/styles/generated/_tokens-responsive.scss +99 -0
  130. package/styles/generated/_tokens-semantics.scss +1274 -0
  131. package/styles/generated/_tokens-styles.scss +35 -0
  132. package/styles/generated/_tokens-transitions.scss +11 -0
  133. package/styles/generated/_tokens-typography.scss +14 -0
  134. package/styles/generated/_tokens.scss +10 -0
  135. package/styles/index.scss +25 -0
  136. package/styles/settings/_ui-config.scss +67 -0
  137. package/styles/utils/_functions.scss +67 -0
  138. package/styles/utils/_helpers.scss +129 -0
  139. package/styles/utils/_mixins.scss +186 -0
  140. package/styles/utils/_motion.scss +47 -0
  141. package/styles/utils/_overlay.scss +26 -0
  142. package/styles/utils.scss +15 -0
  143. package/styles.css +1 -0
  144. package/types/4sh-ui-kit-forms.d.ts +259 -0
  145. package/types/4sh-ui-kit-motion.d.ts +111 -0
  146. package/types/4sh-ui-kit-overlay.d.ts +31 -0
  147. package/types/4sh-ui-kit-theming.d.ts +54 -0
  148. package/types/4sh-ui-kit-types.d.ts +13 -0
  149. package/types/4sh-ui-kit-ui-accordion.d.ts +140 -0
  150. package/types/4sh-ui-kit-ui-alert.d.ts +89 -0
  151. package/types/4sh-ui-kit-ui-autocomplete.d.ts +411 -0
  152. package/types/4sh-ui-kit-ui-avatar-group.d.ts +17 -0
  153. package/types/4sh-ui-kit-ui-avatar.d.ts +55 -0
  154. package/types/4sh-ui-kit-ui-badge.d.ts +38 -0
  155. package/types/4sh-ui-kit-ui-breadcrumb.d.ts +131 -0
  156. package/types/4sh-ui-kit-ui-button-split.d.ts +102 -0
  157. package/types/4sh-ui-kit-ui-button.d.ts +91 -0
  158. package/types/4sh-ui-kit-ui-card.d.ts +102 -0
  159. package/types/4sh-ui-kit-ui-checkbox.d.ts +54 -0
  160. package/types/4sh-ui-kit-ui-chip.d.ts +114 -0
  161. package/types/4sh-ui-kit-ui-context-menu.d.ts +105 -0
  162. package/types/4sh-ui-kit-ui-datepicker.d.ts +539 -0
  163. package/types/4sh-ui-kit-ui-drawer.d.ts +147 -0
  164. package/types/4sh-ui-kit-ui-empty-state.d.ts +93 -0
  165. package/types/4sh-ui-kit-ui-field.d.ts +53 -0
  166. package/types/4sh-ui-kit-ui-file-upload.d.ts +268 -0
  167. package/types/4sh-ui-kit-ui-helper.d.ts +46 -0
  168. package/types/4sh-ui-kit-ui-icon.d.ts +69 -0
  169. package/types/4sh-ui-kit-ui-image.d.ts +88 -0
  170. package/types/4sh-ui-kit-ui-input-group.d.ts +54 -0
  171. package/types/4sh-ui-kit-ui-input-mask.d.ts +63 -0
  172. package/types/4sh-ui-kit-ui-input-number.d.ts +96 -0
  173. package/types/4sh-ui-kit-ui-input-otp.d.ts +130 -0
  174. package/types/4sh-ui-kit-ui-input-tags.d.ts +350 -0
  175. package/types/4sh-ui-kit-ui-input.d.ts +78 -0
  176. package/types/4sh-ui-kit-ui-label.d.ts +36 -0
  177. package/types/4sh-ui-kit-ui-link.d.ts +72 -0
  178. package/types/4sh-ui-kit-ui-menu.d.ts +235 -0
  179. package/types/4sh-ui-kit-ui-modal.d.ts +241 -0
  180. package/types/4sh-ui-kit-ui-nudger.d.ts +79 -0
  181. package/types/4sh-ui-kit-ui-paginator.d.ts +150 -0
  182. package/types/4sh-ui-kit-ui-popover.d.ts +125 -0
  183. package/types/4sh-ui-kit-ui-progress-bar.d.ts +82 -0
  184. package/types/4sh-ui-kit-ui-radio.d.ts +44 -0
  185. package/types/4sh-ui-kit-ui-rating.d.ts +90 -0
  186. package/types/4sh-ui-kit-ui-read-only.d.ts +70 -0
  187. package/types/4sh-ui-kit-ui-segment-control.d.ts +184 -0
  188. package/types/4sh-ui-kit-ui-select.d.ts +392 -0
  189. package/types/4sh-ui-kit-ui-separator.d.ts +43 -0
  190. package/types/4sh-ui-kit-ui-sidebar.d.ts +358 -0
  191. package/types/4sh-ui-kit-ui-skeleton.d.ts +52 -0
  192. package/types/4sh-ui-kit-ui-slider.d.ts +127 -0
  193. package/types/4sh-ui-kit-ui-spinner.d.ts +67 -0
  194. package/types/4sh-ui-kit-ui-stepper.d.ts +220 -0
  195. package/types/4sh-ui-kit-ui-table.d.ts +570 -0
  196. package/types/4sh-ui-kit-ui-tabs.d.ts +225 -0
  197. package/types/4sh-ui-kit-ui-tag.d.ts +46 -0
  198. package/types/4sh-ui-kit-ui-textarea.d.ts +61 -0
  199. package/types/4sh-ui-kit-ui-toast.d.ts +247 -0
  200. package/types/4sh-ui-kit-ui-toggle.d.ts +67 -0
  201. package/types/4sh-ui-kit-ui-tooltip.d.ts +167 -0
  202. package/types/4sh-ui-kit.d.ts +4 -0
@@ -0,0 +1,245 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, numberAttribute, model, booleanAttribute, output, contentChild, linkedSignal, computed, Component } from '@angular/core';
3
+ import { NgTemplateOutlet } from '@angular/common';
4
+ import * as i1 from '@angular/forms';
5
+ import { FormsModule } from '@angular/forms';
6
+ import { UiIcon } from '@4sh/ui-kit/ui-icon';
7
+ import { UiSelect } from '@4sh/ui-kit/ui-select';
8
+
9
+ /** @ignore Sentinel used in the page-item list to mark an ellipsis gap. */
10
+ const ELLIPSIS = -1;
11
+ /**
12
+ * ui-paginator — standalone pagination bar.
13
+ *
14
+ * Faithful to the Figma `ui-paginator` component: native `<button>` controls
15
+ * and page numbers styled straight with the `actions.low` tokens (current
16
+ * page in `actions.high`), 40px squircles (`--radius-default`), `ui-icon`
17
+ * chevrons, plus an `ui-select` rows-per-page choice. Used by `ui-table`,
18
+ * works standalone over any collection: bind `totalRecords`, `rows` and the
19
+ * two-way `first`.
20
+ *
21
+ * With `ellipsis`, long page lists collapse to `1 2 3 … 30 31 32`
22
+ * (`boundaryCount` pages on each edge + the current page neighborhood).
23
+ * The control icons and the page-link content are overridable via the
24
+ * `#firsticon` / `#previcon` / `#nexticon` / `#lasticon` / `#pagelink`
25
+ * templates.
26
+ */
27
+ class UiPaginator {
28
+ constructor() {
29
+ /** Total number of rows across all pages. */
30
+ this.totalRecords = input(0, { ...(ngDevMode ? { debugName: "totalRecords" } : /* istanbul ignore next */ {}), transform: numberAttribute });
31
+ /** Rows per page. Two-way bindable (updated by the rows-per-page select). */
32
+ this.rows = model(10, /* @ts-ignore */
33
+ ...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
34
+ /** Index of the first displayed row. Two-way bindable (programmatic pagination). */
35
+ this.first = model(0, /* @ts-ignore */
36
+ ...(ngDevMode ? [{ debugName: "first" }] : /* istanbul ignore next */ []));
37
+ /** Maximum number of page-number buttons (windowed mode, without `ellipsis`). */
38
+ this.pageLinks = input(5, { ...(ngDevMode ? { debugName: "pageLinks" } : /* istanbul ignore next */ {}), transform: numberAttribute });
39
+ /** Compact mode: `1 2 3 … 30 31 32` — edges + current-page neighborhood, `…` in the gaps. */
40
+ this.ellipsis = input(false, { ...(ngDevMode ? { debugName: "ellipsis" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
41
+ /** Pages always shown on each edge in `ellipsis` mode. */
42
+ this.boundaryCount = input(3, { ...(ngDevMode ? { debugName: "boundaryCount" } : /* istanbul ignore next */ {}), transform: numberAttribute });
43
+ /** Choices offered in the rows-per-page select (omit to hide it — Figma `selectPage`). */
44
+ this.rowsPerPageOptions = input(/* @ts-ignore */
45
+ ...(ngDevMode ? [undefined, { debugName: "rowsPerPageOptions" }] : /* istanbul ignore next */ []));
46
+ /** Shows the "first page" / "last page" edge controls. */
47
+ this.showFirstLastIcon = input(true, { ...(ngDevMode ? { debugName: "showFirstLastIcon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
48
+ /** Shows the page-number buttons (disable for a compact prev/next bar). */
49
+ this.showPageLinks = input(true, { ...(ngDevMode ? { debugName: "showPageLinks" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
50
+ /** Shows the current-page report (e.g. `1 - 10 sur 120`). */
51
+ this.showCurrentPageReport = input(false, { ...(ngDevMode ? { debugName: "showCurrentPageReport" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
52
+ /** Report pattern — placeholders: `{first}` `{last}` `{rows}` `{page}` `{pageCount}` `{totalRecords}`. */
53
+ this.currentPageReportTemplate = input('{first} - {last} sur {totalRecords}', /* @ts-ignore */
54
+ ...(ngDevMode ? [{ debugName: "currentPageReportTemplate" }] : /* istanbul ignore next */ []));
55
+ /** Disables every control. */
56
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
57
+ /** Accessible name of the navigation landmark. */
58
+ this.ariaLabel = input('Pagination', /* @ts-ignore */
59
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
60
+ /** Accessible name pattern of a page button (`{page}` is replaced). */
61
+ this.pageAriaLabel = input('Page {page}', /* @ts-ignore */
62
+ ...(ngDevMode ? [{ debugName: "pageAriaLabel" }] : /* istanbul ignore next */ []));
63
+ /** Accessible names of the edge / step controls. */
64
+ this.firstPageAriaLabel = input('Première page', /* @ts-ignore */
65
+ ...(ngDevMode ? [{ debugName: "firstPageAriaLabel" }] : /* istanbul ignore next */ []));
66
+ this.prevPageAriaLabel = input('Page précédente', /* @ts-ignore */
67
+ ...(ngDevMode ? [{ debugName: "prevPageAriaLabel" }] : /* istanbul ignore next */ []));
68
+ this.nextPageAriaLabel = input('Page suivante', /* @ts-ignore */
69
+ ...(ngDevMode ? [{ debugName: "nextPageAriaLabel" }] : /* istanbul ignore next */ []));
70
+ this.lastPageAriaLabel = input('Dernière page', /* @ts-ignore */
71
+ ...(ngDevMode ? [{ debugName: "lastPageAriaLabel" }] : /* istanbul ignore next */ []));
72
+ /** Accessible name of the rows-per-page select. */
73
+ this.rowsPerPageAriaLabel = input('Lignes par page', /* @ts-ignore */
74
+ ...(ngDevMode ? [{ debugName: "rowsPerPageAriaLabel" }] : /* istanbul ignore next */ []));
75
+ /** Emitted on any pagination change (navigation or rows-per-page). */
76
+ this.pageChange = output();
77
+ // --- Templates (projected) — override the default content of each element.
78
+ /** @ignore Icon of the "first page" control. */
79
+ this.firstIconTemplate = contentChild('firsticon', /* @ts-ignore */
80
+ ...(ngDevMode ? [{ debugName: "firstIconTemplate" }] : /* istanbul ignore next */ []));
81
+ /** @ignore Icon of the "previous page" control. */
82
+ this.prevIconTemplate = contentChild('previcon', /* @ts-ignore */
83
+ ...(ngDevMode ? [{ debugName: "prevIconTemplate" }] : /* istanbul ignore next */ []));
84
+ /** @ignore Icon of the "next page" control. */
85
+ this.nextIconTemplate = contentChild('nexticon', /* @ts-ignore */
86
+ ...(ngDevMode ? [{ debugName: "nextIconTemplate" }] : /* istanbul ignore next */ []));
87
+ /** @ignore Icon of the "last page" control. */
88
+ this.lastIconTemplate = contentChild('lasticon', /* @ts-ignore */
89
+ ...(ngDevMode ? [{ debugName: "lastIconTemplate" }] : /* istanbul ignore next */ []));
90
+ /** @ignore Content of a page-number button (context: number, page, active). */
91
+ this.pageLinkTemplate = contentChild('pagelink', /* @ts-ignore */
92
+ ...(ngDevMode ? [{ debugName: "pageLinkTemplate" }] : /* istanbul ignore next */ []));
93
+ /** @ignore Free content rendered before the controls (context: pagination state). */
94
+ this.startTemplate = contentChild('start', /* @ts-ignore */
95
+ ...(ngDevMode ? [{ debugName: "startTemplate" }] : /* istanbul ignore next */ []));
96
+ /** @ignore Free content rendered after the rows-per-page select (context: pagination state). */
97
+ this.endTemplate = contentChild('end', /* @ts-ignore */
98
+ ...(ngDevMode ? [{ debugName: "endTemplate" }] : /* istanbul ignore next */ []));
99
+ /** @ignore Rich current-page report (overrides `currentPageReportTemplate`). */
100
+ this.reportTemplate = contentChild('report', /* @ts-ignore */
101
+ ...(ngDevMode ? [{ debugName: "reportTemplate" }] : /* istanbul ignore next */ []));
102
+ /** @ignore Exposes the ellipsis sentinel to the template. */
103
+ this.ELLIPSIS = ELLIPSIS;
104
+ /** @ignore Rows-per-page kept locally so the select can drive it. */
105
+ this.rowsState = linkedSignal(() => Math.max(1, this.rows()), /* @ts-ignore */
106
+ ...(ngDevMode ? [{ debugName: "rowsState" }] : /* istanbul ignore next */ []));
107
+ /** @ignore */
108
+ this.pageCount = computed(() => Math.max(1, Math.ceil(this.totalRecords() / this.rowsState())), /* @ts-ignore */
109
+ ...(ngDevMode ? [{ debugName: "pageCount" }] : /* istanbul ignore next */ []));
110
+ /** @ignore `first` clamped to the dataset (data may shrink under the cursor). */
111
+ this.clampedFirst = computed(() => {
112
+ const maxFirst = (this.pageCount() - 1) * this.rowsState();
113
+ return Math.min(Math.max(0, this.first()), maxFirst);
114
+ }, /* @ts-ignore */
115
+ ...(ngDevMode ? [{ debugName: "clampedFirst" }] : /* istanbul ignore next */ []));
116
+ /** @ignore Zero-based current page. */
117
+ this.currentPage = computed(() => Math.floor(this.clampedFirst() / this.rowsState()), /* @ts-ignore */
118
+ ...(ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []));
119
+ /** @ignore Page items to render: zero-based page indexes, `ELLIPSIS` for a gap. */
120
+ this.pageItems = computed(() => {
121
+ const count = this.pageCount();
122
+ const current = this.currentPage();
123
+ if (!this.ellipsis()) {
124
+ // Windowed mode: `pageLinks` numbers centered on the current page.
125
+ const visible = Math.min(this.pageLinks(), count);
126
+ const start = Math.max(0, Math.min(current - Math.floor(visible / 2), count - visible));
127
+ return Array.from({ length: visible }, (_, i) => start + i);
128
+ }
129
+ // Compact mode: edges + current neighborhood, ellipsis in the gaps.
130
+ const boundary = Math.max(1, this.boundaryCount());
131
+ const pages = new Set();
132
+ for (let i = 0; i < Math.min(boundary, count); i++)
133
+ pages.add(i);
134
+ for (let i = Math.max(0, current - 1); i <= Math.min(count - 1, current + 1); i++)
135
+ pages.add(i);
136
+ for (let i = Math.max(0, count - boundary); i < count; i++)
137
+ pages.add(i);
138
+ const sorted = [...pages].sort((a, b) => a - b);
139
+ const items = [];
140
+ let previous = null;
141
+ for (const page of sorted) {
142
+ if (previous != null) {
143
+ // A single missing page is cheaper to show than an ellipsis.
144
+ if (page - previous === 2)
145
+ items.push(previous + 1);
146
+ else if (page - previous > 2)
147
+ items.push(ELLIPSIS);
148
+ }
149
+ items.push(page);
150
+ previous = page;
151
+ }
152
+ return items;
153
+ }, /* @ts-ignore */
154
+ ...(ngDevMode ? [{ debugName: "pageItems" }] : /* istanbul ignore next */ []));
155
+ /** @ignore Pagination snapshot (templates + report placeholders). */
156
+ this.state = computed(() => {
157
+ const total = this.totalRecords();
158
+ const rows = this.rowsState();
159
+ const first = this.clampedFirst();
160
+ return {
161
+ first: total === 0 ? 0 : first + 1,
162
+ last: Math.min(first + rows, total),
163
+ rows,
164
+ page: this.currentPage(),
165
+ pageCount: this.pageCount(),
166
+ totalRecords: total,
167
+ };
168
+ }, /* @ts-ignore */
169
+ ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
170
+ /** @ignore Context shared by the #start / #end / #report templates. */
171
+ this.stateContext = computed(() => ({ $implicit: this.state() }), /* @ts-ignore */
172
+ ...(ngDevMode ? [{ debugName: "stateContext" }] : /* istanbul ignore next */ []));
173
+ /** @ignore Report pattern with its placeholders resolved. */
174
+ this.reportText = computed(() => {
175
+ const state = this.state();
176
+ return this.currentPageReportTemplate()
177
+ .replace('{first}', String(state.first))
178
+ .replace('{last}', String(state.last))
179
+ .replace('{rows}', String(state.rows))
180
+ .replace('{page}', String(state.page + 1))
181
+ .replace('{pageCount}', String(state.pageCount))
182
+ .replace('{totalRecords}', String(state.totalRecords));
183
+ }, /* @ts-ignore */
184
+ ...(ngDevMode ? [{ debugName: "reportText" }] : /* istanbul ignore next */ []));
185
+ /** @ignore */
186
+ this.isFirstPage = computed(() => this.currentPage() === 0, /* @ts-ignore */
187
+ ...(ngDevMode ? [{ debugName: "isFirstPage" }] : /* istanbul ignore next */ []));
188
+ /** @ignore */
189
+ this.isLastPage = computed(() => this.currentPage() >= this.pageCount() - 1, /* @ts-ignore */
190
+ ...(ngDevMode ? [{ debugName: "isLastPage" }] : /* istanbul ignore next */ []));
191
+ }
192
+ /** @ignore */
193
+ goToPage(page) {
194
+ const target = Math.min(Math.max(0, page), this.pageCount() - 1);
195
+ const first = target * this.rowsState();
196
+ if (first === this.first())
197
+ return;
198
+ this.first.set(first);
199
+ this.emitPage();
200
+ }
201
+ /** @ignore */
202
+ onRowsPerPageChange(rows) {
203
+ const value = Number(rows);
204
+ if (!Number.isFinite(value) || value <= 0 || value === this.rowsState())
205
+ return;
206
+ this.rowsState.set(value);
207
+ this.rows.set(value);
208
+ this.first.set(0);
209
+ this.emitPage();
210
+ }
211
+ /** @ignore */
212
+ pageLabel(page) {
213
+ return this.pageAriaLabel().replace('{page}', String(page + 1));
214
+ }
215
+ /** @ignore */
216
+ pageLinkContext(page) {
217
+ return { $implicit: page + 1, page, active: page === this.currentPage() };
218
+ }
219
+ /** @ignore */
220
+ emitPage() {
221
+ this.pageChange.emit({
222
+ first: this.clampedFirst(),
223
+ rows: this.rowsState(),
224
+ page: this.currentPage(),
225
+ pageCount: this.pageCount(),
226
+ });
227
+ }
228
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiPaginator, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
229
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiPaginator, isStandalone: true, selector: "ui-paginator", inputs: { totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, pageLinks: { classPropertyName: "pageLinks", publicName: "pageLinks", isSignal: true, isRequired: false, transformFunction: null }, ellipsis: { classPropertyName: "ellipsis", publicName: "ellipsis", isSignal: true, isRequired: false, transformFunction: null }, boundaryCount: { classPropertyName: "boundaryCount", publicName: "boundaryCount", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, showFirstLastIcon: { classPropertyName: "showFirstLastIcon", publicName: "showFirstLastIcon", isSignal: true, isRequired: false, transformFunction: null }, showPageLinks: { classPropertyName: "showPageLinks", publicName: "showPageLinks", isSignal: true, isRequired: false, transformFunction: null }, showCurrentPageReport: { classPropertyName: "showCurrentPageReport", publicName: "showCurrentPageReport", isSignal: true, isRequired: false, transformFunction: null }, currentPageReportTemplate: { classPropertyName: "currentPageReportTemplate", publicName: "currentPageReportTemplate", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, pageAriaLabel: { classPropertyName: "pageAriaLabel", publicName: "pageAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, firstPageAriaLabel: { classPropertyName: "firstPageAriaLabel", publicName: "firstPageAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, prevPageAriaLabel: { classPropertyName: "prevPageAriaLabel", publicName: "prevPageAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, nextPageAriaLabel: { classPropertyName: "nextPageAriaLabel", publicName: "nextPageAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, lastPageAriaLabel: { classPropertyName: "lastPageAriaLabel", publicName: "lastPageAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageAriaLabel: { classPropertyName: "rowsPerPageAriaLabel", publicName: "rowsPerPageAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rows: "rowsChange", first: "firstChange", pageChange: "pageChange" }, queries: [{ propertyName: "firstIconTemplate", first: true, predicate: ["firsticon"], descendants: true, isSignal: true }, { propertyName: "prevIconTemplate", first: true, predicate: ["previcon"], descendants: true, isSignal: true }, { propertyName: "nextIconTemplate", first: true, predicate: ["nexticon"], descendants: true, isSignal: true }, { propertyName: "lastIconTemplate", first: true, predicate: ["lasticon"], descendants: true, isSignal: true }, { propertyName: "pageLinkTemplate", first: true, predicate: ["pagelink"], descendants: true, isSignal: true }, { propertyName: "startTemplate", first: true, predicate: ["start"], descendants: true, isSignal: true }, { propertyName: "endTemplate", first: true, predicate: ["end"], descendants: true, isSignal: true }, { propertyName: "reportTemplate", first: true, predicate: ["report"], descendants: true, isSignal: true }], ngImport: i0, template: "<nav class=\"ui-paginator\" [attr.aria-label]=\"ariaLabel()\">\n @if (startTemplate(); as tpl) {\n <div class=\"ui-paginator-start\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n </div>\n }\n\n <div class=\"ui-paginator-content\">\n @if (showCurrentPageReport()) {\n <span class=\"ui-paginator-report\">\n @if (reportTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else {\n {{ reportText() }}\n }\n </span>\n }\n\n @if (showFirstLastIcon()) {\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"firstPageAriaLabel()\"\n (click)=\"goToPage(0)\"\n >\n @if (firstIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"angles-left\" size=\"sm\" />\n }\n </button>\n }\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"prevPageAriaLabel()\"\n (click)=\"goToPage(currentPage() - 1)\"\n >\n @if (prevIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"chevron-left\" size=\"sm\" />\n }\n </button>\n\n @if (showPageLinks()) {\n <div class=\"ui-paginator-pages\">\n @for (item of pageItems(); track $index) {\n @if (item === ELLIPSIS) {\n <span class=\"ui-paginator-ellipsis\" aria-hidden=\"true\">&hellip;</span>\n } @else {\n <button\n type=\"button\"\n class=\"ui-paginator-page\"\n [class._current]=\"item === currentPage()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"pageLabel(item)\"\n [attr.aria-current]=\"item === currentPage() ? 'page' : null\"\n (click)=\"goToPage(item)\"\n >\n @if (pageLinkTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"pageLinkContext(item)\" />\n } @else {\n {{ item + 1 }}\n }\n </button>\n }\n }\n </div>\n }\n\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"nextPageAriaLabel()\"\n (click)=\"goToPage(currentPage() + 1)\"\n >\n @if (nextIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"chevron-right\" size=\"sm\" />\n }\n </button>\n @if (showFirstLastIcon()) {\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"lastPageAriaLabel()\"\n (click)=\"goToPage(pageCount() - 1)\"\n >\n @if (lastIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"angles-right\" size=\"sm\" />\n }\n </button>\n }\n </div>\n\n @if (rowsPerPageOptions()?.length) {\n <div class=\"ui-paginator-rows\">\n <ui-select\n size=\"small\"\n [options]=\"rowsPerPageOptions()!\"\n [ngModel]=\"rowsState()\"\n [disabled]=\"disabled()\"\n [ariaLabel]=\"rowsPerPageAriaLabel()\"\n (valueChange)=\"onRowsPerPageChange($event)\"\n />\n </div>\n }\n\n @if (endTemplate(); as tpl) {\n <div class=\"ui-paginator-end\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n </div>\n }\n</nav>\n", styles: [".ui-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--units-2xl);padding:var(--units-default)}.ui-paginator-content{display:flex;align-items:center;gap:var(--units-default)}.ui-paginator-control{display:inline-flex;align-items:center;justify-content:center;height:2rem;min-width:2rem;border:none;border-radius:var(--radius-default);background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-paginator-control:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-paginator-control:focus-visible{outline:none;background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:0 0 0 var(--units-2xs) var(--navigation-high-stroke-focused)}.ui-paginator-control:active:not(:disabled){background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-paginator-control:disabled{cursor:not-allowed}.ui-paginator-control{width:2rem;padding:0 var(--units-sm)}.ui-paginator-control:disabled{background-color:var(--navigation-high-surface-disabled);color:var(--navigation-high-content-disabled)}.ui-paginator-pages{display:flex;align-items:center;gap:var(--units-sm)}.ui-paginator-page{display:inline-flex;align-items:center;justify-content:center;height:2rem;min-width:2rem;border:none;border-radius:var(--radius-default);background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-paginator-page:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-paginator-page:focus-visible{outline:none;background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:0 0 0 var(--units-2xs) var(--navigation-high-stroke-focused)}.ui-paginator-page:active:not(:disabled){background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-paginator-page:disabled{cursor:not-allowed}.ui-paginator-page{padding:0 var(--units-md)}.ui-paginator-page:disabled{background-color:var(--actions-low-surface-disabled);color:var(--actions-low-content-disabled)}.ui-paginator-page._current,.ui-paginator-page._current:hover:not(:disabled),.ui-paginator-page._current:focus-visible,.ui-paginator-page._current:active:not(:disabled),.ui-paginator-page._current:disabled{background-color:var(--navigation-high-surface-active);color:var(--navigation-high-content-active)}.ui-paginator-report{display:inline-flex;align-items:center;color:var(--global-text-muted);font-size:var(--size-typography-text-md);white-space:nowrap}.ui-paginator-start,.ui-paginator-end{display:inline-flex;align-items:center;gap:var(--units-sm);color:var(--global-text-muted);font-size:var(--size-typography-text-md)}.ui-paginator-ellipsis{display:inline-flex;align-items:center;justify-content:center;height:2rem;min-width:2rem;color:var(--navigation-high-content-default);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);-webkit-user-select:none;user-select:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "component", type: UiSelect, selector: "ui-select", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "group", "optionGroupLabel", "optionGroupChildren", "dataKey", "multiple", "checkmark", "checkbox", "maxSelectedLabels", "overflowLabel", "placeholder", "showClear", "clearAriaLabel", "icon", "filter", "filterPlaceholder", "filterAriaLabel", "filterBy", "autofocusFilter", "resetFilterOnHide", "emptyMessage", "emptyFilterMessage", "editable", "loading", "autoOptionFocus", "selectOnFocus", "focusOnHover", "virtualScroll", "virtualScrollItemSize", "lazy", "scrollHeight", "autoFlip", "panelStyleClass", "panelWidth"], outputs: ["valueChange", "opened", "closed", "cleared", "filterChange", "lazyLoad", "inputFocus", "inputBlur"] }] }); }
230
+ }
231
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiPaginator, decorators: [{
232
+ type: Component,
233
+ args: [{ selector: 'ui-paginator', imports: [NgTemplateOutlet, FormsModule, UiIcon, UiSelect], template: "<nav class=\"ui-paginator\" [attr.aria-label]=\"ariaLabel()\">\n @if (startTemplate(); as tpl) {\n <div class=\"ui-paginator-start\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n </div>\n }\n\n <div class=\"ui-paginator-content\">\n @if (showCurrentPageReport()) {\n <span class=\"ui-paginator-report\">\n @if (reportTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else {\n {{ reportText() }}\n }\n </span>\n }\n\n @if (showFirstLastIcon()) {\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"firstPageAriaLabel()\"\n (click)=\"goToPage(0)\"\n >\n @if (firstIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"angles-left\" size=\"sm\" />\n }\n </button>\n }\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"prevPageAriaLabel()\"\n (click)=\"goToPage(currentPage() - 1)\"\n >\n @if (prevIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"chevron-left\" size=\"sm\" />\n }\n </button>\n\n @if (showPageLinks()) {\n <div class=\"ui-paginator-pages\">\n @for (item of pageItems(); track $index) {\n @if (item === ELLIPSIS) {\n <span class=\"ui-paginator-ellipsis\" aria-hidden=\"true\">&hellip;</span>\n } @else {\n <button\n type=\"button\"\n class=\"ui-paginator-page\"\n [class._current]=\"item === currentPage()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"pageLabel(item)\"\n [attr.aria-current]=\"item === currentPage() ? 'page' : null\"\n (click)=\"goToPage(item)\"\n >\n @if (pageLinkTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"pageLinkContext(item)\" />\n } @else {\n {{ item + 1 }}\n }\n </button>\n }\n }\n </div>\n }\n\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"nextPageAriaLabel()\"\n (click)=\"goToPage(currentPage() + 1)\"\n >\n @if (nextIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"chevron-right\" size=\"sm\" />\n }\n </button>\n @if (showFirstLastIcon()) {\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"lastPageAriaLabel()\"\n (click)=\"goToPage(pageCount() - 1)\"\n >\n @if (lastIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"angles-right\" size=\"sm\" />\n }\n </button>\n }\n </div>\n\n @if (rowsPerPageOptions()?.length) {\n <div class=\"ui-paginator-rows\">\n <ui-select\n size=\"small\"\n [options]=\"rowsPerPageOptions()!\"\n [ngModel]=\"rowsState()\"\n [disabled]=\"disabled()\"\n [ariaLabel]=\"rowsPerPageAriaLabel()\"\n (valueChange)=\"onRowsPerPageChange($event)\"\n />\n </div>\n }\n\n @if (endTemplate(); as tpl) {\n <div class=\"ui-paginator-end\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n </div>\n }\n</nav>\n", styles: [".ui-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--units-2xl);padding:var(--units-default)}.ui-paginator-content{display:flex;align-items:center;gap:var(--units-default)}.ui-paginator-control{display:inline-flex;align-items:center;justify-content:center;height:2rem;min-width:2rem;border:none;border-radius:var(--radius-default);background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-paginator-control:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-paginator-control:focus-visible{outline:none;background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:0 0 0 var(--units-2xs) var(--navigation-high-stroke-focused)}.ui-paginator-control:active:not(:disabled){background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-paginator-control:disabled{cursor:not-allowed}.ui-paginator-control{width:2rem;padding:0 var(--units-sm)}.ui-paginator-control:disabled{background-color:var(--navigation-high-surface-disabled);color:var(--navigation-high-content-disabled)}.ui-paginator-pages{display:flex;align-items:center;gap:var(--units-sm)}.ui-paginator-page{display:inline-flex;align-items:center;justify-content:center;height:2rem;min-width:2rem;border:none;border-radius:var(--radius-default);background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-paginator-page:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-paginator-page:focus-visible{outline:none;background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:0 0 0 var(--units-2xs) var(--navigation-high-stroke-focused)}.ui-paginator-page:active:not(:disabled){background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-paginator-page:disabled{cursor:not-allowed}.ui-paginator-page{padding:0 var(--units-md)}.ui-paginator-page:disabled{background-color:var(--actions-low-surface-disabled);color:var(--actions-low-content-disabled)}.ui-paginator-page._current,.ui-paginator-page._current:hover:not(:disabled),.ui-paginator-page._current:focus-visible,.ui-paginator-page._current:active:not(:disabled),.ui-paginator-page._current:disabled{background-color:var(--navigation-high-surface-active);color:var(--navigation-high-content-active)}.ui-paginator-report{display:inline-flex;align-items:center;color:var(--global-text-muted);font-size:var(--size-typography-text-md);white-space:nowrap}.ui-paginator-start,.ui-paginator-end{display:inline-flex;align-items:center;gap:var(--units-sm);color:var(--global-text-muted);font-size:var(--size-typography-text-md)}.ui-paginator-ellipsis{display:inline-flex;align-items:center;justify-content:center;height:2rem;min-width:2rem;color:var(--navigation-high-content-default);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);-webkit-user-select:none;user-select:none}\n"] }]
234
+ }], propDecorators: { totalRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalRecords", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }, { type: i0.Output, args: ["rowsChange"] }], first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }, { type: i0.Output, args: ["firstChange"] }], pageLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageLinks", required: false }] }], ellipsis: [{ type: i0.Input, args: [{ isSignal: true, alias: "ellipsis", required: false }] }], boundaryCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "boundaryCount", required: false }] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], showFirstLastIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFirstLastIcon", required: false }] }], showPageLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPageLinks", required: false }] }], showCurrentPageReport: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCurrentPageReport", required: false }] }], currentPageReportTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPageReportTemplate", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], pageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageAriaLabel", required: false }] }], firstPageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstPageAriaLabel", required: false }] }], prevPageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "prevPageAriaLabel", required: false }] }], nextPageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextPageAriaLabel", required: false }] }], lastPageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "lastPageAriaLabel", required: false }] }], rowsPerPageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageAriaLabel", required: false }] }], pageChange: [{ type: i0.Output, args: ["pageChange"] }], firstIconTemplate: [{ type: i0.ContentChild, args: ['firsticon', { isSignal: true }] }], prevIconTemplate: [{ type: i0.ContentChild, args: ['previcon', { isSignal: true }] }], nextIconTemplate: [{ type: i0.ContentChild, args: ['nexticon', { isSignal: true }] }], lastIconTemplate: [{ type: i0.ContentChild, args: ['lasticon', { isSignal: true }] }], pageLinkTemplate: [{ type: i0.ContentChild, args: ['pagelink', { isSignal: true }] }], startTemplate: [{ type: i0.ContentChild, args: ['start', { isSignal: true }] }], endTemplate: [{ type: i0.ContentChild, args: ['end', { isSignal: true }] }], reportTemplate: [{ type: i0.ContentChild, args: ['report', { isSignal: true }] }] } });
235
+
236
+ /*
237
+ * Public API Surface of ui-kit/ui-paginator
238
+ */
239
+
240
+ /**
241
+ * Generated bundle index. Do not edit.
242
+ */
243
+
244
+ export { UiPaginator };
245
+ //# sourceMappingURL=4sh-ui-kit-ui-paginator.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4sh-ui-kit-ui-paginator.mjs","sources":["../../../projects/ui-kit/ui-paginator/src/lib/ui-paginator.ts","../../../projects/ui-kit/ui-paginator/src/lib/ui-paginator.html","../../../projects/ui-kit/ui-paginator/src/public-api.ts","../../../projects/ui-kit/ui-paginator/src/4sh-ui-kit-ui-paginator.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n contentChild,\n input,\n linkedSignal,\n model,\n numberAttribute,\n output,\n TemplateRef,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { UiIcon } from '@4sh/ui-kit/ui-icon';\nimport { UiSelect } from '@4sh/ui-kit/ui-select';\n\n/** Payload of `pageChange`. */\nexport interface UiPaginatorPageEvent {\n /** Index of the first row of the page. */\n first: number;\n /** Rows per page. */\n rows: number;\n /** Zero-based page index. */\n page: number;\n pageCount: number;\n}\n\n/** Context handed to the `#pagelink` template. */\nexport interface UiPaginatorPageLinkContext {\n /** One-based page number (display value). */\n $implicit: number;\n /** Zero-based page index. */\n page: number;\n /** True for the current page. */\n active: boolean;\n}\n\n/** Pagination snapshot handed to the `#start` / `#end` / `#report` templates. */\nexport interface UiPaginatorState {\n /** One-based index of the first displayed row (0 when empty). */\n first: number;\n /** One-based index of the last displayed row. */\n last: number;\n rows: number;\n /** Zero-based current page. */\n page: number;\n pageCount: number;\n totalRecords: number;\n}\n\n/** @ignore Sentinel used in the page-item list to mark an ellipsis gap. */\nconst ELLIPSIS = -1;\n\n/**\n * ui-paginator — standalone pagination bar.\n *\n * Faithful to the Figma `ui-paginator` component: native `<button>` controls\n * and page numbers styled straight with the `actions.low` tokens (current\n * page in `actions.high`), 40px squircles (`--radius-default`), `ui-icon`\n * chevrons, plus an `ui-select` rows-per-page choice. Used by `ui-table`,\n * works standalone over any collection: bind `totalRecords`, `rows` and the\n * two-way `first`.\n *\n * With `ellipsis`, long page lists collapse to `1 2 3 … 30 31 32`\n * (`boundaryCount` pages on each edge + the current page neighborhood).\n * The control icons and the page-link content are overridable via the\n * `#firsticon` / `#previcon` / `#nexticon` / `#lasticon` / `#pagelink`\n * templates.\n */\n@Component({\n selector: 'ui-paginator',\n imports: [NgTemplateOutlet, FormsModule, UiIcon, UiSelect],\n templateUrl: './ui-paginator.html',\n styleUrl: './ui-paginator.scss',\n})\nexport class UiPaginator {\n /** Total number of rows across all pages. */\n totalRecords = input(0, { transform: numberAttribute });\n /** Rows per page. Two-way bindable (updated by the rows-per-page select). */\n rows = model(10);\n /** Index of the first displayed row. Two-way bindable (programmatic pagination). */\n first = model(0);\n /** Maximum number of page-number buttons (windowed mode, without `ellipsis`). */\n pageLinks = input(5, { transform: numberAttribute });\n /** Compact mode: `1 2 3 … 30 31 32` — edges + current-page neighborhood, `…` in the gaps. */\n ellipsis = input(false, { transform: booleanAttribute });\n /** Pages always shown on each edge in `ellipsis` mode. */\n boundaryCount = input(3, { transform: numberAttribute });\n /** Choices offered in the rows-per-page select (omit to hide it — Figma `selectPage`). */\n rowsPerPageOptions = input<number[]>();\n /** Shows the \"first page\" / \"last page\" edge controls. */\n showFirstLastIcon = input(true, { transform: booleanAttribute });\n /** Shows the page-number buttons (disable for a compact prev/next bar). */\n showPageLinks = input(true, { transform: booleanAttribute });\n /** Shows the current-page report (e.g. `1 - 10 sur 120`). */\n showCurrentPageReport = input(false, { transform: booleanAttribute });\n /** Report pattern — placeholders: `{first}` `{last}` `{rows}` `{page}` `{pageCount}` `{totalRecords}`. */\n currentPageReportTemplate = input<string>('{first} - {last} sur {totalRecords}');\n /** Disables every control. */\n disabled = input(false, { transform: booleanAttribute });\n /** Accessible name of the navigation landmark. */\n ariaLabel = input<string>('Pagination');\n /** Accessible name pattern of a page button (`{page}` is replaced). */\n pageAriaLabel = input<string>('Page {page}');\n /** Accessible names of the edge / step controls. */\n firstPageAriaLabel = input<string>('Première page');\n prevPageAriaLabel = input<string>('Page précédente');\n nextPageAriaLabel = input<string>('Page suivante');\n lastPageAriaLabel = input<string>('Dernière page');\n /** Accessible name of the rows-per-page select. */\n rowsPerPageAriaLabel = input<string>('Lignes par page');\n\n /** Emitted on any pagination change (navigation or rows-per-page). */\n pageChange = output<UiPaginatorPageEvent>();\n\n // --- Templates (projected) — override the default content of each element.\n /** @ignore Icon of the \"first page\" control. */\n protected readonly firstIconTemplate = contentChild<TemplateRef<unknown>>('firsticon');\n /** @ignore Icon of the \"previous page\" control. */\n protected readonly prevIconTemplate = contentChild<TemplateRef<unknown>>('previcon');\n /** @ignore Icon of the \"next page\" control. */\n protected readonly nextIconTemplate = contentChild<TemplateRef<unknown>>('nexticon');\n /** @ignore Icon of the \"last page\" control. */\n protected readonly lastIconTemplate = contentChild<TemplateRef<unknown>>('lasticon');\n /** @ignore Content of a page-number button (context: number, page, active). */\n protected readonly pageLinkTemplate = contentChild<TemplateRef<UiPaginatorPageLinkContext>>('pagelink');\n /** @ignore Free content rendered before the controls (context: pagination state). */\n protected readonly startTemplate = contentChild<TemplateRef<{ $implicit: UiPaginatorState }>>('start');\n /** @ignore Free content rendered after the rows-per-page select (context: pagination state). */\n protected readonly endTemplate = contentChild<TemplateRef<{ $implicit: UiPaginatorState }>>('end');\n /** @ignore Rich current-page report (overrides `currentPageReportTemplate`). */\n protected readonly reportTemplate = contentChild<TemplateRef<{ $implicit: UiPaginatorState }>>('report');\n\n /** @ignore Exposes the ellipsis sentinel to the template. */\n protected readonly ELLIPSIS = ELLIPSIS;\n\n /** @ignore Rows-per-page kept locally so the select can drive it. */\n protected readonly rowsState = linkedSignal(() => Math.max(1, this.rows()));\n\n /** @ignore */\n protected readonly pageCount = computed(() => Math.max(1, Math.ceil(this.totalRecords() / this.rowsState())));\n /** @ignore `first` clamped to the dataset (data may shrink under the cursor). */\n protected readonly clampedFirst = computed(() => {\n const maxFirst = (this.pageCount() - 1) * this.rowsState();\n return Math.min(Math.max(0, this.first()), maxFirst);\n });\n /** @ignore Zero-based current page. */\n protected readonly currentPage = computed(() => Math.floor(this.clampedFirst() / this.rowsState()));\n\n /** @ignore Page items to render: zero-based page indexes, `ELLIPSIS` for a gap. */\n protected readonly pageItems = computed<number[]>(() => {\n const count = this.pageCount();\n const current = this.currentPage();\n\n if (!this.ellipsis()) {\n // Windowed mode: `pageLinks` numbers centered on the current page.\n const visible = Math.min(this.pageLinks(), count);\n const start = Math.max(0, Math.min(current - Math.floor(visible / 2), count - visible));\n return Array.from({ length: visible }, (_, i) => start + i);\n }\n\n // Compact mode: edges + current neighborhood, ellipsis in the gaps.\n const boundary = Math.max(1, this.boundaryCount());\n const pages = new Set<number>();\n for (let i = 0; i < Math.min(boundary, count); i++) pages.add(i);\n for (let i = Math.max(0, current - 1); i <= Math.min(count - 1, current + 1); i++) pages.add(i);\n for (let i = Math.max(0, count - boundary); i < count; i++) pages.add(i);\n\n const sorted = [...pages].sort((a, b) => a - b);\n const items: number[] = [];\n let previous: number | null = null;\n for (const page of sorted) {\n if (previous != null) {\n // A single missing page is cheaper to show than an ellipsis.\n if (page - previous === 2) items.push(previous + 1);\n else if (page - previous > 2) items.push(ELLIPSIS);\n }\n items.push(page);\n previous = page;\n }\n return items;\n });\n\n /** @ignore Pagination snapshot (templates + report placeholders). */\n protected readonly state = computed<UiPaginatorState>(() => {\n const total = this.totalRecords();\n const rows = this.rowsState();\n const first = this.clampedFirst();\n return {\n first: total === 0 ? 0 : first + 1,\n last: Math.min(first + rows, total),\n rows,\n page: this.currentPage(),\n pageCount: this.pageCount(),\n totalRecords: total,\n };\n });\n\n /** @ignore Context shared by the #start / #end / #report templates. */\n protected readonly stateContext = computed(() => ({ $implicit: this.state() }));\n\n /** @ignore Report pattern with its placeholders resolved. */\n protected readonly reportText = computed(() => {\n const state = this.state();\n return this.currentPageReportTemplate()\n .replace('{first}', String(state.first))\n .replace('{last}', String(state.last))\n .replace('{rows}', String(state.rows))\n .replace('{page}', String(state.page + 1))\n .replace('{pageCount}', String(state.pageCount))\n .replace('{totalRecords}', String(state.totalRecords));\n });\n\n /** @ignore */\n protected readonly isFirstPage = computed(() => this.currentPage() === 0);\n /** @ignore */\n protected readonly isLastPage = computed(() => this.currentPage() >= this.pageCount() - 1);\n\n /** @ignore */\n protected goToPage(page: number): void {\n const target = Math.min(Math.max(0, page), this.pageCount() - 1);\n const first = target * this.rowsState();\n if (first === this.first()) return;\n this.first.set(first);\n this.emitPage();\n }\n\n /** @ignore */\n protected onRowsPerPageChange(rows: unknown): void {\n const value = Number(rows);\n if (!Number.isFinite(value) || value <= 0 || value === this.rowsState()) return;\n this.rowsState.set(value);\n this.rows.set(value);\n this.first.set(0);\n this.emitPage();\n }\n\n /** @ignore */\n protected pageLabel(page: number): string {\n return this.pageAriaLabel().replace('{page}', String(page + 1));\n }\n\n /** @ignore */\n protected pageLinkContext(page: number): UiPaginatorPageLinkContext {\n return { $implicit: page + 1, page, active: page === this.currentPage() };\n }\n\n /** @ignore */\n private emitPage(): void {\n this.pageChange.emit({\n first: this.clampedFirst(),\n rows: this.rowsState(),\n page: this.currentPage(),\n pageCount: this.pageCount(),\n });\n }\n}\n","<nav class=\"ui-paginator\" [attr.aria-label]=\"ariaLabel()\">\n @if (startTemplate(); as tpl) {\n <div class=\"ui-paginator-start\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n </div>\n }\n\n <div class=\"ui-paginator-content\">\n @if (showCurrentPageReport()) {\n <span class=\"ui-paginator-report\">\n @if (reportTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else {\n {{ reportText() }}\n }\n </span>\n }\n\n @if (showFirstLastIcon()) {\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"firstPageAriaLabel()\"\n (click)=\"goToPage(0)\"\n >\n @if (firstIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"angles-left\" size=\"sm\" />\n }\n </button>\n }\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"prevPageAriaLabel()\"\n (click)=\"goToPage(currentPage() - 1)\"\n >\n @if (prevIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"chevron-left\" size=\"sm\" />\n }\n </button>\n\n @if (showPageLinks()) {\n <div class=\"ui-paginator-pages\">\n @for (item of pageItems(); track $index) {\n @if (item === ELLIPSIS) {\n <span class=\"ui-paginator-ellipsis\" aria-hidden=\"true\">&hellip;</span>\n } @else {\n <button\n type=\"button\"\n class=\"ui-paginator-page\"\n [class._current]=\"item === currentPage()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"pageLabel(item)\"\n [attr.aria-current]=\"item === currentPage() ? 'page' : null\"\n (click)=\"goToPage(item)\"\n >\n @if (pageLinkTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"pageLinkContext(item)\" />\n } @else {\n {{ item + 1 }}\n }\n </button>\n }\n }\n </div>\n }\n\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"nextPageAriaLabel()\"\n (click)=\"goToPage(currentPage() + 1)\"\n >\n @if (nextIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"chevron-right\" size=\"sm\" />\n }\n </button>\n @if (showFirstLastIcon()) {\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"lastPageAriaLabel()\"\n (click)=\"goToPage(pageCount() - 1)\"\n >\n @if (lastIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"angles-right\" size=\"sm\" />\n }\n </button>\n }\n </div>\n\n @if (rowsPerPageOptions()?.length) {\n <div class=\"ui-paginator-rows\">\n <ui-select\n size=\"small\"\n [options]=\"rowsPerPageOptions()!\"\n [ngModel]=\"rowsState()\"\n [disabled]=\"disabled()\"\n [ariaLabel]=\"rowsPerPageAriaLabel()\"\n (valueChange)=\"onRowsPerPageChange($event)\"\n />\n </div>\n }\n\n @if (endTemplate(); as tpl) {\n <div class=\"ui-paginator-end\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n </div>\n }\n</nav>\n","/*\n * Public API Surface of ui-kit/ui-paginator\n */\n\nexport * from './lib/ui-paginator';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],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