@svadmin/ui 0.32.6 → 0.32.8
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.
|
@@ -78,10 +78,8 @@
|
|
|
78
78
|
Skeleton: Skeleton as unknown as ComponentRegistry['Skeleton'],
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
//
|
|
82
|
-
|
|
83
|
-
setComponentRegistry({ ...defaultComponents, ...userComponents });
|
|
84
|
-
});
|
|
81
|
+
// Set up context synchronously to avoid context undefined crash in children
|
|
82
|
+
setComponentRegistry({ ...defaultComponents, ...userComponents });
|
|
85
83
|
|
|
86
84
|
// Resolve router provider (default to hash)
|
|
87
85
|
const resolvedRouter = $derived(routerProvider ?? createHashRouterProvider());
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
type ColumnVisibilityState,
|
|
10
10
|
type ExpandedState,
|
|
11
11
|
} from '@tanstack/svelte-table';
|
|
12
|
-
import {
|
|
12
|
+
import { createCoreRowModel } from '@tanstack/table-core';
|
|
13
13
|
|
|
14
14
|
import { useList, useDelete, useDeleteMany, getResource, notify } from '@svadmin/core';
|
|
15
15
|
import type { Pagination as PaginationState, Sort, Filter, FieldDefinition } from '@svadmin/core';
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
const tbl = createTable({
|
|
281
281
|
get data() { return query.data?.data ?? []; },
|
|
282
282
|
get columns() { return columns; },
|
|
283
|
-
getCoreRowModel:
|
|
283
|
+
getCoreRowModel: createCoreRowModel(),
|
|
284
284
|
manualPagination: true,
|
|
285
285
|
manualSorting: true,
|
|
286
286
|
getRowId: (row: any) => String(row[primaryKey]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@svadmin/ui",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.8",
|
|
4
4
|
"description": "Pre-built admin UI components — AdminApp, AutoTable, AutoForm, Sidebar, Layout",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@lucide/svelte": "^1.7.0",
|
|
66
|
-
"@tanstack/svelte-table": "^9.0.0-alpha.
|
|
66
|
+
"@tanstack/svelte-table": "^9.0.0-alpha.32",
|
|
67
67
|
"bits-ui": "^2.17.1",
|
|
68
68
|
"clsx": "^2.1.1",
|
|
69
69
|
"cmdk-sv": "^0.0.19",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"url": "https://github.com/zuohuadong/svadmin/issues"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@tanstack/table-core": "
|
|
86
|
+
"@tanstack/table-core": "^9.0.0-alpha.32"
|
|
87
87
|
},
|
|
88
88
|
"scripts": {
|
|
89
89
|
"build": "svelte-package -i src -o dist"
|