@forgeroute/ui 0.5.10 → 0.5.12

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.5.10",
3
+ "version": "0.5.12",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.0.0",
6
6
  "@angular/core": ">=22.0.0",
@@ -908,6 +908,7 @@ export declare const UI_DEFAULT_LABELS: {
908
908
  readonly 'notes.loadingNotes': "Loading notes...";
909
909
  readonly 'notes.noNotesYet': "No notes yet";
910
910
  readonly 'notes.notes': "Notes";
911
+ readonly 'optionCard.selected': "Selected";
911
912
  readonly 'panelInfoList.noInformationAvailable': "No information available.";
912
913
  readonly 'paymentSidePanel.addAsSplitPayment': "Add as split payment";
913
914
  readonly 'paymentSidePanel.applyPaymentTo': "Apply payment to";
@@ -985,7 +986,7 @@ export declare const UI_DEFAULT_LABELS: {
985
986
  readonly 'sidePanel.dismissPanel': "Dismiss panel";
986
987
  readonly 'snackbar.dismissNotification': "Dismiss notification";
987
988
  readonly 'snackbar.notifications': "Notifications";
988
- readonly 'stripeMicrodepositVerify.6LettersOrNumbersFrom': "6 letters or numbers from the deposit description";
989
+ readonly 'stripeMicrodepositVerify.6LettersOrNumbersFrom': "6 letters or numbers (SM plus 4) from the deposit description";
989
990
  readonly 'stripeMicrodepositVerify.firstDepositCents': "First deposit (cents)";
990
991
  readonly 'stripeMicrodepositVerify.keepWaiting': "Keep waiting";
991
992
  readonly 'stripeMicrodepositVerify.openStripeSVerificationPage': "Open Stripe's verification page";
@@ -1779,7 +1780,7 @@ export declare const UI_DEFAULT_LABELS: {
1779
1780
  readonly 'stripeMicrodepositVerify.codeRequired': "Enter the 6-character code.";
1780
1781
  readonly 'stripeMicrodepositVerify.codeSm': "Descriptor code must start with \"SM\" followed by 4 characters (e.g., SMXXXX)";
1781
1782
  readonly 'stripeMicrodepositVerify.depositsAmounts': "Stripe sent two small deposits to {{ holder }}; they appear in 1-2 business days{{ clause }}, with the description SMXXXX. ";
1782
- readonly 'stripeMicrodepositVerify.depositsDescriptor': "Stripe sent one small deposit to {{ holder }}{{ clause }}, with a description that starts with SM followed by a 6-character code. ";
1783
+ readonly 'stripeMicrodepositVerify.depositsDescriptor': "Stripe sent one small deposit to {{ holder }}{{ clause }}, with a description that is a 6-character code that starts with SM (SM plus 4 more). ";
1783
1784
  readonly 'stripeMicrodepositVerify.enterAmountsOwn': "When they arrive, enter the two amounts below to finish. ";
1784
1785
  readonly 'stripeMicrodepositVerify.enterAmountsPartner': "Ask {{ partner }} for the two deposit amounts and enter them below to finish. ";
1785
1786
  readonly 'stripeMicrodepositVerify.enterCodeOwn': "When it arrives, enter that code below to finish. ";
@@ -4888,7 +4889,7 @@ export declare class SidePanelComponent implements OnDestroy {
4888
4889
  readonly cancelLabel: import("@angular/core").Signal<string>;
4889
4890
  /** Right-aligned primary action button label. Empty string = hidden. */
4890
4891
  readonly primaryLabel: import("@angular/core").InputSignal<string>;
4891
- readonly primaryVariant: import("@angular/core").InputSignal<"primary" | "danger" | "warning">;
4892
+ readonly primaryVariant: import("@angular/core").InputSignal<"warning" | "primary" | "danger">;
4892
4893
  readonly primaryLoading: import("@angular/core").InputSignal<boolean>;
4893
4894
  readonly primaryDisabled: import("@angular/core").InputSignal<boolean>;
4894
4895
  /** `data-testid` of the Cancel button; none when empty (default). */
@@ -5887,7 +5888,7 @@ export declare class TooltipDirective {
5887
5888
  /** Tooltip text; empty or null disables the tooltip. */
5888
5889
  readonly uiTooltip: import("@angular/core").InputSignal<string | null | undefined>;
5889
5890
  /** Preferred side; flips to the other side when there is no room. */
5890
- readonly tooltipPosition: import("@angular/core").InputSignal<"bottom" | "top">;
5891
+ readonly tooltipPosition: import("@angular/core").InputSignal<"top" | "bottom">;
5891
5892
  private readonly host;
5892
5893
  private readonly doc;
5893
5894
  private bubble;
@@ -7004,7 +7005,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
7004
7005
  * 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.
7005
7006
  * Default null: plain label text, exactly as before. Single mode only.
7006
7007
  */
7007
- readonly headingLevel: import("@angular/core").InputSignal<1 | 2 | 3 | 4 | 5 | 6 | null>;
7008
+ readonly headingLevel: import("@angular/core").InputSignal<1 | 4 | 2 | 3 | 5 | 6 | null>;
7008
7009
  readonly indeterminate: import("@angular/core").InputSignal<boolean>;
7009
7010
  readonly checked: import("@angular/core").ModelSignal<boolean>;
7010
7011
  /**
@@ -7406,6 +7407,7 @@ export type StepperCompactBreakpoint = 'sm' | 'md' | 'lg' | number;
7406
7407
  * the list is hidden (`display: none`, so it leaves the accessibility tree) and a summary is shown instead: the current step's label
7407
7408
  * (semibold, large, in `accentColor` when set) with "n / m" at the right, and a `ui-progress-bar` (`aria-label` "Step n of m: <label>").
7408
7409
  * At / above the breakpoint the summary is hidden. Without a current step the summary reads "0 / m".
7410
+ * `counterText` `(n, total) => string` words the "n / m" counter ("Step 2 of 5"); the same text names the progress bar ("Step 2 of 5: <label>").
7409
7411
  *
7410
7412
  * <ui-stepper [steps]="steps" [current]="key" [scrollable]="true" minStepWidth="10.5rem" leadingWidth="7.5rem" compact="md" accentColor="#f97316">
7411
7413
  * <img stepper-leading src="logo.svg" alt="Acme" />
@@ -7439,7 +7441,7 @@ export declare class StepperComponent {
7439
7441
  * its circle, one continuous line behind the circles that fills as steps complete; a complete step shows a check, the current step an
7440
7442
  * accent ring with a dot, an upcoming step an empty circle (no numbers). Circles are 40px (32px with `size="sm"`).
7441
7443
  */
7442
- readonly labelPosition: import("@angular/core").InputSignal<"beside" | "below">;
7444
+ readonly labelPosition: import("@angular/core").InputSignal<"below" | "beside">;
7443
7445
  /** Viewport width in px below which a horizontal stepper is drawn vertical (labels beside the circles), e.g. `640`. null (default) = never. */
7444
7446
  readonly stackBelow: import("@angular/core").InputSignal<number | null>;
7445
7447
  /** CSS length (e.g. `10.5rem`): horizontal only - the list gets `min-width: calc(<step count> * <value>)`. Empty (default) = no minimum. */
@@ -7448,6 +7450,11 @@ export declare class StepperComponent {
7448
7450
  readonly scrollable: import("@angular/core").InputSignal<boolean>;
7449
7451
  /** CSS length: width reserved for the `[stepper-leading]` element (a logo); the steps start at this width + 1rem. Empty = no leading area. */
7450
7452
  readonly leadingWidth: import("@angular/core").InputSignal<string>;
7453
+ /**
7454
+ * Words the "n / m" counter of the compact summary: `(n, total) => 'Step 2 of 5'`. The text is also what the summary's progress bar is named with
7455
+ * ("Step 2 of 5: <label>"), so what is seen and announced agree; an empty text leaves the counter empty and the bar's default name. Default null = "n / m".
7456
+ */
7457
+ readonly counterText: import("@angular/core").InputSignal<((n: number, total: number) => string) | null>;
7451
7458
  /** Below this viewport width ('sm' 480 | 'md' 768 | 'lg' 1024 | pixels) the list is replaced by a summary (label, "n / m", progress bar). null (default) = never. */
7452
7459
  readonly compact: import("@angular/core").InputSignal<StepperCompactBreakpoint | null>;
7453
7460
  /** Emits the key of an activated selectable step that was not already current (after `current` was updated). */
@@ -7462,16 +7469,19 @@ export declare class StepperComponent {
7462
7469
  private readonly _id;
7463
7470
  constructor();
7464
7471
  protected readonly olMinWidth: import("@angular/core").Signal<string | null>;
7472
+ /** The host's counter text, or null (none given, or it threw): the default "n / m" and its announcement apply. An empty text is kept (an empty counter). */
7473
+ private counterTextFn;
7465
7474
  protected readonly summary: import("@angular/core").Signal<{
7466
7475
  n: number;
7467
7476
  m: number;
7468
7477
  label: string;
7478
+ count: string;
7469
7479
  aria: string;
7470
7480
  }>;
7471
7481
  protected readonly rows: import("@angular/core").Signal<{
7472
7482
  step: StepperStep;
7473
7483
  index: number;
7474
- state: "complete" | "current" | "upcoming";
7484
+ state: "current" | "complete" | "upcoming";
7475
7485
  error: boolean;
7476
7486
  errorMessage: string;
7477
7487
  selectable: boolean;
@@ -7566,6 +7576,11 @@ export declare class StepperComponent {
7566
7576
  "required": false;
7567
7577
  "isSignal": true;
7568
7578
  };
7579
+ "counterText": {
7580
+ "alias": "counterText";
7581
+ "required": false;
7582
+ "isSignal": true;
7583
+ };
7569
7584
  "compact": {
7570
7585
  "alias": "compact";
7571
7586
  "required": false;
@@ -8101,7 +8116,7 @@ export declare class ButtonComponent {
8101
8116
  * `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
8102
8117
  * background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
8103
8118
  */
8104
- readonly variant: import("@angular/core").InputSignal<"primary" | "secondary" | "danger" | "warning" | "link" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
8119
+ readonly variant: import("@angular/core").InputSignal<"warning" | "link" | "primary" | "danger" | "secondary" | "ghost" | "tab" | "ghost-start" | "icon" | "icon-danger">;
8105
8120
  /** 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`). */
8106
8121
  readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
8107
8122
  /** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
@@ -8122,7 +8137,7 @@ export declare class ButtonComponent {
8122
8137
  */
8123
8138
  readonly href: import("@angular/core").InputSignal<string | null>;
8124
8139
  /** Where to open the `href` (`_blank` = a new tab). */
8125
- readonly target: import("@angular/core").InputSignal<"_self" | "_blank" | "_parent" | "_top" | null>;
8140
+ readonly target: import("@angular/core").InputSignal<"_blank" | "_self" | "_parent" | "_top" | null>;
8126
8141
  /** `rel` of the `href` link. A `_blank` target always gets `noopener noreferrer` added. */
8127
8142
  readonly rel: import("@angular/core").InputSignal<string | null>;
8128
8143
  /** The href when it is allowed (http, https, mailto, tel, sms or a relative URL), else null. */
@@ -8146,7 +8161,7 @@ export declare class ButtonComponent {
8146
8161
  private readonly _narrow;
8147
8162
  readonly color: import("@angular/core").InputSignal<string | undefined>;
8148
8163
  readonly active: import("@angular/core").InputSignal<boolean>;
8149
- readonly size: import("@angular/core").InputSignal<"sm" | "md" | "lg" | "xs">;
8164
+ readonly size: import("@angular/core").InputSignal<"xs" | "sm" | "md" | "lg">;
8150
8165
  readonly type: import("@angular/core").InputSignal<"button" | "reset" | "submit">;
8151
8166
  readonly disabled: import("@angular/core").InputSignal<boolean>;
8152
8167
  readonly loading: import("@angular/core").InputSignal<boolean>;
@@ -8792,7 +8807,7 @@ export declare class ImportSourceGridComponent {
8792
8807
  /** The `value` of the picked source (highlighted). `tile` only: the `card` appearance does not keep a selection. */
8793
8808
  readonly selected: import("@angular/core").InputSignal<string>;
8794
8809
  /** `tile`: the compact buttons of the import window. `card`: one `ui-detail-card` per source with its own select button (used on a page). */
8795
- readonly appearance: import("@angular/core").InputSignal<"card" | "tile">;
8810
+ readonly appearance: import("@angular/core").InputSignal<"tile" | "card">;
8796
8811
  /** `card`: disables every card's button (for example while the page is saving). */
8797
8812
  readonly disabled: import("@angular/core").InputSignal<boolean>;
8798
8813
  /** `card`: the text of each card's button. */
@@ -8848,7 +8863,14 @@ export declare class ImportSourceGridComponent {
8848
8863
  *
8849
8864
  * Inputs: `title` (required), `description`, `letter` (one character in the tile) or `icon` (a library icon name, used when there is no letter),
8850
8865
  * `color` (tile background, default slate), `actionLabel` (no label = no button), `actionVariant` (default secondary), `actionAriaLabel`,
8851
- * `actionTestId`, `actionLoading`, `disabled`. Output: `action`.
8866
+ * `actionTestId`, `actionLoading`, `disabled`, `selected`. Output: `action`.
8867
+ *
8868
+ * `selected` (default false = the card as before) marks the card as the chosen one: a blue 2px border, a check mark at the end of the row and the text
8869
+ * "Selected" for screen readers (`data-selected="true"` on the host). The state is shown by the border AND the check, so colour is never the only signal. The
8870
+ * card does not toggle by itself: the app owns the state.
8871
+ *
8872
+ * A brand logo goes in the tile: `<img option-card-logo src="stripe.svg" alt="" />` (decorative, the title names the card; leave out `letter` and `icon`, set
8873
+ * `color` to the logo's background, e.g. `#fff`). The element is limited to the tile (36 x 36 px). Without it nothing changes.
8852
8874
  */
8853
8875
  export declare class OptionCardComponent {
8854
8876
  readonly title: import("@angular/core").InputSignal<string>;
@@ -8862,8 +8884,12 @@ export declare class OptionCardComponent {
8862
8884
  readonly actionTestId: import("@angular/core").InputSignal<string>;
8863
8885
  readonly actionLoading: import("@angular/core").InputSignal<boolean>;
8864
8886
  readonly disabled: import("@angular/core").InputSignal<boolean>;
8887
+ /** `true`: the card is the chosen one (blue border, a check mark, "Selected" for screen readers). Default false: the card as before. */
8888
+ readonly selected: import("@angular/core").InputSignal<boolean>;
8865
8889
  /** The action button was pressed. */
8866
8890
  readonly action: import("@angular/core").OutputEmitterRef<void>;
8891
+ protected readonly labels: UiLabelsService;
8892
+ protected readonly checkD: string;
8867
8893
  protected iconD(): string | null;
8868
8894
  static ɵfac: i0.ɵɵFactoryDeclaration<OptionCardComponent, never>;
8869
8895
  static ɵcmp: i0.ɵɵComponentDeclaration<OptionCardComponent, "ui-option-card", never, {
@@ -8922,9 +8948,14 @@ export declare class OptionCardComponent {
8922
8948
  "required": false;
8923
8949
  "isSignal": true;
8924
8950
  };
8951
+ "selected": {
8952
+ "alias": "selected";
8953
+ "required": false;
8954
+ "isSignal": true;
8955
+ };
8925
8956
  }, {
8926
8957
  "action": "action";
8927
- }, never, ["*"], true, never>;
8958
+ }, never, ["[option-card-logo]", "*"], true, never>;
8928
8959
  }
8929
8960
  /** Default ACH debit authorization text (same wording the contractor bank-account kiosk used). */
8930
8961
  export declare const DEFAULT_BANK_MANDATE_TEXT: string;
@@ -9290,7 +9321,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
9290
9321
  * `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
9291
9322
  * It only picks the keyboard; it does not restrict what can be typed or pasted.
9292
9323
  */
9293
- readonly inputmode: import("@angular/core").InputSignal<"" | "numeric" | "decimal" | "email" | "text" | "none" | "search" | "tel" | "url">;
9324
+ readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "decimal" | "none" | "search" | "tel" | "url" | "numeric">;
9294
9325
  readonly readonly: import("@angular/core").InputSignal<boolean>;
9295
9326
  readonly hint: import("@angular/core").InputSignal<string>;
9296
9327
  /** 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. */
@@ -10794,7 +10825,7 @@ export declare class DropdownComponent {
10794
10825
  readonly loader: import("@angular/core").InputSignal<(() => Promise<DropdownItem[]>) | null>;
10795
10826
  readonly active: import("@angular/core").InputSignal<boolean>;
10796
10827
  readonly activeValue: import("@angular/core").InputSignal<string>;
10797
- readonly variant: import("@angular/core").InputSignal<"badge" | "button">;
10828
+ readonly variant: import("@angular/core").InputSignal<"button" | "badge">;
10798
10829
  /** Trigger size for `variant="button"`: `sm` (default, the compact toolbar look) or `md` (same padding and type as a medium `ui-button`). */
10799
10830
  readonly size: import("@angular/core").InputSignal<"sm" | "md">;
10800
10831
  readonly menuWidth: import("@angular/core").InputSignal<string>;
@@ -11110,7 +11141,7 @@ export declare class FormSectionComponent {
11110
11141
  }, {}, never, ["*"], true, never>;
11111
11142
  }
11112
11143
  export declare class FormRowComponent {
11113
- readonly cols: import("@angular/core").InputSignal<1 | 2 | 3 | 4>;
11144
+ readonly cols: import("@angular/core").InputSignal<1 | 4 | 2 | 3>;
11114
11145
  static ɵfac: i0.ɵɵFactoryDeclaration<FormRowComponent, never>;
11115
11146
  static ɵcmp: i0.ɵɵComponentDeclaration<FormRowComponent, "ui-form-row", never, {
11116
11147
  "cols": {
@@ -12278,6 +12309,17 @@ export interface PanelInfoSection {
12278
12309
  };
12279
12310
  items: PanelInfoItem[];
12280
12311
  columns?: 2;
12312
+ /**
12313
+ * A state mark drawn before the section's title in the header bar: a round tile in the colours of the badge `variant` holding a check (`icon: 'check'`)
12314
+ * or a cross (`icon: 'close'`). `label` ("Done", "Not done") is the mark's accessible name (the tile has no visible text; the shape tells check from cross,
12315
+ * so the colour is never the only signal) and its hover tooltip. The header bar is shown for a section with a `status` even without a `title`.
12316
+ * Absent: the header bar is as before.
12317
+ */
12318
+ status?: {
12319
+ icon: 'check' | 'close';
12320
+ label: string;
12321
+ variant: BadgeVariant;
12322
+ };
12281
12323
  }
12282
12324
  /**
12283
12325
  * Read-only label/value list for side panels and detail views, grouped into bordered
@@ -12316,6 +12358,13 @@ export declare class PanelInfoListComponent {
12316
12358
  textOf(item: PanelInfoItem): string;
12317
12359
  /** Plain value, or the dash for an empty / blank one. */
12318
12360
  valueOf(item: PanelInfoItem): string;
12361
+ /** Colours of a section's `status` mark: the badge colours of its variant (an unknown variant falls back to gray, like the badge). */
12362
+ statusStyle(variant: BadgeVariant): {
12363
+ bg: string;
12364
+ color: string;
12365
+ };
12366
+ /** SVG path of a section's `status` icon (the library's own check and close icons). */
12367
+ statusPath(icon: 'check' | 'close'): string;
12319
12368
  /** A disabled header action never runs, even when the click reaches the host element. */
12320
12369
  runHeaderAction(ha: NonNullable<PanelInfoSection['headerAction']>): void;
12321
12370
  visibleItems(section: PanelInfoSection): PanelInfoItem[];
@@ -12443,9 +12492,9 @@ export declare class ChipGroupComponent {
12443
12492
  readonly spaceAbove: import("@angular/core").InputSignal<"none" | "sm" | "md">;
12444
12493
  /** Space below the chip group. */
12445
12494
  readonly spaceBelow: import("@angular/core").InputSignal<"none" | "sm" | "md">;
12446
- protected readonly _gap: import("@angular/core").Signal<"6px" | "12px" | "8px">;
12447
- protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "6px" | "12px">;
12448
- protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "6px" | "12px">;
12495
+ protected readonly _gap: import("@angular/core").Signal<"8px" | "12px" | "6px">;
12496
+ protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "12px" | "6px">;
12497
+ protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "12px" | "6px">;
12449
12498
  static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
12450
12499
  static ɵcmp: i0.ɵɵComponentDeclaration<ChipGroupComponent, "ui-chip-group", never, {
12451
12500
  "gap": {
@@ -12870,6 +12919,8 @@ export declare class AlertComponent {
12870
12919
  "dismissed": "dismissed";
12871
12920
  }, never, ["*"], true, never>;
12872
12921
  }
12922
+ /** The keys added in 0.5.11 (see `MORE_ICONS`): each resolves with `iconPath(key)`. */
12923
+ export declare const MORE_ICON_NAMES: readonly string[];
12873
12924
  /**
12874
12925
  * Every key `<ui-icon>` draws by itself (the data-table action keys such as `view` / `edit` / `call` are accepted too, see `builtInActionIcon`).
12875
12926
  * Each resolves with `iconPath(key)`. Includes `search`, `cup` (food / drink) and `wrench` (rental / tools), library source 2026-11-04, and `cash` (banknote) and `dollar` (payment methods / amounts), library source 2026-11-05, not yet published. Also `star`, `gift`, `award` and `calendar-check` (library source 2026-11-05, not yet published).
@@ -13409,7 +13460,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
13409
13460
  * the object. `valueChange` always emits the object. A written string is read with `parseAddressValue` for display only: the control keeps
13410
13461
  * the original text until the user edits a field (so a text the parser cannot split is not rewritten on load).
13411
13462
  */
13412
- readonly valueFormat: import("@angular/core").InputSignal<"object" | "auto" | "text">;
13463
+ readonly valueFormat: import("@angular/core").InputSignal<"object" | "text" | "auto">;
13413
13464
  /** 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. */
13414
13465
  readonly zipPattern: import("@angular/core").InputSignal<RegExp | null>;
13415
13466
  /** Message shown when the ZIP breaks `zipPattern`. */
@@ -15246,7 +15297,7 @@ export declare class PdfHotspotComponent {
15246
15297
  /** `ready`: clickable; `blocked`: disabled (a prerequisite is missing); `signed`: shows `image`. */
15247
15298
  readonly state: import("@angular/core").InputSignal<"ready" | "blocked" | "signed">;
15248
15299
  /** `warning` gives the ready state an amber look (e.g. for initials), default is blue. */
15249
- readonly tone: import("@angular/core").InputSignal<"primary" | "warning">;
15300
+ readonly tone: import("@angular/core").InputSignal<"warning" | "primary">;
15250
15301
  /** Text of the ready button (e.g. "Sign Here"). */
15251
15302
  readonly labelInput: import("@angular/core").InputSignal<string | null>;
15252
15303
  readonly label: import("@angular/core").Signal<string>;
@@ -15386,7 +15437,7 @@ export declare class DetailCardComponent {
15386
15437
  /** true (default) = the title is displayed in capitals (CSS only); false = shown as written. The text, aria-label and heading name are never changed. */
15387
15438
  readonly uppercaseTitle: import("@angular/core").InputSignal<boolean>;
15388
15439
  /** 1-6 makes the title a real heading for screen readers (role=heading, aria-level); null keeps it plain text. */
15389
- readonly headingLevel: import("@angular/core").InputSignal<1 | 2 | 3 | 4 | 5 | 6 | null>;
15440
+ readonly headingLevel: import("@angular/core").InputSignal<1 | 4 | 2 | 3 | 5 | 6 | null>;
15390
15441
  /** Optional id for the title text; the card is then labelled by it. Without it the title is the card's aria-label. */
15391
15442
  readonly titleId: import("@angular/core").InputSignal<string>;
15392
15443
  /** Accessible name of the card when the header gives none (no header, or no title). A visible title wins; blank = no name. */
@@ -17992,6 +18043,12 @@ export interface SetupWizardTexts {
17992
18043
  /** Helper text under the area-code field; also what a disabled Connect button there is described by. */
17993
18044
  areaCodeHint: string;
17994
18045
  connectIntegrationFailed: (title: string) => string;
18046
+ /**
18047
+ * The step counter of the phone header ("2 / 5" by default), built from the 1-based number of the step on screen and the total
18048
+ * (the app's steps plus the closing page). The same text names the phone progress bar for screen readers ("<counter>: <step label>").
18049
+ * Absent: "n / total" and "Step n of total: <label>" as before. An empty result shows an empty counter and keeps the default progress-bar name.
18050
+ */
18051
+ stepCounter?: (n: number, total: number) => string;
17995
18052
  }
17996
18053
  /** An import step: the library import window (CSV / pasted data / competitor sources) with the step's own words around it. */
17997
18054
  export interface SetupImportStep {
@@ -18090,8 +18147,19 @@ export interface SetupStep {
18090
18147
  onContinue?: () => Observable<unknown> | Promise<unknown> | void;
18091
18148
  /** Called when the step is shown (load data for a custom step). */
18092
18149
  onEnter?: () => void;
18150
+ /**
18151
+ * `custom` and `integrations`: `true` clears the step's save error (the alert `wizard-save-error`) as soon as `canContinue()` turns from false to true,
18152
+ * so the message does not outlive the problem the user just fixed. Needs `canContinue`. Absent / false: the error stays until the next press of Save &
18153
+ * Continue or a step change, as before. A save that fails while `canContinue()` stays true keeps its error.
18154
+ */
18155
+ clearErrorWhenValid?: boolean;
18156
+ /**
18157
+ * `custom` and `integrations` steps whose Save & Continue is the wizard's own button: `true` / `false` decides whether Enter in the step's form presses
18158
+ * it, for this step, over the wizard's `[submitOnEnter]`. Absent: the wizard's `[submitOnEnter]` (default off).
18159
+ */
18160
+ submitOnEnter?: boolean;
18093
18161
  }
18094
- /** What a custom step's template gets as `let-wizard` when the step draws its own continue button (`ownActions`). */
18162
+ /** What a custom step's template gets as `let-wizard` when the step draws its own continue button (`ownActions`); the members of `SetupWizardNavApi` are there too. */
18095
18163
  export interface SetupWizardApi {
18096
18164
  /** Runs the step's `save` hook (and shows its error), then moves to the next step. */
18097
18165
  saveAndContinue(): Promise<void>;
@@ -18100,6 +18168,21 @@ export interface SetupWizardApi {
18100
18168
  /** Marks steps as done (check mark, counted in the progress) without the user visiting them; unknown keys are ignored. For example a live sync that already brought in the data of later steps. */
18101
18169
  markCompleted(...keys: string[]): void;
18102
18170
  }
18171
+ /**
18172
+ * What every step template and the closing page get as `let-wizard`: the step API plus navigation. `goTo` and `clearError` are separate from
18173
+ * `SetupWizardApi` so an app that builds its own `SetupWizardApi` object (a test double) keeps compiling. They are not enumerable properties of the object the wizard
18174
+ * hands out, so its own keys (`Object.keys`) are the same as before.
18175
+ */
18176
+ export interface SetupWizardNavApi extends SetupWizardApi {
18177
+ /**
18178
+ * Opens the step with this key, like `SetupWizardComponent.goTo`: emits `stepChange` (and runs the step's `onEnter`) and nothing else (no save
18179
+ * hook, no `stepSkipped`, the steps in between are not marked). Does nothing, and emits nothing, for a key that is not a step of this wizard, and
18180
+ * while a save is running. The key of the step on screen opens it again. It does not ask whether the side nav may open the step: the app decides.
18181
+ */
18182
+ goTo(key: string): void;
18183
+ /** Clears the save error alert. Does nothing when there is none. */
18184
+ clearError(): void;
18185
+ }
18103
18186
  /** What the wizard's `stepSkipped` output emits when the user leaves a step with its Skip button. */
18104
18187
  export interface SetupStepSkip {
18105
18188
  /** The step that was skipped. */
@@ -18108,7 +18191,7 @@ export interface SetupStepSkip {
18108
18191
  completed: boolean;
18109
18192
  }
18110
18193
  /**
18111
- * What the closing page's own content (`<ng-template uiSetupDone let-wizard>`) gets as `let-wizard`: the step API plus `finish()`. The object is
18194
+ * What the closing page's own content (`<ng-template uiSetupDone let-wizard>`) gets as `let-wizard`: the step API plus `finish()` (and, typed as `SetupWizardDoneNavApi`, `goTo` / `clearError`). The object is
18112
18195
  * the same for the life of the wizard. The closing page has nothing to save and is never a completed step, so its `saveAndContinue()` resolves
18113
18196
  * without doing anything.
18114
18197
  */
@@ -18116,6 +18199,8 @@ export interface SetupWizardDoneApi extends SetupWizardApi {
18116
18199
  /** Emits the wizard's `finished` output, like the built-in Finish button. */
18117
18200
  finish(): void;
18118
18201
  }
18202
+ /** What the closing page's own content gets as `let-wizard` since 0.5.11: `SetupWizardDoneApi` plus `goTo` / `clearError` (kept apart from `SetupWizardDoneApi` so an app's own object of that type keeps compiling). */
18203
+ export interface SetupWizardDoneNavApi extends SetupWizardDoneApi, SetupWizardNavApi {}
18119
18204
  /** How one of the app's steps ended: saved / imported (`done`), left with Skip (`skipped`) or neither (`pending`). */
18120
18205
  export type SetupSummaryState = 'done' | 'skipped' | 'pending';
18121
18206
  /** One of the app's steps as the closing page's summary lists it. */
@@ -18130,6 +18215,10 @@ export interface SetupDoneContext {
18130
18215
  /** The app's steps in walking order (the closing page itself is not in it), each with how it ended. */
18131
18216
  summary: SetupSummaryItem[];
18132
18217
  }
18218
+ /** The context `<ng-template uiSetupDone let-wizard>` is typed with since 0.5.11: `SetupDoneContext` whose `let-wizard` also has `goTo` / `clearError`. */
18219
+ export interface SetupDoneNavContext extends SetupDoneContext {
18220
+ $implicit: SetupWizardDoneNavApi;
18221
+ }
18133
18222
  /**
18134
18223
  * The integrations every app can offer in a setup step. Payment processing (`stripe`, `square`) belongs in almost every app's wizard:
18135
18224
  * `setupIntegrations('stripe', 'square')` is the ready-made "connect payments" step (an app that has one processor passes just that one; the
@@ -18162,11 +18251,11 @@ export declare class SetupWizardStepDirective {
18162
18251
  /** The `key` of the step this template belongs to. */
18163
18252
  readonly key: import("@angular/core").InputSignal<string>;
18164
18253
  readonly template: TemplateRef<{
18165
- $implicit: SetupWizardApi;
18254
+ $implicit: SetupWizardNavApi;
18166
18255
  }>;
18167
- /** Types `let-wizard` in the step's template as `SetupWizardApi`. */
18256
+ /** Types `let-wizard` in the step's template as `SetupWizardNavApi` (a `SetupWizardApi` plus `goTo` / `clearError`). */
18168
18257
  static ngTemplateContextGuard(_dir: SetupWizardStepDirective, _ctx: unknown): _ctx is {
18169
- $implicit: SetupWizardApi;
18258
+ $implicit: SetupWizardNavApi;
18170
18259
  };
18171
18260
  static ɵfac: i0.ɵɵFactoryDeclaration<SetupWizardStepDirective, never>;
18172
18261
  static ɵdir: i0.ɵɵDirectiveDeclaration<SetupWizardStepDirective, "ng-template[uiSetupStep]", never, {
@@ -18185,10 +18274,10 @@ export declare class SetupWizardStepHeaderDirective {
18185
18274
  /** The `key` of the step this header content belongs to. */
18186
18275
  readonly key: import("@angular/core").InputSignal<string>;
18187
18276
  readonly template: TemplateRef<{
18188
- $implicit: SetupWizardApi;
18277
+ $implicit: SetupWizardNavApi;
18189
18278
  }>;
18190
18279
  static ngTemplateContextGuard(_dir: SetupWizardStepHeaderDirective, _ctx: unknown): _ctx is {
18191
- $implicit: SetupWizardApi;
18280
+ $implicit: SetupWizardNavApi;
18192
18281
  };
18193
18282
  static ɵfac: i0.ɵɵFactoryDeclaration<SetupWizardStepHeaderDirective, never>;
18194
18283
  static ɵdir: i0.ɵɵDirectiveDeclaration<SetupWizardStepHeaderDirective, "ng-template[uiSetupStepHeader]", never, {
@@ -18206,18 +18295,20 @@ export declare class SetupWizardStepHeaderDirective {
18206
18295
  *
18207
18296
  * The page stays the wizard's: its side-nav entry, heading, card, Back and Finish, and the `finished` output. `let-wizard` is the step API plus
18208
18297
  * `finish()`; `summary` lists the app's steps with `state` 'done' | 'skipped' | 'pending'. When the content carries its own finishing action,
18209
- * `[uiSetupDoneHideFinish]="true"` removes the built-in Finish button. `[uiSetupDoneReachable]="fn"` lets the side nav open the closing page
18298
+ * `[uiSetupDoneHideFinish]="true"` removes the built-in Finish button and `[uiSetupDoneHideBack]="true"` the built-in Back button. `[uiSetupDoneReachable]="fn"` lets the side nav open the closing page
18210
18299
  * while it is still ahead (the same rule as `SetupStep.reachable`). Without this template the closing page is the built-in summary. One per
18211
18300
  * wizard: the first is used, and only a template that belongs to this wizard's own content (not to a wizard nested in a step).
18212
18301
  */
18213
18302
  export declare class SetupWizardDoneDirective {
18214
18303
  /** `true`: the built-in Finish button is not shown (the content calls `wizard.finish()` itself). */
18215
18304
  readonly hideFinish: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
18305
+ /** `true`: the built-in Back button of the closing page is not shown (for content that has its own way back). Default `false`: Back as before. */
18306
+ readonly hideBack: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
18216
18307
  /** Return true while the side nav may open the closing page from an earlier step (signal based, like `SetupStep.reachable`). Absent: Continue / Skip only. */
18217
18308
  readonly reachable: import("@angular/core").InputSignal<(() => boolean) | undefined>;
18218
- readonly template: TemplateRef<SetupDoneContext>;
18309
+ readonly template: TemplateRef<SetupDoneNavContext>;
18219
18310
  /** Types `let-wizard` and `let-summary="summary"` in the template. */
18220
- static ngTemplateContextGuard(_dir: SetupWizardDoneDirective, _ctx: unknown): _ctx is SetupDoneContext;
18311
+ static ngTemplateContextGuard(_dir: SetupWizardDoneDirective, _ctx: unknown): _ctx is SetupDoneNavContext;
18221
18312
  static ɵfac: i0.ɵɵFactoryDeclaration<SetupWizardDoneDirective, never>;
18222
18313
  static ɵdir: i0.ɵɵDirectiveDeclaration<SetupWizardDoneDirective, "ng-template[uiSetupDone]", never, {
18223
18314
  "hideFinish": {
@@ -18225,6 +18316,11 @@ export declare class SetupWizardDoneDirective {
18225
18316
  "required": false;
18226
18317
  "isSignal": true;
18227
18318
  };
18319
+ "hideBack": {
18320
+ "alias": "uiSetupDoneHideBack";
18321
+ "required": false;
18322
+ "isSignal": true;
18323
+ };
18228
18324
  "reachable": {
18229
18325
  "alias": "uiSetupDoneReachable";
18230
18326
  "required": false;
@@ -18268,6 +18364,10 @@ export declare const SETUP_DONE_KEY = "done";
18268
18364
  * Per step, all optional: `optional` (side-nav "(optional)" marker), `skipLabel` (text of Skip), `skipCompletes` (Skip marks the step complete),
18269
18365
  * `reachable` (the side nav may open the step while it is ahead). `stepSkipped` tells the app which step was left with Skip. Opt-in inputs:
18270
18366
  * `stepPicker` (a "Go to step" select on phones, where the step list is hidden) and `dimUnreachable` (later steps that cannot be opened yet are dimmed).
18367
+ *
18368
+ * 0.5.11, all opt-in (docs/setup-wizard-0-5-11.md): `goTo(key)` / `wizard.goTo(key)` opens a step from the app's own code; `clearError()` and
18369
+ * `SetupStep.clearErrorWhenValid` take the save error away; `[uiSetupDoneHideBack]` removes Back on the closing page; `texts.stepCounter` words the phone
18370
+ * counter; `[submitOnEnter]` / `SetupStep.submitOnEnter` let Enter in a step's form press Save & Continue.
18271
18371
  */
18272
18372
  export declare class SetupWizardComponent {
18273
18373
  protected readonly labels: UiLabelsService;
@@ -18284,7 +18384,7 @@ export declare class SetupWizardComponent {
18284
18384
  protected customHintId(): string;
18285
18385
  protected readonly importBlocked: import("@angular/core").Signal<boolean>;
18286
18386
  /** 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). */
18287
- protected readonly splitTab: import("@angular/core").WritableSignal<"main" | "extra">;
18387
+ protected readonly splitTab: import("@angular/core").WritableSignal<"extra" | "main">;
18288
18388
  protected readonly splitTabs: import("@angular/core").Signal<{
18289
18389
  key: string;
18290
18390
  label: string;
@@ -18304,6 +18404,12 @@ export declare class SetupWizardComponent {
18304
18404
  readonly stepPicker: import("@angular/core").InputSignal<boolean>;
18305
18405
  /** `true`: a later step that cannot be opened yet (not `reachable`) is dimmed in the side nav and announced ", disabled". Default false: plain text as before. */
18306
18406
  readonly dimUnreachable: import("@angular/core").InputSignal<boolean>;
18407
+ /**
18408
+ * `true`: Enter in a step's form presses the step's own Save & Continue (custom and integrations steps with the wizard's own button; `SetupStep.submitOnEnter`
18409
+ * overrides it per step). It does nothing when that button is disabled or a save is running, and when the key is pressed in a multi-line field, a button,
18410
+ * a link, a select (its list may be open), an open combobox, an open dialog or the area-code box. Default false: Enter does what the browser always did.
18411
+ */
18412
+ readonly submitOnEnter: import("@angular/core").InputSignal<boolean>;
18307
18413
  /** The last step's button ("Go to Dashboard"). */
18308
18414
  readonly finished: import("@angular/core").OutputEmitterRef<void>;
18309
18415
  /** "Exit Setup". */
@@ -18321,6 +18427,7 @@ export declare class SetupWizardComponent {
18321
18427
  protected readonly doneTemplate: import("@angular/core").Signal<SetupWizardDoneDirective | undefined>;
18322
18428
  private readonly injector;
18323
18429
  private readonly host;
18430
+ private readonly renderer;
18324
18431
  private readonly stepTitle;
18325
18432
  protected readonly importers: import("@angular/core").Signal<readonly ImportExportComponent[]>;
18326
18433
  protected readonly t: import("@angular/core").Signal<SetupWizardTexts>;
@@ -18338,7 +18445,7 @@ export declare class SetupWizardComponent {
18338
18445
  /** A provider's page was opened in another tab: when this tab becomes visible again the step's statuses are read again. */
18339
18446
  private connectTabOpened;
18340
18447
  /** What a custom step's template receives (`let-wizard`). */
18341
- protected readonly api: SetupWizardApi;
18448
+ protected readonly api: SetupWizardNavApi;
18342
18449
  /** What the closing page's own content receives (`let-wizard`): one object for the life of the wizard. There is nothing to save there, and the closing page is never a completed step. */
18343
18450
  private readonly doneApi;
18344
18451
  protected readonly error: import("@angular/core").WritableSignal<string>;
@@ -18368,13 +18475,15 @@ export declare class SetupWizardComponent {
18368
18475
  protected readonly pickerValue: import("@angular/core").Signal<string>;
18369
18476
  protected readonly summarySections: import("@angular/core").Signal<PanelInfoSection[]>;
18370
18477
  /** What the app's closing-page content receives: the wizard (`let-wizard`, with `finish()`) and how each of the app's steps ended (`summary`). */
18371
- protected readonly doneContext: import("@angular/core").Signal<SetupDoneContext>;
18478
+ protected readonly doneContext: import("@angular/core").Signal<SetupDoneNavContext>;
18372
18479
  constructor();
18480
+ /** The step on screen with `clearErrorWhenValid` and whether its `canContinue()` was true when last looked at. */
18481
+ private validSeen;
18373
18482
  protected headerTemplateFor(key: string): import("@angular/core").TemplateRef<{
18374
- $implicit: SetupWizardApi;
18483
+ $implicit: SetupWizardNavApi;
18375
18484
  }> | null;
18376
18485
  protected templateFor(key: string): import("@angular/core").TemplateRef<{
18377
- $implicit: SetupWizardApi;
18486
+ $implicit: SetupWizardNavApi;
18378
18487
  }> | null;
18379
18488
  /** The sidebar only reopens a step BEFORE the current one (to look at it again); a later step is reached with Continue or Skip, unless the app declares it `reachable`. */
18380
18489
  protected goToPast(key: string): void;
@@ -18384,7 +18493,28 @@ export declare class SetupWizardComponent {
18384
18493
  private dimmed;
18385
18494
  /** `stepPicker`: the Go button opens the chosen step, by the same rule as a press in the side nav. */
18386
18495
  protected openPicked(): void;
18387
- protected goTo(key: string): void;
18496
+ /**
18497
+ * Opens the step with this key from the app's own code (an "Edit" link on the summary, the move after a live connection): emits `stepChange` and runs
18498
+ * the step's `onEnter`, nothing else (no save hook, no `stepSkipped`, the steps in between are not marked). Also on `let-wizard` of every step template and of
18499
+ * the closing page. A key that is not a step of this wizard, and any call while a save is running, does nothing and emits nothing. The key of the step on
18500
+ * screen opens it again (its error is cleared and `onEnter` / `stepChange` run again). Unlike a press in the side nav it does not ask `reachable`: it is the app's
18501
+ * decision, so a later step opens too.
18502
+ */
18503
+ goTo(key: string): void;
18504
+ /** Clears the save error alert of the step on screen (no-op when there is none). */
18505
+ clearError(): void;
18506
+ /** Adds `goTo` and `clearError` to an API object as non-enumerable members: the object's own keys (`Object.keys`) stay what they were before 0.5.11. */
18507
+ private withNavigation;
18508
+ /** The step is one whose Save & Continue is the wizard's own button (the one `submitOnEnter` presses). */
18509
+ private hasOwnSaveButton;
18510
+ /** The focused element itself is one where Enter belongs to the control, never to the wizard (a multi-line field, a button, a link, a select, an open combobox, an editable region ...). */
18511
+ private static readonly ENTER_OWN;
18512
+ /** Or it sits inside a box whose own Enter rule applies: the area-code box of an integration, an open dialog. */
18513
+ private static readonly ENTER_WITHIN;
18514
+ /** True while Enter may press Save & Continue: not on the closing page, the step's own `submitOnEnter` (else the input) is on, and the step has the wizard's own Save & Continue button. */
18515
+ private readonly enterEnabled;
18516
+ /** `submitOnEnter`: Enter in the step's form presses Save & Continue, by the same rule as the button (nothing happens while it is disabled or busy). Listens only while `enterEnabled()`. */
18517
+ private onStepKeydown;
18388
18518
  private enter;
18389
18519
  private advanceFrom;
18390
18520
  protected back(): void;
@@ -18464,6 +18594,11 @@ export declare class SetupWizardComponent {
18464
18594
  "required": false;
18465
18595
  "isSignal": true;
18466
18596
  };
18597
+ "submitOnEnter": {
18598
+ "alias": "submitOnEnter";
18599
+ "required": false;
18600
+ "isSignal": true;
18601
+ };
18467
18602
  }, {
18468
18603
  "finished": "finished";
18469
18604
  "exited": "exited";
@@ -20628,7 +20763,7 @@ export declare class PaymentSidePanelComponent {
20628
20763
  private readonly terminalAvailable;
20629
20764
  /** value -> label of every live method the rendered plugins contribute (the first plugin wins a duplicate value). */
20630
20765
  private readonly liveMethods;
20631
- protected readonly kind: import("@angular/core").Signal<"none" | "live" | "terminal" | "manual">;
20766
+ protected readonly kind: import("@angular/core").Signal<"none" | "manual" | "live" | "terminal">;
20632
20767
  private kindOf;
20633
20768
  /** 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. */
20634
20769
  readonly methodList: import("@angular/core").Signal<PaymentMethodOption[]>;