@praxisui/stepper 1.0.0-beta.48 → 1.0.0-beta.52

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,5 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { OnInit, TemplateRef, EventEmitter, Provider } from '@angular/core';
2
+ import { OnInit, AfterViewInit, TemplateRef, EventEmitter, Provider } from '@angular/core';
3
3
  import { FormGroup } from '@angular/forms';
4
4
  import { FormConfig, WidgetDefinition, FormReadyEvent, FormValueChangeEvent, ComponentDocMeta, AiCapabilityCategory, AiValueKind, AiCapability, AiCapabilityCatalog } from '@praxisui/core';
5
5
  import { ThemePalette } from '@angular/material/core';
@@ -88,12 +88,16 @@ interface StepperMetadata {
88
88
  align?: 'start' | 'center' | 'end' | 'space-between';
89
89
  };
90
90
  }
91
- declare class PraxisStepper implements OnInit {
91
+ declare class PraxisStepper implements OnInit, AfterViewInit {
92
92
  stepLabelTpl?: TemplateRef<any>;
93
93
  _config: _angular_core.WritableSignal<StepperMetadata | null>;
94
94
  private _selectedIndex;
95
95
  private _formGroups;
96
96
  private _formValidity;
97
+ private readonly hostElement;
98
+ private readonly renderer;
99
+ private appliedHeaderClasses;
100
+ private appliedTokenNames;
97
101
  primaryCta: {
98
102
  label: string;
99
103
  icon: string;
@@ -209,6 +213,8 @@ declare class PraxisStepper implements OnInit {
209
213
  applyConfigFromAdapter(next: StepperMetadata): void;
210
214
  addFirstStep(): void;
211
215
  onNext(i: number): Promise<void>;
216
+ validateStep(i?: number): Promise<boolean>;
217
+ nextWithValidation(i?: number): Promise<boolean>;
212
218
  onPrev(): void;
213
219
  onAnimationDone(): void;
214
220
  private applyServerErrors;
@@ -217,6 +223,12 @@ declare class PraxisStepper implements OnInit {
217
223
  private componentKeyId;
218
224
  private warnMissingId;
219
225
  ngOnInit(): void;
226
+ ngAfterViewInit(): void;
227
+ private scheduleDomSync;
228
+ private syncAppearanceTokens;
229
+ private syncHeaderClasses;
230
+ private parseClassList;
231
+ private resolveCssTokenName;
220
232
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisStepper, never>;
221
233
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisStepper, "praxis-stepper", never, { "stepperId": { "alias": "stepperId"; "required": true; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "config": { "alias": "config"; "required": false; }; "selectedIndexInput": { "alias": "selectedIndexInput"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "disableRippleInput": { "alias": "disableRippleInput"; "required": false; }; "editModeEnabled": { "alias": "editModeEnabled"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "color": { "alias": "color"; "required": false; }; "serverValidate": { "alias": "serverValidate"; "required": false; }; "stepperContext": { "alias": "stepperContext"; "required": false; }; }, { "selectedIndexChange": "selectedIndexChange"; "widgetEvent": "widgetEvent"; "stepFormReady": "stepFormReady"; "stepFormValueChange": "stepFormValueChange"; "animationDone": "animationDone"; "selectionChange": "selectionChange"; }, ["stepLabelTpl"], ["*"], true, never>;
222
234
  }
@@ -429,6 +441,12 @@ declare class PraxisWizardFormComponent {
429
441
  wizardId: string;
430
442
  values: Record<string, any>;
431
443
  }>;
444
+ customAction: EventEmitter<{
445
+ wizardId: string;
446
+ stepId?: string;
447
+ stepIndex: number;
448
+ values: Record<string, any>;
449
+ }>;
432
450
  private readonly _config;
433
451
  private readonly persistedState;
434
452
  readonly selectedIndex: _angular_core.WritableSignal<number>;
@@ -446,7 +464,7 @@ declare class PraxisWizardFormComponent {
446
464
  secondaryAction: _angular_core.Signal<WizardSecondaryAction>;
447
465
  showSecondaryAction(): boolean;
448
466
  isPrimaryDisabled(): boolean;
449
- onPrimaryAction(): void;
467
+ onPrimaryAction(): Promise<void>;
450
468
  onSecondaryAction(): void;
451
469
  onSelectedIndexChange(idx: number): void;
452
470
  onStepFormValueChange(ev: {
@@ -465,7 +483,7 @@ declare class PraxisWizardFormComponent {
465
483
  private focusPrimaryAction;
466
484
  private focusSecondaryAction;
467
485
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisWizardFormComponent, never>;
468
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisWizardFormComponent, "praxis-wizard-form", never, { "wizardId": { "alias": "wizardId"; "required": true; }; "editModeEnabled": { "alias": "editModeEnabled"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "submit": "submit"; }, never, never, true, never>;
486
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisWizardFormComponent, "praxis-wizard-form", never, { "wizardId": { "alias": "wizardId"; "required": true; }; "editModeEnabled": { "alias": "editModeEnabled"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "submit": "submit"; "customAction": "customAction"; }, never, never, true, never>;
469
487
  }
470
488
 
471
489
  /**
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@praxisui/stepper",
3
- "version": "1.0.0-beta.48",
3
+ "version": "1.0.0-beta.52",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.0.0",
6
6
  "@angular/core": "^20.0.0",
7
7
  "@angular/material": "^20.0.0",
8
8
  "@angular/cdk": "^20.0.0",
9
- "@praxisui/core": "^1.0.0-beta.48",
10
- "@praxisui/dynamic-form": "^1.0.0-beta.48",
11
- "@praxisui/settings-panel": "^1.0.0-beta.48",
12
- "@praxisui/list": "^1.0.0-beta.48",
13
- "@praxisui/files-upload": "^1.0.0-beta.48",
14
- "@praxisui/page-builder": "^1.0.0-beta.48"
9
+ "@praxisui/core": "^1.0.0-beta.52",
10
+ "@praxisui/dynamic-form": "^1.0.0-beta.52",
11
+ "@praxisui/settings-panel": "^1.0.0-beta.52",
12
+ "@praxisui/list": "^1.0.0-beta.52",
13
+ "@praxisui/files-upload": "^1.0.0-beta.52",
14
+ "@praxisui/page-builder": "^1.0.0-beta.52"
15
15
  },
16
16
  "dependencies": {
17
17
  "tslib": "^2.3.0"