@kayord/ui 0.16.4 → 0.16.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as DataTable } from "./DataTable.svelte";
|
|
2
|
-
export { ShadTable,
|
|
2
|
+
export { ShadTable, createShadTable } from "./shad-table.svelte";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as DataTable } from "./DataTable.svelte";
|
|
2
|
-
export { ShadTable,
|
|
2
|
+
export { ShadTable, createShadTable } from "./shad-table.svelte";
|
|
@@ -5,7 +5,7 @@ interface ShadTableOptions<TData extends RowData> extends Omit<TableOptions<TDat
|
|
|
5
5
|
enableVisibility?: boolean;
|
|
6
6
|
enableRowSelectionUI?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare function
|
|
8
|
+
export declare function createShadTable<TData extends RowData>(shadOptions: ShadTableOptions<TData>, stateUpdate?: (state: Partial<TableState>) => void): Table<TData>;
|
|
9
9
|
export declare class ShadTable<TData extends RowData> {
|
|
10
10
|
#private;
|
|
11
11
|
columns: ColumnDef<TData>[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createTable, getCoreRowModel, getPaginationRowModel, getSortedRowModel, } from "@tanstack/table-core";
|
|
2
2
|
import DataTableCheckbox from "./DataTableCheckbox.svelte";
|
|
3
3
|
import { renderComponent } from "../../ui";
|
|
4
|
-
export function
|
|
4
|
+
export function createShadTable(shadOptions, stateUpdate) {
|
|
5
5
|
if (!shadOptions.getCoreRowModel) {
|
|
6
6
|
shadOptions.getCoreRowModel = getCoreRowModel();
|
|
7
7
|
}
|