@agendize/vue-settings
Version:
Vue agendize's settings component
49 lines (48 loc) • 2.22 kB
TypeScript
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 "../../view/fetchAllCompaniesUseCase";
export declare enum COMPANIES_TABS {
COMPANIES = "companies",
PLANNINGS = "plannings"
}
export declare const CompaniesPageOptions: (i18n: any) => Ref<{
title?: string | undefined;
subTitle?: string | undefined;
titleTranslatable?: boolean | undefined;
subTitleTranslatable?: boolean | undefined;
tabs: {
id: string;
title: string;
helper?: boolean | undefined;
visible?: boolean | undefined;
}[];
initialTabId?: string | undefined;
helper?: boolean | undefined;
mobileBack?: boolean | undefined;
}>;
export declare function CompaniesCardListViewModel(emitter: Function, companiesTable: any, api: CalendarApi, locale: Locale, fetchAllCompaniesUseCase: FetchAllCompaniesUseCase, organisation: AccountEntity, router?: Router): CompaniesCardListViewModelType;
interface CompaniesCardListViewModelType {
companies: Ref<CompanyEntity[]>;
filterCompanies: (companies: CardDataEntity[], search: string) => CardDataEntity[];
selectCompany: (company: CardDataEntity[]) => void;
selectCompanyLine: (company: CardDataEntity) => 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 {};