@forgeroute/ui 0.4.97 → 0.4.98

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": "@forgeroute/ui",
3
- "version": "0.4.97",
3
+ "version": "0.4.98",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.0.0",
6
6
  "@angular/core": ">=22.0.0",
@@ -4704,7 +4704,7 @@ export declare class ModalComponent implements OnInit, OnDestroy {
4704
4704
  */
4705
4705
  readonly describedBy: import("@angular/core").InputSignal<string | null>;
4706
4706
  readonly maxWidth: import("@angular/core").InputSignal<string>;
4707
- readonly bodyOverflow: import("@angular/core").InputSignal<"auto" | "visible" | "hidden">;
4707
+ readonly bodyOverflow: import("@angular/core").InputSignal<"auto" | "hidden" | "visible">;
4708
4708
  /** `data-testid` of the dialog element itself (the host `<ui-modal>` is always in the page, the dialog only while open). None when empty. */
4709
4709
  readonly dialogTestId: import("@angular/core").InputSignal<string>;
4710
4710
  /** Hides the header X button (e.g. while a request is running). Escape and a backdrop click still close unless `closable` is false. */
@@ -5483,7 +5483,7 @@ export declare class AudioPlayerComponent {
5483
5483
  /** Accessible name of the player. */
5484
5484
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
5485
5485
  /** How much to load before play: 'metadata' (default), 'auto' or 'none'. */
5486
- readonly preload: import("@angular/core").InputSignal<"none" | "auto" | "metadata">;
5486
+ readonly preload: import("@angular/core").InputSignal<"auto" | "none" | "metadata">;
5487
5487
  /** Fires when the browser can't load or decode the source. */
5488
5488
  readonly playbackError: import("@angular/core").OutputEmitterRef<void>;
5489
5489
  protected readonly failed: import("@angular/core").WritableSignal<boolean>;
@@ -6037,7 +6037,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
6037
6037
  * clicking it still toggles the box - e.g. a product name that is both the heading of its card and the label of its checkbox.
6038
6038
  * Default null: plain label text, exactly as before. Single mode only.
6039
6039
  */
6040
- readonly headingLevel: import("@angular/core").InputSignal<3 | 2 | 1 | 4 | 5 | 6 | null>;
6040
+ readonly headingLevel: import("@angular/core").InputSignal<2 | 1 | 3 | 4 | 5 | 6 | null>;
6041
6041
  readonly indeterminate: import("@angular/core").InputSignal<boolean>;
6042
6042
  readonly checked: import("@angular/core").ModelSignal<boolean>;
6043
6043
  /**
@@ -7018,7 +7018,7 @@ export declare class PhoneNumberPickerComponent {
7018
7018
  protected readonly modeCtl: FormControl<string>;
7019
7019
  protected readonly zipCtl: FormControl<string>;
7020
7020
  protected readonly areaCtl: FormControl<string>;
7021
- protected readonly step: import("@angular/core").WritableSignal<3 | 2 | 1>;
7021
+ protected readonly step: import("@angular/core").WritableSignal<2 | 1 | 3>;
7022
7022
  protected readonly mode: import("@angular/core").WritableSignal<PhoneNumberSearchMode>;
7023
7023
  private readonly _zip;
7024
7024
  private readonly _area;
@@ -7134,7 +7134,7 @@ export declare class ButtonComponent {
7134
7134
  * `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
7135
7135
  * background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
7136
7136
  */
7137
- readonly variant: import("@angular/core").InputSignal<"link" | "primary" | "danger" | "warning" | "secondary" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
7137
+ readonly variant: import("@angular/core").InputSignal<"link" | "primary" | "secondary" | "danger" | "warning" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
7138
7138
  /** Renders an anchor to this route instead of a button (use with `variant="link"` for an inline text link). `['/settings']` or `'/settings'`. While `disabled` or `loading` it renders a non-clickable `<span role="link" aria-disabled>` with no href (like `href`). */
7139
7139
  readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
7140
7140
  /** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
@@ -7155,7 +7155,7 @@ export declare class ButtonComponent {
7155
7155
  */
7156
7156
  readonly href: import("@angular/core").InputSignal<string | null>;
7157
7157
  /** Where to open the `href` (`_blank` = a new tab). */
7158
- readonly target: import("@angular/core").InputSignal<"_blank" | "_self" | "_parent" | "_top" | null>;
7158
+ readonly target: import("@angular/core").InputSignal<"_self" | "_blank" | "_parent" | "_top" | null>;
7159
7159
  /** `rel` of the `href` link. A `_blank` target always gets `noopener noreferrer` added. */
7160
7160
  readonly rel: import("@angular/core").InputSignal<string | null>;
7161
7161
  /** The href when it is allowed (http, https, mailto, tel, sms or a relative URL), else null. */
@@ -7430,7 +7430,7 @@ export declare class PillTabsComponent {
7430
7430
  */
7431
7431
  readonly showDescription: import("@angular/core").InputSignal<boolean>;
7432
7432
  /** Heading level of the active tab's title when `showDescription` is on: 2 (default) or 3. */
7433
- readonly headingLevel: import("@angular/core").InputSignal<3 | 2>;
7433
+ readonly headingLevel: import("@angular/core").InputSignal<2 | 3>;
7434
7434
  readonly tabChange: import("@angular/core").OutputEmitterRef<string>;
7435
7435
  protected readonly activeTab: import("@angular/core").Signal<PillTab | null>;
7436
7436
  protected titleId(): string;
@@ -8323,7 +8323,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
8323
8323
  * `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
8324
8324
  * It only picks the keyboard; it does not restrict what can be typed or pasted.
8325
8325
  */
8326
- readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "decimal" | "none" | "tel" | "url" | "numeric" | "search">;
8326
+ readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "search" | "numeric" | "decimal" | "none" | "tel" | "url">;
8327
8327
  readonly readonly: import("@angular/core").InputSignal<boolean>;
8328
8328
  readonly hint: import("@angular/core").InputSignal<string>;
8329
8329
  /** Id(s) of an external element that also describes this control (e.g. one shared error text for a group of fields). Space separated; MERGED after the control's own hint / error id in `aria-describedby`, never replacing it. Empty = unchanged. */
@@ -9348,7 +9348,7 @@ export declare class CopyFieldComponent implements OnDestroy {
9348
9348
  /** Neither the Clipboard API nor the fallback could copy. */
9349
9349
  readonly copyFailed: import("@angular/core").OutputEmitterRef<void>;
9350
9350
  protected readonly _id: string;
9351
- protected readonly _state: import("@angular/core").WritableSignal<"idle" | "failed" | "copied">;
9351
+ protected readonly _state: import("@angular/core").WritableSignal<"idle" | "copied" | "failed">;
9352
9352
  protected readonly _announcement: import("@angular/core").Signal<string>;
9353
9353
  protected readonly _buttonName: import("@angular/core").Signal<string>;
9354
9354
  protected readonly _describedBy: import("@angular/core").Signal<string | null>;
@@ -10477,7 +10477,7 @@ export declare class FormSectionComponent {
10477
10477
  }, {}, never, ["*"], true, never>;
10478
10478
  }
10479
10479
  export declare class FormRowComponent {
10480
- readonly cols: import("@angular/core").InputSignal<3 | 2 | 1 | 4>;
10480
+ readonly cols: import("@angular/core").InputSignal<2 | 1 | 3 | 4>;
10481
10481
  static ɵfac: i0.ɵɵFactoryDeclaration<FormRowComponent, never>;
10482
10482
  static ɵcmp: i0.ɵɵComponentDeclaration<FormRowComponent, "ui-form-row", never, {
10483
10483
  "cols": {
@@ -10494,7 +10494,7 @@ export declare class FormRowComponent {
10494
10494
  * child simply takes the full width. Keep a numeric span within the row's `cols` (use `all` for the whole row).
10495
10495
  */
10496
10496
  export declare class FormColSpanDirective {
10497
- readonly uiColSpan: import("@angular/core").InputSignal<"" | 3 | 2 | "3" | "2" | "all">;
10497
+ readonly uiColSpan: import("@angular/core").InputSignal<"" | 2 | "2" | "3" | 3 | "all">;
10498
10498
  protected readonly _class: import("@angular/core").Signal<string>;
10499
10499
  static ɵfac: i0.ɵɵFactoryDeclaration<FormColSpanDirective, never>;
10500
10500
  static ɵdir: i0.ɵɵDirectiveDeclaration<FormColSpanDirective, "[uiColSpan]", never, {
@@ -11810,7 +11810,7 @@ export declare class ChipGroupComponent {
11810
11810
  readonly spaceAbove: import("@angular/core").InputSignal<"none" | "sm" | "md">;
11811
11811
  /** Space below the chip group. */
11812
11812
  readonly spaceBelow: import("@angular/core").InputSignal<"none" | "sm" | "md">;
11813
- protected readonly _gap: import("@angular/core").Signal<"8px" | "6px" | "12px">;
11813
+ protected readonly _gap: import("@angular/core").Signal<"6px" | "12px" | "8px">;
11814
11814
  protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "6px" | "12px">;
11815
11815
  protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "6px" | "12px">;
11816
11816
  static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
@@ -11931,6 +11931,21 @@ export interface UsStateOption {
11931
11931
  export declare const US_STATES: UsStateOption[];
11932
11932
  /** The name of a state in the app's active language (`usState.<code>` labels); the given English name when the code is unknown. */
11933
11933
  export declare function usStateName(code: string, fallback?: string): string;
11934
+ /**
11935
+ * THE State select options for every app, so every State dropdown shows the same names in the same order: the 50 states (+ DC only with `includeDc: true`),
11936
+ * each labelled with the state NAME (in the app's active language when the `usState.<code>` labels have one, else English), sorted A to Z by that label.
11937
+ * `store` is what the form saves: `'code'` (default) = the two-letter code, `'name'` = the English state name. `label` overrides how a state is worded
11938
+ * (an app that keeps its own translations of the names). Pass the result to `<ui-select [options]>` or `<ui-address-input [states]>`.
11939
+ */
11940
+ export declare function usStateSelectOptions(opts?: {
11941
+ store?: 'code' | 'name';
11942
+ includeDc?: boolean;
11943
+ label?: (state: UsStateOption) => string;
11944
+ locale?: string;
11945
+ }): {
11946
+ value: string;
11947
+ label: string;
11948
+ }[];
11934
11949
  /**
11935
11950
  * The 50 US states (no DC) with their major cities, keyed by two-letter state code: `US_LOCATIONS['TX']` -> `['Abilene', ...]`. Cities are unique and
11936
11951
  * trimmed per state. Use it for a city picker that follows a state select (the state names are in `US_STATES`).
@@ -12257,7 +12272,7 @@ export declare class IconComponent {
12257
12272
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
12258
12273
  /** Icon size in px. */
12259
12274
  readonly size: import("@angular/core").InputSignal<number>;
12260
- readonly variant: import("@angular/core").InputSignal<"danger" | "default">;
12275
+ readonly variant: import("@angular/core").InputSignal<"default" | "danger">;
12261
12276
  readonly disabled: import("@angular/core").InputSignal<boolean>;
12262
12277
  /** The host is running the request this icon started: a spinner replaces the picture and the button is disabled (no click) until it is false again. */
12263
12278
  readonly loading: import("@angular/core").InputSignal<boolean>;
@@ -14780,7 +14795,7 @@ export declare class DetailCardComponent {
14780
14795
  /** true (default) = the title is displayed in capitals (CSS only); false = shown as written. The text, aria-label and heading name are never changed. */
14781
14796
  readonly uppercaseTitle: import("@angular/core").InputSignal<boolean>;
14782
14797
  /** 1-6 makes the title a real heading for screen readers (role=heading, aria-level); null keeps it plain text. */
14783
- readonly headingLevel: import("@angular/core").InputSignal<3 | 2 | 1 | 4 | 5 | 6 | null>;
14798
+ readonly headingLevel: import("@angular/core").InputSignal<2 | 1 | 3 | 4 | 5 | 6 | null>;
14784
14799
  /** Optional id for the title text; the card is then labelled by it. Without it the title is the card's aria-label. */
14785
14800
  readonly titleId: import("@angular/core").InputSignal<string>;
14786
14801
  /** Accessible name of the card when the header gives none (no header, or no title). A visible title wins; blank = no name. */
@@ -14794,7 +14809,7 @@ export declare class DetailCardComponent {
14794
14809
  /** Background colour of the footer bar (the `[card-footer]` slot) as any CSS colour. Empty = no colour of its own. */
14795
14810
  readonly footerBackground: import("@angular/core").InputSignal<string>;
14796
14811
  /** Alignment of the `[card-footer]` content: `'start'` (default, unchanged) or `'end'` = a right-aligned action row with an 8px gap. */
14797
- readonly footerAlign: import("@angular/core").InputSignal<"end" | "start">;
14812
+ readonly footerAlign: import("@angular/core").InputSignal<"start" | "end">;
14798
14813
  /** Text colour as any CSS colour (`#fff`, `var(--on-dark)` …). Empty = the default colours. Colours the title, subtitle, chevron and body text. */
14799
14814
  readonly textColor: import("@angular/core").InputSignal<string>;
14800
14815
  /** false = no header at all (no title, edit button, toggle or divider): the card is only the body, always open. */
@@ -19858,7 +19873,7 @@ export declare class PaymentSidePanelComponent {
19858
19873
  private readonly terminalAvailable;
19859
19874
  /** value -> label of every live method the rendered plugins contribute (the first plugin wins a duplicate value). */
19860
19875
  private readonly liveMethods;
19861
- protected readonly kind: import("@angular/core").Signal<"none" | "manual" | "live" | "terminal">;
19876
+ protected readonly kind: import("@angular/core").Signal<"none" | "live" | "terminal" | "manual">;
19862
19877
  private kindOf;
19863
19878
  /** The method list as shown: record-only built-ins (a plugin takes over its own values), plugin extras, and only manual ones while a split is being built. */
19864
19879
  readonly methodList: import("@angular/core").Signal<PaymentMethodOption[]>;