dn-react-router-toolkit 0.7.14 → 0.8.0

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.
Files changed (71) hide show
  1. package/dist/api/create_api_handler.d.mts +5 -4
  2. package/dist/api/create_api_handler.d.ts +5 -4
  3. package/dist/api/create_api_handler.js +0 -1
  4. package/dist/api/create_api_handler.mjs +0 -1
  5. package/dist/api/index.d.mts +1 -0
  6. package/dist/api/index.d.ts +1 -0
  7. package/dist/api/index.js +0 -2
  8. package/dist/api/index.mjs +0 -2
  9. package/dist/api/item_api_handler.d.mts +5 -4
  10. package/dist/api/item_api_handler.d.ts +5 -4
  11. package/dist/api/item_api_handler.js +0 -1
  12. package/dist/api/item_api_handler.mjs +0 -1
  13. package/dist/auth/cookie_manager.d.mts +2 -1
  14. package/dist/auth/cookie_manager.d.ts +2 -1
  15. package/dist/auth/cookie_manager.js +9 -3
  16. package/dist/auth/cookie_manager.mjs +9 -3
  17. package/dist/auth/index.js +9 -3
  18. package/dist/auth/index.mjs +9 -3
  19. package/dist/crud/crud_form.js +1 -1
  20. package/dist/crud/crud_form.mjs +1 -1
  21. package/dist/crud/crud_loader.d.mts +6 -5
  22. package/dist/crud/crud_loader.d.ts +6 -5
  23. package/dist/crud/crud_loader.js +46 -34
  24. package/dist/crud/crud_loader.mjs +46 -34
  25. package/dist/crud/crud_page.d.mts +3 -2
  26. package/dist/crud/crud_page.d.ts +3 -2
  27. package/dist/crud/crud_page.js +226 -198
  28. package/dist/crud/crud_page.mjs +224 -202
  29. package/dist/crud/generate_handlers.d.mts +3 -2
  30. package/dist/crud/generate_handlers.d.ts +3 -2
  31. package/dist/crud/generate_pages.d.mts +2 -1
  32. package/dist/crud/generate_pages.d.ts +2 -1
  33. package/dist/crud/index.d.mts +5 -3
  34. package/dist/crud/index.d.ts +5 -3
  35. package/dist/crud/index.js +246 -206
  36. package/dist/crud/index.mjs +252 -218
  37. package/dist/post/index.js +65 -58
  38. package/dist/post/index.mjs +68 -67
  39. package/dist/post/post_form_page.js +65 -58
  40. package/dist/post/post_form_page.mjs +68 -67
  41. package/dist/table/index.d.mts +7 -3
  42. package/dist/table/index.d.ts +7 -3
  43. package/dist/table/index.js +153 -105
  44. package/dist/table/index.mjs +149 -110
  45. package/dist/table/item_loader.d.mts +5 -4
  46. package/dist/table/item_loader.d.ts +5 -4
  47. package/dist/table/load_table.d.mts +30 -0
  48. package/dist/table/load_table.d.ts +30 -0
  49. package/dist/table/load_table.js +67 -0
  50. package/dist/table/load_table.mjs +45 -0
  51. package/dist/table/loader.d.mts +7 -15
  52. package/dist/table/loader.d.ts +7 -15
  53. package/dist/table/loader.js +47 -31
  54. package/dist/table/loader.mjs +46 -32
  55. package/dist/table/page.d.mts +6 -16
  56. package/dist/table/page.d.ts +6 -16
  57. package/dist/table/page.js +193 -165
  58. package/dist/table/page.mjs +194 -172
  59. package/dist/table/repository.d.mts +13 -11
  60. package/dist/table/repository.d.ts +13 -11
  61. package/dist/table/repository.js +1 -1
  62. package/dist/table/repository.mjs +1 -1
  63. package/dist/table/table_form.d.mts +13 -0
  64. package/dist/table/table_form.d.ts +13 -0
  65. package/dist/table/table_form.js +295 -0
  66. package/dist/table/table_form.mjs +270 -0
  67. package/dist/table/use_table.d.mts +4 -0
  68. package/dist/table/use_table.d.ts +4 -0
  69. package/dist/table/use_table.js +43 -0
  70. package/dist/table/use_table.mjs +18 -0
  71. package/package.json +3 -3
