@thalassic/ui 0.14.2 → 0.15.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thalassic/ui",
3
- "version": "0.14.2",
3
+ "version": "0.15.0",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "^21.0.0",
@@ -1,184 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InputSignal, InputSignalWithTransform, InjectionToken, Signal, TemplateRef, ModelSignal, WritableSignal, ElementRef, OutputEmitterRef, TrackByFunction, OnDestroy, EnvironmentProviders } from '@angular/core';
3
- import * as _thalassic_ui from '@thalassic/ui';
2
+ import { ModelSignal, InputSignal, InputSignalWithTransform, Signal, TemplateRef, InjectionToken, WritableSignal, ElementRef, OutputEmitterRef, TrackByFunction, OnDestroy, EnvironmentProviders } from '@angular/core';
4
3
  import { FormUiControl, WithOptionalFieldTree, ValidationError, FormValueControl, FormCheckboxControl, FieldTree } from '@angular/forms/signals';
5
- import { CdkDialogContainer, DialogRole, DialogRef } from '@angular/cdk/dialog';
6
- import { ComponentType } from '@angular/cdk/portal';
7
4
  import { Day } from 'date-fns';
5
+ import { Point } from '@thalassic/core';
8
6
  import { FlexibleConnectedPositionStrategyOrigin, ConnectedPosition } from '@angular/cdk/overlay';
7
+ import * as _thalassic_ui from '@thalassic/ui';
8
+ import { CdkDialogContainer, DialogRole, DialogRef } from '@angular/cdk/dialog';
9
+ import { ComponentType } from '@angular/cdk/portal';
9
10
  import { SafeHtml } from '@angular/platform-browser';
10
- import { Point } from '@thalassic/core';
11
11
  import { DataSource } from '@angular/cdk/table';
12
12
 
