@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,358 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { TemplateRef } from '@angular/core';
3
+ import { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';
4
+ import { UiMotionPreset } from '@4sh/ui-kit/motion';
5
+
6
+ /** Menu density. */
7
+ type SidebarMenuSize = 'default' | 'small';
8
+ /** Payload emitted by `itemClick` / passed to `command`. */
9
+ interface UiSidebarMenuItemCommandEvent {
10
+ originalEvent: Event;
11
+ item: UiSidebarMenuItem;
12
+ }
13
+ /**
14
+ * Declarative sidebar navigation entry. An item is either a separator, a leaf
15
+ * (command / router / external link), a plain **section** (a labelled group of
16
+ * items) or a collapsible **group** (`toggleable`) revealing a nested sub-tree.
17
+ */
18
+ interface UiSidebarMenuItem {
19
+ /** Stable identifier — drives expansion state and active tracking. */
20
+ id?: string;
21
+ /** Text of the item / group header. */
22
+ label?: string;
23
+ /** Leading FontAwesome icon name (also shown in the collapsed rail). */
24
+ icon?: string;
25
+ /** Child items: turns the entry into a section or collapsible group. */
26
+ items?: UiSidebarMenuItem[];
27
+ /** Render a separator rule instead of a regular entry. */
28
+ separator?: boolean;
29
+ /** Disable the entry (skipped by pointer / keyboard). */
30
+ disabled?: boolean;
31
+ /** Hide the entry entirely (default visible). */
32
+ visible?: boolean;
33
+ /** Callback invoked when the leaf is activated. */
34
+ command?: (event: UiSidebarMenuItemCommandEvent) => void;
35
+ /** Angular router target — the leaf renders a RouterLink anchor. */
36
+ routerLink?: string | unknown[];
37
+ /** Router query params (routerLink mode). */
38
+ queryParams?: Record<string, unknown>;
39
+ /** Exact matching for the active-link style (default false). */
40
+ routerLinkActiveExact?: boolean;
41
+ /** External URL — the leaf renders a plain anchor. */
42
+ url?: string;
43
+ /** Anchor target (e.g. `_blank`). */
44
+ target?: string;
45
+ /** Manual active state (for non-router navigation). */
46
+ active?: boolean;
47
+ /** Trailing badge text (count, status…), rendered as a `ui-badge`. */
48
+ badge?: string;
49
+ /** Level of the trailing badge (defaults to `default`). */
50
+ badgeLevel?: UiFeedbackLevel;
51
+ /** Force the trailing "opens elsewhere" icon (auto for `target="_blank"`). */
52
+ external?: boolean;
53
+ /**
54
+ * Collapsible group header. Defaults to `false` at the top level (a plain
55
+ * section header) and `true` for nested groups. Ignored on non-group items.
56
+ */
57
+ toggleable?: boolean;
58
+ /** Initial expanded state of a collapsible group (`expandedKeys` wins). */
59
+ expanded?: boolean;
60
+ /** Accessible name override. */
61
+ ariaLabel?: string;
62
+ /** Extra class on the entry. */
63
+ styleClass?: string;
64
+ }
65
+ /** @ignore Resolved render node. */
66
+ interface UiSidebarMenuNode {
67
+ item: UiSidebarMenuItem;
68
+ key: string;
69
+ kind: 'separator' | 'section' | 'group' | 'item';
70
+ children: UiSidebarMenuNode[];
71
+ depth: number;
72
+ /** A descendant is marked active (drives auto-expand + `_active-within`). */
73
+ activeWithin: boolean;
74
+ }
75
+ /**
76
+ * ui-sidebar-menu — declarative navigation menu for `ui-sidebar`.
77
+ *
78
+ * Renders a `UiSidebarMenuItem[]` model as an accessible navigation landmark:
79
+ * a `<nav>` wrapping semantic `role="list"` / `role="listitem"` containers.
80
+ * Supports labelled **sections** (grouped navigation), **collapsible groups**
81
+ * (`toggleable`) revealing deep nested sub-trees with expansion state
82
+ * (two-way `expandedKeys`), and per-item **active tracking** (RouterLink for
83
+ * router items, `active` for manual navigation — groups containing an active
84
+ * descendant auto-expand).
85
+ *
86
+ * Dropped inside a `ui-sidebar`, it reads the resolved collapsed state through
87
+ * DI and folds to an **icon rail** automatically (labels hidden, icon tooltips).
88
+ * Used standalone, control the rail with the `collapsed` input.
89
+ *
90
+ * Keyboard support is native: `Tab` / `Shift+Tab` move between the links,
91
+ * toggles and rails; `Enter` / `Space` activate the focused control.
92
+ */
93
+ declare class UiSidebarMenu {
94
+ /** Declarative menu model. */
95
+ items: _angular_core.InputSignal<UiSidebarMenuItem[]>;
96
+ /** Navigation token family. */
97
+ level: _angular_core.InputSignal<UiSubLevel>;
98
+ /** Menu density. */
99
+ size: _angular_core.InputSignal<SidebarMenuSize>;
100
+ /** Icon-rail state when used standalone (a parent `ui-sidebar` overrides it). */
101
+ collapsed: _angular_core.InputSignalWithTransform<boolean, unknown>;
102
+ /** Accessible name for the navigation landmark. */
103
+ ariaLabel: _angular_core.InputSignal<string | undefined>;
104
+ /** Id of an external element naming the landmark. */
105
+ ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
106
+ /** Play the collapse animation on nested groups. */
107
+ motion: _angular_core.InputSignalWithTransform<boolean, unknown>;
108
+ /**
109
+ * In the collapsed icon rail, reveal each item's label as a tooltip on hover /
110
+ * focus (via the `[uiTooltip]` directive). No effect when expanded.
111
+ */
112
+ tooltips: _angular_core.InputSignalWithTransform<boolean, unknown>;
113
+ /** Expanded group keys (two-way). Keyed by `id`, or a positional key. */
114
+ expandedKeys: _angular_core.ModelSignal<string[] | undefined>;
115
+ /** Emitted when a leaf item is activated. */
116
+ itemClick: _angular_core.OutputEmitterRef<UiSidebarMenuItemCommandEvent>;
117
+ /** @ignore Optional host sidebar — supplies the resolved collapsed state. */
118
+ private readonly parent;
119
+ /** @ignore Effective icon-rail state (parent sidebar wins). */
120
+ protected readonly isCollapsed: _angular_core.Signal<boolean>;
121
+ /** @ignore Show label tooltips (collapsed rail + `tooltips` enabled). */
122
+ protected readonly showTooltips: _angular_core.Signal<boolean>;
123
+ /** @ignore Leaf opens elsewhere → trailing external icon (expanded only). */
124
+ protected isExternal(node: UiSidebarMenuNode): boolean;
125
+ /** @ignore Resolved render tree. */
126
+ protected readonly nodes: _angular_core.Signal<UiSidebarMenuNode[]>;
127
+ /** @ignore Keys of groups seeded expanded (item.expanded or active descendant). */
128
+ private readonly seedKeys;
129
+ /** @ignore Currently expanded group keys. */
130
+ protected readonly expandedSet: _angular_core.Signal<Set<string>>;
131
+ /** @ignore */
132
+ protected isExpanded(node: UiSidebarMenuNode): boolean;
133
+ /** @ignore Toggle a collapsible group. */
134
+ protected onToggle(node: UiSidebarMenuNode): void;
135
+ /** @ignore Leaf activation (command items). */
136
+ protected onItemClick(event: Event, node: UiSidebarMenuNode): void;
137
+ /** @ignore Accessible name / tooltip target for the collapsed rail. */
138
+ protected railTitle(node: UiSidebarMenuNode): string | null;
139
+ /** @ignore Resolve the raw model into render nodes. */
140
+ private resolve;
141
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiSidebarMenu, never>;
142
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiSidebarMenu, "ui-sidebar-menu", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "tooltips": { "alias": "tooltips"; "required": false; "isSignal": true; }; "expandedKeys": { "alias": "expandedKeys"; "required": false; "isSignal": true; }; }, { "expandedKeys": "expandedKeysChange"; "itemClick": "itemClick"; }, never, never, true, never>;
143
+ }
144
+
145
+ /** Edge the sidebar is docked to. */
146
+ type SidebarSide = 'left' | 'right';
147
+ /**
148
+ * Layout strategy:
149
+ * - `static` — the sidebar lives in the page flow and pushes the inset. It can
150
+ * collapse to an icon rail (`collapsed`).
151
+ * - `overlay` — the sidebar floats over the content as an offcanvas panel with a
152
+ * backdrop, driven by the two-way `visible` model.
153
+ *
154
+ * With `responsive` enabled, a `static` sidebar automatically switches to
155
+ * `overlay` below `breakpoint` (mobile offcanvas), and back to the static rail
156
+ * above it.
157
+ */
158
+ type SidebarMode = 'static' | 'overlay';
159
+ /**
160
+ * ui-sidebar — headless application sidebar (navigation chrome).
161
+ *
162
+ * A token-styled vertical surface docked to the `left` or `right` edge, meant to
163
+ * host application navigation (workspace switcher, menus, user footer). Two
164
+ * presentations share the exact same interior:
165
+ *
166
+ * - **Static** (default): the sidebar sits in the layout flow and pushes the
167
+ * page inset. When `collapsible`, it folds down to an icon **rail**
168
+ * (`collapsed`, two-way). With `openOnHover`, a collapsed rail temporarily
169
+ * floats open on hover / focus without shifting the content.
170
+ * - **Overlay**: the sidebar floats over the content as an offcanvas panel with
171
+ * an optional `backdrop`, driven by the two-way `visible` model — focus trap
172
+ * and restore (`@angular/cdk/a11y`), `aria-modal`, background scroll lock,
173
+ * `Escape` to close and an optional click-outside dismiss.
174
+ *
175
+ * With `responsive`, a static sidebar automatically becomes an overlay below
176
+ * `breakpoint` (mobile offcanvas) and returns to the rail above it.
177
+ *
178
+ * Descendant components (e.g. `ui-sidebar-menu`) read the resolved collapsed
179
+ * state through dependency injection, so dropping a menu inside adapts it to the
180
+ * rail automatically. Toggle the sidebar from anywhere with the
181
+ * `[uiSidebarTrigger]` directive.
182
+ *
183
+ * @example
184
+ * ```html
185
+ * <button [uiSidebarTrigger]="sb">Menu</button>
186
+ * <ui-sidebar #sb collapsible ariaLabel="Navigation principale">
187
+ * <ng-template #header>…</ng-template>
188
+ * <ui-sidebar-menu [items]="items" />
189
+ * <ng-template #footer>…</ng-template>
190
+ * </ui-sidebar>
191
+ * ```
192
+ */
193
+ declare class UiSidebar {
194
+ /** Edge the sidebar docks to. */
195
+ side: _angular_core.InputSignal<SidebarSide>;
196
+ /** Presentation strategy (see {@link SidebarMode}). */
197
+ mode: _angular_core.InputSignal<SidebarMode>;
198
+ /** Allow folding to the icon rail (static mode). */
199
+ collapsible: _angular_core.InputSignalWithTransform<boolean, unknown>;
200
+ /** Icon-rail state (two-way). Only meaningful in static mode. */
201
+ collapsed: _angular_core.ModelSignal<boolean>;
202
+ /** Offcanvas open state (two-way). Only meaningful in overlay mode. */
203
+ visible: _angular_core.ModelSignal<boolean>;
204
+ /** A collapsed rail floats open on hover / focus (static mode). */
205
+ openOnHover: _angular_core.InputSignalWithTransform<boolean, unknown>;
206
+ /** Show the backdrop (dim + capture) and block background scroll — overlay only. */
207
+ backdrop: _angular_core.InputSignalWithTransform<boolean, unknown>;
208
+ /** Close on backdrop click / `Escape` — overlay only. */
209
+ dismissable: _angular_core.InputSignalWithTransform<boolean, unknown>;
210
+ /** Close the overlay when `Escape` is pressed. */
211
+ closeOnEscape: _angular_core.InputSignalWithTransform<boolean, unknown>;
212
+ /** Render the built-in close button in the overlay presentation. */
213
+ showCloseButton: _angular_core.InputSignalWithTransform<boolean, unknown>;
214
+ /**
215
+ * Auto-switch a static sidebar to an overlay below `breakpoint`. Aligns with
216
+ * the design-system breakpoint scale (`$breakpoint-*`).
217
+ */
218
+ responsive: _angular_core.InputSignalWithTransform<boolean, unknown>;
219
+ /**
220
+ * Viewport width under which a responsive sidebar becomes an offcanvas
221
+ * overlay. Any CSS length; prefer a value from the breakpoint scale
222
+ * (`tabletLandscape` 900px / `desktop` 1200px).
223
+ */
224
+ breakpoint: _angular_core.InputSignal<string>;
225
+ /** Accessible name for the landmark region. */
226
+ ariaLabel: _angular_core.InputSignal<string | undefined>;
227
+ /** Id of an external element naming the region. */
228
+ ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
229
+ /** FontAwesome name of the close button icon. */
230
+ closeIcon: _angular_core.InputSignal<string>;
231
+ /** Accessible name of the close button. */
232
+ closeAriaLabel: _angular_core.InputSignal<string>;
233
+ /** Extra class(es) merged onto the panel surface. */
234
+ styleClass: _angular_core.InputSignal<string | undefined>;
235
+ /**
236
+ * Scope the overlay presentation to the nearest positioned ancestor
237
+ * (`position: absolute`) instead of the viewport, and skip the body scroll
238
+ * lock. Useful to embed a sidebar inside a bounded region (docs previews,
239
+ * split panels).
240
+ */
241
+ contained: _angular_core.InputSignalWithTransform<boolean, unknown>;
242
+ /** Floor z-index for the overlay presentation. */
243
+ baseZIndex: _angular_core.InputSignalWithTransform<number, unknown>;
244
+ /** Disable the open/close animation for this sidebar. */
245
+ motionDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
246
+ /** Header region template (logo, workspace switcher…). */
247
+ protected readonly headerTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
248
+ /** Footer region template (user card, actions…). */
249
+ protected readonly footerTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
250
+ /** Emitted after the overlay becomes visible. */
251
+ shown: _angular_core.OutputEmitterRef<void>;
252
+ /** Emitted after the overlay is hidden. */
253
+ hidden: _angular_core.OutputEmitterRef<void>;
254
+ /** @ignore */
255
+ private readonly panelRef;
256
+ /** @ignore */
257
+ private readonly document;
258
+ /** @ignore */
259
+ private readonly isBrowser;
260
+ /** Stable id of the panel — referenced by `[uiSidebarTrigger]` (`aria-controls`). */
261
+ readonly controlsId: string;
262
+ /** @ignore */
263
+ protected readonly titleId: string;
264
+ /** @ignore This instance currently holds a body scroll lock. */
265
+ private locked;
266
+ /** @ignore Pointer is over the panel (drives `openOnHover`). */
267
+ private readonly hovering;
268
+ /** @ignore Viewport is below `breakpoint` (responsive switch). */
269
+ private readonly belowBreakpoint;
270
+ /** True when the sidebar is presented as a floating overlay. */
271
+ readonly isOverlay: _angular_core.Signal<boolean>;
272
+ /**
273
+ * Resolved icon-rail state exposed to descendants (menus). Always expanded in
274
+ * the overlay presentation, and temporarily expanded while an `openOnHover`
275
+ * rail is hovered / focused.
276
+ */
277
+ readonly effectiveCollapsed: _angular_core.Signal<boolean>;
278
+ /** Whether the trigger should report an expanded state (`aria-expanded`). */
279
+ readonly expanded: _angular_core.Signal<boolean>;
280
+ /** @ignore Layout footprint follows the toggled state, never the hover float. */
281
+ protected readonly railCollapsed: _angular_core.Signal<boolean>;
282
+ /** @ignore Panel is floating over the content (hover-expanded rail). */
283
+ protected readonly floating: _angular_core.Signal<boolean>;
284
+ /** @ignore Classes applied to the panel surface. */
285
+ protected readonly panelClasses: _angular_core.Signal<string>;
286
+ /** @ignore Directional slide preset for the overlay presentation. */
287
+ protected readonly motionPreset: _angular_core.Signal<UiMotionPreset>;
288
+ /** @ignore Effective overlay stacking level. */
289
+ protected readonly zIndex: _angular_core.Signal<number>;
290
+ /** @ignore Id naming the region (external id wins). */
291
+ protected readonly labelledBy: _angular_core.Signal<string | null>;
292
+ /** @ignore Fallback accessible name. */
293
+ protected readonly resolvedAriaLabel: _angular_core.Signal<string | null>;
294
+ constructor();
295
+ /** @ignore Media query for the responsive switch (just under the breakpoint). */
296
+ private readonly mediaQuery;
297
+ /** Toggle the sidebar (visibility in overlay mode, collapse in static mode). */
298
+ toggle(): void;
299
+ /** Open / expand the sidebar. */
300
+ open(): void;
301
+ /** Close / collapse the sidebar. */
302
+ close(): void;
303
+ /** Move focus onto the panel surface. */
304
+ focus(): void;
305
+ /** @ignore Rail hover in/out (drives `openOnHover`). */
306
+ protected onRailPointerEnter(): void;
307
+ /** @ignore */
308
+ protected onRailPointerLeave(): void;
309
+ /** @ignore Keep the rail floating open while focus is inside it. */
310
+ protected onRailFocusIn(): void;
311
+ /** @ignore */
312
+ protected onRailFocusOut(event: FocusEvent): void;
313
+ /** @ignore Escape-to-close (overlay, bubbles from inside the panel). */
314
+ protected onKeydown(event: KeyboardEvent): void;
315
+ /** @ignore Backdrop click dismiss (overlay). */
316
+ protected onBackdropPointerdown(event: PointerEvent): void;
317
+ /** @ignore Release this instance's scroll lock, if held. */
318
+ private releaseLock;
319
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiSidebar, never>;
320
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiSidebar, "ui-sidebar", never, { "side": { "alias": "side"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "openOnHover": { "alias": "openOnHover"; "required": false; "isSignal": true; }; "backdrop": { "alias": "backdrop"; "required": false; "isSignal": true; }; "dismissable": { "alias": "dismissable"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; "isSignal": true; }; "responsive": { "alias": "responsive"; "required": false; "isSignal": true; }; "breakpoint": { "alias": "breakpoint"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "closeIcon": { "alias": "closeIcon"; "required": false; "isSignal": true; }; "closeAriaLabel": { "alias": "closeAriaLabel"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "contained": { "alias": "contained"; "required": false; "isSignal": true; }; "baseZIndex": { "alias": "baseZIndex"; "required": false; "isSignal": true; }; "motionDisabled": { "alias": "motionDisabled"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; "visible": "visibleChange"; "shown": "shown"; "hidden": "hidden"; }, ["headerTemplate", "footerTemplate"], ["*"], true, never>;
321
+ }
322
+
323
+ /**
324
+ * uiSidebarTrigger — toggles a `ui-sidebar` from any element.
325
+ *
326
+ * Wires the accessibility contract between a control (button, menu item, rail…)
327
+ * and the sidebar it operates: reflects `aria-controls` (the panel id) and
328
+ * `aria-expanded` (the resolved open/collapsed state), and toggles on
329
+ * activation. Enter / Space come for free on a native `<button>`.
330
+ *
331
+ * The directive is often placed on a `ui-button` host (a component, not a native
332
+ * `<button>`): the ARIA attributes are applied to the actual interactive
333
+ * descendant (native `<button>`/`<a>`/`[role=button]`), never to the wrapper
334
+ * custom element, so assistive tech reads them off the real accessible node —
335
+ * same convention as `ui-popover`'s trigger handling.
336
+ *
337
+ * @example
338
+ * ```html
339
+ * <button [uiSidebarTrigger]="sb" aria-label="Basculer le menu">☰</button>
340
+ * <ui-sidebar #sb>…</ui-sidebar>
341
+ * ```
342
+ */
343
+ declare class UiSidebarTrigger {
344
+ /** The sidebar this control toggles (e.g. `[uiSidebarTrigger]="sb"`). */
345
+ sidebar: _angular_core.InputSignal<UiSidebar>;
346
+ /** @ignore */
347
+ private readonly hostEl;
348
+ constructor();
349
+ /** @ignore */
350
+ protected onToggle(): void;
351
+ /** @ignore The real interactive node when hosted on a component wrapper (e.g. `ui-button`). */
352
+ private resolveInteractiveEl;
353
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiSidebarTrigger, never>;
354
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UiSidebarTrigger, "[uiSidebarTrigger]", never, { "sidebar": { "alias": "uiSidebarTrigger"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
355
+ }
356
+
357
+ export { UiSidebar, UiSidebarMenu, UiSidebarTrigger };
358
+ export type { SidebarMenuSize, SidebarMode, SidebarSide, UiSidebarMenuItem, UiSidebarMenuItemCommandEvent };
@@ -0,0 +1,52 @@
1
+ import * as _angular_core from '@angular/core';
2
+
3
+ /** Visual shape of the placeholder. */
4
+ type UiSkeletonShape = 'text' | 'circle' | 'rectangle';
5
+ /** Size preset (per-shape default dimensions). */
6
+ type UiSkeletonSize = 'default' | 'small';
7
+ /** Loading animation style. */
8
+ type UiSkeletonAnimation = 'wave' | 'pulse' | 'none';
9
+ /**
10
+ * ui-skeleton — a placeholder shown in place of content while it loads.
11
+ *
12
+ * Renders a single token-colored box whose shape and dimensions come from
13
+ * design tokens. Three shapes (`text`, `circle`, `rectangle`) ship with
14
+ * sensible default sizes; `width` / `height` / `borderRadius` override any of
15
+ * them with a raw CSS value for bespoke layouts (cards, grids, lists, tables).
16
+ *
17
+ * The background color is exposed through the `--ui-skeleton-background` custom
18
+ * property (and the sweeping reflection tint through `--ui-skeleton-shine`) for
19
+ * one-off theming.
20
+ *
21
+ * Accessible: the host is `aria-hidden` so screen readers skip it (loading is a
22
+ * purely visual state); group several skeletons under a container carrying
23
+ * `aria-busy="true"` to announce the loading region. Motion honours the OS
24
+ * reduced-motion preference and the kit-wide `data-motion="off"` switch.
25
+ */
26
+ declare class UiSkeleton {
27
+ /** Shape of the placeholder. */
28
+ shape: _angular_core.InputSignal<UiSkeletonShape>;
29
+ /** Size preset (per-shape default dimensions). */
30
+ size: _angular_core.InputSignal<UiSkeletonSize>;
31
+ /** Raw CSS width, overriding the shape default (e.g. "100%", "10rem"). */
32
+ width: _angular_core.InputSignal<string | undefined>;
33
+ /** Raw CSS height, overriding the shape default (e.g. "1rem", "50px"). */
34
+ height: _angular_core.InputSignal<string | undefined>;
35
+ /** Raw CSS border-radius, overriding the shape default. */
36
+ borderRadius: _angular_core.InputSignal<string | undefined>;
37
+ /** Loading animation (base is `wave` — a reflection sweeping across the box). */
38
+ animation: _angular_core.InputSignal<UiSkeletonAnimation>;
39
+ /** @ignore Inline style overrides (win over the token-driven defaults). */
40
+ protected readonly boxStyle: _angular_core.Signal<{
41
+ width: string | null;
42
+ height: string | null;
43
+ 'border-radius': string | null;
44
+ }>;
45
+ /** @ignore */
46
+ protected readonly classes: _angular_core.Signal<string>;
47
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiSkeleton, never>;
48
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiSkeleton, "ui-skeleton", never, { "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "borderRadius": { "alias": "borderRadius"; "required": false; "isSignal": true; }; "animation": { "alias": "animation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
49
+ }
50
+
51
+ export { UiSkeleton };
52
+ export type { UiSkeletonAnimation, UiSkeletonShape, UiSkeletonSize };
@@ -0,0 +1,127 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { BaseFieldControl } from '@4sh/ui-kit/forms';
3
+
4
+ type SliderOrientation = 'horizontal' | 'vertical';
5
+ /** Model value: a single number, or a `[start, end]` tuple in `range` mode. */
6
+ type SliderValue = number | number[];
7
+ /** A slider handle projected to the view (its live value + track position). */
8
+ interface SliderHandle {
9
+ index: number;
10
+ value: number;
11
+ percent: number;
12
+ }
13
+ /** A step tick projected to the view. */
14
+ interface SliderMark {
15
+ value: number;
16
+ percent: number;
17
+ active: boolean;
18
+ }
19
+ /**
20
+ * ui-slider — headless slider to pick a numeric value (or a range) by dragging
21
+ * a handle along a track.
22
+ *
23
+ * Built on the WAI-ARIA slider pattern: each handle is a `role="slider"` element
24
+ * exposing `aria-valuemin/max/now` and `aria-orientation`, fully keyboard driven
25
+ * (arrows, Page Up/Down, Home/End). Pointer events cover mouse, touch and pen
26
+ * with a single code path. Interactive states (hover/focus/pressed/disabled) are
27
+ * pure CSS driven by `actions.*` / `form.*` design tokens.
28
+ *
29
+ * Works standalone, with `[(ngModel)]`, Reactive Forms or Signal Forms
30
+ * (`[formField]`) — it is a `ControlValueAccessor`. In `range` mode the model is a
31
+ * two-item array, otherwise a single number.
32
+ */
33
+ declare class UiSlider extends BaseFieldControl<SliderValue> {
34
+ /** Minimum boundary value. */
35
+ min: _angular_core.InputSignalWithTransform<number, unknown>;
36
+ /** Maximum boundary value. */
37
+ max: _angular_core.InputSignalWithTransform<number, unknown>;
38
+ /** Increment/decrement granularity (drag snapping + keyboard step). */
39
+ step: _angular_core.InputSignalWithTransform<number, unknown>;
40
+ /** Two handles selecting a `[start, end]` range (the model becomes an array). */
41
+ range: _angular_core.InputSignalWithTransform<boolean, unknown>;
42
+ /** Minimum number of steps kept between the two handles (range mode only). */
43
+ minStepsBetweenHandles: _angular_core.InputSignalWithTransform<number, unknown>;
44
+ /** Renders a tick for every step along the track. */
45
+ marks: _angular_core.InputSignalWithTransform<boolean, unknown>;
46
+ /** Orientation of the slider (drives the arrow keys and layout). */
47
+ orientation: _angular_core.InputSignal<SliderOrientation>;
48
+ /** Accessible name of the start (lower) handle in `range` mode — falls back to `ariaLabel`. */
49
+ ariaLabelStart: _angular_core.InputSignal<string | undefined>;
50
+ /** Accessible name of the end (upper) handle in `range` mode — falls back to `ariaLabel`. */
51
+ ariaLabelEnd: _angular_core.InputSignal<string | undefined>;
52
+ /** Emitted continuously while the value changes (drag, keyboard, track click). */
53
+ sliderChange: _angular_core.OutputEmitterRef<SliderValue>;
54
+ /** Emitted once a drag (or track click) completes — mirrors PrimeNG `onSlideEnd`. */
55
+ slideEnd: _angular_core.OutputEmitterRef<SliderValue>;
56
+ /** Emitted when a handle receives focus. */
57
+ sliderFocus: _angular_core.OutputEmitterRef<FocusEvent>;
58
+ /** Emitted when a handle loses focus. */
59
+ sliderBlur: _angular_core.OutputEmitterRef<FocusEvent>;
60
+ /** @ignore Positioned root: the pointer target and % reference for handles. */
61
+ private readonly root;
62
+ /** @ignore The handle elements (one, or two in range mode). */
63
+ private readonly handleEls;
64
+ /** @ignore Current model value (written by the form or by user interaction).
65
+ * Redeclared over the base signal: a slider always has a numeric value (never `undefined`). */
66
+ protected readonly modelValue: _angular_core.WritableSignal<SliderValue>;
67
+ /** @ignore Index of the handle currently being dragged (null when idle). */
68
+ private readonly activeHandle;
69
+ constructor();
70
+ /** @ignore Normalized `[start, end]` values (range mode). */
71
+ private readonly rangeValues;
72
+ /** @ignore Normalized single value (non-range mode). */
73
+ private readonly singleValue;
74
+ /** @ignore Handles projected to the view (value + position). */
75
+ protected readonly handles: _angular_core.Signal<SliderHandle[]>;
76
+ /** @ignore Filled portion of the track (offset % + length %). */
77
+ protected readonly fill: _angular_core.Signal<{
78
+ start: number;
79
+ size: number;
80
+ }>;
81
+ /** @ignore Step ticks (only when `marks`, capped to keep the DOM sane). */
82
+ protected readonly markList: _angular_core.Signal<SliderMark[]>;
83
+ /** @ignore */
84
+ protected readonly classes: _angular_core.Signal<string>;
85
+ writeValue(value: SliderValue): void;
86
+ /** @ignore */
87
+ protected uidPrefix(): string;
88
+ /** Focus the first handle programmatically. */
89
+ focus(options?: FocusOptions): void;
90
+ /** @ignore Start dragging: pick the closest handle, capture the pointer, seed the value. */
91
+ protected onPointerDown(event: PointerEvent): void;
92
+ /** @ignore */
93
+ protected onPointerMove(event: PointerEvent): void;
94
+ /** @ignore End of drag: release capture and fire `slideEnd`. */
95
+ protected onPointerUp(event: PointerEvent): void;
96
+ /** @ignore Arrow / Page / Home / End move the focused handle. */
97
+ protected onKeyDown(event: KeyboardEvent, index: number): void;
98
+ /** @ignore */
99
+ protected onFocus(event: FocusEvent): void;
100
+ /** @ignore */
101
+ protected onBlur(event: FocusEvent): void;
102
+ /** @ignore Effective step (never 0). */
103
+ private stepSize;
104
+ /** @ignore Value → track position as a 0–100% ratio. */
105
+ private toPercent;
106
+ /** @ignore Pointer coordinate → raw value in [min, max]. */
107
+ private valueFromPointer;
108
+ /** @ignore Closest handle to a value (range mode). */
109
+ private nearestHandle;
110
+ /** @ignore Accessible name of a given handle (distinct per handle in range mode). */
111
+ protected handleAriaLabel(index: number): string | undefined;
112
+ /** @ignore Snap to the step grid, relative to `min`. */
113
+ private snap;
114
+ /** @ignore Round to the step's decimal precision (avoids float drift). */
115
+ private round;
116
+ /** @ignore Clamp to [min, max]. */
117
+ private clamp;
118
+ /** @ignore Snap + clamp + range-gap enforcement, then commit if changed. */
119
+ private updateValue;
120
+ /** @ignore Update the model + propagate to the form and the output. */
121
+ private commit;
122
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiSlider, never>;
123
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiSlider, "ui-slider", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "range": { "alias": "range"; "required": false; "isSignal": true; }; "minStepsBetweenHandles": { "alias": "minStepsBetweenHandles"; "required": false; "isSignal": true; }; "marks": { "alias": "marks"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "ariaLabelStart": { "alias": "ariaLabelStart"; "required": false; "isSignal": true; }; "ariaLabelEnd": { "alias": "ariaLabelEnd"; "required": false; "isSignal": true; }; }, { "sliderChange": "sliderChange"; "slideEnd": "slideEnd"; "sliderFocus": "sliderFocus"; "sliderBlur": "sliderBlur"; }, never, never, true, never>;
124
+ }
125
+
126
+ export { UiSlider };
127
+ export type { SliderOrientation, SliderValue };
@@ -0,0 +1,67 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { TemplateRef } from '@angular/core';
3
+ import { UiIconSize } from '@4sh/ui-kit/ui-icon';
4
+
5
+ type UiSpinnerSize = 'default' | 'small';
6
+ type UiSpinnerOrientation = 'vertical' | 'horizontal';
7
+ /** How the animated mark is rendered (derived from which input is set). */
8
+ type SpinnerMark = 'template' | 'image' | 'icon' | 'svg';
9
+ /**
10
+ * ui-spinner — indeterminate loading indicator (headless).
11
+ *
12
+ * Renders a smooth, token-colored circular spinner by default. The animated
13
+ * mark is fully swappable, in priority order:
14
+ * 1. `spinnerTemplate` — any custom content (TemplateRef)
15
+ * 2. `image` — an image URL (e.g. an animated GIF/SVG loader)
16
+ * 3. `icon` — a FontAwesome icon name (rotated by the component)
17
+ * 4. default — a built-in SVG circle (tunable stroke/fill/duration)
18
+ *
19
+ * Accessible: the root is a `role="status"` live region with an accessible
20
+ * name; the mark is decorative (`aria-hidden`). Motion honours the OS
21
+ * reduced-motion preference and the kit-wide `data-motion="off"` switch.
22
+ */
23
+ declare class UiSpinner {
24
+ /** Size preset (also override the raw box via the `--ui-spinner-size` CSS var). */
25
+ size: _angular_core.InputSignal<UiSpinnerSize>;
26
+ /** Layout of the mark relative to the label (only relevant when `label` is set). */
27
+ orientation: _angular_core.InputSignal<UiSpinnerOrientation>;
28
+ /** Optional visible loading text, rendered inside the live region. */
29
+ label: _angular_core.InputSignal<string | undefined>;
30
+ /** Accessible name. Falls back to the visible `label`, then to "Chargement". */
31
+ ariaLabel: _angular_core.InputSignal<string | undefined>;
32
+ /** Custom mark content; takes precedence over every other mark source. */
33
+ spinnerTemplate: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
34
+ /** Image URL used as the mark (shown as-is — carries its own motion). */
35
+ image: _angular_core.InputSignal<string | undefined>;
36
+ /** Alt text for the image mark (empty = decorative, the default). */
37
+ imageAlt: _angular_core.InputSignal<string>;
38
+ /** FontAwesome icon name used as the mark (rotated by the component). */
39
+ icon: _angular_core.InputSignal<string | undefined>;
40
+ /** Stroke width of the default circle, in the 0–50 viewBox scale. */
41
+ strokeWidth: _angular_core.InputSignal<string | number>;
42
+ /** Fill of the default circle (`none` = ring only). */
43
+ fill: _angular_core.InputSignal<string>;
44
+ /** Duration of one rotation (any CSS time), shared with the icon mark. */
45
+ animationDuration: _angular_core.InputSignal<string>;
46
+ /**
47
+ * Grace delay before the spinner appears, in ms. Prevents a flash of the
48
+ * loader for waits shorter than the delay (a common loading UX best practice).
49
+ */
50
+ delay: _angular_core.InputSignal<number>;
51
+ /** @ignore Visible once the grace delay (if any) has elapsed. */
52
+ protected readonly visible: _angular_core.WritableSignal<boolean>;
53
+ constructor();
54
+ /** @ignore Which mark to render. */
55
+ protected readonly markKind: _angular_core.Signal<SpinnerMark>;
56
+ /** @ignore Icon size matching the spinner box (default → xl, small → default). */
57
+ protected readonly iconSize: _angular_core.Signal<UiIconSize>;
58
+ /** @ignore Accessible name: explicit, else the visible label reads on its own, else a default. */
59
+ protected readonly rootAriaLabel: _angular_core.Signal<string | null>;
60
+ /** @ignore */
61
+ protected readonly classes: _angular_core.Signal<string>;
62
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiSpinner, never>;
63
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiSpinner, "ui-spinner", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "spinnerTemplate": { "alias": "spinnerTemplate"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "imageAlt": { "alias": "imageAlt"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; "fill": { "alias": "fill"; "required": false; "isSignal": true; }; "animationDuration": { "alias": "animationDuration"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
64
+ }
65
+
66
+ export { UiSpinner };
67
+ export type { UiSpinnerOrientation, UiSpinnerSize };