@opengis/admin 0.1.29 → 0.1.31

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 (105) hide show
  1. package/README.md +29 -29
  2. package/config.js +4 -4
  3. package/dist/{IconSearch-D9I5Aq9M.js → IconSearch-Cm3RlWfH.js} +1 -1
  4. package/dist/{add-page-DlCRMnx_.js → add-page-biI99Ael.js} +1 -1
  5. package/dist/{admin-interface-96V27WHl.js → admin-interface-BfR4PaL8.js} +102 -99
  6. package/dist/{admin-view-D-4XxCw7.js → admin-view-XeWwyAau.js} +3 -3
  7. package/dist/admin.js +1 -1
  8. package/dist/admin.umd.cjs +202 -90
  9. package/dist/{card-page-DQlo1_B4.js → card-page-DVQtodyt.js} +2 -2
  10. package/dist/{card-view-oRDd-qea.js → card-view-BGH387MW.js} +1 -1
  11. package/dist/{edit-page-q-vG6Aun.js → edit-page-DChoKldN.js} +1 -1
  12. package/dist/import-file-C-smIzAI.js +46478 -0
  13. package/dist/style.css +1 -1
  14. package/module/settings/card/admin.roles.table/access.hbs +27 -27
  15. package/module/settings/card/admin.roles.table/general_info.hbs +16 -16
  16. package/module/settings/card/admin.roles.table/index.yml +14 -14
  17. package/module/settings/card/admin.roles.table/users.hbs +27 -27
  18. package/module/settings/card/admin.routes.table/general_info.hbs +40 -40
  19. package/module/settings/card/admin.routes.table/index.yml +8 -8
  20. package/module/settings/card/admin.routes.table/users.hbs +33 -33
  21. package/module/settings/card/admin.users.table/general_info.hbs +25 -25
  22. package/module/settings/card/admin.users.table/index.yml +12 -12
  23. package/module/settings/card/admin.users.table/logs.hbs +30 -30
  24. package/module/settings/card/admin.users.table/user_roles.hbs +24 -24
  25. package/module/settings/cls/core.actions.json +13 -13
  26. package/module/settings/cls/core.scope.json +13 -13
  27. package/module/settings/cls/properties.site_status.json +13 -13
  28. package/module/settings/cls/properties.widget_status.json +13 -13
  29. package/module/settings/cls/users.user_type.json +13 -13
  30. package/module/settings/form/admin.access.form.json +36 -36
  31. package/module/settings/form/admin.properties.form.json +15 -15
  32. package/module/settings/form/admin.roles.form.json +19 -19
  33. package/module/settings/form/admin.routes.form.json +25 -25
  34. package/module/settings/form/admin.user_properties.form.json +15 -15
  35. package/module/settings/form/admin.user_roles.form.json +21 -21
  36. package/module/settings/form/admin.users.form.json +150 -150
  37. package/module/settings/form/user.user_roles.form.json +13 -13
  38. package/module/settings/interface/admin.properties.json +4 -4
  39. package/module/settings/interface/admin.roles.json +4 -4
  40. package/module/settings/interface/admin.routes.json +4 -4
  41. package/module/settings/interface/admin.users.json +4 -4
  42. package/module/settings/menu.json +39 -45
  43. package/module/settings/select/core.roles.json +2 -2
  44. package/module/settings/select/core.user_uid.sql +1 -1
  45. package/module/settings/table/admin.access.table.json +77 -77
  46. package/module/settings/table/admin.properties.table.json +33 -33
  47. package/module/settings/table/admin.roles.table.json +58 -58
  48. package/module/settings/table/admin.routes.table.json +55 -55
  49. package/module/settings/table/admin.user_properties.table.json +28 -29
  50. package/module/settings/table/admin.user_roles.table.json +66 -66
  51. package/module/settings/table/admin.users.table.json +119 -119
  52. package/package.json +74 -67
  53. package/plugin.js +102 -25
  54. package/server/helpers/controllers/badge.js +11 -11
  55. package/server/helpers/controllers/hb.js +2 -2
  56. package/server/helpers/controllers/map.js +2 -2
  57. package/server/helpers/controllers/mls.js +2 -2
  58. package/server/helpers/controllers/vue.js +2 -2
  59. package/server/helpers/index.mjs +13 -13
  60. package/server/plugins/docs.js +28 -28
  61. package/server/plugins/hook.js +166 -166
  62. package/server/plugins/vite.js +69 -69
  63. package/server/routes/data/controllers/cardData.js +56 -56
  64. package/server/routes/data/controllers/cardTabData.js +39 -39
  65. package/server/routes/data/controllers/funcs/getFilterSQL/index.js +85 -85
  66. package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +142 -142
  67. package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
  68. package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +67 -67
  69. package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
  70. package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
  71. package/server/routes/data/controllers/tableData.js +121 -121
  72. package/server/routes/data/controllers/tableDataId.js +27 -27
  73. package/server/routes/data/controllers/tableFilter.js +54 -54
  74. package/server/routes/data/controllers/utils/assignTokens.js +30 -30
  75. package/server/routes/data/controllers/utils/getColumns.js +21 -21
  76. package/server/routes/data/index.mjs +12 -12
  77. package/server/routes/menu/controllers/getMenu.js +33 -33
  78. package/server/routes/menu/index.mjs +5 -5
  79. package/server/routes/properties/controllers/admin.properties.get.js +29 -29
  80. package/server/routes/properties/controllers/user.properties.get.js +34 -34
  81. package/server/routes/properties/controllers/user.properties.post.js +30 -30
  82. package/server/routes/properties/funcs/getSettings.js +56 -56
  83. package/server/routes/properties/funcs/setSettings.js +44 -44
  84. package/server/routes/properties/funcs/utils/dataInsert.js +26 -26
  85. package/server/routes/properties/index.mjs +26 -26
  86. package/server/routes/root.mjs +3 -3
  87. package/server/routes/templates/controllers/getTemplate.js +14 -14
  88. package/server/routes/templates/index.mjs +14 -14
  89. package/server/templates/cls/itree.recrzone_category.json +73 -73
  90. package/server/templates/cls/test.json +9 -9
  91. package/server/templates/form/admin.user_cls.data.form.json +49 -49
  92. package/server/templates/form/admin.user_group_rel.form.json +21 -21
  93. package/server/templates/form/cp_building.form.json +32 -32
  94. package/server/templates/form/form-user-pass.json +10 -10
  95. package/server/templates/form/form-user_group.json +39 -39
  96. package/server/templates/form/form-users.json +156 -156
  97. package/server/templates/form/user_group_access.form.json +22 -22
  98. package/server/templates/select/account_id.json +2 -2
  99. package/server/templates/table/gis.dataset.table.json +43 -43
  100. package/server/templates/table/management.user_group.table.json +112 -112
  101. package/server/templates/table/management.users.table.json +126 -126
  102. package/utils.js +8 -8
  103. package/dist/import-file-BsZhLoDU.js +0 -30438
  104. package/module/settings/form/admin.user_properties.entity.form.json +0 -71
  105. package/module/settings/table/admin.user_properties.entity.table.json +0 -76
