@ieeesa-npm/presentation 0.31.7 → 0.33.0

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.
@@ -0,0 +1,46 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export interface StepConfig {
4
+ id: number;
5
+ label: string;
6
+ isVisible: boolean;
7
+ isCompleted: boolean;
8
+ isDisabled: boolean;
9
+ }
10
+ /**
11
+ * StepperComponent is a reusable horizontal stepper for multi-step workflows.
12
+ * Displays numbered step indicators and emits step change events.
13
+ * @export
14
+ * @class StepperComponent
15
+ */
16
+ export declare class StepperComponent {
17
+ steps: StepConfig[];
18
+ activeStepIndex: number;
19
+ stepChange: EventEmitter<number>;
20
+ /**
21
+ * Returns only the visible steps.
22
+ * @readonly
23
+ * @type {StepConfig[]}
24
+ * @memberof StepperComponent
25
+ */
26
+ get visibleSteps(): StepConfig[];
27
+ /**
28
+ * Navigates to a step if it's not disabled.
29
+ * Emits stepChange to let the parent update activeStepIndex (parent is source of truth).
30
+ * @param {number} index - index within visible steps
31
+ * @memberof StepperComponent
32
+ */
33
+ goToStep(index: number): void;
34
+ /**
35
+ * Moves to the next step.
36
+ * @memberof StepperComponent
37
+ */
38
+ nextStep(): void;
39
+ /**
40
+ * Moves to the previous step.
41
+ * @memberof StepperComponent
42
+ */
43
+ previousStep(): void;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepperComponent, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<StepperComponent, "ieeesa-stepper", never, { "steps": { "alias": "steps"; "required": false; }; "activeStepIndex": { "alias": "activeStepIndex"; "required": false; }; }, { "stepChange": "stepChange"; }, never, ["*"], true, never>;
46
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/presentation",
3
- "version": "0.31.7",
3
+ "version": "0.33.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0",
package/public-api.d.ts CHANGED
@@ -112,3 +112,4 @@ export * from './lib/services/break-point-observer.service';
112
112
  export * from './lib/pipes/safe.pipe';
113
113
  export * from './lib/presentation.module';
114
114
  export { SelectOption, CheckboxOption, IconButton, AlignType, ConfirmationModalData, MessagePart, InfoModalData } from '@ieeesa-npm/models';
115
+ export * from './lib/components/stepper/stepper.component';