UNPKG

@agendize/vue-settings

Version:
38 lines (37 loc) 1.93 kB
import { Ref } from "vue"; import { Locale } from "@agendize/az-i18n"; import { Router } from "vue-router"; import { AccountEntity, AddressEntity, CalendarApi, CompanyEntity } from "@agendize/js-calendar-api"; import { CardDataEntity, PageWithTabsAndPanelOptions, TabsOptions } from "@agendize/design-system"; import FetchAllCompaniesUseCase from "../fetchAllCompaniesUseCase"; export declare function loadCountries(locale: Locale): void; export declare enum COMPANIES_TABS { COMPANIES = "companies", PLANNINGS = "plannings", SCHEDULING_RIGHTS = "schedulingRights" } export declare function getCompaniesPageOptions(i18n: any): Promise<PageWithTabsAndPanelOptions>; export declare function CompaniesCardsViewModel(emitter: Function, cardList: any, api: CalendarApi, locale: Locale, fetchAllCompaniesUseCase: FetchAllCompaniesUseCase, organisation: AccountEntity, router?: Router): CompaniesCardsViewModelType; interface CompaniesCardsViewModelType { companies: Ref<CompanyEntity[]>; filterCompanies: (companies: CardDataEntity[], search: string) => CardDataEntity[]; selectCompany: (company: CardDataEntity[]) => void; selectCompanyLine: (company: CardDataEntity) => void; newAction: () => void; duplicateCompany: () => void; deleteCompany: () => void; fetchCompanies: (page: number) => Promise<CardDataEntity[]>; selectedCompanyList: Ref<CompanyEntity[]>; deleteLoading: Ref<boolean>; openShare: (row: any) => void; openQRCode: (row: any) => void; pageOptions: Ref<PageWithTabsAndPanelOptions>; showQRCodeModal: Ref<boolean>; showIntegrationModal: Ref<boolean>; link: Ref<string>; shareLoading: Ref<Map<string, boolean>>; currentTab: Ref<string>; changeTab: (option: TabsOptions) => void; } export declare function toAddressLine(addressEntity: AddressEntity | undefined, locale: Locale): string; export {};