@opengis/admin 0.1.36 → 0.1.37

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 (104) hide show
  1. package/README.md +29 -29
  2. package/config.js +4 -4
  3. package/dist/IconSearch-BtomZb8r.js +26 -0
  4. package/dist/{add-page-C5g2yN5N.js → add-page-B2luTaID.js} +1 -1
  5. package/dist/{admin-interface-zpEN5ODZ.js → admin-interface-BTkZcKR5.js} +155 -154
  6. package/dist/{admin-view-DD8_bEjC.js → admin-view--m-d7PyT.js} +75 -74
  7. package/dist/admin.js +1 -1
  8. package/dist/admin.umd.cjs +85 -85
  9. package/dist/{card-page-BpMHxKbw.js → card-page-DD80MOw6.js} +21 -21
  10. package/dist/{card-view-Ddro0nc4.js → card-view-BGniLwQl.js} +1 -1
  11. package/dist/{edit-page-BL9SogVY.js → edit-page-DS2vRs3y.js} +1 -1
  12. package/dist/{import-file-DBSDU17c.js → import-file-ChmncuMJ.js} +14232 -14736
  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.table_properties.form.json +70 -70
  35. package/module/settings/form/admin.user_properties.form.json +15 -15
  36. package/module/settings/form/admin.user_roles.form.json +21 -21
  37. package/module/settings/form/admin.users.form.json +150 -150
  38. package/module/settings/form/user.user_roles.form.json +13 -13
  39. package/module/settings/interface/admin.properties.json +4 -4
  40. package/module/settings/interface/admin.roles.json +4 -4
  41. package/module/settings/interface/admin.routes.json +4 -4
  42. package/module/settings/interface/admin.users.json +4 -4
  43. package/module/settings/menu.json +45 -50
  44. package/module/settings/select/core.roles.json +2 -2
  45. package/module/settings/select/core.user_uid.sql +1 -1
  46. package/module/settings/table/admin.access.table.json +77 -77
  47. package/module/settings/table/admin.properties.table.json +33 -33
  48. package/module/settings/table/admin.roles.table.json +58 -58
  49. package/module/settings/table/admin.routes.table.json +55 -55
  50. package/module/settings/table/admin.table_properties.table.json +81 -81
  51. package/module/settings/table/admin.user_properties.table.json +28 -28
  52. package/module/settings/table/admin.user_roles.table.json +66 -66
  53. package/module/settings/table/admin.users.table.json +119 -119
  54. package/package.json +74 -74
  55. package/plugin.js +101 -102
  56. package/server/helpers/controllers/badge.js +11 -11
  57. package/server/helpers/controllers/hb.js +2 -2
  58. package/server/helpers/controllers/map.js +2 -2
  59. package/server/helpers/controllers/mls.js +2 -2
  60. package/server/helpers/controllers/vue.js +2 -2
  61. package/server/helpers/index.mjs +13 -13
  62. package/server/plugins/docs.js +28 -28
  63. package/server/plugins/hook.js +166 -166
  64. package/server/plugins/vite.js +69 -69
  65. package/server/routes/data/controllers/cardData.js +56 -56
  66. package/server/routes/data/controllers/cardTabData.js +39 -39
  67. package/server/routes/data/controllers/funcs/getFilterSQL/index.js +85 -85
  68. package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +142 -142
  69. package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
  70. package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +67 -67
  71. package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
  72. package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
  73. package/server/routes/data/controllers/tableData.js +121 -121
  74. package/server/routes/data/controllers/tableDataId.js +27 -27
  75. package/server/routes/data/controllers/tableFilter.js +55 -55
  76. package/server/routes/data/controllers/utils/assignTokens.js +30 -30
  77. package/server/routes/data/controllers/utils/getColumns.js +21 -21
  78. package/server/routes/data/index.mjs +12 -12
  79. package/server/routes/menu/controllers/getMenu.js +33 -33
  80. package/server/routes/menu/index.mjs +5 -5
  81. package/server/routes/properties/controllers/admin.properties.get.js +29 -29
  82. package/server/routes/properties/controllers/user.properties.get.js +34 -34
  83. package/server/routes/properties/controllers/user.properties.post.js +30 -30
  84. package/server/routes/properties/funcs/getSettings.js +56 -56
  85. package/server/routes/properties/funcs/setSettings.js +44 -44
  86. package/server/routes/properties/funcs/utils/dataInsert.js +26 -26
  87. package/server/routes/properties/index.mjs +26 -26
  88. package/server/routes/root.mjs +3 -3
  89. package/server/routes/templates/controllers/getTemplate.js +14 -14
  90. package/server/routes/templates/index.mjs +14 -14
  91. package/server/templates/cls/itree.recrzone_category.json +73 -73
  92. package/server/templates/cls/test.json +9 -9
  93. package/server/templates/form/admin.user_cls.data.form.json +49 -49
  94. package/server/templates/form/admin.user_group_rel.form.json +21 -21
  95. package/server/templates/form/cp_building.form.json +32 -32
  96. package/server/templates/form/form-user-pass.json +10 -10
  97. package/server/templates/form/form-user_group.json +39 -39
  98. package/server/templates/form/form-users.json +156 -156
  99. package/server/templates/form/user_group_access.form.json +22 -22
  100. package/server/templates/select/account_id.json +2 -2
  101. package/server/templates/table/gis.dataset.table.json +43 -43
  102. package/server/templates/table/management.user_group.table.json +112 -112
  103. package/server/templates/table/management.users.table.json +126 -126
  104. package/utils.js +8 -8
