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

44 lines (43 loc) 2.09 kB
import { PIconButtonMenu, POverflowMenuItem } from '@prefecthq/prefect-design'; import ConfirmDeleteModal from '../components/ConfirmDeleteModal.vue'; import CopyOverflowMenuItem from '../components/CopyOverflowMenuItem.vue'; import { BlockDocument } from '../models'; type __VLS_Props = { blockDocument: BlockDocument; }; declare const showModal: import("vue").Ref<boolean, boolean>, openDeleteBlockModal: () => void; declare function editBlock(): void; declare function deleteBlock(id: string): Promise<void>; declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>; declare var __VLS_24: { blockDocument: BlockDocument; }; type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & { default?: (props: typeof __VLS_24) => any; }>; declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, { PIconButtonMenu: typeof PIconButtonMenu; POverflowMenuItem: typeof POverflowMenuItem; ConfirmDeleteModal: typeof ConfirmDeleteModal; CopyOverflowMenuItem: typeof CopyOverflowMenuItem; showModal: typeof showModal; openDeleteBlockModal: typeof openDeleteBlockModal; editBlock: typeof editBlock; deleteBlock: typeof deleteBlock; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { delete: () => any; }, string, import("vue").PublicProps, Readonly<__VLS_Props & { onDelete?: (() => any) | undefined; }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}>; declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { delete: () => any; }, string, import("vue").PublicProps, Readonly<__VLS_Props & { onDelete?: (() => 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; }; };