@atelier-ui/angular 0.4.4 → 0.4.6

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.4.4",
3
+ "version": "0.4.6",
4
4
  "description": "Atelier component library for Angular — LLM-optimised, accessible, design-token-driven",
5
5
  "keywords": [
6
6
  "angular",
@@ -62,7 +62,10 @@ declare class AtlButton {
62
62
  readonly size: _angular_core.InputSignal<AtlButtonSize>;
63
63
  /** Disables the button, preventing interaction. */
64
64
  readonly disabled: _angular_core.InputSignal<boolean>;
65
- /** Shows a loading spinner and disables interaction. */
65
+ /**
66
+ * Shows a loading spinner, announces `aria-busy` and ignores activation.
67
+ * The button stays focusable (ADR-0171).
68
+ */
66
69
  readonly loading: _angular_core.InputSignal<boolean>;
67
70
  /** Native `type` attribute of the button. */
68
71
  readonly type: _angular_core.InputSignal<AtlButtonType>;
@@ -561,6 +564,11 @@ declare class AtlRadio implements RadioItem, OnInit, OnDestroy {
561
564
  * <atl-radio radioValue="lg">Large</atl-radio>
562
565
  * </atl-radio-group>
563
566
  *
567
+ * <!-- Accessible name: a group has no <label for>, so pass `aria-label` or
568
+ * `aria-labelledby` (static or bound with [aria-label]); dev mode warns
569
+ * when both are missing (ADR-0171). -->
570
+ * <atl-radio-group aria-label="Plan size" [(value)]="size"> … </atl-radio-group>
571
+ *
564
572
  * <!-- With Signal Forms -->
565
573
  * <atl-radio-group [formField]="form.size">
566
574
  * <atl-radio radioValue="sm">Small</atl-radio>
@@ -588,6 +596,19 @@ declare class AtlRadioGroup implements FormValueControl<string>, AtlRadioGroupCo
588
596
  readonly name: _angular_core.InputSignal<string>;
589
597
  /** Validation errors from the form system. Bound by [formField] directive. */
590
598
  readonly errors: _angular_core.InputSignal<readonly WithOptionalFieldTree<ValidationError>[]>;
599
+ /**
600
+ * Accessible name of the group, written as `aria-label` on the host, which
601
+ * carries `role="radiogroup"`. A `<label for>` cannot name a group, so a group
602
+ * needs this or `aria-labelledby`. An aliased input rather than a plain host
603
+ * attribute, so it is declared, bindable (`[aria-label]`) and in the spec
604
+ * contract; see `atl-input.ts`'s identical `ariaLabel`.
605
+ */
606
+ readonly ariaLabel: _angular_core.InputSignal<string>;
607
+ /**
608
+ * Id of the visible caption that names the group. Use instead of `aria-label`
609
+ * when the text is on screen.
610
+ */
611
+ readonly ariaLabelledby: _angular_core.InputSignal<string>;
591
612
  /** @internal */
592
613
  protected readonly errorId: string;
593
614
  /** @internal */
@@ -605,6 +626,7 @@ declare class AtlRadioGroup implements FormValueControl<string>, AtlRadioGroupCo
605
626
  protected readonly showErrors: _angular_core.Signal<boolean>;
606
627
  /** @internal */
607
628
  protected readonly hostClasses: _angular_core.Signal<string>;
629
+ constructor();
608
630
  /** @internal — called by AtlRadio on change */
609
631
  select(v: string): void;
610
632
  /** @internal — called by AtlRadio on blur */
@@ -616,7 +638,7 @@ declare class AtlRadioGroup implements FormValueControl<string>, AtlRadioGroupCo
616
638
  /** @internal */
617
639
  protected onKeydown(event: KeyboardEvent): void;
618
640
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AtlRadioGroup, never>;
619
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AtlRadioGroup, "atl-radio-group", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "touched": "touchedChange"; }, never, ["*"], true, never>;
641
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AtlRadioGroup, "atl-radio-group", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "touched": "touchedChange"; }, never, ["*"], true, never>;
620
642
  }
621
643
 
622
644
  /**
@@ -673,6 +695,17 @@ declare class AtlToggle implements FormCheckboxControl {
673
695
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AtlToggle, "atl-toggle", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "touched": "touchedChange"; }, never, ["*"], true, never>;
674
696
  }
675
697
 
698
+ /**
699
+ * Inline notification banner with semantic color variants and optional dismiss button.
700
+ *
701
+ * Usage:
702
+ * ```html
703
+ * <atl-alert variant="success">Your changes were saved.</atl-alert>
704
+ * <atl-alert variant="warning" [dismissible]="true" (dismissed)="onDismiss()">
705
+ * Your session expires soon.
706
+ * </atl-alert>
707
+ * ```
708
+ */
676
709
  declare class AtlAlert {
677
710
  /** Semantic color variant of the alert. */
678
711
  readonly variant: _angular_core.InputSignal<"danger" | "success" | "warning" | "info">;