@forgeroute/ui 0.4.36 → 0.4.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgeroute/ui",
3
- "version": "0.4.36",
3
+ "version": "0.4.37",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.0.0",
6
6
  "@angular/core": ">=22.0.0",
@@ -11279,6 +11279,12 @@ export interface SetupWizardTexts {
11279
11279
  selectSource: string;
11280
11280
  connected: string;
11281
11281
  importMore: string;
11282
+ /** Shown (and described by the disabled Continue) on an import step with `requireImport` until data came in. */
11283
+ importRequired: string;
11284
+ /** An import where some rows were refused: the warning's title and text (rows that failed must be fixed and imported again before Continue) and the button that returns to the sources. */
11285
+ importErrorsTitle: (errors: number) => string;
11286
+ importErrorsText: (imported: number, errors: number) => string;
11287
+ importAgain: string;
11282
11288
  whatGetsImported: string;
11283
11289
  doneTitle: string;
11284
11290
  doneDescription: string;
@@ -11327,14 +11333,23 @@ export interface SetupStep {
11327
11333
  canContinue?: () => boolean;
11328
11334
  /** `custom`: text of the continue button (default "Save & Continue"). */
11329
11335
  saveLabel?: string;
11336
+ /**
11337
+ * Import / integrations steps with app content (`<ng-template uiSetupStep>`): show two tabs below the intro, one card at a time. The first tab holds the app's
11338
+ * content in a card titled `extraTitle`, the second the step's own card. Tab labels: `extraTab` / `mainTab` (default `extraTitle` / `cardTitle`).
11339
+ */
11340
+ splitLayout?: boolean;
11341
+ extraTitle?: string;
11342
+ extraTab?: string;
11343
+ mainTab?: string;
11344
+ /** Status line under the app content of a `splitLayout` step (e.g. "Not connected yet"); read on every render, so it can follow signals. */
11345
+ extraFooter?: () => string;
11346
+ /** Import steps: Continue stays disabled until the data came in (CSV import done with no refused rows, or the app called `markCompleted(key)` after a live sync). Skip stays available. */
11347
+ requireImport?: boolean;
11330
11348
  /**
11331
11349
  * `custom`: the step draws its own continue button (for example in the footer of a `ui-detail-card`), so the wizard does not show its own. The step's
11332
11350
  * template receives the wizard as `let-wizard` and calls `wizard.saveAndContinue()` (runs `save`, then moves on) and reads `wizard.busy()`.
11333
11351
  * Back / Skip stay the wizard's.
11334
11352
  */
11335
- /** Import / integrations steps with app content: show that content in its own card (titled `extraTitle`) beside the step card on a wide screen, stacked on a phone. */
11336
- splitLayout?: boolean;
11337
- extraTitle?: string;
11338
11353
  ownActions?: boolean;
11339
11354
  import?: SetupImportStep;
11340
11355
  integrations?: SetupIntegration[];
@@ -11442,6 +11457,14 @@ export declare class SetupWizardComponent {
11442
11457
  /** Phone layout: the step's Back / Skip / Continue buttons fill the width and stack (primary on top). */
11443
11458
  protected readonly narrow: import("@angular/core").WritableSignal<boolean>;
11444
11459
  /** A step with `splitLayout`: the app's own content gets its own card, side by side with the step card on a wide screen. */
11460
+ /** An import step with `requireImport` keeps Continue off until something came in (a CSV import or `markCompleted`, e.g. a live sync). */
11461
+ protected readonly importBlocked: import("@angular/core").Signal<boolean>;
11462
+ /** 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). */
11463
+ protected readonly splitTab: import("@angular/core").WritableSignal<"main" | "extra">;
11464
+ protected readonly splitTabs: import("@angular/core").Signal<{
11465
+ key: string;
11466
+ label: string;
11467
+ }[]>;
11445
11468
  protected readonly split: import("@angular/core").Signal<boolean>;
11446
11469
  /** The steps in walking order. A `done` summary step is appended automatically. */
11447
11470
  readonly steps: import("@angular/core").InputSignal<SetupStep[]>;
@@ -11463,6 +11486,7 @@ export declare class SetupWizardComponent {
11463
11486
  private readonly completed;
11464
11487
  private readonly skipped;
11465
11488
  private readonly imports;
11489
+ private readonly importErrors;
11466
11490
  private readonly statuses;
11467
11491
  readonly busy: import("@angular/core").WritableSignal<boolean>;
11468
11492
  /** What a custom step's template receives (`let-wizard`). */
@@ -11510,6 +11534,7 @@ export declare class SetupWizardComponent {
11510
11534
  protected openImport(key: string): void;
11511
11535
  protected onImported(key: string): void;
11512
11536
  protected importResult(key: string): number | null;
11537
+ protected importErrorCount(key: string): number;
11513
11538
  protected clearImport(key: string): void;
11514
11539
  protected importTitle(key: string): string;
11515
11540
  protected continueFromImport(): void;