@sixbell-telco/sdk 0.9.0 → 0.10.1

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +6 -3
  3. package/components/wizard/public-api.d.ts +2 -3
  4. package/components/wizard/services/wizard.service.d.ts +221 -0
  5. package/components/wizard/wizard-actions/wizard-actions.component.d.ts +8 -0
  6. package/components/wizard/wizard-content/wizard-content.component.d.ts +67 -13
  7. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +73 -6
  8. package/components/wizard/wizard-step/wizard-step.component.d.ts +76 -9
  9. package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +91 -9
  10. package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +144 -15
  11. package/esm2022/components/dual-list/src/dual-list.component.mjs +3 -3
  12. package/esm2022/components/forms/select/src/select.component.mjs +1 -8
  13. package/esm2022/components/forms/textarea/src/textarea.component.mjs +3 -3
  14. package/esm2022/components/wizard/public-api.mjs +3 -4
  15. package/esm2022/components/wizard/services/wizard.service.mjs +312 -0
  16. package/esm2022/components/wizard/wizard-actions/wizard-actions.component.mjs +22 -0
  17. package/esm2022/components/wizard/wizard-content/wizard-content.component.mjs +77 -23
  18. package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +81 -13
  19. package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +107 -25
  20. package/esm2022/components/wizard/wizard-sub-step/wizard-sub-step.component.mjs +113 -26
  21. package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +150 -66
  22. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +2 -2
  23. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  24. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +0 -7
  25. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  26. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +2 -2
  27. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  28. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +851 -150
  29. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  30. package/package.json +13 -13
package/CHANGELOG.md CHANGED
@@ -127,6 +127,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
127
127
  - Added new avatar variants and updated user properties (3c97379, 9322462)
128
128
  - **Button Size Variants**: Add detailed size variants with enhanced documentation and customization options
129
129
  - **Dynamic Icon Sizing**: Implement automatic icon sizing based on button dimensions
130
+ - **Wizard Components**
131
+ - Added `WizardActionsComponent` with alignment options for action buttons
132
+ - Added card style option to `wizard-wrapper` for layout flexibility
133
+ - Added icon binding support for `wizard-step` customization
134
+ - Added reactive validation integration in `wizard-content`
135
+ - Added translation support for step index display in navigation
136
+ - **Wizard Service**
137
+ - Implemented `gotoStep` method for direct step navigation
138
+ - Added `insertStep` method for inserting steps at specific indices
139
+ - Added computed properties for first/last step checks
140
+ - Introduced transition state management for step updates
130
141
 
131
142
  ### Fixed
132
143
 
@@ -153,6 +164,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
153
164
  - **Button Styling**:
154
165
  - Fix alignment and styling of play button component
155
166
  - Improve icon alignment in button component
167
+ - **Wizard Wrapper**: Fix background color for horizontal and vertical variants (`30a5f3d`)
156
168
 
157
169
  ### Removed
158
170
 
@@ -177,6 +189,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
177
189
  - Removed console log from wizard-marker component
178
190
  - Eliminated commented-out code from input component
179
191
  - Removed redundant font class from button component
192
+ - Removed unused exports from public API
193
+ - Removed redundant last-step completion logic
194
+ - Removed commented-out code in `select.component`
195
+ - Removed unused icon variable and delay classes
180
196
 
181
197
  ### Changed
182
198
 
@@ -468,3 +484,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
468
484
  - Enhance with comprehensive size variants and improved documentation
469
485
  - Update containerClass to use computed property for better performance
470
486
  - **Tailwind Config**: Update error and accent color values for improved consistency
487
+ - Enhanced JSDoc documentation for multiple components (`wizard-content`, `wizard-marker`, `wizard-step`, `wizard-sub-step`, `wizard-wrapper`, `wizard.service`)
488
+ - Updated examples for improved component clarity
489
+ - Improved wizard layout structure with variant-based rendering (horizontal/vertical)
490
+ - Optimized class logic for step indicators and status markers
491
+ - Enhanced button layout/spacing in `wizard-wrapper`
492
+ - Updated typography variants and hover colors for better UX
493
+ - Added background color to body and step elements for visibility
494
+ - Refactored step management to use computed properties
495
+ - Streamlined class binding logic across components
496
+ - Improved step status tracking with reactive updates
497
+ - Renamed completion event and variables for clarity (`step` → `stepIndex`)
package/README.md CHANGED
@@ -497,7 +497,8 @@ npm install @ngx-translate/core @ngx-translate/http-loader ngx-translate-multi-h
497
497
  "back": "Back",
