UNPKG

trellis

Version:

Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications

26 lines 1.08 kB
/** * Kanban Vue — `useKanbanVue` composable (ADR 0034 wedge 13). * * Import from `trellis/kanban/vue`: * * const board = useKanbanVue({ data: tasks, columns, groupFields, groupFieldId }); * // <div v-for="col in board.state.columns" :key="col.id"> * // {{ col.title }} · {{ col.count }} * // <div v-for="card in col.cards" :key="card.id">{{ card.cells.title }}</div> * // </div> * * State is a Vue `reactive` object mirrored from the core via the shared * `syncFromCore` bridge (same pattern as `trellis/table/vue`). * Generic over the row type. * * @module trellis/kanban/vue */ import type { KanbanConfig, UseKanbanReturn } from '../core/index.js'; /** Accept either a config (fresh core) or an existing core (shared mount). */ export type KanbanInput<T> = KanbanConfig<T> | UseKanbanReturn<T>; /** * Create a reactive Vue board. The core's state is mirrored into a * `reactive()` object on every mutation. */ export declare function useKanbanVue<T extends object>(input: KanbanInput<T>): UseKanbanReturn<T>; //# sourceMappingURL=index.d.ts.map