UNPKG

@agendize/vue-settings

Version:
20 lines (19 loc) 905 B
import { Ref } from "vue"; import { Locale } from "@agendize/az-i18n"; import { Router } from "vue-router"; import { AccountEntity, CalendarApi, PlanningEntity } from "@agendize/js-calendar-api"; import { PageWithTabsAndPanelOptions } from "@agendize/design-system"; import FetchAllPlanningsUseCase from "../fetchAllPlanningsUseCase"; export declare enum COMPANIES_TABS { PLANNINGS = "plannings" } export declare function PlanningsViewModel(emitter: Function, api: CalendarApi, locale: Locale, fetchAllPlanningsUseCase: FetchAllPlanningsUseCase, organisation: AccountEntity, router?: Router): PlanningsViewModelType; interface PlanningsViewModelType { pageOptions: Ref<PageWithTabsAndPanelOptions>; newAction: () => void; currentTab: Ref<string>; plannings: Ref<PlanningEntity[]>; deletePlanning: (planningId: string) => void; back: () => void; } export {};