@@ -1,7 +1,8 @@
1
- import { _ as b, a as C, I as te } from "./import-file-DBSDU17c.js";
1
+ import { _ as m, a as C } from "./import-file-ChmncuMJ.js";
2
2
  import { u as B } from "./userMenu-CT1xO2Pt.js";
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 p, withCtx as y, createBlock as g, withModifiers as re, renderList as S, withDirectives as X, vModelCheckbox as le, normalizeStyle as j, normalizeClass as ne, resolveDynamicComponent as Q, Transition as se, vShow as ae } from "vue";
4
- const oe = {}, 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 re, renderList as S, withDirectives as Y, vModelCheckbox as le, normalizeStyle as j, normalizeClass as ne, resolveDynamicComponent as X, Transition as se, vShow as ae } from "vue";
4
+ import { I as oe } from "./IconSearch-BtomZb8r.js";
5
+ const ie = {}, de = {
5
6
  class: "h21yx vs0hq",
6
7
  xmlns: "http://www.w3.org/2000/svg",
7
8
  width: "24",
@@ -13,12 +14,12 @@ const oe = {}, ie = {
13
14
  "stroke-linecap": "round",
14
15
  "stroke-linejoin": "round"
15
16
  };
16
- function de(t, e, r, o, n, s) {
17
- return a(), i("svg", ie, e[0] || (e[0] = [
17
+ function ce(t, e, r, o, n, s) {
18
+ return a(), i("svg", de, e[0] || (e[0] = [
18
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)
19
20
  ]));
20
21
  }
21
- const ce = /* @__PURE__ */ b(oe, [["render", de]]), ue = {
22
+ const ue = /* @__PURE__ */ m(ie, [["render", ce]]), he = {
22
23
  data() {
23
24
  return {
24
25
  currentSort: ""
@@ -76,10 +77,10 @@ const ce = /* @__PURE__ */ b(oe, [["render", de]]), ue = {
76
77
  return `${this.data.name}-${t}` === this.selectedSortParam;
77
78
  }
78
79
  }
79
- }, he = {
80
+ }, pe = {
80
81
  scope: "col",
81
82
  class: "text-start"
82
- }, pe = {
83
+ }, me = {
83
84
  class: "flex-shrink-0 size-3.5",
84
85
  xmlns: "http://www.w3.org/2000/svg",
85
86
  width: "24",
@@ -93,30 +94,30 @@ const ce = /* @__PURE__ */ b(oe, [["render", de]]), ue = {
93
94
  }, be = {
94
95
  key: 0,
95
96
  d: "m7 15 5 5 5-5"
96
- }, me = {
97
+ }, fe = {
97
98
  key: 1,
98
99
  d: "m7 9 5-5 5 5"
99
- }, fe = {
100
+ }, ge = {
100
101
  key: 1,
101
102
  class: "text-sm text-gray-800 px-[4px] py-2.5 text-start font-normal text-gray-500"
102
103
  };
103
- function ge(t, e, r, o, n, s) {
104
- return a(), i("th", he, [
104
+ function xe(t, e, r, o, n, s) {
105
+ return a(), i("th", pe, [
105
106
  s.getVisibleIcon ? (a(), i("button", {
106
107
  key: 0,
107
108
  type: "button",
108
109
  class: "text-sm text-gray-800 px-[4px] py-2.5 text-start font-normal text-gray-500 flex items-center gap-[6px]",
109
- onClick: e[0] || (e[0] = (m) => s.handleClickSortBtn(n.currentSort))
110
+ onClick: e[0] || (e[0] = (b) => s.handleClickSortBtn(n.currentSort))
110
111
  }, [
111
112
  T(V(s.label) + " ", 1),
112
- (a(), i("svg", pe, [
113
+ (a(), i("svg", me, [
113
114
  n.currentSort === "asc" || n.currentSort === "" ? (a(), i("path", be)) : v("", !0),
114
- n.currentSort === "desc" || n.currentSort === "" ? (a(), i("path", me)) : v("", !0)
115
+ n.currentSort === "desc" || n.currentSort === "" ? (a(), i("path", fe)) : v("", !0)
115
116
  ]))
116
- ])) : (a(), i("p", fe, V(s.label), 1))
117
+ ])) : (a(), i("p", ge, V(s.label), 1))
117
118
  ]);
118
119
  }
119
- const xe = /* @__PURE__ */ b(ue, [["render", ge]]), ye = {}, ke = {
120
+ const ye = /* @__PURE__ */ m(he, [["render", xe]]), ke = {}, we = {
120
121
  xmlns: "http://www.w3.org/2000/svg",
121
122
  viewBox: "0 0 24 24",
122
123
  fill: "none",
@@ -126,8 +127,8 @@ const xe = /* @__PURE__ */ b(ue, [["render", ge]]), ye = {}, ke = {
126
127
  "stroke-linejoin": "round",
127
128
  class: "icon icon-tabler icons-tabler-outline icon-tabler-dots-vertical"
128
129
  };
129
- function we(t, e, r, o, n, s) {
130
- return a(), i("svg", ke, e[0] || (e[0] = [
130
+ function _e(t, e, r, o, n, s) {
131
+ return a(), i("svg", we, e[0] || (e[0] = [
131
132
  l("path", {
132
133
  stroke: "none",
133
134
  d: "M0 0h24v24H0z",
@@ -138,7 +139,7 @@ function we(t, e, r, o, n, s) {
138
139
  l("path", { d: "M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
139
140
  ]));
140
141
  }
141
- const _e = /* @__PURE__ */ b(ye, [["render", we]]), ve = {}, Ce = {
142
+ const ve = /* @__PURE__ */ m(ke, [["render", _e]]), Ce = {}, $e = {
142
143
  class: "flex-shrink-0 size-3.5",
143
144
  xmlns: "http://www.w3.org/2000/svg",
144
145
  viewBox: "0 0 24 24",
@@ -148,21 +149,21 @@ const _e = /* @__PURE__ */ b(ye, [["render", we]]), ve = {}, Ce = {
148
149
  "stroke-linecap": "round",
149
150
  "stroke-linejoin": "round"
150
151
  };
151
- function $e(t, e, r, o, n, s) {
152
- return a(), i("svg", Ce, e[0] || (e[0] = [
152
+ function Se(t, e, r, o, n, s) {
153
+ return a(), i("svg", $e, e[0] || (e[0] = [
153
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)
154
155
  ]));
155
156
  }
156
- const Se = /* @__PURE__ */ b(ve, [["render", $e]]), Te = {
157
+ const Te = /* @__PURE__ */ m(Ce, [["render", Se]]), Ve = {
157
158
  props: {
158
159
  height: { type: String, default: "16" },
159
160
  width: { type: String, default: "12" },
160
161
  color: { type: String, default: "black" }
161
162
  }
162
- }, Ve = { style: { display: "none" } }, De = ["height", "width", "fill"];
163
- function Fe(t, e, r, o, n, s) {
163
+ }, De = { style: { display: "none" } }, Fe = ["height", "width", "fill"];
164
+ function Me(t, e, r, o, n, s) {
164
165
  return a(), i(x, null, [
165
- (a(), i("svg", Ve, e[0] || (e[0] = [
166
+ (a(), i("svg", De, e[0] || (e[0] = [
166
167
  l("symbol", {
167
168
  id: "icon-pencil",
168
169
  viewBox: "0 0 32 32"
@@ -176,14 +177,14 @@ function Fe(t, e, r, o, n, s) {
176
177
  fill: r.color
177
178
  }, e[1] || (e[1] = [
178
179
  l("use", { "xlink:href": "#icon-pencil" }, null, -1)
179
- ]), 8, De))
180
+ ]), 8, Fe))
180
181
  ], 64);
181
182
  }
182
- const Me = /* @__PURE__ */ b(Te, [["render", Fe]]), Ae = {
183
+ const Ae = /* @__PURE__ */ m(Ve, [["render", Me]]), Ie = {
183
184
  components: {
184
- IconMore: _e,
185
- IconDelete: Se,
186
- IconEdit: Me
185
+ IconMore: ve,
186
+ IconDelete: Te,
187
+ IconEdit: Ae
187
188
  },
188
189
  emits: ["updateTable"],
189
190
  props: { item: Object, table: String, isForm: null },
@@ -231,21 +232,21 @@ const Me = /* @__PURE__ */ b(Te, [["render", Fe]]), Ae = {
231
232
  }
232
233
  }
233
234
  }
234
- }, Ie = { class: "hs-dropdown [--placement:bottom-right] inline-flex" }, Be = { class: "gap-x-2 p-[4px] rounded-lg shadow-sm hover:border-transparent border focus:outline-none text-black hover:bg-gray-50" }, je = { class: "flex flex-col items-start" }, ze = {
235
+ }, Be = { class: "hs-dropdown [--placement:bottom-right] inline-flex" }, je = { class: "gap-x-2 p-[4px] rounded-lg shadow-sm hover:border-transparent border focus:outline-none text-black hover:bg-gray-50" }, ze = { class: "flex flex-col items-start" }, Pe = {
235
236
  key: 1,
236
237
  class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
237
- }, Pe = { class: "p-4" }, Ee = { class: "mt-4 flex justify-end gap-x-3" };
238
- function Ue(t, e, r, o, n, s) {
239
- const m = d("IconMore"), f = d("IconEdit"), k = d("router-link"), u = d("IconDelete"), w = d("VsPopover"), $ = d("VsDialog");
238
+ }, Ee = { class: "p-4" }, Ue = { class: "mt-4 flex justify-end gap-x-3" };
239
+ function Le(t, e, r, o, n, s) {
240
+ const b = d("IconMore"), f = d("IconEdit"), k = d("router-link"), u = d("IconDelete"), w = d("VsPopover"), $ = d("VsDialog");
240
241
  return a(), i(x, null, [
241
- l("div", Ie, [
242
- p(w, {
242
+ l("div", Be, [
243
+ h(w, {
243
244
  trigger: "click",
244
245
  placement: "bottom-left"
245
246
  }, {
246
247
  reference: y(() => [
247
- l("button", Be, [
248
- p(m, {
248
+ l("button", je, [
249
+ h(b, {
249
250
  height: "16",
250
251
  width: "16"
251
252
  })
@@ -254,24 +255,24 @@ function Ue(t, e, r, o, n, s) {
254
255
  default: y(() => {
255
256
  var _, D, F;
256
257
  return [
257
- l("div", je, [
258
+ l("div", ze, [
258
259
  r.isForm ? (a(), g(k, {
259
260
  key: 0,
260
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}`,
261
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"
262
263
  }, {
263
264
  default: y(() => [
264
- p(f, { color: "#000" }),
265
+ h(f, { color: "#000" }),
265
266
  e[4] || (e[4] = T(" Редагувати "))
266
267
  ]),
267
268
  _: 1
268
269
  }, 8, ["to"])) : v("", !0),
269
- r.isForm ? (a(), i("div", ze)) : v("", !0),
270
+ r.isForm ? (a(), i("div", Pe)) : v("", !0),
270
271
  l("button", {
271
272
  onClick: e[0] || (e[0] = re((...I) => s.openConfirm && s.openConfirm(...I), ["stop"])),
272
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"
273
274
  }, [
274
- p(u),
275
+ h(u),
275
276
  e[5] || (e[5] = l("span", { class: "text-gray-800" }, "Видалити", -1))
276
277
  ])
277
278
  ])
@@ -280,15 +281,15 @@ function Ue(t, e, r, o, n, s) {
280
281
  _: 1
281
282
  })
282
283
  ]),
283
- p($, {
284
+ h($, {
284
285
  visible: n.isDeleteConfirm,
285
286
  "onUpdate:visible": e[3] || (e[3] = (_) => n.isDeleteConfirm = _),
286
287
  title: "Ви впевнені?"
287
288
  }, {
288
289
  default: y(() => [
289
- l("div", Pe, [
290
+ l("div", Ee, [
290
291
  e[6] || (e[6] = l("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
291
- l("div", Ee, [
292
+ l("div", Ue, [
292
293
  l("button", {
293
294
  type: "button",
294
295
  class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm 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",
@@ -306,7 +307,7 @@ function Ue(t, e, r, o, n, s) {
306
307
  }, 8, ["visible"])
307
308
  ], 64);
308
309
  }
309
- const Le = /* @__PURE__ */ b(Ae, [["render", Ue]]), qe = {}, Oe = {
310
+ const qe = /* @__PURE__ */ m(Ie, [["render", Le]]), Oe = {}, We = {
310
311
  class: "flex-shrink-0 mt-0.5 size-3.5",
311
312
  xmlns: "http://www.w3.org/2000/svg",
312
313
  viewBox: "0 0 24 24",
@@ -316,16 +317,16 @@ const Le = /* @__PURE__ */ b(Ae, [["render", Ue]]), qe = {}, Oe = {
316
317
  "stroke-linecap": "round",
317
318
  "stroke-linejoin": "round"
318
319
  };
319
- function We(t, e, r, o, n, s) {
320
- return a(), i("svg", Oe, e[0] || (e[0] = [
320
+ function He(t, e, r, o, n, s) {
321
+ return a(), i("svg", We, e[0] || (e[0] = [
321
322
  l("path", { d: "m3 16 4 4 4-4" }, null, -1),
322
323
  l("path", { d: "M7 20V4" }, null, -1),
323
324
  l("path", { d: "m21 8-4-4-4 4" }, null, -1),
324
325
  l("path", { d: "M17 4v16" }, null, -1)
325
326
  ]));
326
327
  }
327
- const He = /* @__PURE__ */ b(qe, [["render", We]]), Ne = {
328
- components: { IconExport: He },
328
+ const Ne = /* @__PURE__ */ m(Oe, [["render", He]]), Re = {
329
+ components: { IconExport: Ne },
329
330
  props: { table: String, columns: Array },
330
331
  data() {
331
332
  return {
@@ -368,15 +369,15 @@ const He = /* @__PURE__ */ b(qe, [["render", We]]), Ne = {
368
369
  this.format = t;
369
370
  }
370
371
  }
371
- }, 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" };
372
- function et(t, e, r, o, n, s) {
373
- const m = d("IconExport"), f = d("VsCheckbox"), k = d("VsDialog");
372
+ }, Ge = { class: "p-4" }, Ze = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, Je = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Ke = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, Qe = { class: "mt-2 space-y-2" }, Xe = ["id", "onChange"], Ye = ["for"], et = { class: "flex w-full justify-end p-[20px] gap-[6px] border-t" };
373
+ function tt(t, e, r, o, n, s) {
374
+ const b = d("IconExport"), f = d("VsCheckbox"), k = d("VsDialog");
374
375
  return a(), i(x, null, [
375
376
  l("button", {
376
377
  onClick: e[0] || (e[0] = (u) => n.isOpen = !0),
377
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"
378
379
  }, [
379
- p(m, {
380
+ h(b, {
380
381
  height: "16",
381
382
  width: "16"
382
383
  }),
@@ -396,14 +397,14 @@ function et(t, e, r, o, n, s) {
396
397
  l("path", { d: "m6 9 6 6 6-6" })
397
398
  ], -1))
398
399
  ]),
399
- p(k, {
400
+ h(k, {
400
401
  visible: n.isOpen,
401
402
  "onUpdate:visible": e[3] || (e[3] = (u) => n.isOpen = u),
402
403
  title: "Експорт таблиці",
403
404
  size: "small"
404
405
  }, {
405
406
  footer: y(() => [
406
- l("div", Ye, [
407
+ l("div", et, [
407
408
  e[8] || (e[8] = l("button", {
408
409
  type: "button",
409
410
  class: "py-2 px-3 text-nowrap inline-flex justify-center items-center text-start bg-white border border-gray-200 text-gray-800 text-sm font-medium rounded-lg shadow-sm align-middle hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
@@ -418,16 +419,16 @@ function et(t, e, r, o, n, s) {
418
419
  ]),
419
420
  default: y(() => [
420
421
  e[9] || (e[9] = l("div", { class: "dark:border-neutral-700" }, null, -1)),
421
- l("div", Re, [
422
- l("div", Ge, [
422
+ l("div", Ge, [
423
+ l("div", Ze, [
423
424
  e[6] || (e[6] = l("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
424
- l("div", Ze, [
425
+ l("div", Je, [
425
426
  (a(!0), i(x, null, S(r.columns, (u, w) => (a(), i("div", {
426
427
  class: "flex items-center",
427
428
  key: w,
428
429
  style: { width: "calc((100% - 10px) / 2)" }
429
430
  }, [
430
- p(f, {
431
+ h(f, {
431
432
  class: "[&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0",
432
433
  modelValue: n.cols,
433
434
  "onUpdate:modelValue": e[1] || (e[1] = ($) => n.cols = $),
@@ -437,9 +438,9 @@ function et(t, e, r, o, n, s) {
437
438
  ]))), 128))
438
439
  ])
439
440
  ]),
440
- l("div", Je, [
441
+ l("div", Ke, [
441
442
  e[7] || (e[7] = l("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
442
- l("div", Ke, [
443
+ l("div", Qe, [
443
444
  (a(!0), i(x, null, S(n.tableFormats, (u, w) => (a(), i("div", {
444
445
  class: "flex items-center",
445
446
  key: w
@@ -450,11 +451,11 @@ function et(t, e, r, o, n, s) {
450
451
  class: "shrink-0 border-gray-300 rounded-full text-blue-600 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",
451
452
  id: u,
452
453
  onChange: ($) => s.selectFormat(u)
453
- }, null, 40, Qe),
454
+ }, null, 40, Xe),
454
455
  l("label", {
455
456
  for: u,
456
457
  class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
457
- }, " Формат " + V(u), 9, Xe)
458
+ }, " Формат " + V(u), 9, Ye)
458
459
  ]))), 128))
459
460
  ])
460
461
  ])
@@ -464,7 +465,7 @@ function et(t, e, r, o, n, s) {
464
465
  }, 8, ["visible"])
465
466
  ], 64);
466
467
  }
467
- const tt = /* @__PURE__ */ b(Ne, [["render", et]]), rt = {}, lt = {
468
+ const rt = /* @__PURE__ */ m(Re, [["render", tt]]), lt = {}, nt = {
468
469
  xmlns: "http://www.w3.org/2000/svg",
469
470
  viewBox: "0 0 24 24",
470
471
  fill: "none",
@@ -474,12 +475,12 @@ const tt = /* @__PURE__ */ b(Ne, [["render", et]]), rt = {}, lt = {
474
475
  "stroke-linejoin": "round",
475
476
  class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
476
477
  };
477
- function nt(t, e, r, o, n, s) {
478
- return a(), i("svg", lt, e[0] || (e[0] = [
478
+ function st(t, e, r, o, n, s) {
479
+ return a(), i("svg", nt, e[0] || (e[0] = [
479
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)
480
481
  ]));
481
482
  }
482
- const st = /* @__PURE__ */ b(rt, [["render", nt]]), at = {
483
+ const at = /* @__PURE__ */ m(lt, [["render", st]]), ot = {
483
484
  props: { column: Object },
484
485
  emits: ["update-column"],
485
486
  data() {
@@ -496,21 +497,21 @@ const st = /* @__PURE__ */ b(rt, [["render", nt]]), at = {
496
497
  var t;
497
498
  ((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
498
499
  }
499
- }, ot = { class: "flex w-full gap-[8px] items-centr" };
500
- function it(t, e, r, o, n, s) {
501
- var m, f;
502
- return a(), i("label", ot, [
503
- X(l("input", {
500
+ }, it = { class: "flex w-full gap-[8px] items-centr" };
501
+ function dt(t, e, r, o, n, s) {
502
+ var b, f;
503
+ return a(), i("label", it, [
504
+ Y(l("input", {
504
505
  "onUpdate:modelValue": e[0] || (e[0] = (k) => n.value = k),
505
506
  type: "checkbox"
506
507
  }, null, 512), [
507
508
  [le, n.value]
508
509
  ]),
509
- T(" " + V(((m = r.column) == null ? void 0 : m.ua) || ((f = r.column) == null ? void 0 : f.title)), 1)
510
+ T(" " + V(((b = r.column) == null ? void 0 : b.ua) || ((f = r.column) == null ? void 0 : f.title)), 1)
510
511
  ]);
511
512
  }
512
- const dt = /* @__PURE__ */ b(at, [["render", it]]), ct = {
513
- components: { IconColumns: st, AdminTableColumnsHiddenItem: dt },
513
+ const ct = /* @__PURE__ */ m(ot, [["render", dt]]), ut = {
514
+ components: { IconColumns: at, AdminTableColumnsHiddenItem: ct },
514
515
  emits: ["update-columns"],
515
516
  props: { columns: Array },
516
517
  methods: {
@@ -519,27 +520,27 @@ const dt = /* @__PURE__ */ b(at, [["render", it]]), ct = {
519
520
  r[e] = t, this.$emit("update-columns", [...r]);
520
521
  }
521
522
  }
522
- }, 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" };
523
+ }, ht = { 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" }, pt = { class: "py-[10px] px-[10px] w-[260px]" }, mt = { 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" };
523
524
  function bt(t, e, r, o, n, s) {
524
- const m = d("IconColumns"), f = d("AdminTableColumnsHiddenItem"), k = d("VsPopover");
525
+ const b = d("IconColumns"), f = d("AdminTableColumnsHiddenItem"), k = d("VsPopover");
525
526
  return a(), g(k, {
526
527
  trigger: "click",
527
528
  placement: "bottom"
528
529
  }, {
529
530
  reference: y(() => [
530
- l("button", ut, [
531
- p(m, {
531
+ l("button", ht, [
532
+ h(b, {
532
533
  height: "20",
533
534
  width: "16"
534
535
  })
535
536
  ])
536
537
  ]),
537
538
  default: y(() => [
538
- l("div", ht, [
539
+ l("div", pt, [
539
540
  e[0] || (e[0] = l("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
540
- l("ul", pt, [
541
+ l("ul", mt, [
541
542
  (a(!0), i(x, null, S(r.columns, (u, w) => (a(), i("li", { key: w }, [
542
- p(f, {
543
+ h(f, {
543
544
  column: u,
544
545
  onUpdateColumn: s.updateColumn
545
546
  }, null, 8, ["column", "onUpdateColumn"])
@@ -550,14 +551,14 @@ function bt(t, e, r, o, n, s) {
550
551
  _: 1
551
552
  });
552
553
  }
553
- const mt = /* @__PURE__ */ b(ct, [["render", bt]]), ft = {}, gt = {
554
+ const ft = /* @__PURE__ */ m(ut, [["render", bt]]), gt = {}, xt = {
554
555
  class: "hidden sm:block shrink-0 size-3",
555
556
  xmlns: "http://www.w3.org/2000/svg",
556
557
  fill: "currentColor",
557
558
  viewBox: "0 0 16 16"
558
559
  };
559
- function xt(t, e, r, o, n, s) {
560
- return a(), i("svg", gt, e[0] || (e[0] = [
560
+ function yt(t, e, r, o, n, s) {
561
+ return a(), i("svg", xt, e[0] || (e[0] = [
561
562
  l("path", {
562
563
  "fill-rule": "evenodd",
563
564
  "clip-rule": "evenodd",
@@ -565,23 +566,23 @@ function xt(t, e, r, o, n, s) {
565
566
  }, null, -1)
566
567
  ]));
567
568
  }
568
- const yt = /* @__PURE__ */ b(ft, [["render", xt]]), kt = {}, wt = { class: "vs-table-interface__table-wrp w-full rounded h-fit overflow-hidden" };
569
- function _t(t, e, r, o, n, s) {
570
- return a(), i("div", wt, e[0] || (e[0] = [
569
+ const kt = /* @__PURE__ */ m(gt, [["render", yt]]), wt = {}, _t = { class: "vs-table-interface__table-wrp w-full rounded h-fit overflow-hidden" };
570
+ function vt(t, e, r, o, n, s) {
571
+ return a(), i("div", _t, e[0] || (e[0] = [
571
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)
572
573
  ]));
573
574
  }
574
- const vt = /* @__PURE__ */ b(kt, [["render", _t]]), Ct = {
575
+ const Ct = /* @__PURE__ */ m(wt, [["render", vt]]), $t = {
575
576
  props: { table: String, title: String },
576
577
  components: {
577
- IconFilter: ce,
578
- AdminTableControl: Le,
579
- AdminTableExport: tt,
580
- AdminTableColumnsHidden: mt,
581
- AdminTableColumn: xe,
582
- AdminNodata: vt,
583
- IconPlus: yt,
584
- IconSearch: te
578
+ IconFilter: ue,
579
+ AdminTableControl: qe,
580
+ AdminTableExport: rt,
581
+ AdminTableColumnsHidden: ft,
582
+ AdminTableColumn: ye,
583
+ AdminNodata: Ct,
584
+ IconPlus: kt,
585
+ IconSearch: oe
585
586
  },
586
587
  data() {
587
588
  return {
@@ -698,33 +699,33 @@ const vt = /* @__PURE__ */ b(kt, [["render", _t]]), Ct = {
698
699
  ((e = this.tableData) == null ? void 0 : e.card) === !1 || this.$router.push(`/card/${this.table}/${t}`);
699
700
  }
700
701
  }
701
- }, $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 = {
702
+ }, St = { class: "w-[calc(100vw - 320px)]" }, Tt = { class: "h-[76px] bg-gray-50 flex items-center justify-between px-[30px]" }, Vt = { class: "text-xl font-medium h-[20px]" }, Dt = {
702
703
  style: { height: "calc(100vh - 140px)", width: "calc(100vw - 260px)" },
703
704
  class: "bg-gray-50 p-[20px] flex pt-[10px]"
704
- }, 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 = {
705
+ }, Ft = { class: "bg-white w-full rounded-xl border p-[20px]" }, Mt = { class: "flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative" }, At = { class: "flex gap-[6px] ml-auto" }, It = {
705
706
  key: 0,
706
707
  class: "font-medium text-[10px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full dark:bg-neutral-500"
707
- }, It = { class: "space-y-5 flex items-start w-full justify-start" }, Bt = {
708
+ }, Bt = { class: "space-y-5 flex items-start w-full justify-start" }, jt = {
708
709
  style: { height: "calc(100vh - 310px)" },
709
710
  class: "overflow-x-auto w-full border-t [&::-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"
710
- }, jt = { class: "inline-block w-full align-middle" }, zt = {
711
+ }, zt = { class: "inline-block w-full align-middle" }, Pt = {
711
712
  key: 0,
712
713
  class: "divide-y divide-gray-200 min-w-full dark:divide-neutral-700 relative table-fixed"
713
- }, 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" };
714
- function Ht(t, e, r, o, n, s) {
714
+ }, Et = { 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" }, Ut = { class: "border-stone-200 right-0 z-[1]" }, Lt = { class: "divide-y divide-gray-200" }, qt = ["onClick"], Ot = { class: "text-center sticky right-0 bg-white w-[80px] px-[10px]" }, Wt = { class: "p-[20px] flex justify-end w-full" }, Ht = { 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 Nt(t, e, r, o, n, s) {
715
716
  var z, P, E, U, L, q;
716
- const m = 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");
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"), ee = d("VsPagination"), te = d("VsFilter");
717
718
  return a(), i(x, null, [
718
- l("div", $t, [
719
- l("div", St, [
720
- l("h2", Tt, V(r.title), 1),
719
+ l("div", St, [
720
+ l("div", Tt, [
721
+ l("h2", Vt, V(r.title), 1),
721
722
  s.isForm ? (a(), g(f, {
722
723
  key: 0,
723
724
  to: `/add?table=${(P = (z = t.$route) == null ? void 0 : z.params) == null ? void 0 : P.catchAll}`,
724
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"
725
726
  }, {
726
727
  default: y(() => [
727
- p(m, {
728
+ h(b, {
728
729
  height: "16",
729
730
  width: "16"
730
731
  }),
@@ -733,27 +734,27 @@ function Ht(t, e, r, o, n, s) {
733
734
  _: 1
734
735
  }, 8, ["to"])) : v("", !0)
735
736
  ]),
736
- l("div", Vt, [
737
- l("div", Dt, [
738
- l("div", Ft, [
739
- p(k, {
737
+ l("div", Dt, [
738
+ l("div", Ft, [
739
+ l("div", Mt, [
740
+ h(k, {
740
741
  height: "14",
741
742
  width: "14",
742
743
  class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
743
744
  }),
744
- p(u, {
745
+ h(u, {
745
746
  modelValue: n.searchValue,
746
747
  "onUpdate:modelValue": e[0] || (e[0] = (c) => n.searchValue = c),
747
748
  placeholder: "Пошук...",
748
749
  clearable: !0,
749
750
  class: "[&>input]:py-[7px] [&>input]:ps-10 [&>input]:pe-8 [&>input]:block [&>input]:w-full [&>input]:bg-gray-100 [&>input]:border-transparent [&>input]:rounded-lg [&>input]:text-sm [&>input]:focus:bg-white [&>input]:focus:border-blue-500 [&>input]:focus:ring-blue-500 [&>input]:disabled:opacity-50 [&>input]:disabled:pointer-events-none [&>input]:dark:bg-neutral-700 [&>input]:dark:border-transparent [&>input]:dark:text-neutral-400 [&>input]:dark:placeholder:text-neutral-400 dark:focus:bg-neutral-800 dark:focus:ring-neutral-600"
750
751
  }, null, 8, ["modelValue"]),
751
- l("div", Mt, [
752
- p(w, {
752
+ l("div", At, [
753
+ h(w, {
753
754
  columns: (E = n.tableData) == null ? void 0 : E.columns,
754
755
  onUpdateColumns: e[1] || (e[1] = (c) => n.tableData.columns = c)
755
756
  }, null, 8, ["columns"]),
756
- p($, {
757
+ h($, {
757
758
  table: r.table,
758
759
  columns: (U = n.tableData) == null ? void 0 : U.columns
759
760
  }, null, 8, ["table", "columns"]),
@@ -761,21 +762,21 @@ function Ht(t, e, r, o, n, s) {
761
762
  onClick: e[2] || (e[2] = (c) => n.isFilters = !n.isFilters),
762
763
  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"
763
764
  }, [
764
- p(_, {
765
+ h(_, {
765
766
  height: "16",
766
767
  width: "16"
767
768
  }),
768
769
  e[6] || (e[6] = T(" Фільтри ")),
769
- n.onFilters ? (a(), i("span", At, V(n.onFilters), 1)) : v("", !0)
770
+ n.onFilters ? (a(), i("span", It, V(n.onFilters), 1)) : v("", !0)
770
771
  ])
771
772
  ])
772
773
  ]),
773
- l("div", It, [
774
- l("div", Bt, [
775
- l("div", jt, [
776
- s.isNoData ? (a(), g(I, { key: 1 })) : (a(), i("table", zt, [
777
- l("thead", Pt, [
778
- l("tr", Et, [
774
+ l("div", Bt, [
775
+ l("div", jt, [
776
+ l("div", zt, [
777
+ s.isNoData ? (a(), g(I, { key: 1 })) : (a(), i("table", Pt, [
778
+ l("thead", Et, [
779
+ l("tr", Ut, [
779
780
  (a(!0), i(x, null, S(s.columns, (c) => (a(), g(D, {
780
781
  key: c.name,
781
782
  style: j({ minWidth: s.rowWidth, maxWidth: s.rowWidth }),
@@ -786,7 +787,7 @@ function Ht(t, e, r, o, n, s) {
786
787
  e[7] || (e[7] = l("th", { class: "w-[70px] sticky right-0 top-0 bg-white" }, null, -1))
787
788
  ])
788
789
  ]),
789
- l("tbody", Ut, [
790
+ l("tbody", Lt, [
790
791
  (a(!0), i(x, null, S((L = n.tableData) == null ? void 0 : L.rows, (c, M) => {
791
792
  var O, W, H, N, R, G, Z, J;
792
793
  return a(), i("tr", { key: M }, [
@@ -800,7 +801,7 @@ function Ht(t, e, r, o, n, s) {
800
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"
801
802
  ]])
802
803
  }, [
803
- (a(), g(Q(
804
+ (a(), g(X(
804
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"}`]
805
806
  ), {
806
807
  name: (G = s.columns[0]) == null ? void 0 : G.name,
@@ -808,29 +809,29 @@ function Ht(t, e, r, o, n, s) {
808
809
  value: c == null ? void 0 : c[(Z = s.columns[0]) == null ? void 0 : Z.name],
809
810
  table: r.table
810
811
  }, null, 8, ["name", "data", "value", "table"]))
811
- ], 10, Lt)
812
+ ], 10, qt)
812
813
  ], 4),
813
- (a(!0), i(x, null, S((J = s.columns) == null ? void 0 : J.slice(1), (h) => {
814
- var K;
814
+ (a(!0), i(x, null, S((J = s.columns) == null ? void 0 : J.slice(1), (p) => {
815
+ var K, Q;
815
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
- key: h.name
819
+ key: p.name
819
820
  }, [
820
- (a(), g(Q(
821
- (h == null ? void 0 : h.format) === "custom" ? h == null ? void 0 : h.component : t.$componentsConfig[`table-format-${((K = h == null ? void 0 : h.format) == null ? void 0 : K.toLowerCase()) || "text"}`]
821
+ (a(), g(X(
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
  ), {
823
824
  onUpdateTable: s.getTableData,
824
- name: h == null ? void 0 : h.name,
825
+ name: p == null ? void 0 : p.name,
825
826
  data: c,
826
- value: c == null ? void 0 : c[h == null ? void 0 : h.name],
827
+ value: c == null ? void 0 : c[p == null ? void 0 : p.name],
827
828
  table: r.table,
828
- inline: (h == null ? void 0 : h.inline) || !1
829
+ inline: ((Q = n.tableData) == null ? void 0 : Q.inline) || !1
829
830
  }, null, 40, ["onUpdateTable", "name", "data", "value", "table", "inline"]))
830
831
  ], 4);
831
832
  }), 128)),
832
- l("td", qt, [
833
- p(F, {
833
+ l("td", Ot, [
834
+ h(F, {
834
835
  isForm: s.isForm,
835
836
  item: c,
836
837
  table: r.table,
@@ -844,8 +845,8 @@ function Ht(t, e, r, o, n, s) {
844
845
  ])
845
846
  ])
846
847
  ]),
847
- l("div", Ot, [
848
- n.limit ? (a(), g(Y, {
848
+ l("div", Wt, [
849
+ n.limit ? (a(), g(ee, {
849
850
  key: 0,
850
851
  goTo: !1,
851
852
  class: "justify-end",
@@ -860,17 +861,17 @@ function Ht(t, e, r, o, n, s) {
860
861
  ])
861
862
  ])
862
863
  ]),
863
- p(se, { name: "fade" }, {
864
+ h(se, { name: "fade" }, {
864
865
  default: y(() => {
865
866
  var c;
866
867
  return [
867
- X(l("div", {
868
+ Y(l("div", {
868
869
  onClick: e[4] || (e[4] = (...M) => s.closeFilter && s.closeFilter(...M)),
869
870
  style: { height: "100vh" },
870
871
  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)]"
871
872
  }, [
872
- l("div", Wt, [
873
- (c = n.filterScheme) != null && c.length ? (a(), g(ee, {
873
+ l("div", Ht, [
874
+ (c = n.filterScheme) != null && c.length ? (a(), g(te, {
874
875
  key: 0,
875
876
  ref: "filter",
876
877
  scheme: n.filterScheme,
@@ -892,8 +893,8 @@ function Ht(t, e, r, o, n, s) {
892
893
  })
893
894
  ], 64);
894
895
  }
895
- const Nt = /* @__PURE__ */ b(Ct, [["render", Ht]]), Rt = {
896
- components: { AdminTable: Nt },
896
+ const Rt = /* @__PURE__ */ m($t, [["render", Nt]]), Gt = {
897
+ components: { AdminTable: Rt },
897
898
  data() {
898
899
  return {
899
900
  table: !1,
@@ -953,10 +954,10 @@ const Nt = /* @__PURE__ */ b(Ct, [["render", Ht]]), Rt = {
953
954
  }
954
955
  }
955
956
  }
956
- }, Gt = ["innerHTML"];
957
- function Zt(t, e, r, o, n, s) {
958
- const m = d("AdminTable");
959
- return n.table ? (a(), g(m, {
957
+ }, Zt = ["innerHTML"];
958
+ function Jt(t, e, r, o, n, s) {
959
+ const b = d("AdminTable");
960
+ return n.table ? (a(), g(b, {
960
961
  key: 0,
961
962
  table: n.table,
962
963
  title: n.title
@@ -965,9 +966,9 @@ function Zt(t, e, r, o, n, s) {
965
966
  class: "w-full bg-gray-50",
966
967
  style: { height: "calc(100vh - 120px)" },
967
968
  innerHTML: n.interface
968
- }, null, 8, Gt));
969
+ }, null, 8, Zt));
969
970
  }
970
- const Xt = /* @__PURE__ */ b(Rt, [["render", Zt]]);
971
+ const er = /* @__PURE__ */ m(Gt, [["render", Jt]]);
971
972
  export {
972
- Xt as default
973
+ er as default
973
974
  };