import DataHandler from './DataHandler'; import Datatable from './Datatable.svelte'; import Search from './Search.svelte'; import RowsPerPage from './RowsPerPage.svelte'; import Th from './Th.svelte'; import ThFilter from './ThFilter.svelte'; import RowCount from './RowCount.svelte'; import SelectedCount from './SelectedCount.svelte'; import Pagination from './Pagination.svelte'; export { DataHandler, Datatable, Search, RowsPerPage, Th, ThFilter, RowCount, SelectedCount, Pagination }; export type Internationalization = { search?: string; show?: string; entries?: string; filter?: string; rowCount?: string; noRows?: string; previous?: string; next?: string; selectedCount?: string; }; export type Row = { [key: string]: unknown; }; export type Filter = { filterBy: keyof Row; value?: string | number | boolean; }; export type Sort = { orderBy?: keyof Row; direction?: 'asc' | 'desc'; }; export type State = { pageNumber: number; rowsPerPage: number; offset: number; search: string | undefined; sort: Sort | undefined; filters: Filter[] | undefined; setTotalRows: (value: number) => void; /** * @deprecated use 'sort' instead */ sorted: Sort | undefined; }; /** * @deprecated use (Row[keyof Row] | Row) instead * @since v1.13.0 2023-11-14 * * import type { Row } from '@vincjo/datatables' */ export type Selectable = Row[keyof Row] | Row; /** * @deprecated use type Sort instead * @since v1.13.0 2023-11-14 * * import type { Sort } from '@vincjo/datatables' */ export type Order = Sort;