@forgeroute/ui 0.5.9 → 0.5.10
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/fesm2022/{forgeroute-ui-ui-labels.es-DtHranlg.mjs → forgeroute-ui-ui-labels.es-ClaUzHAN.mjs} +5 -1
- package/fesm2022/forgeroute-ui-ui-labels.es-ClaUzHAN.mjs.map +1 -0
- package/fesm2022/forgeroute-ui.mjs +271 -26
- package/fesm2022/forgeroute-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui-messaging.d.ts +5 -5
- package/types/forgeroute-ui-quickbooks.d.ts +2 -2
- package/types/forgeroute-ui-square.d.ts +3 -3
- package/types/forgeroute-ui-stripe.d.ts +1 -1
- package/types/forgeroute-ui.d.ts +153 -4
- package/fesm2022/forgeroute-ui-ui-labels.es-DtHranlg.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -117,7 +117,7 @@ export declare class TemplatePickerComponent {
|
|
|
117
117
|
private readonly host;
|
|
118
118
|
private readonly search$;
|
|
119
119
|
/** Filter results to a specific channel: 'email', 'text', or omit for all. */
|
|
120
|
-
readonly channel: import("@angular/core").InputSignal<"" | "
|
|
120
|
+
readonly channel: import("@angular/core").InputSignal<"" | "email" | "text">;
|
|
121
121
|
readonly selectedId: import("@angular/core").InputSignal<string | null>;
|
|
122
122
|
readonly labelInput: import("@angular/core").InputSignal<string | null>;
|
|
123
123
|
readonly label: import("@angular/core").Signal<string>;
|
|
@@ -548,7 +548,7 @@ export declare class DocumentSendOptionsComponent implements UiFieldValidity {
|
|
|
548
548
|
/** API root from FORGEROUTE_CONFIG (e.g. a cross-origin prod API); falls back to same-origin `/api`. */
|
|
549
549
|
private readonly apiBase;
|
|
550
550
|
/** `email` → purpose select + attachment allowed; `text` → link only (purpose fixed to e-signature). */
|
|
551
|
-
readonly channel: import("@angular/core").InputSignal<"
|
|
551
|
+
readonly channel: import("@angular/core").InputSignal<"email" | "text">;
|
|
552
552
|
readonly labelInput: import("@angular/core").InputSignal<string | null>;
|
|
553
553
|
readonly label: import("@angular/core").Signal<string>;
|
|
554
554
|
/** When true, at least one document must be chosen. The message forms leave it false: documents are optional there. */
|
|
@@ -624,7 +624,7 @@ export declare class DocumentSendOptionsComponent implements UiFieldValidity {
|
|
|
624
624
|
/** Roles of documents whose row had no `signerRoles` and that the host resolves (`signers().resolveRoles`). */
|
|
625
625
|
readonly roleStates: import("@angular/core").WritableSignal<Record<string, RoleState>>;
|
|
626
626
|
/** The envelope's documents: `loading` / `error` while the panel reads them (`loadDocuments`), `ready` once known. */
|
|
627
|
-
readonly envelopeStatus: import("@angular/core").WritableSignal<"
|
|
627
|
+
readonly envelopeStatus: import("@angular/core").WritableSignal<"idle" | "loading" | "ready" | "error">;
|
|
628
628
|
private envelopeSub;
|
|
629
629
|
private readonly roleSubs;
|
|
630
630
|
/** The sender opened the collapsed "Signing options" line. */
|
|
@@ -2015,7 +2015,7 @@ export declare class SendMessagePanelComponent {
|
|
|
2015
2015
|
* somebody can receive that channel; otherwise the usual default applies (email if anybody has an email, else text). null (default) = the usual default.
|
|
2016
2016
|
* `textEnabled` must already be known when the panel opens for `'text'` to take effect (bind `[recipients]` after async settings loaded, or re-open).
|
|
2017
2017
|
*/
|
|
2018
|
-
readonly initialChannel: import("@angular/core").InputSignal<"
|
|
2018
|
+
readonly initialChannel: import("@angular/core").InputSignal<"email" | "text" | null>;
|
|
2019
2019
|
/** Bulk mode: the plural noun in "To: 12 residents" (default `recipients`, localized). */
|
|
2020
2020
|
readonly recipientNoun: import("@angular/core").InputSignal<string>;
|
|
2021
2021
|
/** Bulk mode: the singular noun used when exactly one is selected; empty = the plural without a trailing "s". */
|
|
@@ -2246,7 +2246,7 @@ export declare class SendMessagePanelComponent {
|
|
|
2246
2246
|
readonly activeContact: import("@angular/core").WritableSignal<MessageContact | null>;
|
|
2247
2247
|
/** What the sender should know about the picked contact before sending (why a channel is missing, what to add). */
|
|
2248
2248
|
readonly contactNotices: import("@angular/core").Signal<string[]>;
|
|
2249
|
-
readonly channel: import("@angular/core").WritableSignal<"
|
|
2249
|
+
readonly channel: import("@angular/core").WritableSignal<"email" | "text">;
|
|
2250
2250
|
readonly valid: import("@angular/core").WritableSignal<boolean>;
|
|
2251
2251
|
/** A send is in flight in the active form: the Send button spins and stays disabled. */
|
|
2252
2252
|
readonly busy: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -345,7 +345,7 @@ export declare class QboPaymentComponent {
|
|
|
345
345
|
protected readonly postalFormatter: import("@angular/core").Signal<(raw: string) => string>;
|
|
346
346
|
protected readonly postalPlaceholder: import("@angular/core").Signal<"A1A 1A1" | "94086">;
|
|
347
347
|
protected readonly postalInputMode: import("@angular/core").Signal<"text" | "numeric">;
|
|
348
|
-
protected readonly postalMaxLength: import("@angular/core").Signal<
|
|
348
|
+
protected readonly postalMaxLength: import("@angular/core").Signal<7 | 10>;
|
|
349
349
|
protected readonly routingFormatter: (raw: string) => string;
|
|
350
350
|
protected readonly accountFormatter: (raw: string) => string;
|
|
351
351
|
protected readonly tabs: import("@angular/core").Signal<PillTab[]>;
|
|
@@ -774,7 +774,7 @@ export declare class QboConnectComponent {
|
|
|
774
774
|
readonly loading: import("@angular/core").ModelSignal<boolean>;
|
|
775
775
|
protected readonly awaiting: import("@angular/core").WritableSignal<boolean>;
|
|
776
776
|
protected readonly confirming: import("@angular/core").WritableSignal<boolean>;
|
|
777
|
-
protected readonly state: import("@angular/core").Signal<"
|
|
777
|
+
protected readonly state: import("@angular/core").Signal<"none" | "connected" | "reconnect">;
|
|
778
778
|
protected readonly company: import("@angular/core").Signal<string>;
|
|
779
779
|
protected readonly connectedOn: import("@angular/core").Signal<string>;
|
|
780
780
|
/** What the persistent status region says: the current state, plus "Loading." while a request runs. */
|
|
@@ -334,7 +334,7 @@ export declare class SquarePaymentComponent {
|
|
|
334
334
|
readonly applicationId: import("@angular/core").InputSignal<string | null>;
|
|
335
335
|
readonly locationId: import("@angular/core").InputSignal<string | null>;
|
|
336
336
|
/** `'production'` or `'sandbox'` (default: the provider's, else `'sandbox'`). Decides which Square host the SDK script comes from. */
|
|
337
|
-
readonly environment: import("@angular/core").InputSignal<"
|
|
337
|
+
readonly environment: import("@angular/core").InputSignal<"production" | "sandbox" | null>;
|
|
338
338
|
/** The amount in major units (12.5 = $12.50), for buyer verification (SCA / 3-D Secure) of a card payment. */
|
|
339
339
|
readonly amount: import("@angular/core").InputSignal<number | null>;
|
|
340
340
|
readonly currency: import("@angular/core").InputSignal<string>;
|
|
@@ -948,7 +948,7 @@ export declare class SquareConnectComponent {
|
|
|
948
948
|
readonly loading: import("@angular/core").ModelSignal<boolean>;
|
|
949
949
|
protected readonly awaiting: import("@angular/core").WritableSignal<boolean>;
|
|
950
950
|
protected readonly confirming: import("@angular/core").WritableSignal<boolean>;
|
|
951
|
-
protected readonly state: import("@angular/core").Signal<"
|
|
951
|
+
protected readonly state: import("@angular/core").Signal<"none" | "connected" | "reconnect">;
|
|
952
952
|
protected readonly merchant: import("@angular/core").Signal<string>;
|
|
953
953
|
protected readonly location: import("@angular/core").Signal<string>;
|
|
954
954
|
protected readonly connectedOn: import("@angular/core").Signal<string>;
|
|
@@ -1158,7 +1158,7 @@ export declare class SquarePaymentMethodComponent extends PaymentMethodPlugin {
|
|
|
1158
1158
|
readonly estimateFees: import("@angular/core").InputSignal<((ctx: SquareFeeContext) => HostResult<SquareFees>) | null>;
|
|
1159
1159
|
readonly applicationId: import("@angular/core").InputSignal<string | null>;
|
|
1160
1160
|
readonly locationId: import("@angular/core").InputSignal<string | null>;
|
|
1161
|
-
readonly environment: import("@angular/core").InputSignal<"
|
|
1161
|
+
readonly environment: import("@angular/core").InputSignal<"production" | "sandbox" | null>;
|
|
1162
1162
|
/** The buyer's billing contact: with it the card form runs buyer verification (SCA / 3-D Secure) before the token reaches your backend. */
|
|
1163
1163
|
readonly billingContact: import("@angular/core").InputSignal<SquareBillingContact | null>;
|
|
1164
1164
|
/** The account holder name offered for the bank account. */
|
|
@@ -1622,7 +1622,7 @@ export declare class StripeConnectComponent {
|
|
|
1622
1622
|
readonly navigateTab: import("@angular/core").InputSignal<((url: string) => void) | null>;
|
|
1623
1623
|
protected readonly visible: import("@angular/core").Signal<boolean>;
|
|
1624
1624
|
/** Which screen the card shows. */
|
|
1625
|
-
protected readonly state: import("@angular/core").Signal<"
|
|
1625
|
+
protected readonly state: import("@angular/core").Signal<"none" | "complete" | "verifying" | "incomplete">;
|
|
1626
1626
|
/** What the persistent status region says: the current state, plus "Loading." while a request runs. Empty while nothing is shown. */
|
|
1627
1627
|
protected readonly liveText: import("@angular/core").Signal<string>;
|
|
1628
1628
|
/** 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). */
|
package/types/forgeroute-ui.d.ts
CHANGED
|
@@ -1524,6 +1524,10 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
1524
1524
|
readonly 'setupWizard.saveAndContinue': "Save & Continue";
|
|
1525
1525
|
readonly 'setupWizard.saveFailed': "Failed to save. Please try again.";
|
|
1526
1526
|
readonly 'setupWizard.skip': "Skip for now";
|
|
1527
|
+
readonly 'setupWizard.stepPicker': "Go to step";
|
|
1528
|
+
readonly 'setupWizard.stepPickerGo': "Go";
|
|
1529
|
+
readonly 'setupWizard.stepPickerHint': "Choose a step in the list first.";
|
|
1530
|
+
readonly 'setupWizard.stepPickerPlaceholder': "Choose a step";
|
|
1527
1531
|
readonly 'setupWizard.steps': "Setup steps";
|
|
1528
1532
|
readonly 'setupWizard.summaryPending': "Pending";
|
|
1529
1533
|
readonly 'setupWizard.summarySkipped': "Skipped";
|
|
@@ -18008,7 +18012,8 @@ export interface SetupImportStep {
|
|
|
18008
18012
|
}
|
|
18009
18013
|
/**
|
|
18010
18014
|
* 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
|
|
18015
|
+
* 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:
|
|
18016
|
+
* `<ng-template uiSetupDone>`).
|
|
18012
18017
|
*/
|
|
18013
18018
|
export interface SetupStep {
|
|
18014
18019
|
/** Unique within the list. */
|
|
@@ -18022,6 +18027,26 @@ export interface SetupStep {
|
|
|
18022
18027
|
kind: 'custom' | 'import' | 'integrations';
|
|
18023
18028
|
/** Shows "Skip for now" (default true). The first step of a wizard usually sets this to false. */
|
|
18024
18029
|
skippable?: boolean;
|
|
18030
|
+
/** Text of this step's Skip button (e.g. "Does Not Apply"). Absent: the wizard's `texts.skip`. */
|
|
18031
|
+
skipLabel?: string;
|
|
18032
|
+
/**
|
|
18033
|
+
* `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
|
|
18034
|
+
* it out is a valid answer. Like every skip it runs no hook and ignores `canContinue`. Absent / false: the step is recorded as skipped.
|
|
18035
|
+
*/
|
|
18036
|
+
skipCompletes?: boolean;
|
|
18037
|
+
/**
|
|
18038
|
+
* `true`: the side nav marks the step "(optional)" (announced ", optional") until it is complete, so the user sees ahead which steps may be
|
|
18039
|
+
* left out. Display only: it does not add or remove the Skip button (`skippable`). Absent / false: no marker.
|
|
18040
|
+
*/
|
|
18041
|
+
optional?: boolean;
|
|
18042
|
+
/**
|
|
18043
|
+
* 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
|
|
18044
|
+
* 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
|
|
18045
|
+
* 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
|
|
18046
|
+
* 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
|
|
18047
|
+
* with Continue / Skip only. The closing page has its own switch: `[uiSetupDoneReachable]` on `<ng-template uiSetupDone>`.
|
|
18048
|
+
*/
|
|
18049
|
+
reachable?: () => boolean;
|
|
18025
18050
|
/** `custom`: runs on "Save & Continue". Resolve to continue; throw / error to stay on the step (the message is shown in an alert). */
|
|
18026
18051
|
save?: () => Observable<unknown> | Promise<unknown> | void;
|
|
18027
18052
|
/** `custom` and `integrations`: false disables "Save & Continue" (read on every render, so it can follow signals). */
|
|
@@ -18075,6 +18100,36 @@ export interface SetupWizardApi {
|
|
|
18075
18100
|
/** 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
18101
|
markCompleted(...keys: string[]): void;
|
|
18077
18102
|
}
|
|
18103
|
+
/** What the wizard's `stepSkipped` output emits when the user leaves a step with its Skip button. */
|
|
18104
|
+
export interface SetupStepSkip {
|
|
18105
|
+
/** The step that was skipped. */
|
|
18106
|
+
key: string;
|
|
18107
|
+
/** True when the skip marked the step complete (`skipCompletes`), false when it was recorded as skipped. */
|
|
18108
|
+
completed: boolean;
|
|
18109
|
+
}
|
|
18110
|
+
/**
|
|
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
|
|
18112
|
+
* 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
|
+
* without doing anything.
|
|
18114
|
+
*/
|
|
18115
|
+
export interface SetupWizardDoneApi extends SetupWizardApi {
|
|
18116
|
+
/** Emits the wizard's `finished` output, like the built-in Finish button. */
|
|
18117
|
+
finish(): void;
|
|
18118
|
+
}
|
|
18119
|
+
/** How one of the app's steps ended: saved / imported (`done`), left with Skip (`skipped`) or neither (`pending`). */
|
|
18120
|
+
export type SetupSummaryState = 'done' | 'skipped' | 'pending';
|
|
18121
|
+
/** One of the app's steps as the closing page's summary lists it. */
|
|
18122
|
+
export interface SetupSummaryItem {
|
|
18123
|
+
key: string;
|
|
18124
|
+
label: string;
|
|
18125
|
+
state: SetupSummaryState;
|
|
18126
|
+
}
|
|
18127
|
+
/** The context of `<ng-template uiSetupDone let-wizard let-summary="summary">`. */
|
|
18128
|
+
export interface SetupDoneContext {
|
|
18129
|
+
$implicit: SetupWizardDoneApi;
|
|
18130
|
+
/** The app's steps in walking order (the closing page itself is not in it), each with how it ended. */
|
|
18131
|
+
summary: SetupSummaryItem[];
|
|
18132
|
+
}
|
|
18078
18133
|
/**
|
|
18079
18134
|
* The integrations every app can offer in a setup step. Payment processing (`stripe`, `square`) belongs in almost every app's wizard:
|
|
18080
18135
|
* `setupIntegrations('stripe', 'square')` is the ready-made "connect payments" step (an app that has one processor passes just that one; the
|
|
@@ -18144,6 +18199,39 @@ export declare class SetupWizardStepHeaderDirective {
|
|
|
18144
18199
|
};
|
|
18145
18200
|
}, {}, never, never, true, never>;
|
|
18146
18201
|
}
|
|
18202
|
+
/**
|
|
18203
|
+
* 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:
|
|
18204
|
+
*
|
|
18205
|
+
* <ng-template uiSetupDone let-wizard let-summary="summary"> …links, a checklist, a tour… </ng-template>
|
|
18206
|
+
*
|
|
18207
|
+
* 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
|
+
* `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
|
|
18210
|
+
* 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
|
+
* 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
|
+
*/
|
|
18213
|
+
export declare class SetupWizardDoneDirective {
|
|
18214
|
+
/** `true`: the built-in Finish button is not shown (the content calls `wizard.finish()` itself). */
|
|
18215
|
+
readonly hideFinish: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
18216
|
+
/** 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
|
+
readonly reachable: import("@angular/core").InputSignal<(() => boolean) | undefined>;
|
|
18218
|
+
readonly template: TemplateRef<SetupDoneContext>;
|
|
18219
|
+
/** Types `let-wizard` and `let-summary="summary"` in the template. */
|
|
18220
|
+
static ngTemplateContextGuard(_dir: SetupWizardDoneDirective, _ctx: unknown): _ctx is SetupDoneContext;
|
|
18221
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SetupWizardDoneDirective, never>;
|
|
18222
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SetupWizardDoneDirective, "ng-template[uiSetupDone]", never, {
|
|
18223
|
+
"hideFinish": {
|
|
18224
|
+
"alias": "uiSetupDoneHideFinish";
|
|
18225
|
+
"required": false;
|
|
18226
|
+
"isSignal": true;
|
|
18227
|
+
};
|
|
18228
|
+
"reachable": {
|
|
18229
|
+
"alias": "uiSetupDoneReachable";
|
|
18230
|
+
"required": false;
|
|
18231
|
+
"isSignal": true;
|
|
18232
|
+
};
|
|
18233
|
+
}, {}, never, never, true, never>;
|
|
18234
|
+
}
|
|
18147
18235
|
/** Splits a description into its first sentence (title) and the rest (text). A single sentence is all title. */
|
|
18148
18236
|
export declare function splitIntro(description: string): {
|
|
18149
18237
|
title: string;
|
|
@@ -18153,7 +18241,8 @@ export declare function splitIntro(description: string): {
|
|
|
18153
18241
|
export declare const SETUP_DONE_KEY = "done";
|
|
18154
18242
|
/**
|
|
18155
18243
|
* `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
|
|
18244
|
+
* 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
|
|
18245
|
+
* 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
18246
|
* does the rest:
|
|
18158
18247
|
*
|
|
18159
18248
|
* - `kind: 'import'` steps open the library import window (CSV, pasted data, competitor sources) and show the result;
|
|
@@ -18168,6 +18257,17 @@ export declare const SETUP_DONE_KEY = "done";
|
|
|
18168
18257
|
* </ui-setup-wizard>
|
|
18169
18258
|
*
|
|
18170
18259
|
* 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.
|
|
18260
|
+
*
|
|
18261
|
+
* 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:
|
|
18262
|
+
*
|
|
18263
|
+
* <ng-template uiSetupDone let-wizard let-summary="summary"> … (click)="wizard.finish()" … </ng-template>
|
|
18264
|
+
*
|
|
18265
|
+
* The heading, card, Back, Finish and `finished` stay the wizard's; `[uiSetupDoneHideFinish]="true"` removes the built-in Finish button and
|
|
18266
|
+
* `finish()` (on `let-wizard` and on the component) emits `finished`. See docs/setup-wizard-done-template.md.
|
|
18267
|
+
*
|
|
18268
|
+
* Per step, all optional: `optional` (side-nav "(optional)" marker), `skipLabel` (text of Skip), `skipCompletes` (Skip marks the step complete),
|
|
18269
|
+
* `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
|
+
* `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).
|
|
18171
18271
|
*/
|
|
18172
18272
|
export declare class SetupWizardComponent {
|
|
18173
18273
|
protected readonly labels: UiLabelsService;
|
|
@@ -18196,14 +18296,29 @@ export declare class SetupWizardComponent {
|
|
|
18196
18296
|
readonly texts: import("@angular/core").InputSignal<Partial<SetupWizardTexts>>;
|
|
18197
18297
|
/** 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
18298
|
readonly initialStep: import("@angular/core").InputSignal<string>;
|
|
18299
|
+
/**
|
|
18300
|
+
* `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
|
|
18301
|
+
* "(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
|
|
18302
|
+
* opened. Default false: the phone header is unchanged.
|
|
18303
|
+
*/
|
|
18304
|
+
readonly stepPicker: import("@angular/core").InputSignal<boolean>;
|
|
18305
|
+
/** `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
|
+
readonly dimUnreachable: import("@angular/core").InputSignal<boolean>;
|
|
18199
18307
|
/** The last step's button ("Go to Dashboard"). */
|
|
18200
18308
|
readonly finished: import("@angular/core").OutputEmitterRef<void>;
|
|
18201
18309
|
/** "Exit Setup". */
|
|
18202
18310
|
readonly exited: import("@angular/core").OutputEmitterRef<void>;
|
|
18203
18311
|
/** The step that was just shown (its key). */
|
|
18204
18312
|
readonly stepChange: import("@angular/core").OutputEmitterRef<string>;
|
|
18313
|
+
/**
|
|
18314
|
+
* The user left a step with its Skip button: the step's key and whether the skip marked it complete (`skipCompletes`). Emitted before the
|
|
18315
|
+
* `stepChange` of the step that opens next. Never emitted by Save & Continue, Continue, Back or a side-nav / picker jump.
|
|
18316
|
+
*/
|
|
18317
|
+
readonly stepSkipped: import("@angular/core").OutputEmitterRef<SetupStepSkip>;
|
|
18205
18318
|
protected readonly stepTemplates: import("@angular/core").Signal<readonly SetupWizardStepDirective[]>;
|
|
18206
18319
|
protected readonly headerTemplates: import("@angular/core").Signal<readonly SetupWizardStepHeaderDirective[]>;
|
|
18320
|
+
/** The app's own content for the closing page (`<ng-template uiSetupDone>`); without one the built-in summary is shown. */
|
|
18321
|
+
protected readonly doneTemplate: import("@angular/core").Signal<SetupWizardDoneDirective | undefined>;
|
|
18207
18322
|
private readonly injector;
|
|
18208
18323
|
private readonly host;
|
|
18209
18324
|
private readonly stepTitle;
|
|
@@ -18224,6 +18339,8 @@ export declare class SetupWizardComponent {
|
|
|
18224
18339
|
private connectTabOpened;
|
|
18225
18340
|
/** What a custom step's template receives (`let-wizard`). */
|
|
18226
18341
|
protected readonly api: SetupWizardApi;
|
|
18342
|
+
/** 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
|
+
private readonly doneApi;
|
|
18227
18344
|
protected readonly error: import("@angular/core").WritableSignal<string>;
|
|
18228
18345
|
protected readonly areaCodeOpen: import("@angular/core").WritableSignal<string>;
|
|
18229
18346
|
protected readonly areaCode: import("@angular/core").WritableSignal<string>;
|
|
@@ -18240,8 +18357,18 @@ export declare class SetupWizardComponent {
|
|
|
18240
18357
|
} | null>;
|
|
18241
18358
|
protected readonly isDone: import("@angular/core").Signal<boolean>;
|
|
18242
18359
|
protected readonly completedCount: import("@angular/core").Signal<number>;
|
|
18360
|
+
/** The later steps the app lets the side nav open now (`reachable`, and `uiSetupDoneReachable` for the closing page). Empty unless the app uses them. */
|
|
18361
|
+
private readonly aheadKeys;
|
|
18243
18362
|
protected readonly stepperSteps: import("@angular/core").Signal<StepperStep[]>;
|
|
18363
|
+
/** `stepPicker`: every step, numbered as in the side nav; the ones the side nav would not open are listed but cannot be chosen. */
|
|
18364
|
+
protected readonly pickerOptions: import("@angular/core").Signal<SelectOption<string>[]>;
|
|
18365
|
+
protected readonly pickerShown: import("@angular/core").Signal<boolean>;
|
|
18366
|
+
protected readonly pickerKey: import("@angular/core").WritableSignal<string>;
|
|
18367
|
+
/** 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). */
|
|
18368
|
+
protected readonly pickerValue: import("@angular/core").Signal<string>;
|
|
18244
18369
|
protected readonly summarySections: import("@angular/core").Signal<PanelInfoSection[]>;
|
|
18370
|
+
/** 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>;
|
|
18245
18372
|
constructor();
|
|
18246
18373
|
protected headerTemplateFor(key: string): import("@angular/core").TemplateRef<{
|
|
18247
18374
|
$implicit: SetupWizardApi;
|
|
@@ -18249,13 +18376,24 @@ export declare class SetupWizardComponent {
|
|
|
18249
18376
|
protected templateFor(key: string): import("@angular/core").TemplateRef<{
|
|
18250
18377
|
$implicit: SetupWizardApi;
|
|
18251
18378
|
}> | 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
|
|
18379
|
+
/** 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
18380
|
protected goToPast(key: string): void;
|
|
18381
|
+
/** 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. */
|
|
18382
|
+
private declaredReachable;
|
|
18383
|
+
/** `dimUnreachable`: a step after the one on screen that the side nav cannot open. */
|
|
18384
|
+
private dimmed;
|
|
18385
|
+
/** `stepPicker`: the Go button opens the chosen step, by the same rule as a press in the side nav. */
|
|
18386
|
+
protected openPicked(): void;
|
|
18254
18387
|
protected goTo(key: string): void;
|
|
18255
18388
|
private enter;
|
|
18256
18389
|
private advanceFrom;
|
|
18257
18390
|
protected back(): void;
|
|
18258
18391
|
protected skip(): void;
|
|
18392
|
+
/**
|
|
18393
|
+
* Emits `finished`, like the built-in Finish button: for an app whose own closing-page content (`<ng-template uiSetupDone>`) carries the finishing action.
|
|
18394
|
+
* As with the built-in button, every call (every press) emits once: an app whose handler must not run twice guards it itself.
|
|
18395
|
+
*/
|
|
18396
|
+
finish(): void;
|
|
18259
18397
|
/** Marks the given steps done (ignoring keys that are not steps of this wizard). */
|
|
18260
18398
|
/**
|
|
18261
18399
|
* 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 +18454,22 @@ export declare class SetupWizardComponent {
|
|
|
18316
18454
|
"required": false;
|
|
18317
18455
|
"isSignal": true;
|
|
18318
18456
|
};
|
|
18457
|
+
"stepPicker": {
|
|
18458
|
+
"alias": "stepPicker";
|
|
18459
|
+
"required": false;
|
|
18460
|
+
"isSignal": true;
|
|
18461
|
+
};
|
|
18462
|
+
"dimUnreachable": {
|
|
18463
|
+
"alias": "dimUnreachable";
|
|
18464
|
+
"required": false;
|
|
18465
|
+
"isSignal": true;
|
|
18466
|
+
};
|
|
18319
18467
|
}, {
|
|
18320
18468
|
"finished": "finished";
|
|
18321
18469
|
"exited": "exited";
|
|
18322
18470
|
"stepChange": "stepChange";
|
|
18323
|
-
|
|
18471
|
+
"stepSkipped": "stepSkipped";
|
|
18472
|
+
}, ["stepTemplates", "headerTemplates", "doneTemplate"], ["[setup-wizard-logo]"], true, never>;
|
|
18324
18473
|
}
|
|
18325
18474
|
/** One automated trigger a template can be assigned to (the host decides which exist). */
|
|
18326
18475
|
export interface EmailTemplateAssignmentOption {
|