@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,350 @@
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
+ import { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';
7
+
8
+ /** Delimiter used to split the typed text (and pasted text) into several tags. */
9
+ type TagDelimiter = string | RegExp;
10
+ /** Payload of the `tagAdd` output. */
11
+ interface InputTagsAddEvent {
12
+ /** Originating DOM event. */
13
+ originalEvent: Event;
14
+ /** Added value. */
15
+ value: unknown;
16
+ }
17
+ /** Payload of the `tagRemove` output. */
18
+ interface InputTagsRemoveEvent {
19
+ /** Originating DOM event. */
20
+ originalEvent: Event;
21
+ /** Removed value. */
22
+ value: unknown;
23
+ /** Index of the removed value. */
24
+ index: number;
25
+ }
26
+ /** Payload of the `completeMethod` output (typeahead). */
27
+ interface InputTagsCompleteEvent {
28
+ /** Originating DOM event. */
29
+ originalEvent: Event;
30
+ /** Search query. */
31
+ query: string;
32
+ }
33
+ /** Payload of the `optionSelect` output (typeahead). */
34
+ interface InputTagsSelectEvent {
35
+ /** Originating DOM event. */
36
+ originalEvent: Event;
37
+ /** Selected suggestion (original object/primitive). */
38
+ value: unknown;
39
+ }
40
+ /** Context handed to the `#item` template (per tag). */
41
+ interface InputTagsItemContext<T = unknown> {
42
+ /** The tag value (default `$implicit`). */
43
+ $implicit: T;
44
+ /** Same as `$implicit`, named for readability. */
45
+ value: T;
46
+ /** Resolved display label of the tag. */
47
+ label: string;
48
+ /** Index of the tag. */
49
+ index: number;
50
+ /** Removes this tag. */
51
+ onRemove: (event: Event) => void;
52
+ }
53
+ /** Context handed to the `#option` template (per suggestion). */
54
+ interface InputTagsOptionContext<T = unknown> {
55
+ /** The suggestion (default `$implicit`). */
56
+ $implicit: T;
57
+ /** Same as `$implicit`, named for readability. */
58
+ option: T;
59
+ /** Index of the suggestion in the visible list. */
60
+ index: number;
61
+ }
62
+ /** Context handed to the `#group` template. */
63
+ interface InputTagsGroupContext<G = unknown> {
64
+ /** The group object (default `$implicit`). */
65
+ $implicit: G;
66
+ /** Same as `$implicit`, named for readability. */
67
+ group: G;
68
+ }
69
+ /** @ignore Flat view of one suggestion. */
70
+ interface TagEntry {
71
+ value: unknown;
72
+ label: string;
73
+ disabled: boolean;
74
+ original: unknown;
75
+ }
76
+ /** @ignore Rendered suggestion row. */
77
+ type TagRow = {
78
+ kind: 'group';
79
+ key: string;
80
+ label: string;
81
+ original: unknown;
82
+ } | {
83
+ kind: 'option';
84
+ key: string;
85
+ id: string;
86
+ index: number;
87
+ entry: TagEntry;
88
+ present: boolean;
89
+ };
90
+ /**
91
+ * ui-input-tags — headless multi-value tag entry built on the `ui-field` shell
92
+ * (label + box + helper). Tags are entered by typing and pressing `Enter`
93
+ * (and/or a `delimiter`), and removed with `Backspace` / the × action.
94
+ *
95
+ * The model is an **array** driven through {@link BaseFormField}
96
+ * (`ControlValueAccessor`) — compatible with `[(ngModel)]`, Reactive Forms and
97
+ * Signal Forms (`[formField]`, stable since Angular 22). Options: `max`,
98
+ * `allowDuplicate`, `addOnBlur` / `addOnTab` / `addOnPaste`, and a `typeahead`
99
+ * mode (a CDK-overlay suggestions panel fed by the parent via `completeMethod`).
100
+ *
101
+ * A11y: the tag list is a `role="listbox"` (`aria-orientation="horizontal"`);
102
+ * each tag is a `role="option"` with roving focus (`←` / `→` between tags,
103
+ * `Backspace` / `Delete` to delete). The editable input follows the combobox
104
+ * pattern in `typeahead` mode.
105
+ *
106
+ * @example
107
+ * ```html
108
+ * <ui-input-tags label="Mots-clés" [(ngModel)]="keywords" placeholder="Ajouter…" />
109
+ * ```
110
+ */
111
+ declare class UiInputTags<T = unknown> extends BaseFormField<T[]> {
112
+ /** Native placeholder shown when the input is empty (and no tag exists). */
113
+ placeholder: _angular_core.InputSignal<string | undefined>;
114
+ /** Maximum number of tags allowed (`undefined` = unlimited). */
115
+ max: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
116
+ /** Delimiter that splits typed/pasted text into several tags (in addition to `Enter`). */
117
+ delimiter: _angular_core.InputSignal<TagDelimiter | undefined>;
118
+ /** Allow the same value to be added several times. */
119
+ allowDuplicate: _angular_core.InputSignalWithTransform<boolean, unknown>;
120
+ /** Add the current input as a tag when the field loses focus. */
121
+ addOnBlur: _angular_core.InputSignalWithTransform<boolean, unknown>;
122
+ /** Add the current input as a tag on `Tab`. */
123
+ addOnTab: _angular_core.InputSignalWithTransform<boolean, unknown>;
124
+ /** Split pasted text with the `delimiter` (or whitespace/newlines) and add each part. */
125
+ addOnPaste: _angular_core.InputSignalWithTransform<boolean, unknown>;
126
+ /** Max character length of a single typed tag. */
127
+ maxLength: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
128
+ /** Color family of the default `ui-chip` tags (ignored when an `#item` template is used). */
129
+ chipLevel: _angular_core.InputSignal<UiFeedbackLevel>;
130
+ /** Intensity of the default `ui-chip` tags: `low` (subtle, default) or `high` (solid). */
131
+ chipSubLevel: _angular_core.InputSignal<UiSubLevel>;
132
+ /** Pill shape (default) vs rounded-rectangle for the default `ui-chip` tags. */
133
+ chipRounded: _angular_core.InputSignalWithTransform<boolean, unknown>;
134
+ /** Show a suggestions dropdown as the user types (fed via `completeMethod`). */
135
+ typeahead: _angular_core.InputSignalWithTransform<boolean, unknown>;
136
+ /** Suggestions to display — set by the parent in response to `completeMethod`. */
137
+ suggestions: _angular_core.InputSignal<readonly unknown[]>;
138
+ /** Field name (dot-path) read as a suggestion label. */
139
+ optionLabel: _angular_core.InputSignal<string | undefined>;
140
+ /** Field name (dot-path) read as the value added to the model. */
141
+ optionValue: _angular_core.InputSignal<string | undefined>;
142
+ /** Field name (dot-path) read as a suggestion's disabled flag. */
143
+ optionDisabled: _angular_core.InputSignal<string | undefined>;
144
+ /** Property compared for value equality (duplicate detection on objects). */
145
+ dataKey: _angular_core.InputSignal<string | undefined>;
146
+ /** Treat `suggestions` as groups. */
147
+ group: _angular_core.InputSignalWithTransform<boolean, unknown>;
148
+ /** Field name of a group's label. */
149
+ optionGroupLabel: _angular_core.InputSignal<string>;
150
+ /** Field name of a group's children array. */
151
+ optionGroupChildren: _angular_core.InputSignal<string>;
152
+ /** Minimum number of characters before `completeMethod` is emitted. */
153
+ minLength: _angular_core.InputSignalWithTransform<number, unknown>;
154
+ /** Debounce (ms) between the last keystroke and `completeMethod`. */
155
+ delay: _angular_core.InputSignalWithTransform<number, unknown>;
156
+ /** Emit a query as soon as the input is focused (before any typing). */
157
+ completeOnFocus: _angular_core.InputSignalWithTransform<boolean, unknown>;
158
+ /** Max height of the suggestions list (CSS size). Defaults from the SCSS. */
159
+ scrollHeight: _angular_core.InputSignal<string | undefined>;
160
+ /** Visually focus the first suggestion when the panel opens. */
161
+ autoOptionFocus: _angular_core.InputSignalWithTransform<boolean, unknown>;
162
+ /** Visually focus the suggestion under the mouse pointer. */
163
+ focusOnHover: _angular_core.InputSignalWithTransform<boolean, unknown>;
164
+ /** Auto-flip the panel above the input when space is lacking below. */
165
+ autoFlip: _angular_core.InputSignalWithTransform<boolean, unknown>;
166
+ /** Extra class(es) applied to the suggestions panel. */
167
+ panelStyleClass: _angular_core.InputSignal<string | undefined>;
168
+ /** Message shown when a query returns no suggestion. */
169
+ emptyMessage: _angular_core.InputSignal<string>;
170
+ /** Accessible label of each tag's remove action — `{0}` is the tag label. */
171
+ removeTagLabel: _angular_core.InputSignal<string>;
172
+ /** Emitted when a tag is added. */
173
+ tagAdd: _angular_core.OutputEmitterRef<InputTagsAddEvent>;
174
+ /** Emitted when a tag is removed. */
175
+ tagRemove: _angular_core.OutputEmitterRef<InputTagsRemoveEvent>;
176
+ /** Emitted whenever the model changes. */
177
+ valueChange: _angular_core.OutputEmitterRef<T[]>;
178
+ /** Emitted (debounced) when a typeahead query should run. */
179
+ completeMethod: _angular_core.OutputEmitterRef<InputTagsCompleteEvent>;
180
+ /** Emitted when a suggestion is selected. */
181
+ optionSelect: _angular_core.OutputEmitterRef<InputTagsSelectEvent>;
182
+ /** Emitted when the suggestions panel opens. */
183
+ opened: _angular_core.OutputEmitterRef<void>;
184
+ /** Emitted when the suggestions panel closes. */
185
+ closed: _angular_core.OutputEmitterRef<void>;
186
+ /** Emitted when the input receives focus. */
187
+ inputFocus: _angular_core.OutputEmitterRef<FocusEvent>;
188
+ /** Emitted when the input loses focus. */
189
+ inputBlur: _angular_core.OutputEmitterRef<FocusEvent>;
190
+ /** Custom tag template: `<ng-template #item let-value let-remove="onRemove">`. */
191
+ protected readonly itemTemplate: _angular_core.Signal<TemplateRef<InputTagsItemContext<T>> | undefined>;
192
+ /** Custom suggestion template: `<ng-template #option let-option>`. */
193
+ protected readonly optionTemplate: _angular_core.Signal<TemplateRef<InputTagsOptionContext<T>> | undefined>;
194
+ /** Custom group-header template: `<ng-template #group let-group>`. */
195
+ protected readonly groupTemplate: _angular_core.Signal<TemplateRef<InputTagsGroupContext<unknown>> | undefined>;
196
+ /** @ignore Component root (overlay origin). */
197
+ private readonly containerEl;
198
+ /** @ignore Editable input. */
199
+ private readonly inputEl;
200
+ /** @ignore Panel root element. */
201
+ private readonly panelEl;
202
+ /** @ignore Tag option elements (roving focus). `read: ElementRef` covers both the
203
+ * plain `<span>` (template mode) and the `<ui-chip>` host (default mode). */
204
+ private readonly tagEls;
205
+ /** @ignore */
206
+ protected readonly panelOpen: _angular_core.WritableSignal<boolean>;
207
+ /** @ignore */
208
+ protected readonly overlayOrigin: _angular_core.WritableSignal<Element | null>;
209
+ /** @ignore */
210
+ protected readonly overlayWidth: _angular_core.WritableSignal<number | null>;
211
+ /** @ignore Text currently typed in the input. */
212
+ protected readonly inputText: _angular_core.WritableSignal<string>;
213
+ /** @ignore Index of the roving-focused tag (-1 = the input holds focus). */
214
+ protected readonly focusedTag: _angular_core.WritableSignal<number>;
215
+ /** @ignore Index of the visually focused suggestion (-1 = none). */
216
+ protected readonly focusedOption: _angular_core.WritableSignal<number>;
217
+ /** @ignore A query has been emitted and is awaiting fresh suggestions. */
218
+ private queryDirty;
219
+ /** @ignore Debounce handle for `completeMethod`. */
220
+ private searchTimeout;
221
+ constructor();
222
+ /** @ignore Current tags. */
223
+ protected readonly tagValues: _angular_core.Signal<T[]>;
224
+ /** @ignore Tags as display rows (value + resolved label). */
225
+ protected readonly tagRows: _angular_core.Signal<{
226
+ value: T;
227
+ index: number;
228
+ label: string;
229
+ removeAriaLabel: string;
230
+ }[]>;
231
+ /** @ignore */
232
+ protected readonly listboxId: _angular_core.Signal<string>;
233
+ /** @ignore */
234
+ protected readonly panelListId: _angular_core.Signal<string>;
235
+ /** @ignore Icon size aligned with the field size. */
236
+ protected readonly iconSize: _angular_core.Signal<UiIconSize>;
237
+ /** @ignore Tags can be removed (not disabled / read-only). */
238
+ protected readonly canRemove: _angular_core.Signal<boolean>;
239
+ /** @ignore The tag cap has been reached. */
240
+ protected readonly isFull: _angular_core.Signal<boolean>;
241
+ /** @ignore The input accepts typing. */
242
+ protected readonly canType: _angular_core.Signal<boolean>;
243
+ /** @ignore The placeholder is shown only while there is no tag. */
244
+ protected readonly effectivePlaceholder: _angular_core.Signal<string>;
245
+ /** @ignore Flat entries (no groups). */
246
+ private readonly flatEntries;
247
+ /** @ignore Groups of entries. */
248
+ private readonly groupEntries;
249
+ /** @ignore Rendered suggestion rows (already-added values are marked present/disabled). */
250
+ protected readonly visibleRows: _angular_core.Signal<TagRow[]>;
251
+ /** @ignore Visible option rows only (visual-focus space). */
252
+ protected readonly visibleOptions: _angular_core.Signal<{
253
+ kind: "option";
254
+ key: string;
255
+ id: string;
256
+ index: number;
257
+ entry: TagEntry;
258
+ present: boolean;
259
+ }[]>;
260
+ /** @ignore */
261
+ protected readonly optionCount: _angular_core.Signal<number>;
262
+ /** @ignore */
263
+ protected readonly showEmpty: _angular_core.Signal<boolean>;
264
+ /** @ignore id of the visually focused suggestion (aria-activedescendant). */
265
+ protected readonly activeDescendant: _angular_core.Signal<string | null>;
266
+ /** @ignore */
267
+ protected readonly overlayPositions: _angular_core.Signal<_angular_cdk_overlay.ConnectedPosition[]>;
268
+ writeValue(value: T[]): void;
269
+ /** Moves focus to the input. */
270
+ focus(options?: FocusOptions): void;
271
+ /** @ignore Add one value as a tag (respects `max` and `allowDuplicate`). Returns true if added. */
272
+ private addValue;
273
+ /** @ignore Add the typed text (or its delimiter-split parts) as tag(s). */
274
+ private addFromInput;
275
+ /** Removes the tag at `index`. */
276
+ removeAt(index: number, event: Event): void;
277
+ /** @ignore Propagate a user-driven value change (view → form). */
278
+ private commit;
279
+ /** @ignore */
280
+ protected onInput(event: Event): void;
281
+ /** @ignore Split the text, add every completed part, keep the trailing remainder in the input. */
282
+ private flushDelimited;
283
+ /** @ignore */
284
+ protected onKeydown(event: KeyboardEvent): void;
285
+ /** @ignore */
286
+ protected onPaste(event: ClipboardEvent): void;
287
+ /** @ignore */
288
+ protected onInputFocus(event: FocusEvent): void;
289
+ /** @ignore */
290
+ protected onInputBlur(event: FocusEvent): void;
291
+ /** @ignore Focus / clicks on the field box (but not a tag / button) land on the input. */
292
+ protected onBoxMousedown(event: MouseEvent): void;
293
+ /** @ignore */
294
+ protected onTagKeydown(event: KeyboardEvent, index: number): void;
295
+ /** @ignore */
296
+ private focusTag;
297
+ /** @ignore */
298
+ private focusInput;
299
+ /** @ignore */
300
+ private runSearch;
301
+ /** @ignore */
302
+ private open;
303
+ /** @ignore */
304
+ protected close(focusInput?: boolean): void;
305
+ /** @ignore */
306
+ private reopen;
307
+ /** @ignore */
308
+ protected onOptionClick(row: Extract<TagRow, {
309
+ kind: 'option';
310
+ }>, event: Event): void;
311
+ /** @ignore Keep focus on the input when clicking an option. */
312
+ protected onOptionMousedown(event: MouseEvent): void;
313
+ /** @ignore */
314
+ protected onOptionMouseEnter(row: Extract<TagRow, {
315
+ kind: 'option';
316
+ }>): void;
317
+ /** @ignore */
318
+ private selectRow;
319
+ /** @ignore */
320
+ private selectFocusedOption;
321
+ /** @ignore Move the visual focus, skipping disabled options (no wrap). */
322
+ private moveOption;
323
+ /** @ignore */
324
+ private scrollOptionIntoView;
325
+ /** @ignore Display label for a tag value. */
326
+ private labelOfValue;
327
+ /** @ignore Shared option resolution (see `option-resolver.ts`). */
328
+ private readonly resolver;
329
+ /** @ignore */
330
+ private toEntry;
331
+ /** @ignore Read a (dot-path) field from an object. */
332
+ private getField;
333
+ /** @ignore */
334
+ private resolveValue;
335
+ /** @ignore */
336
+ private resolveLabel;
337
+ /** @ignore */
338
+ private asText;
339
+ /** @ignore Whether a value is already a tag. */
340
+ private isPresent;
341
+ /** @ignore Value equality — by `dataKey` for objects, strict otherwise. */
342
+ private equals;
343
+ /** @ignore Split text by the delimiter (string or regex); whole text when none. */
344
+ private split;
345
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiInputTags<any>, never>;
346
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiInputTags<any>, "ui-input-tags", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "delimiter": { "alias": "delimiter"; "required": false; "isSignal": true; }; "allowDuplicate": { "alias": "allowDuplicate"; "required": false; "isSignal": true; }; "addOnBlur": { "alias": "addOnBlur"; "required": false; "isSignal": true; }; "addOnTab": { "alias": "addOnTab"; "required": false; "isSignal": true; }; "addOnPaste": { "alias": "addOnPaste"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "chipLevel": { "alias": "chipLevel"; "required": false; "isSignal": true; }; "chipSubLevel": { "alias": "chipSubLevel"; "required": false; "isSignal": true; }; "chipRounded": { "alias": "chipRounded"; "required": false; "isSignal": true; }; "typeahead": { "alias": "typeahead"; "required": false; "isSignal": true; }; "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; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "completeOnFocus": { "alias": "completeOnFocus"; "required": false; "isSignal": true; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; "isSignal": true; }; "autoOptionFocus": { "alias": "autoOptionFocus"; "required": false; "isSignal": true; }; "focusOnHover": { "alias": "focusOnHover"; "required": false; "isSignal": true; }; "autoFlip": { "alias": "autoFlip"; "required": false; "isSignal": true; }; "panelStyleClass": { "alias": "panelStyleClass"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "removeTagLabel": { "alias": "removeTagLabel"; "required": false; "isSignal": true; }; }, { "tagAdd": "tagAdd"; "tagRemove": "tagRemove"; "valueChange": "valueChange"; "completeMethod": "completeMethod"; "optionSelect": "optionSelect"; "opened": "opened"; "closed": "closed"; "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; }, ["itemTemplate", "optionTemplate", "groupTemplate"], never, true, never>;
347
+ }
348
+
349
+ export { UiInputTags };
350
+ export type { InputTagsAddEvent, InputTagsCompleteEvent, InputTagsGroupContext, InputTagsItemContext, InputTagsOptionContext, InputTagsRemoveEvent, InputTagsSelectEvent, TagDelimiter };
@@ -0,0 +1,78 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { BaseFormField } from '@4sh/ui-kit/forms';
3
+ import { UiIconSize } from '@4sh/ui-kit/ui-icon';
4
+
5
+ /** Supported text types (numeric has its dedicated `ui-input-number` component). */
6
+ type InputType = 'text' | 'password' | 'email' | 'tel' | 'url' | 'search';
7
+ /**
8
+ * ui-input — headless composed text field, built on the `ui-field` shell
9
+ * (label + box + helper) + a native `<input>`.
10
+ *
11
+ * Covers all text types (text/email/tel/url/search/**password**). Password
12
+ * reveal, search clearing, etc. are handled via the **right action zone**
13
+ * (`iconRightAriaLabel` + `iconRightClick`).
14
+ *
15
+ * Standalone, `[(ngModel)]` or reactive forms (ControlValueAccessor via BaseFormField).
16
+ * For numbers → `ui-input-number`, for masks → `ui-input-mask`.
17
+ */
18
+ declare class UiInput extends BaseFormField<string> {
19
+ /** Native input type. */
20
+ type: _angular_core.InputSignal<InputType>;
21
+ /**
22
+ * Display-only value (bypasses the CVA model). For composite hosts
23
+ * (e.g. `ui-datepicker`) that own the visible text and read it back via
24
+ * `valueChange` — leave unset when using `[(ngModel)]`/reactive forms.
25
+ */
26
+ value: _angular_core.InputSignal<string | undefined>;
27
+ /** `aria-haspopup` forwarded to the native input (popup trigger hosts). */
28
+ ariaHasPopup: _angular_core.InputSignal<"menu" | "listbox" | "tree" | "grid" | "dialog" | undefined>;
29
+ /** `aria-expanded` forwarded to the native input (popup trigger hosts). */
30
+ ariaExpanded: _angular_core.InputSignal<boolean | undefined>;
31
+ /** `aria-controls` forwarded to the native input (popup trigger hosts). */
32
+ ariaControls: _angular_core.InputSignal<string | undefined>;
33
+ /** Native placeholder. */
34
+ placeholder: _angular_core.InputSignal<string | undefined>;
35
+ /** Suffix unit (e.g. "%", "@domain"). Shown when provided. */
36
+ unit: _angular_core.InputSignal<string | undefined>;
37
+ /** Left FontAwesome icon name (decorative). */
38
+ iconLeft: _angular_core.InputSignal<string | undefined>;
39
+ /** Right FontAwesome icon name. */
40
+ iconRight: _angular_core.InputSignal<string | undefined>;
41
+ /**
42
+ * Accessible name of the right icon. **When provided, the right icon becomes a
43
+ * clickable action zone** (square, full-height button) that emits `iconRightClick`.
44
+ */
45
+ iconRightAriaLabel: _angular_core.InputSignal<string | undefined>;
46
+ /** Native autocomplete. */
47
+ autocomplete: _angular_core.InputSignal<string | undefined>;
48
+ /** Native maxlength. */
49
+ maxlength: _angular_core.InputSignal<number | undefined>;
50
+ /** Emitted on each input with the new value. */
51
+ valueChange: _angular_core.OutputEmitterRef<string>;
52
+ /** Emitted on click of the right action zone (active when `iconRightAriaLabel` is set). */
53
+ iconRightClick: _angular_core.OutputEmitterRef<MouseEvent>;
54
+ /** Emitted when the input receives focus. */
55
+ inputFocus: _angular_core.OutputEmitterRef<FocusEvent>;
56
+ /** Emitted when the input loses focus. */
57
+ inputBlur: _angular_core.OutputEmitterRef<FocusEvent>;
58
+ /** @ignore */
59
+ private readonly inputEl;
60
+ /** @ignore Icon size aligned with the field size. */
61
+ protected readonly iconSize: _angular_core.Signal<UiIconSize>;
62
+ /** @ignore The right icon is an action zone (has an accessible name). */
63
+ protected readonly hasRightAction: _angular_core.Signal<boolean>;
64
+ /** Focuses the input. */
65
+ focus(options?: FocusOptions): void;
66
+ /** Native `<input>` element — composite hosts that own `value` (e.g. `ui-datepicker`)
67
+ * need direct DOM access to control the caret while reformatting text as typed. */
68
+ nativeInputElement(): HTMLInputElement;
69
+ /** @ignore Input: single source of the value (view → form). */
70
+ protected onInput(): void;
71
+ /** @ignore */
72
+ protected onBlur(event: FocusEvent): void;
73
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiInput, never>;
74
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiInput, "ui-input", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "ariaHasPopup": { "alias": "ariaHasPopup"; "required": false; "isSignal": true; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; "isSignal": true; }; "ariaControls": { "alias": "ariaControls"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "iconLeft": { "alias": "iconLeft"; "required": false; "isSignal": true; }; "iconRight": { "alias": "iconRight"; "required": false; "isSignal": true; }; "iconRightAriaLabel": { "alias": "iconRightAriaLabel"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "maxlength": { "alias": "maxlength"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "iconRightClick": "iconRightClick"; "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; }, never, never, true, never>;
75
+ }
76
+
77
+ export { UiInput };
78
+ export type { InputType };
@@ -0,0 +1,36 @@
1
+ import * as _angular_core from '@angular/core';
2
+
3
+ type LabelSize = 'default' | 'small';
4
+ /**
5
+ * ui-label — form field label (mirrors the Figma `ui-label` component).
6
+ *
7
+ * Renders a native <label> with an optional required marker (*). Used standalone
8
+ * or composed inside form components (ui-checkbox, ui-radio, ui-input…).
9
+ *
10
+ * Theming hook: the text color reads `--ui-label-color` first, so a parent form
11
+ * component can drive the label state (hover, disabled…) without piercing this
12
+ * component's style encapsulation:
13
+ *
14
+ * ```scss
15
+ * .ui-checkbox:hover { --ui-label-color: var(--form-high-content-hover); }
16
+ * ```
17
+ */
18
+ declare class UiLabel {
19
+ /** Label text (or project content via <ng-content>). */
20
+ label: _angular_core.InputSignal<string | undefined>;
21
+ /** Shows the required marker (*). */
22
+ required: _angular_core.InputSignalWithTransform<boolean, unknown>;
23
+ /** Text size. */
24
+ size: _angular_core.InputSignal<LabelSize>;
25
+ /** `for` attribute — id of the labelled form element. */
26
+ for: _angular_core.InputSignal<string | undefined>;
27
+ /** Disabled styling (cascades from the parent form component). */
28
+ disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
29
+ /** @ignore */
30
+ protected readonly classes: _angular_core.Signal<string>;
31
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiLabel, never>;
32
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiLabel, "ui-label", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "for": { "alias": "for"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
33
+ }
34
+
35
+ export { UiLabel };
36
+ export type { LabelSize };
@@ -0,0 +1,72 @@
1
+ import * as _angular_core from '@angular/core';
2
+
3
+ type LinkSize = 'default' | 'small';
4
+ /**
5
+ * ui-link — inline textual link (renders a real <a>), for prose / navigation.
6
+ *
7
+ * Choose by semantics, not appearance:
8
+ * • Something that NAVIGATES (URL/route) → this component, or `ui-button`
9
+ * with `href`/`routerLink` when it must look like a button.
10
+ * • Something that triggers an ACTION (submit, open a modal…) → `ui-button`.
11
+ *
12
+ * Accepts a plain `href` (external) or a `routerLink` (internal navigation).
13
+ * Interactive states (hover/focus/pressed) are CSS-driven, never Angular props.
14
+ */
15
+ declare class UiLink {
16
+ /** Visible link text (optional when using projected content or icon-only). */
17
+ label: _angular_core.InputSignal<string | undefined>;
18
+ ariaLabel: _angular_core.InputSignal<string | undefined>;
19
+ size: _angular_core.InputSignal<LinkSize>;
20
+ /** External / plain URL. */
21
+ href: _angular_core.InputSignal<string | undefined>;
22
+ /** Angular router target (internal navigation, uses RouterLink). */
23
+ routerLink: _angular_core.InputSignal<string | unknown[] | undefined>;
24
+ /** Anchor target (e.g. "_blank"). */
25
+ target: _angular_core.InputSignal<string | undefined>;
26
+ /** Anchor rel. Defaults to "noopener noreferrer" for external links. */
27
+ rel: _angular_core.InputSignal<string | undefined>;
28
+ /** Convenience for external links: sets target="_blank" + a safe rel. */
29
+ external: _angular_core.InputSignalWithTransform<boolean, unknown>;
30
+ /** FontAwesome icon name shown before the text. */
31
+ iconLeft: _angular_core.InputSignal<string | undefined>;
32
+ /** FontAwesome icon name shown after the text. */
33
+ iconRight: _angular_core.InputSignal<string | undefined>;
34
+ disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
35
+ tabindex: _angular_core.InputSignal<number | undefined>;
36
+ /** aria-current exposed on the anchor (e.g. "page" for the current breadcrumb item). */
37
+ ariaCurrent: _angular_core.InputSignal<string | undefined>;
38
+ /** Emitted on click (never when disabled). Navigation stays native. */
39
+ linkClick: _angular_core.OutputEmitterRef<MouseEvent>;
40
+ /** Fired when the link receives focus. */
41
+ linkFocus: _angular_core.OutputEmitterRef<FocusEvent>;
42
+ /** Fired when the link loses focus. */
43
+ linkBlur: _angular_core.OutputEmitterRef<FocusEvent>;
44
+ /** @ignore */
45
+ private readonly hostEl;
46
+ constructor();
47
+ /** @ignore Icon size follows the text size. */
48
+ protected readonly iconSize: _angular_core.Signal<"default" | "sm">;
49
+ /** @ignore No visible text but at least one icon → icon-only. */
50
+ protected readonly isIconOnly: _angular_core.Signal<boolean>;
51
+ /** @ignore Link mode uses the Angular RouterLink directive. */
52
+ protected readonly useRouterLink: _angular_core.Signal<boolean>;
53
+ /** @ignore Effective anchor target (external forces _blank). */
54
+ protected readonly computedTarget: _angular_core.Signal<string | null>;
55
+ /** @ignore Anchor rel: explicit, or a safe default for _blank / external. */
56
+ protected readonly computedRel: _angular_core.Signal<string | null>;
57
+ /** @ignore Tabindex: -1 when disabled (an <a> has no native disabled). */
58
+ protected readonly linkTabindex: _angular_core.Signal<number | null>;
59
+ /** @ignore Accessible name: explicit, or the label when icon-only. */
60
+ protected readonly accessibleLabel: _angular_core.Signal<string | null>;
61
+ /** @ignore */
62
+ protected readonly classes: _angular_core.Signal<string>;
63
+ /** Sets the focus on the link (useful for controlling focus programmatically). */
64
+ focus(options?: FocusOptions): void;
65
+ /** @ignore */
66
+ protected onClick(event: MouseEvent): void;
67
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiLink, never>;
68
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiLink, "ui-link", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; "rel": { "alias": "rel"; "required": false; "isSignal": true; }; "external": { "alias": "external"; "required": false; "isSignal": true; }; "iconLeft": { "alias": "iconLeft"; "required": false; "isSignal": true; }; "iconRight": { "alias": "iconRight"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; "ariaCurrent": { "alias": "ariaCurrent"; "required": false; "isSignal": true; }; }, { "linkClick": "linkClick"; "linkFocus": "linkFocus"; "linkBlur": "linkBlur"; }, never, ["*"], true, never>;
69
+ }
70
+
71
+ export { UiLink };
72
+ export type { LinkSize };