import { DashboardWidgetPosition, DashboardWidgetSize } from './CuiDashboard.vue'; import { WidgetStrokeColor } from './widgetColors'; export interface CuiDashboardWidgetProps { /** * @description Unique widget id. Inside a CuiDashboard's default slot, setting an id registers the widget with the dashboard grid; without a dashboard (or without an id) the component renders as a plain standalone card. */ id?: string; /** * @description Title shown in the widget header. */ title?: string; /** * @description Material Symbols icon name shown before the title (e.g. "monitoring", "rss_feed"). */ icon?: string; /** * @description Whether the widget is in edit mode. Edit mode shows a move cursor and an overlay with the edit/remove actions. */ editMode?: boolean; /** * @description Whether the edit action is offered in edit mode. */ editable?: boolean; /** * @description Whether the remove action is offered in edit mode. */ removable?: boolean; /** * @description Whether the widget body shows a loading skeleton instead of its content. */ loading?: boolean; /** * @description Left accent stroke colour for visual grouping — one of the 11 basic colour names. Omit for no stroke. */ stroke?: WidgetStrokeColor; /** * @description Whether the widget is selected (active filter/view). Shows a yellow highlight with a gold border. */ selected?: boolean; /** * @description Whether the widget is interactive. Renders the card as a button that emits click and, together with selected, can act as a filter or navigation shortcut. */ interactive?: boolean; /** * @description Accessible label for the card when interactive. Sets aria-label on the button. */ wcagLabel?: string; /** * @description Size used when the widget appears without an explicit layout entry (registered mode only). */ defaultSize?: DashboardWidgetSize; /** * @description Position used when the widget appears without an explicit layout entry (registered mode only). */ defaultPosition?: DashboardWidgetPosition; /** * @description Minimum size the widget can be resized to (registered mode only). */ minSize?: DashboardWidgetSize; /** * @description Maximum size the widget can be resized to (registered mode only). */ maxSize?: DashboardWidgetSize; } declare function __VLS_template(): { attrs: Partial<{}>; slots: Readonly<{ /** * Widget body content, rendered below the header and filling the remaining space. */ default?: () => any; /** * Extra content for the right side of the widget header (e.g. a refresh button). */ actions?: () => any; }> & { /** * Widget body content, rendered below the header and filling the remaining space. */ default?: () => any; /** * Extra content for the right side of the widget header (e.g. a refresh button). */ actions?: () => any; }; refs: {}; rootEl: any; }; type __VLS_TemplateResult = ReturnType; declare const __VLS_component: import('vue').DefineComponent any; remove: () => any; edit: () => any; }, string, import('vue').PublicProps, Readonly & Readonly<{ onClick?: ((event: MouseEvent) => any) | undefined; onRemove?: (() => any) | undefined; onEdit?: (() => any) | undefined; }>, { title: string; loading: boolean; icon: string; id: string; interactive: boolean; wcagLabel: string; stroke: WidgetStrokeColor; removable: boolean; editMode: boolean; editable: boolean; selected: boolean; defaultSize: DashboardWidgetSize; defaultPosition: DashboardWidgetPosition; minSize: DashboardWidgetSize; maxSize: DashboardWidgetSize; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; declare const _default: __VLS_WithTemplateSlots; export default _default; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };