dn-react-router-toolkit 0.6.1 → 0.6.3
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.
- package/dist/api/create_api_handler.js +41 -43
- package/dist/api/create_api_handler.mjs +41 -43
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +2 -2
- package/dist/client/store_text_editor.js +2 -2
- package/dist/client/store_text_editor.mjs +2 -2
- package/dist/crud/crud_form.d.mts +1 -1
- package/dist/crud/crud_form.d.ts +1 -1
- package/dist/crud/crud_form.js +28 -34
- package/dist/crud/crud_form.mjs +28 -34
- package/dist/crud/crud_form_provider.d.mts +14 -16
- package/dist/crud/crud_form_provider.d.ts +14 -16
- package/dist/crud/crud_form_provider.js +68 -53
- package/dist/crud/crud_form_provider.mjs +68 -53
- package/dist/crud/crud_loader.js +41 -43
- package/dist/crud/crud_loader.mjs +41 -43
- package/dist/crud/crud_page.d.mts +5 -4
- package/dist/crud/crud_page.d.ts +5 -4
- package/dist/crud/crud_page.js +105 -94
- package/dist/crud/crud_page.mjs +105 -94
- package/dist/crud/index.d.mts +1 -1
- package/dist/crud/index.d.ts +1 -1
- package/dist/crud/index.js +142 -137
- package/dist/crud/index.mjs +142 -137
- package/dist/crud/serialize.d.mts +4 -0
- package/dist/crud/serialize.d.ts +4 -0
- package/dist/crud/serialize.js +122 -0
- package/dist/crud/serialize.mjs +96 -0
- package/dist/table/index.js +3 -3
- package/dist/table/index.mjs +3 -3
- package/dist/table/page.d.mts +2 -2
- package/dist/table/page.d.ts +2 -2
- package/dist/table/page.js +3 -3
- package/dist/table/page.mjs +3 -3
- package/package.json +93 -93
package/dist/table/page.js
CHANGED
|
@@ -366,7 +366,7 @@ function createTablePage({
|
|
|
366
366
|
primaryKey = "id"
|
|
367
367
|
}) {
|
|
368
368
|
return function TablePage({
|
|
369
|
-
|
|
369
|
+
header: Header
|
|
370
370
|
}) {
|
|
371
371
|
const { pathname } = (0, import_react_router3.useLocation)();
|
|
372
372
|
const { table } = (0, import_react_router3.useLoaderData)();
|
|
@@ -380,12 +380,12 @@ function createTablePage({
|
|
|
380
380
|
};
|
|
381
381
|
const [searchParams] = (0, import_react_router3.useSearchParams)();
|
|
382
382
|
return /* @__PURE__ */ import_react5.default.createElement(import_react5.default.Fragment, null, /* @__PURE__ */ import_react5.default.createElement(
|
|
383
|
-
|
|
383
|
+
Header,
|
|
384
384
|
{
|
|
385
385
|
title: name,
|
|
386
386
|
actions: /* @__PURE__ */ import_react5.default.createElement(import_react_router3.Link, { to: `${pathname}/new`, className: "button-primary" }, name, " \uCD94\uAC00")
|
|
387
387
|
}
|
|
388
|
-
), /* @__PURE__ */ import_react5.default.createElement("div", { className: "max-w-7xl mx-auto" }, searchKey && /* @__PURE__ */ import_react5.default.createElement(
|
|
388
|
+
), /* @__PURE__ */ import_react5.default.createElement("div", { className: "max-w-7xl mx-auto w-full overflow-auto" }, searchKey && /* @__PURE__ */ import_react5.default.createElement(
|
|
389
389
|
"form",
|
|
390
390
|
{
|
|
391
391
|
className: "h-18 px-4 flex items-center border-t",
|
package/dist/table/page.mjs
CHANGED
|
@@ -338,7 +338,7 @@ function createTablePage({
|
|
|
338
338
|
primaryKey = "id"
|
|
339
339
|
}) {
|
|
340
340
|
return function TablePage({
|
|
341
|
-
|
|
341
|
+
header: Header
|
|
342
342
|
}) {
|
|
343
343
|
const { pathname } = useLocation2();
|
|
344
344
|
const { table } = useLoaderData();
|
|
@@ -352,12 +352,12 @@ function createTablePage({
|
|
|
352
352
|
};
|
|
353
353
|
const [searchParams] = useSearchParams3();
|
|
354
354
|
return /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(
|
|
355
|
-
|
|
355
|
+
Header,
|
|
356
356
|
{
|
|
357
357
|
title: name,
|
|
358
358
|
actions: /* @__PURE__ */ React5.createElement(Link3, { to: `${pathname}/new`, className: "button-primary" }, name, " \uCD94\uAC00")
|
|
359
359
|
}
|
|
360
|
-
), /* @__PURE__ */ React5.createElement("div", { className: "max-w-7xl mx-auto" }, searchKey && /* @__PURE__ */ React5.createElement(
|
|
360
|
+
), /* @__PURE__ */ React5.createElement("div", { className: "max-w-7xl mx-auto w-full overflow-auto" }, searchKey && /* @__PURE__ */ React5.createElement(
|
|
361
361
|
"form",
|
|
362
362
|
{
|
|
363
363
|
className: "h-18 px-4 flex items-center border-t",
|
package/package.json
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"name": "dn-react-router-toolkit",
|
|
3
|
+
"version": "0.6.3",
|
|
4
|
+
"types": "./dist/index.d.ts",
|
|
5
|
+
"main": "./dist/index.mjs",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./auth": {
|
|
14
|
+
"types": "./dist/auth/index.d.ts",
|
|
15
|
+
"import": "./dist/auth/index.mjs",
|
|
16
|
+
"require": "./dist/auth/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./api": {
|
|
19
|
+
"types": "./dist/api/index.d.ts",
|
|
20
|
+
"import": "./dist/api/index.mjs",
|
|
21
|
+
"require": "./dist/api/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./client": {
|
|
24
|
+
"types": "./dist/client/index.d.ts",
|
|
25
|
+
"import": "./dist/client/index.mjs",
|
|
26
|
+
"require": "./dist/client/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./seo": {
|
|
29
|
+
"types": "./dist/seo/index.d.ts",
|
|
30
|
+
"import": "./dist/seo/index.mjs",
|
|
31
|
+
"require": "./dist/seo/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./db": {
|
|
34
|
+
"types": "./dist/db/index.d.ts",
|
|
35
|
+
"import": "./dist/db/index.mjs",
|
|
36
|
+
"require": "./dist/db/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./db/backup": {
|
|
39
|
+
"types": "./dist/db/backup/index.d.ts",
|
|
40
|
+
"import": "./dist/db/backup/index.mjs",
|
|
41
|
+
"require": "./dist/db/backup/index.js"
|
|
42
|
+
},
|
|
43
|
+
"./table": {
|
|
44
|
+
"types": "./dist/table/index.d.ts",
|
|
45
|
+
"import": "./dist/table/index.mjs",
|
|
46
|
+
"require": "./dist/table/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./crud": {
|
|
49
|
+
"types": "./dist/crud/index.d.ts",
|
|
50
|
+
"import": "./dist/crud/index.mjs",
|
|
51
|
+
"require": "./dist/crud/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./post": {
|
|
54
|
+
"types": "./dist/post/index.d.ts",
|
|
55
|
+
"import": "./dist/post/index.mjs",
|
|
56
|
+
"require": "./dist/post/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./form": {
|
|
59
|
+
"types": "./dist/form/index.d.ts",
|
|
60
|
+
"import": "./dist/form/index.mjs",
|
|
61
|
+
"require": "./dist/form/index.js"
|
|
62
|
+
}
|
|
12
63
|
},
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"require": "./dist/auth/index.js"
|
|
64
|
+
"scripts": {
|
|
65
|
+
"build": "tsup",
|
|
66
|
+
"dev": "tsup --watch"
|
|
17
67
|
},
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"require": "./dist/api/index.js"
|
|
68
|
+
"repository": {
|
|
69
|
+
"type": "git",
|
|
70
|
+
"url": "git+https://github.com/dndnsoft/dn-react-router-toolkit.git"
|
|
22
71
|
},
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
72
|
+
"author": "",
|
|
73
|
+
"license": "MIT",
|
|
74
|
+
"bugs": {
|
|
75
|
+
"url": "https://github.com/dndnsoft/dn-react-router-toolkit/issues"
|
|
27
76
|
},
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
77
|
+
"homepage": "https://github.com/dndnsoft/dn-react-router-toolkit#readme",
|
|
78
|
+
"description": "",
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"@types/node": "^24.10.1",
|
|
81
|
+
"@types/react": "^19",
|
|
82
|
+
"@types/react-dom": "^19",
|
|
83
|
+
"schema-dts": "^1.1.5",
|
|
84
|
+
"tsup": "^8.5.1",
|
|
85
|
+
"typescript": "^5.7.3"
|
|
32
86
|
},
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
87
|
+
"dependencies": {
|
|
88
|
+
"@react-router/dev": "^7.11.0",
|
|
89
|
+
"dn-react-text-editor": "^0.2.4",
|
|
90
|
+
"dn-react-toolkit": "^0.2.49",
|
|
91
|
+
"pg": "^8.16.3",
|
|
92
|
+
"react-store-input": "^0.1.7",
|
|
93
|
+
"uuid": "^13.0.0"
|
|
37
94
|
},
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"./table": {
|
|
44
|
-
"types": "./dist/table/index.d.ts",
|
|
45
|
-
"import": "./dist/table/index.mjs",
|
|
46
|
-
"require": "./dist/table/index.js"
|
|
47
|
-
},
|
|
48
|
-
"./crud": {
|
|
49
|
-
"types": "./dist/crud/index.d.ts",
|
|
50
|
-
"import": "./dist/crud/index.mjs",
|
|
51
|
-
"require": "./dist/crud/index.js"
|
|
52
|
-
},
|
|
53
|
-
"./post": {
|
|
54
|
-
"types": "./dist/post/index.d.ts",
|
|
55
|
-
"import": "./dist/post/index.mjs",
|
|
56
|
-
"require": "./dist/post/index.js"
|
|
57
|
-
},
|
|
58
|
-
"./form": {
|
|
59
|
-
"types": "./dist/form/index.d.ts",
|
|
60
|
-
"import": "./dist/form/index.mjs",
|
|
61
|
-
"require": "./dist/form/index.js"
|
|
95
|
+
"peerDependencies": {
|
|
96
|
+
"drizzle-orm": "^0.45.1",
|
|
97
|
+
"react": "^19",
|
|
98
|
+
"react-dom": "^19",
|
|
99
|
+
"react-router": "^7"
|
|
62
100
|
}
|
|
63
|
-
|
|
64
|
-
"scripts": {
|
|
65
|
-
"build": "tsup",
|
|
66
|
-
"dev": "tsup --watch"
|
|
67
|
-
},
|
|
68
|
-
"repository": {
|
|
69
|
-
"type": "git",
|
|
70
|
-
"url": "git+https://github.com/dndnsoft/dn-react-router-toolkit.git"
|
|
71
|
-
},
|
|
72
|
-
"author": "",
|
|
73
|
-
"license": "MIT",
|
|
74
|
-
"bugs": {
|
|
75
|
-
"url": "https://github.com/dndnsoft/dn-react-router-toolkit/issues"
|
|
76
|
-
},
|
|
77
|
-
"homepage": "https://github.com/dndnsoft/dn-react-router-toolkit#readme",
|
|
78
|
-
"description": "",
|
|
79
|
-
"devDependencies": {
|
|
80
|
-
"@types/node": "^24.10.1",
|
|
81
|
-
"@types/react": "^19",
|
|
82
|
-
"@types/react-dom": "^19",
|
|
83
|
-
"schema-dts": "^1.1.5",
|
|
84
|
-
"tsup": "^8.5.1",
|
|
85
|
-
"typescript": "^5.7.3"
|
|
86
|
-
},
|
|
87
|
-
"dependencies": {
|
|
88
|
-
"@react-router/dev": "^7.11.0",
|
|
89
|
-
"dn-react-text-editor": "^0.2.2",
|
|
90
|
-
"dn-react-toolkit": "^0.2.49",
|
|
91
|
-
"pg": "^8.16.3",
|
|
92
|
-
"react-store-input": "^0.1.5",
|
|
93
|
-
"uuid": "^13.0.0"
|
|
94
|
-
},
|
|
95
|
-
"peerDependencies": {
|
|
96
|
-
"drizzle-orm": "^0.45.1",
|
|
97
|
-
"react": "^19",
|
|
98
|
-
"react-dom": "^19",
|
|
99
|
-
"react-router": "^7"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
101
|
+
}
|