@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,411 @@
1
+ import * as _angular_cdk_overlay from '@angular/cdk/overlay';
2
+ import * as _angular_core from '@angular/core';
3
+ import { TemplateRef } from '@angular/core';
4
+ import { BaseFormField } from '@4sh/ui-kit/forms';
5
+ import { UiIconSize } from '@4sh/ui-kit/ui-icon';
6
+
7
+ /** Model value: the selected suggestion (or its `optionValue`), free text, an array (`multiple`), or `null`. */
8
+ type AutocompleteValue<T = unknown> = T | string | T[] | null;
9
+ /** How the dropdown trigger builds its query. */
10
+ type AutocompleteDropdownMode = 'blank' | 'current';
11
+ /** Payload of the `completeMethod` output — the parent fills `suggestions` from it. */
12
+ interface AutocompleteCompleteEvent {
13
+ /** Originating DOM event (keystroke, dropdown click, focus). */
14
+ originalEvent: Event;
15
+ /** Current query text (empty string is valid — e.g. a `blank` dropdown). */
16
+ query: string;
17
+ }
18
+ /** Context handed to the `#item` template. */
19
+ interface AutocompleteItemContext<T = unknown> {
20
+ /** The original suggestion (default `$implicit`). */
21
+ $implicit: T;
22
+ /** Same as `$implicit`, named for readability. */
23
+ option: T;
24
+ /** Whether this suggestion is the current value. */
25
+ selected: boolean;
26
+ /** Index of the suggestion in the visible list. */
27
+ index: number;
28
+ }
29
+ /** Context handed to the `#selectedItem` template (once per selected value, `multiple`). */
30
+ interface AutocompleteSelectedItemContext<T = unknown> {
31
+ /** The original selected suggestion (default `$implicit`). */
32
+ $implicit: T;
33
+ /** Same as `$implicit`, named for readability. */
34
+ option: T;
35
+ /** Index among the selected values. */
36
+ index: number;
37
+ /** Removes this value (e.g. wire it to a removable chip). */
38
+ remove: () => void;
39
+ }
40
+ /** Context handed to the `#group` template. */
41
+ interface AutocompleteGroupContext<G = unknown> {
42
+ /** The original group object (default `$implicit`). */
43
+ $implicit: G;
44
+ /** Same as `$implicit`, named for readability. */
45
+ group: G;
46
+ }
47
+ /** Payload of the `lazyLoad` output (rendered range of the virtual viewport). */
48
+ interface AutocompleteLazyLoadEvent {
49
+ /** Index of the first rendered row. */
50
+ first: number;
51
+ /** Index after the last rendered row (exclusive). */
52
+ last: number;
53
+ }
54
+ /** @ignore Flat view of one suggestion (logic source). */
55
+ interface AcEntry {
56
+ value: unknown;
57
+ label: string;
58
+ disabled: boolean;
59
+ original: unknown;
60
+ }
61
+ /** @ignore Rendered row: a group header or a suggestion. */
62
+ type AcRow = {
63
+ kind: 'group';
64
+ key: string;
65
+ label: string;
66
+ original: unknown;
67
+ } | {
68
+ kind: 'option';
69
+ key: string;
70
+ id: string;
71
+ index: number;
72
+ entry: AcEntry;
73
+ selected: boolean;
74
+ };
75
+ /**
76
+ * ui-autocomplete — headless suggestion field built on the `ui-field` shell
77
+ * (label + box + helper) with a token-styled suggestions panel in a CDK overlay.
78
+ *
79
+ * Two-way bound via `[(ngModel)]` (or reactive forms) through
80
+ * {@link BaseFormField}. Typing emits `completeMethod` (debounced by `delay`,
81
+ * gated by `minLength`); the parent answers by updating `suggestions`. Supports
82
+ * primitive or object suggestions (`optionLabel` / `optionValue` /
83
+ * `optionDisabled`), grouped suggestions, a `dropdown` trigger
84
+ * (`dropdownMode`), a `multiple` mode (array model, removable chips in the
85
+ * field, `unique`, `maxSelectedLabels`), `forceSelection`, `showClear`,
86
+ * `loading`, configurable
87
+ * focus behaviour (`autoOptionFocus` / `selectOnFocus` / `focusOnHover`) and
88
+ * CDK virtual scrolling (plus lazy loading).
89
+ *
90
+ * The trigger is a real `<input>` following the WAI-ARIA combobox pattern
91
+ * (`role="combobox"` + `aria-activedescendant`: focus never leaves the input,
92
+ * suggestions are only visually focused).
93
+ *
94
+ * Customisation: the `#item`, `#selectedItem`, `#group`, `#header`, `#footer`
95
+ * and `#empty` templates, `panelStyleClass`, and the local SCSS variables.
96
+ *
97
+ * @example
98
+ * ```html
99
+ * <ui-autocomplete label="Pays" [(ngModel)]="country"
100
+ * [suggestions]="results()" optionLabel="name"
101
+ * (completeMethod)="search($event)" />
102
+ * ```
103
+ */
104
+ declare class UiAutocomplete<T = unknown> extends BaseFormField<AutocompleteValue<T>> {
105
+ /** Suggestions to display — set by the parent in response to `completeMethod`. */
106
+ suggestions: _angular_core.InputSignal<readonly unknown[]>;
107
+ /** Field name (dot-path) to read a label from, when suggestions are objects. */
108
+ optionLabel: _angular_core.InputSignal<string | undefined>;
109
+ /** Field name (dot-path) to read the value from, when suggestions are objects. */
110
+ optionValue: _angular_core.InputSignal<string | undefined>;
111
+ /** Field name (dot-path) to read the disabled flag from, when suggestions are objects. */
112
+ optionDisabled: _angular_core.InputSignal<string | undefined>;
113
+ /** Property used to compare object values for equality (highlighting the current value). */
114
+ dataKey: _angular_core.InputSignal<string | undefined>;
115
+ /** Treat `suggestions` as groups (`optionGroupLabel` + `optionGroupChildren`). */
116
+ group: _angular_core.InputSignalWithTransform<boolean, unknown>;
117
+ /** Field name of a group's label. */
118
+ optionGroupLabel: _angular_core.InputSignal<string>;
119
+ /** Field name of a group's children array. */
120
+ optionGroupChildren: _angular_core.InputSignal<string>;
121
+ /** Native placeholder shown when the input is empty. */
122
+ placeholder: _angular_core.InputSignal<string | undefined>;
123
+ /** Minimum number of characters before `completeMethod` is emitted while typing. */
124
+ minLength: _angular_core.InputSignalWithTransform<number, unknown>;
125
+ /** Debounce (ms) between the last keystroke and `completeMethod`. */
126
+ delay: _angular_core.InputSignalWithTransform<number, unknown>;
127
+ /** Emit a query as soon as the input is focused (before any typing). */
128
+ completeOnFocus: _angular_core.InputSignalWithTransform<boolean, unknown>;
129
+ /** Show a trigger button that queries suggestions on click. */
130
+ dropdown: _angular_core.InputSignalWithTransform<boolean, unknown>;
131
+ /** `blank` queries with an empty string, `current` with the input's current text. */
132
+ dropdownMode: _angular_core.InputSignal<AutocompleteDropdownMode>;
133
+ /** Accessible name of the dropdown trigger. */
134
+ dropdownAriaLabel: _angular_core.InputSignal<string>;
135
+ /** FontAwesome icon of the dropdown trigger. */
136
+ dropdownIcon: _angular_core.InputSignal<string>;
137
+ /**
138
+ * Validate the typed text against the suggestions on blur: if it matches
139
+ * none, the input is cleared so the model always holds a real suggestion.
140
+ */
141
+ forceSelection: _angular_core.InputSignalWithTransform<boolean, unknown>;
142
+ /** Multi-selection: the model is an array, each pick renders as a removable chip in the field. */
143
+ multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
144
+ /** With `multiple`: ignore picks whose value is already selected (no duplicates). */
145
+ unique: _angular_core.InputSignalWithTransform<boolean, unknown>;
146
+ /** With `multiple`: max number of chips rendered; the rest collapses behind `overflowLabel`. */
147
+ maxSelectedLabels: _angular_core.InputSignal<number | undefined>;
148
+ /** With `multiple`: format of the collapsed-count chip (`{0}` = hidden count). */
149
+ overflowLabel: _angular_core.InputSignal<string>;
150
+ /** With `multiple`: accessible label of each chip's remove action — `{0}` is the chip label. */
151
+ removeTagLabel: _angular_core.InputSignal<string>;
152
+ /** Show a clear (×) action when the input holds text. */
153
+ showClear: _angular_core.InputSignalWithTransform<boolean, unknown>;
154
+ /** Accessible name of the clear action. */
155
+ clearAriaLabel: _angular_core.InputSignal<string>;
156
+ /** Loading state: a spinner replaces the dropdown trigger while a query runs. */
157
+ loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
158
+ /** Message shown when a query returns no suggestion. */
159
+ emptyMessage: _angular_core.InputSignal<string>;
160
+ /** Render the empty-state row when there is no suggestion. */
161
+ showEmptyMessage: _angular_core.InputSignalWithTransform<boolean, unknown>;
162
+ /** Visually focus the first suggestion when the panel opens. */
163
+ autoOptionFocus: _angular_core.InputSignalWithTransform<boolean, unknown>;
164
+ /** Set the value as soon as a suggestion is visually focused with the keyboard. */
165
+ selectOnFocus: _angular_core.InputSignalWithTransform<boolean, unknown>;
166
+ /** Visually focus the suggestion under the mouse pointer. */
167
+ focusOnHover: _angular_core.InputSignalWithTransform<boolean, unknown>;
168
+ /** Render the suggestions through a CDK virtual-scroll viewport. */
169
+ virtualScroll: _angular_core.InputSignalWithTransform<boolean, unknown>;
170
+ /** Fixed height (px) of one row — required by the virtual scroller. */
171
+ virtualScrollItemSize: _angular_core.InputSignalWithTransform<number, unknown>;
172
+ /** With `virtualScroll`: emit `lazyLoad` with the rendered range (lazy loading). */
173
+ lazy: _angular_core.InputSignalWithTransform<boolean, unknown>;
174
+ /** Max height of the suggestions list (CSS size, e.g. `'320px'`). Defaults from the SCSS. */
175
+ scrollHeight: _angular_core.InputSignal<string | undefined>;
176
+ /**
177
+ * Auto-flip the panel above the input when there isn't enough room below
178
+ * (default). Set `false` to lock it below the input regardless of space.
179
+ */
180
+ autoFlip: _angular_core.InputSignalWithTransform<boolean, unknown>;
181
+ /** Extra class(es) applied to the panel (scoped custom styling). */
182
+ panelStyleClass: _angular_core.InputSignal<string | undefined>;
183
+ /** Emitted (debounced) when a query should be run — fill `suggestions` from it. */
184
+ completeMethod: _angular_core.OutputEmitterRef<AutocompleteCompleteEvent>;
185
+ /** Emitted whenever the value changes (selection, typing, clear). */
186
+ valueChange: _angular_core.OutputEmitterRef<AutocompleteValue<T>>;
187
+ /** Emitted when a suggestion is picked (payload is the original suggestion). */
188
+ optionSelect: _angular_core.OutputEmitterRef<T>;
189
+ /** With `multiple`: emitted when a selected value is removed (payload is the removed suggestion). */
190
+ optionUnselect: _angular_core.OutputEmitterRef<T>;
191
+ /** Emitted when the panel opens. */
192
+ opened: _angular_core.OutputEmitterRef<void>;
193
+ /** Emitted when the panel closes. */
194
+ closed: _angular_core.OutputEmitterRef<void>;
195
+ /** Emitted when the value is cleared. */
196
+ cleared: _angular_core.OutputEmitterRef<void>;
197
+ /** Emitted when the dropdown trigger is clicked. */
198
+ dropdownClick: _angular_core.OutputEmitterRef<AutocompleteCompleteEvent>;
199
+ /** Emitted when the virtual viewport's rendered range changes (`virtualScroll` + `lazy`). */
200
+ lazyLoad: _angular_core.OutputEmitterRef<AutocompleteLazyLoadEvent>;
201
+ /** Emitted when the input receives focus. */
202
+ inputFocus: _angular_core.OutputEmitterRef<FocusEvent>;
203
+ /** Emitted when the input loses focus. */
204
+ inputBlur: _angular_core.OutputEmitterRef<FocusEvent>;
205
+ /** Custom suggestion template: `<ng-template #item let-option let-selected="selected">`. */
206
+ protected readonly itemTemplate: _angular_core.Signal<TemplateRef<AutocompleteItemContext<T>> | undefined>;
207
+ /** Custom selected-value template (per selected value, `multiple`): `<ng-template #selectedItem let-option let-remove="remove">`. */
208
+ protected readonly selectedItemTemplate: _angular_core.Signal<TemplateRef<AutocompleteSelectedItemContext<T>> | undefined>;
209
+ /** Custom group-header template: `<ng-template #group let-group>`. */
210
+ protected readonly groupTemplate: _angular_core.Signal<TemplateRef<AutocompleteGroupContext<unknown>> | undefined>;
211
+ /** Free content pinned above the list. */
212
+ protected readonly headerTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
213
+ /** Free content pinned under the list. */
214
+ protected readonly footerTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
215
+ /** Custom empty-state template. */
216
+ protected readonly emptyTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
217
+ /** @ignore Component root (overlay origin + outside-focus detection). */
218
+ private readonly containerEl;
219
+ /** @ignore Focusable input (combobox). */
220
+ private readonly inputEl;
221
+ /** @ignore Panel root element (for scrolling the focused option into view). */
222
+ private readonly panelEl;
223
+ /** @ignore Virtual-scroll viewport (lazy range + scrollToIndex). */
224
+ private readonly viewport;
225
+ /** @ignore Rendered chips (`multiple` mode, roving focus). */
226
+ private readonly tagEls;
227
+ /** @ignore */
228
+ protected readonly panelOpen: _angular_core.WritableSignal<boolean>;
229
+ /** @ignore Element the overlay is anchored to (the field box). */
230
+ protected readonly overlayOrigin: _angular_core.WritableSignal<Element | null>;
231
+ /** @ignore Panel width, locked to the field box width on open. */
232
+ protected readonly overlayWidth: _angular_core.WritableSignal<number | null>;
233
+ /** @ignore Text currently shown in the `<input>`. */
234
+ protected readonly inputText: _angular_core.WritableSignal<string>;
235
+ /** @ignore Index of the visually focused option among the visible options (-1 = none). */
236
+ protected readonly focusedIndex: _angular_core.WritableSignal<number>;
237
+ /** @ignore Index of the chip holding the roving focus (-1 = the input, `multiple` mode). */
238
+ protected readonly focusedTag: _angular_core.WritableSignal<number>;
239
+ /** @ignore Entries recorded at pick time so chip labels survive suggestion churn (`multiple`). */
240
+ private readonly selectionCache;
241
+ /** @ignore A query has been emitted and is awaiting fresh suggestions (feeds `completeOnFocus`). */
242
+ private queryDirty;
243
+ /** @ignore Debounce handle for `completeMethod`. */
244
+ private searchTimeout;
245
+ /** @ignore A written value whose label could not be resolved yet (see `writeValue`). */
246
+ private readonly pendingLabelSync;
247
+ constructor();
248
+ /** @ignore */
249
+ protected readonly listboxId: _angular_core.Signal<string>;
250
+ /** @ignore Icon size aligned with the field size. */
251
+ protected readonly iconSize: _angular_core.Signal<UiIconSize>;
252
+ /** @ignore Flat entries (no groups). */
253
+ private readonly flatEntries;
254
+ /** @ignore Groups of entries (when `group` is enabled). */
255
+ private readonly groupEntries;
256
+ /** @ignore Rendered rows: suggestions + their group headers, with stable ids. */
257
+ protected readonly visibleRows: _angular_core.Signal<AcRow[]>;
258
+ /** @ignore Visible option rows only (visual-focus space). */
259
+ protected readonly visibleOptions: _angular_core.Signal<{
260
+ kind: "option";
261
+ key: string;
262
+ id: string;
263
+ index: number;
264
+ entry: AcEntry;
265
+ selected: boolean;
266
+ }[]>;
267
+ /** @ignore aria-setsize of the visible listbox. */
268
+ protected readonly optionCount: _angular_core.Signal<number>;
269
+ /** @ignore trackBy of the virtual list. */
270
+ protected readonly trackRow: (_: number, row: AcRow) => string;
271
+ /** @ignore The input holds text. */
272
+ protected readonly hasText: _angular_core.Signal<boolean>;
273
+ /** @ignore The clear action is shown. */
274
+ protected readonly showClearButton: _angular_core.Signal<boolean>;
275
+ /** @ignore Selected values in `multiple` mode (always an array). */
276
+ protected readonly selectedValues: _angular_core.Signal<unknown[]>;
277
+ /** @ignore One row per selected value (label resolved from the pick-time cache first). */
278
+ protected readonly tagRows: _angular_core.Signal<{
279
+ value: unknown;
280
+ index: number;
281
+ label: string;
282
+ removeAriaLabel: string;
283
+ }[]>;
284
+ /** @ignore Rows actually rendered as chips (`maxSelectedLabels` cap). */
285
+ protected readonly visibleTagRows: _angular_core.Signal<{
286
+ value: unknown;
287
+ index: number;
288
+ label: string;
289
+ removeAriaLabel: string;
290
+ }[]>;
291
+ /** @ignore Number of selected values collapsed behind the overflow chip. */
292
+ protected readonly overflowCount: _angular_core.Signal<number>;
293
+ /** @ignore Rendered overflow chip label (e.g. `(+2 autres)`). */
294
+ protected readonly overflowText: _angular_core.Signal<string>;
295
+ /** @ignore Contexts handed to the `#selectedItem` template (one per displayed value). */
296
+ protected readonly selectedItemContexts: _angular_core.Signal<AutocompleteSelectedItemContext<T>[]>;
297
+ /** @ignore Placeholder hidden as soon as values are selected (`multiple`). */
298
+ protected readonly effectivePlaceholder: _angular_core.Signal<string>;
299
+ /** @ignore Chips are removable unless the field is disabled/readonly. */
300
+ protected readonly canRemove: _angular_core.Signal<boolean>;
301
+ /** @ignore The empty-state row is rendered. */
302
+ protected readonly showEmpty: _angular_core.Signal<boolean>;
303
+ /** @ignore id of the visually focused option (for aria-activedescendant). */
304
+ protected readonly activeDescendant: _angular_core.Signal<string | null>;
305
+ /** @ignore Below the input, flipping above when `autoFlip` and space is lacking. */
306
+ protected readonly overlayPositions: _angular_core.Signal<_angular_cdk_overlay.ConnectedPosition[]>;
307
+ /** @ignore Concrete viewport height (px) for the virtual scroller. */
308
+ protected readonly viewportHeight: _angular_core.Signal<string>;
309
+ /** @ignore `scrollHeight` parsed to px, with size-based defaults (matches the SCSS). */
310
+ private readonly scrollHeightPx;
311
+ writeValue(value: AutocompleteValue<T>): void;
312
+ /** @ignore Best-effort label seed for values written from the form, from the current suggestions. */
313
+ private seedSelectionCache;
314
+ /** Moves focus to the input. */
315
+ focus(options?: FocusOptions): void;
316
+ /** @ignore */
317
+ private open;
318
+ /** @ignore */
319
+ protected close(focusInput?: boolean): void;
320
+ /** @ignore First visually focused option when the panel opens. */
321
+ private initialFocusIndex;
322
+ /** @ignore Typing: view → form (free text unless `forceSelection`) + debounced query. */
323
+ protected onInput(event: Event): void;
324
+ /** @ignore Emit a query and open the panel. */
325
+ private runSearch;
326
+ /** @ignore */
327
+ protected onDropdownClick(event: MouseEvent): void;
328
+ /** @ignore */
329
+ protected onInputFocus(event: FocusEvent): void;
330
+ /** @ignore Mark touched + `forceSelection` validation when focus leaves the component. */
331
+ protected onInputBlur(event: FocusEvent): void;
332
+ /**
333
+ * @ignore `forceSelection`: keep the model in sync with a real suggestion.
334
+ * The text is matched (case/diacritics-insensitive) against a known label;
335
+ * on no match the field is reset so the model never holds free text.
336
+ */
337
+ private validateForceSelection;
338
+ /** @ignore Clear action (does not bubble to the input). */
339
+ protected onClearClick(event: MouseEvent): void;
340
+ /** Clears the value. */
341
+ clear(): void;
342
+ /** @ignore Keyboard on the input (combobox pattern). */
343
+ protected onInputKeydown(event: KeyboardEvent): void;
344
+ /** @ignore Re-open the panel with the current suggestions (no re-query). */
345
+ private reopen;
346
+ /** @ignore */
347
+ protected onOptionClick(row: Extract<AcRow, {
348
+ kind: 'option';
349
+ }>, event: Event): void;
350
+ /** @ignore Keep the focus on the input when clicking an option. */
351
+ protected onOptionMousedown(event: MouseEvent): void;
352
+ /** @ignore */
353
+ protected onOptionMouseEnter(row: Extract<AcRow, {
354
+ kind: 'option';
355
+ }>): void;
356
+ /** @ignore Pick a suggestion: set the value + display its label. */
357
+ private selectEntry;
358
+ /** @ignore */
359
+ private selectFocused;
360
+ /** @ignore Propagate a user-driven value change (view → form). */
361
+ private commit;
362
+ /** @ignore Move the visual focus, skipping disabled options (no wrap). */
363
+ private moveFocus;
364
+ /** @ignore Focus the first (`1`) or last (`-1`) enabled option. */
365
+ private focusEdge;
366
+ /** @ignore Apply a visual-focus move (+ select-on-focus, + scroll into view). */
367
+ private setFocusedIndex;
368
+ /** @ignore Keep the visually focused option visible ('auto' — smooth is unreliable in throttled tabs). */
369
+ private scrollFocusedIntoView;
370
+ /** @ignore Label displayed for a model value (best-effort against the suggestions). */
371
+ /** Remove the selected value at `index` (`multiple` mode). */
372
+ removeAt(index: number): void;
373
+ /** @ignore Roving keyboard on a chip (`multiple` mode). */
374
+ protected onTagKeydown(event: KeyboardEvent, index: number): void;
375
+ /** @ignore Clicking the box's empty area focuses the input. */
376
+ protected onBoxMousedown(event: MouseEvent): void;
377
+ /** @ignore Move the roving focus onto a chip. */
378
+ private focusTag;
379
+ /** @ignore Return the roving focus to the input. */
380
+ private focusInput;
381
+ /** @ignore Label of a selected value: pick-time cache first, then the current suggestions. */
382
+ private labelOfSelected;
383
+ /** @ignore Original suggestion of a selected value (pick-time cache first, else the raw value). */
384
+ private originalOfSelected;
385
+ private labelOfValue;
386
+ /** @ignore Suggestion entry matching a model value, if currently known. */
387
+ private entryOfValue;
388
+ /** @ignore Shared option resolution (see `option-resolver.ts`). */
389
+ private readonly resolver;
390
+ /** @ignore */
391
+ private toEntry;
392
+ /** @ignore Read a (dot-path) field from an object. */
393
+ private getField;
394
+ /** @ignore */
395
+ private resolveValue;
396
+ /** @ignore */
397
+ private resolveLabel;
398
+ /** @ignore */
399
+ private asText;
400
+ /** @ignore Whether a resolved value is the current model value. */
401
+ private isValueSelected;
402
+ /** @ignore Value equality — by `dataKey` for objects, strict otherwise. */
403
+ private equals;
404
+ /** @ignore Case- and diacritics-insensitive comparison text. */
405
+ private normalize;
406
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiAutocomplete<any>, never>;
407
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiAutocomplete<any>, "ui-autocomplete", never, { "suggestions": { "alias": "suggestions"; "required": false; "isSignal": true; }; "optionLabel": { "alias": "optionLabel"; "required": false; "isSignal": true; }; "optionValue": { "alias": "optionValue"; "required": false; "isSignal": true; }; "optionDisabled": { "alias": "optionDisabled"; "required": false; "isSignal": true; }; "dataKey": { "alias": "dataKey"; "required": false; "isSignal": true; }; "group": { "alias": "group"; "required": false; "isSignal": true; }; "optionGroupLabel": { "alias": "optionGroupLabel"; "required": false; "isSignal": true; }; "optionGroupChildren": { "alias": "optionGroupChildren"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "completeOnFocus": { "alias": "completeOnFocus"; "required": false; "isSignal": true; }; "dropdown": { "alias": "dropdown"; "required": false; "isSignal": true; }; "dropdownMode": { "alias": "dropdownMode"; "required": false; "isSignal": true; }; "dropdownAriaLabel": { "alias": "dropdownAriaLabel"; "required": false; "isSignal": true; }; "dropdownIcon": { "alias": "dropdownIcon"; "required": false; "isSignal": true; }; "forceSelection": { "alias": "forceSelection"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "unique": { "alias": "unique"; "required": false; "isSignal": true; }; "maxSelectedLabels": { "alias": "maxSelectedLabels"; "required": false; "isSignal": true; }; "overflowLabel": { "alias": "overflowLabel"; "required": false; "isSignal": true; }; "removeTagLabel": { "alias": "removeTagLabel"; "required": false; "isSignal": true; }; "showClear": { "alias": "showClear"; "required": false; "isSignal": true; }; "clearAriaLabel": { "alias": "clearAriaLabel"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "showEmptyMessage": { "alias": "showEmptyMessage"; "required": false; "isSignal": true; }; "autoOptionFocus": { "alias": "autoOptionFocus"; "required": false; "isSignal": true; }; "selectOnFocus": { "alias": "selectOnFocus"; "required": false; "isSignal": true; }; "focusOnHover": { "alias": "focusOnHover"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; "isSignal": true; }; "autoFlip": { "alias": "autoFlip"; "required": false; "isSignal": true; }; "panelStyleClass": { "alias": "panelStyleClass"; "required": false; "isSignal": true; }; }, { "completeMethod": "completeMethod"; "valueChange": "valueChange"; "optionSelect": "optionSelect"; "optionUnselect": "optionUnselect"; "opened": "opened"; "closed": "closed"; "cleared": "cleared"; "dropdownClick": "dropdownClick"; "lazyLoad": "lazyLoad"; "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; }, ["itemTemplate", "selectedItemTemplate", "groupTemplate", "headerTemplate", "footerTemplate", "emptyTemplate"], never, true, never>;
408
+ }
409
+
410
+ export { UiAutocomplete };
411
+ export type { AutocompleteCompleteEvent, AutocompleteDropdownMode, AutocompleteGroupContext, AutocompleteItemContext, AutocompleteLazyLoadEvent, AutocompleteSelectedItemContext, AutocompleteValue };
@@ -0,0 +1,17 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ /**
4
+ * ui-avatar-group — stacks a set of `ui-avatar` instances with a slight overlap.
5
+ *
6
+ * Headless layout helper: it only arranges its projected children. Overflow
7
+ * ("+N") is expressed by projecting a trailing label avatar, not computed here.
8
+ *
9
+ * Uses `ViewEncapsulation.None` so the overlap rule can reach the projected
10
+ * `ui-avatar` host elements; all styling stays namespaced under `.ui-avatar-group`.
11
+ */
12
+ declare class UiAvatarGroup {
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiAvatarGroup, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiAvatarGroup, "ui-avatar-group", never, {}, {}, never, ["*"], true, never>;
15
+ }
16
+
17
+ export { UiAvatarGroup };
@@ -0,0 +1,55 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { UiIconSize } from '@4sh/ui-kit/ui-icon';
3
+
4
+ type AvatarSize = 'tiny' | 'small' | 'default' | 'large';
5
+ type AvatarShape = 'circle' | 'square';
6
+ /** Rendering mode resolved from the provided inputs. */
7
+ type AvatarMode = 'image' | 'label' | 'icon';
8
+ /**
9
+ * ui-avatar — represents a user or entity with an image, initials or an icon.
10
+ *
11
+ * The visual mode is inferred from the inputs (image > label > icon), mirroring the
12
+ * Figma `Type` variant without a redundant prop. A projected `[avatarBadge]` slot
13
+ * overlays a status indicator (typically a `ui-badge`) on the top-right corner.
14
+ *
15
+ * Accessible: exposes an accessible name via `alt` (image) or `ariaLabel`; a bare icon
16
+ * avatar with no name is treated as decorative (aria-hidden).
17
+ */
18
+ declare class UiAvatar {
19
+ /** Image source (image mode). Highest priority. */
20
+ image: _angular_core.InputSignal<string | undefined>;
21
+ /** Alternative text for the image (accessible name in image mode). */
22
+ alt: _angular_core.InputSignal<string | undefined>;
23
+ /** Short text / initials (label mode). Used when no image is set. */
24
+ label: _angular_core.InputSignal<string | undefined>;
25
+ /** FontAwesome icon name (icon mode). Fallback when neither image nor label is set. */
26
+ icon: _angular_core.InputSignal<string>;
27
+ /** Avatar size. */
28
+ size: _angular_core.InputSignal<AvatarSize>;
29
+ /** Avatar shape. */
30
+ shape: _angular_core.InputSignal<AvatarShape>;
31
+ /** Explicit accessible name (recommended for image and icon modes). */
32
+ ariaLabel: _angular_core.InputSignal<string | undefined>;
33
+ /** Emitted when the image fails to load (the avatar then falls back to label/icon). */
34
+ imageError: _angular_core.OutputEmitterRef<Event>;
35
+ /** @ignore Set once the current image source failed to load. */
36
+ private readonly imageFailed;
37
+ constructor();
38
+ /** @ignore Rendering mode resolved from the inputs (image > label > icon). */
39
+ protected readonly mode: _angular_core.Signal<AvatarMode>;
40
+ /** @ignore Icon size mapped from the avatar size. */
41
+ protected readonly iconSize: _angular_core.Signal<UiIconSize>;
42
+ /** @ignore Accessible name for the label/icon modes (image mode uses `alt`). */
43
+ protected readonly accessibleName: _angular_core.Signal<string | null>;
44
+ /** @ignore Icon avatar with no accessible name → purely decorative. */
45
+ protected readonly isDecorative: _angular_core.Signal<boolean>;
46
+ /** @ignore */
47
+ protected readonly classes: _angular_core.Signal<string>;
48
+ /** @ignore */
49
+ protected onImageError(event: Event): void;
50
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiAvatar, never>;
51
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiAvatar, "ui-avatar", never, { "image": { "alias": "image"; "required": false; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "imageError": "imageError"; }, never, ["[avatarBadge]"], true, never>;
52
+ }
53
+
54
+ export { UiAvatar };
55
+ export type { AvatarMode, AvatarShape, AvatarSize };
@@ -0,0 +1,38 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { UiIconSize } from '@4sh/ui-kit/ui-icon';
3
+ import { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';
4
+
5
+ type BadgeSize = 'default' | 'small' | 'large';
6
+ /**
7
+ * ui-badge — small status / count indicator.
8
+ */
9
+ declare class UiBadge {
10
+ value: _angular_core.InputSignal<string | number | undefined>;
11
+ level: _angular_core.InputSignal<UiFeedbackLevel>;
12
+ subLevel: _angular_core.InputSignal<UiSubLevel>;
13
+ size: _angular_core.InputSignal<BadgeSize>;
14
+ icon: _angular_core.InputSignal<string | undefined>;
15
+ ariaLabel: _angular_core.InputSignal<string | undefined>;
16
+ constructor();
17
+ /** @ignore There is text here */
18
+ protected readonly hasText: _angular_core.Signal<boolean>;
19
+ /** @ignore There is an icon. */
20
+ protected readonly hasIcon: _angular_core.Signal<boolean>;
21
+ /** @ignore Icon only (no text). */
22
+ protected readonly isIconOnly: _angular_core.Signal<boolean>;
23
+ /** @ignore Dot: no text and no icon. */
24
+ protected readonly isDot: _angular_core.Signal<boolean>;
25
+ /**
26
+ * @ignore Single glyph: a lone icon, or a single character (counter "1", symbol "★").
27
+ */
28
+ protected readonly isSingle: _angular_core.Signal<boolean>;
29
+ /** @ignore Bullet: Neither text nor icon. */
30
+ protected readonly iconSize: _angular_core.Signal<UiIconSize>;
31
+ /** @ignore */
32
+ protected readonly classes: _angular_core.Signal<string>;
33
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiBadge, never>;
34
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiBadge, "ui-badge", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "subLevel": { "alias": "subLevel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
35
+ }
36
+
37
+ export { UiBadge };
38
+ export type { BadgeSize };