@forgeroute/ui 0.4.96 → 0.4.97

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.96",
3
+ "version": "0.4.97",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.0.0",
6
6
  "@angular/core": ">=22.0.0",
@@ -3178,10 +3178,21 @@ export declare function issueToErrors(issue: FieldIssue | null): ValidationError
3178
3178
  export declare function requiredIssue(label: string): FieldIssue;
3179
3179
  /** "Too long (max N characters)." when the trimmed text is longer than `max`. */
3180
3180
  export declare function maxLengthIssue(text: string, max: number | undefined | null): FieldIssue | null;
3181
+ /**
3182
+ * An overlay that keeps the fields projected into it ALIVE while it is closed (`ui-side-panel`, `ui-modal`: Angular creates projected content with the host's template,
3183
+ * whether or not the overlay renders it). It provides this token, and every field (through [createFieldReveal]) forgets that it was blurred each time the overlay opens or
3184
+ * closes, so a field the user left before pressing Cancel / the close button is clean again when the overlay is opened the next time.
3185
+ */
3186
+ export interface UiFieldRevealHost {
3187
+ readonly open: Signal<boolean>;
3188
+ }
3189
+ export declare const UI_FIELD_REVEAL_HOST: InjectionToken<UiFieldRevealHost>;
3181
3190
  /**
3182
3191
  * Touched / reveal bookkeeping shared by the inputs. Messages (built-in AND a host `[error]`) are shown only once the user
3183
3192
  * interacted with the field itself (blurred it) OR the host sets `showErrors` (a failed Save / submit click), which reveals an untouched field at once.
3184
- * Switching `showErrors` from true back to false (the host closing / re-initialising its form) clears the touched state again, so no red field is left. Must be called from an injection context.
3193
+ * Switching `showErrors` from true back to false (the host closing / re-initialising its form) clears the touched state again, so no red field is left.
3194
+ * A field inside a `ui-side-panel` / `ui-modal` ([UI_FIELD_REVEAL_HOST]) also clears the touched state whenever that overlay opens or closes: a message never shows on open,
3195
+ * on close or after Cancel for a field the user did not leave in THIS visit. Must be called from an injection context.
3185
3196
  */
