@opengis/admin 0.1.41 → 0.1.43

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 (103) hide show
  1. package/README.md +29 -29
  2. package/config.js +4 -4
  3. package/dist/{add-page-CYAz9FdO.js → add-page-CPxPEwVb.js} +1 -1
  4. package/dist/{admin-interface-BfY0EPQi.js → admin-interface-BrR4cmQr.js} +128 -150
  5. package/dist/{admin-view-CcyuPjSQ.js → admin-view-Cn0uqU9D.js} +2 -2
  6. package/dist/admin.js +1 -1
  7. package/dist/admin.umd.cjs +44 -44
  8. package/dist/{card-page-DV3pe4fv.js → card-page-ts5Cy3fm.js} +21 -21
  9. package/dist/{card-view-pwoN8ZHo.js → card-view-DGQRwJ0_.js} +1 -1
  10. package/dist/{edit-page-PNY_GQBC.js → edit-page-CTf_uwUQ.js} +1 -1
  11. package/dist/{import-file-aqrl_bc7.js → import-file-CElPY9ks.js} +6934 -6694
  12. package/dist/style.css +1 -1
  13. package/module/settings/card/admin.roles.table/access.hbs +27 -27
  14. package/module/settings/card/admin.roles.table/general_info.hbs +16 -16
  15. package/module/settings/card/admin.roles.table/index.yml +14 -14
  16. package/module/settings/card/admin.roles.table/users.hbs +27 -27
  17. package/module/settings/card/admin.routes.table/general_info.hbs +40 -40
  18. package/module/settings/card/admin.routes.table/index.yml +8 -8
  19. package/module/settings/card/admin.routes.table/users.hbs +33 -33
  20. package/module/settings/card/admin.users.table/general_info.hbs +25 -25
  21. package/module/settings/card/admin.users.table/index.yml +12 -12
  22. package/module/settings/card/admin.users.table/logs.hbs +30 -30
  23. package/module/settings/card/admin.users.table/user_roles.hbs +24 -24
  24. package/module/settings/cls/core.actions.json +13 -13
  25. package/module/settings/cls/core.scope.json +13 -13
  26. package/module/settings/cls/properties.site_status.json +13 -13
  27. package/module/settings/cls/properties.widget_status.json +13 -13
  28. package/module/settings/cls/users.user_type.json +13 -13
  29. package/module/settings/form/admin.access.form.json +36 -36
  30. package/module/settings/form/admin.properties.form.json +15 -15
  31. package/module/settings/form/admin.roles.form.json +19 -19
  32. package/module/settings/form/admin.routes.form.json +25 -25
  33. package/module/settings/form/admin.table_properties.form.json +70 -70
  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 +56 -50
  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.table_properties.table.json +81 -81
  50. package/module/settings/table/admin.user_properties.table.json +28 -28
  51. package/module/settings/table/admin.user_roles.table.json +66 -66
  52. package/module/settings/table/admin.users.table.json +119 -119
  53. package/package.json +78 -74
  54. package/plugin.js +101 -101
  55. package/server/helpers/controllers/badge.js +11 -11
  56. package/server/helpers/controllers/hb.js +2 -2
  57. package/server/helpers/controllers/map.js +2 -2
  58. package/server/helpers/controllers/mls.js +2 -2
  59. package/server/helpers/controllers/vue.js +2 -2
  60. package/server/helpers/index.mjs +13 -13
  61. package/server/plugins/docs.js +28 -28
  62. package/server/plugins/hook.js +166 -166
  63. package/server/plugins/vite.js +69 -69
  64. package/server/routes/data/controllers/cardData.js +56 -56
  65. package/server/routes/data/controllers/cardTabData.js +49 -39
  66. package/server/routes/data/controllers/funcs/getFilterSQL/index.js +85 -85
  67. package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +145 -145
  68. package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
  69. package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +67 -67
  70. package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
  71. package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
  72. package/server/routes/data/controllers/tableData.js +121 -121
  73. package/server/routes/data/controllers/tableDataId.js +27 -27
  74. package/server/routes/data/controllers/tableFilter.js +55 -55
  75. package/server/routes/data/controllers/utils/assignTokens.js +30 -30
  76. package/server/routes/data/controllers/utils/getColumns.js +21 -21
  77. package/server/routes/data/index.mjs +12 -12
  78. package/server/routes/menu/controllers/getMenu.js +33 -33
  79. package/server/routes/menu/index.mjs +5 -5
  80. package/server/routes/properties/controllers/admin.properties.get.js +29 -29
  81. package/server/routes/properties/controllers/user.properties.get.js +34 -34
  82. package/server/routes/properties/controllers/user.properties.post.js +30 -30
  83. package/server/routes/properties/funcs/getSettings.js +56 -56
  84. package/server/routes/properties/funcs/setSettings.js +44 -44
  85. package/server/routes/properties/funcs/utils/dataInsert.js +26 -26
  86. package/server/routes/properties/index.mjs +26 -26
  87. package/server/routes/root.mjs +3 -3
  88. package/server/routes/templates/controllers/getTemplate.js +14 -14
  89. package/server/routes/templates/index.mjs +14 -14
  90. package/server/templates/cls/itree.recrzone_category.json +73 -73
  91. package/server/templates/cls/test.json +9 -9
  92. package/server/templates/form/admin.user_cls.data.form.json +49 -49
  93. package/server/templates/form/admin.user_group_rel.form.json +21 -21
  94. package/server/templates/form/cp_building.form.json +32 -32
  95. package/server/templates/form/form-user-pass.json +10 -10
  96. package/server/templates/form/form-user_group.json +39 -39
  97. package/server/templates/form/form-users.json +156 -156
  98. package/server/templates/form/user_group_access.form.json +22 -22
  99. package/server/templates/select/account_id.json +2 -2
  100. package/server/templates/table/gis.dataset.table.json +43 -43
  101. package/server/templates/table/management.user_group.table.json +112 -112
  102. package/server/templates/table/management.users.table.json +126 -126
  103. package/utils.js +8 -8
