@prefecthq/prefect-design
Version:
A collection of low-level Vue components.
71 lines (70 loc) • 2.76 kB
TypeScript
import { WizardStep } from '../../types/wizard';
type __VLS_Props = {
steps: WizardStep[];
showCancel?: boolean;
lastStepText?: string;
nonlinear?: boolean;
showSaveAndExit?: boolean;
};
declare function handleNextButtonClick(): Promise<void>;
declare function setLoading(value: boolean): void;
declare var __VLS_13: {}, __VLS_20: string, __VLS_21: {}, __VLS_23: {}, __VLS_25: {
nextButtonText: string;
handleNextButtonClick: typeof handleNextButtonClick;
}, __VLS_55: {};
type __VLS_Slots = {} & {
[K in NonNullable<typeof __VLS_20>]?: (props: typeof __VLS_21) => any;
} & {
'before-steps'?: (props: typeof __VLS_13) => any;
} & {
'after-steps'?: (props: typeof __VLS_23) => any;
} & {
actions?: (props: typeof __VLS_25) => any;
} & {
footer?: (props: typeof __VLS_55) => any;
};
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
steps: import("vue").Ref<WizardStep[], WizardStep[]>;
currentStepIndex: import("vue").Ref<number, number>;
currentStep: import("vue").Ref<WizardStep | undefined, WizardStep | undefined>;
loading: import("vue").Ref<boolean, boolean>;
next: () => Promise<import("../../types/wizard").WizardNavigation>;
previous: () => Promise<import("../../types/wizard").WizardNavigation>;
goto: {
(key: string): Promise<import("../../types/wizard").WizardNavigation>;
(index: number): Promise<import("../../types/wizard").WizardNavigation>;
(step: WizardStep): Promise<import("../../types/wizard").WizardNavigation>;
};
getStepIndex: {
(key: string): number;
(step: WizardStep): number;
};
getStep: {
(key: string): WizardStep | undefined;
(index: number): WizardStep | undefined;
};
setStep: (key: string, step: WizardStep) => void;
isValid: (index?: number) => Promise<boolean>;
setLoading: typeof setLoading;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
cancel: () => void;
submit: () => void;
previous: () => void;
next: () => void;
step: (currentStep: WizardStep | undefined) => void;
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
onCancel?: (() => any) | undefined;
onSubmit?: (() => any) | undefined;
onPrevious?: (() => any) | undefined;
onNext?: (() => any) | undefined;
onStep?: ((currentStep: WizardStep | undefined) => any) | undefined;
}>, {
lastStepText: string;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};