@atelier-ui/angular 0.0.12 → 0.0.14
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": "@atelier-ui/angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "Atelier UI component library for Angular — LLM-optimised, accessible, design-token-driven",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -22,10 +22,6 @@
|
|
|
22
22
|
"@angular/common": "^21.0.0",
|
|
23
23
|
"@angular/forms": "^21.0.0"
|
|
24
24
|
},
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"@atelier-ui/spec": "0.0.12",
|
|
27
|
-
"tslib": "^2.3.0"
|
|
28
|
-
},
|
|
29
25
|
"module": "fesm2022/atelier-ui-angular.mjs",
|
|
30
26
|
"typings": "types/atelier-ui-angular.d.ts",
|
|
31
27
|
"exports": {
|
|
@@ -37,5 +33,8 @@
|
|
|
37
33
|
"default": "./fesm2022/atelier-ui-angular.mjs"
|
|
38
34
|
}
|
|
39
35
|
},
|
|
40
|
-
"sideEffects": false
|
|
41
|
-
|
|
36
|
+
"sideEffects": false,
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"tslib": "^2.3.0"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { InjectionToken, WritableSignal, Signal, OnInit, OnDestroy, ElementRef } from '@angular/core';
|
|
3
|
-
import { LlmButtonVariant, LlmButtonSize, LlmComboboxOption } from '@atelier-ui/spec';
|
|
4
3
|
import { FormValueControl, WithOptionalFieldTree, ValidationError, FormCheckboxControl } from '@angular/forms/signals';
|
|
5
4
|
import { FocusableOption } from '@angular/cdk/a11y';
|
|
6
5
|
import * as _atelier_ui_angular from '@atelier-ui/angular';
|
|
7
6
|
import * as i1 from '@angular/cdk/accordion';
|
|
8
7
|
import * as i1$1 from '@angular/cdk/menu';
|
|
9
8
|
|
|
9
|
+
/**
|
|
10
|
+
* @atelier-ui/spec
|
|
11
|
+
*
|
|
12
|
+
* Framework-agnostic TypeScript interfaces defining the public API contract
|
|
13
|
+
* for every llm-components 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 LlmButtonVariant = 'primary' | 'secondary' | 'outline';
|
|
20
|
+
type LlmButtonSize = 'sm' | 'md' | 'lg';
|
|
21
|
+
interface LlmComboboxOption {
|
|
22
|
+
value: string;
|
|
23
|
+
label: string;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
}
|
|
26
|
+
|
|
10
27
|
/**
|
|
11
28
|
* Accessible button component with visual variants and sizes.
|
|
12
29
|
*
|
|
@@ -1140,7 +1157,7 @@ declare class LlmAvatar {
|
|
|
1140
1157
|
/** Full name used to generate initials fallback and default aria-label. */
|
|
1141
1158
|
readonly name: _angular_core.InputSignal<string>;
|
|
1142
1159
|
/** Size of the avatar. */
|
|
1143
|
-
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg" | "
|
|
1160
|
+
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg" | "xs" | "xl">;
|
|
1144
1161
|
/** Shape of the avatar. */
|
|
1145
1162
|
readonly shape: _angular_core.InputSignal<"circle" | "square">;
|
|
1146
1163
|
/** Presence status indicator dot. Empty string hides the dot. */
|
|
@@ -1174,7 +1191,7 @@ declare class LlmAvatarGroup {
|
|
|
1174
1191
|
/** Maximum visible avatars before showing an overflow count. */
|
|
1175
1192
|
readonly max: _angular_core.InputSignal<number>;
|
|
1176
1193
|
/** Size applied to the overflow badge (match the size used on child avatars). */
|
|
1177
|
-
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg" | "
|
|
1194
|
+
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg" | "xs" | "xl">;
|
|
1178
1195
|
private readonly avatarEls;
|
|
1179
1196
|
protected readonly overflowCount: _angular_core.Signal<number>;
|
|
1180
1197
|
constructor();
|
|
@@ -1316,7 +1333,7 @@ declare class LlmDrawer {
|
|
|
1316
1333
|
/** Whether the drawer is open. Supports two-way binding: [(open)]="isOpen". */
|
|
1317
1334
|
readonly open: _angular_core.ModelSignal<boolean>;
|
|
1318
1335
|
/** Which edge the drawer slides in from. */
|
|
1319
|
-
readonly position: _angular_core.InputSignal<"
|
|
1336
|
+
readonly position: _angular_core.InputSignal<"left" | "right" | "top" | "bottom">;
|
|
1320
1337
|
/** Width (for left/right) or height (for top/bottom) of the panel. */
|
|
1321
1338
|
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg" | "full">;
|
|
1322
1339
|
/** Whether clicking the backdrop closes the drawer. */
|
|
@@ -1486,7 +1503,7 @@ declare class LlmTh {
|
|
|
1486
1503
|
/** Current sort direction. Fully controlled — the consumer owns this state. */
|
|
1487
1504
|
readonly sortDirection: _angular_core.InputSignal<LlmSortDirection>;
|
|
1488
1505
|
/** Text alignment of the header cell content. */
|
|
1489
|
-
readonly align: _angular_core.InputSignal<"
|
|
1506
|
+
readonly align: _angular_core.InputSignal<"start" | "center" | "end">;
|
|
1490
1507
|
/** Fixed column width (e.g. `'120px'`, `'10rem'`). */
|
|
1491
1508
|
readonly width: _angular_core.InputSignal<string | undefined>;
|
|
1492
1509
|
/**
|
|
@@ -1513,7 +1530,7 @@ declare class LlmTh {
|
|
|
1513
1530
|
*/
|
|
1514
1531
|
declare class LlmTd {
|
|
1515
1532
|
/** Text alignment of the cell content. */
|
|
1516
|
-
readonly align: _angular_core.InputSignal<"
|
|
1533
|
+
readonly align: _angular_core.InputSignal<"start" | "center" | "end">;
|
|
1517
1534
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LlmTd, never>;
|
|
1518
1535
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LlmTd, "llm-td", never, { "align": { "alias": "align"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1519
1536
|
}
|