@agendize/vue-settings
Version:
Vue agendize's settings component
26 lines (25 loc) • 1.45 kB
TypeScript
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, QuickFilterActionType } from "@agendize/design-system";
import { ToastInterface } from "vue-toastification";
import { Router } from "vue-router";
export declare function ServicesGroupsViewModel(cardList: any, api: CalendarApi, locale: Locale, acl: any, companyId: string, createConfirmDialog: Function, toaster: ToastInterface, router: Router, organisation: AccountEntity): ServicesGroupsViewModelType;
interface ServicesGroupsViewModelType {
actionButtons: Ref<Ref<ActionButton>[]>;
fetchServicesGroups: (page: number) => Promise<CardDataEntity[]>;
filterServicesGroups: (serviceGroupsCards: CardDataEntity[], search: string) => CardDataEntity[];
selectServicesGroup: (servicesGroupsCard: CardDataEntity[]) => void;
selectServicesGroupLine: (servicesGroupCard: CardDataEntity) => void;
selectServicesGroupLineByRow: (row: any) => void;
showQRCodeModal: Ref<boolean>;
showIntegrationModal: Ref<boolean>;
link: Ref<string>;
quickFilters: QuickFilterActionType[];
shareLoading: Ref<Map<string, boolean>>;
openShare: (row: any) => void;
openQRCode: (row: any) => void;
countServices: (row: any) => string;
}
export {};