UNPKG

claritykit-svelte

Version:

A comprehensive Svelte component library focused on accessibility, ADHD-optimized design, developer experience, and full SSR compatibility

26 lines 977 B
import type { DatabaseViewConfig, ViewType, FilterConfig, SortConfig, CustomFunction } from './types'; interface Props { id?: string; config: DatabaseViewConfig; data?: any[]; loading?: boolean; error?: Error | null; editable?: boolean; realtime?: boolean; onCellEdit?: (row: any, field: string, value: any) => Promise<void>; onRowAdd?: (data: any) => Promise<void>; onRowDelete?: (id: string) => Promise<void>; onViewChange?: (viewType: ViewType) => void; onFilterChange?: (filters: FilterConfig[]) => void; onSortChange?: (sort: SortConfig) => void; customFunctions?: Record<string, CustomFunction>; class?: string; } declare const DatabaseView: import("svelte").Component<Props, { refresh: () => void; getSelectedRows: () => string[]; clearSelection: () => void; }, "">; type DatabaseView = ReturnType<typeof DatabaseView>; export default DatabaseView; //# sourceMappingURL=DatabaseView.svelte.d.ts.map