@forgeroute/ui 0.4.84 → 0.4.85

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.85",
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
  /**
@@ -5863,7 +5867,7 @@ export declare class StepperComponent {
5863
5867
  * its circle, one continuous line behind the circles that fills as steps complete; a complete step shows a check, the current step an
5864
5868
  * accent ring with a dot, an upcoming step an empty circle (no numbers). Circles are 40px (32px with `size="sm"`).
5865
5869
  */
5866
- readonly labelPosition: import("@angular/core").InputSignal<"below" | "beside">;
5870
+ readonly labelPosition: import("@angular/core").InputSignal<"beside" | "below">;
5867
5871
  /** Viewport width in px below which a horizontal stepper is drawn vertical (labels beside the circles), e.g. `640`. null (default) = never. */
5868
5872
  readonly stackBelow: import("@angular/core").InputSignal<number | null>;
5869
5873
  /** CSS length (e.g. `10.5rem`): horizontal only - the list gets `min-width: calc(<step count> * <value>)`. Empty (default) = no minimum. */
@@ -6525,7 +6529,7 @@ export declare class ButtonComponent {
6525
6529
  * `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
6526
6530
  * background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
6527
6531
  */
6528
- readonly variant: import("@angular/core").InputSignal<"warning" | "link" | "primary" | "secondary" | "danger" | "icon" | "ghost" | "ghost-start" | "tab" | "icon-danger">;
6532
+ readonly variant: import("@angular/core").InputSignal<"primary" | "secondary" | "danger" | "warning" | "link" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
6529
6533
  /** 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
6534
  readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
6531
6535
  /** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
@@ -6546,7 +6550,7 @@ export declare class ButtonComponent {
6546
6550
  */
6547
6551
  readonly href: import("@angular/core").InputSignal<string | null>;
6548
6552
  /** Where to open the `href` (`_blank` = a new tab). */
6549
- readonly target: import("@angular/core").InputSignal<"_blank" | "_self" | "_parent" | "_top" | null>;
6553
+ readonly target: import("@angular/core").InputSignal<"_self" | "_blank" | "_parent" | "_top" | null>;
6550
6554
  /** `rel` of the `href` link. A `_blank` target always gets `noopener noreferrer` added. */
6551
6555
  readonly rel: import("@angular/core").InputSignal<string | null>;
6552
6556
  /** The href when it is allowed (http, https, mailto, tel, sms or a relative URL), else null. */
@@ -7214,7 +7218,7 @@ export declare class ImportSourceGridComponent {
7214
7218
  /** The `value` of the picked source (highlighted). `tile` only: the `card` appearance does not keep a selection. */
7215
7219
  readonly selected: import("@angular/core").InputSignal<string>;
7216
7220
  /** `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">;
7221
+ readonly appearance: import("@angular/core").InputSignal<"card" | "tile">;
7218
7222
  /** `card`: disables every card's button (for example while the page is saving). */
7219
7223
  readonly disabled: import("@angular/core").InputSignal<boolean>;
7220
7224
  /** `card`: the text of each card's button. */
@@ -7702,7 +7706,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
7702
7706
  readonly passwordRequirements: import("@angular/core").InputSignal<boolean>;
7703
7707
  /** Rules for `passwordRequirements`; default = the library's five rules (8+ characters, upper, lower, digit, special). */
7704
7708
  readonly passwordRules: import("@angular/core").InputSignal<readonly PasswordRule[] | undefined>;
7705
- readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "password" | "tel" | "url">;
7709
+ readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "tel" | "password" | "url">;
7706
7710
  readonly maxlength: import("@angular/core").InputSignal<number | undefined>;
7707
7711
  readonly required: import("@angular/core").InputSignal<boolean>;
7708
7712
  readonly autocomplete: import("@angular/core").InputSignal<string>;
@@ -7711,7 +7715,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
7711
7715
  * `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
7712
7716
  * It only picks the keyboard; it does not restrict what can be typed or pasted.
7713
7717
  */
7714
- readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "none" | "search" | "tel" | "url" | "decimal" | "numeric">;
7718
+ readonly inputmode: import("@angular/core").InputSignal<"" | "numeric" | "decimal" | "email" | "text" | "none" | "search" | "tel" | "url">;
7715
7719
  readonly readonly: import("@angular/core").InputSignal<boolean>;
7716
7720
  readonly hint: import("@angular/core").InputSignal<string>;
7717
7721
  /** 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 +7787,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
7783
7787
  protected readonly _stepAttr: import("@angular/core").Signal<string | null>;
7784
7788
  protected readonly _revealable: import("@angular/core").Signal<boolean>;
7785
7789
  protected readonly _shown: import("@angular/core").WritableSignal<boolean>;
7786
- protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "password" | "tel" | "url">;
7790
+ protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "tel" | "password" | "url">;
7787
7791
  protected readonly _eyePath: string;
7788
7792
  protected readonly _eyeOffPath: string;
7789
7793
  protected readonly _showRequirements: import("@angular/core").Signal<boolean>;
@@ -8734,7 +8738,7 @@ export declare class CopyFieldComponent implements OnDestroy {
8734
8738
  /** Neither the Clipboard API nor the fallback could copy. */
8735
8739
  readonly copyFailed: import("@angular/core").OutputEmitterRef<void>;
8736
8740
  protected readonly _id: string;
8737
- protected readonly _state: import("@angular/core").WritableSignal<"failed" | "idle" | "copied">;
8741
+ protected readonly _state: import("@angular/core").WritableSignal<"idle" | "copied" | "failed">;
8738
8742
  protected readonly _announcement: import("@angular/core").Signal<string>;
8739
8743
  protected readonly _buttonName: import("@angular/core").Signal<string>;
8740
8744
  protected readonly _describedBy: import("@angular/core").Signal<string | null>;
@@ -9944,7 +9948,7 @@ export type ListItemIconColor = 'slate' | 'amber' | 'red' | 'blue' | 'green' | '
9944
9948
  export declare class ListItemComponent implements AfterContentChecked {
9945
9949
  private readonly host;
9946
9950
  /** Show a radio button, checkbox, or nothing on the left. */
9947
- readonly leading: import("@angular/core").InputSignal<"none" | "radio" | "checkbox">;
9951
+ readonly leading: import("@angular/core").InputSignal<"none" | "checkbox" | "radio">;
9948
9952
  /** `name` attribute for the radio/checkbox (groups radios together). */
9949
9953
  readonly inputName: import("@angular/core").InputSignal<string>;
9950
9954
  /** `id` attribute for the radio/checkbox (links the label). */
@@ -11180,9 +11184,9 @@ export declare class ChipGroupComponent {
11180
11184
  readonly spaceAbove: import("@angular/core").InputSignal<"none" | "sm" | "md">;
11181
11185
  /** Space below the chip group. */
11182
11186
  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">;
11187
+ protected readonly _gap: import("@angular/core").Signal<"6px" | "12px" | "8px">;
11188
+ protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "6px" | "12px">;
11189
+ protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "6px" | "12px">;
11186
11190
  static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
11187
11191
  static ɵcmp: i0.ɵɵComponentDeclaration<ChipGroupComponent, "ui-chip-group", never, {
11188
11192
  "gap": {
@@ -11601,7 +11605,7 @@ export declare class IconComponent {
11601
11605
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
11602
11606
  /** Icon size in px. */
11603
11607
  readonly size: import("@angular/core").InputSignal<number>;
11604
- readonly variant: import("@angular/core").InputSignal<"danger" | "default">;
11608
+ readonly variant: import("@angular/core").InputSignal<"default" | "danger">;
11605
11609
  readonly disabled: import("@angular/core").InputSignal<boolean>;
11606
11610
  /** 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
11611
  readonly loading: import("@angular/core").InputSignal<boolean>;
@@ -11800,6 +11804,56 @@ export declare class TimelineComponent {
11800
11804
  "itemAction": "itemAction";
11801
11805
  }, never, never, true, never>;
11802
11806
  }
11807
+ /** A badge on an event: its text and colour. */
11808
+ export interface TimelineEventBadge {
11809
+ label: string;
11810
+ /** Library badge colour. Default `gray`. */
11811
+ variant?: BadgeVariant;
11812
+ }
11813
+ /**
11814
+ * 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
11815
+ * {@link timelineItemsFromEvents} build the `ui-timeline` items, so the title / second line / time text / badges / dot colour are the same on every page.
11816
+ */
11817
+ export interface TimelineEvent {
11818
+ id?: string;
11819
+ /** ISO date or date-time. Drives the time text, the machine-readable `datetime` and, for `groupByDay`, the day heading. */
11820
+ date: string;
11821
+ title: string;
11822
+ /** What happened, in a sentence. */
11823
+ description?: string | null;
11824
+ /** Who did it. */
11825
+ actor?: string | null;
11826
+ /** Money involved (US dollars). 0 and null show nothing. */
11827
+ amount?: number | null;
11828
+ /** A legally immutable record: the title gets the `lockedSuffix`. */
11829
+ locked?: boolean;
11830
+ /** First badge; its colour also colours the dot. */
11831
+ category?: TimelineEventBadge | null;
11832
+ /** Second badge. */
11833
+ status?: TimelineEventBadge | null;
11834
+ }
11835
+ export interface TimelineEventOptions {
11836
+ /** Angular `formatDate` pattern of the visible time. Default `M/d/yyyy h:mm a` (11/8/2026 3:15 PM). */
11837
+ timeFormat?: string;
11838
+ /** Locale of the time text and the amount. Default: the app's active locale (`en-US` without a language service). */
11839
+ locale?: string;
11840
+ /** Words before the amount in the second line. Default: the library text "Amount" in the active language. */
11841
+ amountLabel?: string;
11842
+ /** Appended to the title of a locked record. Default: the library text "<title> (locked record)" in the active language. */
11843
+ lockedSuffix?: string;
11844
+ /** Joins the parts of the second line. Default ` · `. */
11845
+ separator?: string;
11846
+ }
11847
+ /**
11848
+ * Builds `<ui-timeline>` items from activity events.
11849
+ *
11850
+ * - title: the event title (plus `lockedSuffix` for a locked record)
11851
+ * - description: the non-empty ones of `description`, `actor` and `Amount: $1,234.50`, joined with `separator` (absent when there are none)
11852
+ * - time / dateTime: the formatted date and the raw `date`; an unparsable date gives no time text (never "Invalid Date")
11853
+ * - badges: the category and the status badge, in that order, when they have a label
11854
+ * - dotVariant: the colour of the category badge (`gray` when there is none)
11855
+ */
11856
+ export declare function timelineItemsFromEvents(events: readonly TimelineEvent[], options?: TimelineEventOptions): TimelineItem[];
11803
11857
  /**
11804
11858
  * Small muted helper text shown under a form or panel section.
11805
11859
  *
@@ -12055,7 +12109,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
12055
12109
  * the object. `valueChange` always emits the object. A written string is read with `parseAddressValue` for display only: the control keeps
12056
12110
  * the original text until the user edits a field (so a text the parser cannot split is not rewritten on load).
12057
12111
  */
12058
- readonly valueFormat: import("@angular/core").InputSignal<"object" | "text" | "auto">;
12112
+ readonly valueFormat: import("@angular/core").InputSignal<"object" | "auto" | "text">;
12059
12113
  /** 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
12114
  readonly zipPattern: import("@angular/core").InputSignal<RegExp | null>;
12061
12115
  /** Message shown when the ZIP breaks `zipPattern`. */
@@ -13904,7 +13958,7 @@ export declare class PdfHotspotComponent {
13904
13958
  /** `ready`: clickable; `blocked`: disabled (a prerequisite is missing); `signed`: shows `image`. */
13905
13959
  readonly state: import("@angular/core").InputSignal<"ready" | "blocked" | "signed">;
13906
13960
  /** `warning` gives the ready state an amber look (e.g. for initials), default is blue. */
13907
- readonly tone: import("@angular/core").InputSignal<"warning" | "primary">;
13961
+ readonly tone: import("@angular/core").InputSignal<"primary" | "warning">;
13908
13962
  /** Text of the ready button (e.g. "Sign Here"). */
13909
13963
  readonly labelInput: import("@angular/core").InputSignal<string | null>;
13910
13964
  readonly label: import("@angular/core").Signal<string>;
@@ -14044,7 +14098,7 @@ export declare class DetailCardComponent {
14044
14098
  /** 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
14099
  readonly uppercaseTitle: import("@angular/core").InputSignal<boolean>;
14046
14100
  /** 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>;
14101
+ readonly headingLevel: import("@angular/core").InputSignal<1 | 2 | 3 | 4 | 5 | 6 | null>;
14048
14102
  /** Optional id for the title text; the card is then labelled by it. Without it the title is the card's aria-label. */
14049
14103
  readonly titleId: import("@angular/core").InputSignal<string>;
14050
14104
  /** Accessible name of the card when the header gives none (no header, or no title). A visible title wins; blank = no name. */
@@ -14058,7 +14112,7 @@ export declare class DetailCardComponent {
14058
14112
  /** Background colour of the footer bar (the `[card-footer]` slot) as any CSS colour. Empty = no colour of its own. */
14059
14113
  readonly footerBackground: import("@angular/core").InputSignal<string>;
14060
14114
  /** 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">;
14115
+ readonly footerAlign: import("@angular/core").InputSignal<"start" | "end">;
14062
14116
  /** Text colour as any CSS colour (`#fff`, `var(--on-dark)` …). Empty = the default colours. Colours the title, subtitle, chevron and body text. */
14063
14117
  readonly textColor: import("@angular/core").InputSignal<string>;
14064
14118
  /** false = no header at all (no title, edit button, toggle or divider): the card is only the body, always open. */
@@ -16797,7 +16851,7 @@ export declare class SetupWizardComponent {
16797
16851
  protected customHintId(): string;
16798
16852
  protected readonly importBlocked: import("@angular/core").Signal<boolean>;
16799
16853
  /** 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">;
16854
+ protected readonly splitTab: import("@angular/core").WritableSignal<"main" | "extra">;
16801
16855
  protected readonly splitTabs: import("@angular/core").Signal<{
16802
16856
  key: string;
16803
16857
  label: string;
@@ -19060,7 +19114,7 @@ export declare class PaymentSidePanelComponent {
19060
19114
  private readonly terminalAvailable;
19061
19115
  /** value -> label of every live method the rendered plugins contribute (the first plugin wins a duplicate value). */
19062
19116
  private readonly liveMethods;
19063
- protected readonly kind: import("@angular/core").Signal<"none" | "manual" | "live" | "terminal">;
19117
+ protected readonly kind: import("@angular/core").Signal<"none" | "live" | "terminal" | "manual">;
19064
19118
  private kindOf;
19065
19119
  /** 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
19120
  readonly methodList: import("@angular/core").Signal<PaymentMethodOption[]>;
@@ -19490,6 +19544,107 @@ export declare class UiLanguageService implements OnDestroy {
19490
19544
  static ɵfac: i0.ɵɵFactoryDeclaration<UiLanguageService, never>;
19491
19545
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
19492
19546
  }
19547
+ /**
19548
+ * Module labels: English + Spanish texts for a module package (@forgeroute/communications, accounting, marketing ...) that follow the app's language with
19549
+ * the SAME mechanism the library uses: the language comes from `UiLanguageService` (switcher, `?lang=`, postMessage ...), English is built in, the Spanish
19550
+ * dictionary is a lazy chunk downloaded the first time Spanish is active, `{{ name }}` placeholders, `_one` / `_other` plurals, and the library locale
19551
+ * for numbers and dates. See docs/module-labels.md.
19552
+ */
19553
+ export type ModuleLabelParams = Readonly<Record<string, string | number>>;
19554
+ /** The plural base names of a dictionary: every key written `<base>_one` (its `<base>_other` pair is required by `assertModuleLabelParity`). */
19555
+ export type ModuleLabelPluralBase<K extends string> = K extends `${infer B}_one` ? B : never;
19556
+ export interface ModuleLabelsOptions<K extends string> {
19557
+ /** Unique name of the module ('communications'); overrides and the test helper address the module by it. */
19558
+ namespace: string;
19559
+ /** The English texts: the key set of the module, always available, no download. */
19560
+ en: Readonly<Record<K, string>>;
19561
+ /** 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)`. */
19562
+ es?: () => Promise<Readonly<Record<K, string>>>;
19563
+ }
19564
+ /** What `createModuleLabels` returns: plain data, safe to create at module level (no injection context needed). Hand it to `injectModuleLabels`. */
19565
+ export interface ModuleLabelsHandle<K extends string> {
19566
+ readonly namespace: string;
19567
+ readonly en: Readonly<Record<K, string>>;
19568
+ readonly es?: () => Promise<Readonly<Record<K, string>>>;
19569
+ }
19570
+ export declare function createModuleLabels<K extends string>(options: ModuleLabelsOptions<K>): ModuleLabelsHandle<K>;
19571
+ /** 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. */
19572
+ export interface ModuleLabels<K extends string> {
19573
+ /** The text of `key` in the active language (English for a key the language lacks or while its chunk loads), `{{ name }}` filled from `params`. */
19574
+ t(key: K, params?: ModuleLabelParams): string;
19575
+ /** A plural text: `<base>_one` when `count === 1`, else `<base>_other`; `count` is available as `{{ count }}` (an own `count` param wins). */
19576
+ tn(base: ModuleLabelPluralBase<K>, count: number, params?: ModuleLabelParams): string;
19577
+ /** `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). */
19578
+ readonly ready: Signal<boolean>;
19579
+ /** The active language code of the app (base language: 'es-MX' reads 'es'). */
19580
+ readonly language: Signal<string>;
19581
+ /** The library locale (dates / numbers) that goes with the language. */
19582
+ readonly locale: Signal<string>;
19583
+ formatDate(value: Date | string | number | null | undefined, format?: string, timeZone?: string): string;
19584
+ formatNumber(value: number | null | undefined, options?: Intl.NumberFormatOptions): string;
19585
+ formatCurrency(value: number | null | undefined, currency?: string, options?: Intl.NumberFormatOptions): string;
19586
+ }
19587
+ export interface ModuleLabelOverrides<K extends string = string> {
19588
+ en?: Partial<Readonly<Record<K, string>>>;
19589
+ es?: Partial<Readonly<Record<K, string>>>;
19590
+ }
19591
+ /**
19592
+ * 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
19593
+ * 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).
19594
+ * Several calls for one namespace merge; the later one wins.
19595
+ */
19596
+ export declare function provideModuleLabelOverrides<K extends string = string>(namespace: string | Pick<ModuleLabelsHandle<K>, 'namespace'>, overrides: ModuleLabelOverrides<K>): EnvironmentProviders;
19597
+ type Status = 'idle' | 'loading' | 'done' | 'failed';
19598
+ interface ModuleState {
19599
+ readonly handle: ModuleLabelsHandle<string>;
19600
+ readonly status: WritableSignal<Status>;
19601
+ readonly spanish: WritableSignal<Readonly<Record<string, string>> | null>;
19602
+ readonly overrides: {
19603
+ en: Record<string, string>;
19604
+ es: Record<string, string>;
19605
+ };
19606
+ }
19607
+ /** Root-level store of the module labels of one application: language, lazily loaded Spanish dictionaries (once per module), host overrides. */
19608
+ export declare class ModuleLabelsRegistry implements OnDestroy {
19609
+ private readonly injector;
19610
+ private readonly labels;
19611
+ private readonly loaders;
19612
+ private readonly entries;
19613
+ private readonly states;
19614
+ private destroyed;
19615
+ /** The app's language (base code). */
19616
+ readonly language: Signal<string>;
19617
+ ngOnDestroy(): void;
19618
+ stateFor(handle: ModuleLabelsHandle<string>): ModuleState;
19619
+ /** Downloads the Spanish texts once per module (a failed download is tried again the next time Spanish becomes active). */
19620
+ private load;
19621
+ create<K extends string>(handle: ModuleLabelsHandle<K>): ModuleLabels<K>;
19622
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModuleLabelsRegistry, never>;
19623
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
19624
+ }
19625
+ /** The labels of a module for the current injection context (a component, directive or service field). Call it once, as a field initializer. */
19626
+ export declare function injectModuleLabels<K extends string>(handle: ModuleLabelsHandle<K>): ModuleLabels<K>;
19627
+ /**
19628
+ * 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,
19629
+ * a blank text, different `{{ placeholders }}`, a plural pair (`x_one` / `x_other`) incomplete in either language.
19630
+ */
19631
+ export declare function assertModuleLabelParity(en: Readonly<Record<string, string>>, es: Readonly<Record<string, string>>): void;
19632
+ export interface ModuleLabelsTestingOptions {
19633
+ /** Starting language (default 'en'). */
19634
+ language?: string;
19635
+ /** 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. */
19636
+ es?: Readonly<Record<string, Readonly<Record<string, string>> | (() => Promise<Readonly<Record<string, string>>>)>>;
19637
+ }
19638
+ export interface ModuleLabelsTesting {
19639
+ /** Add to `TestBed.configureTestingModule({ providers })`. */
19640
+ readonly providers: Provider[];
19641
+ /** Change it in a spec to switch the language (then `TestBed.tick()` to let the lazy load start). */
19642
+ readonly language: WritableSignal<string>;
19643
+ /** How many times the Spanish loader of a namespace was called. */
19644
+ loadCount(namespace: string): number;
19645
+ }
19646
+ /** Test helper for module specs, like `provideTestI18n` in apps: a writable language and in-memory Spanish loaders (no `provideUiLanguage` needed). */
19647
+ export declare function moduleLabelsTesting(options?: ModuleLabelsTestingOptions): ModuleLabelsTesting;
19493
19648
  /**
19494
19649
  * Language picker for the whole app: `<ui-language-switcher />` (needs `provideUiLanguage()`). A native select, so keyboard, screen readers and phones work
19495
19650
  * 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