@educarehq/solaris-components 0.5.1 → 0.5.3
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/package.json
CHANGED
|
@@ -859,16 +859,17 @@ declare class SolarisDialogStepsContainer<TResult = unknown> {
|
|
|
859
859
|
private readonly injector;
|
|
860
860
|
private readonly configuration;
|
|
861
861
|
private readonly dialogRef;
|
|
862
|
+
protected readonly steps: _educarehq_solaris_components.SolarisDialogStep<unknown, TResult>[];
|
|
863
|
+
protected readonly showProgress: boolean;
|
|
864
|
+
protected readonly transitionBlur: boolean;
|
|
865
|
+
protected readonly contentMinHeight: string;
|
|
866
|
+
protected readonly transitionDurationMs: number;
|
|
862
867
|
protected readonly loading: _angular_core.WritableSignal<boolean>;
|
|
863
868
|
protected readonly transitioning: _angular_core.WritableSignal<boolean>;
|
|
864
|
-
protected readonly steps: _educarehq_solaris_components.SolarisDialogStep<unknown>[];
|
|
865
869
|
protected readonly transitionHalfway: _angular_core.WritableSignal<boolean>;
|
|
866
870
|
protected readonly currentStepIndex: _angular_core.WritableSignal<number>;
|
|
867
|
-
protected readonly showProgress: boolean;
|
|
868
|
-
protected readonly transitionDurationMs: number;
|
|
869
|
-
protected readonly transitionBlur: boolean;
|
|
870
|
-
private transitionTimer;
|
|
871
871
|
private halfwayTimer;
|
|
872
|
+
private transitionTimer;
|
|
872
873
|
private readonly stepInjectors;
|
|
873
874
|
protected readonly trackTransform: _angular_core.Signal<string>;
|
|
874
875
|
protected readonly isFirstStep: _angular_core.Signal<boolean>;
|
|
@@ -972,14 +973,14 @@ declare const SOLARIS_DIALOG_STEP_DATA: InjectionToken<unknown>;
|
|
|
972
973
|
|
|
973
974
|
declare const SOLARIS_DIALOG_DATA: InjectionToken<unknown>;
|
|
974
975
|
|
|
975
|
-
type SolarisDialogStepActionValue = 'cancel' | 'back' | 'next' | 'finish';
|
|
976
976
|
type SolarisDialogStepDirection = 'initial' | 'forward' | 'backward';
|
|
977
|
+
type SolarisDialogStepActionValue = 'cancel' | 'back' | 'next' | 'finish';
|
|
977
978
|
interface SolarisDialogStepLifecycleContext {
|
|
978
979
|
fromIndex: number;
|
|
979
980
|
toIndex: number;
|
|
980
981
|
direction: SolarisDialogStepDirection;
|
|
981
982
|
}
|
|
982
|
-
interface SolarisDialogStep<TData = unknown> {
|
|
983
|
+
interface SolarisDialogStep<TData = unknown, TResult = unknown> {
|
|
983
984
|
key: string;
|
|
984
985
|
component: Type<unknown>;
|
|
985
986
|
data?: TData;
|
|
@@ -989,16 +990,18 @@ interface SolarisDialogStep<TData = unknown> {
|
|
|
989
990
|
description?: string;
|
|
990
991
|
descriptionKey?: string;
|
|
991
992
|
descriptionParams?: Record<string, unknown>;
|
|
993
|
+
actions?: SolarisDialogAction<TResult | SolarisDialogStepActionValue>[];
|
|
992
994
|
beforeEnter?: (context: SolarisDialogStepLifecycleContext) => void | boolean | Promise<void | boolean>;
|
|
993
|
-
beforeLeave?: (context: SolarisDialogStepLifecycleContext) => void | boolean | Promise<
|
|
995
|
+
beforeLeave?: (context: SolarisDialogStepLifecycleContext) => void | boolean | Promise<boolean | void>;
|
|
994
996
|
}
|
|
995
997
|
interface SolarisDialogStepsConfiguration<TResult = unknown> extends Omit<SolarisDialogConfiguration<unknown, TResult>, 'data' | 'actions'> {
|
|
996
|
-
steps: SolarisDialogStep[];
|
|
998
|
+
steps: SolarisDialogStep<unknown, TResult>[];
|
|
997
999
|
initialStepIndex?: number;
|
|
998
1000
|
finishValue?: TResult;
|
|
999
1001
|
showProgress?: boolean;
|
|
1000
1002
|
transitionDurationMs?: number;
|
|
1001
1003
|
transitionBlur?: boolean;
|
|
1004
|
+
contentMinHeight?: string;
|
|
1002
1005
|
cancelLabel?: string;
|
|
1003
1006
|
cancelLabelKey?: string;
|
|
1004
1007
|
backLabel?: string;
|