@opengis/admin 0.1.77 → 0.1.78

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
- import { g as V, h as z, _ as A, u as L, a as q } from "./import-file-L1iBMu59.js";
2
- import { computed as B, resolveComponent as R, openBlock as r, createElementBlock as s, createElementVNode as d, toDisplayString as M, createVNode as N, withCtx as E, createTextVNode as S, createBlock as H, createCommentVNode as u, normalizeClass as D, Fragment as w, renderList as j, resolveDynamicComponent as T } from "vue";
1
+ import { g as V, h as z, _ as A, u as L, a as q } from "./import-file-REG5YZVe.js";
2
+ import { computed as B, resolveComponent as R, openBlock as r, createElementBlock as s, createElementVNode as d, toDisplayString as H, createVNode as N, withCtx as E, createTextVNode as S, createBlock as T, createCommentVNode as u, normalizeClass as D, Fragment as C, renderList as j, resolveDynamicComponent as i } from "vue";
3
3
  const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justify-between px-[20px] mb-[16px]" }, O = { class: "text-lg font-semibold md:text-xl text-stone-800 dark:text-neutral-200" }, F = { class: "flex items-center gap-[6px]" }, I = {
4
4
  __name: "admin-card-header",
5
5
  props: {
@@ -21,17 +21,17 @@ const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
21
21
  }
22
22
  );
