@opengis/admin 0.1.7 → 0.1.9

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,5 +1,5 @@
1
1
  import { u as m } from "./userMenu-CT1xO2Pt.js";
2
- import { _ as b, a as c } from "./import-file-bdYAo8iW.js";
2
+ import { _ as b, a as c } from "./import-file-NwcjXxtk.js";
3
3
  import { resolveComponent as h, openBlock as i, createElementBlock as d, createElementVNode as a, createBlock as f, createCommentVNode as p } from "vue";
4
4
  const g = {
5
5
  data() {
@@ -55,7 +55,7 @@ const g = {
55
55
  }
56
56
  }
57
57
  }, x = { style: { width: "calc(100vw - 260px)" } }, w = { class: "h-[58px] bg-gray-50 flex items-center justify-between px-[30px]" }, y = { class: "flex items-center gap-[6px]" }, k = {
58
- style: { height: "calc(100vh - 60px)", width: "calc(100vw - 260px)" },
58
+ style: { height: "calc(100vh - 120px)", width: "calc(100vw - 260px)" },
59
59
  class: "bg-gray-50 p-[20px] flex"
60
60
  }, v = { class: "bg-white w-full rounded-xl border p-[20px] 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" };
61
61
  function V(t, e, o, s, r, l) {
@@ -1,4 +1,4 @@
1
- import { _ as m, a as v } from "./import-file-bdYAo8iW.js";
1
+ import { _ as m, a as v } from "./import-file-NwcjXxtk.js";
2
2
  import { u as F } from "./userMenu-CT1xO2Pt.js";
3
3
  import { openBlock as a, createElementBlock as i, createStaticVNode as j, createTextVNode as k, toDisplayString as $, createCommentVNode as I, createElementVNode as r, Fragment as x, resolveComponent as d, createVNode as p, withCtx as y, withModifiers as O, renderList as w, withDirectives as E, vModelCheckbox as N, createBlock as M, vModelText as R, resolveDynamicComponent as W, Transition as G, vShow as J } from "vue";
4
4
  const K = {}, Q = {
@@ -11,7 +11,7 @@ const K = {}, Q = {
11
11
  "stroke-linejoin": "round",
12
12
  class: "icon icon-tabler icons-tabler-outline icon-tabler-adjustments-horizontal"
13
13
  };
14
- function X(e, t, n, l, s, o) {
14
+ function X(e, t, n, o, s, l) {
15
15
  return a(), i("svg", Q, t[0] || (t[0] = [
16
16
  j('<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
  ]));
@@ -62,10 +62,10 @@ const Y = /* @__PURE__ */ m(K, [["render", X]]), Z = {
62
62
  },
63
63
  handleClickSortBtn(e) {
64
64
  this.$emit("change-active", this.data.name), this.currentSort = this.changeCurrentSort(e);
65
- const t = this.$route.query, { sort: n, ...l } = t, s = this.currentSort ? `${this.data.name}-${this.currentSort}` : "";
65
+ const t = this.$route.query, { sort: n, ...o } = t, s = this.currentSort ? `${this.data.name}-${this.currentSort}` : "";
66
66
  this.$router.replace({
67
67
  query: {
68
- ...l,
68
+ ...o,
69
69
  ...s && { sort: s }
70
70
  }
71
71
  });
@@ -98,23 +98,23 @@ const Y = /* @__PURE__ */ m(K, [["render", X]]), Z = {
98
98
  key: 1,
99
99
  class: "text-sm text-gray-800 px-[4px] py-2.5 text-start font-normal text-gray-500"
100
100
  };
101
- function ot(e, t, n, l, s, o) {
101
+ function lt(e, t, n, o, s, l) {
102
102
  return a(), i("th", tt, [
103
- o.getVisibleIcon ? (a(), i("button", {
103
+ l.getVisibleIcon ? (a(), i("button", {
104
104
  key: 0,
105
105
  type: "button",
106
106
  class: "text-sm text-gray-800 px-[4px] py-2.5 text-start font-normal text-gray-500 flex items-center gap-[6px]",
107
- onClick: t[0] || (t[0] = (b) => o.handleClickSortBtn(s.currentSort))
107
+ onClick: t[0] || (t[0] = (b) => l.handleClickSortBtn(s.currentSort))
108
108
  }, [
109
- k($(o.label) + " ", 1),
109
+ k($(l.label) + " ", 1),
110
110
  (a(), i("svg", et, [
111
111
  s.currentSort === "asc" || s.currentSort === "" ? (a(), i("path", rt)) : I("", !0),
112
112
  s.currentSort === "desc" || s.currentSort === "" ? (a(), i("path", nt)) : I("", !0)
113
113
  ]))
114
- ])) : (a(), i("p", st, $(o.label), 1))
114
+ ])) : (a(), i("p", st, $(l.label), 1))
115
115
  ]);
116
116
  }
117
- const lt = /* @__PURE__ */ m(Z, [["render", ot]]), at = {}, it = {
117
+ const ot = /* @__PURE__ */ m(Z, [["render", lt]]), at = {}, it = {
118
118
  xmlns: "http://www.w3.org/2000/svg",
119
119
  viewBox: "0 0 24 24",
120
120
  fill: "none",
@@ -124,7 +124,7 @@ const lt = /* @__PURE__ */ m(Z, [["render", ot]]), at = {}, it = {
124
124
  "stroke-linejoin": "round",
125
125
  class: "icon icon-tabler icons-tabler-outline icon-tabler-dots-vertical"
126
126
  };
127
- function ut(e, t, n, l, s, o) {
127
+ function ut(e, t, n, o, s, l) {
128
128
  return a(), i("svg", it, t[0] || (t[0] = [
129
129
  r("path", {
130
130
  stroke: "none",
@@ -146,7 +146,7 @@ const ct = /* @__PURE__ */ m(at, [["render", ut]]), dt = {}, pt = {
146
146
  "stroke-linecap": "round",
147
147
  "stroke-linejoin": "round"
148
148
  };
149
- function ht(e, t, n, l, s, o) {
149
+ function ht(e, t, n, o, s, l) {
150
150
  return a(), i("svg", pt, t[0] || (t[0] = [
151
151
  j('<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)
152
152
  ]));
@@ -158,7 +158,7 @@ const bt = /* @__PURE__ */ m(dt, [["render", ht]]), mt = {
158
158
  color: { type: String, default: "black" }
159
159
  }
160
160
  }, gt = { style: { display: "none" } }, ft = ["height", "width", "fill"];
161
- function xt(e, t, n, l, s, o) {
161
+ function xt(e, t, n, o, s, l) {
162
162
  return a(), i(x, null, [
163
163
  (a(), i("svg", gt, t[0] || (t[0] = [
164
164
  r("symbol", {
@@ -234,7 +234,7 @@ const yt = /* @__PURE__ */ m(mt, [["render", xt]]), _t = {
234
234
  type: "button",
235
235
  class: "gap-x-2 p-2 rounded-lg hover:border-transparent focus:outline-none text-black hover:bg-gray-50"
236
236
  }, wt = { class: "pt-[7px] pb-[7px] flex flex-col items-start" }, $t = { class: "p-4" }, Ct = { class: "mt-4 flex justify-end gap-x-3" };
237
- function Tt(e, t, n, l, s, o) {
237
+ function Tt(e, t, n, o, s, l) {
238
238
  const b = d("IconMore"), u = d("IconEdit"), g = d("router-link"), f = d("IconDelete"), C = d("VsPopover"), A = d("VsDialog");
239
239
  return a(), i(x, null, [
240
240
  r("div", vt, [
@@ -266,7 +266,7 @@ function Tt(e, t, n, l, s, o) {
266
266
  }, 8, ["to"]),
267
267
  t[6] || (t[6] = r("div", { class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto mt-[10px] mb-[10px]" }, null, -1)),
268
268
  r("button", {
269
- onClick: t[0] || (t[0] = O((...V) => o.openConfirm && o.openConfirm(...V), ["stop"])),
269
+ onClick: t[0] || (t[0] = O((...V) => l.openConfirm && l.openConfirm(...V), ["stop"])),
270
270
  type: "button",
271
271
  class: "w-[100px] flex items-center justify-center gap-x-3 rounded-lg text-[14px] text-red-500"
272
272
  }, [
@@ -296,7 +296,7 @@ function Tt(e, t, n, l, s, o) {
296
296
  r("button", {
297
297
  type: "button",
298
298
  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",
299
- onClick: t[2] || (t[2] = (..._) => o.deleteElement && o.deleteElement(..._))
299
+ onClick: t[2] || (t[2] = (..._) => l.deleteElement && l.deleteElement(..._))
300
300
  }, " Так, я впевнена/ий ")
301
301
  ])
302
302
  ])
@@ -315,7 +315,7 @@ const Mt = /* @__PURE__ */ m(_t, [["render", Tt]]), St = {}, Vt = {
315
315
  "stroke-linecap": "round",
316
316
  "stroke-linejoin": "round"
317
317
  };
318
- function Dt(e, t, n, l, s, o) {
318
+ function Dt(e, t, n, o, s, l) {
319
319
  return a(), i("svg", Vt, t[0] || (t[0] = [
320
320
  r("path", { d: "m3 16 4 4 4-4" }, null, -1),
321
321
  r("path", { d: "M7 20V4" }, null, -1),
@@ -348,11 +348,11 @@ const At = /* @__PURE__ */ m(St, [["render", Dt]]), Ft = {
348
348
  responseType: "blob"
349
349
  }), t = new Blob([e.data], {
350
350
  type: "application/octet-stream"
351
- }), n = window.URL.createObjectURL(t), l = document.createElement("a");
352
- l.href = n, l.setAttribute(
351
+ }), n = window.URL.createObjectURL(t), o = document.createElement("a");
352
+ o.href = n, o.setAttribute(
353
353
  "download",
354
354
  `${this.table.split(".")[0]}.${this.format}`
355
- ), document.body.appendChild(l), l.click(), document.body.removeChild(l), window.URL.revokeObjectURL(n), this.$notify({
355
+ ), document.body.appendChild(o), o.click(), document.body.removeChild(o), window.URL.revokeObjectURL(n), this.$notify({
356
356
  type: "success",
357
357
  title: "Експорт",
358
358
  message: "Файл успішно експортовано!"
@@ -370,7 +370,7 @@ const At = /* @__PURE__ */ m(St, [["render", Dt]]), Ft = {
370
370
  }
371
371
  }
372
372
  }, It = { class: "p-4" }, Et = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, jt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, zt = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, Pt = { class: "mt-2 space-y-2" }, Bt = ["id", "onChange"], Ut = ["for"], Ht = { class: "pb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, qt = { class: "text-center" };
373
- function Lt(e, t, n, l, s, o) {
373
+ function Lt(e, t, n, o, s, l) {
374
374
  const b = d("VsCheckbox");
375
375
  return a(), i(x, null, [
376
376
  t[4] || (t[4] = r("div", { class: "dark:border-neutral-700" }, null, -1)),
@@ -405,7 +405,7 @@ function Lt(e, t, n, l, s, o) {
405
405
  name: "hs-pro-duecmfm",
406
406
  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",
407
407
  id: u,
408
- onChange: (f) => o.selectFormat(u)
408
+ onChange: (f) => l.selectFormat(u)
409
409
  }, null, 40, Bt),
410
410
  r("label", {
411
411
  for: u,
@@ -419,7 +419,7 @@ function Lt(e, t, n, l, s, o) {
419
419
  r("button", {
420
420
  type: "button",
421
421
  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",
422
- onClick: t[1] || (t[1] = (...u) => o.exportTable && o.exportTable(...u))
422
+ onClick: t[1] || (t[1] = (...u) => l.exportTable && l.exportTable(...u))
423
423
  }, " Завантажити таблицю ")
424
424
  ])
425
425
  ])
@@ -435,7 +435,7 @@ const Ot = /* @__PURE__ */ m(Ft, [["render", Lt]]), Nt = {
435
435
  };
436
436
  }
437
437
  };
438
- function Rt(e, t, n, l, s, o) {
438
+ function Rt(e, t, n, o, s, l) {
439
439
  const b = d("IconExport"), u = d("AdminTableExportForm"), g = d("VsDialog");
440
440
  return a(), i(x, null, [
441
441
  r("button", {
@@ -473,7 +473,7 @@ const Wt = /* @__PURE__ */ m(Nt, [["render", Rt]]), Gt = {}, Jt = {
473
473
  "stroke-linejoin": "round",
474
474
  class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
475
475
  };
476
- function Kt(e, t, n, l, s, o) {
476
+ function Kt(e, t, n, o, s, l) {
477
477
  return a(), i("svg", Jt, t[0] || (t[0] = [
478
478
  j('<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)
479
479
  ]));
@@ -496,7 +496,7 @@ const Qt = /* @__PURE__ */ m(Gt, [["render", Kt]]), Xt = {
496
496
  ((e = this.column) == null ? void 0 : e.hidden) !== !0 && (this.value = !0);
497
497
  }
498
498
  }, Yt = { class: "flex w-full gap-[8px] items-centr" };
499
- function Zt(e, t, n, l, s, o) {
499
+ function Zt(e, t, n, o, s, l) {
500
500
  var b, u;
501
501
  return a(), i("label", Yt, [
502
502
  E(r("input", {
@@ -514,12 +514,12 @@ const te = /* @__PURE__ */ m(Xt, [["render", Zt]]), ee = {
514
514
  props: { columns: Array },
515
515
  methods: {
516
516
  updateColumn(e) {
517
- const t = this.columns.findIndex((l) => (l == null ? void 0 : l.name) === (e == null ? void 0 : e.name)), n = this.columns;
517
+ const t = this.columns.findIndex((o) => (o == null ? void 0 : o.name) === (e == null ? void 0 : e.name)), n = this.columns;
518
518
  n[t] = e, this.$emit("update-columns", [...n]);
519
519
  }
520
520
  }
521
521
  }, 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" }, ne = { 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" };
522
- function se(e, t, n, l, s, o) {
522
+ function se(e, t, n, o, s, l) {
523
523
  const b = d("IconColumns"), u = d("AdminTableColumnsHiddenItem"), g = d("VsPopover");
524
524
  return a(), M(g, {
525
525
  trigger: "click",
@@ -540,7 +540,7 @@ function se(e, t, n, l, s, o) {
540
540
  (a(!0), i(x, null, w(n.columns, (f, C) => (a(), i("li", { key: C }, [
541
541
  p(u, {
542
542
  column: f,
543
- onUpdateColumn: o.updateColumn
543
+ onUpdateColumn: l.updateColumn
544
544
  }, null, 8, ["column", "onUpdateColumn"])
545
545
  ]))), 128))
546
546
  ])
@@ -549,14 +549,14 @@ function se(e, t, n, l, s, o) {
549
549
  _: 1
550
550
  });
551
551
  }
552
- const oe = /* @__PURE__ */ m(ee, [["render", se]]), le = {
552
+ const le = /* @__PURE__ */ m(ee, [["render", se]]), oe = {
553
553
  props: { table: String },
554
554
  components: {
555
555
  IconFilter: Y,
556
556
  AdminTableControl: Mt,
557
557
  AdminTableExport: Wt,
558
- AdminTableColumnsHidden: oe,
559
- AdminTableColumn: lt
558
+ AdminTableColumnsHidden: le,
559
+ AdminTableColumn: ot
560
560
  },
561
561
  data() {
562
562
  return {
@@ -597,8 +597,8 @@ const oe = /* @__PURE__ */ m(ee, [["render", se]]), le = {
597
597
  },
598
598
  $route: {
599
599
  handler(e, t) {
600
- var n, l;
601
- ((n = e == null ? void 0 : e.params) == null ? void 0 : n.catchAll) !== ((l = t == null ? void 0 : t.params) == null ? void 0 : l.catchAll) && (this.filterScheme = null, this.getFilters());
600
+ var n, o;
601
+ ((n = e == null ? void 0 : e.params) == null ? void 0 : n.catchAll) !== ((o = t == null ? void 0 : t.params) == null ? void 0 : o.catchAll) && (this.filterScheme = null, this.getFilters());
602
602
  },
603
603
  deep: !0
604
604
  }
@@ -607,7 +607,7 @@ const oe = /* @__PURE__ */ m(ee, [["render", se]]), le = {
607
607
  async getTableData() {
608
608
  var e, t;
609
609
  try {
610
- const { data: n } = await v.get(`/api/template/table/${this.table}`), l = await v.get(`/api/table-data/${this.table}`, {
610
+ const { data: n } = await v.get(`/api/template/table/${this.table}`), o = await v.get(`/api/table-data/${this.table}`, {
611
611
  params: {
612
612
  page: this.page,
613
613
  search: this.searchValue || null,
@@ -619,7 +619,7 @@ const oe = /* @__PURE__ */ m(ee, [["render", se]]), le = {
619
619
  this.tableData = {
620
620
  ...this.tableData,
621
621
  ...n,
622
- ...(l == null ? void 0 : l.data) || {}
622
+ ...(o == null ? void 0 : o.data) || {}
623
623
  };
624
624
  } catch {
625
625
  }
@@ -653,13 +653,13 @@ const oe = /* @__PURE__ */ m(ee, [["render", se]]), le = {
653
653
  }
654
654
  }
655
655
  }, ae = { class: "w-[calc(100vw - 320px)]" }, ie = { class: "h-[58px] bg-gray-50 flex items-center justify-between px-[30px]" }, ue = { class: "text-xl font-medium" }, ce = {
656
- style: { height: "calc(100vh - 60px)", width: "calc(100vw - 260px)" },
657
- class: "bg-gray-50 p-[20px] flex"
656
+ style: { height: "calc(100vh - 120px)", width: "calc(100vw - 260px)" },
657
+ class: "bg-gray-50 p-[20px] flex pt-[10px]"
658
658
  }, de = { class: "bg-white w-full rounded-xl border p-[20px]" }, pe = { class: "flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px]" }, he = { class: "flex gap-[6px] ml-auto" }, be = { class: "space-y-5 flex items-start w-full justify-start" }, me = {
659
- style: { height: "calc(100vh - 250px)" },
659
+ style: { height: "calc(100vh - 310px)" },
660
660
  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"
661
- }, ge = { class: "inline-block align-middle" }, fe = { class: "divide-y divide-gray-200 dark:divide-neutral-700 relative" }, xe = { 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" }, ye = { class: "border-stone-200 z-[1]" }, _e = { class: "divide-y divide-gray-200" }, ve = { class: "size-px min-w-[200px] max-w-[300px] text-start pe-4 py-3 text-sm text-gray-600" }, ke = { class: "text-center sticky right-0 bg-white" }, we = { class: "p-[20px] flex justify-end w-full" }, $e = { 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" };
662
- function Ce(e, t, n, l, s, o) {
661
+ }, ge = { class: "inline-block w-full align-middle" }, fe = { class: "divide-y divide-gray-200 min-w-full dark:divide-neutral-700 relative table-fixed" }, xe = { 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" }, ye = { class: "border-stone-200 right-0 z-[1]" }, _e = { class: "divide-y divide-gray-200" }, ve = { class: "min-w-[200px] text-start pe-4 py-3 text-sm text-gray-600" }, ke = { class: "text-center sticky right-0 bg-white w-[60px]" }, we = { class: "p-[20px] flex justify-end w-full" }, $e = { 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" };
662
+ function Ce(e, t, n, o, s, l) {
663
663
  var T, V, z, P, B, U, H;
664
664
  const b = d("router-link"), u = d("AdminTableColumnsHidden"), g = d("AdminTableExport"), f = d("IconFilter"), C = d("AdminTableColumn"), A = d("AdminTableControl"), _ = d("VsPagination"), S = d("VsFilter");
665
665
  return a(), i(x, null, [
@@ -713,13 +713,13 @@ function Ce(e, t, n, l, s, o) {
713
713
  r("table", fe, [
714
714
  r("thead", xe, [
715
715
  r("tr", ye, [
716
- (a(!0), i(x, null, w(o.columns, (c) => (a(), M(C, {
716
+ (a(!0), i(x, null, w(l.columns, (c) => (a(), M(C, {
717
717
  key: c.name,
718
718
  data: c,
719
719
  activeColumn: s.activeColumn,
720
- onChangeActive: o.changeActiveColumn
720
+ onChangeActive: l.changeActiveColumn
721
721
  }, null, 8, ["data", "activeColumn", "onChangeActive"]))), 128)),
722
- t[7] || (t[7] = r("th", { class: "min-w-[70px] max-w-[70px] sticky right-0 top-0 bg-white" }, null, -1))
722
+ t[7] || (t[7] = r("th", { class: "w-[60px] sticky right-0 top-0 bg-white" }, null, -1))
723
723
  ])
724
724
  ]),
725
725
  r("tbody", _e, [
@@ -734,16 +734,16 @@ function Ce(e, t, n, l, s, o) {
734
734
  default: y(() => {
735
735
  var h;
736
736
  return [
737
- k($(c == null ? void 0 : c[(h = o.columns[0]) == null ? void 0 : h.name]), 1)
737
+ k($(c == null ? void 0 : c[(h = l.columns[0]) == null ? void 0 : h.name]), 1)
738
738
  ];
739
739
  }),
740
740
  _: 2
741
741
  }, 1032, ["to"])
742
742
  ]),
743
- (a(!0), i(x, null, w((q = o.columns) == null ? void 0 : q.slice(1), (h) => {
743
+ (a(!0), i(x, null, w((q = l.columns) == null ? void 0 : q.slice(1), (h) => {
744
744
  var L;
745
745
  return a(), i("td", {
746
- class: "size-px min-w-[300px] max-w-[400px] text-start px-[4px] py-3 text-sm text-gray-600",
746
+ class: "min-w-[300px] w-full text-start px-[4px] py-3 text-sm text-gray-600",
747
747
  key: h.name
748
748
  }, [
749
749
  (a(), M(W(
@@ -759,7 +759,7 @@ function Ce(e, t, n, l, s, o) {
759
759
  p(A, {
760
760
  item: c,
761
761
  table: n.table,
762
- onUpdateTable: o.getTableData
762
+ onUpdateTable: l.getTableData
763
763
  }, null, 8, ["item", "table", "onUpdateTable"])
764
764
  ])
765
765
  ]);
@@ -773,12 +773,12 @@ function Ce(e, t, n, l, s, o) {
773
773
  p(_, {
774
774
  goTo: !1,
775
775
  class: "justify-end",
776
- "default-page": o.defaultPage,
776
+ "default-page": l.defaultPage,
777
777
  total: ((H = s.tableData) == null ? void 0 : H.total) || 0,
778
778
  pageSize: s.limit,
779
- onPageChange: o.handlePageChange,
779
+ onPageChange: l.handlePageChange,
780
780
  pageSizes: [10, 16, 20],
781
- onPageSizeChange: o.changeLimit
781
+ onPageSizeChange: l.changeLimit
782
782
  }, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])
783
783
  ])
784
784
  ])
@@ -789,7 +789,7 @@ function Ce(e, t, n, l, s, o) {
789
789
  var c;
790
790
  return [
791
791
  E(r("div", {
792
- onClick: t[4] || (t[4] = (...D) => o.closeFilter && o.closeFilter(...D)),
792
+ onClick: t[4] || (t[4] = (...D) => l.closeFilter && l.closeFilter(...D)),
793
793
  style: { height: "100vh" },
794
794
  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)]"
795
795
  }, [
@@ -802,7 +802,7 @@ function Ce(e, t, n, l, s, o) {
802
802
  "apply-vue-router": "",
803
803
  history: "",
804
804
  name: "filter",
805
- onFilterChange: o.filterChange,
805
+ onFilterChange: l.filterChange,
806
806
  closeFilterBtn: !0,
807
807
  onFilterClose: t[3] || (t[3] = (D) => s.isFilters = !1)
808
808
  }, null, 8, ["scheme", "onFilterChange"])) : I("", !0)
@@ -816,7 +816,7 @@ function Ce(e, t, n, l, s, o) {
816
816
  })
817
817
  ], 64);
818
818
  }
819
- const Te = /* @__PURE__ */ m(le, [["render", Ce]]), Me = {
819
+ const Te = /* @__PURE__ */ m(oe, [["render", Ce]]), Me = {
820
820
  components: { AdminTable: Te },
821
821
  data() {
822
822
  return {
@@ -857,9 +857,9 @@ const Te = /* @__PURE__ */ m(le, [["render", Ce]]), Me = {
857
857
  async checkPageType() {
858
858
  const e = this.flattenMenu(F.value);
859
859
  e != null && e.length || this.$router.replace("/404");
860
- const t = e == null ? void 0 : e.find((l) => {
861
- var s, o;
862
- return (l == null ? void 0 : l.path) == ((o = (s = this.$route) == null ? void 0 : s.params) == null ? void 0 : o.catchAll);
860
+ const t = e == null ? void 0 : e.find((o) => {
861
+ var s, l;
862
+ return (o == null ? void 0 : o.path) == ((l = (s = this.$route) == null ? void 0 : s.params) == null ? void 0 : l.catchAll);
863
863
  });
864
864
  this.title = t == null ? void 0 : t.ua, t || this.$router.replace("/404");
865
865
  const n = t == null ? void 0 : t.table;
@@ -877,20 +877,20 @@ const Te = /* @__PURE__ */ m(le, [["render", Ce]]), Me = {
877
877
  }
878
878
  }
879
879
  }
880
- }, Se = {
881
- key: 1,
882
- class: "w-full"
883
- }, Ve = ["innerHTML"];
884
- function De(e, t, n, l, s, o) {
880
+ }, Se = ["innerHTML"];
881
+ function Ve(e, t, n, o, s, l) {
885
882
  const b = d("AdminTable");
886
883
  return s.table ? (a(), M(b, {
887
884
  key: 0,
888
885
  table: s.table
889
- }, null, 8, ["table"])) : (a(), i("div", Se, [
890
- r("div", { innerHTML: s.interface }, null, 8, Ve)
891
- ]));
886
+ }, null, 8, ["table"])) : (a(), i("div", {
887
+ key: 1,
888
+ class: "w-full bg-gray-50",
889
+ style: { height: "calc(100vh - 120px)" },
890
+ innerHTML: s.interface
891
+ }, null, 8, Se));
892
892
  }
893
- const Ee = /* @__PURE__ */ m(Me, [["render", De]]);
893
+ const Ie = /* @__PURE__ */ m(Me, [["render", Ve]]);
894
894
  export {
895
- Ee as default
895
+ Ie as default
896
896
  };