UNPKG

@agendize/vue-settings

Version:
42 lines (41 loc) 1.33 kB
import { ComputedRef, Ref } from "vue"; import { PageWithTabsAndPanelOptions } from "@agendize/design-system"; import { CalendarApi } from "@agendize/js-calendar-api"; import { RouteLocationNormalized, Router } from "vue-router"; export declare function CalendarViewModel(api: CalendarApi, router: Router): CalendarViewModelType; export interface CalendarViewModelType { colors: Ref<string[]>; colorValues: Ref<{ label: string; value: string; }[]>; days: Ref<string[]>; nameEvent: Ref<string[]>; nameValues: Ref<{ label: string; value: string; }[]>; privatizeExternal: Ref<boolean>; slotDuration: Ref<string[]>; slotDurationValues: Ref<{ label: string; value: string; }[]>; showBuffer: Ref<boolean>; formValid: ComputedRef<boolean>; formSaving: Ref<boolean>; loaded: Ref<boolean>; maxTime: Ref<Date>; minTime: Ref<Date>; pageOptions: PageWithTabsAndPanelOptions; back: () => void; saveSettings: (thenExit?: boolean) => void; hasChange: Ref<boolean>; nextPage: Ref<RouteLocationNormalized | undefined>; exit: (close: boolean) => void; defaultViewValues: Ref<{ label: string; value: string; }[]>; defaultView: Ref<string[]>; }