23
23
  return (x, g) => {
24
- const v = R("router-link");
24
+ const k = R("router-link");
25
25
  return r(), s("div", G, [
26
26
  d("div", null, [
27
27
  d("button", {
28
28
  onClick: t,
29
29
  class: "text-sm h-[20px] text-blue-600 font-medium hover:border-b-2 hover:border-b-blue-500"
30
30
  }, " До таблиці "),
31
- d("h2", O, M(n.title), 1)
31
+ d("h2", O, H(n.title), 1)
32
32
  ]),
33
33
  d("div", F, [
34
- N(v, {
34
+ N(k, {
35
35
  to: p.value,
36
36
  class: "inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white"
37
37
  }, {
@@ -63,14 +63,14 @@ const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
63
63
  return c || this.$router.replace("/404"), c == null ? void 0 : c.path;
64
64
  },
65
65
  getTitle() {
66
- var n, c, a, l, t, p, x, g, v, e, C, i, o, k, f;
66
+ var n, c, a, l, t, p, x, g, k, e, f, M, o, w, _;
67
67
  if ((a = (c = (n = this.objectData) == null ? void 0 : n.rows) == null ? void 0 : c[0]) != null && a.name)
68
- return ((x = (p = (t = (l = this.objectData) == null ? void 0 : l.rows) == null ? void 0 : t[0]) == null ? void 0 : p.name) == null ? void 0 : x.length) < 35 ? (e = (v = (g = this.objectData) == null ? void 0 : g.rows) == null ? void 0 : v[0]) == null ? void 0 : e.name : ((k = (o = (i = (C = this.objectData) == null ? void 0 : C.rows) == null ? void 0 : i[0]) == null ? void 0 : o.name) == null ? void 0 : k.slice(0, 35)) + " ...";
68
+ return ((x = (p = (t = (l = this.objectData) == null ? void 0 : l.rows) == null ? void 0 : t[0]) == null ? void 0 : p.name) == null ? void 0 : x.length) < 35 ? (e = (k = (g = this.objectData) == null ? void 0 : g.rows) == null ? void 0 : k[0]) == null ? void 0 : e.name : ((w = (o = (M = (f = this.objectData) == null ? void 0 : f.rows) == null ? void 0 : M[0]) == null ? void 0 : o.name) == null ? void 0 : w.slice(0, 35)) + " ...";
69
69
  {
70
- const h = (f = this.flattenMenu(L.value)) == null ? void 0 : f.find(
70
+ const h = (_ = this.flattenMenu(L.value)) == null ? void 0 : _.find(
71
71
  (b) => {
72
- var _, y;
73
- return (b == null ? void 0 : b.table) === ((y = (_ = this.$route) == null ? void 0 : _.params) == null ? void 0 : y.table);
72
+ var y, v;
73
+ return (b == null ? void 0 : b.table) === ((v = (y = this.$route) == null ? void 0 : y.params) == null ? void 0 : v.table);
74
74
  }
75
75
  );
76
76
  return h == null ? void 0 : h.ua;
@@ -104,12 +104,14 @@ const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
104
104
  return "grid-cols-12";
105
105
  },
106
106
  checkActiveComponent() {
107
- var n, c, a, l, t, p, x, g, v;
107
+ var n, c, a, l, t, p, x, g, k;
108
108
  if ((c = (n = this.$route) == null ? void 0 : n.query) != null && c.tab)
109
109
  this.component = (l = (a = this.$route) == null ? void 0 : a.query) == null ? void 0 : l.tab;
110
110
  else {
111
- const e = (p = (t = this.objectData) == null ? void 0 : t.panels) == null ? void 0 : p.find((C) => (C == null ? void 0 : C.type) === "tabs");
112
- (x = e == null ? void 0 : e.items) != null && x.length && (this.component = ((g = e.items[0]) == null ? void 0 : g.component) || ((v = e.items[0]) == null ? void 0 : v.name));
111
+ const e = (p = (t = this.objectData) == null ? void 0 : t.panels) == null ? void 0 : p.find(
112
+ (f) => (f == null ? void 0 : f.type) === "tabs" || (f == null ? void 0 : f.type) === "vertical-tabs"
113
+ );
114
+ (x = e == null ? void 0 : e.items) != null && x.length && (this.component = ((g = e.items[0]) == null ? void 0 : g.component) || ((k = e.items[0]) == null ? void 0 : k.name));
113
115
  }
114
116
  },
115
117
  flattenMenu(n) {
@@ -154,10 +156,10 @@ const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
154
156
  class: "p-[20px] border-t"
155
157
  }, ho = ["innerHTML"];
156
158
  function bo(n, c, a, l, t, p) {
157
- var g, v;
159
+ var g, k;
158
160
  const x = R("AdminCardHeader");
159
161
  return r(), s("div", $, [
160
- ((g = t.objectData) == null ? void 0 : g.isHeader) !== !1 ? (r(), H(x, {
162
+ ((g = t.objectData) == null ? void 0 : g.isHeader) !== !1 ? (r(), T(x, {
161
163
  key: 0,
162
164
  title: p.getTitle,
163
165
  "get-route": p.getRoute
@@ -165,69 +167,69 @@ function bo(n, c, a, l, t, p) {
165
167
  d("div", {
166
168
  class: D(["grid gap-[20px]", p.getGridClass()])
167
169
  }, [
168
- (r(!0), s(w, null, j((v = t.objectData) == null ? void 0 : v.panels, (e, C) => {
169
- var i;
170
+ (r(!0), s(C, null, j((k = t.objectData) == null ? void 0 : k.panels, (e, f) => {
171
+ var M;
170
172
  return r(), s("div", {
171
- key: C,
173
+ key: f,
172
174
  class: D(p.getColClass(e.col))
173
175
  }, [
174
176
  e != null && e.name ? (r(), s("div", J, [
175
- d("h2", K, M((e == null ? void 0 : e.title) || "Панель"), 1),
177
+ d("h2", K, H((e == null ? void 0 : e.title) || "Панель"), 1),
176
178
  d("div", {
177
179
  class: "p-[20px] border-t",
178
- innerHTML: (i = t.objectData) == null ? void 0 : i.data[e == null ? void 0 : e.name]
180
+ innerHTML: (M = t.objectData) == null ? void 0 : M.data[e == null ? void 0 : e.name]
179
181
  }, null, 8, Q)
180
182
  ])) : e.type === "container" ? (r(), s("div", U, [
181
- (r(!0), s(w, null, j(e.items, (o, k) => {
182
- var f, h, b, _, y;
183
+ (r(!0), s(C, null, j(e.items, (o, w) => {
184
+ var _, h, b, y, v;
183
185
  return r(), s("div", {
184
- key: k,
186
+ key: w,
185
187
  class: D([{ "mb-[20px]": e.items.length > 1 }, "bg-white border rounded-xl"])
186
188
  }, [
187
- o != null && o.title ? (r(), s("h2", W, M((o == null ? void 0 : o.title) || "Панель"), 1)) : u("", !0),
189
+ o != null && o.title ? (r(), s("h2", W, H((o == null ? void 0 : o.title) || "Панель"), 1)) : u("", !0),
188
190
  o != null && o.component ? (r(), s("div", {
189
191
  key: 1,
190
192
  class: D(["p-[20px]", { "border-t": o == null ? void 0 : o.title }])
191
193
  }, [
192
- (r(), H(T(o.component), {
193
- geometry: (h = (f = t.objectData) == null ? void 0 : f.rows[0]) == null ? void 0 : h.geom,
194
+ (r(), T(i(o.component), {
195
+ geometry: (h = (_ = t.objectData) == null ? void 0 : _.rows[0]) == null ? void 0 : h.geom,
194
196
  zoom: 16,
195
- id: (_ = (b = n.$route) == null ? void 0 : b.params) == null ? void 0 : _.id
197
+ id: (y = (b = n.$route) == null ? void 0 : b.params) == null ? void 0 : y.id
196
198
  }, null, 8, ["geometry", "id"]))
197
199
  ], 2)) : u("", !0),
198
200
  o != null && o.name ? (r(), s("div", X, [
199
201
  d("div", {
200
- innerHTML: (y = t.objectData) == null ? void 0 : y.data[o == null ? void 0 : o.name]
202
+ innerHTML: (v = t.objectData) == null ? void 0 : v.data[o == null ? void 0 : o.name]
201
203
  }, null, 8, Y)
202
204
  ])) : u("", !0)
203
205
  ], 2);
204
206
  }), 128))
205
207
  ])) : u("", !0),
206
- (e == null ? void 0 : e.type) === "tabs" ? (r(), s(w, { key: 2 }, [
208
+ (e == null ? void 0 : e.type) === "tabs" ? (r(), s(C, { key: 2 }, [
207
209
  d("nav", Z, [
208
- (r(!0), s(w, null, j(e == null ? void 0 : e.items, (o) => (r(), s("button", {
210
+ (r(!0), s(C, null, j(e == null ? void 0 : e.items, (o) => (r(), s("button", {
209
211
  key: (o == null ? void 0 : o.name) || (o == null ? void 0 : o.component),
210
- onClick: (k) => t.component = (o == null ? void 0 : o.component) || (o == null ? void 0 : o.name),
212
+ onClick: (w) => t.component = (o == null ? void 0 : o.component) || (o == null ? void 0 : o.name),
211
213
  class: D(["px-2.5 h-[30px] py-1.5 relative inline-flex items-center gap-x-2 text-gray-500 hover:bg-gray-100 focus:bg-gray-100 hover:text-gray-800 text-sm whitespace-nowrap rounded-lg focus:outline-none", {
212
214
  " font-semibold after:absolute after:bottom-[-14px] after:left-2.5 after:right-2.5 after:z-10 after:h-0.5 after:bg-gray-800": t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name),
213
215
  "": t.component !== (o == null ? void 0 : o.component) && t.component !== (o == null ? void 0 : o.name)
214
216
  }])
215
- }, M(o == null ? void 0 : o.title), 11, m))), 128))
217
+ }, H(o == null ? void 0 : o.title), 11, m))), 128))
216
218
  ]),
217
- (r(!0), s(w, null, j(e.items, (o, k) => {
218
- var f, h, b, _, y;
219
- return r(), s(w, { key: k }, [
219
+ (r(!0), s(C, null, j(e.items, (o, w) => {
220
+ var _, h, b, y, v;
221
+ return r(), s(C, { key: w }, [
220
222
  t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name) ? (r(), s("div", oo, [
221
223
  o != null && o.component ? (r(), s("div", eo, [
222
- (r(), H(T(o.component), {
223
- geometry: (h = (f = t.objectData) == null ? void 0 : f.rows[0]) == null ? void 0 : h.geom,
224
+ (r(), T(i(o.component), {
225
+ geometry: (h = (_ = t.objectData) == null ? void 0 : _.rows[0]) == null ? void 0 : h.geom,
224
226
  zoom: 16,
225
- id: (_ = (b = n.$route) == null ? void 0 : b.params) == null ? void 0 : _.id
227
+ id: (y = (b = n.$route) == null ? void 0 : b.params) == null ? void 0 : y.id
226
228
  }, null, 8, ["geometry", "id"]))
227
229
  ])) : u("", !0),
228
230
  o != null && o.name ? (r(), s("div", to, [
229
231
  d("div", {
230
- innerHTML: (y = t.objectData) == null ? void 0 : y.data[o == null ? void 0 : o.name]
232
+ innerHTML: (v = t.objectData) == null ? void 0 : v.data[o == null ? void 0 : o.name]
231
233
  }, null, 8, ro)
232
234
  ])) : u("", !0)
233
235
  ])) : u("", !0)
@@ -236,30 +238,30 @@ function bo(n, c, a, l, t, p) {
236
238
  ], 64)) : u("", !0),
237
239
  (e == null ? void 0 : e.type) === "vertical-tabs" ? (r(), s("div", no, [
238
240
  d("nav", so, [
239
- (r(!0), s(w, null, j(e == null ? void 0 : e.items, (o) => (r(), s("button", {
241
+ (r(!0), s(C, null, j(e == null ? void 0 : e.items, (o) => (r(), s("button", {
240
242
  key: (o == null ? void 0 : o.name) || (o == null ? void 0 : o.component),
241
- onClick: (k) => t.component = (o == null ? void 0 : o.component) || (o == null ? void 0 : o.name),
243
+ onClick: (w) => t.component = (o == null ? void 0 : o.component) || (o == null ? void 0 : o.name),
242
244
  class: D(["relative inline-flex items-center w-full py-1 text-sm border-transparent pe-4 gap-x-2 border-e-2 whitespace-nowrap hover:text-blue-600 focus:outline-none focus:text-blue-600", {
243
245
  "font-semibold after:absolute after:top-[0] after:right-[-1px] after:h-full text-blue-600 after:w-[2px] after:bg-blue-600 ": t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name),
244
246
  "text-gray-500": t.component !== (o == null ? void 0 : o.component) && t.component !== (o == null ? void 0 : o.name)
245
247
  }])
246
- }, M(o == null ? void 0 : o.title), 11, co))), 128))
248
+ }, H(o == null ? void 0 : o.title), 11, co))), 128))
247
249
  ]),
248
250
  d("div", ao, [
249
- (r(!0), s(w, null, j(e.items, (o, k) => {
250
- var f, h, b, _, y;
251
- return r(), s(w, { key: k }, [
251
+ (r(!0), s(C, null, j(e.items, (o, w) => {
252
+ var _, h, b, y, v;
253
+ return r(), s(C, { key: w }, [
252
254
  t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name) ? (r(), s("div", lo, [
253
255
  o != null && o.component ? (r(), s("div", uo, [
254
- (r(), H(T(o.component), {
255
- geometry: (h = (f = t.objectData) == null ? void 0 : f.rows[0]) == null ? void 0 : h.geom,
256
+ (r(), T(i(o.component), {
257
+ geometry: (h = (_ = t.objectData) == null ? void 0 : _.rows[0]) == null ? void 0 : h.geom,
256
258
  zoom: 16,
257
- id: (_ = (b = n.$route) == null ? void 0 : b.params) == null ? void 0 : _.id
259
+ id: (y = (b = n.$route) == null ? void 0 : b.params) == null ? void 0 : y.id
258
260
  }, null, 8, ["geometry", "id"]))
259
261
  ])) : u("", !0),
260
262
  o != null && o.name ? (r(), s("div", po, [
261
263
  d("div", {
262
- innerHTML: (y = t.objectData) == null ? void 0 : y.data[o == null ? void 0 : o.name]
264
+ innerHTML: (v = t.objectData) == null ? void 0 : v.data[o == null ? void 0 : o.name]
263
265
  }, null, 8, ho)
264
266
  ])) : u("", !0)
265
267
  ])) : u("", !0)
@@ -272,7 +274,7 @@ function bo(n, c, a, l, t, p) {
272
274
  ], 2)
273
275
  ]);
274
276
  }
275
- const fo = /* @__PURE__ */ A(P, [["render", bo], ["__scopeId", "data-v-6f4173b5"]]);
277
+ const fo = /* @__PURE__ */ A(P, [["render", bo], ["__scopeId", "data-v-7bc72f0a"]]);
276
278
  export {
277
279
  fo as default
278
280
  };
@@ -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-L1iBMu59.js";
2
+ import { _ as c } from "./import-file-REG5YZVe.js";
3
3
  const n = {};
4
4
  function s(_, p, a, i, f, m) {
5
5
  const o = e("router-view");
@@ -1,4 +1,4 @@
1
- import { _ as d, u as m, a as n } from "./import-file-L1iBMu59.js";
1
+ import { _ as d, u as m, a as n } from "./import-file-REG5YZVe.js";
2
2
  import { resolveComponent as b, openBlock as u, createElementBlock as h, createElementVNode as a, createBlock as f, createCommentVNode as p } from "vue";
3
3
  const g = {
4
4
  data() {