@opengis/admin 0.1.3 → 0.1.4

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.
@@ -1,7 +1,7 @@
1
- import { _ as m, a as k } from "./import-file-BJrxCNbe.js";
1
+ import { _ as g, a as k } from "./import-file-bAV0TNST.js";
2
2
  import { u as I } from "./userMenu-CT1xO2Pt.js";
3
- import { openBlock as o, createElementBlock as i, createStaticVNode as S, createElementVNode as n, Fragment as f, resolveComponent as c, createVNode as p, withCtx as _, createTextVNode as M, withModifiers as U, renderList as v, toDisplayString as V, withDirectives as E, vModelCheckbox as H, createBlock as F, vModelText as L, resolveDynamicComponent as O, Transition as N, createCommentVNode as q, vShow as R } from "vue";
4
- const G = {}, J = {
3
+ import { openBlock as o, createElementBlock as i, createStaticVNode as S, createElementVNode as n, Fragment as x, resolveComponent as c, createVNode as p, withCtx as y, createTextVNode as v, withModifiers as L, renderList as w, toDisplayString as T, withDirectives as E, vModelCheckbox as O, createBlock as F, vModelText as N, resolveDynamicComponent as q, Transition as R, createCommentVNode as G, vShow as J } from "vue";
4
+ const K = {}, Q = {
5
5
  xmlns: "http://www.w3.org/2000/svg",
6
6
  viewBox: "0 0 24 24",
7
7
  fill: "none",
@@ -11,12 +11,12 @@ const G = {}, J = {
11
11
  "stroke-linejoin": "round",
12
12
  class: "icon icon-tabler icons-tabler-outline icon-tabler-adjustments-horizontal"
13
13
  };
14
- function K(t, e, s, a, l, r) {
15
- return o(), i("svg", J, e[0] || (e[0] = [
14
+ function W(t, e, s, a, l, r) {
15
+ return o(), i("svg", Q, e[0] || (e[0] = [
16
16
  S('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M4 6l8 0"></path><path d="M16 6l4 0"></path><path d="M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M4 12l2 0"></path><path d="M10 12l10 0"></path><path d="M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M4 18l11 0"></path><path d="M19 18l1 0"></path>', 10)
17
17
  ]));
18
18
  }
19
- const Q = /* @__PURE__ */ m(G, [["render", K]]), W = {}, X = {
19
+ const X = /* @__PURE__ */ g(K, [["render", W]]), Y = {}, Z = {
20
20
  xmlns: "http://www.w3.org/2000/svg",
21
21
  viewBox: "0 0 24 24",
22
22
  fill: "none",
@@ -26,8 +26,8 @@ const Q = /* @__PURE__ */ m(G, [["render", K]]), W = {}, X = {
26
26
  "stroke-linejoin": "round",
27
27
  class: "icon icon-tabler icons-tabler-outline icon-tabler-dots-vertical"
28
28
  };
29
- function Y(t, e, s, a, l, r) {
30
- return o(), i("svg", X, e[0] || (e[0] = [
29
+ function ee(t, e, s, a, l, r) {
30
+ return o(), i("svg", Z, e[0] || (e[0] = [
31
31
  n("path", {
32
32
  stroke: "none",
33
33
  d: "M0 0h24v24H0z",
@@ -38,7 +38,7 @@ function Y(t, e, s, a, l, r) {
38
38
  n("path", { d: "M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
39
39
  ]));
40
40
  }
41
- const Z = /* @__PURE__ */ m(W, [["render", Y]]), ee = {}, te = {
41
+ const te = /* @__PURE__ */ g(Y, [["render", ee]]), ne = {}, se = {
42
42
  class: "flex-shrink-0 size-3.5",
43
43
  xmlns: "http://www.w3.org/2000/svg",
44
44
  viewBox: "0 0 24 24",
@@ -48,21 +48,21 @@ const Z = /* @__PURE__ */ m(W, [["render", Y]]), ee = {}, te = {
48
48
  "stroke-linecap": "round",
49
49
  "stroke-linejoin": "round"
50
50
  };
51
- function ne(t, e, s, a, l, r) {
52
- return o(), i("svg", te, e[0] || (e[0] = [
51
+ function le(t, e, s, a, l, r) {
52
+ return o(), i("svg", se, e[0] || (e[0] = [
53
53
  S('<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)
54
54
  ]));
55
55
  }
56
- const se = /* @__PURE__ */ m(ee, [["render", ne]]), le = {
56
+ const re = /* @__PURE__ */ g(ne, [["render", le]]), oe = {
57
57
  props: {
58
58
  height: { type: String, default: "16" },
59
59
  width: { type: String, default: "12" },
60
60
  color: { type: String, default: "black" }
61
61
  }
62
- }, re = { style: { display: "none" } }, oe = ["height", "width", "fill"];
63
- function ae(t, e, s, a, l, r) {
64
- return o(), i(f, null, [
65
- (o(), i("svg", re, e[0] || (e[0] = [
62
+ }, ae = { style: { display: "none" } }, ie = ["height", "width", "fill"];
63
+ function de(t, e, s, a, l, r) {
64
+ return o(), i(x, null, [
65
+ (o(), i("svg", ae, e[0] || (e[0] = [
66
66
  n("symbol", {
67
67
  id: "icon-pencil",
68
68
  viewBox: "0 0 32 32"
@@ -76,14 +76,14 @@ function ae(t, e, s, a, l, r) {
76
76
  fill: s.color
77
77
  }, e[1] || (e[1] = [
78
78
  n("use", { "xlink:href": "#icon-pencil" }, null, -1)
79
- ]), 8, oe))
79
+ ]), 8, ie))
80
80
  ], 64);
81
81
  }
82
- const ie = /* @__PURE__ */ m(le, [["render", ae]]), de = {
82
+ const ue = /* @__PURE__ */ g(oe, [["render", de]]), ce = {
83
83
  components: {
84
- IconMore: Z,
85
- IconDelete: se,
86
- IconEdit: ie
84
+ IconMore: te,
85
+ IconDelete: re,
86
+ IconEdit: ue
87
87
  },
88
88
  emits: ["updateTable"],
89
89
  props: { item: Object, table: String },
@@ -121,7 +121,7 @@ const ie = /* @__PURE__ */ m(le, [["render", ae]]), de = {
121
121
  title: "Успішно!",
122
122
  message: "Об`єкт успішно видалeно",
123
123
  type: "success"
124
- }), this.$emit("update-table"), this.isDeleteConfirm = !1;
124
+ }), await this.$emit("update-table"), this.isDeleteConfirm = !1;
125
125
  } catch {
126
126
  this.$notify({
127
127
  title: "Помилка!",
@@ -131,48 +131,48 @@ const ie = /* @__PURE__ */ m(le, [["render", ae]]), de = {
131
131
  }
132
132
  }
133
133
  }
134
- }, ue = { class: "hs-dropdown [--placement:bottom-right] inline-flex" }, ce = {
134
+ }, pe = { class: "hs-dropdown [--placement:bottom-right] inline-flex" }, be = {
135
135
  id: "hs-pro-dupc1",
136
136
  type: "button",
137
137
  class: "gap-x-2 p-2 rounded-lg hover:border-transparent focus:outline-none text-black hover:bg-gray-50"
138
- }, pe = { class: "pt-[7px] pb-[7px] flex flex-col items-start" }, be = { class: "p-4" }, he = { class: "mt-4 flex justify-end gap-x-3" };
139
- function me(t, e, s, a, l, r) {
140
- const b = c("IconMore"), d = c("IconEdit"), h = c("router-link"), g = c("IconDelete"), w = c("VsPopover"), A = c("VsDialog");
141
- return o(), i(f, null, [
142
- n("div", ue, [
143
- p(w, {
138
+ }, he = { class: "pt-[7px] pb-[7px] flex flex-col items-start" }, me = { class: "p-4" }, ge = { class: "mt-4 flex justify-end gap-x-3" };
139
+ function fe(t, e, s, a, l, r) {
140
+ const h = c("IconMore"), u = c("IconEdit"), m = c("router-link"), f = c("IconDelete"), $ = c("VsPopover"), A = c("VsDialog");
141
+ return o(), i(x, null, [
142
+ n("div", pe, [
143
+ p($, {
144
144
  trigger: "click",
145
145
  placement: "left"
146
146
  }, {
147
- reference: _(() => [
148
- n("button", ce, [
149
- p(b, {
147
+ reference: y(() => [
148
+ n("button", be, [
149
+ p(h, {
150
150
  height: "16",
151
151
  width: "16"
152
152
  })
153
153
  ])
154
154
  ]),
155
- default: _(() => {
156
- var y, $, C;
155
+ default: y(() => {
156
+ var _, C, M;
157
157
  return [
158
- n("div", pe, [
159
- p(h, {
160
- to: `/edit?table=${($ = (y = t.$route) == null ? void 0 : y.params) == null ? void 0 : $.catchAll}&id=${(C = s.item) == null ? void 0 : C.id}`,
158
+ n("div", he, [
159
+ p(m, {
160
+ to: `/edit?table=${(C = (_ = t.$route) == null ? void 0 : _.params) == null ? void 0 : C.catchAll}&id=${(M = s.item) == null ? void 0 : M.id}`,
161
161
  class: "w-[100px] ml-[2px] flex items-center justify-center gap-x-3 rounded-lg text-[13px] text-gray-800"
162
162
  }, {
163
- default: _(() => [
164
- p(d, { color: "#000" }),
165
- e[4] || (e[4] = M(" Редагувати "))
163
+ default: y(() => [
164
+ p(u, { color: "#000" }),
165
+ e[4] || (e[4] = v(" Редагувати "))
166
166
  ]),
167
167
  _: 1
168
168
  }, 8, ["to"]),
169
169
  e[6] || (e[6] = n("div", { class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto mt-[10px] mb-[10px]" }, null, -1)),
170
170
  n("button", {
171
- onClick: e[0] || (e[0] = U((...T) => r.openConfirm && r.openConfirm(...T), ["stop"])),
171
+ onClick: e[0] || (e[0] = L((...D) => r.openConfirm && r.openConfirm(...D), ["stop"])),
172
172
  type: "button",
173
173
  class: "w-[100px] flex items-center justify-center gap-x-3 rounded-lg text-[14px] text-red-500"
174
174
  }, [
175
- p(g),
175
+ p(f),
176
176
  e[5] || (e[5] = n("span", { class: "text-gray-800" }, "Видалити", -1))
177
177
  ])
178
178
  ])
@@ -183,22 +183,22 @@ function me(t, e, s, a, l, r) {
183
183
  ]),
184
184
  p(A, {
185
185
  visible: l.isDeleteConfirm,
186
- "onUpdate:visible": e[3] || (e[3] = (y) => l.isDeleteConfirm = y),
186
+ "onUpdate:visible": e[3] || (e[3] = (_) => l.isDeleteConfirm = _),
187
187
  title: "Ви впевнені?"
188
188
  }, {
189
- default: _(() => [
190
- n("div", be, [
189
+ default: y(() => [
190
+ n("div", me, [
191
191
  e[7] || (e[7] = n("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
192
- n("div", he, [
192
+ n("div", ge, [
193
193
  n("button", {
194
194
  type: "button",
195
195
  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",
196
- onClick: e[1] || (e[1] = (y) => l.isDeleteConfirm = !1)
196
+ onClick: e[1] || (e[1] = (_) => l.isDeleteConfirm = !1)
197
197
  }, " Скасувати "),
198
198
  n("button", {
199
199
  type: "button",
200
200
  class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm font-semibold rounded-lg border border-transparent bg-red-500 text-white hover:bg-red-600 disabled:opacity-50 disabled:pointer-events-none",
201
- onClick: e[2] || (e[2] = (...y) => r.deleteElement && r.deleteElement(...y))
201
+ onClick: e[2] || (e[2] = (..._) => r.deleteElement && r.deleteElement(..._))
202
202
  }, " Так, я впевнена/ий ")
203
203
  ])
204
204
  ])
@@ -207,7 +207,7 @@ function me(t, e, s, a, l, r) {
207
207
  }, 8, ["visible"])
208
208
  ], 64);
209
209
  }
210
- const ge = /* @__PURE__ */ m(de, [["render", me]]), fe = {}, xe = {
210
+ const xe = /* @__PURE__ */ g(ce, [["render", fe]]), ye = {}, _e = {
211
211
  class: "flex-shrink-0 mt-0.5 size-3.5",
212
212
  xmlns: "http://www.w3.org/2000/svg",
213
213
  viewBox: "0 0 24 24",
@@ -217,15 +217,15 @@ const ge = /* @__PURE__ */ m(de, [["render", me]]), fe = {}, xe = {
217
217
  "stroke-linecap": "round",
218
218
  "stroke-linejoin": "round"
219
219
  };
220
- function ye(t, e, s, a, l, r) {
221
- return o(), i("svg", xe, e[0] || (e[0] = [
220
+ function ke(t, e, s, a, l, r) {
221
+ return o(), i("svg", _e, e[0] || (e[0] = [
222
222
  n("path", { d: "m3 16 4 4 4-4" }, null, -1),
223
223
  n("path", { d: "M7 20V4" }, null, -1),
224
224
  n("path", { d: "m21 8-4-4-4 4" }, null, -1),
225
225
  n("path", { d: "M17 4v16" }, null, -1)
226
226
  ]));
227
227
  }
228
- const _e = /* @__PURE__ */ m(fe, [["render", ye]]), ke = {
228
+ const ve = /* @__PURE__ */ g(ye, [["render", ke]]), we = {
229
229
  props: {
230
230
  columns: { type: Object, default: () => {
231
231
  } },
@@ -271,65 +271,65 @@ const _e = /* @__PURE__ */ m(fe, [["render", ye]]), ke = {
271
271
  this.format = t;
272
272
  }
273
273
  }
274
- }, ve = { class: "p-4" }, we = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, $e = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Ce = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, Me = { class: "mt-2 space-y-2" }, Te = ["id", "onChange"], De = ["for"], Ve = { class: "pb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, Fe = { class: "text-center" };
275
- function Ae(t, e, s, a, l, r) {
276
- const b = c("VsCheckbox");
277
- return o(), i(f, null, [
274
+ }, $e = { class: "p-4" }, Ce = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, Me = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Te = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, De = { class: "mt-2 space-y-2" }, Ve = ["id", "onChange"], Fe = ["for"], Ae = { class: "pb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, Ie = { class: "text-center" };
275
+ function Ee(t, e, s, a, l, r) {
276
+ const h = c("VsCheckbox");
277
+ return o(), i(x, null, [
278
278
  e[4] || (e[4] = n("div", { class: "dark:border-neutral-700" }, null, -1)),
279
- n("div", ve, [
280
- n("div", we, [
279
+ n("div", $e, [
280
+ n("div", Ce, [
281
281
  e[2] || (e[2] = n("label", { class: "text-sm text-gray-500 dark:text-neutral-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
282
- n("div", $e, [
283
- (o(!0), i(f, null, v(s.columns, (d, h) => (o(), i("div", {
282
+ n("div", Me, [
283
+ (o(!0), i(x, null, w(s.columns, (u, m) => (o(), i("div", {
284
284
  class: "flex items-center",
285
- key: h,
285
+ key: m,
286
286
  style: { width: "calc((100% - 10px) / 2)" }
287
287
  }, [
288
- p(b, {
288
+ p(h, {
289
289
  class: "py-0 shrink-0 border-gray-300 rounded 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",
290
290
  modelValue: l.cols,
291
- "onUpdate:modelValue": e[0] || (e[0] = (g) => l.cols = g),
292
- value: d == null ? void 0 : d.name,
293
- label: d == null ? void 0 : d.ua
291
+ "onUpdate:modelValue": e[0] || (e[0] = (f) => l.cols = f),
292
+ value: u == null ? void 0 : u.name,
293
+ label: u == null ? void 0 : u.ua
294
294
  }, null, 8, ["modelValue", "value", "label"])
295
295
  ]))), 128))
296
296
  ])
297
297
  ]),
298
- n("div", Ce, [
298
+ n("div", Te, [
299
299
  e[3] || (e[3] = n("label", { class: "text-sm text-gray-500 dark:text-neutral-500" }, " Виберіть формат таблиці: ", -1)),
300
- n("div", Me, [
301
- (o(!0), i(f, null, v(l.tableFormats, (d, h) => (o(), i("div", {
300
+ n("div", De, [
301
+ (o(!0), i(x, null, w(l.tableFormats, (u, m) => (o(), i("div", {
302
302
  class: "flex items-center",
303
- key: h
303
+ key: m
304
304
  }, [
305
305
  n("input", {
306
306
  type: "radio",
307
307
  name: "hs-pro-duecmfm",
308
308
  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",
309
- id: d,
310
- onChange: (g) => r.selectFormat(d)
311
- }, null, 40, Te),
309
+ id: u,
310
+ onChange: (f) => r.selectFormat(u)
311
+ }, null, 40, Ve),
312
312
  n("label", {
313
- for: d,
313
+ for: u,
314
314
  class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
315
- }, " Формат " + V(d), 9, De)
315
+ }, " Формат " + T(u), 9, Fe)
316
316
  ]))), 128))
317
317
  ])
318
318
  ]),
319
- n("div", Ve, [
320
- n("div", Fe, [
319
+ n("div", Ae, [
320
+ n("div", Ie, [
321
321
  n("button", {
322
322
  type: "button",
323
323
  class: "p-2 inline-flex items-center gap-x-2 text-xs font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-2 focus:ring-blue-500",
324
- onClick: e[1] || (e[1] = (...d) => r.exportTable && r.exportTable(...d))
324
+ onClick: e[1] || (e[1] = (...u) => r.exportTable && r.exportTable(...u))
325
325
  }, " Завантажити таблицю ")
326
326
  ])
327
327
  ])
328
328
  ])
329
329
  ], 64);
330
330
  }
331
- const Ie = /* @__PURE__ */ m(ke, [["render", Ae]]), Ee = {
332
- components: { IconExport: _e, AdminTableExportForm: Ie },
331
+ const Se = /* @__PURE__ */ g(we, [["render", Ee]]), ze = {
332
+ components: { IconExport: ve, AdminTableExportForm: Se },
333
333
  props: { table: String, columns: Array },
334
334
  data() {
335
335
  return {
@@ -337,26 +337,26 @@ const Ie = /* @__PURE__ */ m(ke, [["render", Ae]]), Ee = {
337
337
  };
338
338
  }
339
339
  };
340
- function Se(t, e, s, a, l, r) {
341
- const b = c("IconExport"), d = c("AdminTableExportForm"), h = c("VsDialog");
342
- return o(), i(f, null, [
340
+ function je(t, e, s, a, l, r) {
341
+ const h = c("IconExport"), u = c("AdminTableExportForm"), m = c("VsDialog");
342
+ return o(), i(x, null, [
343
343
  n("button", {
344
- onClick: e[0] || (e[0] = (g) => l.isOpen = !0),
344
+ onClick: e[0] || (e[0] = (f) => l.isOpen = !0),
345
345
  class: "py-2 px-3 relative flex items-center gap-x-2 text-sm border focus:outline-none border-gray-100 font-medium rounded-lg text-gray-800 hover:border-gray-100 focus:border-gray-100 hover:bg-gray-50 shadow-sm duration-300"
346
346
  }, [
347
- p(b, {
347
+ p(h, {
348
348
  height: "16",
349
349
  width: "16"
350
350
  }),
351
- e[2] || (e[2] = M(" Експорт "))
351
+ e[2] || (e[2] = v(" Експорт "))
352
352
  ]),
353
- p(h, {
353
+ p(m, {
354
354
  visible: l.isOpen,
355
- "onUpdate:visible": e[1] || (e[1] = (g) => l.isOpen = g),
355
+ "onUpdate:visible": e[1] || (e[1] = (f) => l.isOpen = f),
356
356
  title: "Експорт таблиці"
357
357
  }, {
358
- default: _(() => [
359
- p(d, {
358
+ default: y(() => [
359
+ p(u, {
360
360
  table: s.table,
361
361
  columns: s.columns
362
362
  }, null, 8, ["table", "columns"])
@@ -365,7 +365,7 @@ function Se(t, e, s, a, l, r) {
365
365
  }, 8, ["visible"])
366
366
  ], 64);
367
367
  }
368
- const je = /* @__PURE__ */ m(Ee, [["render", Se]]), ze = {}, Pe = {
368
+ const Pe = /* @__PURE__ */ g(ze, [["render", je]]), Be = {}, Ue = {
369
369
  xmlns: "http://www.w3.org/2000/svg",
370
370
  viewBox: "0 0 24 24",
371
371
  fill: "none",
@@ -375,12 +375,12 @@ const je = /* @__PURE__ */ m(Ee, [["render", Se]]), ze = {}, Pe = {
375
375
  "stroke-linejoin": "round",
376
376
  class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
377
377
  };
378
- function Be(t, e, s, a, l, r) {
379
- return o(), i("svg", Pe, e[0] || (e[0] = [
378
+ function He(t, e, s, a, l, r) {
379
+ return o(), i("svg", Ue, e[0] || (e[0] = [
380
380
  S('<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)
381
381
  ]));
382
382
  }
383
- const Ue = /* @__PURE__ */ m(ze, [["render", Be]]), He = {
383
+ const Le = /* @__PURE__ */ g(Be, [["render", He]]), Oe = {
384
384
  props: { column: Object },
385
385
  emits: ["update-column"],
386
386
  data() {
@@ -397,21 +397,21 @@ const Ue = /* @__PURE__ */ m(ze, [["render", Be]]), He = {
397
397
  var t;
398
398
  ((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
399
399
  }
400
- }, Le = { class: "flex w-full gap-[8px] items-centr" };
401
- function Oe(t, e, s, a, l, r) {
402
- var b, d;
403
- return o(), i("label", Le, [
400
+ }, Ne = { class: "flex w-full gap-[8px] items-centr" };
401
+ function qe(t, e, s, a, l, r) {
402
+ var h, u;
403
+ return o(), i("label", Ne, [
404
404
  E(n("input", {
405
- "onUpdate:modelValue": e[0] || (e[0] = (h) => l.value = h),
405
+ "onUpdate:modelValue": e[0] || (e[0] = (m) => l.value = m),
406
406
  type: "checkbox"
407
407
  }, null, 512), [
408
- [H, l.value]
408
+ [O, l.value]
409
409
  ]),
410
- M(" " + V(((b = s.column) == null ? void 0 : b.ua) || ((d = s.column) == null ? void 0 : d.title)), 1)
410
+ v(" " + T(((h = s.column) == null ? void 0 : h.ua) || ((u = s.column) == null ? void 0 : u.title)), 1)
411
411
  ]);
412
412
  }
413
- const Ne = /* @__PURE__ */ m(He, [["render", Oe]]), qe = {
414
- components: { IconColumns: Ue, AdminTableColumnsHiddenItem: Ne },
413
+ const Re = /* @__PURE__ */ g(Oe, [["render", qe]]), Ge = {
414
+ components: { IconColumns: Le, AdminTableColumnsHiddenItem: Re },
415
415
  emits: ["update-columns"],
416
416
  props: { columns: Array },
417
417
  methods: {
@@ -420,28 +420,28 @@ const Ne = /* @__PURE__ */ m(He, [["render", Oe]]), qe = {
420
420
  s[e] = t, this.$emit("update-columns", [...s]);
421
421
  }
422
422
  }
423
- }, Re = { class: "py-2 px-3 flex items-center gap-x-2 text-sm border focus:outline-none border-gray-100 font-medium rounded-lg text-gray-800 hover:border-gray-100 focus:border-gray-100 hover:bg-gray-50 shadow-sm duration-300" }, Ge = { class: "flex flex-col gap-[3px] h-[400px] w-[300px] 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" };
424
- function Je(t, e, s, a, l, r) {
425
- const b = c("IconColumns"), d = c("AdminTableColumnsHiddenItem"), h = c("VsPopover");
426
- return o(), F(h, {
423
+ }, Je = { class: "py-2 px-3 flex items-center gap-x-2 text-sm border focus:outline-none border-gray-100 font-medium rounded-lg text-gray-800 hover:border-gray-100 focus:border-gray-100 hover:bg-gray-50 shadow-sm duration-300" }, Ke = { class: "flex flex-col gap-[3px] h-[400px] w-[300px] 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" };
424
+ function Qe(t, e, s, a, l, r) {
425
+ const h = c("IconColumns"), u = c("AdminTableColumnsHiddenItem"), m = c("VsPopover");
426
+ return o(), F(m, {
427
427
  trigger: "click",
428
428
  placement: "bottom"
429
429
  }, {
430
- reference: _(() => [
431
- n("button", Re, [
432
- p(b, {
430
+ reference: y(() => [
431
+ n("button", Je, [
432
+ p(h, {
433
433
  height: "20",
434
434
  width: "16"
435
435
  })
436
436
  ])
437
437
  ]),
438
- default: _(() => [
438
+ default: y(() => [
439
439
  n("div", null, [
440
440
  e[0] || (e[0] = n("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
441
- n("ul", Ge, [
442
- (o(!0), i(f, null, v(s.columns, (g, w) => (o(), i("li", { key: w }, [
443
- p(d, {
444
- column: g,
441
+ n("ul", Ke, [
442
+ (o(!0), i(x, null, w(s.columns, (f, $) => (o(), i("li", { key: $ }, [
443
+ p(u, {
444
+ column: f,
445
445
  onUpdateColumn: r.updateColumn
446
446
  }, null, 8, ["column", "onUpdateColumn"])
447
447
  ]))), 128))
@@ -451,13 +451,13 @@ function Je(t, e, s, a, l, r) {
451
451
  _: 1
452
452
  });
453
453
  }
454
- const Ke = /* @__PURE__ */ m(qe, [["render", Je]]), Qe = {
454
+ const We = /* @__PURE__ */ g(Ge, [["render", Qe]]), Xe = {
455
455
  props: { table: String },
456
456
  components: {
457
- IconFilter: Q,
458
- AdminTableControl: ge,
459
- AdminTableExport: je,
460
- AdminTableColumnsHidden: Ke
457
+ IconFilter: X,
458
+ AdminTableControl: xe,
459
+ AdminTableExport: Pe,
460
+ AdminTableColumnsHidden: We
461
461
  },
462
462
  data() {
463
463
  return {
@@ -496,8 +496,9 @@ const Ke = /* @__PURE__ */ m(qe, [["render", Je]]), Qe = {
496
496
  this.getTableData();
497
497
  },
498
498
  $route: {
499
- handler() {
500
- this.filterScheme = null, this.getFilters();
499
+ handler(t, e) {
500
+ var s, a;
501
+ ((s = t == null ? void 0 : t.params) == null ? void 0 : s.catchAll) !== ((a = e == null ? void 0 : e.params) == null ? void 0 : a.catchAll) && (this.filterScheme = null, this.getFilters());
501
502
  },
502
503
  deep: !0
503
504
  }
@@ -546,105 +547,126 @@ const Ke = /* @__PURE__ */ m(qe, [["render", Je]]), Qe = {
546
547
  this.filters = t, this.page = 1, await this.getTableData();
547
548
  }
548
549
  }
549
- }, We = { class: "w-[calc(100vw - 320px)]" }, Xe = { class: "h-[58px] bg-gray-50 flex items-center justify-between px-[30px]" }, Ye = { class: "text-xl font-medium" }, Ze = {
550
+ }, Ye = { class: "w-[calc(100vw - 320px)]" }, Ze = { class: "h-[58px] bg-gray-50 flex items-center justify-between px-[30px]" }, et = { class: "text-xl font-medium" }, tt = {
550
551
  style: { height: "calc(100vh - 60px)", width: "calc(100vw - 260px)" },
551
552
  class: "bg-gray-50 p-[20px] flex"
552
- }, et = { 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]" }, nt = { class: "flex gap-[6px] ml-auto" }, st = { class: "space-y-5 flex items-start w-full justify-start" }, lt = {
553
+ }, nt = { class: "bg-white w-full rounded-xl border p-[20px]" }, st = { class: "flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px]" }, lt = { class: "flex gap-[6px] ml-auto" }, rt = { class: "space-y-5 flex items-start w-full justify-start" }, ot = {
553
554
  style: { height: "calc(100vh - 250px)" },
554
555
  class: "overflow-x-auto w-full [&::-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"
555
- }, rt = { class: "inline-block align-middle" }, ot = { class: "divide-y divide-gray-200 dark:divide-neutral-700 relative" }, at = { class: "sticky top-0 bg-white" }, it = { class: "border-t border-stone-200" }, dt = { class: "pe-4 py-3 gap-x-1 text-sm font-medium text-gray-800 dark:text-neutral-200" }, ut = { class: "divide-y divide-gray-200 dark:divide-neutral-700" }, ct = ["onClick"], pt = { class: "text-center sticky right-0 bg-white" }, bt = { 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-[rgba(0,0,0,0.5)] [&::-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" };
556
- function mt(t, e, s, a, l, r) {
557
- var $, C, T, j, z, P, B;
558
- const b = c("router-link"), d = c("AdminTableColumnsHidden"), h = c("AdminTableExport"), g = c("IconFilter"), w = c("AdminTableControl"), A = c("VsPagination"), y = c("VsFilter");
559
- return o(), i(f, null, [
560
- n("div", We, [
561
- n("div", Xe, [
562
- n("h2", Ye, V(($ = l.tableData) == null ? void 0 : $.title), 1),
563
- p(b, {
564
- to: `/add?table=${(T = (C = t.$route) == null ? void 0 : C.params) == null ? void 0 : T.catchAll}`,
556
+ }, at = { class: "inline-block align-middle" }, it = { class: "divide-y divide-gray-200 dark:divide-neutral-700 relative" }, dt = { class: "sticky top-0 bg-white z-[1]" }, ut = { class: "border-t border-stone-200" }, ct = { class: "pe-4 py-3 gap-x-1 text-sm font-medium text-gray-800 dark:text-neutral-200" }, pt = { class: "divide-y divide-gray-200 dark:divide-neutral-700" }, bt = { class: "size-px min-w-[200px] whitespace-nowrap text-start pe-4 py-3 text-sm text-gray-600" }, ht = { class: "text-center sticky right-0 bg-white" }, mt = { class: "p-[20px] flex justify-end w-full" }, gt = { class: "filter-content h-screen bg-white w-[400px] p-[20px] pt-[10px] overflow-x-auto bg-[rgba(0,0,0,0.5)] [&::-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" };
557
+ function ft(t, e, s, a, l, r) {
558
+ var C, M, D, z, j, P, B;
559
+ const h = c("router-link"), u = c("AdminTableColumnsHidden"), m = c("AdminTableExport"), f = c("IconFilter"), $ = c("AdminTableControl"), A = c("VsPagination"), _ = c("VsFilter");
560
+ return o(), i(x, null, [
561
+ n("div", Ye, [
562
+ n("div", Ze, [
563
+ n("h2", et, T((C = l.tableData) == null ? void 0 : C.title), 1),
564
+ p(h, {
565
+ to: `/add?table=${(D = (M = t.$route) == null ? void 0 : M.params) == null ? void 0 : D.catchAll}`,
565
566
  class: "py-2 px-3 flex items-center gap-x-2 text-sm text-white font-medium rounded-lg bg-blue-500 text-gray-800 shadow-sm hover:bg-blue-700 hover:text-white duration-300"
566
567
  }, {
567
- default: _(() => e[5] || (e[5] = [
568
- M(" Додати ")
568
+ default: y(() => e[5] || (e[5] = [
569
+ v(" Додати ")
569
570
  ])),
570
571
  _: 1
571
572
  }, 8, ["to"])
572
573
  ]),
573
- n("div", Ze, [
574
- n("div", et, [
575
- n("div", tt, [
574
+ n("div", tt, [
575
+ n("div", nt, [
576
+ n("div", st, [
576
577
  E(n("input", {
577
- "onUpdate:modelValue": e[0] || (e[0] = (u) => l.searchValue = u),
578
+ "onUpdate:modelValue": e[0] || (e[0] = (d) => l.searchValue = d),
578
579
  class: "py-2 pl-[15px] h-[38px] w-[400px] block w-full border rounded-lg text-sm focus:border-blue-600 focus:border-[2px] outline-none",
579
580
  placeholder: "Пошук..."
580
581
  }, null, 512), [
581
- [L, l.searchValue]
582
+ [N, l.searchValue]
582
583
  ]),
583
- n("div", nt, [
584
- p(d, {
585
- columns: (j = l.tableData) == null ? void 0 : j.columns,
586
- onUpdateColumns: e[1] || (e[1] = (u) => l.tableData.columns = u)
584
+ n("div", lt, [
585
+ p(u, {
586
+ columns: (z = l.tableData) == null ? void 0 : z.columns,
587
+ onUpdateColumns: e[1] || (e[1] = (d) => l.tableData.columns = d)
587
588
  }, null, 8, ["columns"]),
588
- p(h, {
589
+ p(m, {
589
590
  table: s.table,
590
- columns: (z = l.tableData) == null ? void 0 : z.columns
591
+ columns: (j = l.tableData) == null ? void 0 : j.columns
591
592
  }, null, 8, ["table", "columns"]),
592
593
  n("button", {
593
- onClick: e[2] || (e[2] = (u) => l.isFilters = !l.isFilters),
594
+ onClick: e[2] || (e[2] = (d) => l.isFilters = !l.isFilters),
594
595
  class: "py-2 px-3 flex items-center gap-x-2 text-sm border focus:outline-none border-gray-100 font-medium rounded-lg text-gray-800 hover:border-gray-100 focus:border-gray-100 hover:bg-gray-50 shadow-sm duration-300"
595
596
  }, [
596
- p(g, {
597
+ p(f, {
597
598
  height: "16",
598
599
  width: "16"
599
600
  }),
600
- e[6] || (e[6] = M(" Фільтри "))
601
+ e[6] || (e[6] = v(" Фільтри "))
601
602
  ])
602
603
  ])
603
604
  ]),
604
- n("div", st, [
605
- n("div", lt, [
606
- n("div", rt, [
607
- n("table", ot, [
608
- n("thead", at, [
609
- n("tr", it, [
610
- (o(!0), i(f, null, v(r.columns, (u) => (o(), i("th", {
605
+ n("div", rt, [
606
+ n("div", ot, [
607
+ n("div", at, [
608
+ n("table", it, [
609
+ n("thead", dt, [
610
+ n("tr", ut, [
611
+ (o(!0), i(x, null, w(r.columns, (d) => (o(), i("th", {
611
612
  class: "min-w-[200px] text-start",
612
- key: u.name
613
+ key: d.name
613
614
  }, [
614
- n("div", dt, V((u == null ? void 0 : u.ua) || u.name), 1)
615
+ n("div", ct, T((d == null ? void 0 : d.ua) || d.name), 1)
615
616
  ]))), 128)),
616
- e[7] || (e[7] = n("th", { class: "min-w-[150px] sticky right-0 top-0 bg-white z-[10]" }, " Дія ", -1))
617
+ e[7] || (e[7] = n("th", { class: "min-w-[150px] sticky right-0 top-0 bg-white z-[10]" }, null, -1))
617
618
  ])
618
619
  ]),
619
- n("tbody", ut, [
620
- (o(!0), i(f, null, v((P = l.tableData) == null ? void 0 : P.rows, (u, D) => (o(), i("tr", { key: D }, [
621
- (o(!0), i(f, null, v(r.columns, (x) => (o(), i("td", {
622
- onClick: (kt) => t.$router.push(`/card/${s.table}/${u == null ? void 0 : u.id}`),
623
- class: "size-px min-w-[200px] whitespace-nowrap text-start pe-4 py-3 text-sm text-gray-600",
624
- key: x.name
625
- }, [
626
- (o(), F(O(
627
- t.$componentsConfig[`table-format-${(x == null ? void 0 : x.format) || t.text}`]
628
- ), {
629
- name: x == null ? void 0 : x.name,
630
- data: u,
631
- value: u == null ? void 0 : u[x == null ? void 0 : x.name]
632
- }, null, 8, ["name", "data", "value"]))
633
- ], 8, ct))), 128)),
634
- n("td", pt, [
635
- p(w, {
636
- item: u,
637
- table: s.table,
638
- onUpdateTable: r.getTableData
639
- }, null, 8, ["item", "table", "onUpdateTable"])
640
- ])
641
- ]))), 128))
620
+ n("tbody", pt, [
621
+ (o(!0), i(x, null, w((P = l.tableData) == null ? void 0 : P.rows, (d, V) => {
622
+ var U;
623
+ return o(), i("tr", { key: V }, [
624
+ n("td", bt, [
625
+ p(h, {
626
+ to: `/card/${s.table}/${d == null ? void 0 : d.id}`,
627
+ class: "text-sm text-green-600 decoration-2 hover:underline font-medium focus:outline-none focus:underline hover:text-green-600"
628
+ }, {
629
+ default: y(() => {
630
+ var b;
631
+ return [
632
+ v(T(d == null ? void 0 : d[(b = r.columns[0]) == null ? void 0 : b.name]), 1)
633
+ ];
634
+ }),
635
+ _: 2
636
+ }, 1032, ["to"])
637
+ ]),
638
+ (o(!0), i(x, null, w((U = r.columns) == null ? void 0 : U.filter(
639
+ (b) => (b == null ? void 0 : b.name) !== "name"
640
+ ), (b) => {
641
+ var H;
642
+ return o(), i("td", {
643
+ class: "size-px min-w-[200px] whitespace-nowrap text-start pe-4 py-3 text-sm text-gray-600",
644
+ key: b.name
645
+ }, [
646
+ (o(), F(q(
647
+ t.$componentsConfig[`table-format-${((H = b == null ? void 0 : b.format) == null ? void 0 : H.toLowerCase()) || t.text}`]
648
+ ), {
649
+ name: b == null ? void 0 : b.name,
650
+ data: d,
651
+ value: d == null ? void 0 : d[b == null ? void 0 : b.name]
652
+ }, null, 8, ["name", "data", "value"]))
653
+ ]);
654
+ }), 128)),
655
+ n("td", ht, [
656
+ p($, {
657
+ item: d,
658
+ table: s.table,
659
+ onUpdateTable: r.getTableData
660
+ }, null, 8, ["item", "table", "onUpdateTable"])
661
+ ])
662
+ ]);
663
+ }), 128))
642
664
  ])
643
665
  ])
644
666
  ])
645
667
  ])
646
668
  ]),
647
- n("div", bt, [
669
+ n("div", mt, [
648
670
  p(A, {
649
671
  goTo: !1,
650
672
  class: "justify-end",
@@ -660,17 +682,17 @@ function mt(t, e, s, a, l, r) {
660
682
  ])
661
683
  ])
662
684
  ]),
663
- p(N, { name: "fade" }, {
664
- default: _(() => {
665
- var u;
685
+ p(R, { name: "fade" }, {
686
+ default: y(() => {
687
+ var d;
666
688
  return [
667
689
  E(n("div", {
668
- onClick: e[4] || (e[4] = (...D) => r.closeFilter && r.closeFilter(...D)),
690
+ onClick: e[4] || (e[4] = (...V) => r.closeFilter && r.closeFilter(...V)),
669
691
  style: { height: "100vh" },
670
692
  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)]"
671
693
  }, [
672
- n("div", ht, [
673
- (u = l.filterScheme) != null && u.length ? (o(), F(y, {
694
+ n("div", gt, [
695
+ (d = l.filterScheme) != null && d.length ? (o(), F(_, {
674
696
  key: 0,
675
697
  ref: "filter",
676
698
  scheme: l.filterScheme,
@@ -680,11 +702,11 @@ function mt(t, e, s, a, l, r) {
680
702
  name: "filter",
681
703
  onFilterChange: r.filterChange,
682
704
  closeFilterBtn: !0,
683
- onFilterClose: e[3] || (e[3] = (D) => l.isFilters = !1)
684
- }, null, 8, ["scheme", "onFilterChange"])) : q("", !0)
705
+ onFilterClose: e[3] || (e[3] = (V) => l.isFilters = !1)
706
+ }, null, 8, ["scheme", "onFilterChange"])) : G("", !0)
685
707
  ])
686
708
  ], 512), [
687
- [R, l.isFilters]
709
+ [J, l.isFilters]
688
710
  ])
689
711
  ];
690
712
  }),
@@ -692,8 +714,8 @@ function mt(t, e, s, a, l, r) {
692
714
  })
693
715
  ], 64);
694
716
  }
695
- const gt = /* @__PURE__ */ m(Qe, [["render", mt]]), ft = {
696
- components: { AdminTable: gt },
717
+ const xt = /* @__PURE__ */ g(Xe, [["render", ft]]), yt = {
718
+ components: { AdminTable: xt },
697
719
  data() {
698
720
  return {
699
721
  table: !1,
@@ -749,20 +771,20 @@ const gt = /* @__PURE__ */ m(Qe, [["render", mt]]), ft = {
749
771
  }
750
772
  }
751
773
  }
752
- }, xt = {
774
+ }, _t = {
753
775
  key: 1,
754
776
  class: "w-full"
755
- }, yt = ["innerHTML"];
756
- function _t(t, e, s, a, l, r) {
757
- const b = c("AdminTable");
758
- return l.table ? (o(), F(b, {
777
+ }, kt = ["innerHTML"];
778
+ function vt(t, e, s, a, l, r) {
779
+ const h = c("AdminTable");
780
+ return l.table ? (o(), F(h, {
759
781
  key: 0,
760
782
  table: l.table
761
- }, null, 8, ["table"])) : (o(), i("div", xt, [
762
- n("div", { innerHTML: l.interface }, null, 8, yt)
783
+ }, null, 8, ["table"])) : (o(), i("div", _t, [
784
+ n("div", { innerHTML: l.interface }, null, 8, kt)
763
785
  ]));
764
786
  }
765
- const Ct = /* @__PURE__ */ m(ft, [["render", _t]]);
787
+ const Mt = /* @__PURE__ */ g(yt, [["render", vt]]);
766
788
  export {
767
- Ct as default
789
+ Mt as default
768
790
  };