@agendize/design-system
Version:
Agendize web design system
40 lines • 1.48 kB
TypeScript
import { Ref } from 'vue';
export interface CardDataEntity {
id: string;
title: string;
titleTranslatable?: boolean;
description?: string;
descriptionTranslatable?: boolean;
picture?: {
url: string;
alt: string;
};
disabledObject: boolean;
tag?: {
icon: string;
label: string;
translatable?: boolean;
};
object: any;
objectType: 'company' | string;
}
export interface QuickFilterActionType {
id: string;
label: string;
filter: (data: CardDataEntity[], search: string) => CardDataEntity[];
active: boolean;
multiple?: boolean;
defaultSelection?: boolean;
}
export interface CardListViewModelType {
search: Ref<string>;
visibleRowsId: Ref<String[]>;
rows: Ref<CardDataEntity[]>;
rowsChecked: Ref<CardDataEntity[]>;
checkCard: (item: CardDataEntity) => void;
loading: Ref<boolean>;
reload: () => void;
quickFilterAction: (filter: QuickFilterActionType) => void;
}
export declare function CardListViewModel(emitter: Function, selectable: boolean, fetchOnSearch?: boolean, modelData?: Ref<CardDataEntity[] | undefined>, fetchMoreData?: (page: number) => Promise<CardDataEntity[]>, fetchAndFilterMoreData?: (search: string, page: number) => Promise<CardDataEntity[]>, filter?: (data: CardDataEntity[], search: string) => CardDataEntity[], quickFilters?: QuickFilterActionType[]): CardListViewModelType;
//# sourceMappingURL=viewModel.d.ts.map