498
498
  "previous": "Previous",
499
499
  "end": "End",
500
- "next": "Next"
500
+ "next": "Next",
501
+ "step": "Step {{index}}"
501
502
  }
502
503
  }
503
504
  }
@@ -581,7 +582,8 @@ npm install @ngx-translate/core @ngx-translate/http-loader ngx-translate-multi-h
581
582
  "back": "Atrás",
582
583
  "previous": "Anterior",
583
584
  "end": "Finalizar",
584
- "next": "Siguiente"
585
+ "next": "Siguiente",
586
+ "step": "Paso {{index}}"
585
587
  }
586
588
  }
587
589
  }
@@ -665,7 +667,8 @@ npm install @ngx-translate/core @ngx-translate/http-loader ngx-translate-multi-h
665
667
  "back": "Voltar",
666
668
  "previous": "Anterior",
667
669
  "end": "Fim",
668
- "next": "Próximo"
670
+ "next": "Próximo",
671
+ "step": "Etapa {{index}}"
669
672
  }
670
673
  }
671
674
  }
@@ -1,5 +1,4 @@
1
+ export * from './services/wizard.service';
2
+ export * from './wizard-actions/wizard-actions.component';
1
3
  export * from './wizard-content/wizard-content.component';
2
- export * from './wizard-marker/wizard-marker.component';
3
- export * from './wizard-step/wizard-step.component';
4
- export * from './wizard-sub-step/wizard-sub-step.component';
5
4
  export * from './wizard-wrapper/wizard-wrapper.component';
