@praxisui/stepper 3.0.0-beta.1 → 3.0.0-beta.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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { OnInit, AfterViewInit, TemplateRef, EventEmitter, Provider } from '@angular/core';
3
+ import { FormConfig, WidgetDefinition, WidgetEventEnvelope, FormReadyEvent, FormValueChangeEvent, ComponentDocMeta, AiCapabilityCategory, AiValueKind, AiCapability, AiCapabilityCatalog } from '@praxisui/core';
3
4
  import { FormGroup } from '@angular/forms';
4
- import { FormConfig, WidgetDefinition, FormReadyEvent, FormValueChangeEvent, ComponentDocMeta, AiCapabilityCategory, AiValueKind, AiCapability, AiCapabilityCatalog } from '@praxisui/core';
5
5
  import { ThemePalette } from '@angular/material/core';
6
6
  import { BaseAiAdapter, Capability as Capability$1, PatchResult } from '@praxisui/ai';
7
7
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
@@ -133,13 +133,7 @@ declare class PraxisStepper implements OnInit, AfterViewInit {
133
133
  errorMessage?: string;
134
134
  }>;
135
135
  selectedIndexChange: EventEmitter<number>;
136
- widgetEvent: EventEmitter<{
137
- stepId?: string;
138
- stepIndex?: number;
139
- sourceId: string;
140
- output?: string;
141
- payload?: any;
142
- }>;
136
+ widgetEvent: EventEmitter<WidgetEventEnvelope>;
143
137
  stepFormReady: EventEmitter<{
144
138
  stepIndex: number;
145
139
  stepId?: string;
@@ -203,11 +197,7 @@ declare class PraxisStepper implements OnInit, AfterViewInit {
203
197
  formGroupFor(i: number): FormGroup | undefined;
204
198
  computedCompleted(i: number, step: StepConfig): boolean;
205
199
  computedHasError(i: number, step: StepConfig): boolean;
206
- onChildWidgetEvent(stepIndex: number, wd: WidgetDefinition, e: {
207
- sourceId: string;
208
- output?: string;
209
- payload?: any;
210
- }): void;
200
+ onChildWidgetEvent(stepIndex: number, wd: WidgetDefinition, e: WidgetEventEnvelope): void;
211
201
  isStepEmpty(step: StepConfig): boolean;
212
202
  openEditor(): void;
213
203
  applyConfigFromAdapter(next: StepperMetadata): void;
@@ -243,6 +233,7 @@ declare function providePraxisStepperMetadata(): Provider;
243
233
  type WizardWidgetId = 'praxis-wizard-benefits' | 'praxis-wizard-content' | 'praxis-wizard-inline-notice' | 'praxis-wizard-divider';
244
234
  type EditorialZone = 'before' | 'after';
245
235
  declare class PraxisStepperConfigEditor implements SettingsValueProvider {
236
+ private readonly i18n;
246
237
  config: StepperMetadata;
247
238
  activeStepRef: StepConfig | null;
248
239
  isDirty$: BehaviorSubject<boolean>;
@@ -253,6 +244,10 @@ declare class PraxisStepperConfigEditor implements SettingsValueProvider {
253
244
  private readonly iconPicker;
254
245
  private readonly cdr;
255
246
  constructor(data?: any);
247
+ tx(key: string, fallback: string): string;
248
+ stepIndexLabel(index: number): string;
249
+ stepRemoveAria(step: StepConfig, index: number): string;
250
+ editingStepTitle(step: StepConfig): string;
256
251
  markDirty(): void;
257
252
  validate(): void;
258
253
  get navigationCfg(): NonNullable<StepperMetadata['navigation']>;
@@ -448,6 +443,10 @@ declare class PraxisWizardFormComponent {
448
443
  wizardId: string;
449
444
  values: Record<string, any>;
450
445
  }>;
446
+ completed: EventEmitter<{
447
+ wizardId: string;
448
+ values: Record<string, any>;
449
+ }>;
451
450
  customAction: EventEmitter<{
452
451
  wizardId: string;
453
452
  stepId?: string;
@@ -490,7 +489,7 @@ declare class PraxisWizardFormComponent {
490
489
  private focusPrimaryAction;
491
490
  private focusSecondaryAction;
492
491
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisWizardFormComponent, never>;
493
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisWizardFormComponent, "praxis-wizard-form", never, { "wizardId": { "alias": "wizardId"; "required": true; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "submit": "submit"; "customAction": "customAction"; }, never, never, true, never>;
492
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisWizardFormComponent, "praxis-wizard-form", never, { "wizardId": { "alias": "wizardId"; "required": true; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "submit": "submit"; "completed": "completed"; "customAction": "customAction"; }, never, never, true, never>;
494
493
  }
495
494
 
496
495
  /**
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@praxisui/stepper",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.0-beta.10",
4
4
  "description": "Stepper workflows for Praxis UI with integrated forms, lists, uploads and page builder support.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.0.0",
7
7
  "@angular/core": "^20.0.0",
8
8
  "@angular/material": "^20.0.0",
9
9
  "@angular/cdk": "^20.0.0",
10
- "@praxisui/core": "^3.0.0-beta.1",
11
- "@praxisui/dynamic-form": "^3.0.0-beta.1",
12
- "@praxisui/settings-panel": "^3.0.0-beta.1",
13
- "@praxisui/list": "^3.0.0-beta.1",
14
- "@praxisui/files-upload": "^3.0.0-beta.1",
15
- "@praxisui/page-builder": "^3.0.0-beta.1"
10
+ "@praxisui/core": "^3.0.0-beta.10",
11
+ "@praxisui/dynamic-form": "^3.0.0-beta.10",
12
+ "@praxisui/settings-panel": "^3.0.0-beta.10",
13
+ "@praxisui/list": "^3.0.0-beta.10",
14
+ "@praxisui/files-upload": "^3.0.0-beta.10",
15
+ "@praxisui/page-builder": "^3.0.0-beta.10"
16
16
  },
17
17
  "dependencies": {
18
18
  "tslib": "^2.3.0"