@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.
- package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +8 -3
- package/esm2022/lib/components/stepper/stepper.component.mjs +69 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ieeesa-npm-presentation.mjs +73 -3
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/stepper/stepper.component.d.ts +46 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -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
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';
|