@@ -0,0 +1,221 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Enum-like object representing possible wizard step statuses
4
+ * @readonly
5
+ * @enum {string}
6
+ */
7
+ export declare const WIZARD_STEP_STATUS: {
8
+ readonly IN_PROGRESS: "in progress";
9
+ readonly PENDING: "pending";
10
+ readonly COMPLETED: "completed";
11
+ };
12
+ /**
13
+ * Configuration object for a wizard step
14
+ * @property {string} name - Unique identifier for the step
15
+ * @property {(typeof WIZARD_STEP_STATUS)[keyof typeof WIZARD_STEP_STATUS]} status - Current status of the step
16
+ * @property {boolean} isValid - Indicates if the step's data is valid
17
+ * @property {string} label - Display text for the step
18
+ * @property {string} [icon] - Optional icon for the step
19
+ */
20
+ export type WizardStepConfig = {
21
+ name: string;
22
+ status: (typeof WIZARD_STEP_STATUS)[keyof typeof WIZARD_STEP_STATUS];
23
+ isValid: boolean;
24
+ label: string;
25
+ icon?: string;
26
+ };
27
+ /**
28
+ * Simplified step definition without status and validation
29
+ * @property {string} name - Unique identifier for the step
30
+ * @property {string} label - Display text for the step
31
+ * @property {string} [icon] - Optional icon for the step
32
+ */
33
+ export type WizardStep = Omit<WizardStepConfig, 'status' | 'isValid'>;
34
+ /**
35
+ * Union type of possible wizard step status values
36
+ */
37
+ export type WizardStepStatus = (typeof WIZARD_STEP_STATUS)[keyof typeof WIZARD_STEP_STATUS];
38
+ /**
39
+ * Service for managing wizard state and navigation
40
+ * @Injectable
41
+ */
42
+ export declare class WizardService {
43
+ /** @private Internal signal for wizard steps */
44
+ private _steps;
45
+ /** @private Internal signal for current step index */
46
+ private _currentStepIndex;
47
+ /** @private Internal signal for first step index */
48
+ private _fistStepIndex;
49
+ /** @private Internal signal for last step index */
50
+ private _lastStepIndex;
51
+ /** @private Internal signal for transition state */
52
+ private _isTransitioning;
53
+ /** Readonly array of wizard steps */
54
+ steps: import("@angular/core").Signal<WizardStepConfig[]>;
55
+ /**
56
+ * Current step index
57
+ * @readonly
58
+ */
59
+ currentStepIndex: import("@angular/core").Signal<number>;
60
+ /**
61
+ * Currently active step
62
+ * @readonly
63
+ */
64
+ currentStep: import("@angular/core").Signal<WizardStepConfig>;
65
+ /**
66
+ * Array of valid steps
67
+ * @readonly
68
+ */
69
+ validSteps: import("@angular/core").Signal<WizardStepConfig[]>;
70
+ /**
71
+ * Indicates if all steps are valid
72
+ * @readonly
73
+ */
74
+ areAllStepsValid: import("@angular/core").Signal<boolean>;
75
+ /**
76
+ * First step index
77
+ * @readonly
78
+ */
79
+ fistStepIndex: import("@angular/core").Signal<number>;
80
+ /**
81
+ * First step in the wizard
82
+ * @readonly
83
+ */
84
+ firstStep: import("@angular/core").Signal<WizardStepConfig>;
85
+ /**
86
+ * Last step index
87
+ * @readonly
88
+ */
89
+ lastStepIndex: import("@angular/core").Signal<number>;
90
+ /**
91
+ * Last step in the wizard
92
+ * @readonly
93
+ */
94
+ lastStep: import("@angular/core").Signal<WizardStepConfig>;
95
+ /**
96
+ * Completed steps
97
+ * @readonly
98
+ */
99
+ completedSteps: import("@angular/core").Signal<WizardStepConfig[]>;
100
+ /**
101
+ * Pending steps
102
+ * @readonly
103
+ */
104
+ pendingSteps: import("@angular/core").Signal<WizardStepConfig[]>;
105
+ /**
106
+ * In-progress steps
107
+ * @readonly
108
+ */
109
+ inProgressSteps: import("@angular/core").Signal<WizardStepConfig[]>;
110
+ /**
111
+ * Indicates if all steps are completed
112
+ * @readonly
113
+ */
114
+ isCompleted: import("@angular/core").Signal<boolean>;
115
+ /**
116
+ * Indicates if current step is the first step
117
+ * @readonly
118
+ */
119
+ isCurrentStepFirst: import("@angular/core").Signal<boolean>;
120
+ /**
121
+ * Indicates if current step is the last step
122
+ * @readonly
123
+ */
124
+ isCurrentStepLast: import("@angular/core").Signal<boolean>;
125
+ /**
126
+ * Indicates if wizard is transitioning between steps
127
+ * @readonly
128
+ */
129
+ isTransitioning: import("@angular/core").Signal<boolean>;
130
+ /**
131
+ * Initializes the wizard with given steps
132
+ * @param {WizardStep[]} steps - Array of step configurations
133
+ */
134
+ init(steps: WizardStep[]): void;
135
+ /**
136
+ * Replaces all steps with new configuration
137
+ * @param {WizardStepConfig[]} steps - New array of step configurations
138
+ */
139
+ setSteps(steps: WizardStepConfig[]): void;
140
+ /**
141
+ * Adds a new step to the end of the wizard
142
+ * @param {WizardStepConfig} step - Step configuration to add
143
+ */
144
+ addStep(step: WizardStepConfig): void;
145
+ /**
146
+ * Inserts a step at specific index
147
+ * @param {number} index - Position to insert the step
148
+ * @param {WizardStepConfig} step - Step configuration to add
149
+ */
150
+ addStepAtIndex(index: number, step: WizardStepConfig): void;
151
+ /**
152
+ * Removes step at specified index
153
+ * @param {number} index - Index of step to remove
154
+ */
155
+ removeStep(index: number): void;
156
+ /**
157
+ * Updates name of step at specified index
158
+ * @param {number} index - Index of step to update
159
+ * @param {string} name - New name for the step
160
+ */
161
+ updateStepName(index: number, name: string): void;
162
+ /**
163
+ * Updates label of step at specified index
164
+ * @param {number} index - Index of step to update
165
+ * @param {string} label - New label for the step
166
+ */
167
+ updateStepLabel(index: number, label: string): void;
168
+ /**
169
+ * Updates status of step at specified index
170
+ * @param {number} index - Index of step to update
171
+ * @param {WizardStepStatus} status - New status for the step
172
+ * @param {number} [stale] - Optional delay in milliseconds before applying changes
173
+ */
174
+ updateStepStatus(index: number, status: WizardStepStatus, stale?: number): void;
175
+ /**
176
+ * Updates validation status of step at specified index
177
+ * @param {number} index - Index of step to update
178
+ * @param {boolean} isValid - New validation status
179
+ */
180
+ updateStepIsValid(index: number, isValid: boolean): void;
181
+ /**
182
+ * Replaces entire step configuration at specified index
183
+ * @param {number} index - Index of step to replace
184
+ * @param {WizardStepConfig} step - New step configuration
185
+ */
186
+ updateStep(index: number, step: WizardStepConfig): void;
187
+ /**
188
+ * Sets current active step index
189
+ * @param {number} index - New current step index
190
+ */
191
+ setCurrentStepIndex(index: number): void;
192
+ /**
193
+ * Sets index for first step in wizard
194
+ * @param {number} index - New first step index
195
+ */
196
+ setFistStepIndex(index: number): void;
197
+ /**
198
+ * Sets index for last step in wizard
199
+ * @param {number} index - New last step index
200
+ */
201
+ setLastStepIndex(index: number): void;
202
+ /**
203
+ * Navigates to next valid step
204
+ */
205
+ nextStep(): void;
206
+ /**
207
+ * Navigates to previous step
208
+ */
209
+ previousStep(): void;
210
+ /**
211
+ * Jumps to specified step index
212
+ * @param {number} index - Target step index to navigate to
213
+ */
214
+ gotoStep(index: number): void;
215
+ /**
216
+ * Resets wizard to initial state
217
+ */
218
+ reset(): void;
219
+ static ɵfac: i0.ɵɵFactoryDeclaration<WizardService, never>;
220
+ static ɵprov: i0.ɵɵInjectableDeclaration<WizardService>;
221
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export type WizardActionsAligmentProps = 'left' | 'right' | 'center';
3
+ export declare class WizardActionsComponent {
4
+ alignment: import("@angular/core").InputSignal<WizardActionsAligmentProps>;
5
+ get componentClass(): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<WizardActionsComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<WizardActionsComponent, "st-wizard-actions", never, { "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
8
+ }
@@ -1,18 +1,72 @@
1
- import { WizardWrapperComponent } from '../wizard-wrapper/wizard-wrapper.component';
1
+ import { WizardService } from '../services/wizard.service';
2
2
  import * as i0 from "@angular/core";
3
- export type WizardStepStatus = 'in progress' | 'pending' | 'completed';
3
+ /**
4
+ * Component wrapper for individual wizard step content with validation integration.
5
+ *
6
+ * @remarks
7
+ * Manages content visibility and validation state synchronization with the wizard service.
8
+ * Automatically handles:
9
+ * - Step activation status
10
+ * - Validation state propagation
11
+ * - Fade animations
12
+ * - Destruction cleanup
13
+ *
14
+ * @example
15
+ * ```html
16
+ * <st-wizard-content
17
+ * [stepIndex]="0"
18
+ * [isValid]="form.valid"
19
+ * >
20
+ * <!-- Step content -->
21
+ * </st-wizard-content>
22
+ * ```
23
+ */
4
24
  export declare class WizardContentComponent {
5
- private wizard;
6
- step: import("@angular/core").InputSignal<number>;
7
- name: import("@angular/core").InputSignal<string>;
8
- status: import("@angular/core").ModelSignal<WizardStepStatus>;
9
- isValid: import("@angular/core").ModelSignal<boolean>;
10
- label: import("@angular/core").InputSignal<string>;
11
- classes: import("@angular/core").InputSignal<string>;
25
+ /** @internal Injected wizard state service */
26
+ wizardService: WizardService;
27
+ /**
28
+ * Position index in the wizard sequence (0-based)
29
+ * @default 0
30
+ */
31
+ stepIndex: import("@angular/core").InputSignal<number>;
32
+ /**
33
+ * Current validation state of the step
34
+ * @default false
35
+ * @remarks Updates wizard service automatically when changed
36
+ */
37
+ isValid: import("@angular/core").InputSignal<boolean>;
38
+ /**
39
+ * Computed status from wizard service
40
+ * @internal
41
+ */
42
+ status: import("@angular/core").Signal<"in progress" | "pending" | "completed">;
43
+ /**
44
+ * Observable version of isValid input
45
+ * @internal
46
+ */
47
+ private isValid$;
48
+ /**
49
+ * Current active step index from service
50
+ * @internal
51
+ */
12
52
  currentStep: import("@angular/core").Signal<number>;
53
+ /**
54
+ * Checks if this content's step is currently active
55
+ * @returns {boolean} True if stepIndex matches current active step
56
+ * @internal
57
+ */
13
58
  isStepActive: import("@angular/core").Signal<boolean>;
14
- constructor(wizard: WizardWrapperComponent);
15
- get componentClass(): string;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<WizardContentComponent, [{ host: true; }]>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<WizardContentComponent, "st-wizard-content", never, { "step": { "alias": "step"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": true; "isSignal": true; }; "isValid": { "alias": "isValid"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, { "status": "statusChange"; "isValid": "isValidChange"; }, never, ["*"], true, never>;
59
+ /**
60
+ * Computed CSS classes for content container
61
+ * @returns {string} Animation classes
62
+ * @internal
63
+ */
64
+ componentClass: import("@angular/core").Signal<string>;
65
+ /**
66
+ * Sets up validation state synchronization
67
+ * @remarks Uses takeUntilDestroyed for automatic cleanup
68
+ */
69
+ constructor();
70
+ static ɵfac: i0.ɵɵFactoryDeclaration<WizardContentComponent, never>;
71
+ static ɵcmp: i0.ɵɵComponentDeclaration<WizardContentComponent, "st-wizard-content", never, { "stepIndex": { "alias": "stepIndex"; "required": false; "isSignal": true; }; "isValid": { "alias": "isValid"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
18
72
  }
@@ -1,17 +1,84 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { TranslateService } from '@ngx-translate/core';
3
- import { WizardContentComponent } from '../wizard-content/wizard-content.component';
3
+ import { WizardService, WizardStepStatus } from '../services/wizard.service';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * Component that displays a status badge for wizard steps with translated labels.
7
+ *
8
+ * @remarks
9
+ * Shows visual indicators for different step states with automatic translations.
10
+ * Supports three status types with corresponding styling:
11
+ * - Completed (green background)
12
+ * - In progress (neutral border)
13
+ * - Pending (dimmed appearance)
14
+ *
15
+ * Uses NGX-Translate for localization of status labels.
16
+ *
17
+ * @example
18
+ * ```html
19
+ * <!-- Completed state -->
20
+ * <st-wizard-marker [status]="'completed'"></st-wizard-marker>
21
+ *
22
+ * <!-- In progress state -->
23
+ * <st-wizard-marker [status]="'in progress'"></st-wizard-marker>
24
+ * ```
25
+ */
5
26
  export declare class WizardMarkerComponent implements OnInit {
27
+ /** @internal Translation service instance */
6
28
  translateService: TranslateService;
29
+ /** @internal Wizard state service */
30
+ wizardService: WizardService;
31
+ /**
32
+ * Current status of the associated wizard step
33
+ * @remarks Determines badge styling and label
34
+ */
35
+ status: import("@angular/core").InputSignal<WizardStepStatus>;
36
+ /**
37
+ * Computed translated status message
38
+ * @internal
39
+ */
40
+ statusMarkerMessage: import("@angular/core").Signal<string>;
41
+ /**
42
+ * Computed CSS classes for the status badge
43
+ * @internal
44
+ */
45
+ statusMarkerClasses: import("@angular/core").Signal<string>;
46
+ /** @internal Signal holding translated "completed" text */
7
47
  completed: import("@angular/core").WritableSignal<string>;
48
+ /** @internal Signal holding translated "in progress" text */
8
49
  inProgress: import("@angular/core").WritableSignal<string>;
50
+ /** @internal Signal holding translated "pending" text */
9
51
  pending: import("@angular/core").WritableSignal<string>;
10
- content: import("@angular/core").InputSignal<WizardContentComponent>;
52
+ /** @internal Base CSS classes for the marker */
53
+ private baseClasses;
54
+ /** @internal Status-to-class mapping */
55
+ private statusClassMap;
56
+ /**
57
+ * Initializes component translations
58
+ * @remarks Loads translated status labels using NGX-Translate
59
+ */
11
60
  ngOnInit(): void;
12
- getStatusMarkerMessage(content: WizardContentComponent): string;
13
- getStepStatusMarkerClasses(content: WizardContentComponent): string;
14
- initTranslatations(): void;
61
+ /**
62
+ * Gets the appropriate translated status message
63
+ * @returns {string} Translated status label
64
+ * @internal
65
+ */
66
+ private getStatusMarkerMessage;
67
+ /**
68
+ * Computes CSS classes based on current status
69
+ * @returns {string} Combined Tailwind classes
70
+ * @internal
71
+ */
72
+ private getStepStatusMarkerClasses;
73
+ /**
74
+ * Initializes translations for status labels
75
+ * @remarks Uses translation keys:
76
+ * - 'sdk.wizard.wizardMarker.completed'
77
+ * - 'sdk.wizard.wizardMarker.inProgress'
78
+ * - 'sdk.wizard.wizardMarker.pending'
79
+ * @internal
80
+ */
81
+ private initTranslatations;
15
82
  static ɵfac: i0.ɵɵFactoryDeclaration<WizardMarkerComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<WizardMarkerComponent, "st-wizard-marker", never, { "content": { "alias": "content"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
83
+ static ɵcmp: i0.ɵɵComponentDeclaration<WizardMarkerComponent, "st-wizard-marker", never, { "status": { "alias": "status"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
17
84
  }
@@ -1,16 +1,83 @@
1
- import { WizardContentComponent, WizardStepStatus } from '../wizard-content/wizard-content.component';
1
+ import { WizardService, WizardStepStatus } from '../services/wizard.service';
2
2
  import * as i0 from "@angular/core";
3
+ /**
4
+ * Visual indicator component for individual wizard steps with status-dependent styling and animations.
5
+ *
6
+ * @remarks
7
+ * Displays step progress through dynamic border and background colors. Supports three states:
8
+ * - Completed (checkmark icon)
9
+ * - In progress (highlighted border)
10
+ * - Pending (dimmed appearance)
11
+ *
12
+ * Uses Angular signals for optimized change detection and smooth transitions.
13
+ *
14
+ * @example
15
+ * ```html
16
+ * <!-- Completed step with custom icon -->
17
+ * <st-wizard-step
18
+ * [stepIndex]="1"
19
+ * [status]="'completed'"
20
+ * icon="user-profile"
21
+ * ></st-wizard-step>
22
+ *
23
+ * <!-- Current active step -->
24
+ * <st-wizard-step
25
+ * [stepIndex]="2"
26
+ * [status]="'in progress'"
27
+ * ></st-wizard-step>
28
+ * ```
29
+ */
3
30
  export declare class WizardStepComponent {
31
+ /** @internal Injected wizard state service */
32
+ wizardService: WizardService;
33
+ /**
34
+ * Optional custom icon name for completed state
35
+ * @default undefined (uses checkmark)
36
+ */
37
+ icon: import("@angular/core").InputSignal<string | undefined>;
38
+ /**
39
+ * Current progress status of the step
40
+ * @remarks Determines visual state and transitions
41
+ */
4
42
  status: import("@angular/core").InputSignal<WizardStepStatus>;
5
- content: import("@angular/core").InputSignal<WizardContentComponent>;
6
- currentStep: import("@angular/core").InputSignal<number>;
7
- icon: string;
8
- getStepClasses(currentStep: number, content: WizardContentComponent): {
43
+ /**
44
+ * Position in wizard sequence (0-based index)
45
+ * @remarks Used for current step comparison
46
+ */
47
+ stepIndex: import("@angular/core").InputSignal<number>;
48
+ /** @internal Predefined checkmark icon */
49
+ iconCheck: string;
50
+ /**
51
+ * Computed CSS classes for step containers
52
+ * @returns {Object} Classes for outer/inner elements
53
+ * @remarks Applies:
54
+ * - 300ms color transitions
55
+ * - 300ms delay for pending states
56
+ * - Primary colors for active/completed states
57
+ * @internal
58
+ */
59
+ stepClasses: import("@angular/core").Signal<{
9
60
  outerClasses: string;
10
61
  innerClasses: string;
11
- };
12
- get stepNumberClasses(): string;
13
- get stepIconClasses(): string;
62
+ }>;
63
+ /**
64
+ * Step number visibility classes
65
+ * @returns {string} Tailwind classes with fade animation
66
+ * @remarks
67
+ * - Hidden when completed
68
+ * - 350ms fade-in delay for smooth transitions
69
+ * @internal
70
+ */
71
+ stepNumberClasses: import("@angular/core").Signal<string>;
72
+ /**
73
+ * Completion icon visibility classes
74
+ * @returns {string} Tailwind classes with fade animation
75
+ * @remarks
76
+ * - Only visible when completed
77
+ * - 350ms fade-in delay for smooth transition
78
+ * @internal
79
+ */
80
+ stepIconClasses: import("@angular/core").Signal<string>;
14
81
  static ɵfac: i0.ɵɵFactoryDeclaration<WizardStepComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<WizardStepComponent, "st-wizard-step", never, { "status": { "alias": "status"; "required": true; "isSignal": true; }; "content": { "alias": "content"; "required": true; "isSignal": true; }; "currentStep": { "alias": "currentStep"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
82
+ static ɵcmp: i0.ɵɵComponentDeclaration<WizardStepComponent, "st-wizard-step", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": true; "isSignal": true; }; "stepIndex": { "alias": "stepIndex"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
16
83
  }