@opengis/gis 0.2.119 → 0.2.121

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 { openBlock as t, createElementBlock as n, createElementVNode as l } from "vue";
2
- import { _ as o } from "./index-CbdZv1jy.js";
2
+ import { _ as o } from "./index-CActL7Mw.js";
3
3
  const s = {}, a = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
5
5
  width: "24",
@@ -3,9 +3,8 @@ import { RefreshCw as ie, Plus as ue } from "lucide-vue-next";
3
3
  import { useRoute as ce, useRouter as de } from "vue-router";
4
4
  import { VsPagination as fe, notify as Q } from "@opengis/core";
5
5
  import { FilterField as me, Filter as he } from "@opengis/filter";
6
- import { F as ge } from "./FileEdit-GikPLv1T.js";
7
- import { _ as ve } from "./TableFormHeader.vue_vue_type_script_setup_true_lang-Mci_tseM.js";
8
- import { _ as pe } from "./index-CbdZv1jy.js";
6
+ import { F as ge, _ as ve } from "./index-CActL7Mw.js";
7
+ import { _ as pe } from "./TableFormHeader.vue_vue_type_script_setup_true_lang-Mci_tseM.js";
9
8
  const xe = { class: "flex-1 flex flex-col bg-gray-50 h-screen overflow-hidden p-0 m-0" }, be = {
10
9
  key: 0,
11
10
  href: "/api/gis-create-xml",
@@ -150,7 +149,7 @@ const xe = { class: "flex-1 flex flex-col bg-gray-50 h-screen overflow-hidden p-
150
149
  l.value || delete e.search, _.replace({ query: e });
151
150
  }
152
151
  return (e, t) => (P(), k("div", xe, [
153
- f(ve, { variant: "table" }, le({
152
+ f(pe, { variant: "table" }, le({
154
153
  title: w(() => [
155
154
  g(x(S.value), 1)
156
155
  ]),
@@ -238,7 +237,9 @@ const xe = { class: "flex-1 flex flex-col bg-gray-50 h-screen overflow-hidden p-
238
237
  z.value.includes("add") ? (P(), k("div", Pe, [
239
238
  r("button", {
240
239
  onClick: (a) => c(_).push(X(n.id)),
241
- class: "inline-flex items-center justify-center bg-white border rounded-md size-7 gap-x-2 hover:bg-gray-100"
240
+ class: "inline-flex items-center justify-center bg-white border rounded-md size-7 gap-x-2 hover:bg-gray-100",
241
+ title: "Редагувати",
242
+ "aria-label": "Редагувати"
242
243
  }, [
243
244
  f(ge)
244
245
  ], 8, ke)
@@ -275,7 +276,7 @@ const xe = { class: "flex-1 flex flex-col bg-gray-50 h-screen overflow-hidden p-
275
276
  ])
276
277
  ]));
277
278
  }
278
- }), Ie = /* @__PURE__ */ pe(je, [["__scopeId", "data-v-1061effc"]]);
279
+ }), De = /* @__PURE__ */ ve(je, [["__scopeId", "data-v-821aeb35"]]);
279
280
  export {
280
- Ie as default
281
+ De as default
281
282
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, computed as f, watch as d, createCommentVNode as x } from "vue";
2
- import { f as b, u as _ } from "./index-CbdZv1jy.js";
2
+ import { f as b, u as _ } from "./index-CActL7Mw.js";
3
3
  const I = /* @__PURE__ */ y({
4
4
  __name: "ExtentOutlineLayer",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { openBlock as m, createElementBlock as v, createElementVNode as r, defineComponent as J, normalizeClass as he, createVNode as j, createBlock as le, unref as E, defineAsyncComponent as W, ref as b, watch as ve, computed as y, createTextVNode as _e, Fragment as ae, renderList as ue, toDisplayString as z, withCtx as X, nextTick as we, onMounted as ke, onUnmounted as xe, withModifiers as ze, Teleport as Ve, normalizeStyle as Ce, createCommentVNode as te } from "vue";
2
- import { _ as Ee } from "./index-CbdZv1jy.js";
2
+ import { _ as Ee } from "./index-CActL7Mw.js";
3
3
  import { Settings as Me, BrushCleaning as ce, SquareCode as Le, Pencil as Te } from "lucide-vue-next";
4
4
  import { notify as D } from "@opengis/core";
5
5
  const Se = {}, $e = {
@@ -5,7 +5,7 @@ import { confirm as H, notify as F } from "@opengis/core";
5
5
  import { _ as de } from "./TableFormHeader.vue_vue_type_script_setup_true_lang-Mci_tseM.js";
6
6
  import { _ as ue } from "./MapSettingsTabs.vue_vue_type_script_setup_true_lang-CKCK3NqY.js";
7
7
  import { VsInputArraySelect as ce } from "@opengis/form";
8
- import { q as me, _ as pe } from "./index-CbdZv1jy.js";
8
+ import { q as me, _ as pe } from "./index-CActL7Mw.js";
9
9
  import { _ as ye } from "./MonacoEditor.vue_vue_type_script_setup_true_lang-D3ZPeXMw.js";
10
10
  const fe = { class: "rounded-lg border border-gray-200 bg-[rgba(252,252,252,0.8)] p-6" }, ge = /* @__PURE__ */ I({
11
11
  __name: "GeneralSettings",
@@ -2,9 +2,9 @@ import { defineComponent as Z, defineAsyncComponent as ee, computed as c, ref as
2
2
  import { useRoute as ne, useRouter as oe } from "vue-router";
3
3
  import { VsPagination as le, notify as B } from "@opengis/core";
4
4
  import { FilterField as re, Filter as ie } from "@opengis/filter";
5
- import { RefreshCw as ue, Plus as ce, FileEdit as de } from "lucide-vue-next";
5
+ import { RefreshCw as ue, Plus as ce } from "lucide-vue-next";
6
+ import { F as de, _ as ve } from "./index-CActL7Mw.js";
6
7
  import { _ as fe } from "./TableFormHeader.vue_vue_type_script_setup_true_lang-Mci_tseM.js";
7
- import { _ as ve } from "./index-CbdZv1jy.js";
8
8
  const ge = { class: "flex-1 flex flex-col bg-gray-50 h-screen overflow-hidden p-0 m-0" }, me = {
9
9
  href: "/api/gis-create-xml",
10
10
  target: "_blank",
@@ -21,13 +21,13 @@ const ge = { class: "flex-1 flex flex-col bg-gray-50 h-screen overflow-hidden p-
21
21
  columnsConfig: { default: () => [] }
22
22
  },
23
23
  setup(U) {
24
- const A = ee(() => import("@opengis/table")), f = ne(), b = oe(), y = U, w = c(() => {
24
+ const A = ee(() => import("@opengis/table")), v = ne(), b = oe(), y = U, w = c(() => {
25
25
  var e;
26
- return String(((e = f.meta) == null ? void 0 : e.title) || "Растри");
26
+ return String(((e = v.meta) == null ? void 0 : e.title) || "Растри");
27
27
  }), T = c(() => {
28
28
  var e;
29
- return String(((e = f.meta) == null ? void 0 : e.description) || "");
30
- }), M = c(() => `Пошук ${String(w.value).trim()}...`), R = c(() => y.entityKey || "rasters"), _ = c(() => y.entityBasePath || "/gis.rasters"), C = r([]), P = r(!0), v = r([]), E = r([]), g = r({}), Q = r([]), l = r(String(f.query.search ?? "")), o = r(Math.max(1, Number(f.query.page) || 1)), S = r(15), u = r(0), D = c(() => u.value > 0), J = c(() => u.value ? (o.value - 1) * S.value + 1 : 0), K = c(() => u.value ? Math.min(o.value * S.value, u.value) : 0);
29
+ return String(((e = v.meta) == null ? void 0 : e.description) || "");
30
+ }), M = c(() => `Пошук ${String(w.value).trim()}...`), R = c(() => y.entityKey || "rasters"), _ = c(() => y.entityBasePath || "/gis.rasters"), C = r([]), P = r(!0), f = r([]), E = r([]), g = r({}), Q = r([]), l = r(String(v.query.search ?? "")), o = r(Math.max(1, Number(v.query.page) || 1)), S = r(15), u = r(0), D = c(() => u.value > 0), J = c(() => u.value ? (o.value - 1) * S.value + 1 : 0), K = c(() => u.value ? Math.min(o.value * S.value, u.value) : 0);
31
31
  function I(e) {
32
32
  const t = new URLSearchParams();
33
33
  return Object.entries(e).forEach(([s, a]) => {
@@ -59,7 +59,7 @@ const ge = { class: "flex-1 flex flex-col bg-gray-50 h-screen overflow-hidden p-
59
59
  if (!s.ok)
60
60
  throw new Error(`Rows fetch failed: ${s.status}`);
61
61
  const a = await s.json();
62
- C.value = a.rows || [], u.value = Number(a.filtered ?? a.total ?? a.count ?? C.value.length) || 0, v.value = y.columnsConfig.length ? y.columnsConfig : a.columns || [], E.value = a.filters || [], Q.value = a.actions || [], v.value.length && !v.value[0].link ? v.value[0].link = `${_.value}/{id}` : v.value.length && (v.value[0].link = `${_.value}/{id}`);
62
+ C.value = a.rows || [], u.value = Number(a.filtered ?? a.total ?? a.count ?? C.value.length) || 0, f.value = y.columnsConfig.length ? y.columnsConfig : a.columns || [], E.value = a.filters || [], Q.value = a.actions || [], f.value.length && !f.value[0].link ? f.value[0].link = `${_.value}/{id}` : f.value.length && (f.value[0].link = `${_.value}/{id}`);
63
63
  } catch {
64
64
  C.value = [], u.value = 0;
65
65
  } finally {
@@ -102,7 +102,7 @@ const ge = { class: "flex-1 flex flex-col bg-gray-50 h-screen overflow-hidden p-
102
102
  }
103
103
  function k() {
104
104
  const e = {
105
- ...f.query,
105
+ ...v.query,
106
106
  page: String(o.value),
107
107
  ...l.value ? { search: l.value } : {}
108
108
  };
@@ -111,12 +111,12 @@ const ge = { class: "flex-1 flex flex-col bg-gray-50 h-screen overflow-hidden p-
111
111
  return te(() => {
112
112
  p(), document.title = w.value;
113
113
  }), j(
114
- () => f.name,
114
+ () => v.name,
115
115
  () => {
116
116
  o.value = 1, l.value = "", p(), document.title = w.value;
117
117
  }
118
118
  ), j(
119
- () => f.query,
119
+ () => v.query,
120
120
  (e) => {
121
121
  const t = Math.max(1, Number(e.page) || 1), s = String(e.search ?? ""), a = t !== o.value, m = s !== l.value;
122
122
  !a && !m || (o.value = t, l.value = s, g.value = {
@@ -184,7 +184,7 @@ const ge = { class: "flex-1 flex flex-col bg-gray-50 h-screen overflow-hidden p-
184
184
  n("div", ye, [
185
185
  d(i(A), {
186
186
  rows: C.value,
187
- columns: v.value,
187
+ columns: f.value,
188
188
  loading: P.value,
189
189
  router: i(b),
190
190
  selectable: !1,
@@ -203,9 +203,11 @@ const ge = { class: "flex-1 flex flex-col bg-gray-50 h-screen overflow-hidden p-
203
203
  n("div", we, [
204
204
  n("button", {
205
205
  onClick: (a) => i(b).push(O(s.id)),
206
- class: "inline-flex items-center justify-center bg-white border rounded-md size-7 gap-x-2 hover:bg-gray-100"
206
+ class: "inline-flex items-center justify-center bg-white border rounded-md size-7 gap-x-2 hover:bg-gray-100",
207
+ title: "Редагувати",
208
+ "aria-label": "Редагувати"
207
209
  }, [
208
- d(i(de))
210
+ d(de)
209
211
  ], 8, _e)
210
212
  ])
211
213
  ]),
@@ -239,7 +241,7 @@ const ge = { class: "flex-1 flex flex-col bg-gray-50 h-screen overflow-hidden p-
239
241
  ])
240
242
  ]));
241
243
  }
242
- }), Be = /* @__PURE__ */ ve(Re, [["__scopeId", "data-v-0fdf8306"]]);
244
+ }), Be = /* @__PURE__ */ ve(Re, [["__scopeId", "data-v-63309b89"]]);
243
245
  export {
244
246
  Be as default
245
247
  };