13
- type color = 'primary' | 'secondary' | 'tertiary' | 'success' | 'info' | 'warning' | 'danger';
14
-
15
- type controlSize = 'sm' | 'md' | 'lg';
16
-
17
- type orientation = 'horizontal' | 'vertical';
18
-
19
- type overlayPosition = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
20
-
21
- type size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
22
-
23
- interface tlsUiConfigProvider {
24
- components: {
25
- alert?: Partial<AlertConfig>;
26
- button?: Partial<ButtonConfig>;
27
- checkbox?: Partial<CheckboxConfig>;
28
- chip?: Partial<ChipConfig>;
29
- chipControl?: Partial<ChipControlConfig>;
30
- chipGroup?: Partial<ChipGroupConfig>;
31
- chipInput?: Partial<ChipInputConfig>;
32
- dateTimePicker?: Partial<DateTimePickerConfig>;
33
- dialog?: Partial<DialogConfig>;
34
- divider?: Partial<DividerConfig>;
35
- fileUploader?: Partial<FileUploaderConfig>;
36
- formControlGroup?: Partial<FormControlGroupConfig>;
37
- formItem?: Partial<FormItemConfig>;
38
- icon?: Partial<IconConfig>;
39
- input?: Partial<InputConfig>;
40
- loader?: Partial<LoaderConfig>;
41
- menu?: Partial<MenuConfig>;
42
- multiSelect?: Partial<MultiSelectConfig>;
43
- pagination?: Partial<PaginationConfig>;
44
- password?: Partial<PasswordConfig>;
45
- pinInput?: Partial<PinInputConfig>;
46
- popover?: Partial<PopoverConfig>;
47
- radioButton?: Partial<RadioButtonConfig>;
48
- select?: Partial<SelectConfig>;
49
- skeleton?: Partial<SkeletonConfig>;
50
- stepper?: Partial<StepperConfig>;
51
- switch?: Partial<SwitchConfig>;
52
- table?: Partial<TableConfig>;
53
- tabs?: Partial<TabsConfig>;
54
- textarea?: Partial<TextareaConfig>;
55
- toggleGroup?: Partial<ToggleGroupConfig>;
56
- tooltip?: Partial<TooltipConfig>;
57
- };
58
- }
59
-
60
- type buttonType = 'submit' | 'reset' | 'button';
61
- type buttonVariant = 'filled' | 'outlined' | 'text' | 'elevated';
62
- type buttonColor = color;
63
-
64
- declare class Alert {
65
- private _config;
66
- readonly color: InputSignal<buttonColor>;
67
- readonly label: InputSignal<string | null>;
68
- readonly hideLabel: InputSignalWithTransform<boolean, unknown>;
69
- protected displayLabel: i0.Signal<string>;
70
- protected hostClasses: i0.Signal<string[]>;
71
- protected hostRole: i0.Signal<"alert" | "note">;
72
- static ɵfac: i0.ɵɵFactoryDeclaration<Alert, never>;
73
- static ɵcmp: i0.ɵɵComponentDeclaration<Alert, "tls-alert", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "hideLabel": { "alias": "hideLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
74
- }
75
-
76
- type alertColor = color;
77
-
78
- interface AlertConfig {
79
- color: alertColor;
80
- label: Record<alertColor, string> | string;
81
- hideLabel: boolean;
82
- }
83
- declare const DEFAULT_ALERT_CONFIG: AlertConfig;
84
-
85
- declare const ALERT_CONFIG: InjectionToken<AlertConfig>;
86
-
87
- declare abstract class ButtonBase {
88
- protected _config: _thalassic_ui.ButtonConfig;
89
- protected APPLY_HOST_CLASSES: boolean;
90
- readonly disabled: InputSignalWithTransform<boolean, unknown>;
91
- readonly icon: InputSignalWithTransform<boolean, unknown>;
92
- readonly color: InputSignal<buttonColor>;
93
- readonly variant: InputSignal<buttonVariant>;
94
- readonly size: InputSignal<controlSize>;
95
- readonly rounded: InputSignalWithTransform<boolean, unknown>;
96
- /** Whether the button stretches to fill its container's width. */
97
- readonly fluid: InputSignalWithTransform<boolean, unknown>;
98
- protected classes: i0.Signal<string[]>;
99
- static ɵfac: i0.ɵɵFactoryDeclaration<ButtonBase, never>;
100
- static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonBase, never, never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
101
- }
102
-
103
- declare class Button extends ButtonBase {
104
- private _routerLink;
105
- private _router;
106
- private _locationStrategy;
107
- protected APPLY_HOST_CLASSES: boolean;
108
- /** The text label displayed inside the button. Takes priority over projected content. */
109
- readonly label: InputSignal<string | undefined>;
110
- readonly type: InputSignal<buttonType>;
111
- /** An optional URL that causes the button to render as an anchor link. */
112
- readonly href: InputSignal<string | null>;
113
- readonly tabindex: InputSignal<string>;
114
- protected isLink: Signal<boolean>;
115
- /**
116
- * Resolved URL placed on the inner anchor so the browser treats it as a real link
117
- * (enables "Open in new tab", middle-click, status-bar preview, etc.). An explicit
118
- * `href` wins; otherwise the URL is derived from the host `routerLink`.
119
- */
120
- protected linkHref: Signal<string | null>;
121
- /**
122
- * Keeps navigation correct when the host carries a `routerLink` while the inner anchor
123
- * exposes a real `href`:
124
- * - modified / non-primary clicks bubble to the browser so it can open a new tab, and
125
- * are stopped from reaching the host RouterLink to avoid a duplicate in-app navigation;
126
- * - a plain left click defers to the host RouterLink for SPA navigation, so the anchor's
127
- * own full-page navigation is prevented.
128
- */
129
- protected onLinkClick(event: MouseEvent): void;
130
- static ɵfac: i0.ɵɵFactoryDeclaration<Button, never>;
131
- static ɵcmp: i0.ɵɵComponentDeclaration<Button, "tls-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
132
- }
133
-
134
- declare class ButtonDirective extends ButtonBase {
135
- static ɵfac: i0.ɵɵFactoryDeclaration<ButtonDirective, never>;
136
- static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonDirective, "[tlsButton]", never, {}, {}, never, never, true, never>;
137
- }
138
-
139
- interface ButtonConfig {
140
- color: buttonColor;
141
- variant: buttonVariant;
142
- size: controlSize;
143
- type: buttonType;
144
- fluid: boolean;
145
- }
146
- declare const DEFAULT_BUTTON_CONFIG: ButtonConfig;
147
-
148
- declare const BUTTON_CONFIG: InjectionToken<ButtonConfig>;
149
-
150
- type chipColor = color;
151
- type chipVariant = 'filled' | 'outlined' | 'text';
152
- interface ChipContext {
153
- checked: boolean;
154
- disabled: boolean;
155
- readonly: boolean;
156
- touched: boolean;
157
- dirty: boolean;
158
- invalid: boolean;
159
- pending: boolean;
160
- }
161
- type chipTemplateContext = {
162
- $implicit: ChipContext;
163
- };
164
-
165
- declare class Chip {
166
- private _config;
167
- readonly label: InputSignal<string | undefined>;
168
- readonly color: InputSignal<chipColor>;
169
- readonly variant: InputSignal<chipVariant>;
170
- readonly size: InputSignal<controlSize>;
171
- readonly rounded: i0.InputSignalWithTransform<boolean, unknown>;
172
- readonly icon: i0.InputSignalWithTransform<boolean, unknown>;
173
- readonly fluid: i0.InputSignalWithTransform<boolean, unknown>;
174
- readonly context: i0.WritableSignal<ChipContext>;
175
- protected readonly startIconTemplate: i0.Signal<TemplateRef<chipTemplateContext> | undefined>;
176
- protected readonly endIconTemplate: i0.Signal<TemplateRef<chipTemplateContext> | undefined>;
177
- protected classes: i0.Signal<string[]>;
178
- static ɵfac: i0.ɵɵFactoryDeclaration<Chip, never>;
179
- static ɵcmp: i0.ɵɵComponentDeclaration<Chip, "tls-chip", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, {}, ["startIconTemplate", "endIconTemplate"], ["*"], true, never>;
180
- }
181
-
182
13
  declare abstract class FormControl implements FormUiControl {
183
14
  readonly touched: ModelSignal<boolean>;
184
15
  readonly name: InputSignal<string>;
@@ -239,6 +70,14 @@ type selectionGroupTemplateContext<T = unknown, V = unknown> = {
239
70
  * Subclasses provide the visual shell and own the `multiple` and `unselectable`
240
71
  * inputs (defaults differ per component), while this base owns the selection
241
72
  * state machine: value model, option normalization, and the toggle logic.
73
+ *
74
+ * `value` is ALWAYS an array, regardless of `multiple`. In single mode
75
+ * (`multiple = false`) it holds 0 or 1 items — read the selection as
76
+ * `value()[0]`. In multiple mode it holds every selected value. This is a
77
+ * deliberate, strongly-typed contract: unlike Select/MultiSelect (which split
78
+ * scalar `V | null` vs array `V[]` into two components), this family stays a
79
+ * single unified component and keeps one `V[]` type rather than loosening it to
80
+ * a runtime-dependent `V | V[]`.
242
81
  */
243
82
  declare abstract class SelectionGroup<T, V = unknown> extends ValueFormControl<V[]> {
244
83
  readonly value: ModelSignal<V[]>;
@@ -318,54 +157,136 @@ declare class OverlayManager {
318
157
  private _dispose;
319
158
  }
320
159
 
321
- /**
322
- * Shared base for the single {@link Select} and {@link MultiSelect} controls.
323
- * Owns everything the two listbox-combobox controls have in common: the option
324
- * inputs, the connected overlay lifecycle, roving `aria-activedescendant`
325
- * navigation, and the keyboard handler. The per-control differences (the value
326
- * shape, the selected-state check, how the trigger label is built and what a
327
- * commit does) are expressed through the abstract members below.
328
- */
329
- declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<ValueType> {
330
- protected readonly overlay: OverlayManager;
331
- private readonly triggerElement;
332
- private readonly panelTemplate;
333
- readonly inputId: InputSignal<string | null>;
334
- readonly options: InputSignal<optionInput<T>[]>;
335
- readonly optionLabel: InputSignal<keyof T | undefined>;
336
- readonly optionValue: InputSignal<keyof T | undefined>;
337
- readonly optionDisabled: InputSignal<keyof T | undefined>;
338
- readonly tabindex: InputSignal<string | number>;
339
- abstract readonly placeholder: InputSignal<string>;
340
- abstract readonly size: InputSignal<controlSize>;
341
- abstract readonly fluid: InputSignalWithTransform<boolean, unknown>;
342
- abstract readonly clearable: InputSignalWithTransform<boolean, unknown>;
343
- protected readonly isOpen: Signal<boolean>;
344
- protected readonly activeIndex: WritableSignal<number>;
345
- protected readonly normalizedOptions: Signal<Option<V>[]>;
346
- protected readonly activeDescendantId: Signal<string | null>;
347
- protected readonly hostClasses: Signal<string[]>;
348
- protected get listboxId(): string;
349
- protected abstract readonly uniqueId: string;
350
- protected abstract readonly hostClassBase: string;
351
- protected abstract readonly panelClass: string;
352
- protected abstract readonly hasValue: Signal<boolean>;
353
- /** Index the active option starts on when the panel opens. */
354
- protected abstract getInitialActiveIndex(): number;
355
- /** Apply the active option's selection when committed via mouse or keyboard. */
356
- protected abstract commitActiveOption(option: Option<V>): void;
357
- /** Reset the control to its empty value. */
358
- protected abstract clear(): void;
359
- protected open(): void;
360
- protected close(): void;
361
- protected toggle(): void;
362
- protected onOptionHover(index: number, disabled?: boolean): void;
363
- protected onKeydown(event: KeyboardEvent): void;
364
- protected optionId(index: number): string;
365
- private moveActive;
366
- private moveActiveToEdge;
367
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractSelect<any, any, any>, never>;
368
- static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSelect<any, any, any>, never, never, { "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "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; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
160
+ type color = 'primary' | 'secondary' | 'tertiary' | 'success' | 'info' | 'warning' | 'danger';
161
+
162
+ type controlSize = 'sm' | 'md' | 'lg';
163
+
164
+ type orientation = 'horizontal' | 'vertical';
165
+
166
+ type overlayPosition = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
167
+
168
+ type size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
169
+
170
+ type buttonType = 'submit' | 'reset' | 'button';
171
+ type buttonVariant = 'filled' | 'outlined' | 'text' | 'elevated';
172
+ type buttonColor = color;
173
+
174
+ declare class Alert {
175
+ private _config;
176
+ readonly color: InputSignal<buttonColor>;
177
+ readonly label: InputSignal<string | null>;
178
+ readonly hideLabel: InputSignalWithTransform<boolean, unknown>;
179
+ protected displayLabel: i0.Signal<string>;
180
+ protected hostClasses: i0.Signal<string[]>;
181
+ protected hostRole: i0.Signal<"alert" | "note">;
182
+ static ɵfac: i0.ɵɵFactoryDeclaration<Alert, never>;
183
+ static ɵcmp: i0.ɵɵComponentDeclaration<Alert, "tls-alert", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "hideLabel": { "alias": "hideLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
184
+ }
185
+
186
+ type alertColor = color;
187
+
188
+ interface AlertConfig {
189
+ color: alertColor;
190
+ label: Record<alertColor, string> | string;
191
+ hideLabel: boolean;
192
+ }
193
+ declare const DEFAULT_ALERT_CONFIG: AlertConfig;
194
+
195
+ declare const ALERT_CONFIG: InjectionToken<AlertConfig>;
196
+
197
+ declare abstract class ButtonBase {
198
+ protected _config: _thalassic_ui.ButtonConfig;
199
+ protected APPLY_HOST_CLASSES: boolean;
200
+ readonly disabled: InputSignalWithTransform<boolean, unknown>;
201
+ readonly icon: InputSignalWithTransform<boolean, unknown>;
202
+ readonly color: InputSignal<buttonColor>;
203
+ readonly variant: InputSignal<buttonVariant>;
204
+ readonly size: InputSignal<controlSize>;
205
+ readonly rounded: InputSignalWithTransform<boolean, unknown>;
206
+ /** Whether the button stretches to fill its container's width. */
207
+ readonly fluid: InputSignalWithTransform<boolean, unknown>;
208
+ protected classes: i0.Signal<string[]>;
209
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonBase, never>;
210
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonBase, never, never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
211
+ }
212
+
213
+ declare class Button extends ButtonBase {
214
+ private _routerLink;
215
+ private _router;
216
+ private _locationStrategy;
217
+ protected APPLY_HOST_CLASSES: boolean;
218
+ /** The text label displayed inside the button. Takes priority over projected content. */
219
+ readonly label: InputSignal<string | undefined>;
220
+ readonly type: InputSignal<buttonType>;
221
+ /** An optional URL that causes the button to render as an anchor link. */
222
+ readonly href: InputSignal<string | null>;
223
+ readonly tabindex: InputSignal<string>;
224
+ protected isLink: Signal<boolean>;
225
+ /**
226
+ * Resolved URL placed on the inner anchor so the browser treats it as a real link
227
+ * (enables "Open in new tab", middle-click, status-bar preview, etc.). An explicit
228
+ * `href` wins; otherwise the URL is derived from the host `routerLink`.
229
+ */
230
+ protected linkHref: Signal<string | null>;
231
+ /**
232
+ * Keeps navigation correct when the host carries a `routerLink` while the inner anchor
233
+ * exposes a real `href`:
234
+ * - modified / non-primary clicks bubble to the browser so it can open a new tab, and
235
+ * are stopped from reaching the host RouterLink to avoid a duplicate in-app navigation;
236
+ * - a plain left click defers to the host RouterLink for SPA navigation, so the anchor's
237
+ * own full-page navigation is prevented.
238
+ */
239
+ protected onLinkClick(event: MouseEvent): void;
240
+ static ɵfac: i0.ɵɵFactoryDeclaration<Button, never>;
241
+ static ɵcmp: i0.ɵɵComponentDeclaration<Button, "tls-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
242
+ }
243
+
244
+ declare class ButtonDirective extends ButtonBase {
245
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonDirective, never>;
246
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonDirective, "[tlsButton]", never, {}, {}, never, never, true, never>;
247
+ }
248
+
249
+ interface ButtonConfig {
250
+ color: buttonColor;
251
+ variant: buttonVariant;
252
+ size: controlSize;
253
+ type: buttonType;
254
+ fluid: boolean;
255
+ }
256
+ declare const DEFAULT_BUTTON_CONFIG: ButtonConfig;
257
+
258
+ declare const BUTTON_CONFIG: InjectionToken<ButtonConfig>;
259
+
260
+ type chipColor = color;
261
+ type chipVariant = 'filled' | 'outlined' | 'text';
262
+ interface ChipContext {
263
+ checked: boolean;
264
+ disabled: boolean;
265
+ readonly: boolean;
266
+ touched: boolean;
267
+ dirty: boolean;
268
+ invalid: boolean;
269
+ pending: boolean;
270
+ }
271
+ type chipTemplateContext = {
272
+ $implicit: ChipContext;
273
+ };
274
+
275
+ declare class Chip {
276
+ private _config;
277
+ readonly label: InputSignal<string | undefined>;
278
+ readonly color: InputSignal<chipColor>;
279
+ readonly variant: InputSignal<chipVariant>;
280
+ readonly size: InputSignal<controlSize>;
281
+ readonly rounded: i0.InputSignalWithTransform<boolean, unknown>;
282
+ readonly icon: i0.InputSignalWithTransform<boolean, unknown>;
283
+ readonly fluid: i0.InputSignalWithTransform<boolean, unknown>;
284
+ readonly context: i0.WritableSignal<ChipContext>;
285
+ protected readonly startIconTemplate: i0.Signal<TemplateRef<chipTemplateContext> | undefined>;
286
+ protected readonly endIconTemplate: i0.Signal<TemplateRef<chipTemplateContext> | undefined>;
287
+ protected classes: i0.Signal<string[]>;
288
+ static ɵfac: i0.ɵɵFactoryDeclaration<Chip, never>;
289
+ static ɵcmp: i0.ɵɵComponentDeclaration<Chip, "tls-chip", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, {}, ["startIconTemplate", "endIconTemplate"], ["*"], true, never>;
369
290
  }
370
291
 
371
292
  declare class ChipControl extends CheckboxFormControl {
@@ -1031,6 +952,7 @@ interface MenuActionItem extends BaseMenuItem {
1031
952
  disabled?: boolean;
1032
953
  data?: unknown;
1033
954
  action?: () => void;
955
+ link?: string | unknown[];
1034
956
  }
1035
957
  interface MenuDivider extends BaseMenuItem {
1036
958
  type: 'divider';
@@ -1168,9 +1090,9 @@ declare const POPOVER_CONFIG: InjectionToken<PopoverConfig>;
1168
1090
 
1169
1091
  declare class Skeleton {
1170
1092
  private _config;
1171
- readonly size: InputSignal<number | null>;
1172
- readonly width: InputSignal<number | null>;
1173
- readonly height: InputSignal<number | null>;
1093
+ readonly size: InputSignal<number | string | null>;
1094
+ readonly width: InputSignal<number | string | null>;
1095
+ readonly height: InputSignal<number | string | null>;
1174
1096
  readonly radius: InputSignal<number>;
1175
1097
  readonly duration: InputSignal<number>;
1176
1098
  readonly rounded: InputSignalWithTransform<boolean, unknown>;
@@ -1182,14 +1104,15 @@ declare class Skeleton {
1182
1104
  '--tls-skeleton-radius': string;
1183
1105
  '--tls-skeleton-duration': string;
1184
1106
  }>;
1107
+ private resolveDimension;
1185
1108
  static ɵfac: i0.ɵɵFactoryDeclaration<Skeleton, never>;
1186
1109
  static ɵcmp: i0.ɵɵComponentDeclaration<Skeleton, "tls-skeleton", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "radius": { "alias": "radius"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "animate": { "alias": "animate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1187
1110
  }
1188
1111
 
1189
1112
  interface SkeletonConfig {
1190
- size: number | null;
1191
- width: number | null;
1192
- height: number | null;
1113
+ size: number | string | null;
1114
+ width: number | string | null;
1115
+ height: number | string | null;
1193
1116
  radius: number;
1194
1117
  duration: number;
1195
1118
  rounded: boolean;
@@ -1383,7 +1306,94 @@ declare const DEFAULT_TOOLTIP_CONFIG: TooltipConfig;
1383
1306
 
1384
1307
  declare const TOOLTIP_CONFIG: InjectionToken<TooltipConfig>;
1385
1308
 
1309
+ interface tlsUiConfigProvider {
1310
+ components: {
1311
+ alert?: Partial<AlertConfig>;
1312
+ button?: Partial<ButtonConfig>;
1313
+ checkbox?: Partial<CheckboxConfig>;
1314
+ chip?: Partial<ChipConfig>;
1315
+ chipControl?: Partial<ChipControlConfig>;
1316
+ chipGroup?: Partial<ChipGroupConfig>;
1317
+ chipInput?: Partial<ChipInputConfig>;
1318
+ dateTimePicker?: Partial<DateTimePickerConfig>;
1319
+ dialog?: Partial<DialogConfig>;
1320
+ divider?: Partial<DividerConfig>;
1321
+ fileUploader?: Partial<FileUploaderConfig>;
1322
+ formControlGroup?: Partial<FormControlGroupConfig>;
1323
+ formItem?: Partial<FormItemConfig>;
1324
+ icon?: Partial<IconConfig>;
1325
+ input?: Partial<InputConfig>;
1326
+ loader?: Partial<LoaderConfig>;
1327
+ menu?: Partial<MenuConfig>;
1328
+ multiSelect?: Partial<MultiSelectConfig>;
1329
+ pagination?: Partial<PaginationConfig>;
1330
+ password?: Partial<PasswordConfig>;
1331
+ pinInput?: Partial<PinInputConfig>;
1332
+ popover?: Partial<PopoverConfig>;
1333
+ radioButton?: Partial<RadioButtonConfig>;
1334
+ select?: Partial<SelectConfig>;
1335
+ skeleton?: Partial<SkeletonConfig>;
1336
+ stepper?: Partial<StepperConfig>;
1337
+ switch?: Partial<SwitchConfig>;
1338
+ table?: Partial<TableConfig>;
1339
+ tabs?: Partial<TabsConfig>;
1340
+ textarea?: Partial<TextareaConfig>;
1341
+ toggleGroup?: Partial<ToggleGroupConfig>;
1342
+ tooltip?: Partial<TooltipConfig>;
1343
+ };
1344
+ }
1345
+
1346
+ /**
1347
+ * Shared base for the single {@link Select} and {@link MultiSelect} controls.
1348
+ * Owns everything the two listbox-combobox controls have in common: the option
1349
+ * inputs, the connected overlay lifecycle, roving `aria-activedescendant`
1350
+ * navigation, and the keyboard handler. The per-control differences (the value
1351
+ * shape, the selected-state check, how the trigger label is built and what a
1352
+ * commit does) are expressed through the abstract members below.
1353
+ */
1354
+ declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<ValueType> {
1355
+ protected readonly overlay: OverlayManager;
1356
+ private readonly triggerElement;
1357
+ private readonly panelTemplate;
1358
+ readonly inputId: InputSignal<string | null>;
1359
+ readonly options: InputSignal<optionInput<T>[]>;
1360
+ readonly optionLabel: InputSignal<keyof T | undefined>;
1361
+ readonly optionValue: InputSignal<keyof T | undefined>;
1362
+ readonly optionDisabled: InputSignal<keyof T | undefined>;
1363
+ readonly tabindex: InputSignal<string | number>;
1364
+ abstract readonly placeholder: InputSignal<string>;
1365
+ abstract readonly size: InputSignal<controlSize>;
1366
+ abstract readonly fluid: InputSignalWithTransform<boolean, unknown>;
1367
+ abstract readonly clearable: InputSignalWithTransform<boolean, unknown>;
1368
+ protected readonly isOpen: Signal<boolean>;
1369
+ protected readonly activeIndex: WritableSignal<number>;
1370
+ protected readonly normalizedOptions: Signal<Option<V>[]>;
1371
+ protected readonly activeDescendantId: Signal<string | null>;
1372
+ protected readonly hostClasses: Signal<string[]>;
1373
+ protected get listboxId(): string;
1374
+ protected abstract readonly uniqueId: string;
1375
+ protected abstract readonly hostClassBase: string;
1376
+ protected abstract readonly panelClass: string;
1377
+ protected abstract readonly hasValue: Signal<boolean>;
1378
+ /** Index the active option starts on when the panel opens. */
1379
+ protected abstract getInitialActiveIndex(): number;
1380
+ /** Apply the active option's selection when committed via mouse or keyboard. */
1381
+ protected abstract commitActiveOption(option: Option<V>): void;
1382
+ /** Reset the control to its empty value. */
1383
+ protected abstract clear(): void;
1384
+ protected open(): void;
1385
+ protected close(): void;
1386
+ protected toggle(): void;
1387
+ protected onOptionHover(index: number, disabled?: boolean): void;
1388
+ protected onKeydown(event: KeyboardEvent): void;
1389
+ protected optionId(index: number): string;
1390
+ private moveActive;
1391
+ private moveActiveToEdge;
1392
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractSelect<any, any, any>, never>;
1393
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSelect<any, any, any>, never, never, { "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "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; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1394
+ }
1395
+
1386
1396
  declare const provideThalassicUIConfig: (config: tlsUiConfigProvider) => EnvironmentProviders;
1387
1397
 
1388
- export { ALERT_CONFIG, Alert, BUTTON_CONFIG, Button, ButtonDirective, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, Checkbox, Chip, ChipControl, ChipGroup, ChipInput, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_CHIP_CONFIG, DEFAULT_CHIP_CONTROL_CONFIG, DEFAULT_CHIP_GROUP_CONFIG, DEFAULT_CHIP_INPUT_CONFIG, DEFAULT_DATE_TIME_PICKER_CONFIG, DEFAULT_DIALOG_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_FILE_UPLOADER_CONFIG, DEFAULT_FORM_CONTROL_GROUP_CONFIG, DEFAULT_FORM_ITEM_CONFIG, DEFAULT_ICON_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_LOADER_CONFIG, DEFAULT_MENU_CONFIG, DEFAULT_MULTI_SELECT_CONFIG, DEFAULT_PAGINATION_CONFIG, DEFAULT_PASSWORD_CONFIG, DEFAULT_PIN_INPUT_CONFIG, DEFAULT_POPOVER_CONFIG, DEFAULT_RADIO_BUTTON_CONFIG, DEFAULT_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEP_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABLE_CONFIG, DEFAULT_TABS_CONFIG, DEFAULT_TEXTAREA_CONFIG, DEFAULT_TOGGLE_GROUP_CONFIG, DEFAULT_TOOLTIP_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DateTimePicker, Dialog, DialogService, Divider, FILE_UPLOADER_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FileUploader, FormControlAddon, FormControlGroup, FormItem, ICON_CONFIG, INPUT_CONFIG, Icon, Input, InputDirective, LOADER_CONFIG, Loader, MENU_CONFIG, MULTI_SELECT_CONFIG, Menu, MenuItemComponent, MenuTriggerDirective, MultiSelect, PAGINATION_CONFIG, PASSWORD_CONFIG, PIN_INPUT_CONFIG, POPOVER_CONFIG, Pagination, Password, PinInput, Popover, RADIO_BUTTON_CONFIG, RadioButton, SELECT_CONFIG, SKELETON_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, Select, Skeleton, Step, Stepper, Switch, TABLE_CONFIG, TABS_CONFIG, TEXTAREA_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, Tab, Table, TableColumn, Tabs, Textarea, ToggleGroup, TooltipDirective, provideThalassicUIConfig };
1398
+ export { ALERT_CONFIG, Alert, BUTTON_CONFIG, Button, ButtonDirective, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, Checkbox, CheckboxFormControl, Chip, ChipControl, ChipGroup, ChipInput, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_CHIP_CONFIG, DEFAULT_CHIP_CONTROL_CONFIG, DEFAULT_CHIP_GROUP_CONFIG, DEFAULT_CHIP_INPUT_CONFIG, DEFAULT_DATE_TIME_PICKER_CONFIG, DEFAULT_DIALOG_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_FILE_UPLOADER_CONFIG, DEFAULT_FORM_CONTROL_GROUP_CONFIG, DEFAULT_FORM_ITEM_CONFIG, DEFAULT_ICON_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_LOADER_CONFIG, DEFAULT_MENU_CONFIG, DEFAULT_MULTI_SELECT_CONFIG, DEFAULT_PAGINATION_CONFIG, DEFAULT_PASSWORD_CONFIG, DEFAULT_PIN_INPUT_CONFIG, DEFAULT_POPOVER_CONFIG, DEFAULT_RADIO_BUTTON_CONFIG, DEFAULT_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEP_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABLE_CONFIG, DEFAULT_TABS_CONFIG, DEFAULT_TEXTAREA_CONFIG, DEFAULT_TOGGLE_GROUP_CONFIG, DEFAULT_TOOLTIP_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DateTimePicker, Dialog, DialogService, Divider, FILE_UPLOADER_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FileUploader, FormControl, FormControlAddon, FormControlGroup, FormItem, ICON_CONFIG, INPUT_CONFIG, Icon, Input, InputDirective, LOADER_CONFIG, Loader, MENU_CONFIG, MULTI_SELECT_CONFIG, Menu, MenuItemComponent, MenuTriggerDirective, MultiSelect, PAGINATION_CONFIG, PASSWORD_CONFIG, PIN_INPUT_CONFIG, POPOVER_CONFIG, Pagination, Password, PinInput, Popover, RADIO_BUTTON_CONFIG, RadioButton, SELECT_CONFIG, SKELETON_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, Select, Skeleton, Step, Stepper, Switch, TABLE_CONFIG, TABS_CONFIG, TEXTAREA_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, Tab, Table, TableColumn, Tabs, Textarea, ToggleGroup, TooltipDirective, ValueFormControl, provideThalassicUIConfig };
1389
1399
  export type { AlertConfig, ButtonConfig, CheckboxConfig, ChipConfig, ChipContext, ChipControlConfig, ChipGroupConfig, ChipInputConfig, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, FileUploaderConfig, FileUploaderDropZoneContext, FileUploaderFileContext, FormControlGroupConfig, FormItemConfig, IconConfig, InputConfig, LoaderConfig, MenuActionItem, MenuConfig, MenuCustomItem, MenuDivider, MenuItemDefinition, MenuLabel, MultiSelectConfig, PaginationConfig, PasswordConfig, PinInputConfig, PopoverConfig, RadioButtonConfig, SelectConfig, SkeletonConfig, StepConfig, StepperConfig, StepperSelectEvent, SwitchConfig, TableColumnDefinition, TableConfig, TableData, TableTrackBy, TabsConfig, TextareaConfig, ToggleGroupConfig, TooltipConfig, acceptInput, chipColor, chipTemplateContext, chipVariant, color, controlSize, dateTimePickerMode, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant, fileUploaderDragState, menuItemType, menuPosition, orientation, overlayPosition, paginationItem, pinInputType, size, stepperColor, stepperOrientation, stepperValue, tableColumnAlignment, textareaResize, tlsUiConfigProvider, tooltipColor, tooltipOrigin, tooltipPosition };