import { ID } from "../../types/index.mjs"; import { AtomProps } from "../Atom/Atom.vue.mjs"; import "../Atom/index.mjs"; import { KanbanBoardColumn, KanbanOrientation } from "./KanbanRoot.vue.mjs"; import { Ref } from "vue"; //#region src/components/Kanban/KanbanColumn.vue.d.ts interface KanbanColumnContext { /** The registered column ticket */ ticket: KanbanBoardColumn; /** The column's item values, in board order */ model: Readonly>; /** Axis the column's items flow along */ orientation: Readonly>; /** Whether moves into, out of, and within this column are blocked */ isDisabled: Readonly>; } declare const useKanbanColumn: (key: string, defaultValue?: KanbanColumnContext | undefined) => KanbanColumnContext, provideKanbanColumn: (key: string, context: KanbanColumnContext, app?: import("vue").App) => KanbanColumnContext; interface KanbanColumnProps extends AtomProps { /** Column id, used in `move` payloads. Auto-generated when omitted. */ id?: ID; /** The column's own data */ value?: unknown; /** Accessible name; also used in announcements */ label?: string; /** Block moves into, out of, and within this column */ disabled?: boolean; /** * Veto incoming cross-column moves. Synchronous; return false to reject. * Same-column reorders bypass it. */ accept?: (value: T, from: ID, index: number) => boolean; /** Namespace for context injection from Kanban.Root */ namespace?: string; } interface KanbanColumnSlotProps { /** Column id */ id: ID; /** The column's item values, in board order */ items: T[]; /** Whether the column is disabled */ isDisabled: boolean; /** Whether a picked-up item would drop into this column */ isTarget: boolean; /** Attributes to bind to the column element */ attrs: { 'role': 'group'; 'aria-label': string | undefined; 'aria-disabled': boolean; 'data-disabled': true | undefined; 'data-target': true | undefined; }; } declare const _default: typeof __VLS_export; declare const __VLS_export: (__VLS_props: NonNullable>["props"], __VLS_ctx?: __VLS_PrettifyLocal>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable>["expose"], __VLS_setup?: Promise<{ props: import("vue").PublicProps & __VLS_PrettifyLocal<(KanbanColumnProps & { modelValue?: T[]; }) & { "onUpdate:modelValue"?: ((value: T[]) => any) | undefined; "onUpdate:model-value"?: ((value: T[]) => any) | undefined; }> & (typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; } ? P : {}); expose: (exposed: {}) => void; attrs: any; slots: { default: (props: KanbanColumnSlotProps) => any; }; emit: ((evt: "update:model-value", value: T[]) => void) & ((event: "update:modelValue", value: T[]) => void); }>) => import("vue").VNode & { __ctx?: NonNullable>; }; type __VLS_PrettifyLocal = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {}; //#endregion export { KanbanColumnContext, KanbanColumnProps, KanbanColumnSlotProps, _default as default, provideKanbanColumn, useKanbanColumn };