@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,150 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { TemplateRef } from '@angular/core';
3
+
4
+ /** Payload of `pageChange`. */
5
+ interface UiPaginatorPageEvent {
6
+ /** Index of the first row of the page. */
7
+ first: number;
8
+ /** Rows per page. */
9
+ rows: number;
10
+ /** Zero-based page index. */
11
+ page: number;
12
+ pageCount: number;
13
+ }
14
+ /** Context handed to the `#pagelink` template. */
15
+ interface UiPaginatorPageLinkContext {
16
+ /** One-based page number (display value). */
17
+ $implicit: number;
18
+ /** Zero-based page index. */
19
+ page: number;
20
+ /** True for the current page. */
21
+ active: boolean;
22
+ }
23
+ /** Pagination snapshot handed to the `#start` / `#end` / `#report` templates. */
24
+ interface UiPaginatorState {
25
+ /** One-based index of the first displayed row (0 when empty). */
26
+ first: number;
27
+ /** One-based index of the last displayed row. */
28
+ last: number;
29
+ rows: number;
30
+ /** Zero-based current page. */
31
+ page: number;
32
+ pageCount: number;
33
+ totalRecords: number;
34
+ }
35
+ /**
36
+ * ui-paginator — standalone pagination bar.
37
+ *
38
+ * Faithful to the Figma `ui-paginator` component: native `<button>` controls
39
+ * and page numbers styled straight with the `actions.low` tokens (current
40
+ * page in `actions.high`), 40px squircles (`--radius-default`), `ui-icon`
41
+ * chevrons, plus an `ui-select` rows-per-page choice. Used by `ui-table`,
42
+ * works standalone over any collection: bind `totalRecords`, `rows` and the
43
+ * two-way `first`.
44
+ *
45
+ * With `ellipsis`, long page lists collapse to `1 2 3 … 30 31 32`
46
+ * (`boundaryCount` pages on each edge + the current page neighborhood).
47
+ * The control icons and the page-link content are overridable via the
48
+ * `#firsticon` / `#previcon` / `#nexticon` / `#lasticon` / `#pagelink`
49
+ * templates.
50
+ */
51
+ declare class UiPaginator {
52
+ /** Total number of rows across all pages. */
53
+ totalRecords: _angular_core.InputSignalWithTransform<number, unknown>;
54
+ /** Rows per page. Two-way bindable (updated by the rows-per-page select). */
55
+ rows: _angular_core.ModelSignal<number>;
56
+ /** Index of the first displayed row. Two-way bindable (programmatic pagination). */
57
+ first: _angular_core.ModelSignal<number>;
58
+ /** Maximum number of page-number buttons (windowed mode, without `ellipsis`). */
59
+ pageLinks: _angular_core.InputSignalWithTransform<number, unknown>;
60
+ /** Compact mode: `1 2 3 … 30 31 32` — edges + current-page neighborhood, `…` in the gaps. */
61
+ ellipsis: _angular_core.InputSignalWithTransform<boolean, unknown>;
62
+ /** Pages always shown on each edge in `ellipsis` mode. */
63
+ boundaryCount: _angular_core.InputSignalWithTransform<number, unknown>;
64
+ /** Choices offered in the rows-per-page select (omit to hide it — Figma `selectPage`). */
65
+ rowsPerPageOptions: _angular_core.InputSignal<number[] | undefined>;
66
+ /** Shows the "first page" / "last page" edge controls. */
67
+ showFirstLastIcon: _angular_core.InputSignalWithTransform<boolean, unknown>;
68
+ /** Shows the page-number buttons (disable for a compact prev/next bar). */
69
+ showPageLinks: _angular_core.InputSignalWithTransform<boolean, unknown>;
70
+ /** Shows the current-page report (e.g. `1 - 10 sur 120`). */
71
+ showCurrentPageReport: _angular_core.InputSignalWithTransform<boolean, unknown>;
72
+ /** Report pattern — placeholders: `{first}` `{last}` `{rows}` `{page}` `{pageCount}` `{totalRecords}`. */
73
+ currentPageReportTemplate: _angular_core.InputSignal<string>;
74
+ /** Disables every control. */
75
+ disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
76
+ /** Accessible name of the navigation landmark. */
77
+ ariaLabel: _angular_core.InputSignal<string>;
78
+ /** Accessible name pattern of a page button (`{page}` is replaced). */
79
+ pageAriaLabel: _angular_core.InputSignal<string>;
80
+ /** Accessible names of the edge / step controls. */
81
+ firstPageAriaLabel: _angular_core.InputSignal<string>;
82
+ prevPageAriaLabel: _angular_core.InputSignal<string>;
83
+ nextPageAriaLabel: _angular_core.InputSignal<string>;
84
+ lastPageAriaLabel: _angular_core.InputSignal<string>;
85
+ /** Accessible name of the rows-per-page select. */
86
+ rowsPerPageAriaLabel: _angular_core.InputSignal<string>;
87
+ /** Emitted on any pagination change (navigation or rows-per-page). */
88
+ pageChange: _angular_core.OutputEmitterRef<UiPaginatorPageEvent>;
89
+ /** @ignore Icon of the "first page" control. */
90
+ protected readonly firstIconTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
91
+ /** @ignore Icon of the "previous page" control. */
92
+ protected readonly prevIconTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
93
+ /** @ignore Icon of the "next page" control. */
94
+ protected readonly nextIconTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
95
+ /** @ignore Icon of the "last page" control. */
96
+ protected readonly lastIconTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
97
+ /** @ignore Content of a page-number button (context: number, page, active). */
98
+ protected readonly pageLinkTemplate: _angular_core.Signal<TemplateRef<UiPaginatorPageLinkContext> | undefined>;
99
+ /** @ignore Free content rendered before the controls (context: pagination state). */
100
+ protected readonly startTemplate: _angular_core.Signal<TemplateRef<{
101
+ $implicit: UiPaginatorState;
102
+ }> | undefined>;
103
+ /** @ignore Free content rendered after the rows-per-page select (context: pagination state). */
104
+ protected readonly endTemplate: _angular_core.Signal<TemplateRef<{
105
+ $implicit: UiPaginatorState;
106
+ }> | undefined>;
107
+ /** @ignore Rich current-page report (overrides `currentPageReportTemplate`). */
108
+ protected readonly reportTemplate: _angular_core.Signal<TemplateRef<{
109
+ $implicit: UiPaginatorState;
110
+ }> | undefined>;
111
+ /** @ignore Exposes the ellipsis sentinel to the template. */
112
+ protected readonly ELLIPSIS = -1;
113
+ /** @ignore Rows-per-page kept locally so the select can drive it. */
114
+ protected readonly rowsState: _angular_core.WritableSignal<number>;
115
+ /** @ignore */
116
+ protected readonly pageCount: _angular_core.Signal<number>;
117
+ /** @ignore `first` clamped to the dataset (data may shrink under the cursor). */
118
+ protected readonly clampedFirst: _angular_core.Signal<number>;
119
+ /** @ignore Zero-based current page. */
120
+ protected readonly currentPage: _angular_core.Signal<number>;
121
+ /** @ignore Page items to render: zero-based page indexes, `ELLIPSIS` for a gap. */
122
+ protected readonly pageItems: _angular_core.Signal<number[]>;
123
+ /** @ignore Pagination snapshot (templates + report placeholders). */
124
+ protected readonly state: _angular_core.Signal<UiPaginatorState>;
125
+ /** @ignore Context shared by the #start / #end / #report templates. */
126
+ protected readonly stateContext: _angular_core.Signal<{
127
+ $implicit: UiPaginatorState;
128
+ }>;
129
+ /** @ignore Report pattern with its placeholders resolved. */
130
+ protected readonly reportText: _angular_core.Signal<string>;
131
+ /** @ignore */
132
+ protected readonly isFirstPage: _angular_core.Signal<boolean>;
133
+ /** @ignore */
134
+ protected readonly isLastPage: _angular_core.Signal<boolean>;
135
+ /** @ignore */
136
+ protected goToPage(page: number): void;
137
+ /** @ignore */
138
+ protected onRowsPerPageChange(rows: unknown): void;
139
+ /** @ignore */
140
+ protected pageLabel(page: number): string;
141
+ /** @ignore */
142
+ protected pageLinkContext(page: number): UiPaginatorPageLinkContext;
143
+ /** @ignore */
144
+ private emitPage;
145
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiPaginator, never>;
146
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiPaginator, "ui-paginator", never, { "totalRecords": { "alias": "totalRecords"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "first": { "alias": "first"; "required": false; "isSignal": true; }; "pageLinks": { "alias": "pageLinks"; "required": false; "isSignal": true; }; "ellipsis": { "alias": "ellipsis"; "required": false; "isSignal": true; }; "boundaryCount": { "alias": "boundaryCount"; "required": false; "isSignal": true; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; "isSignal": true; }; "showFirstLastIcon": { "alias": "showFirstLastIcon"; "required": false; "isSignal": true; }; "showPageLinks": { "alias": "showPageLinks"; "required": false; "isSignal": true; }; "showCurrentPageReport": { "alias": "showCurrentPageReport"; "required": false; "isSignal": true; }; "currentPageReportTemplate": { "alias": "currentPageReportTemplate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "pageAriaLabel": { "alias": "pageAriaLabel"; "required": false; "isSignal": true; }; "firstPageAriaLabel": { "alias": "firstPageAriaLabel"; "required": false; "isSignal": true; }; "prevPageAriaLabel": { "alias": "prevPageAriaLabel"; "required": false; "isSignal": true; }; "nextPageAriaLabel": { "alias": "nextPageAriaLabel"; "required": false; "isSignal": true; }; "lastPageAriaLabel": { "alias": "lastPageAriaLabel"; "required": false; "isSignal": true; }; "rowsPerPageAriaLabel": { "alias": "rowsPerPageAriaLabel"; "required": false; "isSignal": true; }; }, { "rows": "rowsChange"; "first": "firstChange"; "pageChange": "pageChange"; }, ["firstIconTemplate", "prevIconTemplate", "nextIconTemplate", "lastIconTemplate", "pageLinkTemplate", "startTemplate", "endTemplate", "reportTemplate"], never, true, never>;
147
+ }
148
+
149
+ export { UiPaginator };
150
+ export type { UiPaginatorPageEvent, UiPaginatorPageLinkContext, UiPaginatorState };
@@ -0,0 +1,125 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { ElementRef } from '@angular/core';
3
+ import { ConnectedPosition, ConnectedOverlayPositionChange } from '@angular/cdk/overlay';
4
+
5
+ /** Preferred side of the trigger the panel is displayed on (drives the arrow). */
6
+ type PopoverPosition = 'top' | 'bottom' | 'left' | 'right';
7
+ /** Accepted shapes for the anchor passed to `show` / `toggle`. */
8
+ type PopoverTarget = HTMLElement | ElementRef<HTMLElement>;
9
+ /**
10
+ * ui-popover — headless floating panel anchored to a trigger.
11
+ *
12
+ * A token-styled surface (shared `overlay-panel` shell + `global.*` tokens)
13
+ * rendered in a CDK connected overlay, driven imperatively through the public
14
+ * `show` / `hide` / `toggle` methods. The consumer keeps a template reference
15
+ * variable on the popover and wires a trigger to it; the panel holds arbitrary
16
+ * projected content.
17
+ *
18
+ * Built for accessibility: `role="dialog"`, non-modal WAI-ARIA pattern by
19
+ * default (no `aria-modal`, focus not trapped — see the `modal` input to opt
20
+ * into a blocking dialog with `aria-modal` + a permanent focus trap via
21
+ * `@angular/cdk/a11y`), the first focusable element (or an element carrying
22
+ * `autofocus`) focused on open, `Escape` to close and return focus to the
23
+ * trigger, and `aria-expanded` / `aria-controls` reflected on the trigger.
24
+ *
25
+ * Positioning, viewport flipping and scroll re-alignment are delegated to the
26
+ * CDK connected overlay (no manual geometry); the arrow follows the effective
27
+ * side.
28
+ *
29
+ * @example
30
+ * ```html
31
+ * <!-- Basic: the trigger's click event carries the anchor -->
32
+ * <ui-button label="Détails" (buttonClick)="op.toggle($event)" />
33
+ * <ui-popover #op ariaLabel="Détails du produit">…</ui-popover>
34
+ *
35
+ * <!-- Controlled: pass the trigger element as the second argument -->
36
+ * <span #anchor>Ancre</span>
37
+ * <ui-button label="Ouvrir" (buttonClick)="op.show($event, anchor)" />
38
+ * <ui-popover #op ariaLabel="Détails">…</ui-popover>
39
+ * ```
40
+ */
41
+ declare class UiPopover {
42
+ /** Hide the panel when a click lands outside it (and outside the trigger). */
43
+ dismissable: _angular_core.InputSignalWithTransform<boolean, unknown>;
44
+ /** Preferred side of the trigger; the overlay flips it when space is lacking. */
45
+ position: _angular_core.InputSignal<PopoverPosition>;
46
+ /** Render the arrow pointing back to the trigger. */
47
+ showArrow: _angular_core.InputSignalWithTransform<boolean, unknown>;
48
+ /** Make the panel modal: `aria-modal` reflected + permanent focus trap. */
49
+ modal: _angular_core.InputSignalWithTransform<boolean, unknown>;
50
+ /** ARIA role of the panel. */
51
+ role: _angular_core.InputSignal<string>;
52
+ /** Accessible name of the panel (recommended). */
53
+ ariaLabel: _angular_core.InputSignal<string | undefined>;
54
+ /** Id of an external element naming the panel. */
55
+ ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
56
+ /** Move focus into the panel when it opens. */
57
+ focusOnShow: _angular_core.InputSignalWithTransform<boolean, unknown>;
58
+ /** Close the panel when `Escape` is pressed. */
59
+ closeOnEscape: _angular_core.InputSignalWithTransform<boolean, unknown>;
60
+ /** Animate the panel entrance (reduced-motion / `data-motion="off"` always win). */
61
+ motion: _angular_core.InputSignalWithTransform<boolean, unknown>;
62
+ /** Extra class(es) applied to the panel (scoped custom styling). */
63
+ styleClass: _angular_core.InputSignal<string | undefined>;
64
+ /** Emitted after the panel becomes visible. */
65
+ shown: _angular_core.OutputEmitterRef<void>;
66
+ /** Emitted after the panel is hidden. */
67
+ hidden: _angular_core.OutputEmitterRef<void>;
68
+ /** @ignore */
69
+ private readonly doc;
70
+ /** @ignore Panel root (only present while open — queried after the overlay attaches). */
71
+ private readonly panel;
72
+ /** @ignore Panel visibility. */
73
+ private readonly _open;
74
+ /** Read-only open state (for host bindings / conditional logic). */
75
+ readonly visible: _angular_core.Signal<boolean>;
76
+ /** @ignore Element the overlay is anchored to. */
77
+ protected readonly origin: _angular_core.WritableSignal<HTMLElement | null>;
78
+ /** @ignore Effective side (updated from the CDK connection pair) — drives the arrow. */
79
+ protected readonly side: _angular_core.WritableSignal<PopoverPosition>;
80
+ /** @ignore Unique panel id, wired to the trigger via `aria-controls`. */
81
+ protected readonly panelId: string;
82
+ /** @ignore Resolved trigger element (kept for focus restore + aria cleanup). */
83
+ private targetEl;
84
+ constructor();
85
+ /**
86
+ * Show the panel anchored to `target` (or the event's `currentTarget`).
87
+ * @param event Browser event whose `currentTarget` is used as a fallback anchor.
88
+ * @param target Explicit anchor element (kept anchored to it).
89
+ */
90
+ show(event?: Event, target?: PopoverTarget): void;
91
+ /** Hide the panel; returns focus to the trigger when focus was inside it. */
92
+ hide(): void;
93
+ /** Toggle the panel, anchoring it like {@link show} when it opens. */
94
+ toggle(event?: Event, target?: PopoverTarget): void;
95
+ /** @ignore Ordered positions (preferred first, then fallbacks) for CDK auto-flip. */
96
+ protected readonly positions: _angular_core.Signal<ConnectedPosition[]>;
97
+ /** @ignore */
98
+ protected readonly panelClasses: _angular_core.Signal<string>;
99
+ /** @ignore Map the active CDK connection pair back to the visual side (for the arrow). */
100
+ protected onPositionChange(change: ConnectedOverlayPositionChange): void;
101
+ /** @ignore A click outside the panel closes it — unless it lands on the trigger,
102
+ * whose own handler owns the toggle (avoids close-then-reopen races). */
103
+ protected onOutsideClick(event: MouseEvent): void;
104
+ /** @ignore */
105
+ protected onEscape(event: Event): void;
106
+ /** @ignore */
107
+ private resolveTarget;
108
+ /** @ignore */
109
+ private resolveEventTarget;
110
+ /** @ignore Reflect the open relationship on the trigger. */
111
+ private applyTriggerAria;
112
+ /** @ignore */
113
+ private clearTriggerAria;
114
+ /** @ignore Focus the first focusable (or `[autofocus]`) once the overlay renders.
115
+ * The overlay attaches after change detection: retry over macrotasks
116
+ * (NOT rAF — it never fires in throttled/background tabs). */
117
+ private queueFocus;
118
+ /** @ignore */
119
+ private focusFirst;
120
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiPopover, never>;
121
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiPopover, "ui-popover", never, { "dismissable": { "alias": "dismissable"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "showArrow": { "alias": "showArrow"; "required": false; "isSignal": true; }; "modal": { "alias": "modal"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "focusOnShow": { "alias": "focusOnShow"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; }, { "shown": "shown"; "hidden": "hidden"; }, never, ["*"], true, never>;
122
+ }
123
+
124
+ export { UiPopover };
125
+ export type { PopoverPosition, PopoverTarget };
@@ -0,0 +1,82 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { TemplateRef } from '@angular/core';
3
+
4
+ type UiProgressBarSize = 'default' | 'small';
5
+ type UiProgressBarMode = 'determinate' | 'indeterminate';
6
+ type UiProgressBarValuePosition = 'right' | 'bottom' | 'inside';
7
+ /** Context passed to a custom value template. */
8
+ interface UiProgressBarValueContext {
9
+ $implicit: number;
10
+ }
11
+ /**
12
+ * ui-progress-bar — process status indicator (headless).
13
+ *
14
+ * Renders a token-coloured track filled to `value`% (`determinate`), a looping
15
+ * animation with no tracked value (`indeterminate`), or a set of discrete
16
+ * segments when `steps` is provided. The completion value can be shown next to
17
+ * (`right`) or below (`bottom`) the bar, formatted freely through a custom
18
+ * `valueTemplate`. The fill colour is overridable per instance via `color`
19
+ * (or the `--ui-progress-bar-color` CSS hook).
20
+ *
21
+ * Accessible: the track carries `role="progressbar"` with `aria-valuemin`,
22
+ * `aria-valuemax` and (when determinate) `aria-valuenow`; name it with
23
+ * `ariaLabel` / `ariaLabelledBy`. Motion honours the OS reduced-motion
24
+ * preference and the kit-wide `data-motion="off"` switch.
25
+ */
26
+ declare class UiProgressBar {
27
+ /** Current progress, 0–100 (clamped). Ignored when `mode="indeterminate"`. */
28
+ value: _angular_core.InputSignalWithTransform<number, unknown>;
29
+ /** `determinate` tracks a value; `indeterminate` loops with no value. */
30
+ mode: _angular_core.InputSignal<UiProgressBarMode>;
31
+ /** Show the completion value beside/below the bar (determinate, non-steps). */
32
+ showValue: _angular_core.InputSignalWithTransform<boolean, unknown>;
33
+ /** Unit appended to the numeric value (e.g. "%"). */
34
+ unit: _angular_core.InputSignal<string>;
35
+ /** Size preset. */
36
+ size: _angular_core.InputSignal<UiProgressBarSize>;
37
+ /**
38
+ * Where the value label sits: beside (`right`), below (`bottom`), or centered
39
+ * within the filled portion of the bar itself (`inside`).
40
+ */
41
+ valuePosition: _angular_core.InputSignal<UiProgressBarValuePosition>;
42
+ /**
43
+ * When > 0, render the bar as this many discrete segments; the number of
44
+ * filled segments is derived from `value`. Hides the numeric label.
45
+ */
46
+ steps: _angular_core.InputSignalWithTransform<number, unknown>;
47
+ /** Fill colour override (any CSS colour). Sets `--ui-progress-bar-color`. */
48
+ color: _angular_core.InputSignal<string | undefined>;
49
+ /** Custom label content; context `{ $implicit: value }`. */
50
+ valueTemplate: _angular_core.InputSignal<TemplateRef<UiProgressBarValueContext> | undefined>;
51
+ /** Accessible name of the progress bar. */
52
+ ariaLabel: _angular_core.InputSignal<string | undefined>;
53
+ /** Id of the element labelling the progress bar. */
54
+ ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
55
+ /** @ignore Value clamped to the 0–100 range. */
56
+ protected readonly clampedValue: _angular_core.Signal<number>;
57
+ /** @ignore */
58
+ protected readonly isIndeterminate: _angular_core.Signal<boolean>;
59
+ /** @ignore Whole number of segments requested (0 = continuous bar). */
60
+ protected readonly stepCount: _angular_core.Signal<number>;
61
+ /** @ignore Steps mode is active. */
62
+ protected readonly isSteps: _angular_core.Signal<boolean>;
63
+ /** @ignore Number of filled segments, derived from the value. */
64
+ protected readonly filledSteps: _angular_core.Signal<number>;
65
+ /** @ignore One boolean (active?) per segment. */
66
+ protected readonly segments: _angular_core.Signal<boolean[]>;
67
+ /** @ignore The numeric label is rendered (not indeterminate, not steps). */
68
+ protected readonly showLabel: _angular_core.Signal<boolean>;
69
+ /** @ignore Label sits inside the filled portion of the bar. */
70
+ protected readonly labelInside: _angular_core.Signal<boolean>;
71
+ /** @ignore `aria-valuenow`: the value when tracked, otherwise omitted. */
72
+ protected readonly ariaValueNow: _angular_core.Signal<number | null>;
73
+ /** @ignore Human-readable value for steps ("3 / 5"); omitted otherwise. */
74
+ protected readonly ariaValueText: _angular_core.Signal<string | null>;
75
+ /** @ignore */
76
+ protected readonly classes: _angular_core.Signal<string>;
77
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiProgressBar, never>;
78
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiProgressBar, "ui-progress-bar", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "valuePosition": { "alias": "valuePosition"; "required": false; "isSignal": true; }; "steps": { "alias": "steps"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "valueTemplate": { "alias": "valueTemplate"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
79
+ }
80
+
81
+ export { UiProgressBar };
82
+ export type { UiProgressBarMode, UiProgressBarSize, UiProgressBarValueContext, UiProgressBarValuePosition };
@@ -0,0 +1,44 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { BaseFieldControl } from '@4sh/ui-kit/forms';
3
+
4
+ /**
5
+ * ui-radio — headless radio button built on a real native <input type="radio">.
6
+ *
7
+ * Each ui-radio holds one `value`; the group is formed by binding every member
8
+ * to the same form control (same `formControlName` / `[(ngModel)]`) AND giving
9
+ * them the same `name` (native grouping = roving arrow-key navigation for free).
10
+ * The one whose `value` equals the model value is checked.
11
+ *
12
+ * Interactive states (hover/focus/disabled/checked) are pure CSS driven by
13
+ * `form.*` design tokens.
14
+ */
15
+ declare class UiRadio<T = unknown> extends BaseFieldControl<T> {
16
+ /** Value carried by this radio (the model takes it when selected). */
17
+ value: _angular_core.InputSignal<T>;
18
+ /** Label displayed next to the radio (clicking it selects it). */
19
+ label: _angular_core.InputSignal<string | undefined>;
20
+ /** Emitted when this radio becomes selected by user interaction, with its value. */
21
+ radioChange: _angular_core.OutputEmitterRef<T>;
22
+ /** Emitted when the native input receives focus. */
23
+ radioFocus: _angular_core.OutputEmitterRef<FocusEvent>;
24
+ /** Emitted when the native input loses focus. */
25
+ radioBlur: _angular_core.OutputEmitterRef<FocusEvent>;
26
+ /** @ignore */
27
+ private readonly inputEl;
28
+ /** @ignore */
29
+ protected readonly checked: _angular_core.Signal<boolean>;
30
+ /** @ignore */
31
+ protected readonly classes: _angular_core.Signal<string>;
32
+ /** @ignore */
33
+ protected uidPrefix(): string;
34
+ /** Focus the native input programmatically. */
35
+ focus(options?: FocusOptions): void;
36
+ /** @ignore Native change fires only when this radio becomes checked. */
37
+ protected onNativeChange(): void;
38
+ /** @ignore */
39
+ protected onBlur(event: FocusEvent): void;
40
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiRadio<any>, never>;
41
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiRadio<any>, "ui-radio", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "radioChange": "radioChange"; "radioFocus": "radioFocus"; "radioBlur": "radioBlur"; }, never, never, true, never>;
42
+ }
43
+
44
+ export { UiRadio };
@@ -0,0 +1,90 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { TemplateRef } from '@angular/core';
3
+ import { BaseFieldControl } from '@4sh/ui-kit/forms';
4
+ import { UiIconSize } from '@4sh/ui-kit/ui-icon';
5
+
6
+ interface UiRatingIconContext {
7
+ /** The current star value (1-based index). */
8
+ $implicit: number;
9
+ /** Whether this star is active (value <= current rating). */
10
+ active: boolean;
11
+ /** Filled portion of this star, `0` to `1` (hover preview included). */
12
+ fill: number;
13
+ }
14
+ /**
15
+ * ui-rating — headless rating component built over a native <input type="range">.
16
+ */
17
+ declare class UiRating extends BaseFieldControl<number | null> {
18
+ /** Size of the rating stars. */
19
+ size: _angular_core.InputSignal<UiIconSize>;
20
+ /** Number of stars to display. */
21
+ stars: _angular_core.InputSignalWithTransform<number, unknown>;
22
+ /** Enables half-star notation: the value moves by 0.5 (click on a half, arrow keys). */
23
+ allowHalf: _angular_core.InputSignalWithTransform<boolean, unknown>;
24
+ /** Allows clearing the rating by clicking the current value. */
25
+ cancel: _angular_core.InputSignalWithTransform<boolean, unknown>;
26
+ /** Native autofocus attribute. */
27
+ autofocus: _angular_core.InputSignalWithTransform<boolean, unknown>;
28
+ /** Orientation of the rating control. */
29
+ orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
30
+ /** Custom template for active stars. */
31
+ onIconTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
32
+ /** Custom template for inactive stars. */
33
+ offIconTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
34
+ /** Emitted when rating changes (`null` = cleared / not rated). */
35
+ rateChange: _angular_core.OutputEmitterRef<number | null>;
36
+ /** Emitted when the native input receives focus. */
37
+ ratingFocus: _angular_core.OutputEmitterRef<FocusEvent>;
38
+ /** Emitted when the native input loses focus. */
39
+ ratingBlur: _angular_core.OutputEmitterRef<FocusEvent>;
40
+ /** @ignore */
41
+ private readonly inputEl;
42
+ /** @ignore Redeclared over the base signal: `null` = not rated (never `undefined`). */
43
+ protected readonly modelValue: _angular_core.WritableSignal<number | null>;
44
+ /** @ignore */
45
+ protected readonly hoverValue: _angular_core.WritableSignal<number>;
46
+ /** @ignore Selection granularity: one star, or a half when `allowHalf`. */
47
+ protected readonly step: _angular_core.Signal<0.5 | 1>;
48
+ /**
49
+ * @ignore Numeric value used for display comparisons (`null` renders as 0 stars).
50
+ * Floored to the granularity so an out-of-step value (an average pushed by the
51
+ * host, e.g. 4.3) never renders a fill the user could not have selected.
52
+ */
53
+ protected readonly currentValue: _angular_core.Signal<number>;
54
+ /** @ignore Per-star render model; `fill` (0 → 1) drives the clipped overlay. */
55
+ protected readonly starList: _angular_core.Signal<{
56
+ index: number;
57
+ fill: number;
58
+ active: boolean;
59
+ }[]>;
60
+ /** @ignore */
61
+ protected readonly classes: _angular_core.Signal<string>;
62
+ writeValue(value: number | null): void;
63
+ /** @ignore */
64
+ protected uidPrefix(): string;
65
+ focus(options?: FocusOptions): void;
66
+ /** @ignore Native change is triggered by keyboard or programmatic native actions */
67
+ protected onNativeChange(event: Event): void;
68
+ /** @ignore */
69
+ protected rate(star: number, event: MouseEvent): void;
70
+ /**
71
+ * @ignore Value pointed at by the cursor: the star itself, or its first half
72
+ * when `allowHalf`. Reads the writing direction so the "first half" stays the
73
+ * leading one in RTL, like the clip applied by the stylesheet.
74
+ */
75
+ private pointedValue;
76
+ private updateValue;
77
+ /** @ignore Bound to `mousemove`: the preview must follow the cursor across the two halves. */
78
+ protected setHover(star: number, event: MouseEvent): void;
79
+ /** @ignore */
80
+ protected clearHover(): void;
81
+ /** @ignore */
82
+ protected onFocus(event: FocusEvent): void;
83
+ /** @ignore */
84
+ protected onBlur(event: FocusEvent): void;
85
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiRating, never>;
86
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiRating, "ui-rating", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "stars": { "alias": "stars"; "required": false; "isSignal": true; }; "allowHalf": { "alias": "allowHalf"; "required": false; "isSignal": true; }; "cancel": { "alias": "cancel"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, { "rateChange": "rateChange"; "ratingFocus": "ratingFocus"; "ratingBlur": "ratingBlur"; }, ["onIconTemplate", "offIconTemplate"], never, true, never>;
87
+ }
88
+
89
+ export { UiRating };
90
+ export type { UiRatingIconContext };
@@ -0,0 +1,70 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { TemplateRef } from '@angular/core';
3
+
4
+ type ReadOnlySize = 'default' | 'small';
5
+ type ReadOnlyLayout = 'vertical' | 'horizontal' | 'grid';
6
+ type ReadOnlyAlign = 'left' | 'right';
7
+ /**
8
+ * ui-read-only — displays a labelled value in read-only mode.
9
+ */
10
+ declare class UiReadOnly {
11
+ /** Field label (plain string — i18n is the caller's responsibility). Rendered via `ui-label`. */
12
+ label: _angular_core.InputSignal<string | undefined>;
13
+ /** Shows the required marker (*) on the label — for parity with a required field. */
14
+ required: _angular_core.InputSignalWithTransform<boolean, unknown>;
15
+ /** Fully custom label markup, replacing the default `ui-label` (escape hatch). */
16
+ labelTemplate: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
17
+ /** Displayed value. Ignored when content is projected. */
18
+ value: _angular_core.InputSignal<string | number | null | undefined>;
19
+ /** Shown (muted) when the value is null / undefined / empty. */
20
+ fallback: _angular_core.InputSignal<string>;
21
+ /**
22
+ * Accessible text announced in place of the `fallback` symbol when the value
23
+ * is empty (e.g. "Non renseigné"). The visual `fallback` stays decorative.
24
+ */
25
+ emptyLabel: _angular_core.InputSignal<string | undefined>;
26
+ /** Stacked (`vertical`), side-by-side (`horizontal`), or grid-driven (`grid`). */
27
+ layout: _angular_core.InputSignal<ReadOnlyLayout>;
28
+ /** Text/label size. */
29
+ size: _angular_core.InputSignal<ReadOnlySize>;
30
+ /** Label text alignment (horizontal layout only). */
31
+ labelAlign: _angular_core.InputSignal<ReadOnlyAlign>;
32
+ /** Label column width in horizontal layout (any CSS length, e.g. `160px`, `30%`). Unset = hug content. */
33
+ labelWidth: _angular_core.InputSignal<string | undefined>;
34
+ /** Preserve line breaks in the value (`white-space: pre-line`). */
35
+ multiline: _angular_core.InputSignalWithTransform<boolean, unknown>;
36
+ /** Hug content and flow inline instead of filling the container. */
37
+ inline: _angular_core.InputSignalWithTransform<boolean, unknown>;
38
+ /**
39
+ * Adapt the layout to sit alongside form fields
40
+ */
41
+ matchField: _angular_core.InputSignalWithTransform<boolean, unknown>;
42
+ /** Extra classes on the row (`<dl>`), e.g. a grid row class like `flex-x`. */
43
+ rowClass: _angular_core.InputSignal<string | undefined>;
44
+ /** Extra classes on the label cell (`<dt>`), e.g. `cell phone-24 desktop-auto`. */
45
+ labelClass: _angular_core.InputSignal<string | undefined>;
46
+ /** Extra classes on the value cell (`<dd>`), e.g. `cell phone-24 desktop-auto`. */
47
+ valueClass: _angular_core.InputSignal<string | undefined>;
48
+ /** @ignore Wrapper around <ng-content>, used to detect projected content. */
49
+ private readonly projectedWrap;
50
+ /** @ignore Rich value was projected via <ng-content>. */
51
+ protected readonly hasProjectedContent: _angular_core.WritableSignal<boolean>;
52
+ constructor();
53
+ /** @ignore A label is provided (drives the <dl>/<dt>/<dd> vs plain markup). */
54
+ protected readonly hasLabel: _angular_core.Signal<boolean>;
55
+ /** @ignore Displayed value, or the fallback when empty. */
56
+ protected readonly displayValue: _angular_core.Signal<string>;
57
+ /** @ignore The displayed value is the fallback placeholder (styled muted). */
58
+ protected readonly isFallback: _angular_core.Signal<boolean>;
59
+ /** @ignore Root (row) classes: base + modifiers + passthrough `rowClass`. */
60
+ protected readonly rootClasses: _angular_core.Signal<string>;
61
+ /** @ignore Label-cell classes: base + passthrough `labelClass`. */
62
+ protected readonly labelClasses: _angular_core.Signal<string>;
63
+ /** @ignore Value-cell classes: base + passthrough `valueClass`. */
64
+ protected readonly valueCellClasses: _angular_core.Signal<string>;
65
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiReadOnly, never>;
66
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiReadOnly, "ui-read-only", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "labelTemplate": { "alias": "labelTemplate"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "fallback": { "alias": "fallback"; "required": false; "isSignal": true; }; "emptyLabel": { "alias": "emptyLabel"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "labelAlign": { "alias": "labelAlign"; "required": false; "isSignal": true; }; "labelWidth": { "alias": "labelWidth"; "required": false; "isSignal": true; }; "multiline": { "alias": "multiline"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "matchField": { "alias": "matchField"; "required": false; "isSignal": true; }; "rowClass": { "alias": "rowClass"; "required": false; "isSignal": true; }; "labelClass": { "alias": "labelClass"; "required": false; "isSignal": true; }; "valueClass": { "alias": "valueClass"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
67
+ }
68
+
69
+ export { UiReadOnly };
70
+ export type { ReadOnlyAlign, ReadOnlyLayout, ReadOnlySize };