import type { HeroIcon } from '@/types/heroicons'; import type { TTagProps } from '../../TTag'; /** An action offered by the record on display. */ export interface TDrawerAction { /** Emitted with the `action` event when chosen. */ id: string; /** Tooltip and accessible name of the icon, or the menu item text. */ label: string; icon: HeroIcon; /** Marks the Edit action, which stays visible even when the rest go to the menu. */ edit?: boolean; /** Sorted last. Confirming it is up to the consumer. */ destructive?: boolean; disabled?: boolean; } /** * One-line drawer header: optional Back, title and status tag on the left; action * icons and Close on the right. * * Up to 2 actions show as icons. With more, Edit stays visible and the rest move to * the "More actions" menu (all of them when there is no Edit). Destructive actions * always go last. */ export interface TDrawerHeaderProps { /** Entity type plus an identifier a person recognises, e.g. "Deuda 848848". */ title: string; /** Text of the status `TTag` next to the title. */ status?: string; /** @defaultValue 'default' */ statusVariant?: TTagProps['variant']; /** @defaultValue [] */ actions?: TDrawerAction[]; /** Shows Back before the title, for a nested record. */ back?: boolean; /** @defaultValue 'Close' */ closeLabel?: string; /** @defaultValue 'Back' */ backLabel?: string; /** @defaultValue 'More actions' */ moreActionsLabel?: string; } export interface TDrawerHeaderEmits { action: [id: string]; back: []; close: []; } export interface TDrawerHeaderSlots { /** Overrides the title text. It stays inside the heading that names the drawer. */ title?: () => unknown; /** Overrides the status `TTag`. */ status?: () => unknown; } declare const _default: typeof __VLS_export; export default _default; declare const __VLS_export: __VLS_WithSlots any; action: (id: string) => any; back: () => any; }, string, import("vue").PublicProps, Readonly & Readonly<{ onClose?: (() => any) | undefined; onAction?: ((id: string) => any) | undefined; onBack?: (() => any) | undefined; }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, TDrawerHeaderSlots>; type __VLS_WithSlots = T & { new (): { $slots: S; }; }; //# sourceMappingURL=TDrawerHeader.vue.d.ts.map