UNPKG

@agendize/vue-settings

Version:
25 lines (24 loc) 1.3 kB
import { CalendarApi, AccountEntity } from "@agendize/js-calendar-api"; import { Ref } from "vue"; import { Locale } from "@agendize/az-i18n"; import { ActionButton } from "../../component/menu-horizontal-company/viewModel"; import { CardDataEntity } from "@agendize/design-system"; import { ToastInterface } from "vue-toastification"; import { Router } from "vue-router"; export declare function ServicesViewModel(cardList: any, api: CalendarApi, locale: Locale, acl: any, companyId: string, createConfirmDialog: Function, toaster: ToastInterface, router: Router, organisation: AccountEntity): ServicesViewModelType; interface ServicesViewModelType { actionButtons: Ref<Ref<ActionButton>[]>; fetchServices: (page: number) => Promise<CardDataEntity[]>; filterServices: (serviceCards: CardDataEntity[], search: string) => CardDataEntity[]; getDuration: (row: any) => string; selectService: (service: CardDataEntity[]) => void; selectServiceLine: (service: CardDataEntity) => void; selectServiceLineByRow: (row: any) => void; showQRCodeModal: Ref<boolean>; showIntegrationModal: Ref<boolean>; link: Ref<string>; shareLoading: Ref<Map<string, boolean>>; openShare: (row: any) => void; openQRCode: (row: any) => void; } export {};