Move table core to datagrid lib

active-uix
dev 5 months ago
parent 4829ce1321
commit 02c1fb43ab

@ -0,0 +1 @@
export * from './table-core.svelte';

@ -1,4 +1,4 @@
import type { OnChangeFn } from '../../types';
export type OnChangeFn<T> = (value: T) => void;
// ── Column definition ────────────────────────────────────────────────────────

@ -8,8 +8,8 @@ export { default as Cell } from './components/table-cell.svelte';
export { default as RowDetail } from './components/table-row-detail.svelte';
export { default as RowDetailTrigger } from './components/table-row-detail-trigger.svelte';
export { createTable, filterFns } from './table-core.svelte';
export type { BuiltInFilterFn } from './table-core.svelte';
export { createTable, filterFns } from '$libs/datagrid';
export type { BuiltInFilterFn } from '$libs/datagrid';
export type {
ColumnDef,
@ -30,7 +30,7 @@ export type {
TableHeader,
TableRow,
TableCell
} from './table-core.svelte';
} from '$libs/datagrid';
export type {
TableProviderProps as ProviderProps,

@ -5,7 +5,7 @@ import type { Direction, SomaKeyboardEvent, SomaMouseEvent } from '../../types';
import { KEYS } from '../../keyboard';
import { Soma } from '../../core/soma.svelte';
import { TABLE_LANGS } from './langs';
import type { TableInstance, TableHeader, TableRow, TableCell } from './table-core.svelte';
import type { TableInstance, TableHeader, TableRow, TableCell } from '$libs/datagrid';
import { tableMorfo } from '../../../morfo/components/table';
import type { SomaRuntime, SomaRuntimePart } from '../../runtime.svelte';

@ -10,7 +10,7 @@ import type {
PrimitiveTRAttributes,
PrimitiveButtonAttributes
} from '../../types';
import type { TableInstance, TableHeader, TableRow, TableCell } from './table-core.svelte';
import type { TableInstance, TableHeader, TableRow, TableCell } from '$libs/datagrid';
export type TableProviderProps = WithChild<{
/** Unique identifier. Auto-generated if omitted. */

Loading…
Cancel
Save

Powered by TurnKey Linux.