@@ -1,7 +1,7 @@
1
- import { _ as b, a as C, I as te } from "./import-file-aqrl_bc7.js";
1
+ import { _ as b, b as te, a as C, I as re } from "./import-file-CElPY9ks.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 I, createTextVNode as T, toDisplayString as V, createCommentVNode as v, Fragment as x, createElementVNode as l, resolveComponent as d, createVNode as p, withCtx as y, createBlock as g, withModifiers as le, renderList as S, withDirectives as X, vModelCheckbox as ne, normalizeStyle as j, normalizeClass as se, resolveDynamicComponent as Q, Transition as ae, vShow as oe } from "vue";
4
+ const ie = {}, de = {
5
5
  class: "h21yx vs0hq",
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
7
  width: "24",
@@ -13,12 +13,12 @@ const oe = {}, ie = {
13
13
  "stroke-linecap": "round",
14
14
  "stroke-linejoin": "round"
15
15
  };
16
- function de(t, e, r, o, n, s) {
17
- return a(), i("svg", ie, e[0] || (e[0] = [
18
- 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)
16
+ function ce(t, e, r, o, n, s) {
17
+ return a(), i("svg", de, e[0] || (e[0] = [
18
+ I('<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
19
  ]));
20
20
  }
21
- const ce = /* @__PURE__ */ b(oe, [["render", de]]), ue = {
21
+ const ue = /* @__PURE__ */ b(ie, [["render", ce]]), he = {
22
22
  data() {
23
23
  return {
24
24
  currentSort: ""
@@ -76,10 +76,10 @@ const ce = /* @__PURE__ */ b(oe, [["render", de]]), ue = {
76
76
  return `${this.data.name}-${t}` === this.selectedSortParam;
77
77
  }
78
78
  }
79
- }, he = {
79
+ }, pe = {
80
80
  scope: "col",
81
81
  class: "text-start"
82
- }, pe = {
82
+ }, be = {
83
83
  class: "flex-shrink-0 size-3.5",
84
84
  xmlns: "http://www.w3.org/2000/svg",
85
85
  width: "24",
@@ -90,18 +90,18 @@ const ce = /* @__PURE__ */ b(oe, [["render", de]]), ue = {
90
90
  "stroke-width": "2",
91
91
  "stroke-linecap": "round",
92
92
  "stroke-linejoin": "round"
93
- }, be = {
93
+ }, me = {
94
94
  key: 0,
95
95
  d: "m7 15 5 5 5-5"
96
- }, me = {
96
+ }, fe = {
97
97
  key: 1,
98
98
  d: "m7 9 5-5 5 5"
99
- }, fe = {
99
+ }, ge = {
100
100
  key: 1,
101
101
  class: "text-sm text-gray-800 px-[4px] py-2.5 text-start font-normal text-gray-500"
102
102
  };
103
- function ge(t, e, r, o, n, s) {
104
- return a(), i("th", he, [
103
+ function xe(t, e, r, o, n, s) {
104
+ return a(), i("th", pe, [
105
105
  s.getVisibleIcon ? (a(), i("button", {
106
106
  key: 0,
107
107
  type: "button",
@@ -109,36 +109,14 @@ function ge(t, e, r, o, n, s) {
109
109
  onClick: e[0] || (e[0] = (m) => s.handleClickSortBtn(n.currentSort))
110
110
  }, [
111
111
  T(V(s.label) + " ", 1),
112
- (a(), i("svg", pe, [
113
- n.currentSort === "asc" || n.currentSort === "" ? (a(), i("path", be)) : v("", !0),
114
- n.currentSort === "desc" || n.currentSort === "" ? (a(), i("path", me)) : v("", !0)
112
+ (a(), i("svg", be, [
113
+ n.currentSort === "asc" || n.currentSort === "" ? (a(), i("path", me)) : v("", !0),
114
+ n.currentSort === "desc" || n.currentSort === "" ? (a(), i("path", fe)) : v("", !0)
115
115
  ]))
116
- ])) : (a(), i("p", fe, V(s.label), 1))
116
+ ])) : (a(), i("p", ge, V(s.label), 1))
117
117
  ]);
118
118
  }
119
- const xe = /* @__PURE__ */ b(ue, [["render", ge]]), ye = {}, ke = {
120
- xmlns: "http://www.w3.org/2000/svg",
121
- viewBox: "0 0 24 24",
122
- fill: "none",
123
- stroke: "currentColor",
124
- "stroke-width": "2",
125
- "stroke-linecap": "round",
126
- "stroke-linejoin": "round",
127
- class: "icon icon-tabler icons-tabler-outline icon-tabler-dots-vertical"
128
- };
129
- function we(t, e, r, o, n, s) {
130
- return a(), i("svg", ke, e[0] || (e[0] = [
131
- l("path", {
132
- stroke: "none",
133
- d: "M0 0h24v24H0z",
134
- fill: "none"
135
- }, null, -1),
136
- l("path", { d: "M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
137
- l("path", { d: "M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
138
- l("path", { d: "M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
139
- ]));
140
- }
141
- const _e = /* @__PURE__ */ b(ye, [["render", we]]), ve = {}, Ce = {
119
+ const ye = /* @__PURE__ */ b(he, [["render", xe]]), ke = {}, we = {
142
120
  class: "flex-shrink-0 size-3.5",
143
121
  xmlns: "http://www.w3.org/2000/svg",
144
122
  viewBox: "0 0 24 24",
@@ -148,21 +126,21 @@ const _e = /* @__PURE__ */ b(ye, [["render", we]]), ve = {}, Ce = {
148
126
  "stroke-linecap": "round",
149
127
  "stroke-linejoin": "round"
150
128
  };
151
- function $e(t, e, r, o, n, s) {
152
- return a(), i("svg", Ce, e[0] || (e[0] = [
153
- 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)
129
+ function _e(t, e, r, o, n, s) {
130
+ return a(), i("svg", we, e[0] || (e[0] = [
131
+ I('<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
132
  ]));
155
133
  }
156
- const Se = /* @__PURE__ */ b(ve, [["render", $e]]), Te = {
134
+ const ve = /* @__PURE__ */ b(ke, [["render", _e]]), Ce = {
157
135
  props: {
158
136
  height: { type: String, default: "16" },
159
137
  width: { type: String, default: "12" },
160
138
  color: { type: String, default: "black" }
161
139
  }
162
- }, Ve = { style: { display: "none" } }, De = ["height", "width", "fill"];
163
- function Fe(t, e, r, o, n, s) {
140
+ }, $e = { style: { display: "none" } }, Se = ["height", "width", "fill"];
141
+ function Te(t, e, r, o, n, s) {
164
142
  return a(), i(x, null, [
165
- (a(), i("svg", Ve, e[0] || (e[0] = [
143
+ (a(), i("svg", $e, e[0] || (e[0] = [
166
144
  l("symbol", {
167
145
  id: "icon-pencil",
168
146
  viewBox: "0 0 32 32"
@@ -176,14 +154,14 @@ function Fe(t, e, r, o, n, s) {
176
154
  fill: r.color
177
155
  }, e[1] || (e[1] = [
178
156
  l("use", { "xlink:href": "#icon-pencil" }, null, -1)
179
- ]), 8, De))
157
+ ]), 8, Se))
180
158
  ], 64);
181
159
  }
182
- const Me = /* @__PURE__ */ b(Te, [["render", Fe]]), Ae = {
160
+ const Ve = /* @__PURE__ */ b(Ce, [["render", Te]]), De = {
183
161
  components: {
184
- IconMore: _e,
185
- IconDelete: Se,
186
- IconEdit: Me
162
+ IconMore: te,
163
+ IconDelete: ve,
164
+ IconEdit: Ve
187
165
  },
188
166
  emits: ["updateTable"],
189
167
  props: { item: Object, table: String, isForm: null },
@@ -231,20 +209,20 @@ const Me = /* @__PURE__ */ b(Te, [["render", Fe]]), Ae = {
231
209
  }
232
210
  }
233
211
  }
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 = {
212
+ }, Fe = { class: "hs-dropdown [--placement:bottom-right] inline-flex" }, Ae = { class: "gap-x-2 p-[4px] rounded-lg shadow-sm hover:border-transparent border focus:outline-none text-black hover:bg-gray-50" }, Ie = { class: "flex flex-col items-start" }, Me = {
235
213
  key: 1,
236
214
  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) {
215
+ }, Be = { class: "p-4" }, je = { class: "mt-4 flex justify-end gap-x-3" };
216
+ function ze(t, e, r, o, n, s) {
239
217
  const m = d("IconMore"), f = d("IconEdit"), k = d("router-link"), u = d("IconDelete"), w = d("VsPopover"), $ = d("VsDialog");
240
218
  return a(), i(x, null, [
241
- l("div", Ie, [
219
+ l("div", Fe, [
242
220
  p(w, {
243
221
  trigger: "click",
244
222
  placement: "bottom-left"
245
223
  }, {
246
224
  reference: y(() => [
247
- l("button", Be, [
225
+ l("button", Ae, [
248
226
  p(m, {
249
227
  height: "16",
250
228
  width: "16"
@@ -254,7 +232,7 @@ function Ue(t, e, r, o, n, s) {
254
232
  default: y(() => {
255
233
  var _, D, F;
256
234
  return [
257
- l("div", je, [
235
+ l("div", Ie, [
258
236
  r.isForm ? (a(), g(k, {
259
237
  key: 0,
260
238
  to: `/edit?table=${(D = (_ = t.$route) == null ? void 0 : _.params) == null ? void 0 : D.catchAll}&id=${(F = r.item) == null ? void 0 : F.id}`,
@@ -266,9 +244,9 @@ function Ue(t, e, r, o, n, s) {
266
244
  ]),
267
245
  _: 1
268
246
  }, 8, ["to"])) : v("", !0),
269
- r.isForm ? (a(), i("div", ze)) : v("", !0),
247
+ r.isForm ? (a(), i("div", Me)) : v("", !0),
270
248
  l("button", {
271
- onClick: e[0] || (e[0] = re((...I) => s.openConfirm && s.openConfirm(...I), ["stop"])),
249
+ onClick: e[0] || (e[0] = le((...M) => s.openConfirm && s.openConfirm(...M), ["stop"])),
272
250
  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
251
  }, [
274
252
  p(u),
@@ -286,9 +264,9 @@ function Ue(t, e, r, o, n, s) {
286
264
  title: "Ви впевнені?"
287
265
  }, {
288
266
  default: y(() => [
289
- l("div", Pe, [
267
+ l("div", Be, [
290
268
  e[6] || (e[6] = l("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
291
- l("div", Ee, [
269
+ l("div", je, [
292
270
  l("button", {
293
271
  type: "button",
294
272
  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 +284,7 @@ function Ue(t, e, r, o, n, s) {
306
284
  }, 8, ["visible"])
307
285
  ], 64);
308
286
  }
309
- const Le = /* @__PURE__ */ b(Ae, [["render", Ue]]), qe = {}, Oe = {
287
+ const Pe = /* @__PURE__ */ b(De, [["render", ze]]), Ee = {}, Ue = {
310
288
  class: "flex-shrink-0 mt-0.5 size-3.5",
311
289
  xmlns: "http://www.w3.org/2000/svg",
312
290
  viewBox: "0 0 24 24",
@@ -316,16 +294,16 @@ const Le = /* @__PURE__ */ b(Ae, [["render", Ue]]), qe = {}, Oe = {
316
294
  "stroke-linecap": "round",
317
295
  "stroke-linejoin": "round"
318
296
  };
319
- function We(t, e, r, o, n, s) {
320
- return a(), i("svg", Oe, e[0] || (e[0] = [
297
+ function Le(t, e, r, o, n, s) {
298
+ return a(), i("svg", Ue, e[0] || (e[0] = [
321
299
  l("path", { d: "m3 16 4 4 4-4" }, null, -1),
322
300
  l("path", { d: "M7 20V4" }, null, -1),
323
301
  l("path", { d: "m21 8-4-4-4 4" }, null, -1),
324
302
  l("path", { d: "M17 4v16" }, null, -1)
325
303
  ]));
326
304
  }
327
- const He = /* @__PURE__ */ b(qe, [["render", We]]), Ne = {
328
- components: { IconExport: He },
305
+ const qe = /* @__PURE__ */ b(Ee, [["render", Le]]), Oe = {
306
+ components: { IconExport: qe },
329
307
  props: { table: String, columns: Array },
330
308
  data() {
331
309
  return {
@@ -368,8 +346,8 @@ const He = /* @__PURE__ */ b(qe, [["render", We]]), Ne = {
368
346
  this.format = t;
369
347
  }
370
348
  }
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) {
349
+ }, We = { class: "p-4" }, He = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, Ne = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Re = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, Ge = { class: "mt-2 space-y-2" }, Ze = ["id", "onChange"], Je = ["for"], Ke = { class: "flex w-full justify-end p-[20px] gap-[6px] border-t" };
350
+ function Qe(t, e, r, o, n, s) {
373
351
  const m = d("IconExport"), f = d("VsCheckbox"), k = d("VsDialog");
374
352
  return a(), i(x, null, [
375
353
  l("button", {
@@ -403,7 +381,7 @@ function et(t, e, r, o, n, s) {
403
381
  size: "small"
404
382
  }, {
405
383
  footer: y(() => [
406
- l("div", Ye, [
384
+ l("div", Ke, [
407
385
  e[8] || (e[8] = l("button", {
408
386
  type: "button",
409
387
  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,10 +396,10 @@ function et(t, e, r, o, n, s) {
418
396
  ]),
419
397
  default: y(() => [
420
398
  e[9] || (e[9] = l("div", { class: "dark:border-neutral-700" }, null, -1)),
421
- l("div", Re, [
422
- l("div", Ge, [
399
+ l("div", We, [
400
+ l("div", He, [
423
401
  e[6] || (e[6] = l("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
424
- l("div", Ze, [
402
+ l("div", Ne, [
425
403
  (a(!0), i(x, null, S(r.columns, (u, w) => (a(), i("div", {
426
404
  class: "flex items-center",
427
405
  key: w,
@@ -437,9 +415,9 @@ function et(t, e, r, o, n, s) {
437
415
  ]))), 128))
438
416
  ])
439
417
  ]),
440
- l("div", Je, [
418
+ l("div", Re, [
441
419
  e[7] || (e[7] = l("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
442
- l("div", Ke, [
420
+ l("div", Ge, [
443
421
  (a(!0), i(x, null, S(n.tableFormats, (u, w) => (a(), i("div", {
444
422
  class: "flex items-center",
445
423
  key: w
@@ -450,11 +428,11 @@ function et(t, e, r, o, n, s) {
450
428
  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
429
  id: u,
452
430
  onChange: ($) => s.selectFormat(u)
453
- }, null, 40, Qe),
431
+ }, null, 40, Ze),
454
432
  l("label", {
455
433
  for: u,
456
434
  class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
457
- }, " Формат " + V(u), 9, Xe)
435
+ }, " Формат " + V(u), 9, Je)
458
436
  ]))), 128))
459
437
  ])
460
438
  ])
@@ -464,7 +442,7 @@ function et(t, e, r, o, n, s) {
464
442
  }, 8, ["visible"])
465
443
  ], 64);
466
444
  }
467
- const tt = /* @__PURE__ */ b(Ne, [["render", et]]), rt = {}, lt = {
445
+ const Xe = /* @__PURE__ */ b(Oe, [["render", Qe]]), Ye = {}, et = {
468
446
  xmlns: "http://www.w3.org/2000/svg",
469
447
  viewBox: "0 0 24 24",
470
448
  fill: "none",
@@ -474,12 +452,12 @@ const tt = /* @__PURE__ */ b(Ne, [["render", et]]), rt = {}, lt = {
474
452
  "stroke-linejoin": "round",
475
453
  class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
476
454
  };
477
- function nt(t, e, r, o, n, s) {
478
- return a(), i("svg", lt, e[0] || (e[0] = [
479
- 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)
455
+ function tt(t, e, r, o, n, s) {
456
+ return a(), i("svg", et, e[0] || (e[0] = [
457
+ I('<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
458
  ]));
481
459
  }
482
- const st = /* @__PURE__ */ b(rt, [["render", nt]]), at = {
460
+ const rt = /* @__PURE__ */ b(Ye, [["render", tt]]), lt = {
483
461
  props: { column: Object },
484
462
  emits: ["update-column"],
485
463
  data() {
@@ -496,21 +474,21 @@ const st = /* @__PURE__ */ b(rt, [["render", nt]]), at = {
496
474
  var t;
497
475
  ((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
498
476
  }
499
- }, ot = { class: "flex w-full gap-[8px] items-centr" };
500
- function it(t, e, r, o, n, s) {
477
+ }, nt = { class: "flex w-full gap-[8px] items-centr" };
478
+ function st(t, e, r, o, n, s) {
501
479
  var m, f;
502
- return a(), i("label", ot, [
480
+ return a(), i("label", nt, [
503
481
  X(l("input", {
504
482
  "onUpdate:modelValue": e[0] || (e[0] = (k) => n.value = k),
505
483
  type: "checkbox"
506
484
  }, null, 512), [
507
- [le, n.value]
485
+ [ne, n.value]
508
486
  ]),
509
487
  T(" " + V(((m = r.column) == null ? void 0 : m.ua) || ((f = r.column) == null ? void 0 : f.title)), 1)
510
488
  ]);
511
489
  }
512
- const dt = /* @__PURE__ */ b(at, [["render", it]]), ct = {
513
- components: { IconColumns: st, AdminTableColumnsHiddenItem: dt },
490
+ const at = /* @__PURE__ */ b(lt, [["render", st]]), ot = {
491
+ components: { IconColumns: rt, AdminTableColumnsHiddenItem: at },
514
492
  emits: ["update-columns"],
515
493
  props: { columns: Array },
516
494
  methods: {
@@ -519,15 +497,15 @@ const dt = /* @__PURE__ */ b(at, [["render", it]]), ct = {
519
497
  r[e] = t, this.$emit("update-columns", [...r]);
520
498
  }
521
499
  }
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
- function bt(t, e, r, o, n, s) {
500
+ }, it = { 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" }, dt = { class: "py-[10px] px-[10px] w-[260px]" }, ct = { 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" };
501
+ function ut(t, e, r, o, n, s) {
524
502
  const m = d("IconColumns"), f = d("AdminTableColumnsHiddenItem"), k = d("VsPopover");
525
503
  return a(), g(k, {
526
504
  trigger: "click",
527
505
  placement: "bottom"
528
506
  }, {
529
507
  reference: y(() => [
530
- l("button", ut, [
508
+ l("button", it, [
531
509
  p(m, {
532
510
  height: "20",
533
511
  width: "16"
@@ -535,9 +513,9 @@ function bt(t, e, r, o, n, s) {
535
513
  ])
536
514
  ]),
537
515
  default: y(() => [
538
- l("div", ht, [
516
+ l("div", dt, [
539
517
  e[0] || (e[0] = l("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
540
- l("ul", pt, [
518
+ l("ul", ct, [
541
519
  (a(!0), i(x, null, S(r.columns, (u, w) => (a(), i("li", { key: w }, [
542
520
  p(f, {
543
521
  column: u,
@@ -550,14 +528,14 @@ function bt(t, e, r, o, n, s) {
550
528
  _: 1
551
529
  });
552
530
  }
553
- const mt = /* @__PURE__ */ b(ct, [["render", bt]]), ft = {}, gt = {
531
+ const ht = /* @__PURE__ */ b(ot, [["render", ut]]), pt = {}, bt = {
554
532
  class: "hidden sm:block shrink-0 size-3",
555
533
  xmlns: "http://www.w3.org/2000/svg",
556
534
  fill: "currentColor",
557
535
  viewBox: "0 0 16 16"
558
536
  };
559
- function xt(t, e, r, o, n, s) {
560
- return a(), i("svg", gt, e[0] || (e[0] = [
537
+ function mt(t, e, r, o, n, s) {
538
+ return a(), i("svg", bt, e[0] || (e[0] = [
561
539
  l("path", {
562
540
  "fill-rule": "evenodd",
563
541
  "clip-rule": "evenodd",
@@ -565,23 +543,23 @@ function xt(t, e, r, o, n, s) {
565
543
  }, null, -1)
566
544
  ]));
567
545
  }
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] = [
571
- 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)
546
+ const ft = /* @__PURE__ */ b(pt, [["render", mt]]), gt = {}, xt = { class: "vs-table-interface__table-wrp w-full rounded h-fit overflow-hidden" };
547
+ function yt(t, e, r, o, n, s) {
548
+ return a(), i("div", xt, e[0] || (e[0] = [
549
+ I('<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
550
  ]));
573
551
  }
574
- const vt = /* @__PURE__ */ b(kt, [["render", _t]]), Ct = {
552
+ const kt = /* @__PURE__ */ b(gt, [["render", yt]]), wt = {
575
553
  props: { table: String, title: String },
576
554
  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
555
+ IconFilter: ue,
556
+ AdminTableControl: Pe,
557
+ AdminTableExport: Xe,
558
+ AdminTableColumnsHidden: ht,
559
+ AdminTableColumn: ye,
560
+ AdminNodata: kt,
561
+ IconPlus: ft,
562
+ IconSearch: re
585
563
  },
586
564
  data() {
587
565
  return {
@@ -698,26 +676,26 @@ const vt = /* @__PURE__ */ b(kt, [["render", _t]]), Ct = {
698
676
  ((e = this.tableData) == null ? void 0 : e.card) === !1 || this.$router.push(`/card/${this.table}/${t}`);
699
677
  }
700
678
  }
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 = {
679
+ }, _t = { class: "w-[calc(100vw - 320px)]" }, vt = { class: "h-[76px] bg-gray-50 flex items-center justify-between px-[30px]" }, Ct = { class: "text-xl font-medium h-[20px]" }, $t = {
702
680
  style: { height: "calc(100vh - 140px)", width: "calc(100vw - 260px)" },
703
681
  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 = {
682
+ }, St = { class: "bg-white w-full rounded-xl border p-[20px]" }, Tt = { class: "flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative" }, Vt = { class: "flex gap-[6px] ml-auto" }, Dt = {
705
683
  key: 0,
706
684
  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 = {
685
+ }, Ft = { class: "space-y-5 flex items-start w-full justify-start" }, At = {
708
686
  style: { height: "calc(100vh - 310px)" },
709
687
  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 = {
688
+ }, It = { class: "inline-block w-full align-middle" }, Mt = {
711
689
  key: 0,
712
690
  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) {
691
+ }, Bt = { 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" }, jt = { class: "border-stone-200 right-0 z-[1]" }, zt = { class: "divide-y divide-gray-200" }, Pt = ["onClick"], Et = { class: "text-center sticky right-0 bg-white w-[80px] px-[10px]" }, Ut = { class: "p-[20px] flex justify-end w-full" }, Lt = { 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" };
692
+ function qt(t, e, r, o, n, s) {
715
693
  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");
694
+ 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"), M = d("AdminNodata"), Y = d("VsPagination"), ee = d("VsFilter");
717
695
  return a(), i(x, null, [
718
- l("div", $t, [
719
- l("div", St, [
720
- l("h2", Tt, V(r.title), 1),
696
+ l("div", _t, [
697
+ l("div", vt, [
698
+ l("h2", Ct, V(r.title), 1),
721
699
  s.isForm ? (a(), g(f, {
722
700
  key: 0,
723
701
  to: `/add?table=${(P = (z = t.$route) == null ? void 0 : z.params) == null ? void 0 : P.catchAll}`,
@@ -733,9 +711,9 @@ function Ht(t, e, r, o, n, s) {
733
711
  _: 1
734
712
  }, 8, ["to"])) : v("", !0)
735
713
  ]),
736
- l("div", Vt, [
737
- l("div", Dt, [
738
- l("div", Ft, [
714
+ l("div", $t, [
715
+ l("div", St, [
716
+ l("div", Tt, [
739
717
  p(k, {
740
718
  height: "14",
741
719
  width: "14",
@@ -748,7 +726,7 @@ function Ht(t, e, r, o, n, s) {
748
726
  clearable: !0,
749
727
  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
728
  }, null, 8, ["modelValue"]),
751
- l("div", Mt, [
729
+ l("div", Vt, [
752
730
  p(w, {
753
731
  columns: (E = n.tableData) == null ? void 0 : E.columns,
754
732
  onUpdateColumns: e[1] || (e[1] = (c) => n.tableData.columns = c)
@@ -766,16 +744,16 @@ function Ht(t, e, r, o, n, s) {
766
744
  width: "16"
767
745
  }),
768
746
  e[6] || (e[6] = T(" Фільтри ")),
769
- n.onFilters ? (a(), i("span", At, V(n.onFilters), 1)) : v("", !0)
747
+ n.onFilters ? (a(), i("span", Dt, V(n.onFilters), 1)) : v("", !0)
770
748
  ])
771
749
  ])
772
750
  ]),
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, [
751
+ l("div", Ft, [
752
+ l("div", At, [
753
+ l("div", It, [
754
+ s.isNoData ? (a(), g(M, { key: 1 })) : (a(), i("table", Mt, [
755
+ l("thead", Bt, [
756
+ l("tr", jt, [
779
757
  (a(!0), i(x, null, S(s.columns, (c) => (a(), g(D, {
780
758
  key: c.name,
781
759
  style: j({ minWidth: s.rowWidth, maxWidth: s.rowWidth }),
@@ -786,17 +764,17 @@ function Ht(t, e, r, o, n, s) {
786
764
  e[7] || (e[7] = l("th", { class: "w-[70px] sticky right-0 top-0 bg-white" }, null, -1))
787
765
  ])
788
766
  ]),
789
- l("tbody", Ut, [
790
- (a(!0), i(x, null, S((L = n.tableData) == null ? void 0 : L.rows, (c, M) => {
767
+ l("tbody", zt, [
768
+ (a(!0), i(x, null, S((L = n.tableData) == null ? void 0 : L.rows, (c, A) => {
791
769
  var O, W, H, N, R, G, Z, J;
792
- return a(), i("tr", { key: M }, [
770
+ return a(), i("tr", { key: A }, [
793
771
  l("td", {
794
772
  class: "text-sm text-gray-600",
795
773
  style: j({ minWidth: s.rowWidth, maxWidth: s.rowWidth })
796
774
  }, [
797
775
  l("button", {
798
776
  onClick: () => s.pushToCard(c == null ? void 0 : c.id),
799
- class: ne(["text-sm font-medium", [
777
+ class: se(["text-sm font-medium", [
800
778
  ((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
779
  ]])
802
780
  }, [
@@ -808,7 +786,7 @@ function Ht(t, e, r, o, n, s) {
808
786
  value: c == null ? void 0 : c[(Z = s.columns[0]) == null ? void 0 : Z.name],
809
787
  table: r.table
810
788
  }, null, 8, ["name", "data", "value", "table"]))
811
- ], 10, Lt)
789
+ ], 10, Pt)
812
790
  ], 4),
813
791
  (a(!0), i(x, null, S((J = s.columns) == null ? void 0 : J.slice(1), (h) => {
814
792
  var K;
@@ -829,7 +807,7 @@ function Ht(t, e, r, o, n, s) {
829
807
  }, null, 40, ["onUpdateTable", "name", "data", "value", "table", "inline"]))
830
808
  ], 4);
831
809
  }), 128)),
832
- l("td", qt, [
810
+ l("td", Et, [
833
811
  p(F, {
834
812
  isForm: s.isForm,
835
813
  item: c,
@@ -844,7 +822,7 @@ function Ht(t, e, r, o, n, s) {
844
822
  ])
845
823
  ])
846
824
  ]),
847
- l("div", Ot, [
825
+ l("div", Ut, [
848
826
  n.limit ? (a(), g(Y, {
849
827
  key: 0,
850
828
  goTo: !1,
@@ -860,16 +838,16 @@ function Ht(t, e, r, o, n, s) {
860
838
  ])
861
839
  ])
862
840
  ]),
863
- p(se, { name: "fade" }, {
841
+ p(ae, { name: "fade" }, {
864
842
  default: y(() => {
865
843
  var c;
866
844
  return [
867
845
  X(l("div", {
868
- onClick: e[4] || (e[4] = (...M) => s.closeFilter && s.closeFilter(...M)),
846
+ onClick: e[4] || (e[4] = (...A) => s.closeFilter && s.closeFilter(...A)),
869
847
  style: { height: "100vh" },
870
848
  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
849
  }, [
872
- l("div", Wt, [
850
+ l("div", Lt, [
873
851
  (c = n.filterScheme) != null && c.length ? (a(), g(ee, {
874
852
  key: 0,
875
853
  ref: "filter",
@@ -880,11 +858,11 @@ function Ht(t, e, r, o, n, s) {
880
858
  name: "filter",
881
859
  onFilterChange: s.filterChange,
882
860
  closeFilterBtn: !0,
883
- onFilterClose: e[3] || (e[3] = (M) => n.isFilters = !1)
861
+ onFilterClose: e[3] || (e[3] = (A) => n.isFilters = !1)
884
862
  }, null, 8, ["scheme", "onFilterChange"])) : v("", !0)
885
863
  ])
886
864
  ], 512), [
887
- [ae, n.isFilters]
865
+ [oe, n.isFilters]
888
866
  ])
889
867
  ];
890
868
  }),
@@ -892,8 +870,8 @@ function Ht(t, e, r, o, n, s) {
892
870
  })
893
871
  ], 64);
894
872
  }
895
- const Nt = /* @__PURE__ */ b(Ct, [["render", Ht]]), Rt = {
896
- components: { AdminTable: Nt },
873
+ const Ot = /* @__PURE__ */ b(wt, [["render", qt]]), Wt = {
874
+ components: { AdminTable: Ot },
897
875
  data() {
898
876
  return {
899
877
  table: !1,
@@ -953,8 +931,8 @@ const Nt = /* @__PURE__ */ b(Ct, [["render", Ht]]), Rt = {
953
931
  }
954
932
  }
955
933
  }
956
- }, Gt = ["innerHTML"];
957
- function Zt(t, e, r, o, n, s) {
934
+ }, Ht = ["innerHTML"];
935
+ function Nt(t, e, r, o, n, s) {
958
936
  const m = d("AdminTable");
959
937
  return n.table ? (a(), g(m, {
960
938
  key: 0,
@@ -965,9 +943,9 @@ function Zt(t, e, r, o, n, s) {
965
943
  class: "w-full bg-gray-50",
966
944
  style: { height: "calc(100vh - 120px)" },
967
945
  innerHTML: n.interface
968
- }, null, 8, Gt));
946
+ }, null, 8, Ht));
969
947
  }
970
- const Xt = /* @__PURE__ */ b(Rt, [["render", Zt]]);
948
+ const Jt = /* @__PURE__ */ b(Wt, [["render", Nt]]);
971
949
  export {
972
- Xt as default
950
+ Jt as default
973
951
  };