@opengis/admin 0.1.4 → 0.1.5

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 T } from "./userMenu-CT1xO2Pt.js";
2
- import { _ as H, a as N } from "./import-file-bAV0TNST.js";
2
+ import { _ as H, a as N } from "./import-file-Clxr3e1P.js";
3
3
  import { resolveComponent as B, openBlock as a, createElementBlock as c, createElementVNode as n, toDisplayString as i, createVNode as E, withCtx as z, createTextVNode as G, normalizeClass as D, Fragment as j, renderList as $, createBlock as O, resolveDynamicComponent as R, createCommentVNode as p } from "vue";
4
4
  const F = {
5
5
  data() {
@@ -9,13 +9,13 @@ const F = {
9
9
  },
10
10
  computed: {
11
11
  getRoute() {
12
- const e = this.flattenMenu(T.value);
13
- e != null && e.length || this.$router.replace("/404");
14
- const t = e == null ? void 0 : e.find((r) => {
12
+ const t = this.flattenMenu(T.value);
13
+ t != null && t.length || this.$router.replace("/404");
14
+ const e = t == null ? void 0 : t.find((r) => {
15
15
  var d, l;
16
16
  return (r == null ? void 0 : r.table) == ((l = (d = this.$route) == null ? void 0 : d.params) == null ? void 0 : l.table);
17
17
  });
18
- return t || this.$router.replace("/404"), t == null ? void 0 : t.path;
18
+ return e || this.$router.replace("/404"), e == null ? void 0 : e.path;
19
19
  }
20
20
  },
21
21
  mounted() {
@@ -24,26 +24,26 @@ const F = {
24
24
  methods: {
25
25
  async getObjectData() {
26
26
  var r;
27
- const { table: e, id: t } = (r = this.$route) == null ? void 0 : r.params;
28
- (!e || !t) && this.$router.replace("/404");
27
+ const { table: t, id: e } = (r = this.$route) == null ? void 0 : r.params;
28
+ (!t || !e) && this.$router.replace("/404");
29
29
  try {
30
- const { data: d } = await N.get(`/api/table-data/${e}/${t}`);
30
+ const { data: d } = await N.get(`/api/table-data/${t}/${e}`);
31
31
  this.objectData = d;
32
32
  } catch (d) {
33
33
  console.error(d);
34
34
  }
35
35
  },
36
- getColClass(e) {
37
- return `col-span-${e || 12}`;
36
+ getColClass(t) {
37
+ return `col-span-${t || 12}`;
38
38
  },
39
39
  getGridClass() {
40
40
  return "grid-cols-12";
41
41
  },
42
- flattenMenu(e) {
43
- const t = [];
44
- return e.forEach((r) => {
45
- r.menu ? t.push(...this.flattenMenu(r.menu)) : t.push(r);
46
- }), t;
42
+ flattenMenu(t) {
43
+ const e = [];
44
+ return t.forEach((r) => {
45
+ r.menu ? e.push(...this.flattenMenu(r.menu)) : e.push(r);
46
+ }), e;
47
47
  }
48
48
  }
49
49
  }, I = {
@@ -59,25 +59,25 @@ const F = {
59
59
  key: 1,
60
60
  class: "p-[20px] border-t"
61
61
  }, Z = ["innerHTML"];
62
- function tt(e, t, r, d, l, u) {
62
+ function ee(t, e, r, d, l, u) {
63
63
  var h, x, g, b, _, f;
64
64
  const M = B("router-link");
65
65
  return a(), c("div", I, [
66
66
  n("div", P, [
67
67
  n("div", S, [
68
68
  n("button", {
69
- onClick: t[0] || (t[0] = (o) => e.$router.back()),
69
+ onClick: e[0] || (e[0] = (o) => t.$router.back()),
70
70
  class: "text-xl font-medium text-gray-600 hover:text-black"
71
71
  }, " До таблиці "),
72
- t[1] || (t[1] = n("span", null, "/", -1)),
72
+ e[1] || (e[1] = n("span", null, "/", -1)),
73
73
  n("h2", q, i(((g = (x = (h = l.objectData) == null ? void 0 : h.rows) == null ? void 0 : x[0]) == null ? void 0 : g.name) || "Сторінка об'єкта"), 1)
74
74
  ]),
75
75
  n("div", A, [
76
76
  E(M, {
77
- to: `/edit?table=${u.getRoute}&id=${(_ = (b = e.$route) == null ? void 0 : b.params) == null ? void 0 : _.id}`,
77
+ to: `/edit?table=${u.getRoute}&id=${(_ = (b = t.$route) == null ? void 0 : b.params) == null ? void 0 : _.id}`,
78
78
  class: "py-2 px-3 flex items-center gap-x-2 text-sm text-white font-medium rounded-lg border-none bg-blue-500 text-gray-800 shadow-sm focus:border-none focus:outline-none hover:bg-blue-700 hover:text-white duration-300"
79
79
  }, {
80
- default: z(() => t[2] || (t[2] = [
80
+ default: z(() => e[2] || (e[2] = [
81
81
  G(" Редагувати ")
82
82
  ])),
83
83
  _: 1
@@ -111,7 +111,7 @@ function tt(e, t, r, d, l, u) {
111
111
  (a(), O(R(s.component), {
112
112
  geometry: (y = (v = l.objectData) == null ? void 0 : v.rows[0]) == null ? void 0 : y.geom,
113
113
  zoom: 16,
114
- id: (w = (k = e.$route) == null ? void 0 : k.params) == null ? void 0 : w.id
114
+ id: (w = (k = t.$route) == null ? void 0 : k.params) == null ? void 0 : w.id
115
115
  }, null, 8, ["geometry", "id"]))
116
116
  ])) : p("", !0),
117
117
  s != null && s.name ? (a(), c("div", Y, [
@@ -127,7 +127,7 @@ function tt(e, t, r, d, l, u) {
127
127
  ], 2)
128
128
  ]);
129
129
  }
130
- const rt = /* @__PURE__ */ H(F, [["render", tt], ["__scopeId", "data-v-86a4c28d"]]);
130
+ const re = /* @__PURE__ */ H(F, [["render", ee], ["__scopeId", "data-v-86de1424"]]);
131
131
  export {
132
- rt as default
132
+ re as default
133
133
  };
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as e, openBlock as r, createBlock as t } from "vue";
2
- import { _ as c } from "./import-file-bAV0TNST.js";
2
+ import { _ as c } from "./import-file-Clxr3e1P.js";
3
3
  const n = {};
4
4
  function s(_, p, a, i, f, m) {
5
5
  const o = e("router-view");
@@ -1,5 +1,5 @@
1
1
  import { u as m } from "./userMenu-CT1xO2Pt.js";
2
- import { _ as h, a as c } from "./import-file-bAV0TNST.js";
2
+ import { _ as h, a as c } from "./import-file-Clxr3e1P.js";
3
3
  import { resolveComponent as d, openBlock as u, createElementBlock as b, createElementVNode as n, createBlock as f, createCommentVNode as p } from "vue";
4
4
  const g = {
5
5
  data() {