@prefecthq/prefect-ui-library
Version:
This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.
88 lines (87 loc) • 6.02 kB
TypeScript
import { MaybeRefOrGetter, Ref } from 'vue';
import { SchemaProperty } from '../../schemas/types/schema';
import { SchemaValueError } from '../../schemas/types/schemaValuesValidationResponse';
import { SchemaValue } from '../../types';
export declare function useSchemaPropertyInput(schemaProperty: MaybeRefOrGetter<SchemaProperty>, propertyValue: Ref<SchemaValue>, propertyErrors: MaybeRefOrGetter<SchemaValueError[]>): {
input: import("vue").ComputedRef<{
component: import("vue").DefineComponent<{
property: SchemaProperty;
value: import("../../schemas/types/schemaValues").SchemaValue;
errors: SchemaValueError[];
state: import("@prefecthq/prefect-design").State;
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
"update:value": (args_0: unknown) => any;
}, string, import("vue").PublicProps, Readonly<{
property: SchemaProperty;
value: import("../../schemas/types/schemaValues").SchemaValue;
errors: SchemaValueError[];
state: import("@prefecthq/prefect-design").State;
}> & Readonly<{
"onUpdate:value"?: ((args_0: unknown) => any) | undefined;
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
props: Omit<{
readonly property: SchemaProperty;
readonly value: import("../../schemas/types/schemaValues").SchemaValue;
readonly errors: SchemaValueError[];
readonly state: import("@prefecthq/prefect-design").State;
readonly "onUpdate:value"?: ((args_0: unknown) => any) | undefined;
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, ""> & Record<string, unknown>;
} | {
component: import("vue").DefineComponent<{
value: import("../../schemas/types/schemaValues").PrefectKindJson;
errors: SchemaValueError[];
state: import("@prefecthq/prefect-design").State;
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
"update:value": (args_0: import("../../schemas/types/schemaValues").PrefectKindJson) => any;
}, string, import("vue").PublicProps, Readonly<{
value: import("../../schemas/types/schemaValues").PrefectKindJson;
errors: SchemaValueError[];
state: import("@prefecthq/prefect-design").State;
}> & Readonly<{
"onUpdate:value"?: ((args_0: import("../../schemas/types/schemaValues").PrefectKindJson) => any) | undefined;
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
props: Omit<{
readonly value: import("../../schemas/types/schemaValues").PrefectKindJson;
readonly errors: SchemaValueError[];
readonly state: import("@prefecthq/prefect-design").State;
readonly "onUpdate:value"?: ((args_0: import("../../schemas/types/schemaValues").PrefectKindJson) => any) | undefined;
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, ""> & Record<string, unknown>;
} | {
component: import("vue").DefineComponent<{
value: import("../../schemas/types/schemaValues").PrefectKindJinja;
errors: SchemaValueError[];
state: import("@prefecthq/prefect-design").State;
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
"update:value": (args_0: import("../../schemas/types/schemaValues").PrefectKindJinja) => any;
}, string, import("vue").PublicProps, Readonly<{
value: import("../../schemas/types/schemaValues").PrefectKindJinja;
errors: SchemaValueError[];
state: import("@prefecthq/prefect-design").State;
}> & Readonly<{
"onUpdate:value"?: ((args_0: import("../../schemas/types/schemaValues").PrefectKindJinja) => any) | undefined;
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
props: Omit<{
readonly value: import("../../schemas/types/schemaValues").PrefectKindJinja;
readonly errors: SchemaValueError[];
readonly state: import("@prefecthq/prefect-design").State;
readonly "onUpdate:value"?: ((args_0: import("../../schemas/types/schemaValues").PrefectKindJinja) => any) | undefined;
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, ""> & Record<string, unknown>;
} | {
component: import("vue").DefineComponent<{
value: import("../../schemas/types/schemaValues").PrefectKindWorkspaceVariable;
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
"update:value": (args_0: import("../../schemas/types/schemaValues").PrefectKindWorkspaceVariable) => any;
}, string, import("vue").PublicProps, Readonly<{
value: import("../../schemas/types/schemaValues").PrefectKindWorkspaceVariable;
}> & Readonly<{
"onUpdate:value"?: ((args_0: import("../../schemas/types/schemaValues").PrefectKindWorkspaceVariable) => any) | undefined;
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
props: Omit<{
readonly value: import("../../schemas/types/schemaValues").PrefectKindWorkspaceVariable;
readonly "onUpdate:value"?: ((args_0: import("../../schemas/types/schemaValues").PrefectKindWorkspaceVariable) => any) | undefined;
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, ""> & Record<string, unknown>;
} | {
component: () => string;
props?: (Omit<unknown, ""> & Record<string, unknown>) | undefined;
}>;
};