@forgeroute/ui 0.4.84 → 0.4.86

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.84",
3
+ "version": "0.4.86",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.0.0",
6
6
  "@angular/core": ">=22.0.0",
@@ -619,7 +619,7 @@ export declare class DocumentSendOptionsComponent implements UiFieldValidity {
619
619
  /** Roles of documents whose row had no `signerRoles` and that the host resolves (`signers().resolveRoles`). */
620
620
  readonly roleStates: import("@angular/core").WritableSignal<Record<string, RoleState>>;
621
621
  /** The envelope's documents: `loading` / `error` while the panel reads them (`loadDocuments`), `ready` once known. */
622
- readonly envelopeStatus: import("@angular/core").WritableSignal<"error" | "loading" | "ready" | "idle">;
622
+ readonly envelopeStatus: import("@angular/core").WritableSignal<"idle" | "loading" | "ready" | "error">;
623
623
  private envelopeSub;
624
624
  private readonly roleSubs;
625
625
  /** The sender opened the collapsed "Signing options" line. */
@@ -1314,7 +1314,7 @@ export declare class StripeConnectComponent {
1314
1314
  readonly navigateTab: import("@angular/core").InputSignal<((url: string) => void) | null>;
1315
1315
  protected readonly visible: import("@angular/core").Signal<boolean>;
1316
1316
  /** Which screen the card shows. */
1317
- protected readonly state: import("@angular/core").Signal<"complete" | "none" | "verifying" | "incomplete">;
1317
+ protected readonly state: import("@angular/core").Signal<"none" | "complete" | "verifying" | "incomplete">;
1318
1318
  /** What the persistent status region says: the current state, plus "Loading." while a request runs. Empty while nothing is shown. */
1319
1319
  protected readonly liveText: import("@angular/core").Signal<string>;
1320
1320
  /** The user pressed a button that started a request: when the screen then changes, focus moves to the new screen (the pressed button is gone). */
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- import { AfterContentChecked, EnvironmentProviders, InjectionToken, OnDestroy, OnInit, Signal, TemplateRef, WritableSignal } from "@angular/core";
2
+ import { AfterContentChecked, EnvironmentProviders, InjectionToken, OnDestroy, OnInit, Provider, Signal, TemplateRef, WritableSignal } from "@angular/core";
3
3
  import { UrlTree } from "@angular/router";
4
4
  import { Observable, Subject } from "rxjs";
5
5
  import { AbstractControl, ControlValueAccessor, FormControl, ValidationErrors, Validator, ValidatorFn } from "@angular/forms";
@@ -1759,6 +1759,10 @@ export declare const UI_DEFAULT_LABELS: {
1759
1759
  readonly 'paymentSidePanel.sending': "Sending...";
1760
1760
  readonly 'starRating.rating': "Rating";
1761
1761
  readonly 'timeline.ariaLabel': "Timeline";
1762
+ /** Second line of a timeline item built by `timelineItemsFromEvents`: "Amount: $10.00". */
1763
+ readonly 'timeline.eventAmount': "Amount";
1764
+ /** Title of a locked record built by `timelineItemsFromEvents`. */
1765
+ readonly 'timeline.eventLocked': "{{ title }} (locked record)";
1762
1766
  readonly 'common.change': "Change";
1763
1767
  readonly 'common.delete': "Delete";
1764
1768
  readonly 'common.hide': "Hide";
@@ -2987,7 +2991,7 @@ export declare class SelectComponent implements ControlValueAccessor, Validator,
2987
2991
  readonly error: import("@angular/core").InputSignal<string>;
2988
2992
  /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
2989
2993
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
2990
- readonly size: import("@angular/core").InputSignal<"sm" | "default">;
2994
+ readonly size: import("@angular/core").InputSignal<"default" | "sm">;
2991
2995
  readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
2992
2996
  private readonly _cvaDisabled;
2993
2997
  protected readonly disabled: import("@angular/core").Signal<boolean>;
@@ -4216,7 +4220,7 @@ export declare class SidePanelComponent implements OnDestroy {
4216
4220
  readonly cancelLabel: import("@angular/core").Signal<string>;
4217
4221
  /** Right-aligned primary action button label. Empty string = hidden. */
4218
4222
  readonly primaryLabel: import("@angular/core").InputSignal<string>;
4219
- readonly primaryVariant: import("@angular/core").InputSignal<"warning" | "primary" | "danger">;
4223
+ readonly primaryVariant: import("@angular/core").InputSignal<"primary" | "danger" | "warning">;
4220
4224
  readonly primaryLoading: import("@angular/core").InputSignal<boolean>;
4221
4225
  readonly primaryDisabled: import("@angular/core").InputSignal<boolean>;
4222
4226
  /** `data-testid` of the Cancel button; none when empty (default). */
@@ -4348,7 +4352,7 @@ export declare class ModalComponent implements OnInit, OnDestroy {
4348
4352
  */
4349
4353
  readonly describedBy: import("@angular/core").InputSignal<string | null>;
4350
4354
  readonly maxWidth: import("@angular/core").InputSignal<string>;
4351
- readonly bodyOverflow: import("@angular/core").InputSignal<"hidden" | "visible" | "auto">;
4355
+ readonly bodyOverflow: import("@angular/core").InputSignal<"auto" | "hidden" | "visible">;
4352
4356
  /** `data-testid` of the dialog element itself (the host `<ui-modal>` is always in the page, the dialog only while open). None when empty. */
4353
4357
  readonly dialogTestId: import("@angular/core").InputSignal<string>;
4354
4358
  /** Hides the header X button (e.g. while a request is running). Escape and a backdrop click still close unless `closable` is false. */
@@ -5013,7 +5017,7 @@ export declare class AudioPlayerComponent {
5013
5017
  /** Accessible name of the player. */
5014
5018
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
5015
5019
  /** How much to load before play: 'metadata' (default), 'auto' or 'none'. */
5016
- readonly preload: import("@angular/core").InputSignal<"none" | "metadata" | "auto">;
5020
+ readonly preload: import("@angular/core").InputSignal<"auto" | "none" | "metadata">;
5017
5021
  /** Fires when the browser can't load or decode the source. */
5018
5022
  readonly playbackError: import("@angular/core").OutputEmitterRef<void>;
5019
5023
  protected readonly failed: import("@angular/core").WritableSignal<boolean>;
@@ -5434,7 +5438,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
5434
5438
  * 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.
5435
5439
  * Default null: plain label text, exactly as before. Single mode only.
5436
5440
  */
5437
- readonly headingLevel: import("@angular/core").InputSignal<1 | 2 | 5 | 3 | 4 | 6 | null>;
5441
+ readonly headingLevel: import("@angular/core").InputSignal<1 | 2 | 3 | 4 | 5 | 6 | null>;
5438
5442
  readonly indeterminate: import("@angular/core").InputSignal<boolean>;
5439
5443
  readonly checked: import("@angular/core").ModelSignal<boolean>;
5440
5444
  /**
@@ -5670,6 +5674,12 @@ export declare class CheckboxTrailingDirective {
5670
5674
  * Built on a native `<input type="checkbox" role="switch">`, so Space toggles it, it is focusable, and a screen reader
5671
5675
  * announces it as a switch (on / off). The label and hint name and describe it. `disabled` (input or form control) dims it
5672
5676
  * and blocks changes. `ariaDescribedBy` adds the id of a description rendered elsewhere. On touch devices and phones the switch has a >= 44px hit area.
5677
+ *
5678
+ * Optional: content with the `toggle-before-switch` attribute is shown between the text and the switch (e.g. a preview icon button):
5679
+ *
5680
+ * <ui-toggle label="E-Signature Reminders" [(checked)]="on"><ui-icon toggle-before-switch name="view" ariaLabel="Preview" /></ui-toggle>
5681
+ *
5682
+ * Without it nothing changes. Clicking the slotted content does not toggle the switch.
5673
5683
  */
5674
5684
  export declare class ToggleComponent implements ControlValueAccessor {
5675
5685
  /** Bold line on the left. */
@@ -5741,7 +5751,7 @@ export declare class ToggleComponent implements ControlValueAccessor {
5741
5751
  };
5742
5752
  }, {
5743
5753
  "checked": "checkedChange";
5744
- }, never, never, true, never>;
5754
+ }, never, ["[toggle-before-switch]"], true, never>;
5745
5755
  }
5746
5756
  /** One step of a `ui-stepper`. `key` must be unique within the list. */
5747
5757
  export interface StepperStep {
@@ -5863,7 +5873,7 @@ export declare class StepperComponent {
5863
5873
  * its circle, one continuous line behind the circles that fills as steps complete; a complete step shows a check, the current step an
5864
5874
  * accent ring with a dot, an upcoming step an empty circle (no numbers). Circles are 40px (32px with `size="sm"`).
5865
5875
  */
5866
- readonly labelPosition: import("@angular/core").InputSignal<"below" | "beside">;
5876
+ readonly labelPosition: import("@angular/core").InputSignal<"beside" | "below">;
5867
5877
  /** Viewport width in px below which a horizontal stepper is drawn vertical (labels beside the circles), e.g. `640`. null (default) = never. */
5868
5878
  readonly stackBelow: import("@angular/core").InputSignal<number | null>;
5869
5879
  /** CSS length (e.g. `10.5rem`): horizontal only - the list gets `min-width: calc(<step count> * <value>)`. Empty (default) = no minimum. */
@@ -6525,7 +6535,7 @@ export declare class ButtonComponent {
6525
6535
  * `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
6526
6536
  * background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
6527
6537
  */
6528
- readonly variant: import("@angular/core").InputSignal<"warning" | "link" | "primary" | "secondary" | "danger" | "icon" | "ghost" | "ghost-start" | "tab" | "icon-danger">;
6538
+ readonly variant: import("@angular/core").InputSignal<"primary" | "secondary" | "danger" | "warning" | "link" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
6529
6539
  /** 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`). */
6530
6540
  readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
6531
6541
  /** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
@@ -6546,7 +6556,7 @@ export declare class ButtonComponent {
6546
6556
  */
6547
6557
  readonly href: import("@angular/core").InputSignal<string | null>;
6548
6558
  /** Where to open the `href` (`_blank` = a new tab). */
6549
- readonly target: import("@angular/core").InputSignal<"_blank" | "_self" | "_parent" | "_top" | null>;
6559
+ readonly target: import("@angular/core").InputSignal<"_self" | "_blank" | "_parent" | "_top" | null>;
6550
6560
  /** `rel` of the `href` link. A `_blank` target always gets `noopener noreferrer` added. */
6551
6561
  readonly rel: import("@angular/core").InputSignal<string | null>;
6552
6562
  /** The href when it is allowed (http, https, mailto, tel, sms or a relative URL), else null. */
@@ -7214,7 +7224,7 @@ export declare class ImportSourceGridComponent {
7214
7224
  /** The `value` of the picked source (highlighted). `tile` only: the `card` appearance does not keep a selection. */
7215
7225
  readonly selected: import("@angular/core").InputSignal<string>;
7216
7226
  /** `tile`: the compact buttons of the import window. `card`: one `ui-detail-card` per source with its own select button (used on a page). */
7217
- readonly appearance: import("@angular/core").InputSignal<"tile" | "card">;
7227
+ readonly appearance: import("@angular/core").InputSignal<"card" | "tile">;
7218
7228
  /** `card`: disables every card's button (for example while the page is saving). */
7219
7229
  readonly disabled: import("@angular/core").InputSignal<boolean>;
7220
7230
  /** `card`: the text of each card's button. */
@@ -7702,7 +7712,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
7702
7712
  readonly passwordRequirements: import("@angular/core").InputSignal<boolean>;
7703
7713
  /** Rules for `passwordRequirements`; default = the library's five rules (8+ characters, upper, lower, digit, special). */
7704
7714
  readonly passwordRules: import("@angular/core").InputSignal<readonly PasswordRule[] | undefined>;
7705
- readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "password" | "tel" | "url">;
7715
+ readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "tel" | "password" | "url">;
7706
7716
  readonly maxlength: import("@angular/core").InputSignal<number | undefined>;
7707
7717
  readonly required: import("@angular/core").InputSignal<boolean>;
7708
7718
  readonly autocomplete: import("@angular/core").InputSignal<string>;
@@ -7711,7 +7721,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
7711
7721
  * `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
7712
7722
  * It only picks the keyboard; it does not restrict what can be typed or pasted.
7713
7723
  */
7714
- readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "none" | "search" | "tel" | "url" | "decimal" | "numeric">;
7724
+ readonly inputmode: import("@angular/core").InputSignal<"" | "numeric" | "decimal" | "email" | "text" | "none" | "search" | "tel" | "url">;
7715
7725
  readonly readonly: import("@angular/core").InputSignal<boolean>;
7716
7726
  readonly hint: import("@angular/core").InputSignal<string>;
7717
7727
  /** 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. */
@@ -7783,7 +7793,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
7783
7793
  protected readonly _stepAttr: import("@angular/core").Signal<string | null>;
7784
7794
  protected readonly _revealable: import("@angular/core").Signal<boolean>;
7785
7795
  protected readonly _shown: import("@angular/core").WritableSignal<boolean>;
7786
- protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "password" | "tel" | "url">;
7796
+ protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "tel" | "password" | "url">;
7787
7797
  protected readonly _eyePath: string;
7788
7798
  protected readonly _eyeOffPath: string;
7789
7799
  protected readonly _showRequirements: import("@angular/core").Signal<boolean>;
@@ -8734,7 +8744,7 @@ export declare class CopyFieldComponent implements OnDestroy {
8734
8744
  /** Neither the Clipboard API nor the fallback could copy. */
8735
8745
  readonly copyFailed: import("@angular/core").OutputEmitterRef<void>;
8736
8746
  protected readonly _id: string;
8737
- protected readonly _state: import("@angular/core").WritableSignal<"failed" | "idle" | "copied">;
8747
+ protected readonly _state: import("@angular/core").WritableSignal<"idle" | "copied" | "failed">;
8738
8748
  protected readonly _announcement: import("@angular/core").Signal<string>;
8739
8749
  protected readonly _buttonName: import("@angular/core").Signal<string>;
8740
8750
  protected readonly _describedBy: import("@angular/core").Signal<string | null>;
@@ -9944,7 +9954,7 @@ export type ListItemIconColor = 'slate' | 'amber' | 'red' | 'blue' | 'green' | '
9944
9954
  export declare class ListItemComponent implements AfterContentChecked {
9945
9955
  private readonly host;
9946
9956
  /** Show a radio button, checkbox, or nothing on the left. */
9947
- readonly leading: import("@angular/core").InputSignal<"none" | "radio" | "checkbox">;
9957
+ readonly leading: import("@angular/core").InputSignal<"none" | "checkbox" | "radio">;
9948
9958
  /** `name` attribute for the radio/checkbox (groups radios together). */
9949
9959
  readonly inputName: import("@angular/core").InputSignal<string>;
9950
9960
  /** `id` attribute for the radio/checkbox (links the label). */
@@ -11180,9 +11190,9 @@ export declare class ChipGroupComponent {
11180
11190
  readonly spaceAbove: import("@angular/core").InputSignal<"none" | "sm" | "md">;
11181
11191
  /** Space below the chip group. */
11182
11192
  readonly spaceBelow: import("@angular/core").InputSignal<"none" | "sm" | "md">;
11183
- protected readonly _gap: import("@angular/core").Signal<"8px" | "12px" | "6px">;
11184
- protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "12px" | "6px">;
11185
- protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "12px" | "6px">;
11193
+ protected readonly _gap: import("@angular/core").Signal<"6px" | "12px" | "8px">;
11194
+ protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "6px" | "12px">;
11195
+ protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "6px" | "12px">;
11186
11196
  static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
11187
11197
  static ɵcmp: i0.ɵɵComponentDeclaration<ChipGroupComponent, "ui-chip-group", never, {
11188
11198
  "gap": {
@@ -11601,7 +11611,7 @@ export declare class IconComponent {
11601
11611
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
11602
11612
  /** Icon size in px. */
11603
11613
  readonly size: import("@angular/core").InputSignal<number>;
11604
- readonly variant: import("@angular/core").InputSignal<"danger" | "default">;
11614
+ readonly variant: import("@angular/core").InputSignal<"default" | "danger">;
11605
11615
  readonly disabled: import("@angular/core").InputSignal<boolean>;
11606
11616
  /** 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. */
11607
11617
  readonly loading: import("@angular/core").InputSignal<boolean>;
@@ -11800,6 +11810,56 @@ export declare class TimelineComponent {
11800
11810
  "itemAction": "itemAction";
11801
11811
  }, never, never, true, never>;
11802
11812
  }
11813
+ /** A badge on an event: its text and colour. */
11814
+ export interface TimelineEventBadge {
11815
+ label: string;
11816
+ /** Library badge colour. Default `gray`. */
11817
+ variant?: BadgeVariant;
11818
+ }
11819
+ /**
11820
+ * One activity event of a host page (a note, a payment, a status change...). Hosts map their own records to this shape once and let
11821
+ * {@link timelineItemsFromEvents} build the `ui-timeline` items, so the title / second line / time text / badges / dot colour are the same on every page.
11822
+ */
11823
+ export interface TimelineEvent {
11824
+ id?: string;
11825
+ /** ISO date or date-time. Drives the time text, the machine-readable `datetime` and, for `groupByDay`, the day heading. */
11826
+ date: string;
11827
+ title: string;
11828
+ /** What happened, in a sentence. */
11829
+ description?: string | null;
11830
+ /** Who did it. */
11831
+ actor?: string | null;
11832
+ /** Money involved (US dollars). 0 and null show nothing. */
11833
+ amount?: number | null;
11834
+ /** A legally immutable record: the title gets the `lockedSuffix`. */
11835
+ locked?: boolean;
11836
+ /** First badge; its colour also colours the dot. */
11837
+ category?: TimelineEventBadge | null;
11838
+ /** Second badge. */
11839
+ status?: TimelineEventBadge | null;
11840
+ }
11841
+ export interface TimelineEventOptions {
11842
+ /** Angular `formatDate` pattern of the visible time. Default `M/d/yyyy h:mm a` (11/8/2026 3:15 PM). */
11843
+ timeFormat?: string;
11844
+ /** Locale of the time text and the amount. Default: the app's active locale (`en-US` without a language service). */
11845
+ locale?: string;
11846
+ /** Words before the amount in the second line. Default: the library text "Amount" in the active language. */
11847
+ amountLabel?: string;
11848
+ /** Appended to the title of a locked record. Default: the library text "<title> (locked record)" in the active language. */
11849
+ lockedSuffix?: string;
11850
+ /** Joins the parts of the second line. Default ` · `. */
11851
+ separator?: string;
11852
+ }
11853
+ /**
11854
+ * Builds `<ui-timeline>` items from activity events.
11855
+ *
11856
+ * - title: the event title (plus `lockedSuffix` for a locked record)
11857
+ * - description: the non-empty ones of `description`, `actor` and `Amount: $1,234.50`, joined with `separator` (absent when there are none)
11858
+ * - time / dateTime: the formatted date and the raw `date`; an unparsable date gives no time text (never "Invalid Date")
11859
+ * - badges: the category and the status badge, in that order, when they have a label
11860
+ * - dotVariant: the colour of the category badge (`gray` when there is none)
11861
+ */
11862
+ export declare function timelineItemsFromEvents(events: readonly TimelineEvent[], options?: TimelineEventOptions): TimelineItem[];
11803
11863
  /**
11804
11864
  * Small muted helper text shown under a form or panel section.
11805
11865
  *
@@ -12055,7 +12115,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
12055
12115
  * the object. `valueChange` always emits the object. A written string is read with `parseAddressValue` for display only: the control keeps
12056
12116
  * the original text until the user edits a field (so a text the parser cannot split is not rewritten on load).
12057
12117
  */
12058
- readonly valueFormat: import("@angular/core").InputSignal<"object" | "text" | "auto">;
12118
+ readonly valueFormat: import("@angular/core").InputSignal<"object" | "auto" | "text">;
12059
12119
  /** ZIP rule; the default is the US 5 digits / 5+4 rule. `null` accepts any non-empty ZIP. The ZIP is validated and stored trimmed. */
12060
12120
  readonly zipPattern: import("@angular/core").InputSignal<RegExp | null>;
12061
12121
  /** Message shown when the ZIP breaks `zipPattern`. */
@@ -13904,7 +13964,7 @@ export declare class PdfHotspotComponent {
13904
13964
  /** `ready`: clickable; `blocked`: disabled (a prerequisite is missing); `signed`: shows `image`. */
13905
13965
  readonly state: import("@angular/core").InputSignal<"ready" | "blocked" | "signed">;
13906
13966
  /** `warning` gives the ready state an amber look (e.g. for initials), default is blue. */
13907
- readonly tone: import("@angular/core").InputSignal<"warning" | "primary">;
13967
+ readonly tone: import("@angular/core").InputSignal<"primary" | "warning">;
13908
13968
  /** Text of the ready button (e.g. "Sign Here"). */
13909
13969
  readonly labelInput: import("@angular/core").InputSignal<string | null>;
13910
13970
  readonly label: import("@angular/core").Signal<string>;
@@ -14044,7 +14104,7 @@ export declare class DetailCardComponent {
14044
14104
  /** true (default) = the title is displayed in capitals (CSS only); false = shown as written. The text, aria-label and heading name are never changed. */
14045
14105
  readonly uppercaseTitle: import("@angular/core").InputSignal<boolean>;
14046
14106
  /** 1-6 makes the title a real heading for screen readers (role=heading, aria-level); null keeps it plain text. */
14047
- readonly headingLevel: import("@angular/core").InputSignal<1 | 2 | 5 | 3 | 4 | 6 | null>;
14107
+ readonly headingLevel: import("@angular/core").InputSignal<1 | 2 | 3 | 4 | 5 | 6 | null>;
14048
14108
  /** Optional id for the title text; the card is then labelled by it. Without it the title is the card's aria-label. */
14049
14109
  readonly titleId: import("@angular/core").InputSignal<string>;
14050
14110
  /** Accessible name of the card when the header gives none (no header, or no title). A visible title wins; blank = no name. */
@@ -14058,7 +14118,7 @@ export declare class DetailCardComponent {
14058
14118
  /** Background colour of the footer bar (the `[card-footer]` slot) as any CSS colour. Empty = no colour of its own. */
14059
14119
  readonly footerBackground: import("@angular/core").InputSignal<string>;
14060
14120
  /** Alignment of the `[card-footer]` content: `'start'` (default, unchanged) or `'end'` = a right-aligned action row with an 8px gap. */
14061
- readonly footerAlign: import("@angular/core").InputSignal<"end" | "start">;
14121
+ readonly footerAlign: import("@angular/core").InputSignal<"start" | "end">;
14062
14122
  /** Text colour as any CSS colour (`#fff`, `var(--on-dark)` …). Empty = the default colours. Colours the title, subtitle, chevron and body text. */
14063
14123
  readonly textColor: import("@angular/core").InputSignal<string>;
14064
14124
  /** false = no header at all (no title, edit button, toggle or divider): the card is only the body, always open. */
@@ -16797,7 +16857,7 @@ export declare class SetupWizardComponent {
16797
16857
  protected customHintId(): string;
16798
16858
  protected readonly importBlocked: import("@angular/core").Signal<boolean>;
16799
16859
  /** The step's own two parts (`splitLayout`) show as two tabs, one card at a time; this is the open one (it starts on the app's part on every visit). */
16800
- protected readonly splitTab: import("@angular/core").WritableSignal<"extra" | "main">;
16860
+ protected readonly splitTab: import("@angular/core").WritableSignal<"main" | "extra">;
16801
16861
  protected readonly splitTabs: import("@angular/core").Signal<{
16802
16862
  key: string;
16803
16863
  label: string;
@@ -19060,7 +19120,7 @@ export declare class PaymentSidePanelComponent {
19060
19120
  private readonly terminalAvailable;
19061
19121
  /** value -> label of every live method the rendered plugins contribute (the first plugin wins a duplicate value). */
19062
19122
  private readonly liveMethods;
19063
- protected readonly kind: import("@angular/core").Signal<"none" | "manual" | "live" | "terminal">;
19123
+ protected readonly kind: import("@angular/core").Signal<"none" | "live" | "terminal" | "manual">;
19064
19124
  private kindOf;
19065
19125
  /** 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. */
19066
19126
  readonly methodList: import("@angular/core").Signal<PaymentMethodOption[]>;
@@ -19490,6 +19550,107 @@ export declare class UiLanguageService implements OnDestroy {
19490
19550
  static ɵfac: i0.ɵɵFactoryDeclaration<UiLanguageService, never>;
19491
19551
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
19492
19552
  }
19553
+ /**
19554
+ * Module labels: English + Spanish texts for a module package (@forgeroute/communications, accounting, marketing ...) that follow the app's language with
19555
+ * the SAME mechanism the library uses: the language comes from `UiLanguageService` (switcher, `?lang=`, postMessage ...), English is built in, the Spanish
19556
+ * dictionary is a lazy chunk downloaded the first time Spanish is active, `{{ name }}` placeholders, `_one` / `_other` plurals, and the library locale
19557
+ * for numbers and dates. See docs/module-labels.md.
19558
+ */
19559
+ export type ModuleLabelParams = Readonly<Record<string, string | number>>;
19560
+ /** The plural base names of a dictionary: every key written `<base>_one` (its `<base>_other` pair is required by `assertModuleLabelParity`). */
19561
+ export type ModuleLabelPluralBase<K extends string> = K extends `${infer B}_one` ? B : never;
19562
+ export interface ModuleLabelsOptions<K extends string> {
19563
+ /** Unique name of the module ('communications'); overrides and the test helper address the module by it. */
19564
+ namespace: string;
19565
+ /** The English texts: the key set of the module, always available, no download. */
19566
+ en: Readonly<Record<K, string>>;
19567
+ /** Loads the Spanish texts, written as a dynamic import so a bundler puts them in a lazy chunk: `() => import('./labels.es').then(m => m.ES)`. */
19568
+ es?: () => Promise<Readonly<Record<K, string>>>;
19569
+ }
19570
+ /** What `createModuleLabels` returns: plain data, safe to create at module level (no injection context needed). Hand it to `injectModuleLabels`. */
19571
+ export interface ModuleLabelsHandle<K extends string> {
19572
+ readonly namespace: string;
19573
+ readonly en: Readonly<Record<K, string>>;
19574
+ readonly es?: () => Promise<Readonly<Record<K, string>>>;
19575
+ }
19576
+ export declare function createModuleLabels<K extends string>(options: ModuleLabelsOptions<K>): ModuleLabelsHandle<K>;
19577
+ /** The labels of one module in the current injection context. Every member reads signals, so a template or `computed` that calls it follows a language change. */
19578
+ export interface ModuleLabels<K extends string> {
19579
+ /** The text of `key` in the active language (English for a key the language lacks or while its chunk loads), `{{ name }}` filled from `params`. */
19580
+ t(key: K, params?: ModuleLabelParams): string;
19581
+ /** A plural text: `<base>_one` when `count === 1`, else `<base>_other`; `count` is available as `{{ count }}` (an own `count` param wins). */
19582
+ tn(base: ModuleLabelPluralBase<K>, count: number, params?: ModuleLabelParams): string;
19583
+ /** `true` when the active language needs no chunk (English, a language the module has no texts for) or its chunk finished loading (or failed: English is shown). */
19584
+ readonly ready: Signal<boolean>;
19585
+ /** The active language code of the app (base language: 'es-MX' reads 'es'). */
19586
+ readonly language: Signal<string>;
19587
+ /** The library locale (dates / numbers) that goes with the language. */
19588
+ readonly locale: Signal<string>;
19589
+ formatDate(value: Date | string | number | null | undefined, format?: string, timeZone?: string): string;
19590
+ formatNumber(value: number | null | undefined, options?: Intl.NumberFormatOptions): string;
19591
+ formatCurrency(value: number | null | undefined, currency?: string, options?: Intl.NumberFormatOptions): string;
19592
+ }
19593
+ export interface ModuleLabelOverrides<K extends string = string> {
19594
+ en?: Partial<Readonly<Record<K, string>>>;
19595
+ es?: Partial<Readonly<Record<K, string>>>;
19596
+ }
19597
+ /**
19598
+ * Lets the host app change single texts of a module, with the semantics of `UiLabelsService.setLabels`: a key the module does not have is ignored, a blank text
19599
+ * is ignored (the module's own text stays) and the placeholders must be exactly those of the module's English text of that key (otherwise ignored).
19600
+ * Several calls for one namespace merge; the later one wins.
19601
+ */
19602
+ export declare function provideModuleLabelOverrides<K extends string = string>(namespace: string | Pick<ModuleLabelsHandle<K>, 'namespace'>, overrides: ModuleLabelOverrides<K>): EnvironmentProviders;
19603
+ type Status = 'idle' | 'loading' | 'done' | 'failed';
19604
+ interface ModuleState {
19605
+ readonly handle: ModuleLabelsHandle<string>;
19606
+ readonly status: WritableSignal<Status>;
19607
+ readonly spanish: WritableSignal<Readonly<Record<string, string>> | null>;
19608
+ readonly overrides: {
19609
+ en: Record<string, string>;
19610
+ es: Record<string, string>;
19611
+ };
19612
+ }
19613
+ /** Root-level store of the module labels of one application: language, lazily loaded Spanish dictionaries (once per module), host overrides. */
19614
+ export declare class ModuleLabelsRegistry implements OnDestroy {
19615
+ private readonly injector;
19616
+ private readonly labels;
19617
+ private readonly loaders;
19618
+ private readonly entries;
19619
+ private readonly states;
19620
+ private destroyed;
19621
+ /** The app's language (base code). */
19622
+ readonly language: Signal<string>;
19623
+ ngOnDestroy(): void;
19624
+ stateFor(handle: ModuleLabelsHandle<string>): ModuleState;
19625
+ /** Downloads the Spanish texts once per module (a failed download is tried again the next time Spanish becomes active). */
19626
+ private load;
19627
+ create<K extends string>(handle: ModuleLabelsHandle<K>): ModuleLabels<K>;
19628
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModuleLabelsRegistry, never>;
19629
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
19630
+ }
19631
+ /** The labels of a module for the current injection context (a component, directive or service field). Call it once, as a field initializer. */
19632
+ export declare function injectModuleLabels<K extends string>(handle: ModuleLabelsHandle<K>): ModuleLabels<K>;
19633
+ /**
19634
+ * For a module package's specs: throws one Error listing every problem when the Spanish dictionary does not match the English one - a key missing or extra,
19635
+ * a blank text, different `{{ placeholders }}`, a plural pair (`x_one` / `x_other`) incomplete in either language.
19636
+ */
19637
+ export declare function assertModuleLabelParity(en: Readonly<Record<string, string>>, es: Readonly<Record<string, string>>): void;
19638
+ export interface ModuleLabelsTestingOptions {
19639
+ /** Starting language (default 'en'). */
19640
+ language?: string;
19641
+ /** In-memory Spanish texts by namespace; replaces the module's own lazy loader so no chunk is requested. A function may return a rejected promise to simulate a failed download. */
19642
+ es?: Readonly<Record<string, Readonly<Record<string, string>> | (() => Promise<Readonly<Record<string, string>>>)>>;
19643
+ }
19644
+ export interface ModuleLabelsTesting {
19645
+ /** Add to `TestBed.configureTestingModule({ providers })`. */
19646
+ readonly providers: Provider[];
19647
+ /** Change it in a spec to switch the language (then `TestBed.tick()` to let the lazy load start). */
19648
+ readonly language: WritableSignal<string>;
19649
+ /** How many times the Spanish loader of a namespace was called. */
19650
+ loadCount(namespace: string): number;
19651
+ }
19652
+ /** Test helper for module specs, like `provideTestI18n` in apps: a writable language and in-memory Spanish loaders (no `provideUiLanguage` needed). */
19653
+ export declare function moduleLabelsTesting(options?: ModuleLabelsTestingOptions): ModuleLabelsTesting;
19493
19654
  /**
19494
19655
  * Language picker for the whole app: `<ui-language-switcher />` (needs `provideUiLanguage()`). A native select, so keyboard, screen readers and phones work
19495
19656
  * with no extra code. The first option, "Automatic (<language in use>)", follows the visitor's browser / the embedding page; picking a language is a manual