@forgeroute/ui 0.5.9 → 0.5.11

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.
@@ -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";
@@ -1524,6 +1525,10 @@ export declare const UI_DEFAULT_LABELS: {
1524
1525
  readonly 'setupWizard.saveAndContinue': "Save & Continue";
1525
1526
  readonly 'setupWizard.saveFailed': "Failed to save. Please try again.";
1526
1527
  readonly 'setupWizard.skip': "Skip for now";
1528
+ readonly 'setupWizard.stepPicker': "Go to step";
1529
+ readonly 'setupWizard.stepPickerGo': "Go";
1530
+ readonly 'setupWizard.stepPickerHint': "Choose a step in the list first.";
1531
+ readonly 'setupWizard.stepPickerPlaceholder': "Choose a step";
1527
1532
  readonly 'setupWizard.steps': "Setup steps";
1528
1533
  readonly 'setupWizard.summaryPending': "Pending";
1529
1534
  readonly 'setupWizard.summarySkipped': "Skipped";
@@ -7402,6 +7407,7 @@ export type StepperCompactBreakpoint = 'sm' | 'md' | 'lg' | number;
7402
7407
  * the list is hidden (`display: none`, so it leaves the accessibility tree) and a summary is shown instead: the current step's label
7403
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>").
7404
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>").
7405
7411
  *
7406
7412
  * <ui-stepper [steps]="steps" [current]="key" [scrollable]="true" minStepWidth="10.5rem" leadingWidth="7.5rem" compact="md" accentColor="#f97316">
7407
7413
  * <img stepper-leading src="logo.svg" alt="Acme" />
@@ -7444,6 +7450,11 @@ export declare class StepperComponent {
7444
7450
  readonly scrollable: import("@angular/core").InputSignal<boolean>;
7445
7451
  /** CSS length: width reserved for the `[stepper-leading]` element (a logo); the steps start at this width + 1rem. Empty = no leading area. */
7446
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>;
7447
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. */
7448
7459
  readonly compact: import("@angular/core").InputSignal<StepperCompactBreakpoint | null>;
7449
7460
  /** Emits the key of an activated selectable step that was not already current (after `current` was updated). */
@@ -7458,10 +7469,13 @@ export declare class StepperComponent {
7458
7469
  private readonly _id;
7459
7470
  constructor();
7460
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;
7461
7474
  protected readonly summary: import("@angular/core").Signal<{
7462
7475
  n: number;
7463
7476
  m: number;
7464
7477
  label: string;
7478
+ count: string;
7465
7479
  aria: string;
7466
7480
  }>;
7467
7481
  protected readonly rows: import("@angular/core").Signal<{
@@ -7562,6 +7576,11 @@ export declare class StepperComponent {
7562
7576
  "required": false;
7563
7577
  "isSignal": true;
7564
7578
  };
7579
+ "counterText": {
7580
+ "alias": "counterText";
7581
+ "required": false;
7582
+ "isSignal": true;
7583
+ };
7565
7584
  "compact": {
7566
7585
  "alias": "compact";
7567
7586
  "required": false;
@@ -8844,7 +8863,14 @@ export declare class ImportSourceGridComponent {
8844
8863
  *
8845
8864
  * Inputs: `title` (required), `description`, `letter` (one character in the tile) or `icon` (a library icon name, used when there is no letter),
8846
8865
  * `color` (tile background, default slate), `actionLabel` (no label = no button), `actionVariant` (default secondary), `actionAriaLabel`,
8847
- * `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.
8848
8874
  */
8849
8875
  export declare class OptionCardComponent {
8850
8876
  readonly title: import("@angular/core").InputSignal<string>;
@@ -8858,8 +8884,12 @@ export declare class OptionCardComponent {
8858
8884
  readonly actionTestId: import("@angular/core").InputSignal<string>;
8859
8885
  readonly actionLoading: import("@angular/core").InputSignal<boolean>;
8860
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>;
8861
8889
  /** The action button was pressed. */
8862
8890
  readonly action: import("@angular/core").OutputEmitterRef<void>;
8891
+ protected readonly labels: UiLabelsService;
8892
+ protected readonly checkD: string;
8863
8893
  protected iconD(): string | null;
8864
8894
  static ɵfac: i0.ɵɵFactoryDeclaration<OptionCardComponent, never>;
8865
8895
  static ɵcmp: i0.ɵɵComponentDeclaration<OptionCardComponent, "ui-option-card", never, {
@@ -8918,9 +8948,14 @@ export declare class OptionCardComponent {
8918
8948
  "required": false;
8919
8949
  "isSignal": true;
8920
8950
  };
8951
+ "selected": {
8952
+ "alias": "selected";
8953
+ "required": false;
8954
+ "isSignal": true;
8955
+ };
8921
8956
  }, {
8922
8957
  "action": "action";
8923
- }, never, ["*"], true, never>;
8958
+ }, never, ["[option-card-logo]", "*"], true, never>;
8924
8959
  }
8925
8960
  /** Default ACH debit authorization text (same wording the contractor bank-account kiosk used). */
8926
8961
  export declare const DEFAULT_BANK_MANDATE_TEXT: string;
@@ -12274,6 +12309,17 @@ export interface PanelInfoSection {
12274
12309
  };
12275
12310
  items: PanelInfoItem[];
12276
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
+ };
12277
12323
  }
12278
12324
  /**
12279
12325
  * Read-only label/value list for side panels and detail views, grouped into bordered
@@ -12312,6 +12358,13 @@ export declare class PanelInfoListComponent {
12312
12358
  textOf(item: PanelInfoItem): string;
12313
12359
  /** Plain value, or the dash for an empty / blank one. */
12314
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;
12315
12368
  /** A disabled header action never runs, even when the click reaches the host element. */
12316
12369
  runHeaderAction(ha: NonNullable<PanelInfoSection['headerAction']>): void;
12317
12370
  visibleItems(section: PanelInfoSection): PanelInfoItem[];
@@ -12866,6 +12919,8 @@ export declare class AlertComponent {
12866
12919
  "dismissed": "dismissed";
12867
12920
  }, never, ["*"], true, never>;
12868
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[];
12869
12924
  /**
12870
12925
  * Every key `<ui-icon>` draws by itself (the data-table action keys such as `view` / `edit` / `call` are accepted too, see `builtInActionIcon`).
12871
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).
@@ -17988,6 +18043,12 @@ export interface SetupWizardTexts {
17988
18043
  /** Helper text under the area-code field; also what a disabled Connect button there is described by. */
17989
18044
  areaCodeHint: string;
17990
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;
17991
18052
  }
17992
18053
  /** An import step: the library import window (CSV / pasted data / competitor sources) with the step's own words around it. */
17993
18054
  export interface SetupImportStep {
@@ -18008,7 +18069,8 @@ export interface SetupImportStep {
18008
18069
  }
18009
18070
  /**
18010
18071
  * One step of the wizard. `steps` is the list in walking order: the app builds it (and so decides the order, the wording and which steps exist for
18011
- * each kind of user). A `done` summary step is always added at the end by the wizard itself.
18072
+ * each kind of user). A `done` summary step is always added at the end by the wizard itself (its page content can be the app's own:
18073
+ * `<ng-template uiSetupDone>`).
18012
18074
  */
18013
18075
  export interface SetupStep {
18014
18076
  /** Unique within the list. */
@@ -18022,6 +18084,26 @@ export interface SetupStep {
18022
18084
  kind: 'custom' | 'import' | 'integrations';
18023
18085
  /** Shows "Skip for now" (default true). The first step of a wizard usually sets this to false. */
18024
18086
  skippable?: boolean;
18087
+ /** Text of this step's Skip button (e.g. "Does Not Apply"). Absent: the wizard's `texts.skip`. */
18088
+ skipLabel?: string;
18089
+ /**
18090
+ * `true`: pressing Skip marks the step COMPLETE instead of skipped (check mark in the side nav, "Done" in the summary), for a step where leaving
18091
+ * it out is a valid answer. Like every skip it runs no hook and ignores `canContinue`. Absent / false: the step is recorded as skipped.
18092
+ */
18093
+ skipCompletes?: boolean;
18094
+ /**
18095
+ * `true`: the side nav marks the step "(optional)" (announced ", optional") until it is complete, so the user sees ahead which steps may be
18096
+ * left out. Display only: it does not add or remove the Skip button (`skippable`). Absent / false: no marker.
18097
+ */
18098
+ optional?: boolean;
18099
+ /**
18100
+ * Lets the side nav open this step while it comes AFTER the step on screen (by default only earlier steps reopen). Return true while the step
18101
+ * may be opened directly, for example when its data already exists. Read inside a `computed`: it MUST be based on signals, or the side nav keeps
18102
+ * the answer it read last (what the side nav shows as a button always opens). A function that throws counts as false. Opening a step this way
18103
+ * runs the target's `onEnter` only: no save hook, no `stepSkipped`, and the steps in between are not marked. Absent: a later step is reached
18104
+ * with Continue / Skip only. The closing page has its own switch: `[uiSetupDoneReachable]` on `<ng-template uiSetupDone>`.
18105
+ */
18106
+ reachable?: () => boolean;
18025
18107
  /** `custom`: runs on "Save & Continue". Resolve to continue; throw / error to stay on the step (the message is shown in an alert). */
18026
18108
  save?: () => Observable<unknown> | Promise<unknown> | void;
18027
18109
  /** `custom` and `integrations`: false disables "Save & Continue" (read on every render, so it can follow signals). */
@@ -18065,8 +18147,19 @@ export interface SetupStep {
18065
18147
  onContinue?: () => Observable<unknown> | Promise<unknown> | void;
18066
18148
  /** Called when the step is shown (load data for a custom step). */
18067
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;
18068
18161
  }
18069
- /** 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. */
18070
18163
  export interface SetupWizardApi {
18071
18164
  /** Runs the step's `save` hook (and shows its error), then moves to the next step. */
18072
18165
  saveAndContinue(): Promise<void>;
@@ -18075,6 +18168,57 @@ export interface SetupWizardApi {
18075
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. */
18076
18169
  markCompleted(...keys: string[]): void;
18077
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
+ }
18186
+ /** What the wizard's `stepSkipped` output emits when the user leaves a step with its Skip button. */
18187
+ export interface SetupStepSkip {
18188
+ /** The step that was skipped. */
18189
+ key: string;
18190
+ /** True when the skip marked the step complete (`skipCompletes`), false when it was recorded as skipped. */
18191
+ completed: boolean;
18192
+ }
18193
+ /**
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
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
18196
+ * without doing anything.
18197
+ */
18198
+ export interface SetupWizardDoneApi extends SetupWizardApi {
18199
+ /** Emits the wizard's `finished` output, like the built-in Finish button. */
18200
+ finish(): void;
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 {}
18204
+ /** How one of the app's steps ended: saved / imported (`done`), left with Skip (`skipped`) or neither (`pending`). */
18205
+ export type SetupSummaryState = 'done' | 'skipped' | 'pending';
18206
+ /** One of the app's steps as the closing page's summary lists it. */
18207
+ export interface SetupSummaryItem {
18208
+ key: string;
18209
+ label: string;
18210
+ state: SetupSummaryState;
18211
+ }
18212
+ /** The context of `<ng-template uiSetupDone let-wizard let-summary="summary">`. */
18213
+ export interface SetupDoneContext {
18214
+ $implicit: SetupWizardDoneApi;
18215
+ /** The app's steps in walking order (the closing page itself is not in it), each with how it ended. */
18216
+ summary: SetupSummaryItem[];
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
+ }
18078
18222
  /**
18079
18223
  * The integrations every app can offer in a setup step. Payment processing (`stripe`, `square`) belongs in almost every app's wizard:
18080
18224
  * `setupIntegrations('stripe', 'square')` is the ready-made "connect payments" step (an app that has one processor passes just that one; the
@@ -18107,11 +18251,11 @@ export declare class SetupWizardStepDirective {
18107
18251
  /** The `key` of the step this template belongs to. */
18108
18252
  readonly key: import("@angular/core").InputSignal<string>;
18109
18253
  readonly template: TemplateRef<{
18110
- $implicit: SetupWizardApi;
18254
+ $implicit: SetupWizardNavApi;
18111
18255
  }>;
18112
- /** 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`). */
18113
18257
  static ngTemplateContextGuard(_dir: SetupWizardStepDirective, _ctx: unknown): _ctx is {
18114
- $implicit: SetupWizardApi;
18258
+ $implicit: SetupWizardNavApi;
18115
18259
  };
18116
18260
  static ɵfac: i0.ɵɵFactoryDeclaration<SetupWizardStepDirective, never>;
18117
18261
  static ɵdir: i0.ɵɵDirectiveDeclaration<SetupWizardStepDirective, "ng-template[uiSetupStep]", never, {
@@ -18130,10 +18274,10 @@ export declare class SetupWizardStepHeaderDirective {
18130
18274
  /** The `key` of the step this header content belongs to. */
18131
18275
  readonly key: import("@angular/core").InputSignal<string>;
18132
18276
  readonly template: TemplateRef<{
18133
- $implicit: SetupWizardApi;
18277
+ $implicit: SetupWizardNavApi;
18134
18278
  }>;
18135
18279
  static ngTemplateContextGuard(_dir: SetupWizardStepHeaderDirective, _ctx: unknown): _ctx is {
18136
- $implicit: SetupWizardApi;
18280
+ $implicit: SetupWizardNavApi;
18137
18281
  };
18138
18282
  static ɵfac: i0.ɵɵFactoryDeclaration<SetupWizardStepHeaderDirective, never>;
18139
18283
  static ɵdir: i0.ɵɵDirectiveDeclaration<SetupWizardStepHeaderDirective, "ng-template[uiSetupStepHeader]", never, {
@@ -18144,6 +18288,46 @@ export declare class SetupWizardStepHeaderDirective {
18144
18288
  };
18145
18289
  }, {}, never, never, true, never>;
18146
18290
  }
18291
+ /**
18292
+ * The app's own content for the wizard's closing page (the `done` step the wizard appends), in place of the built-in summary list and hint:
18293
+ *
18294
+ * <ng-template uiSetupDone let-wizard let-summary="summary"> …links, a checklist, a tour… </ng-template>
18295
+ *
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
18297
+ * `finish()`; `summary` lists the app's steps with `state` 'done' | 'skipped' | 'pending'. When the content carries its own finishing action,
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
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
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).
18301
+ */
18302
+ export declare class SetupWizardDoneDirective {
18303
+ /** `true`: the built-in Finish button is not shown (the content calls `wizard.finish()` itself). */
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>;
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. */
18308
+ readonly reachable: import("@angular/core").InputSignal<(() => boolean) | undefined>;
18309
+ readonly template: TemplateRef<SetupDoneNavContext>;
18310
+ /** Types `let-wizard` and `let-summary="summary"` in the template. */
18311
+ static ngTemplateContextGuard(_dir: SetupWizardDoneDirective, _ctx: unknown): _ctx is SetupDoneNavContext;
18312
+ static ɵfac: i0.ɵɵFactoryDeclaration<SetupWizardDoneDirective, never>;
18313
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SetupWizardDoneDirective, "ng-template[uiSetupDone]", never, {
18314
+ "hideFinish": {
18315
+ "alias": "uiSetupDoneHideFinish";
18316
+ "required": false;
18317
+ "isSignal": true;
18318
+ };
18319
+ "hideBack": {
18320
+ "alias": "uiSetupDoneHideBack";
18321
+ "required": false;
18322
+ "isSignal": true;
18323
+ };
18324
+ "reachable": {
18325
+ "alias": "uiSetupDoneReachable";
18326
+ "required": false;
18327
+ "isSignal": true;
18328
+ };
18329
+ }, {}, never, never, true, never>;
18330
+ }
18147
18331
  /** Splits a description into its first sentence (title) and the rest (text). A single sentence is all title. */
18148
18332
  export declare function splitIntro(description: string): {
18149
18333
  title: string;
@@ -18153,7 +18337,8 @@ export declare function splitIntro(description: string): {
18153
18337
  export declare const SETUP_DONE_KEY = "done";
18154
18338
  /**
18155
18339
  * `ui-setup-wizard` — the first-run setup wizard every app plugs into. A left stepper with progress, one step at a time on the right, Back / Skip /
18156
- * Save & Continue, and a final summary. The sidebar only reopens an earlier step; later steps and the summary are reached with Continue / Skip. The app gives it the list of steps (in the order that user type walks them) and the wording; the library
18340
+ * Save & Continue, and a final summary. The sidebar only reopens an earlier step; later steps and the summary are reached with Continue / Skip (a step
18341
+ * with `reachable` can also be opened from the sidebar while it is still ahead). The app gives it the list of steps (in the order that user type walks them) and the wording; the library
18157
18342
  * does the rest:
18158
18343
  *
18159
18344
  * - `kind: 'import'` steps open the library import window (CSV, pasted data, competitor sources) and show the result;
@@ -18168,6 +18353,21 @@ export declare const SETUP_DONE_KEY = "done";
18168
18353
  * </ui-setup-wizard>
18169
18354
  *
18170
18355
  * Changing `steps` (for example when the user type becomes known) re-orders the stepper; progress of a step that is still in the list is kept.
18356
+ *
18357
+ * The closing page (the `done` step the wizard appends, counted as the last step) shows the built-in summary list, or the app's own content:
18358
+ *
18359
+ * <ng-template uiSetupDone let-wizard let-summary="summary"> … (click)="wizard.finish()" … </ng-template>
18360
+ *
18361
+ * The heading, card, Back, Finish and `finished` stay the wizard's; `[uiSetupDoneHideFinish]="true"` removes the built-in Finish button and
18362
+ * `finish()` (on `let-wizard` and on the component) emits `finished`. See docs/setup-wizard-done-template.md.
18363
+ *
18364
+ * Per step, all optional: `optional` (side-nav "(optional)" marker), `skipLabel` (text of Skip), `skipCompletes` (Skip marks the step complete),
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:
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.
18171
18371
  */
18172
18372
  export declare class SetupWizardComponent {
18173
18373
  protected readonly labels: UiLabelsService;
@@ -18196,16 +18396,38 @@ export declare class SetupWizardComponent {
18196
18396
  readonly texts: import("@angular/core").InputSignal<Partial<SetupWizardTexts>>;
18197
18397
  /** The key of the step to open first (for example the one a payment provider's return address names); default (empty or unknown) = the first step. Read once, when the wizard starts. */
18198
18398
  readonly initialStep: import("@angular/core").InputSignal<string>;
18399
+ /**
18400
+ * `true`: on a phone, where the step list is hidden behind the "N / M" counter, a "Go to step" select with a Go button lists every step (with
18401
+ * "(optional)") and opens the ones the side nav would open: earlier steps and `reachable` later ones. Shown only while at least one step can be
18402
+ * opened. Default false: the phone header is unchanged.
18403
+ */
18404
+ readonly stepPicker: import("@angular/core").InputSignal<boolean>;
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. */
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>;
18199
18413
  /** The last step's button ("Go to Dashboard"). */
18200
18414
  readonly finished: import("@angular/core").OutputEmitterRef<void>;
18201
18415
  /** "Exit Setup". */
18202
18416
  readonly exited: import("@angular/core").OutputEmitterRef<void>;
18203
18417
  /** The step that was just shown (its key). */
18204
18418
  readonly stepChange: import("@angular/core").OutputEmitterRef<string>;
18419
+ /**
18420
+ * The user left a step with its Skip button: the step's key and whether the skip marked it complete (`skipCompletes`). Emitted before the
18421
+ * `stepChange` of the step that opens next. Never emitted by Save & Continue, Continue, Back or a side-nav / picker jump.
18422
+ */
18423
+ readonly stepSkipped: import("@angular/core").OutputEmitterRef<SetupStepSkip>;
18205
18424
  protected readonly stepTemplates: import("@angular/core").Signal<readonly SetupWizardStepDirective[]>;
18206
18425
  protected readonly headerTemplates: import("@angular/core").Signal<readonly SetupWizardStepHeaderDirective[]>;
18426
+ /** The app's own content for the closing page (`<ng-template uiSetupDone>`); without one the built-in summary is shown. */
18427
+ protected readonly doneTemplate: import("@angular/core").Signal<SetupWizardDoneDirective | undefined>;
18207
18428
  private readonly injector;
18208
18429
  private readonly host;
18430
+ private readonly renderer;
18209
18431
  private readonly stepTitle;
18210
18432
  protected readonly importers: import("@angular/core").Signal<readonly ImportExportComponent[]>;
18211
18433
  protected readonly t: import("@angular/core").Signal<SetupWizardTexts>;
@@ -18223,7 +18445,9 @@ export declare class SetupWizardComponent {
18223
18445
  /** A provider's page was opened in another tab: when this tab becomes visible again the step's statuses are read again. */
18224
18446
  private connectTabOpened;
18225
18447
  /** What a custom step's template receives (`let-wizard`). */
18226
- protected readonly api: SetupWizardApi;
18448
+ protected readonly api: SetupWizardNavApi;
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. */
18450
+ private readonly doneApi;
18227
18451
  protected readonly error: import("@angular/core").WritableSignal<string>;
18228
18452
  protected readonly areaCodeOpen: import("@angular/core").WritableSignal<string>;
18229
18453
  protected readonly areaCode: import("@angular/core").WritableSignal<string>;
@@ -18240,22 +18464,66 @@ export declare class SetupWizardComponent {
18240
18464
  } | null>;
18241
18465
  protected readonly isDone: import("@angular/core").Signal<boolean>;
18242
18466
  protected readonly completedCount: import("@angular/core").Signal<number>;
18467
+ /** The later steps the app lets the side nav open now (`reachable`, and `uiSetupDoneReachable` for the closing page). Empty unless the app uses them. */
18468
+ private readonly aheadKeys;
18243
18469
  protected readonly stepperSteps: import("@angular/core").Signal<StepperStep[]>;
18470
+ /** `stepPicker`: every step, numbered as in the side nav; the ones the side nav would not open are listed but cannot be chosen. */
18471
+ protected readonly pickerOptions: import("@angular/core").Signal<SelectOption<string>[]>;
18472
+ protected readonly pickerShown: import("@angular/core").Signal<boolean>;
18473
+ protected readonly pickerKey: import("@angular/core").WritableSignal<string>;
18474
+ /** The step chosen in the picker, while it can be opened (a choice whose step stops being openable is off until it can be opened again; every step change clears the choice). */
18475
+ protected readonly pickerValue: import("@angular/core").Signal<string>;
18244
18476
  protected readonly summarySections: import("@angular/core").Signal<PanelInfoSection[]>;
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`). */
18478
+ protected readonly doneContext: import("@angular/core").Signal<SetupDoneNavContext>;
18245
18479
  constructor();
18480
+ /** The step on screen with `clearErrorWhenValid` and whether its `canContinue()` was true when last looked at. */
18481
+ private validSeen;
18246
18482
  protected headerTemplateFor(key: string): import("@angular/core").TemplateRef<{
18247
- $implicit: SetupWizardApi;
18483
+ $implicit: SetupWizardNavApi;
18248
18484
  }> | null;
18249
18485
  protected templateFor(key: string): import("@angular/core").TemplateRef<{
18250
- $implicit: SetupWizardApi;
18486
+ $implicit: SetupWizardNavApi;
18251
18487
  }> | null;
18252
- /** The sidebar only reopens a step BEFORE the current one (to look at it again); a later step is reached with Continue or Skip. */
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`. */
18253
18489
  protected goToPast(key: string): void;
18254
- protected goTo(key: string): void;
18490
+ /** The app's answer for one step (`reachable`; the closing page: `uiSetupDoneReachable`). A function that throws counts as "no", so it cannot break the page. */
18491
+ private declaredReachable;
18492
+ /** `dimUnreachable`: a step after the one on screen that the side nav cannot open. */
18493
+ private dimmed;
18494
+ /** `stepPicker`: the Go button opens the chosen step, by the same rule as a press in the side nav. */
18495
+ protected openPicked(): 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;
18255
18518
  private enter;
18256
18519
  private advanceFrom;
18257
18520
  protected back(): void;
18258
18521
  protected skip(): void;
18522
+ /**
18523
+ * Emits `finished`, like the built-in Finish button: for an app whose own closing-page content (`<ng-template uiSetupDone>`) carries the finishing action.
18524
+ * As with the built-in button, every call (every press) emits once: an app whose handler must not run twice guards it itself.
18525
+ */
18526
+ finish(): void;
18259
18527
  /** Marks the given steps done (ignoring keys that are not steps of this wizard). */
18260
18528
  /**
18261
18529
  * Marks steps as done from outside the step templates (unknown keys are ignored), e.g. when the app finds that a step's data already exists after a
@@ -18316,11 +18584,27 @@ export declare class SetupWizardComponent {
18316
18584
  "required": false;
18317
18585
  "isSignal": true;
18318
18586
  };
18587
+ "stepPicker": {
18588
+ "alias": "stepPicker";
18589
+ "required": false;
18590
+ "isSignal": true;
18591
+ };
18592
+ "dimUnreachable": {
18593
+ "alias": "dimUnreachable";
18594
+ "required": false;
18595
+ "isSignal": true;
18596
+ };
18597
+ "submitOnEnter": {
18598
+ "alias": "submitOnEnter";
18599
+ "required": false;
18600
+ "isSignal": true;
18601
+ };
18319
18602
  }, {
18320
18603
  "finished": "finished";
18321
18604
  "exited": "exited";
18322
18605
  "stepChange": "stepChange";
18323
- }, ["stepTemplates", "headerTemplates"], ["[setup-wizard-logo]"], true, never>;
18606
+ "stepSkipped": "stepSkipped";
18607
+ }, ["stepTemplates", "headerTemplates", "doneTemplate"], ["[setup-wizard-logo]"], true, never>;
18324
18608
  }
18325
18609
  /** One automated trigger a template can be assigned to (the host decides which exist). */
18326
18610
  export interface EmailTemplateAssignmentOption {