@opengis/form 0.0.37 → 0.0.39

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 +1 @@
1
- {"version":3,"file":"vs-compact-form-layout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/layouts/vs-compact-form-layout.vue"],"names":[],"mappings":"AA8DA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,KAAK,WAAW,GAAG,YAAY,CAAC;AA8ChC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,CAAC;;;;;;;;;;;AAoFF,wBAQG"}
1
+ {"version":3,"file":"vs-compact-form-layout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/layouts/vs-compact-form-layout.vue"],"names":[],"mappings":"AAgEA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,KAAK,WAAW,GAAG,YAAY,CAAC;AA8ChC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,CAAC;;;;;;;;;;;AAqFF,wBAQG"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as O, ref as w, onMounted as ge, onUnmounted as Pe, createElementBlock as d, openBlock as i, normalizeClass as V, createCommentVNode as z, renderSlot as _e, createElementVNode as l, toDisplayString as T, normalizeProps as He, guardReactiveProps as Ne, createTextVNode as fe, computed as D, mergeModels as X, useModel as Y, withDirectives as Q, unref as G, vModelText as ie, vModelCheckbox as ht, createVNode as j, createBlock as de, resolveDynamicComponent as Ie, normalizeStyle as xe, withCtx as Be, withModifiers as he, onBeforeUnmount as It, watch as te, createStaticVNode as ce, vModelRadio as gt, Fragment as ee, renderList as ae, mergeProps as Ae, reactive as Et, vModelDynamic as zt, vShow as Ze, inject as Se, resolveComponent as rt, Transition as bt, nextTick as ze, Teleport as Ft, getCurrentInstance as At, toRef as Dt, provide as nt } from "vue";
1
+ import { defineComponent as O, ref as w, onMounted as ge, onUnmounted as Pe, createElementBlock as d, openBlock as i, normalizeClass as V, createCommentVNode as z, renderSlot as _e, createElementVNode as l, toDisplayString as T, normalizeProps as He, guardReactiveProps as Ne, createTextVNode as fe, computed as D, mergeModels as X, useModel as Y, withDirectives as Z, unref as G, vModelText as ie, vModelCheckbox as ht, createVNode as j, createBlock as de, resolveDynamicComponent as Ie, normalizeStyle as xe, withCtx as Be, withModifiers as he, onBeforeUnmount as It, watch as te, createStaticVNode as ce, vModelRadio as gt, Fragment as ee, renderList as ae, mergeProps as Ae, reactive as Et, vModelDynamic as zt, vShow as qe, inject as Se, resolveComponent as rt, Transition as bt, nextTick as ze, Teleport as Ft, getCurrentInstance as At, toRef as Dt, provide as nt } from "vue";
2
2
  import { notify as ne, VsModal as yt, modal as Ot } from "@opengis/core";