package/README.md CHANGED
@@ -1,29 +1,29 @@
1
- # settings
2
-
3
- [![NPM version](https://img.shields.io/npm/v/@opengis/admin)](https://www.npmjs.com/package/@opengis/admin)
4
- [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
5
-
6
- It standardizes the entire authorization process, while taking care of everything from login to logout
7
-
8
- ## Install
9
-
10
- ```bash
11
- npm i @opengis/admin
12
- ```
13
-
14
- ## Publish
15
-
16
- ```bash
17
- npm run build
18
- npm publish
19
- ```
20
-
21
- ## Usage
22
-
23
- ```js
24
- fastify.register(import('@opengis/admin'), config);
25
- ```
26
-
27
- ## Documenation
28
-
29
- For a detailed understanding of `admin`, its features, and how to use them, refer to our [Documentation](https://apidocs.softpro.ua/opengis/plugin/).
1
+ # settings
2
+
3
+ [![NPM version](https://img.shields.io/npm/v/@opengis/admin)](https://www.npmjs.com/package/@opengis/admin)
4
+ [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
5
+
6
+ It standardizes the entire authorization process, while taking care of everything from login to logout
7
+
8
+ ## Install
9
+
10
+ ```bash
11
+ npm i @opengis/admin
12
+ ```
13
+
14
+ ## Publish
15
+
16
+ ```bash
17
+ npm run build
18
+ npm publish
19
+ ```
20
+
21
+ ## Usage
22
+
23
+ ```js
24
+ fastify.register(import('@opengis/admin'), config);
25
+ ```
26
+
27
+ ## Documenation
28
+
29
+ For a detailed understanding of `admin`, its features, and how to use them, refer to our [Documentation](https://apidocs.softpro.ua/opengis/plugin/).
package/config.js CHANGED
@@ -1,5 +1,5 @@
1
- import { readFile } from 'fs/promises';
2
- import fs from 'fs';
3
- const config = fs.existsSync('config.json') ? JSON.parse(await readFile('config.json')) : {};
4
-
1
+ import { readFile } from 'fs/promises';
2
+ import fs from 'fs';
3
+ const config = fs.existsSync('config.json') ? JSON.parse(await readFile('config.json')) : {};
4
+
5
5
  export default config;
@@ -1,5 +1,5 @@
1
1
  import { openBlock as o, createElementBlock as r, createElementVNode as t } from "vue";
2
- import { _ as n } from "./import-file-BsZhLoDU.js";
2
+ import { _ as n } from "./import-file-C-smIzAI.js";
3
3
  const s = {}, c = {
4
4
  class: "shrink-0 size-4 text-gray-400 dark:text-white/60",
5
5
  xmlns: "http://www.w3.org/2000/svg",
@@ -1,5 +1,5 @@
1
1
  import { u } from "./userMenu-CT1xO2Pt.js";
2
- import { _ as b, a as c } from "./import-file-BsZhLoDU.js";
2
+ import { _ as b, a as c } from "./import-file-C-smIzAI.js";
3
3
  import { resolveComponent as h, openBlock as i, createElementBlock as d, createElementVNode as a, createBlock as p, createCommentVNode as f } from "vue";
4
4
  const g = {
5
5
  data() {
@@ -1,8 +1,8 @@
1
- import { _ as m, a as C } from "./import-file-BsZhLoDU.js";
1
+ import { _ as m, a as C } from "./import-file-C-smIzAI.js";
2
2
  import { u as B } from "./userMenu-CT1xO2Pt.js";
3
- import { openBlock as o, createElementBlock as i, createStaticVNode as A, createTextVNode as T, toDisplayString as V, createCommentVNode as v, createElementVNode as l, Fragment as x, resolveComponent as d, createVNode as h, withCtx as y, createBlock as g, withModifiers as te, renderList as S, withDirectives as X, vModelCheckbox as re, normalizeStyle as j, normalizeClass as le, resolveDynamicComponent as Q, Transition as ne, vShow as se } from "vue";
4
- import { I as oe } from "./IconSearch-D9I5Aq9M.js";
5
- const ae = {}, ie = {
3
+ import { openBlock as a, createElementBlock as i, createStaticVNode as A, createTextVNode as T, toDisplayString as V, createCommentVNode as v, createElementVNode as l, Fragment as x, resolveComponent as d, createVNode as h, withCtx as y, createBlock as g, withModifiers as te, renderList as S, withDirectives as X, vModelCheckbox as re, normalizeStyle as j, normalizeClass as le, resolveDynamicComponent as Q, Transition as ne, vShow as se } from "vue";
4
+ import { I as ae } from "./IconSearch-Cm3RlWfH.js";
5
+ const oe = {}, ie = {
6
6
  class: "h21yx vs0hq",
7
7
  xmlns: "http://www.w3.org/2000/svg",
8
8
  width: "24",
@@ -14,12 +14,12 @@ const ae = {}, ie = {
14
14
  "stroke-linecap": "round",
15
15
  "stroke-linejoin": "round"
16
16
  };
17
- function de(t, e, r, a, n, s) {
18
- return o(), i("svg", ie, e[0] || (e[0] = [
17
+ function de(t, e, r, o, n, s) {
18
+ return a(), i("svg", ie, e[0] || (e[0] = [
19
19
  A('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>', 9)
20
20
  ]));
21
21
  }
22
- const ce = /* @__PURE__ */ m(ae, [["render", de]]), ue = {
22
+ const ce = /* @__PURE__ */ m(oe, [["render", de]]), ue = {
23
23
  data() {
24
24
  return {
25
25
  currentSort: ""
@@ -65,10 +65,10 @@ const ce = /* @__PURE__ */ m(ae, [["render", de]]), ue = {
65
65
  },
66
66
  handleClickSortBtn(t) {
67
67
  this.$emit("change-active", this.data.name), this.currentSort = this.changeCurrentSort(t);
68
- const e = this.$route.query, { sort: r, ...a } = e, n = this.currentSort ? `${this.data.name}-${this.currentSort}` : "";
68
+ const e = this.$route.query, { sort: r, ...o } = e, n = this.currentSort ? `${this.data.name}-${this.currentSort}` : "";
69
69
  this.$router.replace({
70
70
  query: {
71
- ...a,
71
+ ...o,
72
72
  ...n && { sort: n }
73
73
  }
74
74
  });
@@ -101,20 +101,20 @@ const ce = /* @__PURE__ */ m(ae, [["render", de]]), ue = {
101
101
  key: 1,
102
102
  class: "text-sm text-gray-800 px-[4px] py-2.5 text-start font-normal text-gray-500"
103
103
  };
104
- function ge(t, e, r, a, n, s) {
105
- return o(), i("th", he, [
106
- s.getVisibleIcon ? (o(), i("button", {
104
+ function ge(t, e, r, o, n, s) {
105
+ return a(), i("th", he, [
106
+ s.getVisibleIcon ? (a(), i("button", {
107
107
  key: 0,
108
108
  type: "button",
109
109
  class: "text-sm text-gray-800 px-[4px] py-2.5 text-start font-normal text-gray-500 flex items-center gap-[6px]",
110
110
  onClick: e[0] || (e[0] = (b) => s.handleClickSortBtn(n.currentSort))
111
111
  }, [
112
112
  T(V(s.label) + " ", 1),
113
- (o(), i("svg", pe, [
114
- n.currentSort === "asc" || n.currentSort === "" ? (o(), i("path", me)) : v("", !0),
115
- n.currentSort === "desc" || n.currentSort === "" ? (o(), i("path", be)) : v("", !0)
113
+ (a(), i("svg", pe, [
114
+ n.currentSort === "asc" || n.currentSort === "" ? (a(), i("path", me)) : v("", !0),
115
+ n.currentSort === "desc" || n.currentSort === "" ? (a(), i("path", be)) : v("", !0)
116
116
  ]))
117
- ])) : (o(), i("p", fe, V(s.label), 1))
117
+ ])) : (a(), i("p", fe, V(s.label), 1))
118
118
  ]);
119
119
  }
120
120
  const xe = /* @__PURE__ */ m(ue, [["render", ge]]), ye = {}, ke = {
@@ -127,8 +127,8 @@ const xe = /* @__PURE__ */ m(ue, [["render", ge]]), ye = {}, ke = {
127
127
  "stroke-linejoin": "round",
128
128
  class: "icon icon-tabler icons-tabler-outline icon-tabler-dots-vertical"
129
129
  };
130
- function we(t, e, r, a, n, s) {
131
- return o(), i("svg", ke, e[0] || (e[0] = [
130
+ function we(t, e, r, o, n, s) {
131
+ return a(), i("svg", ke, e[0] || (e[0] = [
132
132
  l("path", {
133
133
  stroke: "none",
134
134
  d: "M0 0h24v24H0z",
@@ -149,8 +149,8 @@ const _e = /* @__PURE__ */ m(ye, [["render", we]]), ve = {}, Ce = {
149
149
  "stroke-linecap": "round",
150
150
  "stroke-linejoin": "round"
151
151
  };
152
- function $e(t, e, r, a, n, s) {
153
- return o(), i("svg", Ce, e[0] || (e[0] = [
152
+ function $e(t, e, r, o, n, s) {
153
+ return a(), i("svg", Ce, e[0] || (e[0] = [
154
154
  A('<path d="M3 6h18"></path><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"></path><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"></path><line x1="10" x2="10" y1="11" y2="17"></line><line x1="14" x2="14" y1="11" y2="17"></line>', 5)
155
155
  ]));
156
156
  }
@@ -160,10 +160,10 @@ const Se = /* @__PURE__ */ m(ve, [["render", $e]]), Te = {
160
160
  width: { type: String, default: "12" },
161
161
  color: { type: String, default: "black" }
162
162
  }
163
- }, Ve = { style: { display: "none" } }, Fe = ["height", "width", "fill"];
164
- function De(t, e, r, a, n, s) {
165
- return o(), i(x, null, [
166
- (o(), i("svg", Ve, e[0] || (e[0] = [
163
+ }, Ve = { style: { display: "none" } }, De = ["height", "width", "fill"];
164
+ function Fe(t, e, r, o, n, s) {
165
+ return a(), i(x, null, [
166
+ (a(), i("svg", Ve, e[0] || (e[0] = [
167
167
  l("symbol", {
168
168
  id: "icon-pencil",
169
169
  viewBox: "0 0 32 32"
@@ -171,16 +171,16 @@ function De(t, e, r, a, n, s) {
171
171
  l("path", { d: "M27 0c2.761 0 5 2.239 5 5 0 1.126-0.372 2.164-1 3l-2 2-7-7 2-2c0.836-0.628 1.874-1 3-1zM2 23l-2 9 9-2 18.5-18.5-7-7-18.5 18.5zM22.362 11.362l-14 14-1.724-1.724 14-14 1.724 1.724z" })
172
172
  ], -1)
173
173
  ]))),
174
- (o(), i("svg", {
174
+ (a(), i("svg", {
175
175
  height: r.height,
176
176
  width: r.width,
177
177
  fill: r.color
178
178
  }, e[1] || (e[1] = [
179
179
  l("use", { "xlink:href": "#icon-pencil" }, null, -1)
180
- ]), 8, Fe))
180
+ ]), 8, De))
181
181
  ], 64);
182
182
  }
183
- const Me = /* @__PURE__ */ m(Te, [["render", De]]), Ae = {
183
+ const Me = /* @__PURE__ */ m(Te, [["render", Fe]]), Ae = {
184
184
  components: {
185
185
  IconMore: _e,
186
186
  IconDelete: Se,
@@ -236,9 +236,9 @@ const Me = /* @__PURE__ */ m(Te, [["render", De]]), Ae = {
236
236
  key: 1,
237
237
  class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
238
238
  }, Pe = { class: "p-4" }, Ee = { class: "mt-4 flex justify-end gap-x-3" };
239
- function Le(t, e, r, a, n, s) {
239
+ function Ue(t, e, r, o, n, s) {
240
240
  const b = d("IconMore"), f = d("IconEdit"), k = d("router-link"), u = d("IconDelete"), w = d("VsPopover"), $ = d("VsDialog");
241
- return o(), i(x, null, [
241
+ return a(), i(x, null, [
242
242
  l("div", Ie, [
243
243
  h(w, {
244
244
  trigger: "click",
@@ -253,12 +253,12 @@ function Le(t, e, r, a, n, s) {
253
253
  ])
254
254
  ]),
255
255
  default: y(() => {
256
- var _, F, D;
256
+ var _, D, F;
257
257
  return [
258
258
  l("div", je, [
259
- r.isForm ? (o(), g(k, {
259
+ r.isForm ? (a(), g(k, {
260
260
  key: 0,
261
- to: `/edit?table=${(F = (_ = t.$route) == null ? void 0 : _.params) == null ? void 0 : F.catchAll}&id=${(D = r.item) == null ? void 0 : D.id}`,
261
+ to: `/edit?table=${(D = (_ = t.$route) == null ? void 0 : _.params) == null ? void 0 : D.catchAll}&id=${(F = r.item) == null ? void 0 : F.id}`,
262
262
  class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
263
263
  }, {
264
264
  default: y(() => [
@@ -267,7 +267,7 @@ function Le(t, e, r, a, n, s) {
267
267
  ]),
268
268
  _: 1
269
269
  }, 8, ["to"])) : v("", !0),
270
- r.isForm ? (o(), i("div", ze)) : v("", !0),
270
+ r.isForm ? (a(), i("div", ze)) : v("", !0),
271
271
  l("button", {
272
272
  onClick: e[0] || (e[0] = te((...I) => s.openConfirm && s.openConfirm(...I), ["stop"])),
273
273
  class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
@@ -307,7 +307,7 @@ function Le(t, e, r, a, n, s) {
307
307
  }, 8, ["visible"])
308
308
  ], 64);
309
309
  }
310
- const Ue = /* @__PURE__ */ m(Ae, [["render", Le]]), qe = {}, Oe = {
310
+ const Le = /* @__PURE__ */ m(Ae, [["render", Ue]]), qe = {}, Oe = {
311
311
  class: "flex-shrink-0 mt-0.5 size-3.5",
312
312
  xmlns: "http://www.w3.org/2000/svg",
313
313
  viewBox: "0 0 24 24",
@@ -317,8 +317,8 @@ const Ue = /* @__PURE__ */ m(Ae, [["render", Le]]), qe = {}, Oe = {
317
317
  "stroke-linecap": "round",
318
318
  "stroke-linejoin": "round"
319
319
  };
320
- function We(t, e, r, a, n, s) {
321
- return o(), i("svg", Oe, e[0] || (e[0] = [
320
+ function We(t, e, r, o, n, s) {
321
+ return a(), i("svg", Oe, e[0] || (e[0] = [
322
322
  l("path", { d: "m3 16 4 4 4-4" }, null, -1),
323
323
  l("path", { d: "M7 20V4" }, null, -1),
324
324
  l("path", { d: "m21 8-4-4-4 4" }, null, -1),
@@ -348,11 +348,11 @@ const He = /* @__PURE__ */ m(qe, [["render", We]]), Ne = {
348
348
  responseType: "blob"
349
349
  }), e = new Blob([t.data], {
350
350
  type: "application/octet-stream"
351
- }), r = window.URL.createObjectURL(e), a = document.createElement("a");
352
- a.href = r, a.setAttribute(
351
+ }), r = window.URL.createObjectURL(e), o = document.createElement("a");
352
+ o.href = r, o.setAttribute(
353
353
  "download",
354
354
  `${this.table.split(".")[0]}.${this.format}`
355
- ), document.body.appendChild(a), a.click(), document.body.removeChild(a), window.URL.revokeObjectURL(r), this.$notify({
355
+ ), document.body.appendChild(o), o.click(), document.body.removeChild(o), window.URL.revokeObjectURL(r), this.$notify({
356
356
  type: "success",
357
357
  title: "Експорт",
358
358
  message: "Файл успішно експортовано!"
@@ -370,9 +370,9 @@ const He = /* @__PURE__ */ m(qe, [["render", We]]), Ne = {
370
370
  }
371
371
  }
372
372
  }, Re = { class: "p-4" }, Ge = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, Ze = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Je = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, Ke = { class: "mt-2 space-y-2" }, Qe = ["id", "onChange"], Xe = ["for"], Ye = { class: "flex w-full justify-end p-[20px] gap-[6px] border-t" };
373
- function et(t, e, r, a, n, s) {
373
+ function et(t, e, r, o, n, s) {
374
374
  const b = d("IconExport"), f = d("VsCheckbox"), k = d("VsDialog");
375
- return o(), i(x, null, [
375
+ return a(), i(x, null, [
376
376
  l("button", {
377
377
  onClick: e[0] || (e[0] = (u) => n.isOpen = !0),
378
378
  class: "py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
@@ -423,7 +423,7 @@ function et(t, e, r, a, n, s) {
423
423
  l("div", Ge, [
424
424
  e[6] || (e[6] = l("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
425
425
  l("div", Ze, [
426
- (o(!0), i(x, null, S(r.columns, (u, w) => (o(), i("div", {
426
+ (a(!0), i(x, null, S(r.columns, (u, w) => (a(), i("div", {
427
427
  class: "flex items-center",
428
428
  key: w,
429
429
  style: { width: "calc((100% - 10px) / 2)" }
@@ -441,7 +441,7 @@ function et(t, e, r, a, n, s) {
441
441
  l("div", Je, [
442
442
  e[7] || (e[7] = l("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
443
443
  l("div", Ke, [
444
- (o(!0), i(x, null, S(n.tableFormats, (u, w) => (o(), i("div", {
444
+ (a(!0), i(x, null, S(n.tableFormats, (u, w) => (a(), i("div", {
445
445
  class: "flex items-center",
446
446
  key: w
447
447
  }, [
@@ -475,12 +475,12 @@ const tt = /* @__PURE__ */ m(Ne, [["render", et]]), rt = {}, lt = {
475
475
  "stroke-linejoin": "round",
476
476
  class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
477
477
  };
478
- function nt(t, e, r, a, n, s) {
479
- return o(), i("svg", lt, e[0] || (e[0] = [
478
+ function nt(t, e, r, o, n, s) {
479
+ return a(), i("svg", lt, e[0] || (e[0] = [
480
480
  A('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l5.5 0"></path><path d="M4 10l5.5 0"></path><path d="M4 14l5.5 0"></path><path d="M4 18l5.5 0"></path><path d="M14.5 6l5.5 0"></path><path d="M14.5 10l5.5 0"></path><path d="M14.5 14l5.5 0"></path><path d="M14.5 18l5.5 0"></path>', 9)
481
481
  ]));
482
482
  }
483
- const st = /* @__PURE__ */ m(rt, [["render", nt]]), ot = {
483
+ const st = /* @__PURE__ */ m(rt, [["render", nt]]), at = {
484
484
  props: { column: Object },
485
485
  emits: ["update-column"],
486
486
  data() {
@@ -497,10 +497,10 @@ const st = /* @__PURE__ */ m(rt, [["render", nt]]), ot = {
497
497
  var t;
498
498
  ((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
499
499
  }
500
- }, at = { class: "flex w-full gap-[8px] items-centr" };
501
- function it(t, e, r, a, n, s) {
500
+ }, ot = { class: "flex w-full gap-[8px] items-centr" };
501
+ function it(t, e, r, o, n, s) {
502
502
  var b, f;
503
- return o(), i("label", at, [
503
+ return a(), i("label", ot, [
504
504
  X(l("input", {
505
505
  "onUpdate:modelValue": e[0] || (e[0] = (k) => n.value = k),
506
506
  type: "checkbox"
@@ -510,20 +510,20 @@ function it(t, e, r, a, n, s) {
510
510
  T(" " + V(((b = r.column) == null ? void 0 : b.ua) || ((f = r.column) == null ? void 0 : f.title)), 1)
511
511
  ]);
512
512
  }
513
- const dt = /* @__PURE__ */ m(ot, [["render", it]]), ct = {
513
+ const dt = /* @__PURE__ */ m(at, [["render", it]]), ct = {
514
514
  components: { IconColumns: st, AdminTableColumnsHiddenItem: dt },
515
515
  emits: ["update-columns"],
516
516
  props: { columns: Array },
517
517
  methods: {
518
518
  updateColumn(t) {
519
- const e = this.columns.findIndex((a) => (a == null ? void 0 : a.name) === (t == null ? void 0 : t.name)), r = this.columns;
519
+ const e = this.columns.findIndex((o) => (o == null ? void 0 : o.name) === (t == null ? void 0 : t.name)), r = this.columns;
520
520
  r[e] = t, this.$emit("update-columns", [...r]);
521
521
  }
522
522
  }
523
523
  }, ut = { class: "py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, ht = { class: "py-[10px] px-[10px] w-[260px]" }, pt = { class: "flex flex-col gap-[3px] max-h-[400px] w-full overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
524
- function mt(t, e, r, a, n, s) {
524
+ function mt(t, e, r, o, n, s) {
525
525
  const b = d("IconColumns"), f = d("AdminTableColumnsHiddenItem"), k = d("VsPopover");
526
- return o(), g(k, {
526
+ return a(), g(k, {
527
527
  trigger: "click",
528
528
  placement: "bottom"
529
529
  }, {
@@ -539,7 +539,7 @@ function mt(t, e, r, a, n, s) {
539
539
  l("div", ht, [
540
540
  e[0] || (e[0] = l("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
541
541
  l("ul", pt, [
542
- (o(!0), i(x, null, S(r.columns, (u, w) => (o(), i("li", { key: w }, [
542
+ (a(!0), i(x, null, S(r.columns, (u, w) => (a(), i("li", { key: w }, [
543
543
  h(f, {
544
544
  column: u,
545
545
  onUpdateColumn: s.updateColumn
@@ -557,8 +557,8 @@ const bt = /* @__PURE__ */ m(ct, [["render", mt]]), ft = {}, gt = {
557
557
  fill: "currentColor",
558
558
  viewBox: "0 0 16 16"
559
559
  };
560
- function xt(t, e, r, a, n, s) {
561
- return o(), i("svg", gt, e[0] || (e[0] = [
560
+ function xt(t, e, r, o, n, s) {
561
+ return a(), i("svg", gt, e[0] || (e[0] = [
562
562
  l("path", {
563
563
  "fill-rule": "evenodd",
564
564
  "clip-rule": "evenodd",
@@ -567,8 +567,8 @@ function xt(t, e, r, a, n, s) {
567
567
  ]));
568
568
  }
569
569
  const yt = /* @__PURE__ */ m(ft, [["render", xt]]), kt = {}, wt = { class: "vs-table-interface__table-wrp w-full rounded h-fit overflow-hidden" };
570
- function _t(t, e, r, a, n, s) {
571
- return o(), i("div", wt, e[0] || (e[0] = [
570
+ function _t(t, e, r, o, n, s) {
571
+ return a(), i("div", wt, e[0] || (e[0] = [
572
572
  A('<div><div class="p-5 min-h-[500px] flex flex-col justify-center items-center text-center"><svg class="w-48 mx-auto" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter1)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter1" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg><div class="max-w-sm mx-auto mt-6"><p class="font-medium text-gray-800 dark:text-neutral-200"> Дані для відображення відсутні </p><p class="mt-2 text-sm text-gray-500 dark:text-neutral-500"> Змініть параметри пошуку або спробуйте пізніше </p></div></div></div>', 1)
573
573
  ]));
574
574
  }
@@ -576,13 +576,13 @@ const vt = /* @__PURE__ */ m(kt, [["render", _t]]), Ct = {
576
576
  props: { table: String, title: String },
577
577
  components: {
578
578
  IconFilter: ce,
579
- AdminTableControl: Ue,
579
+ AdminTableControl: Le,
580
580
  AdminTableExport: tt,
581
581
  AdminTableColumnsHidden: bt,
582
582
  AdminTableColumn: xe,
583
583
  AdminNodata: vt,
584
584
  IconPlus: yt,
585
- IconSearch: oe
585
+ IconSearch: ae
586
586
  },
587
587
  data() {
588
588
  return {
@@ -598,8 +598,8 @@ const vt = /* @__PURE__ */ m(kt, [["render", _t]]), Ct = {
598
598
  };
599
599
  },
600
600
  mounted() {
601
- var t, e, r, a;
602
- this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (r = this.$route) == null ? void 0 : r.query) == null ? void 0 : a.limit) || 20, this.getTableData(), this.getFilters();
601
+ var t, e, r, o;
602
+ this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((o = (r = this.$route) == null ? void 0 : r.query) == null ? void 0 : o.limit) || 20, this.getTableData(), this.getFilters();
603
603
  },
604
604
  computed: {
605
605
  defaultPage() {
@@ -636,8 +636,8 @@ const vt = /* @__PURE__ */ m(kt, [["render", _t]]), Ct = {
636
636
  },
637
637
  $route: {
638
638
  handler(t, e) {
639
- var r, a;
640
- ((r = t == null ? void 0 : t.params) == null ? void 0 : r.catchAll) !== ((a = e == null ? void 0 : e.params) == null ? void 0 : a.catchAll) && (this.filterScheme = null, this.filters = null, this.onFilters = 0, this.getFilters());
639
+ var r, o;
640
+ ((r = t == null ? void 0 : t.params) == null ? void 0 : r.catchAll) !== ((o = e == null ? void 0 : e.params) == null ? void 0 : o.catchAll) && (this.filterScheme = null, this.filters = null, this.onFilters = 0, this.getFilters());
641
641
  },
642
642
  deep: !0
643
643
  },
@@ -650,7 +650,7 @@ const vt = /* @__PURE__ */ m(kt, [["render", _t]]), Ct = {
650
650
  async getTableData() {
651
651
  var t, e;
652
652
  try {
653
- const { data: r } = await C.get(`/api/template/table/${this.table}`), a = await C.get(`/api/table-data/${this.table}`, {
653
+ const { data: r } = await C.get(`/api/template/table/${this.table}`), o = await C.get(`/api/table-data/${this.table}`, {
654
654
  params: {
655
655
  page: this.page,
656
656
  search: this.searchValue || null,
@@ -661,7 +661,7 @@ const vt = /* @__PURE__ */ m(kt, [["render", _t]]), Ct = {
661
661
  });
662
662
  this.tableData = {
663
663
  ...r,
664
- ...(a == null ? void 0 : a.data) || {}
664
+ ...(o == null ? void 0 : o.data) || {}
665
665
  };
666
666
  } catch {
667
667
  }
@@ -702,7 +702,7 @@ const vt = /* @__PURE__ */ m(kt, [["render", _t]]), Ct = {
702
702
  }, $t = { class: "w-[calc(100vw - 320px)]" }, St = { class: "h-[76px] bg-gray-50 flex items-center justify-between px-[30px]" }, Tt = { class: "text-xl font-medium h-[20px]" }, Vt = {
703
703
  style: { height: "calc(100vh - 140px)", width: "calc(100vw - 260px)" },
704
704
  class: "bg-gray-50 p-[20px] flex pt-[10px]"
705
- }, Ft = { class: "bg-white w-full rounded-xl border p-[20px]" }, Dt = { class: "flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative" }, Mt = { class: "flex gap-[6px] ml-auto" }, At = {
705
+ }, Dt = { class: "bg-white w-full rounded-xl border p-[20px]" }, Ft = { class: "flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative" }, Mt = { class: "flex gap-[6px] ml-auto" }, At = {
706
706
  key: 0,
707
707
  class: "font-medium text-[10px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full dark:bg-neutral-500"
708
708
  }, It = { class: "space-y-5 flex items-start w-full justify-start" }, Bt = {
@@ -711,15 +711,15 @@ const vt = /* @__PURE__ */ m(kt, [["render", _t]]), Ct = {
711
711
  }, jt = { class: "inline-block w-full align-middle" }, zt = {
712
712
  key: 0,
713
713
  class: "divide-y divide-gray-200 min-w-full dark:divide-neutral-700 relative table-fixed"
714
- }, Pt = { class: "sticky top-0 bg-white w-full relative after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, Et = { class: "border-stone-200 right-0 z-[1]" }, Lt = { class: "divide-y divide-gray-200" }, Ut = ["onClick"], qt = { class: "text-center sticky right-0 bg-white w-[80px] px-[10px]" }, Ot = { class: "p-[20px] flex justify-end w-full" }, Wt = { class: "filter-content h-screen bg-white w-[400px] p-[20px] pt-[10px] overflow-x-auto bg-white [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
715
- function Ht(t, e, r, a, n, s) {
716
- var z, P, E, L, U, q;
717
- const b = d("IconPlus"), f = d("router-link"), k = d("IconSearch"), u = d("VsText"), w = d("AdminTableColumnsHidden"), $ = d("AdminTableExport"), _ = d("IconFilter"), F = d("AdminTableColumn"), D = d("AdminTableControl"), I = d("AdminNodata"), Y = d("VsPagination"), ee = d("VsFilter");
718
- return o(), i(x, null, [
714
+ }, Pt = { class: "sticky top-0 bg-white w-full relative after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, Et = { class: "border-stone-200 right-0 z-[1]" }, Ut = { class: "divide-y divide-gray-200" }, Lt = ["onClick"], qt = { class: "text-center sticky right-0 bg-white w-[80px] px-[10px]" }, Ot = { class: "p-[20px] flex justify-end w-full" }, Wt = { class: "filter-content h-screen bg-white w-[400px] p-[20px] pt-[10px] overflow-x-auto bg-white [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
715
+ function Ht(t, e, r, o, n, s) {
716
+ var z, P, E, U, L, q;
717
+ const b = d("IconPlus"), f = d("router-link"), k = d("IconSearch"), u = d("VsText"), w = d("AdminTableColumnsHidden"), $ = d("AdminTableExport"), _ = d("IconFilter"), D = d("AdminTableColumn"), F = d("AdminTableControl"), I = d("AdminNodata"), Y = d("VsPagination"), ee = d("VsFilter");
718
+ return a(), i(x, null, [
719
719
  l("div", $t, [
720
720
  l("div", St, [
721
721
  l("h2", Tt, V(r.title), 1),
722
- s.isForm ? (o(), g(f, {
722
+ s.isForm ? (a(), g(f, {
723
723
  key: 0,
724
724
  to: `/add?table=${(P = (z = t.$route) == null ? void 0 : z.params) == null ? void 0 : P.catchAll}`,
725
725
  class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 hover:text-white duration-300"
@@ -735,8 +735,8 @@ function Ht(t, e, r, a, n, s) {
735
735
  }, 8, ["to"])) : v("", !0)
736
736
  ]),
737
737
  l("div", Vt, [
738
- l("div", Ft, [
739
- l("div", Dt, [
738
+ l("div", Dt, [
739
+ l("div", Ft, [
740
740
  h(k, {
741
741
  height: "14",
742
742
  width: "14",
@@ -756,7 +756,7 @@ function Ht(t, e, r, a, n, s) {
756
756
  }, null, 8, ["columns"]),
757
757
  h($, {
758
758
  table: r.table,
759
- columns: (L = n.tableData) == null ? void 0 : L.columns
759
+ columns: (U = n.tableData) == null ? void 0 : U.columns
760
760
  }, null, 8, ["table", "columns"]),
761
761
  l("button", {
762
762
  onClick: e[2] || (e[2] = (c) => n.isFilters = !n.isFilters),
@@ -767,17 +767,17 @@ function Ht(t, e, r, a, n, s) {
767
767
  width: "16"
768
768
  }),
769
769
  e[6] || (e[6] = T(" Фільтри ")),
770
- n.onFilters ? (o(), i("span", At, V(n.onFilters), 1)) : v("", !0)
770
+ n.onFilters ? (a(), i("span", At, V(n.onFilters), 1)) : v("", !0)
771
771
  ])
772
772
  ])
773
773
  ]),
774
774
  l("div", It, [
775
775
  l("div", Bt, [
776
776
  l("div", jt, [
777
- s.isNoData ? (o(), g(I, { key: 1 })) : (o(), i("table", zt, [
777
+ s.isNoData ? (a(), g(I, { key: 1 })) : (a(), i("table", zt, [
778
778
  l("thead", Pt, [
779
779
  l("tr", Et, [
780
- (o(!0), i(x, null, S(s.columns, (c) => (o(), g(F, {
780
+ (a(!0), i(x, null, S(s.columns, (c) => (a(), g(D, {
781
781
  key: c.name,
782
782
  style: j({ minWidth: s.rowWidth, maxWidth: s.rowWidth }),
783
783
  data: c,
@@ -787,10 +787,10 @@ function Ht(t, e, r, a, n, s) {
787
787
  e[7] || (e[7] = l("th", { class: "w-[70px] sticky right-0 top-0 bg-white" }, null, -1))
788
788
  ])
789
789
  ]),
790
- l("tbody", Lt, [
791
- (o(!0), i(x, null, S((U = n.tableData) == null ? void 0 : U.rows, (c, M) => {
790
+ l("tbody", Ut, [
791
+ (a(!0), i(x, null, S((L = n.tableData) == null ? void 0 : L.rows, (c, M) => {
792
792
  var O, W, H, N, R, G, Z, J;
793
- return o(), i("tr", { key: M }, [
793
+ return a(), i("tr", { key: M }, [
794
794
  l("td", {
795
795
  class: "text-sm text-gray-600",
796
796
  style: j({ minWidth: s.rowWidth, maxWidth: s.rowWidth })
@@ -801,33 +801,36 @@ function Ht(t, e, r, a, n, s) {
801
801
  ((O = n.tableData) == null ? void 0 : O.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
802
802
  ]])
803
803
  }, [
804
- (o(), g(Q(
804
+ (a(), g(Q(
805
805
  ((W = s.columns[0]) == null ? void 0 : W.format) === "custom" ? (H = s.columns[0]) == null ? void 0 : H.component : t.$componentsConfig[`table-format-${((R = (N = s.columns[0]) == null ? void 0 : N.format) == null ? void 0 : R.toLowerCase()) || "text"}`]
806
806
  ), {
807
807
  name: (G = s.columns[0]) == null ? void 0 : G.name,
808
808
  data: c,
809
- value: c == null ? void 0 : c[(Z = s.columns[0]) == null ? void 0 : Z.name]
810
- }, null, 8, ["name", "data", "value"]))
811
- ], 10, Ut)
809
+ value: c == null ? void 0 : c[(Z = s.columns[0]) == null ? void 0 : Z.name],
810
+ table: r.table
811
+ }, null, 8, ["name", "data", "value", "table"]))
812
+ ], 10, Lt)
812
813
  ], 4),
813
- (o(!0), i(x, null, S((J = s.columns) == null ? void 0 : J.slice(1), (p) => {
814
+ (a(!0), i(x, null, S((J = s.columns) == null ? void 0 : J.slice(1), (p) => {
814
815
  var K;
815
- return o(), i("td", {
816
+ return a(), i("td", {
816
817
  class: "text-start px-[4px] py-3 text-sm text-gray-600",
817
818
  style: j({ minWidth: s.rowWidth, maxWidth: s.rowWidth }),
818
819
  key: p.name
819
820
  }, [
820
- (o(), g(Q(
821
+ (a(), g(Q(
821
822
  (p == null ? void 0 : p.format) === "custom" ? p == null ? void 0 : p.component : t.$componentsConfig[`table-format-${((K = p == null ? void 0 : p.format) == null ? void 0 : K.toLowerCase()) || "text"}`]
822
823
  ), {
824
+ onUpdateTable: s.getTableData,
823
825
  name: p == null ? void 0 : p.name,
824
826
  data: c,
825
- value: c == null ? void 0 : c[p == null ? void 0 : p.name]
826
- }, null, 8, ["name", "data", "value"]))
827
+ value: c == null ? void 0 : c[p == null ? void 0 : p.name],
828
+ table: r.table
829
+ }, null, 40, ["onUpdateTable", "name", "data", "value", "table"]))
827
830
  ], 4);
828
831
  }), 128)),
829
832
  l("td", qt, [
830
- h(D, {
833
+ h(F, {
831
834
  isForm: s.isForm,
832
835
  item: c,
833
836
  table: r.table,
@@ -842,7 +845,7 @@ function Ht(t, e, r, a, n, s) {
842
845
  ])
843
846
  ]),
844
847
  l("div", Ot, [
845
- n.limit ? (o(), g(Y, {
848
+ n.limit ? (a(), g(Y, {
846
849
  key: 0,
847
850
  goTo: !1,
848
851
  class: "justify-end",
@@ -867,7 +870,7 @@ function Ht(t, e, r, a, n, s) {
867
870
  class: "fixed filter-container top-0 flex justify-end items-center z-[2] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.5)]"
868
871
  }, [
869
872
  l("div", Wt, [
870
- (c = n.filterScheme) != null && c.length ? (o(), g(ee, {
873
+ (c = n.filterScheme) != null && c.length ? (a(), g(ee, {
871
874
  key: 0,
872
875
  ref: "filter",
873
876
  scheme: n.filterScheme,
@@ -930,9 +933,9 @@ const Nt = /* @__PURE__ */ m(Ct, [["render", Ht]]), Rt = {
930
933
  async checkPageType() {
931
934
  const t = this.flattenMenu(B.value);
932
935
  t != null && t.length || this.$router.replace("/404");
933
- const e = t == null ? void 0 : t.find((a) => {
936
+ const e = t == null ? void 0 : t.find((o) => {
934
937
  var n, s;
935
- return (a == null ? void 0 : a.path) == ((s = (n = this.$route) == null ? void 0 : n.params) == null ? void 0 : s.catchAll);
938
+ return (o == null ? void 0 : o.path) == ((s = (n = this.$route) == null ? void 0 : n.params) == null ? void 0 : s.catchAll);
936
939
  });
937
940
  this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404");
938
941
  const r = e == null ? void 0 : e.table;
@@ -951,13 +954,13 @@ const Nt = /* @__PURE__ */ m(Ct, [["render", Ht]]), Rt = {
951
954
  }
952
955
  }
953
956
  }, Gt = ["innerHTML"];
954
- function Zt(t, e, r, a, n, s) {
957
+ function Zt(t, e, r, o, n, s) {
955
958
  const b = d("AdminTable");
956
- return n.table ? (o(), g(b, {
959
+ return n.table ? (a(), g(b, {
957
960
  key: 0,
958
961
  table: n.table,
959
962
  title: n.title
960
- }, null, 8, ["table", "title"])) : (o(), i("div", {
963
+ }, null, 8, ["table", "title"])) : (a(), i("div", {
961
964
  key: 1,
962
965
  class: "w-full bg-gray-50",
963
966
  style: { height: "calc(100vh - 120px)" },