@@ -7938,52 +7938,59 @@ var FormLabel = createComponent("label", {
7938
7938
  var import_react_store_input4 = require("react-store-input");
7939
7939
  var import_jsx_runtime8 = require("react/jsx-runtime");
7940
7940
 
7941
- // src/table/loader.tsx
7941
+ // src/table/load_table.tsx
7942
7942
  var import_drizzle_orm = require("drizzle-orm");
7943
7943
 
7944
7944
  // src/api/create_api_handler.ts
7945
7945
  var import_http = require("dn-react-toolkit/http");
7946
7946
  var import_drizzle_orm2 = require("drizzle-orm");
7947
- var import_react_router4 = require("react-router");
7948
7947
  var import_uuid = require("uuid");
7949
7948
 
7950
7949
  // src/api/item_api_handler.ts
7951
7950
  var import_http2 = require("dn-react-toolkit/http");
7952
- var import_react_router5 = require("react-router");
7953
7951
 
7954
7952
  // src/crud/crud_page.tsx
7955
7953
  var import_react_router9 = require("react-router");
7956
7954
 
7957
7955
  // src/table/page.tsx
7958
7956
  var import_react_router8 = require("react-router");
7957
+
7958
+ // src/table/table_form.tsx
7959
+ var import_react_router7 = require("react-router");
7959
7960
  var import_go3 = require("react-icons/go");
7960
7961
 
7961
- // src/table/buttons.tsx
7962
+ // src/table/table.tsx
7962
7963
  var import_utils5 = require("dn-react-toolkit/utils");
7963
- var import_react_router6 = require("react-router");
7964
+ var import_go2 = require("react-icons/go");
7965
+ var import_react_router4 = require("react-router");
7964
7966
  var import_jsx_runtime9 = require("react/jsx-runtime");
7965
7967
 
7966
- // src/table/table.tsx
7968
+ // src/table/use_table.tsx
7969
+ var import_react_router5 = require("react-router");
7970
+
7971
+ // src/table/buttons.tsx
7967
7972
  var import_utils6 = require("dn-react-toolkit/utils");
7968
- var import_go2 = require("react-icons/go");
7969
- var import_react_router7 = require("react-router");
7973
+ var import_react_router6 = require("react-router");
7970
7974
  var import_jsx_runtime10 = require("react/jsx-runtime");
7971
7975
 
7972
- // src/table/page.tsx
7976
+ // src/table/table_form.tsx
7973
7977
  var import_jsx_runtime11 = require("react/jsx-runtime");
7974
7978
 
7975
- // src/crud/crud_page.tsx
7979
+ // src/table/page.tsx
7976
7980
  var import_jsx_runtime12 = require("react/jsx-runtime");
7977
7981
 
7982
+ // src/crud/crud_page.tsx
7983
+ var import_jsx_runtime13 = require("react/jsx-runtime");
7984
+
7978
7985
  // src/crud/generate_pages.tsx
7979
7986
  var import_react_router10 = require("react-router");
7980
- var import_jsx_runtime13 = require("react/jsx-runtime");
7987
+ var import_jsx_runtime14 = require("react/jsx-runtime");
7981
7988
 
7982
7989
  // src/crud/generate_routes.tsx
7983
7990
  var Routes = __toESM(require_routes());
7984
7991
 
7985
7992
  // src/post/post_form_page.tsx
7986
- var import_jsx_runtime14 = require("react/jsx-runtime");
7993
+ var import_jsx_runtime15 = require("react/jsx-runtime");
7987
7994
  var createPostFormPage = ({
7988
7995
  header: AdminPageHeader,
7989
7996
  textEditorClassName,
@@ -7993,13 +8000,13 @@ var createPostFormPage = ({
7993
8000
  const { boards } = (0, import_react_router11.useLoaderData)();
7994
8001
  const component = (0, import_react_store_input5.useStoreComponent)(form.store);
7995
8002
  const textEditorRef = (0, import_react6.useRef)(null);
7996
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
7997
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
8003
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
8004
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
7998
8005
  AdminPageHeader,
7999
8006
  {
8000
8007
  title: `${form.name} \uCD94\uAC00`,
8001
- actions: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
8002
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
8008
+ actions: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
8009
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8003
8010
  "button",
8004
8011
  {
8005
8012
  type: "button",
@@ -8010,7 +8017,7 @@ var createPostFormPage = ({
8010
8017
  children: "\uC0AD\uC81C\uD558\uAE30"
8011
8018
  }
8012
8019
  ),
8013
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
8020
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8014
8021
  "button",
8015
8022
  {
8016
8023
  type: "button",
@@ -8024,11 +8031,11 @@ var createPostFormPage = ({
8024
8031
  ] })
8025
8032
  }
8026
8033
  ),
8027
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "px-4", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "max-w-7xl mx-auto w-full", children: [
8028
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(FormRow, { children: [
8029
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(FormEntry, { children: [
8030
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FormLabel, { children: "\uACF5\uAC1C\uC5EC\uBD80" }),
8031
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
8034
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "px-4", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "max-w-7xl mx-auto w-full", children: [
8035
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(FormRow, { children: [
8036
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(FormEntry, { children: [
8037
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FormLabel, { children: "\uACF5\uAC1C\uC5EC\uBD80" }),
8038
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
8032
8039
  component.select,
8033
8040
  {
8034
8041
  name: "isPublic",
@@ -8036,15 +8043,15 @@ var createPostFormPage = ({
8036
8043
  toInputValue: (value) => value ? "true" : "false",
8037
8044
  toStateValue: (value) => Boolean(value === "true"),
8038
8045
  children: [
8039
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("option", { value: "true", children: "\uACF5\uAC1C" }),
8040
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("option", { value: "false", children: "\uBE44\uACF5\uAC1C" })
8046
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("option", { value: "true", children: "\uACF5\uAC1C" }),
8047
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("option", { value: "false", children: "\uBE44\uACF5\uAC1C" })
8041
8048
  ]
8042
8049
  }
8043
8050
  )
8044
8051
  ] }),
8045
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(FormEntry, { children: [
8046
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FormLabel, { children: "\uC791\uC131\uC77C\uC2DC" }),
8047
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
8052
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(FormEntry, { children: [
8053
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FormLabel, { children: "\uC791\uC131\uC77C\uC2DC" }),
8054
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8048
8055
  component.input,
8049
8056
  {
8050
8057
  name: "createdAt",
@@ -8054,17 +8061,17 @@ var createPostFormPage = ({
8054
8061
  )
8055
8062
  ] })
8056
8063
  ] }),
8057
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(FormRow, { children: [
8058
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(FormEntry, { children: [
8059
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FormLabel, { children: "\uAC8C\uC2DC\uD310" }),
8060
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(component.select, { name: "boardId", className: "select-form", children: [
8061
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("option", { value: "", children: "\uC120\uD0DD\uD558\uC138\uC694" }),
8062
- boards.map((board) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("option", { value: board.id, children: board.title }, board.id))
8064
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(FormRow, { children: [
8065
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(FormEntry, { children: [
8066
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FormLabel, { children: "\uAC8C\uC2DC\uD310" }),
8067
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(component.select, { name: "boardId", className: "select-form", children: [
8068
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("option", { value: "", children: "\uC120\uD0DD\uD558\uC138\uC694" }),
8069
+ boards.map((board) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("option", { value: board.id, children: board.title }, board.id))
8063
8070
  ] })
8064
8071
  ] }),
8065
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(FormEntry, { children: [
8066
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FormLabel, { children: "\uCE74\uD14C\uACE0\uB9AC" }),
8067
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
8072
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(FormEntry, { children: [
8073
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FormLabel, { children: "\uCE74\uD14C\uACE0\uB9AC" }),
8074
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8068
8075
  component.input,
8069
8076
  {
8070
8077
  name: "category",
@@ -8074,10 +8081,10 @@ var createPostFormPage = ({
8074
8081
  )
8075
8082
  ] })
8076
8083
  ] }),
8077
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(FormRow, { children: [
8078
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(FormEntry, { children: [
8079
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FormLabel, { children: "\uC81C\uBAA9" }),
8080
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
8084
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(FormRow, { children: [
8085
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(FormEntry, { children: [
8086
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FormLabel, { children: "\uC81C\uBAA9" }),
8087
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8081
8088
  component.input,
8082
8089
  {
8083
8090
  name: "title",
@@ -8092,9 +8099,9 @@ var createPostFormPage = ({
8092
8099
  }
8093
8100
  )
8094
8101
  ] }),
8095
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(FormEntry, { children: [
8096
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FormLabel, { children: "\uBD80\uC81C\uBAA9" }),
8097
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
8102
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(FormEntry, { children: [
8103
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FormLabel, { children: "\uBD80\uC81C\uBAA9" }),
8104
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8098
8105
  component.input,
8099
8106
  {
8100
8107
  name: "subtitle",
@@ -8104,10 +8111,10 @@ var createPostFormPage = ({
8104
8111
  )
8105
8112
  ] })
8106
8113
  ] }),
8107
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(FormRow, { children: [
8108
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(FormEntry, { children: [
8109
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FormLabel, { children: "\uC2AC\uB7EC\uADF8" }),
8110
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
8114
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(FormRow, { children: [
8115
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(FormEntry, { children: [
8116
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FormLabel, { children: "\uC2AC\uB7EC\uADF8" }),
8117
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8111
8118
  component.input,
8112
8119
  {
8113
8120
  name: "slug",
@@ -8116,9 +8123,9 @@ var createPostFormPage = ({
8116
8123
  }
8117
8124
  )
8118
8125
  ] }),
8119
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(FormEntry, { children: [
8120
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FormLabel, { children: "\uD0DC\uADF8" }),
8121
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
8126
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(FormEntry, { children: [
8127
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FormLabel, { children: "\uD0DC\uADF8" }),
8128
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8122
8129
  component.input,
8123
8130
  {
8124
8131
  name: "tags",
@@ -8128,9 +8135,9 @@ var createPostFormPage = ({
8128
8135
  )
8129
8136
  ] })
8130
8137
  ] }),
8131
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FormRow, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(FormEntry, { children: [
8132
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FormLabel, { children: "\uC124\uBA85" }),
8133
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
8138
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FormRow, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(FormEntry, { children: [
8139
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FormLabel, { children: "\uC124\uBA85" }),
8140
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8134
8141
  StoreTextEditor,
8135
8142
  {
8136
8143
  store: form.store,
@@ -8141,9 +8148,9 @@ var createPostFormPage = ({
8141
8148
  }
8142
8149
  )
8143
8150
  ] }) }),
8144
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FormRow, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(FormEntry, { children: [
8145
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FormLabel, { children: "\uC378\uB124\uC77C" }),
8146
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
8151
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FormRow, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(FormEntry, { children: [
8152
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FormLabel, { children: "\uC378\uB124\uC77C" }),
8153
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8147
8154
  PostThumbnailPicker,
8148
8155
  {
8149
8156
  store: form.store,
@@ -8152,14 +8159,14 @@ var createPostFormPage = ({
8152
8159
  )
8153
8160
  ] }) })
8154
8161
  ] }) }),
8155
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "sticky top-[160px] z-998 bg-white px-4", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
8162
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "sticky top-[160px] z-998 bg-white px-4", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8156
8163
  EditorToolbar,
8157
8164
  {
8158
8165
  textEditorRef,
8159
8166
  className: "max-w-7xl mx-auto"
8160
8167
  }
8161
8168
  ) }),
8162
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "px-4", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
8169
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "px-4", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8163
8170
  StoreTextEditor,
8164
8171
  {
8165
8172
  ref: textEditorRef,
@@ -7935,7 +7935,7 @@ var FormLabel = createComponent("label", {
7935
7935
  import { useStoreComponent } from "react-store-input";
7936
7936
  import { Fragment as Fragment2, jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
7937
7937
 
7938
- // src/table/loader.tsx
7938
+ // src/table/load_table.tsx
7939
7939
  import {
7940
7940
  and,
7941
7941
  ilike
@@ -7953,52 +7953,53 @@ import {
7953
7953
  import {
7954
7954
  and as and2
7955
7955
  } from "drizzle-orm";
7956
- import "react-router";
7957
7956
  import { v4 } from "uuid";
7958
7957
 
7959
7958
  // src/api/item_api_handler.ts
7960
7959
  import { UNAUTHORIZED as UNAUTHORIZED2 } from "dn-react-toolkit/http";
7961
- import "react-router";
7962
7960
 
7963
7961
  // src/crud/crud_page.tsx
7964
- import { useLoaderData as useLoaderData2, useLocation as useLocation3 } from "react-router";
7962
+ import { useLoaderData as useLoaderData2, useLocation as useLocation4 } from "react-router";
7965
7963
 
7966
7964
  // src/table/page.tsx
7967
- import {
7968
- Link as Link3,
7969
- useLoaderData,
7970
- useLocation as useLocation2,
7971
- useNavigate as useNavigate2,
7972
- useSearchParams as useSearchParams3
7973
- } from "react-router";
7965
+ import { Link as Link3, useLocation as useLocation3 } from "react-router";
7966
+
7967
+ // src/table/table_form.tsx
7968
+ import { useLocation as useLocation2, useNavigate as useNavigate2, useSearchParams as useSearchParams3 } from "react-router";
7974
7969
  import { GoSearch } from "react-icons/go";
7975
7970
 
7976
- // src/table/buttons.tsx
7971
+ // src/table/table.tsx
7977
7972
  import { cn as cn4 } from "dn-react-toolkit/utils";
7978
- import { Link, useLocation, useSearchParams } from "react-router";
7973
+ import { GoArrowDown, GoArrowUp } from "react-icons/go";
7974
+ import { Link, useSearchParams } from "react-router";
7979
7975
  import { Fragment as Fragment3, jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
7980
7976
 
7981
- // src/table/table.tsx
7977
+ // src/table/use_table.tsx
7978
+ import { useLoaderData } from "react-router";
7979
+
7980
+ // src/table/buttons.tsx
7982
7981
  import { cn as cn5 } from "dn-react-toolkit/utils";
7983
- import { GoArrowDown, GoArrowUp } from "react-icons/go";
7984
- import { Link as Link2, useSearchParams as useSearchParams2 } from "react-router";
7982
+ import { Link as Link2, useLocation, useSearchParams as useSearchParams2 } from "react-router";
7985
7983
  import { Fragment as Fragment4, jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
7986
7984
 
7987
- // src/table/page.tsx
7985
+ // src/table/table_form.tsx
7988
7986
  import { Fragment as Fragment5, jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
7989
7987
 
7988
+ // src/table/page.tsx
7989
+ import { Fragment as Fragment6, jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
7990
+
7990
7991
  // src/crud/crud_page.tsx
7991
- import { jsx as jsx12 } from "react/jsx-runtime";
7992
+ import { jsx as jsx13 } from "react/jsx-runtime";
7992
7993
 
7993
7994
  // src/crud/generate_pages.tsx
7994
- import { useLocation as useLocation4 } from "react-router";
7995
- import { jsx as jsx13 } from "react/jsx-runtime";
7995
+ import { useLocation as useLocation5 } from "react-router";
7996
+ import { jsx as jsx14 } from "react/jsx-runtime";
7996
7997
 
7997
7998
  // src/crud/generate_routes.tsx
7998
7999
  var Routes = __toESM(require_routes());
7999
8000
 
8000
8001
  // src/post/post_form_page.tsx
8001
- import { Fragment as Fragment6, jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
8002
+ import { Fragment as Fragment7, jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
8002
8003
  var createPostFormPage = ({
8003
8004
  header: AdminPageHeader,
8004
8005
  textEditorClassName,
@@ -8008,13 +8009,13 @@ var createPostFormPage = ({
8008
8009
  const { boards } = useLoaderData3();
8009
8010
  const component = useStoreComponent2(form.store);
8010
8011
  const textEditorRef = useRef3(null);
8011
- return /* @__PURE__ */ jsxs7(Fragment6, { children: [
8012
- /* @__PURE__ */ jsx14(
8012
+ return /* @__PURE__ */ jsxs8(Fragment7, { children: [
8013
+ /* @__PURE__ */ jsx15(
8013
8014
  AdminPageHeader,
8014
8015
  {
8015
8016
  title: `${form.name} \uCD94\uAC00`,
8016
- actions: /* @__PURE__ */ jsxs7(Fragment6, { children: [
8017
- /* @__PURE__ */ jsx14(
8017
+ actions: /* @__PURE__ */ jsxs8(Fragment7, { children: [
8018
+ /* @__PURE__ */ jsx15(
8018
8019
  "button",
8019
8020
  {
8020
8021
  type: "button",
@@ -8025,7 +8026,7 @@ var createPostFormPage = ({
8025
8026
  children: "\uC0AD\uC81C\uD558\uAE30"
8026
8027
  }
8027
8028
  ),
8028
- /* @__PURE__ */ jsx14(
8029
+ /* @__PURE__ */ jsx15(
8029
8030
  "button",
8030
8031
  {
8031
8032
  type: "button",
@@ -8039,11 +8040,11 @@ var createPostFormPage = ({
8039
8040
  ] })
8040
8041
  }
8041
8042
  ),
8042
- /* @__PURE__ */ jsx14("div", { className: "px-4", children: /* @__PURE__ */ jsxs7("div", { className: "max-w-7xl mx-auto w-full", children: [
8043
- /* @__PURE__ */ jsxs7(FormRow, { children: [
8044
- /* @__PURE__ */ jsxs7(FormEntry, { children: [
8045
- /* @__PURE__ */ jsx14(FormLabel, { children: "\uACF5\uAC1C\uC5EC\uBD80" }),
8046
- /* @__PURE__ */ jsxs7(
8043
+ /* @__PURE__ */ jsx15("div", { className: "px-4", children: /* @__PURE__ */ jsxs8("div", { className: "max-w-7xl mx-auto w-full", children: [
8044
+ /* @__PURE__ */ jsxs8(FormRow, { children: [
8045
+ /* @__PURE__ */ jsxs8(FormEntry, { children: [
8046
+ /* @__PURE__ */ jsx15(FormLabel, { children: "\uACF5\uAC1C\uC5EC\uBD80" }),
8047
+ /* @__PURE__ */ jsxs8(
8047
8048
  component.select,
8048
8049
  {
8049
8050
  name: "isPublic",
@@ -8051,15 +8052,15 @@ var createPostFormPage = ({
8051
8052
  toInputValue: (value) => value ? "true" : "false",
8052
8053
  toStateValue: (value) => Boolean(value === "true"),
8053
8054
  children: [
8054
- /* @__PURE__ */ jsx14("option", { value: "true", children: "\uACF5\uAC1C" }),
8055
- /* @__PURE__ */ jsx14("option", { value: "false", children: "\uBE44\uACF5\uAC1C" })
8055
+ /* @__PURE__ */ jsx15("option", { value: "true", children: "\uACF5\uAC1C" }),
8056
+ /* @__PURE__ */ jsx15("option", { value: "false", children: "\uBE44\uACF5\uAC1C" })
8056
8057
  ]
8057
8058
  }
8058
8059
  )
8059
8060
  ] }),
8060
- /* @__PURE__ */ jsxs7(FormEntry, { children: [
8061
- /* @__PURE__ */ jsx14(FormLabel, { children: "\uC791\uC131\uC77C\uC2DC" }),
8062
- /* @__PURE__ */ jsx14(
8061
+ /* @__PURE__ */ jsxs8(FormEntry, { children: [
8062
+ /* @__PURE__ */ jsx15(FormLabel, { children: "\uC791\uC131\uC77C\uC2DC" }),
8063
+ /* @__PURE__ */ jsx15(
8063
8064
  component.input,
8064
8065
  {
8065
8066
  name: "createdAt",
@@ -8069,17 +8070,17 @@ var createPostFormPage = ({
8069
8070
  )
8070
8071
  ] })
8071
8072
  ] }),
8072
- /* @__PURE__ */ jsxs7(FormRow, { children: [
8073
- /* @__PURE__ */ jsxs7(FormEntry, { children: [
8074
- /* @__PURE__ */ jsx14(FormLabel, { children: "\uAC8C\uC2DC\uD310" }),
8075
- /* @__PURE__ */ jsxs7(component.select, { name: "boardId", className: "select-form", children: [
8076
- /* @__PURE__ */ jsx14("option", { value: "", children: "\uC120\uD0DD\uD558\uC138\uC694" }),
8077
- boards.map((board) => /* @__PURE__ */ jsx14("option", { value: board.id, children: board.title }, board.id))
8073
+ /* @__PURE__ */ jsxs8(FormRow, { children: [
8074
+ /* @__PURE__ */ jsxs8(FormEntry, { children: [
8075
+ /* @__PURE__ */ jsx15(FormLabel, { children: "\uAC8C\uC2DC\uD310" }),
8076
+ /* @__PURE__ */ jsxs8(component.select, { name: "boardId", className: "select-form", children: [
8077
+ /* @__PURE__ */ jsx15("option", { value: "", children: "\uC120\uD0DD\uD558\uC138\uC694" }),
8078
+ boards.map((board) => /* @__PURE__ */ jsx15("option", { value: board.id, children: board.title }, board.id))
8078
8079
  ] })
8079
8080
  ] }),
8080
- /* @__PURE__ */ jsxs7(FormEntry, { children: [
8081
- /* @__PURE__ */ jsx14(FormLabel, { children: "\uCE74\uD14C\uACE0\uB9AC" }),
8082
- /* @__PURE__ */ jsx14(
8081
+ /* @__PURE__ */ jsxs8(FormEntry, { children: [
8082
+ /* @__PURE__ */ jsx15(FormLabel, { children: "\uCE74\uD14C\uACE0\uB9AC" }),
8083
+ /* @__PURE__ */ jsx15(
8083
8084
  component.input,
8084
8085
  {
8085
8086
  name: "category",
@@ -8089,10 +8090,10 @@ var createPostFormPage = ({
8089
8090
  )
8090
8091
  ] })
8091
8092
  ] }),
8092
- /* @__PURE__ */ jsxs7(FormRow, { children: [
8093
- /* @__PURE__ */ jsxs7(FormEntry, { children: [
8094
- /* @__PURE__ */ jsx14(FormLabel, { children: "\uC81C\uBAA9" }),
8095
- /* @__PURE__ */ jsx14(
8093
+ /* @__PURE__ */ jsxs8(FormRow, { children: [
8094
+ /* @__PURE__ */ jsxs8(FormEntry, { children: [
8095
+ /* @__PURE__ */ jsx15(FormLabel, { children: "\uC81C\uBAA9" }),
8096
+ /* @__PURE__ */ jsx15(
8096
8097
  component.input,
8097
8098
  {
8098
8099
  name: "title",
@@ -8107,9 +8108,9 @@ var createPostFormPage = ({
8107
8108
  }
8108
8109
  )
8109
8110
  ] }),
8110
- /* @__PURE__ */ jsxs7(FormEntry, { children: [
8111
- /* @__PURE__ */ jsx14(FormLabel, { children: "\uBD80\uC81C\uBAA9" }),
8112
- /* @__PURE__ */ jsx14(
8111
+ /* @__PURE__ */ jsxs8(FormEntry, { children: [
8112
+ /* @__PURE__ */ jsx15(FormLabel, { children: "\uBD80\uC81C\uBAA9" }),
8113
+ /* @__PURE__ */ jsx15(
8113
8114
  component.input,
8114
8115
  {
8115
8116
  name: "subtitle",
@@ -8119,10 +8120,10 @@ var createPostFormPage = ({
8119
8120
  )
8120
8121
  ] })
8121
8122
  ] }),
8122
- /* @__PURE__ */ jsxs7(FormRow, { children: [
8123
- /* @__PURE__ */ jsxs7(FormEntry, { children: [
8124
- /* @__PURE__ */ jsx14(FormLabel, { children: "\uC2AC\uB7EC\uADF8" }),
8125
- /* @__PURE__ */ jsx14(
8123
+ /* @__PURE__ */ jsxs8(FormRow, { children: [
8124
+ /* @__PURE__ */ jsxs8(FormEntry, { children: [
8125
+ /* @__PURE__ */ jsx15(FormLabel, { children: "\uC2AC\uB7EC\uADF8" }),
8126
+ /* @__PURE__ */ jsx15(
8126
8127
  component.input,
8127
8128
  {
8128
8129
  name: "slug",
@@ -8131,9 +8132,9 @@ var createPostFormPage = ({
8131
8132
  }
8132
8133
  )
8133
8134
  ] }),
8134
- /* @__PURE__ */ jsxs7(FormEntry, { children: [
8135
- /* @__PURE__ */ jsx14(FormLabel, { children: "\uD0DC\uADF8" }),
8136
- /* @__PURE__ */ jsx14(
8135
+ /* @__PURE__ */ jsxs8(FormEntry, { children: [
8136
+ /* @__PURE__ */ jsx15(FormLabel, { children: "\uD0DC\uADF8" }),
8137
+ /* @__PURE__ */ jsx15(
8137
8138
  component.input,
8138
8139
  {
8139
8140
  name: "tags",
@@ -8143,9 +8144,9 @@ var createPostFormPage = ({
8143
8144
  )
8144
8145
  ] })
8145
8146
  ] }),
8146
- /* @__PURE__ */ jsx14(FormRow, { children: /* @__PURE__ */ jsxs7(FormEntry, { children: [
8147
- /* @__PURE__ */ jsx14(FormLabel, { children: "\uC124\uBA85" }),
8148
- /* @__PURE__ */ jsx14(
8147
+ /* @__PURE__ */ jsx15(FormRow, { children: /* @__PURE__ */ jsxs8(FormEntry, { children: [
8148
+ /* @__PURE__ */ jsx15(FormLabel, { children: "\uC124\uBA85" }),
8149
+ /* @__PURE__ */ jsx15(
8149
8150
  StoreTextEditor,
8150
8151
  {
8151
8152
  store: form.store,
@@ -8156,9 +8157,9 @@ var createPostFormPage = ({
8156
8157
  }
8157
8158
  )
8158
8159
  ] }) }),
8159
- /* @__PURE__ */ jsx14(FormRow, { children: /* @__PURE__ */ jsxs7(FormEntry, { children: [
8160
- /* @__PURE__ */ jsx14(FormLabel, { children: "\uC378\uB124\uC77C" }),
8161
- /* @__PURE__ */ jsx14(
8160
+ /* @__PURE__ */ jsx15(FormRow, { children: /* @__PURE__ */ jsxs8(FormEntry, { children: [
8161
+ /* @__PURE__ */ jsx15(FormLabel, { children: "\uC378\uB124\uC77C" }),
8162
+ /* @__PURE__ */ jsx15(
8162
8163
  PostThumbnailPicker,
8163
8164
  {
8164
8165
  store: form.store,
@@ -8167,14 +8168,14 @@ var createPostFormPage = ({
8167
8168
  )
8168
8169
  ] }) })
8169
8170
  ] }) }),
8170
- /* @__PURE__ */ jsx14("div", { className: "sticky top-[160px] z-998 bg-white px-4", children: /* @__PURE__ */ jsx14(
8171
+ /* @__PURE__ */ jsx15("div", { className: "sticky top-[160px] z-998 bg-white px-4", children: /* @__PURE__ */ jsx15(
8171
8172
  EditorToolbar,
8172
8173
  {
8173
8174
  textEditorRef,
8174
8175
  className: "max-w-7xl mx-auto"
8175
8176
  }
8176
8177
  ) }),
8177
- /* @__PURE__ */ jsx14("div", { className: "px-4", children: /* @__PURE__ */ jsx14(
8178
+ /* @__PURE__ */ jsx15("div", { className: "px-4", children: /* @__PURE__ */ jsx15(
8178
8179
  StoreTextEditor,
8179
8180
  {
8180
8181
  ref: textEditorRef,