3
3
  const Ut = {
4
4
  key: 0,
@@ -185,7 +185,7 @@ const nl = ["placeholder", "disabled"], il = /* @__PURE__ */ O({
185
185
  emits: ["update:modelValue"],
186
186
  setup(o) {
187
187
  const e = o, { inputClass: t } = be(e.style), n = Y(o, "modelValue");
188
- return (a, r) => Q((i(), d("input", {
188
+ return (a, r) => Z((i(), d("input", {
189
189
  type: "password",
190
190
  "onUpdate:modelValue": r[0] || (r[0] = (s) => n.value = s),
191
191
  placeholder: a.placeholder,
@@ -215,7 +215,7 @@ const nl = ["placeholder", "disabled"], il = /* @__PURE__ */ O({
215
215
  emits: ["update:modelValue"],
216
216
  setup(o) {
217
217
  const e = o, { inputClass: t } = be(e.style), n = Y(o, "modelValue");
218
- return (a, r) => Q((i(), d("input", {
218
+ return (a, r) => Z((i(), d("input", {
219
219
  type: "text",
220
220
  "onUpdate:modelValue": r[0] || (r[0] = (s) => n.value = s),
221
221
  placeholder: a.placeholder,
@@ -245,7 +245,7 @@ const nl = ["placeholder", "disabled"], il = /* @__PURE__ */ O({
245
245
  emits: ["update:modelValue"],
246
246
  setup(o) {
247
247
  const e = o, { inputClass: t } = be(e.style), n = Y(o, "modelValue");
248
- return (a, r) => Q((i(), d("input", {
248
+ return (a, r) => Z((i(), d("input", {
249
249
  type: "number",
250
250
  step: "any",
251
251
  "onUpdate:modelValue": r[0] || (r[0] = (s) => n.value = s),
@@ -301,7 +301,7 @@ const ml = /* @__PURE__ */ H(pl, [["render", vl]]), hl = { class: "flex items-ce
301
301
  set: (r) => t("update:modelValue", r)
302
302
  });
303
303
  return (r, s) => (i(), d("div", hl, [
304
- Q(l("input", {
304
+ Z(l("input", {
305
305
  type: "checkbox",
306
306
  value: r.value,
307
307
  "onUpdate:modelValue": s[0] || (s[0] = (u) => a.value = u),
@@ -357,7 +357,7 @@ const ml = /* @__PURE__ */ H(pl, [["render", vl]]), hl = { class: "flex items-ce
357
357
  return (u, c) => (i(), d("label", {
358
358
  class: V(["group relative flex justify-center items-center gap-x-3 text-center bg-white text-gray-800 ring-ring ring-2 cursor-pointer rounded-lg", [s.value, r.value ? "ring-blue-500" : "border border-gray-200 ring-transparent"]])
359
359
  }, [
360
- Q(l("input", {
360
+ Z(l("input", {
361
361
  type: "checkbox",
362
362
  class: "hidden",
363
363
  name: u.id,
@@ -658,7 +658,7 @@ const Ol = /* @__PURE__ */ H(Fl, [["render", Dl]]), Ul = {
658
658
  const e = o, { inputClass: t } = be(e.style), n = Y(o, "modelValue");
659
659
  return (a, r) => (i(), d("div", Gl, [
660
660
  r[1] || (r[1] = ce('<div class="absolute bottom-2/4 translate-y-2/4 left-[10px] cursor-pointer"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="stroke-gray-500 transition-all"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z"></path><path d="M3 7l9 6l9 -6"></path></svg></div>', 1)),
661
- Q(l("input", {
661
+ Z(l("input", {
662
662
  type: "email",
663
663
  "onUpdate:modelValue": r[0] || (r[0] = (s) => n.value = s),
664
664
  placeholder: a.placeholder,
@@ -694,7 +694,7 @@ const Ol = /* @__PURE__ */ H(Fl, [["render", Dl]]), Ul = {
694
694
  return (t, n) => (i(), d("label", {
695
695
  class: V(["flex items-center gap-0", [t.customClass]])
696
696
  }, [
697
- Q(l("input", {
697
+ Z(l("input", {
698
698
  "onUpdate:modelValue": n[0] || (n[0] = (a) => e.value = a),
699
699
  type: "radio",
700
700
  value: t.value,
@@ -742,7 +742,7 @@ const Ol = /* @__PURE__ */ H(Fl, [["render", Dl]]), Ul = {
742
742
  t.customClass
743
743
  ]])
744
744
  }, [
745
- Q(l("input", {
745
+ Z(l("input", {
746
746
  "onUpdate:modelValue": n[0] || (n[0] = (a) => e.value = a),
747
747
  type: "radio",
748
748
  value: t.value,
@@ -913,7 +913,7 @@ const Ol = /* @__PURE__ */ H(Fl, [["render", Dl]]), Ul = {
913
913
  get: () => n(t.modelValue),
914
914
  set: (c) => r("update:modelValue", c)
915
915
  }), u = D(() => t.mode === "datetime" ? "datetime-local" : t.mode);
916
- return (c, v) => Q((i(), d("input", {
916
+ return (c, v) => Z((i(), d("input", {
917
917
  type: u.value,
918
918
  "onUpdate:modelValue": v[0] || (v[0] = (p) => s.value = p),
919
919
  placeholder: c.placeholder,
@@ -1112,7 +1112,7 @@ function Fo(o, e) {
1112
1112
  ce('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 7l16 0"></path><path d="M10 11l0 6"></path><path d="M14 11l0 6"></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"></path>', 6)
1113
1113
  ]));
1114
1114
  }
1115
- const qe = /* @__PURE__ */ H(Eo, [["render", Fo]]), Ao = {}, Do = {
1115
+ const Ge = /* @__PURE__ */ H(Eo, [["render", Fo]]), Ao = {}, Do = {
1116
1116
  xmlns: "http://www.w3.org/2000/svg",
1117
1117
  width: "24",
1118
1118
  height: "24",
@@ -1172,7 +1172,7 @@ const _t = /* @__PURE__ */ H(Ao, [["render", Oo]]), Uo = { class: "h-[120px] w-[
1172
1172
  }),
1173
1173
  class: "w-6 h-6 flex items-center justify-center text-gray-500 bg-gray-200 rounded-lg hover:text-red-500"
1174
1174
  }, [
1175
- j(qe, { class: "w-4 h-4" })
1175
+ j(Ge, { class: "w-4 h-4" })
1176
1176
  ]),
1177
1177
  l("button", {
1178
1178
  type: "button",
@@ -1286,8 +1286,8 @@ const _t = /* @__PURE__ */ H(Ao, [["render", Oo]]), Uo = { class: "h-[120px] w-[
1286
1286
  l("p", Go, T(a.item?.uploaded_name), 1),
1287
1287
  l("p", Jo, [
1288
1288
  l("span", null, T(a.item?.username), 1),
1289
- Q(l("span", Ko, "|", 512), [
1290
- [Ze, a.item?.username]
1289
+ Z(l("span", Ko, "|", 512), [
1290
+ [qe, a.item?.username]
1291
1291
  ]),
1292
1292
  l("span", null, T(t.value), 1),
1293
1293
  r[0] || (r[0] = l("span", { class: "px-[5px]" }, "|", -1)),
@@ -1391,7 +1391,7 @@ const _t = /* @__PURE__ */ H(Ao, [["render", Oo]]), Uo = { class: "h-[120px] w-[
1391
1391
  class: "size-[30px] inline-flex justify-center items-center gap-x-2 rounded-lg border border-transparent text-red-600 hover:bg-red-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-red-100 dark:text-red-500 dark:hover:bg-red-500/20 dark:focus:bg-red-500/20",
1392
1392
  onClick: m[2] || (m[2] = (g) => c())
1393
1393
  }, [
1394
- j(qe, {
1394
+ j(Ge, {
1395
1395
  height: "14",
1396
1396
  width: "14"
1397
1397
  })
@@ -1536,7 +1536,7 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1536
1536
  l("path", { d: "m21 21-4.3-4.3" })
1537
1537
  ])
1538
1538
  ], -1)),
1539
- Q(l("input", {
1539
+ Z(l("input", {
1540
1540
  type: "text",
1541
1541
  "onUpdate:modelValue": f[1] || (f[1] = ($) => m.value = $),
1542
1542
  class: "py-2 px-3 ps-10 pe-16 block w-full bg-gray-200 xl:bg-gray-100 rounded-lg text-sm focus:border-blue-500 h-[40px] focus:border-2 focus:outline-none disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:border-transparent dark:text-neutral-400 dark:placeholder:text-neutral-400 dark:focus:ring-neutral-600",
@@ -1615,10 +1615,10 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1615
1615
  ]),
1616
1616
  j(bt, { name: "slide-fade" }, {
1617
1617
  default: Be(() => [
1618
- Q(l("div", _a, [
1618
+ Z(l("div", _a, [
1619
1619
  _e(n.$slots, "default", {}, void 0, !0)
1620
1620
  ], 512), [
1621
- [Ze, t.value]
1621
+ [qe, t.value]
1622
1622
  ])
1623
1623
  ]),
1624
1624
  _: 3
@@ -1661,10 +1661,10 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1661
1661
  ]),
1662
1662
  j(bt, { name: "slide-fade" }, {
1663
1663
  default: Be(() => [
1664
- Q(l("div", Ma, [
1664
+ Z(l("div", Ma, [
1665
1665
  _e(n.$slots, "default", {}, void 0, !0)
1666
1666
  ], 512), [
1667
- [Ze, t.value]
1667
+ [qe, t.value]
1668
1668
  ])
1669
1669
  ]),
1670
1670
  _: 3
@@ -1869,11 +1869,11 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1869
1869
  r.value || (p.value = !0, await A(), await ze(() => {
1870
1870
  me(), F.value?.focus(), re.value.length ? I.value = 0 : I.value = -1;
1871
1871
  }));
1872
- }, Z = () => {
1872
+ }, W = () => {
1873
1873
  p.value = !1, I.value = -1;
1874
1874
  }, Ce = async (y) => {
1875
1875
  if (r.value) return;
1876
- !p.value ? await N() : Z();
1876
+ !p.value ? await N() : W();
1877
1877
  }, ke = async () => {
1878
1878
  p.value ? F.value?.focus() : await N();
1879
1879
  }, b = () => {
@@ -1883,10 +1883,10 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1883
1883
  }, U = (y) => {
1884
1884
  a.value ? (le(y.id) || (f.value = [...f.value, y.id], s.value = [...f.value], n("change", s.value)), M.value = "", ze(() => {
1885
1885
  F.value?.focus(), I.value = Math.min(I.value, re.value.length - 1);
1886
- })) : (g.value = y, s.value = y.id, n("change", s.value), M.value = "", Z());
1886
+ })) : (g.value = y, s.value = y.id, n("change", s.value), M.value = "", W());
1887
1887
  }, q = (y) => {
1888
1888
  le(y.id) || U(y);
1889
- }, W = (y, h) => {
1889
+ }, Q = (y, h) => {
1890
1890
  if (!y || !h) return;
1891
1891
  const C = y.offsetTop, P = C + y.offsetHeight, oe = h.scrollTop, ue = oe + h.clientHeight;
1892
1892
  let je = h.scrollTop;
@@ -1907,26 +1907,26 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1907
1907
  }, me = () => {
1908
1908
  if (!c.value) return;
1909
1909
  const y = c.value.getBoundingClientRect(), C = ye(c.value).getBoundingClientRect(), P = 300, oe = 20, ue = 8, je = y.top - C.top, Ee = y.bottom - C.top, at = C.height - Ee - ue - oe, st = je - ue - oe;
1910
- let Je = !1;
1911
- if (at >= st ? Je = !0 : Je = !1, Je) {
1910
+ let Ke = !1;
1911
+ if (at >= st ? Ke = !0 : Ke = !1, Ke) {
1912
1912
  E.value = "bottom";
1913
- const Ke = Math.min(P, Math.max(at + oe, 50));
1913
+ const Ze = Math.min(P, Math.max(at + oe, 50));
1914
1914
  x.value = {
1915
1915
  top: `${y.height + ue}px`,
1916
1916
  left: "0px",
1917
1917
  right: "0px",
1918
1918
  bottom: "auto",
1919
- maxHeight: `${Ke}px`
1919
+ maxHeight: `${Ze}px`
1920
1920
  };
1921
1921
  } else {
1922
1922
  E.value = "top";
1923
- const Ke = Math.min(P, Math.max(st + oe, 50));
1923
+ const Ze = Math.min(P, Math.max(st + oe, 50));
1924
1924
  x.value = {
1925
1925
  top: "auto",
1926
1926
  left: "0px",
1927
1927
  right: "0px",
1928
1928
  bottom: `${y.height + ue}px`,
1929
- maxHeight: `${Ke}px`
1929
+ maxHeight: `${Ze}px`
1930
1930
  };
1931
1931
  }
1932
1932
  }, Ve = async (y) => {
@@ -1935,22 +1935,22 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1935
1935
  if (!p.value) return;
1936
1936
  const { key: h } = y;
1937
1937
  if (h === "ArrowDown")
1938
- y.preventDefault(), I.value + 1 < re.value.length && (I.value += 1, W(R.value[I.value], v.value));
1938
+ y.preventDefault(), I.value + 1 < re.value.length && (I.value += 1, Q(R.value[I.value], v.value));
1939
1939
  else if (h === "ArrowUp")
1940
- y.preventDefault(), I.value > 0 && (I.value -= 1, W(R.value[I.value], v.value));
1940
+ y.preventDefault(), I.value > 0 && (I.value -= 1, Q(R.value[I.value], v.value));
1941
1941
  else if (h === "Enter") {
1942
1942
  y.preventDefault();
1943
1943
  const C = re.value[I.value];
1944
1944
  C && U(C), F.value?.blur();
1945
- } else h === "Escape" ? (y.preventDefault(), Z()) : h === "Backspace" ? a.value && M.value === "" && f.value.length && (f.value = f.value.slice(0, -1), s.value = [...f.value], n("change", s.value)) : h === "Home" ? (I.value = 0, W(R.value[0], v.value)) : h === "End" ? (I.value = re.value.length - 1, W(R.value[I.value], v.value)) : h === "Tab" && Z();
1945
+ } else h === "Escape" ? (y.preventDefault(), W()) : h === "Backspace" ? a.value && M.value === "" && f.value.length && (f.value = f.value.slice(0, -1), s.value = [...f.value], n("change", s.value)) : h === "Home" ? (I.value = 0, Q(R.value[0], v.value)) : h === "End" ? (I.value = re.value.length - 1, Q(R.value[I.value], v.value)) : h === "Tab" && W();
1946
1946
  }, Le = () => {
1947
1947
  r.value || (m.value = !0);
1948
1948
  }, Mt = () => {
1949
1949
  m.value = !1, M.value = "";
1950
1950
  }, We = (y) => {
1951
- y.key === "Escape" && p.value && Z();
1951
+ y.key === "Escape" && p.value && W();
1952
1952
  }, Qe = (y) => {
1953
- u.value && (u.value.contains(y.target) || Z());
1953
+ u.value && (u.value.contains(y.target) || W());
1954
1954
  }, Xe = (y) => {
1955
1955
  p.value && v.value && !v.value.contains(y.target) && me();
1956
1956
  }, Ye = () => {
@@ -1979,14 +1979,14 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1979
1979
  }), Pe(() => {
1980
1980
  removeEventListener("keydown", We), removeEventListener("scroll", Xe, !0), removeEventListener("resize", Ye), document.removeEventListener("click", Qe, !0), c.value && ye(c.value).removeEventListener("scroll", et, !0);
1981
1981
  });
1982
- const Ue = w(!1), Ge = w({}), lt = w([]), ot = w(null);
1982
+ const Ue = w(!1), Je = w({}), lt = w([]), ot = w(null);
1983
1983
  async function Lt() {
1984
1984
  if (!t.add?.token || ot?.value.validate())
1985
1985
  return;
1986
1986
  const h = t.add.api ?? `/api/table/${t.add.token}`, { id: C } = await fetch(h, {
1987
1987
  method: "POST",
1988
1988
  headers: { "Content-Type": "application/json" },
1989
- body: JSON.stringify(Ge.value)
1989
+ body: JSON.stringify(Je.value)
1990
1990
  }).then((P) => P.json());
1991
1991
  if (!t.options?.length && t.data) {
1992
1992
  const { data: P } = await fetch(`${t.api ?? `/api/suggest/${t.data}`}?val=${C}`).then((oe) => oe.json());
@@ -2027,8 +2027,8 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
2027
2027
  default: Be(() => [
2028
2028
  j(Oe, {
2029
2029
  schema: lt.value,
2030
- modelValue: Ge.value,
2031
- "onUpdate:modelValue": h[0] || (h[0] = (C) => Ge.value = C),
2030
+ modelValue: Je.value,
2031
+ "onUpdate:modelValue": h[0] || (h[0] = (C) => Je.value = C),
2032
2032
  ref_key: "addForm",
2033
2033
  ref: ot
2034
2034
  }, null, 8, ["schema", "modelValue"])
@@ -2122,7 +2122,7 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
2122
2122
  ], 8, Wa)) : z("", !0),
2123
2123
  $.value ? (i(), d("div", Qa, T(K.value), 1)) : z("", !0),
2124
2124
  l("div", Xa, [
2125
- !r.value && y.search ? Q((i(), d("input", {
2125
+ !r.value && y.search ? Z((i(), d("input", {
2126
2126
  key: 0,
2127
2127
  ref_key: "inputRef",
2128
2128
  ref: F,
@@ -2261,7 +2261,7 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
2261
2261
  emits: ["update:modelValue"],
2262
2262
  setup(o) {
2263
2263
  const e = o, { inputClass: t } = be(e.style), n = Y(o, "modelValue");
2264
- return (a, r) => Q((i(), d("textarea", {
2264
+ return (a, r) => Z((i(), d("textarea", {
2265
2265
  "onUpdate:modelValue": r[0] || (r[0] = (s) => n.value = s),
2266
2266
  placeholder: a.placeholder,
2267
2267
  disabled: a.disabled,
@@ -2455,9 +2455,9 @@ const zs = /* @__PURE__ */ H(js, [["render", Es]]), Fs = { class: "vs-datatable
2455
2455
  const B = A.target.files?.[0];
2456
2456
  if (!B) return;
2457
2457
  const N = new FileReader();
2458
- N.onload = (Z) => {
2458
+ N.onload = (W) => {
2459
2459
  try {
2460
- const Ce = Z.target?.result;
2460
+ const Ce = W.target?.result;
2461
2461
  if (typeof Ce == "string") {
2462
2462
  const ke = JSON.parse(Ce);
2463
2463
  Array.isArray(ke) && t.value.push(...ke);
@@ -2510,7 +2510,7 @@ const zs = /* @__PURE__ */ H(js, [["render", Es]]), Fs = { class: "vs-datatable
2510
2510
  height: "14",
2511
2511
  class: "absolute left-3 top-1/2 transform -translate-y-1/2 text-stone-500"
2512
2512
  }),
2513
- Q(l("input", {
2513
+ Z(l("input", {
2514
2514
  type: "text",
2515
2515
  "onUpdate:modelValue": S[0] || (S[0] = (B) => a.value = B),
2516
2516
  placeholder: "Пошук",
@@ -2627,9 +2627,9 @@ const zs = /* @__PURE__ */ H(js, [["render", Es]]), Fs = { class: "vs-datatable
2627
2627
  "border-t-2 border-b-2 border-blue-500 bg-blue-50 dark:bg-blue-900/20": u.value === N
2628
2628
  }]),
2629
2629
  draggable: "true",
2630
- onDragstart: (Z) => m(N),
2631
- onDragover: he((Z) => g(N), ["prevent"]),
2632
- onDrop: (Z) => _(N)
2630
+ onDragstart: (W) => m(N),
2631
+ onDragover: he((W) => g(N), ["prevent"]),
2632
+ onDrop: (W) => _(N)
2633
2633
  }, [
2634
2634
  l("td", er, [
2635
2635
  l("div", tr, [
@@ -2640,14 +2640,14 @@ const zs = /* @__PURE__ */ H(js, [["render", Es]]), Fs = { class: "vs-datatable
2640
2640
  })
2641
2641
  ])
2642
2642
  ]),
2643
- (i(!0), d(ee, null, ae(A.colModel, (Z) => (i(), d("td", {
2644
- key: Z.key,
2643
+ (i(!0), d(ee, null, ae(A.colModel, (W) => (i(), d("td", {
2644
+ key: W.key,
2645
2645
  class: "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]"
2646
2646
  }, [
2647
- Z.type === "file" ? (i(), d("div", lr, [
2648
- M(re(B, Z)) ? (i(), d("div", or, [
2647
+ W.type === "file" ? (i(), d("div", lr, [
2648
+ M(re(B, W)) ? (i(), d("div", or, [
2649
2649
  l("img", {
2650
- src: re(B, Z),
2650
+ src: re(B, W),
2651
2651
  alt: "alt",
2652
2652
  width: "45",
2653
2653
  class: "rounded-md max-w-[45px] h-[45px] object-cover"
@@ -2655,16 +2655,16 @@ const zs = /* @__PURE__ */ H(js, [["render", Es]]), Fs = { class: "vs-datatable
2655
2655
  ])) : (i(), d("div", sr, [
2656
2656
  j(kt, { class: "w-[25px] min-w-[25px] h-[25px]" })
2657
2657
  ]))
2658
- ])) : Z.type === "tiptap-editor" ? (i(), d("div", {
2658
+ ])) : W.type === "tiptap-editor" ? (i(), d("div", {
2659
2659
  key: 1,
2660
2660
  class: "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent bg-slate-100 dark:bg-slate-700 text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 transition-colors",
2661
- innerHTML: re(B, Z)
2662
- }, null, 8, rr)) : (i(), d("div", nr, T(re(B, Z)), 1))
2661
+ innerHTML: re(B, W)
2662
+ }, null, 8, rr)) : (i(), d("div", nr, T(re(B, W)), 1))
2663
2663
  ]))), 128)),
2664
2664
  l("td", ir, [
2665
2665
  l("div", ur, [
2666
2666
  l("button", {
2667
- onClick: (Z) => ve(B, N),
2667
+ onClick: (W) => ve(B, N),
2668
2668
  class: "text-slate-700 inline-flex items-center justify-center whitespace-nowrap font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 border rounded-md text-xs h-7 w-7 p-0 border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-700 hover:bg-blue-50 dark:hover:bg-slate-600 hover:border-blue-300 dark:hover:border-slate-500 hover:text-blue-600 dark:hover:text-slate-200 transition-all duration-200 shadow-sm"
2669
2669
  }, [
2670
2670
  j(zs, {
@@ -2674,10 +2674,10 @@ const zs = /* @__PURE__ */ H(js, [["render", Es]]), Fs = { class: "vs-datatable
2674
2674
  })
2675
2675
  ], 8, dr),
2676
2676
  l("button", {
2677
- onClick: (Z) => $e(N),
2677
+ onClick: (W) => $e(N),
2678
2678
  class: "text-slate-700 inline-flex items-center justify-center whitespace-nowrap font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 border rounded-md text-xs h-7 w-7 p-0 border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-700 hover:bg-red-50 dark:hover:bg-slate-600 hover:border-red-300 dark:hover:border-slate-500 hover:text-red-600 dark:hover:text-slate-200 transition-all duration-200 shadow-sm"
2679
2679
  }, [
2680
- j(qe, {
2680
+ j(Ge, {
2681
2681
  width: "24",
2682
2682
  height: "24",
2683
2683
  class: "w-3 h-3"
@@ -3119,7 +3119,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3119
3119
  })
3120
3120
  ])
3121
3121
  ], -1)),
3122
- Q(l("input", {
3122
+ Z(l("input", {
3123
3123
  type: "text",
3124
3124
  "onUpdate:modelValue": x[1] || (x[1] = (f) => r.value = f),
3125
3125
  onInput: R,
@@ -3233,38 +3233,38 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3233
3233
  function x() {
3234
3234
  return new Promise((b, k) => {
3235
3235
  window.L && window.L.Draw && b(0);
3236
- const U = (W) => {
3237
- if (Array.from(document.styleSheets).some((Ve) => Ve?.href?.includes(W))) return;
3236
+ const U = (Q) => {
3237
+ if (Array.from(document.styleSheets).some((Ve) => Ve?.href?.includes(Q))) return;
3238
3238
  const me = document.createElement("link");
3239
- me.rel = "stylesheet", me.href = W, document.head.appendChild(me);
3240
- }, q = (W) => new Promise((ye, me) => {
3241
- const Ve = Array.from(document.scripts).find((Le) => Le.src === W);
3239
+ me.rel = "stylesheet", me.href = Q, document.head.appendChild(me);
3240
+ }, q = (Q) => new Promise((ye, me) => {
3241
+ const Ve = Array.from(document.scripts).find((Le) => Le.src === Q);
3242
3242
  if (Ve) {
3243
3243
  Ve.addEventListener("load", () => ye()), Ve.addEventListener("error", (Le) => me(Le));
3244
3244
  return;
3245
3245
  }
3246
3246
  const Me = document.createElement("script");
3247
- Me.src = W, Me.async = !0, Me.onload = () => ye(), Me.onerror = (Le) => me(Le), document.body.appendChild(Me);
3247
+ Me.src = Q, Me.async = !0, Me.onload = () => ye(), Me.onerror = (Le) => me(Le), document.body.appendChild(Me);
3248
3248
  });
3249
3249
  U("https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"), U("https://unpkg.com/leaflet-draw@1.0.4/dist/leaflet.draw.css"), q("https://unpkg.com/leaflet@1.9.4/dist/leaflet.js").then(() => q("https://unpkg.com/leaflet-draw@1.0.4/dist/leaflet.draw.js")).then(() => b(0)).catch(k);
3250
3250
  });
3251
3251
  }
3252
3252
  function f() {
3253
- const b = u.toGeoJSON(), k = [], U = (W) => {
3254
- if (W)
3255
- switch (W.type) {
3253
+ const b = u.toGeoJSON(), k = [], U = (Q) => {
3254
+ if (Q)
3255
+ switch (Q.type) {
3256
3256
  case "Polygon":
3257
- k.push(W.coordinates);
3257
+ k.push(Q.coordinates);
3258
3258
  break;
3259
3259
  case "MultiPolygon":
3260
- k.push(...W.coordinates);
3260
+ k.push(...Q.coordinates);
3261
3261
  break;
3262
3262
  case "GeometryCollection":
3263
- (W.geometries || []).forEach(U);
3263
+ (Q.geometries || []).forEach(U);
3264
3264
  break;
3265
3265
  }
3266
3266
  };
3267
- (b?.features || []).forEach((W) => U(W.geometry));
3267
+ (b?.features || []).forEach((Q) => U(Q.geometry));
3268
3268
  const q = k.length ? { type: "MultiPolygon", coordinates: k } : null;
3269
3269
  a("update:modelValue", q ? E(q) : null), g.value = u.getLayers().length;
3270
3270
  }
@@ -3304,11 +3304,11 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3304
3304
  I.value = null, g.value = 0;
3305
3305
  return;
3306
3306
  }
3307
- const k = b[b.length - 1], U = se(k), q = re(k), W = le(k);
3307
+ const k = b[b.length - 1], U = se(k), q = re(k), Q = le(k);
3308
3308
  I.value = {
3309
3309
  type: U,
3310
3310
  center: q,
3311
- areaKm2: W,
3311
+ areaKm2: Q,
3312
3312
  layer: k
3313
3313
  }, g.value = b.length;
3314
3314
  }
@@ -3375,8 +3375,8 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3375
3375
  if (typeof U.result == "string")
3376
3376
  try {
3377
3377
  const q = JSON.parse(U.result);
3378
- u.clearLayers(), q && L.geoJSON({ type: "Feature", geometry: q }).eachLayer((W) => {
3379
- u.addLayer(W);
3378
+ u.clearLayers(), q && L.geoJSON({ type: "Feature", geometry: q }).eachLayer((Q) => {
3379
+ u.addLayer(Q);
3380
3380
  }), f(), ve(), J();
3381
3381
  } finally {
3382
3382
  b.target.value = "";
@@ -3386,7 +3386,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3386
3386
  function N(b) {
3387
3387
  s && (M && s.removeLayer(M), M = L.tileLayer(R[b].url, { maxZoom: 19, minZoom: 6 }).addTo(s), F.value = b);
3388
3388
  }
3389
- function Z(b) {
3389
+ function W(b) {
3390
3390
  const k = L.latLng(b[0], b[1]);
3391
3391
  s.setView(k, 13);
3392
3392
  }
@@ -3437,7 +3437,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3437
3437
  class: "w-full h-full"
3438
3438
  }, null, 512),
3439
3439
  l("div", un, [
3440
- j(ln, { onGoToCoordinates: Z }),
3440
+ j(ln, { onGoToCoordinates: W }),
3441
3441
  l("div", dn, [
3442
3442
  l("div", cn, [
3443
3443
  l("button", {
@@ -3550,7 +3550,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3550
3550
  title: "Видалити",
3551
3551
  onClick: k[6] || (k[6] = (U) => $e())
3552
3552
  }, [
3553
- j(qe, { class: "w-3 h-3" })
3553
+ j(Ge, { class: "w-3 h-3" })
3554
3554
  ])
3555
3555
  ])
3556
3556
  ])) : z("", !0)
@@ -3654,7 +3654,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3654
3654
  ]))), 128)),
3655
3655
  m.value ? (i(), d("div", En, T(p.value), 1)) : z("", !0),
3656
3656
  l("div", zn, [
3657
- _.value ? z("", !0) : Q((i(), d("input", {
3657
+ _.value ? z("", !0) : Z((i(), d("input", {
3658
3658
  key: 0,
3659
3659
  ref_key: "inputRef",
3660
3660
  ref: s,
@@ -3759,7 +3759,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3759
3759
  n.value = u.toString();
3760
3760
  };
3761
3761
  return (s, u) => (i(), d("div", Un, [
3762
- Q(l("input", {
3762
+ Z(l("input", {
3763
3763
  ref: "vsText",
3764
3764
  disabled: s.disabled,
3765
3765
  placeholder: s.placeholder,
@@ -3902,7 +3902,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3902
3902
  set: (s) => a("update:modelValue", s)
3903
3903
  });
3904
3904
  return (s, u) => (i(), d("div", ei, [
3905
- Q(l("input", {
3905
+ Z(l("input", {
3906
3906
  type: "color",
3907
3907
  "onUpdate:modelValue": u[0] || (u[0] = (c) => r.value = c),
3908
3908
  disabled: s.disabled,
@@ -3912,7 +3912,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3912
3912
  }, null, 10, ti), [
3913
3913
  [ie, r.value]
3914
3914
  ]),
3915
- Q(l("input", {
3915
+ Z(l("input", {
3916
3916
  class: "text-sm text-gray-600 border border-solid border-stone-200 rounded-md p-2",
3917
3917
  "onUpdate:modelValue": u[1] || (u[1] = (c) => r.value = c)
3918
3918
  }, null, 512), [
@@ -3941,7 +3941,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3941
3941
  set: (s) => a("update:modelValue", Number(s))
3942
3942
  });
3943
3943
  return (s, u) => (i(), d("div", oi, [
3944
- Q(l("input", {
3944
+ Z(l("input", {
3945
3945
  type: "range",
3946
3946
  "onUpdate:modelValue": u[0] || (u[0] = (c) => r.value = c),
3947
3947
  min: s.min,
@@ -3953,7 +3953,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3953
3953
  }, null, 10, ai), [
3954
3954
  [ie, r.value]
3955
3955
  ]),
3956
- Q(l("input", {
3956
+ Z(l("input", {
3957
3957
  class: "text-sm text-gray-600 border border-solid border-stone-200 rounded-md p-2 max-w-[100px]",
3958
3958
  type: "number",
3959
3959
  "onUpdate:modelValue": u[1] || (u[1] = (c) => r.value = c)
@@ -4046,7 +4046,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
4046
4046
  const u = e.item ?? {}, c = r.value;
4047
4047
  return c.size ? Object.fromEntries(Object.entries(u).filter(([v]) => c.has(v))) : {};
4048
4048
  });
4049
- return (u, c) => (i(), de(Ie(n.value), {
4049
+ return (u, c) => Z((i(), de(Ie(n.value), {
4050
4050
  ua: e.item.ua,
4051
4051
  error: e.error || "",
4052
4052
  item: u.item,
@@ -4064,7 +4064,9 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
4064
4064
  ], 2)
4065
4065
  ]),
4066
4066
  _: 1
4067
- }, 8, ["ua", "error", "item", "label"]));
4067
+ }, 8, ["ua", "error", "item", "label"])), [
4068
+ [qe, !u.item.hidden]
4069
+ ]);
4068
4070
  }
4069
4071
  }), Vt = {
4070
4072
  required: "Це поле є обов’язковим",