UNPKG

@lui297/vue-ganttastic

Version:

A simple and customizable Gantt chart component for Vue.js

17 lines (16 loc) 762 B
import type { InjectionKey, Ref } from "vue"; import type { GGanttChartConfig } from "../components/GGanttChart.vue"; import type { GanttBarObject, GanttDateType } from "../types.ts"; export type ChartRow = { label: string; bars: GanttBarObject[]; }; export type GetChartRows = () => ChartRow[]; export type EmitBarEvent = (e: MouseEvent, bar: GanttBarObject, datetime?: GanttDateType, movedBars?: Map<GanttBarObject, { oldStart: string; oldEnd: string; }>) => void; export declare const CHART_ROWS_KEY: InjectionKey<GetChartRows>; export declare const CONFIG_KEY: InjectionKey<GGanttChartConfig>; export declare const EMIT_BAR_EVENT_KEY: InjectionKey<EmitBarEvent>; export declare const BAR_CONTAINER_KEY: InjectionKey<Ref<HTMLElement | null>>;