@atelier-ui/angular 0.4.8 → 0.4.10
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
|
@@ -6,43 +6,6 @@ import * as _atelier_ui_angular from '@atelier-ui/angular';
|
|
|
6
6
|
import * as i1 from '@angular/cdk/accordion';
|
|
7
7
|
import * as i1$1 from '@angular/cdk/menu';
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* @atelier-ui/spec
|
|
11
|
-
*
|
|
12
|
-
* Framework-agnostic TypeScript interfaces defining the public API contract
|
|
13
|
-
* for every Atelier component. Both the Angular and React libraries
|
|
14
|
-
* import from here so the compiler enforces parity.
|
|
15
|
-
*
|
|
16
|
-
* Angular: use the union types as `input<T>()` type parameters.
|
|
17
|
-
* React: extend the spec interface from the framework-specific props interface.
|
|
18
|
-
*/
|
|
19
|
-
type AtlButtonVariant = 'primary' | 'secondary' | 'outline' | 'danger';
|
|
20
|
-
type AtlButtonSize = 'sm' | 'md' | 'lg';
|
|
21
|
-
/**
|
|
22
|
-
* One validation error. Structurally the same as Angular Signal Forms'
|
|
23
|
-
* `ValidationError` (`kind` plus an optional `message`), so Angular's
|
|
24
|
-
* `[formField]` binding passes its errors straight through, and React and Vue
|
|
25
|
-
* consumers can build the same shape by hand.
|
|
26
|
-
*/
|
|
27
|
-
interface AtlErrorItem {
|
|
28
|
-
/** Identifies the kind of error, e.g. `'required'`. */
|
|
29
|
-
readonly kind: string;
|
|
30
|
-
/** Human readable message, rendered under the field. */
|
|
31
|
-
readonly message?: string;
|
|
32
|
-
}
|
|
33
|
-
interface AtlComboboxOption {
|
|
34
|
-
value: string;
|
|
35
|
-
label: string;
|
|
36
|
-
disabled?: boolean;
|
|
37
|
-
}
|
|
38
|
-
type AtlIconName = 'success' | 'check' | 'warning' | 'danger' | 'info' | 'error' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-double-left' | 'chevron-double-right' | 'sort-asc' | 'sort-desc' | 'arrow-right' | 'arrow-left' | 'copy' | 'paste' | 'add' | 'edit' | 'delete' | 'close' | 'more' | 'person' | 'default-toast';
|
|
39
|
-
type AtlIconSize = 'sm' | 'md' | 'lg';
|
|
40
|
-
type AtlChatVariant = 'drawer' | 'popup' | 'inline';
|
|
41
|
-
type AtlChatStatus = 'idle' | 'streaming' | 'error';
|
|
42
|
-
type AtlChatMessageRole = 'user' | 'assistant' | 'system';
|
|
43
|
-
|
|
44
|
-
/** Native `type` attribute of the button. */
|
|
45
|
-
type AtlButtonType = 'button' | 'submit' | 'reset';
|
|
46
9
|
/**
|
|
47
10
|
* Accessible button component with visual variants and sizes. An attribute
|
|
48
11
|
* component on a native `<button>`: focus, Tab order, Enter/Space activation and
|
|
@@ -57,9 +20,9 @@ type AtlButtonType = 'button' | 'submit' | 'reset';
|
|
|
57
20
|
*/
|
|
58
21
|
declare class AtlButton {
|
|
59
22
|
/** Visual style of the button. */
|
|
60
|
-
readonly variant: _angular_core.InputSignal<
|
|
23
|
+
readonly variant: _angular_core.InputSignal<"primary" | "secondary" | "outline" | "danger">;
|
|
61
24
|
/** Size of the button. */
|
|
62
|
-
readonly size: _angular_core.InputSignal<
|
|
25
|
+
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg">;
|
|
63
26
|
/** Disables the button, preventing interaction. */
|
|
64
27
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
65
28
|
/**
|
|
@@ -68,7 +31,7 @@ declare class AtlButton {
|
|
|
68
31
|
*/
|
|
69
32
|
readonly loading: _angular_core.InputSignal<boolean>;
|
|
70
33
|
/** Native `type` attribute of the button. */
|
|
71
|
-
readonly type: _angular_core.InputSignal<
|
|
34
|
+
readonly type: _angular_core.InputSignal<"button" | "submit" | "reset">;
|
|
72
35
|
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
73
36
|
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
74
37
|
/** @internal — host element ref for the dev-mode a11y check. */
|
|
@@ -153,6 +116,27 @@ declare class AtlCardFooter {
|
|
|
153
116
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AtlCardFooter, "atl-card-footer", never, {}, {}, never, ["*"], true, never>;
|
|
154
117
|
}
|
|
155
118
|
|
|
119
|
+
/**
|
|
120
|
+
* One validation error. Structurally the same as Angular Signal Forms'
|
|
121
|
+
* `ValidationError` (`kind` plus an optional `message`), so Angular's
|
|
122
|
+
* `[formField]` binding passes its errors straight through, and React and Vue
|
|
123
|
+
* consumers can build the same shape by hand.
|
|
124
|
+
*/
|
|
125
|
+
interface AtlErrorItem {
|
|
126
|
+
/** Identifies the kind of error, e.g. `'required'`. */
|
|
127
|
+
readonly kind: string;
|
|
128
|
+
/** Human readable message, rendered under the field. */
|
|
129
|
+
readonly message?: string;
|
|
130
|
+
}
|
|
131
|
+
interface AtlComboboxOption {
|
|
132
|
+
value: string;
|
|
133
|
+
label: string;
|
|
134
|
+
disabled?: boolean;
|
|
135
|
+
}
|
|
136
|
+
type AtlIconName = 'success' | 'check' | 'warning' | 'danger' | 'info' | 'error' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-double-left' | 'chevron-double-right' | 'sort-asc' | 'sort-desc' | 'arrow-right' | 'arrow-left' | 'copy' | 'paste' | 'add' | 'edit' | 'delete' | 'close' | 'more' | 'person' | 'default-toast';
|
|
137
|
+
type AtlChatVariant = 'drawer' | 'popup' | 'inline';
|
|
138
|
+
type AtlChatStatus = 'idle' | 'streaming' | 'error';
|
|
139
|
+
|
|
156
140
|
/**
|
|
157
141
|
* Inline badge for labeling items with semantic color variants.
|
|
158
142
|
*
|
|
@@ -224,10 +208,15 @@ interface AtlIconGeometry {
|
|
|
224
208
|
* ```
|
|
225
209
|
*/
|
|
226
210
|
declare class AtlIcon {
|
|
227
|
-
/**
|
|
211
|
+
/**
|
|
212
|
+
* The icon to render. Required. One of the names in `AtlIconName`
|
|
213
|
+
* (`spec.ts`); the AtlIcon `AllIcons` story renders every one of them.
|
|
214
|
+
* Kept as a named type, not an inline union: the set is large and grows
|
|
215
|
+
* with the icon geometry.
|
|
216
|
+
*/
|
|
228
217
|
readonly name: _angular_core.InputSignal<AtlIconName>;
|
|
229
218
|
/** Icon size: `sm` 16px, `md` 20px, `lg` 24px. The same 24-unit geometry is scaled. */
|
|
230
|
-
readonly size: _angular_core.InputSignal<
|
|
219
|
+
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg">;
|
|
231
220
|
/**
|
|
232
221
|
* Accessible label. When provided, the icon is announced as an image with
|
|
233
222
|
* this label. When omitted, the icon is hidden from assistive tech.
|
|
@@ -1434,7 +1423,7 @@ declare class AtlToastService {
|
|
|
1434
1423
|
*/
|
|
1435
1424
|
declare class AtlToast {
|
|
1436
1425
|
/** Semantic color variant. */
|
|
1437
|
-
readonly variant: _angular_core.InputSignal<
|
|
1426
|
+
readonly variant: _angular_core.InputSignal<"danger" | "default" | "success" | "warning" | "info">;
|
|
1438
1427
|
/** Whether to show a dismiss button. */
|
|
1439
1428
|
readonly dismissible: _angular_core.InputSignal<boolean>;
|
|
1440
1429
|
/** The message to display. */
|
|
@@ -1581,7 +1570,7 @@ declare class AtlProgress {
|
|
|
1581
1570
|
*/
|
|
1582
1571
|
declare class AtlBreadcrumbs {
|
|
1583
1572
|
/** Separator character shown between breadcrumb items. Default `/`. */
|
|
1584
|
-
readonly separator: _angular_core.InputSignal<string
|
|
1573
|
+
readonly separator: _angular_core.InputSignal<string>;
|
|
1585
1574
|
protected readonly separatorCssVar: Signal<string>;
|
|
1586
1575
|
private readonly _items;
|
|
1587
1576
|
private _nextId;
|
|
@@ -1869,7 +1858,7 @@ declare class AtlTh {
|
|
|
1869
1858
|
/** Whether this column is sortable. Renders a sort button when true. */
|
|
1870
1859
|
readonly sortable: _angular_core.InputSignal<boolean>;
|
|
1871
1860
|
/** Current sort direction. Fully controlled — the consumer owns this state. */
|
|
1872
|
-
readonly sortDirection: _angular_core.InputSignal<
|
|
1861
|
+
readonly sortDirection: _angular_core.InputSignal<"asc" | "desc" | null>;
|
|
1873
1862
|
/** Text alignment of the header cell content. */
|
|
1874
1863
|
readonly align: _angular_core.InputSignal<"start" | "center" | "end">;
|
|
1875
1864
|
/** Fixed column width (e.g. `'120px'`, `'10rem'`). */
|
|
@@ -1878,7 +1867,7 @@ declare class AtlTh {
|
|
|
1878
1867
|
* Emits when the header is clicked.
|
|
1879
1868
|
* Cycles: `null` → `'asc'` → `'desc'` → `null`.
|
|
1880
1869
|
*/
|
|
1881
|
-
readonly sort: _angular_core.OutputEmitterRef<
|
|
1870
|
+
readonly sort: _angular_core.OutputEmitterRef<"asc" | "desc" | null>;
|
|
1882
1871
|
/** @internal */
|
|
1883
1872
|
protected readonly ariaSort: Signal<"none" | "ascending" | "descending" | undefined>;
|
|
1884
1873
|
/** @internal */
|
|
@@ -2067,11 +2056,11 @@ declare class AtlCodeBlock {
|
|
|
2067
2056
|
*/
|
|
2068
2057
|
declare class AtlChat {
|
|
2069
2058
|
/** Layout variant. */
|
|
2070
|
-
readonly variant: _angular_core.InputSignal<
|
|
2059
|
+
readonly variant: _angular_core.InputSignal<"drawer" | "popup" | "inline">;
|
|
2071
2060
|
/** Whether the chat is open. Used by drawer/popup; ignored by inline. Two-way bindable via [(open)]. */
|
|
2072
2061
|
readonly open: _angular_core.ModelSignal<boolean>;
|
|
2073
2062
|
/** Connection / response status. Drives badge color in header and disables input while streaming. */
|
|
2074
|
-
readonly status: _angular_core.InputSignal<
|
|
2063
|
+
readonly status: _angular_core.InputSignal<"error" | "idle" | "streaming">;
|
|
2075
2064
|
/** @internal — referenced by AtlChatHeader via ATL_CHAT token for aria-labelledby. */
|
|
2076
2065
|
readonly headerId: string;
|
|
2077
2066
|
protected readonly dialogRef: _angular_core.Signal<ElementRef<HTMLDialogElement> | undefined>;
|
|
@@ -2129,7 +2118,7 @@ declare class AtlChatMessages {
|
|
|
2129
2118
|
*/
|
|
2130
2119
|
declare class AtlChatMessage {
|
|
2131
2120
|
/** Sender of the message. Drives bubble alignment and color. */
|
|
2132
|
-
readonly role: _angular_core.InputSignal<
|
|
2121
|
+
readonly role: _angular_core.InputSignal<"user" | "assistant" | "system">;
|
|
2133
2122
|
/** Marks the message as failed (red dashed border, used in error state). */
|
|
2134
2123
|
readonly failed: _angular_core.InputSignal<boolean>;
|
|
2135
2124
|
protected readonly hostClasses: _angular_core.Signal<string>;
|