UNPKG

@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_.

63 lines (62 loc) 3.09 kB
import { SchemaFormFields } from '../components'; import { localization } from '../localization'; import { SchemaInputType } from '../types/schemaInput'; import { SchemaValues, Schema } from '../types/schemas'; type __VLS_Props = { /** * @deprecated Use SchemaFormInputV2.vue */ modelValue: SchemaValues | null | undefined; schema: Schema; inputType?: SchemaInputType; disableInputTypes?: boolean; }; declare const hasPropertiesInSchema: import("vue").ComputedRef<boolean>; declare const inputTypeOptions: { value: string; label: string; }[]; declare const inputType: import("vue").WritableComputedRef<"json" | "form" | null, "json" | "form" | null>; declare const json: import("vue").Ref<string, string>; declare const jsonState: import("@prefecthq/vue-compositions").UseValidationState, jsonError: import("vue").Ref<string, string>; declare function syncJsonToForm(): void; declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>; declare var __VLS_6: {}, __VLS_32: {}, __VLS_34: {}; type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & { 'button-group'?: (props: typeof __VLS_6) => any; } & { 'null-input-type'?: (props: typeof __VLS_32) => any; } & { empty?: (props: typeof __VLS_34) => any; }>; declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, { SchemaFormFields: typeof SchemaFormFields; localization: typeof localization; hasPropertiesInSchema: typeof hasPropertiesInSchema; inputTypeOptions: typeof inputTypeOptions; inputType: typeof inputType; json: typeof json; jsonState: typeof jsonState; jsonError: typeof jsonError; syncJsonToForm: typeof syncJsonToForm; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { "update:modelValue": (value: SchemaValues | null | undefined) => any; "update:inputType": (value: "json" | "form" | null) => any; }, string, import("vue").PublicProps, Readonly<__VLS_Props & { "onUpdate:modelValue"?: ((value: SchemaValues | null | undefined) => any) | undefined; "onUpdate:inputType"?: ((value: "json" | "form" | null) => any) | undefined; }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}>; declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { "update:modelValue": (value: SchemaValues | null | undefined) => any; "update:inputType": (value: "json" | "form" | null) => any; }, string, import("vue").PublicProps, Readonly<__VLS_Props & { "onUpdate:modelValue"?: ((value: SchemaValues | null | undefined) => any) | undefined; "onUpdate:inputType"?: ((value: "json" | "form" | null) => any) | undefined; }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}>; declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>; export default _default; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; };