3186
3197
  export declare function createFieldReveal(showErrors: Signal<boolean>): {
3187
3198
  touched: WritableSignal<boolean>;
@@ -4693,7 +4704,7 @@ export declare class ModalComponent implements OnInit, OnDestroy {
4693
4704
  */
4694
4705
  readonly describedBy: import("@angular/core").InputSignal<string | null>;
4695
4706
  readonly maxWidth: import("@angular/core").InputSignal<string>;
4696
- readonly bodyOverflow: import("@angular/core").InputSignal<"auto" | "hidden" | "visible">;
4707
+ readonly bodyOverflow: import("@angular/core").InputSignal<"auto" | "visible" | "hidden">;
4697
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. */
4698
4709
  readonly dialogTestId: import("@angular/core").InputSignal<string>;
4699
4710
  /** Hides the header X button (e.g. while a request is running). Escape and a backdrop click still close unless `closable` is false. */
@@ -5472,7 +5483,7 @@ export declare class AudioPlayerComponent {
5472
5483
  /** Accessible name of the player. */
5473
5484
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
5474
5485
  /** How much to load before play: 'metadata' (default), 'auto' or 'none'. */
5475
- readonly preload: import("@angular/core").InputSignal<"metadata" | "auto" | "none">;
5486
+ readonly preload: import("@angular/core").InputSignal<"none" | "auto" | "metadata">;
5476
5487
  /** Fires when the browser can't load or decode the source. */
5477
5488
  readonly playbackError: import("@angular/core").OutputEmitterRef<void>;
5478
5489
  protected readonly failed: import("@angular/core").WritableSignal<boolean>;
@@ -6026,7 +6037,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
6026
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.
6027
6038
  * Default null: plain label text, exactly as before. Single mode only.
6028
6039
  */
6029
- readonly headingLevel: import("@angular/core").InputSignal<2 | 1 | 3 | 4 | 5 | 6 | null>;
6040
+ readonly headingLevel: import("@angular/core").InputSignal<3 | 2 | 1 | 4 | 5 | 6 | null>;
6030
6041
  readonly indeterminate: import("@angular/core").InputSignal<boolean>;
6031
6042
  readonly checked: import("@angular/core").ModelSignal<boolean>;
6032
6043
  /**
@@ -7007,7 +7018,7 @@ export declare class PhoneNumberPickerComponent {
7007
7018
  protected readonly modeCtl: FormControl<string>;
7008
7019
  protected readonly zipCtl: FormControl<string>;
7009
7020
  protected readonly areaCtl: FormControl<string>;
7010
- protected readonly step: import("@angular/core").WritableSignal<2 | 1 | 3>;
7021
+ protected readonly step: import("@angular/core").WritableSignal<3 | 2 | 1>;
7011
7022
  protected readonly mode: import("@angular/core").WritableSignal<PhoneNumberSearchMode>;
7012
7023
  private readonly _zip;
7013
7024
  private readonly _area;
@@ -7123,7 +7134,7 @@ export declare class ButtonComponent {
7123
7134
  * `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
7124
7135
  * background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
7125
7136
  */
7126
- readonly variant: import("@angular/core").InputSignal<"link" | "primary" | "secondary" | "danger" | "warning" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
7137
+ readonly variant: import("@angular/core").InputSignal<"link" | "primary" | "danger" | "warning" | "secondary" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
7127
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`). */
7128
7139
  readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
7129
7140
  /** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
@@ -7144,7 +7155,7 @@ export declare class ButtonComponent {
7144
7155
  */
7145
7156
  readonly href: import("@angular/core").InputSignal<string | null>;
7146
7157
  /** Where to open the `href` (`_blank` = a new tab). */
7147
- readonly target: import("@angular/core").InputSignal<"_self" | "_blank" | "_parent" | "_top" | null>;
7158
+ readonly target: import("@angular/core").InputSignal<"_blank" | "_self" | "_parent" | "_top" | null>;
7148
7159
  /** `rel` of the `href` link. A `_blank` target always gets `noopener noreferrer` added. */
7149
7160
  readonly rel: import("@angular/core").InputSignal<string | null>;
7150
7161
  /** The href when it is allowed (http, https, mailto, tel, sms or a relative URL), else null. */
@@ -7419,7 +7430,7 @@ export declare class PillTabsComponent {
7419
7430
  */
7420
7431
  readonly showDescription: import("@angular/core").InputSignal<boolean>;
7421
7432
  /** Heading level of the active tab's title when `showDescription` is on: 2 (default) or 3. */
7422
- readonly headingLevel: import("@angular/core").InputSignal<2 | 3>;
7433
+ readonly headingLevel: import("@angular/core").InputSignal<3 | 2>;
7423
7434
  readonly tabChange: import("@angular/core").OutputEmitterRef<string>;
7424
7435
  protected readonly activeTab: import("@angular/core").Signal<PillTab | null>;
7425
7436
  protected titleId(): string;
@@ -8312,7 +8323,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
8312
8323
  * `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
8313
8324
  * It only picks the keyboard; it does not restrict what can be typed or pasted.
8314
8325
  */
8315
- readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "search" | "numeric" | "decimal" | "none" | "tel" | "url">;
8326
+ readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "decimal" | "none" | "tel" | "url" | "numeric" | "search">;
8316
8327
  readonly readonly: import("@angular/core").InputSignal<boolean>;
8317
8328
  readonly hint: import("@angular/core").InputSignal<string>;
8318
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. */
@@ -9337,7 +9348,7 @@ export declare class CopyFieldComponent implements OnDestroy {
9337
9348
  /** Neither the Clipboard API nor the fallback could copy. */
9338
9349
  readonly copyFailed: import("@angular/core").OutputEmitterRef<void>;
9339
9350
  protected readonly _id: string;
9340
- protected readonly _state: import("@angular/core").WritableSignal<"idle" | "copied" | "failed">;
9351
+ protected readonly _state: import("@angular/core").WritableSignal<"idle" | "failed" | "copied">;
9341
9352
  protected readonly _announcement: import("@angular/core").Signal<string>;
9342
9353
  protected readonly _buttonName: import("@angular/core").Signal<string>;
9343
9354
  protected readonly _describedBy: import("@angular/core").Signal<string | null>;
@@ -10150,7 +10161,7 @@ export declare class DropdownComponent {
10150
10161
  readonly loader: import("@angular/core").InputSignal<(() => Promise<DropdownItem[]>) | null>;
10151
10162
  readonly active: import("@angular/core").InputSignal<boolean>;
10152
10163
  readonly activeValue: import("@angular/core").InputSignal<string>;
10153
- readonly variant: import("@angular/core").InputSignal<"button" | "badge">;
10164
+ readonly variant: import("@angular/core").InputSignal<"badge" | "button">;
10154
10165
  /** Trigger size for `variant="button"`: `sm` (default, the compact toolbar look) or `md` (same padding and type as a medium `ui-button`). */
10155
10166
  readonly size: import("@angular/core").InputSignal<"sm" | "md">;
10156
10167
  readonly menuWidth: import("@angular/core").InputSignal<string>;
@@ -10466,7 +10477,7 @@ export declare class FormSectionComponent {
10466
10477
  }, {}, never, ["*"], true, never>;
10467
10478
  }
10468
10479
  export declare class FormRowComponent {
10469
- readonly cols: import("@angular/core").InputSignal<2 | 1 | 3 | 4>;
10480
+ readonly cols: import("@angular/core").InputSignal<3 | 2 | 1 | 4>;
10470
10481
  static ɵfac: i0.ɵɵFactoryDeclaration<FormRowComponent, never>;
10471
10482
  static ɵcmp: i0.ɵɵComponentDeclaration<FormRowComponent, "ui-form-row", never, {
10472
10483
  "cols": {
@@ -10483,7 +10494,7 @@ export declare class FormRowComponent {
10483
10494
  * child simply takes the full width. Keep a numeric span within the row's `cols` (use `all` for the whole row).
10484
10495
  */
10485
10496
  export declare class FormColSpanDirective {
10486
- readonly uiColSpan: import("@angular/core").InputSignal<"" | 2 | 3 | "2" | "3" | "all">;
10497
+ readonly uiColSpan: import("@angular/core").InputSignal<"" | 3 | 2 | "3" | "2" | "all">;
10487
10498
  protected readonly _class: import("@angular/core").Signal<string>;
10488
10499
  static ɵfac: i0.ɵɵFactoryDeclaration<FormColSpanDirective, never>;
10489
10500
  static ɵdir: i0.ɵɵDirectiveDeclaration<FormColSpanDirective, "[uiColSpan]", never, {
@@ -11799,7 +11810,7 @@ export declare class ChipGroupComponent {
11799
11810
  readonly spaceAbove: import("@angular/core").InputSignal<"none" | "sm" | "md">;
11800
11811
  /** Space below the chip group. */
11801
11812
  readonly spaceBelow: import("@angular/core").InputSignal<"none" | "sm" | "md">;
11802
- protected readonly _gap: import("@angular/core").Signal<"6px" | "12px" | "8px">;
11813
+ protected readonly _gap: import("@angular/core").Signal<"8px" | "6px" | "12px">;
11803
11814
  protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "6px" | "12px">;
11804
11815
  protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "6px" | "12px">;
11805
11816
  static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
@@ -12246,7 +12257,7 @@ export declare class IconComponent {
12246
12257
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
12247
12258
  /** Icon size in px. */
12248
12259
  readonly size: import("@angular/core").InputSignal<number>;
12249
- readonly variant: import("@angular/core").InputSignal<"default" | "danger">;
12260
+ readonly variant: import("@angular/core").InputSignal<"danger" | "default">;
12250
12261
  readonly disabled: import("@angular/core").InputSignal<boolean>;
12251
12262
  /** 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. */
12252
12263
  readonly loading: import("@angular/core").InputSignal<boolean>;
@@ -14769,7 +14780,7 @@ export declare class DetailCardComponent {
14769
14780
  /** true (default) = the title is displayed in capitals (CSS only); false = shown as written. The text, aria-label and heading name are never changed. */
14770
14781
  readonly uppercaseTitle: import("@angular/core").InputSignal<boolean>;
14771
14782
  /** 1-6 makes the title a real heading for screen readers (role=heading, aria-level); null keeps it plain text. */
14772
- readonly headingLevel: import("@angular/core").InputSignal<2 | 1 | 3 | 4 | 5 | 6 | null>;
14783
+ readonly headingLevel: import("@angular/core").InputSignal<3 | 2 | 1 | 4 | 5 | 6 | null>;
14773
14784
  /** Optional id for the title text; the card is then labelled by it. Without it the title is the card's aria-label. */
14774
14785
  readonly titleId: import("@angular/core").InputSignal<string>;
14775
14786
  /** Accessible name of the card when the header gives none (no header, or no title). A visible title wins; blank = no name. */
@@ -14783,7 +14794,7 @@ export declare class DetailCardComponent {
14783
14794
  /** Background colour of the footer bar (the `[card-footer]` slot) as any CSS colour. Empty = no colour of its own. */
14784
14795
  readonly footerBackground: import("@angular/core").InputSignal<string>;
14785
14796
  /** Alignment of the `[card-footer]` content: `'start'` (default, unchanged) or `'end'` = a right-aligned action row with an 8px gap. */
14786
- readonly footerAlign: import("@angular/core").InputSignal<"start" | "end">;
14797
+ readonly footerAlign: import("@angular/core").InputSignal<"end" | "start">;
14787
14798
  /** Text colour as any CSS colour (`#fff`, `var(--on-dark)` …). Empty = the default colours. Colours the title, subtitle, chevron and body text. */
14788
14799
  readonly textColor: import("@angular/core").InputSignal<string>;
14789
14800
  /** false = no header at all (no title, edit button, toggle or divider): the card is only the body, always open. */
@@ -19847,7 +19858,7 @@ export declare class PaymentSidePanelComponent {
19847
19858
  private readonly terminalAvailable;
19848
19859
  /** value -> label of every live method the rendered plugins contribute (the first plugin wins a duplicate value). */
19849
19860
  private readonly liveMethods;
19850
- protected readonly kind: import("@angular/core").Signal<"none" | "live" | "terminal" | "manual">;
19861
+ protected readonly kind: import("@angular/core").Signal<"none" | "manual" | "live" | "terminal">;
19851
19862
  private kindOf;
19852
19863
  /** 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. */
19853
19864
  readonly methodList: import("@angular/core").Signal<PaymentMethodOption[]>;