@opengis/admin 0.1.72 → 0.1.74

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-DsHdUJ7C.js";
2
- import { computed as B, resolveComponent as R, openBlock as r, createElementBlock as s, createElementVNode as u, toDisplayString as M, createVNode as N, withCtx as E, createTextVNode as S, createBlock as H, createCommentVNode as b, normalizeClass as j, Fragment as w, renderList as C, resolveDynamicComponent as T } from "vue";
1
+ import { g as V, h as z, _ as A, u as L, a as q } from "./import-file-CFLFN46x.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";
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: {
@@ -14,7 +14,7 @@ const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
14
14
  setup(n) {
15
15
  const c = n, a = V(), l = z(), t = () => {
16
16
  a.back();
17
- }, d = B(
17
+ }, p = B(
18
18
  () => {
19
19
  var x;
20
20
  return `/edit?table=${c.getRoute}&id=${(x = l == null ? void 0 : l.params) == null ? void 0 : x.id}`;
@@ -23,16 +23,16 @@ const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
23
23
  return (x, g) => {
24
24
  const v = R("router-link");
25
25
  return r(), s("div", G, [
26
- u("div", null, [
27
- u("button", {
26
+ d("div", null, [
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
- u("h2", O, M(n.title), 1)
31
+ d("h2", O, M(n.title), 1)
32
32
  ]),
33
- u("div", F, [
33
+ d("div", F, [
34
34
  N(v, {
35
- to: d.value,
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
  }, {
38
38
  default: E(() => g[0] || (g[0] = [
@@ -63,17 +63,17 @@ 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, d, x, g, v, e, i, D, o, k, _;
66
+ var n, c, a, l, t, p, x, g, v, e, C, i, o, k, f;
67
67
  if ((a = (c = (n = this.objectData) == null ? void 0 : n.rows) == null ? void 0 : c[0]) != null && a.name)
68
- return ((x = (d = (t = (l = this.objectData) == null ? void 0 : l.rows) == null ? void 0 : t[0]) == null ? void 0 : d.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 = (D = (i = this.objectData) == null ? void 0 : i.rows) == null ? void 0 : D[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 = (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)) + " ...";
69
69
  {
70
- const p = (_ = this.flattenMenu(L.value)) == null ? void 0 : _.find(
71
- (h) => {
72
- var f, y;
73
- return (h == null ? void 0 : h.table) === ((y = (f = this.$route) == null ? void 0 : f.params) == null ? void 0 : y.table);
70
+ const h = (f = this.flattenMenu(L.value)) == null ? void 0 : f.find(
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);
74
74
  }
75
75
  );
76
- return p == null ? void 0 : p.ua;
76
+ return h == null ? void 0 : h.ua;
77
77
  }
78
78
  }
79
79
  },
@@ -104,11 +104,11 @@ 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, d, x, g, v;
107
+ var n, c, a, l, t, p, x, g, v;
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 = (d = (t = this.objectData) == null ? void 0 : t.panels) == null ? void 0 : d.find((i) => (i == null ? void 0 : i.type) === "tabs");
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
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));
113
113
  }
114
114
  },
@@ -125,151 +125,154 @@ const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
125
125
  }, J = {
126
126
  key: 0,
127
127
  class: "bg-white border rounded-xl"
128
- }, K = { class: "p-[10px] pl-[20px] text-md font-[500]" }, Q = ["innerHTML"], U = { key: 1 }, W = { class: "p-[10px] pl-[20px] text-md font-[500]" }, X = {
128
+ }, K = { class: "p-[10px] pl-[20px] text-md font-[500]" }, Q = ["innerHTML"], U = { key: 1 }, W = {
129
129
  key: 0,
130
+ class: "p-[10px] pl-[20px] text-md font-[500]"
131
+ }, X = {
132
+ key: 2,
130
133
  class: "p-[20px] border-t"
131
- }, Y = {
132
- key: 1,
133
- class: "p-[20px] border-t"
134
- }, Z = ["innerHTML"], m = { class: "flex space-x-1 w-full bg-white border border-b-0 rounded-tr-xl rounded-tl-xl h-[60px] items-center pl-[20px]" }, oo = ["onClick"], eo = {
134
+ }, Y = ["innerHTML"], Z = { class: "flex space-x-1 w-full bg-white border border-b-0 rounded-tr-xl rounded-tl-xl h-[60px] items-center pl-[20px]" }, m = ["onClick"], oo = {
135
135
  key: 0,
136
136
  class: "bg-white border border-t-0 rounded-bl-xl rounded-br-xl"
137
- }, to = {
137
+ }, eo = {
138
138
  key: 0,
139
139
  class: "p-[20px] border-t"
140
- }, ro = {
140
+ }, to = {
141
141
  key: 1,
142
142
  class: "p-[20px] border-t"
143
- }, no = ["innerHTML"], so = {
143
+ }, ro = ["innerHTML"], no = {
144
144
  key: 3,
145
145
  class: "flex"
146
- }, co = { class: "flex flex-col space-y-2 w-[200px] border rounded-xl mr-4 h-auto items-start pl-[10px] bg-white py-[20px]" }, ao = ["onClick"], lo = { class: "flex-grow" }, uo = {
146
+ }, so = { class: "flex flex-col space-y-2 w-[200px] border rounded-xl mr-4 h-auto items-start pl-[10px] bg-white py-[20px]" }, co = ["onClick"], ao = { class: "flex-grow" }, lo = {
147
147
  key: 0,
148
148
  class: "h-full bg-white border rounded-xl"
149
- }, po = {
149
+ }, uo = {
150
150
  key: 0,
151
151
  class: "p-[20px]"
152
- }, ho = {
152
+ }, po = {
153
153
  key: 1,
154
154
  class: "p-[20px] border-t"
155
- }, bo = ["innerHTML"];
156
- function xo(n, c, a, l, t, d) {
155
+ }, ho = ["innerHTML"];
156
+ function bo(n, c, a, l, t, p) {
157
157
  var g, v;
158
158
  const x = R("AdminCardHeader");
159
159
  return r(), s("div", $, [
160
160
  ((g = t.objectData) == null ? void 0 : g.isHeader) !== !1 ? (r(), H(x, {
161
161
  key: 0,
162
- title: d.getTitle,
163
- "get-route": d.getRoute
164
- }, null, 8, ["title", "get-route"])) : b("", !0),
165
- u("div", {
166
- class: j(["grid gap-[20px]", d.getGridClass()])
162
+ title: p.getTitle,
163
+ "get-route": p.getRoute
164
+ }, null, 8, ["title", "get-route"])) : u("", !0),
165
+ d("div", {
166
+ class: D(["grid gap-[20px]", p.getGridClass()])
167
167
  }, [
168
- (r(!0), s(w, null, C((v = t.objectData) == null ? void 0 : v.panels, (e, i) => {
169
- var D;
168
+ (r(!0), s(w, null, j((v = t.objectData) == null ? void 0 : v.panels, (e, C) => {
169
+ var i;
170
170
  return r(), s("div", {
171
- key: i,
172
- class: j(d.getColClass(e.col))
171
+ key: C,
172
+ class: D(p.getColClass(e.col))
173
173
  }, [
174
174
  e != null && e.name ? (r(), s("div", J, [
175
- u("h2", K, M((e == null ? void 0 : e.title) || "Панель"), 1),
176
- u("div", {
175
+ d("h2", K, M((e == null ? void 0 : e.title) || "Панель"), 1),
176
+ d("div", {
177
177
  class: "p-[20px] border-t",
178
- innerHTML: (D = t.objectData) == null ? void 0 : D.data[e == null ? void 0 : e.name]
178
+ innerHTML: (i = t.objectData) == null ? void 0 : i.data[e == null ? void 0 : e.name]
179
179
  }, null, 8, Q)
180
180
  ])) : e.type === "container" ? (r(), s("div", U, [
181
- (r(!0), s(w, null, C(e.items, (o, k) => {
182
- var _, p, h, f, y;
181
+ (r(!0), s(w, null, j(e.items, (o, k) => {
182
+ var f, h, b, _, y;
183
183
  return r(), s("div", {
184
184
  key: k,
185
- class: j([{ "mb-[20px]": e.items.length > 1 }, "border rounded-xl bg-white"])
185
+ class: D([{ "mb-[20px]": e.items.length > 1 }, "bg-white border rounded-xl"])
186
186
  }, [
187
- u("h2", W, M((o == null ? void 0 : o.title) || "Панель"), 1),
188
- o != null && o.component ? (r(), s("div", X, [
187
+ o != null && o.title ? (r(), s("h2", W, M((o == null ? void 0 : o.title) || "Панель"), 1)) : u("", !0),
188
+ o != null && o.component ? (r(), s("div", {
189
+ key: 1,
190
+ class: D(["p-[20px]", { "border-t": o == null ? void 0 : o.title }])
191
+ }, [
189
192
  (r(), H(T(o.component), {
190
- geometry: (p = (_ = t.objectData) == null ? void 0 : _.rows[0]) == null ? void 0 : p.geom,
193
+ geometry: (h = (f = t.objectData) == null ? void 0 : f.rows[0]) == null ? void 0 : h.geom,
191
194
  zoom: 16,
192
- id: (f = (h = n.$route) == null ? void 0 : h.params) == null ? void 0 : f.id
195
+ id: (_ = (b = n.$route) == null ? void 0 : b.params) == null ? void 0 : _.id
193
196
  }, null, 8, ["geometry", "id"]))
194
- ])) : b("", !0),
195
- o != null && o.name ? (r(), s("div", Y, [
196
- u("div", {
197
+ ], 2)) : u("", !0),
198
+ o != null && o.name ? (r(), s("div", X, [
199
+ d("div", {
197
200
  innerHTML: (y = t.objectData) == null ? void 0 : y.data[o == null ? void 0 : o.name]
198
- }, null, 8, Z)
199
- ])) : b("", !0)
201
+ }, null, 8, Y)
202
+ ])) : u("", !0)
200
203
  ], 2);
201
204
  }), 128))
202
- ])) : b("", !0),
205
+ ])) : u("", !0),
203
206
  (e == null ? void 0 : e.type) === "tabs" ? (r(), s(w, { key: 2 }, [
204
- u("nav", m, [
205
- (r(!0), s(w, null, C(e == null ? void 0 : e.items, (o) => (r(), s("button", {
207
+ d("nav", Z, [
208
+ (r(!0), s(w, null, j(e == null ? void 0 : e.items, (o) => (r(), s("button", {
206
209
  key: (o == null ? void 0 : o.name) || (o == null ? void 0 : o.component),
207
210
  onClick: (k) => t.component = (o == null ? void 0 : o.component) || (o == null ? void 0 : o.name),
208
- class: j(["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", {
211
+ 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", {
209
212
  " 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),
210
213
  "": t.component !== (o == null ? void 0 : o.component) && t.component !== (o == null ? void 0 : o.name)
211
214
  }])
212
- }, M(o == null ? void 0 : o.title), 11, oo))), 128))
215
+ }, M(o == null ? void 0 : o.title), 11, m))), 128))
213
216
  ]),
214
- (r(!0), s(w, null, C(e.items, (o, k) => {
215
- var _, p, h, f, y;
217
+ (r(!0), s(w, null, j(e.items, (o, k) => {
218
+ var f, h, b, _, y;
216
219
  return r(), s(w, { key: k }, [
217
- t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name) ? (r(), s("div", eo, [
218
- o != null && o.component ? (r(), s("div", to, [
220
+ t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name) ? (r(), s("div", oo, [
221
+ o != null && o.component ? (r(), s("div", eo, [
219
222
  (r(), H(T(o.component), {
220
- geometry: (p = (_ = t.objectData) == null ? void 0 : _.rows[0]) == null ? void 0 : p.geom,
223
+ geometry: (h = (f = t.objectData) == null ? void 0 : f.rows[0]) == null ? void 0 : h.geom,
221
224
  zoom: 16,
222
- id: (f = (h = n.$route) == null ? void 0 : h.params) == null ? void 0 : f.id
225
+ id: (_ = (b = n.$route) == null ? void 0 : b.params) == null ? void 0 : _.id
223
226
  }, null, 8, ["geometry", "id"]))
224
- ])) : b("", !0),
225
- o != null && o.name ? (r(), s("div", ro, [
226
- u("div", {
227
+ ])) : u("", !0),
228
+ o != null && o.name ? (r(), s("div", to, [
229
+ d("div", {
227
230
  innerHTML: (y = t.objectData) == null ? void 0 : y.data[o == null ? void 0 : o.name]
228
- }, null, 8, no)
229
- ])) : b("", !0)
230
- ])) : b("", !0)
231
+ }, null, 8, ro)
232
+ ])) : u("", !0)
233
+ ])) : u("", !0)
231
234
  ], 64);
232
235
  }), 128))
233
- ], 64)) : b("", !0),
234
- (e == null ? void 0 : e.type) === "vertical_tabs" ? (r(), s("div", so, [
235
- u("nav", co, [
236
- (r(!0), s(w, null, C(e == null ? void 0 : e.items, (o) => (r(), s("button", {
236
+ ], 64)) : u("", !0),
237
+ (e == null ? void 0 : e.type) === "vertical_tabs" ? (r(), s("div", no, [
238
+ d("nav", so, [
239
+ (r(!0), s(w, null, j(e == null ? void 0 : e.items, (o) => (r(), s("button", {
237
240
  key: (o == null ? void 0 : o.name) || (o == null ? void 0 : o.component),
238
241
  onClick: (k) => t.component = (o == null ? void 0 : o.component) || (o == null ? void 0 : o.name),
239
- class: j(["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", {
242
+ 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", {
240
243
  "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),
241
244
  "text-gray-500": t.component !== (o == null ? void 0 : o.component) && t.component !== (o == null ? void 0 : o.name)
242
245
  }])
243
- }, M(o == null ? void 0 : o.title), 11, ao))), 128))
246
+ }, M(o == null ? void 0 : o.title), 11, co))), 128))
244
247
  ]),
245
- u("div", lo, [
246
- (r(!0), s(w, null, C(e.items, (o, k) => {
247
- var _, p, h, f, y;
248
+ d("div", ao, [
249
+ (r(!0), s(w, null, j(e.items, (o, k) => {
250
+ var f, h, b, _, y;
248
251
  return r(), s(w, { key: k }, [
249
- t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name) ? (r(), s("div", uo, [
250
- o != null && o.component ? (r(), s("div", po, [
252
+ t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name) ? (r(), s("div", lo, [
253
+ o != null && o.component ? (r(), s("div", uo, [
251
254
  (r(), H(T(o.component), {
252
- geometry: (p = (_ = t.objectData) == null ? void 0 : _.rows[0]) == null ? void 0 : p.geom,
255
+ geometry: (h = (f = t.objectData) == null ? void 0 : f.rows[0]) == null ? void 0 : h.geom,
253
256
  zoom: 16,
254
- id: (f = (h = n.$route) == null ? void 0 : h.params) == null ? void 0 : f.id
257
+ id: (_ = (b = n.$route) == null ? void 0 : b.params) == null ? void 0 : _.id
255
258
  }, null, 8, ["geometry", "id"]))
256
- ])) : b("", !0),
257
- o != null && o.name ? (r(), s("div", ho, [
258
- u("div", {
259
+ ])) : u("", !0),
260
+ o != null && o.name ? (r(), s("div", po, [
261
+ d("div", {
259
262
  innerHTML: (y = t.objectData) == null ? void 0 : y.data[o == null ? void 0 : o.name]
260
- }, null, 8, bo)
261
- ])) : b("", !0)
262
- ])) : b("", !0)
263
+ }, null, 8, ho)
264
+ ])) : u("", !0)
265
+ ])) : u("", !0)
263
266
  ], 64);
264
267
  }), 128))
265
268
  ])
266
- ])) : b("", !0)
269
+ ])) : u("", !0)
267
270
  ], 2);
268
271
  }), 128))
269
272
  ], 2)
270
273
  ]);
271
274
  }
272
- const fo = /* @__PURE__ */ A(P, [["render", xo], ["__scopeId", "data-v-611b5b18"]]);
275
+ const fo = /* @__PURE__ */ A(P, [["render", bo], ["__scopeId", "data-v-8e82b07c"]]);
273
276
  export {
274
277
  fo as default
275
278
  };
@@ -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-DsHdUJ7C.js";
2
+ import { _ as c } from "./import-file-CFLFN46x.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-DsHdUJ7C.js";
1
+ import { _ as d, u as m, a as n } from "./import-file-CFLFN46x.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() {