@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_.
70 lines (69 loc) • 3.15 kB
TypeScript
import { PCombobox } from '@prefecthq/prefect-design';
import { DeploymentComboboxOption } from '../components';
import UseDeploymentSlot from '../components/UseDeploymentSlot.vue';
import { isString } from '../utilities';
type DeploymentOption = {
label: string;
value: string | null;
flowId?: string;
};
declare const selected: import("vue").ModelRef<string | string[] | null | undefined, string, string | string[] | null | undefined, string | string[] | null | undefined>;
type __VLS_Props = {
allowUnset?: boolean;
};
declare const search: import("vue").Ref<string, string>;
declare const deployments: import("vue").ComputedRef<import("..").Deployment[]>, count: import("vue").ComputedRef<number>;
declare const moreLink: import("vue").ComputedRef<import("..").Route>;
declare const options: import("vue").ComputedRef<DeploymentOption[]>;
type __VLS_PublicProps = __VLS_Props & {
'selected': string | string[] | null | undefined;
};
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
declare var __VLS_6: {
value: string | number | boolean | null;
label: string;
option: {
label: string;
value: import("@prefecthq/prefect-design").SelectModelValue;
disabled?: boolean;
} | undefined;
}, __VLS_15: {
option: DeploymentOption;
};
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
default?: (props: typeof __VLS_6) => any;
} & {
option?: (props: typeof __VLS_15) => any;
}>;
declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
PCombobox: typeof PCombobox;
DeploymentComboboxOption: typeof DeploymentComboboxOption;
UseDeploymentSlot: typeof UseDeploymentSlot;
isString: typeof isString;
selected: typeof selected;
search: typeof search;
deployments: typeof deployments;
count: typeof count;
moreLink: typeof moreLink;
options: typeof options;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
'update:selected': (value: string | string[] | null | undefined) => any;
}, string, import("vue").PublicProps, Readonly<__VLS_Props & {
selected: string | string[] | null | undefined;
} & {
"onUpdate:selected"?: ((value: string | string[] | null | undefined) => any) | undefined;
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}>;
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
'update:selected': (value: string | string[] | null | undefined) => any;
}, string, import("vue").PublicProps, Readonly<__VLS_Props & {
selected: string | string[] | null | undefined;
} & {
"onUpdate:selected"?: ((value: string | string[] | null | undefined) => 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;
};
};