@atelier-ui/angular 0.4.7 → 0.4.9
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,29 @@ 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 AtlIconSize = 'sm' | 'md' | 'lg';
|
|
138
|
+
type AtlChatVariant = 'drawer' | 'popup' | 'inline';
|
|
139
|
+
type AtlChatStatus = 'idle' | 'streaming' | 'error';
|
|
140
|
+
type AtlChatMessageRole = 'user' | 'assistant' | 'system';
|
|
141
|
+
|
|
156
142
|
/**
|
|
157
143
|
* Inline badge for labeling items with semantic color variants.
|
|
158
144
|
*
|
|
@@ -1762,12 +1748,11 @@ declare const ATL_TABLE: InjectionToken<AtlTableContext>;
|
|
|
1762
1748
|
* </atl-tr>
|
|
1763
1749
|
* </atl-thead>
|
|
1764
1750
|
* <atl-tbody [empty]="rows.length === 0" [colSpan]="2">
|
|
1765
|
-
*
|
|
1766
|
-
*
|
|
1767
|
-
*
|
|
1768
|
-
*
|
|
1769
|
-
*
|
|
1770
|
-
* }
|
|
1751
|
+
* <!-- Repeat one row per item with Angular control flow: `@for (row of rows; track row.id)`. -->
|
|
1752
|
+
* <atl-tr selectable [selected]="selection.has(row.id)" (selectedChange)="toggle(row.id, $event)">
|
|
1753
|
+
* <atl-td>{{ row.name }}</atl-td>
|
|
1754
|
+
* <atl-td>{{ row.status }}</atl-td>
|
|
1755
|
+
* </atl-tr>
|
|
1771
1756
|
* <div atlTableEmpty>No results found.</div>
|
|
1772
1757
|
* </atl-tbody>
|
|
1773
1758
|
* </atl-table>
|
|
@@ -1814,9 +1799,8 @@ declare class AtlThead {
|
|
|
1814
1799
|
* Usage:
|
|
1815
1800
|
* ```html
|
|
1816
1801
|
* <atl-tbody [empty]="rows.length === 0" [colSpan]="3">
|
|
1817
|
-
*
|
|
1818
|
-
*
|
|
1819
|
-
* }
|
|
1802
|
+
* <!-- Repeat one row per item with Angular control flow: `@for (row of rows; track row.id)`. -->
|
|
1803
|
+
* <atl-tr><atl-td>{{ row.name }}</atl-td></atl-tr>
|
|
1820
1804
|
* <div atlTableEmpty>No results found.</div>
|
|
1821
1805
|
* </atl-tbody>
|
|
1822
1806
|
* ```
|