@opengis/form 0.0.42 → 0.0.43

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.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/vs-compact-form.vue"],"names":[],"mappings":"AAwGA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM3D,UAAU,SAAS;IACjB,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,KAAK,WAAW,GAAG,SAAS,CAAC;AAkE7B,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B,CAAC;;;;;;;;;;;;;;;;;WA5EQ,MAAM;cAIH,OAAO;YAFT,MAAM;YAHP,WAAW,EAAE,GAAG,GAAG;YAIlB,MAAM;;AAsKjB,wBASG"}
1
+ {"version":3,"file":"vs-compact-form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/vs-compact-form.vue"],"names":[],"mappings":"AAoGA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM3D,UAAU,SAAS;IACjB,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,KAAK,WAAW,GAAG,SAAS,CAAC;AA8D7B,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B,CAAC;;;;;;;;;;;;;;;;;WAxEQ,MAAM;cAIH,OAAO;YAFT,MAAM;YAHP,WAAW,EAAE,GAAG,GAAG;YAIlB,MAAM;;AAkKjB,wBASG"}
@@ -272,7 +272,7 @@ declare const _default: {
272
272
  id: string;
273
273
  prefix: string;
274
274
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
275
- 'vs-input-tag': import("vue").DefineComponent<import("../../types/form.js").TagInputProps & {
275
+ 'vs-input-tags': import("vue").DefineComponent<import("../../types/form.js").TagInputProps & {
276
276
  modelValue?: string[];
277
277
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
278
278
  "update:modelValue": (value: string[]) => any;
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.grid[data-v-91f3584a]{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:1rem}.item-file:hover>div[data-v-0ca886b3]{display:flex!important;background-color:#00000080}.widget-file .vs-button{background-color:#2563eb;color:#fff;font-size:.875rem;line-height:1.25rem;font-weight:600}.ui-dialog__modal div.flex.justify-between.items-center.py-3.px-4.border-b{border-bottom-width:0px;--tw-text-opacity: 1;color:#1f2937;font-weight:500;font-size:1.125rem;line-height:1.75rem;padding-bottom:0rem}.ui-dialog__modal .ui-dialog__content .p-4{padding-top:0rem}.slide-fade-enter-active[data-v-90320b87],.slide-fade-leave-active[data-v-90320b87]{transition:all .3s ease}.slide-fade-enter-from[data-v-90320b87],.slide-fade-leave-to[data-v-90320b87]{max-height:0;opacity:0;transform:translateY(-10px)}.slide-fade-enter-to[data-v-90320b87],.slide-fade-leave-from[data-v-90320b87]{max-height:1000px;opacity:1;transform:translateY(0)}.slide-fade-enter-active[data-v-590eff11],.slide-fade-leave-active[data-v-590eff11]{transition:all .3s ease}.slide-fade-enter-from[data-v-590eff11],.slide-fade-leave-to[data-v-590eff11]{max-height:0;opacity:0;transform:translateY(-10px)}.slide-fade-enter-to[data-v-590eff11],.slide-fade-leave-from[data-v-590eff11]{max-height:1000px;opacity:1;transform:translateY(0)}.vs-ctrl-group[data-v-44f47a6f]{display:inline-flex;flex-direction:column;background:#fff;border:1px solid #e5e7eb;border-radius:6px;overflow:hidden;box-shadow:0 1px 2px #0000000a;gap:2px}.vs-btn[data-v-44f47a6f]{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:none;cursor:pointer;border-radius:.375rem;transition:background-color .15s ease,color .15s ease,opacity .15s}.vs-btn svg[data-v-44f47a6f]{width:16px;height:16px;stroke:currentColor;fill:none;color:#3c3c43;stroke-width:2}.vs-btn[data-v-44f47a6f]:hover,.vs-active[data-v-44f47a6f]{background:#2563eb;color:#fff}.vs-btn[data-v-44f47a6f]:disabled{opacity:.5;cursor:not-allowed}.vs-btn-danger[data-v-44f47a6f]:hover{background:#ef4444;color:#fff}.ring-2[data-v-44f47a6f]{box-shadow:0 0 0 2px #3b82f699}.leaflet-map-wrapper .leaflet-container[data-v-44f47a6f]{font:inherit}.vs-btn-row[data-v-44f47a6f]{@apply inline-flex items-center gap-2 text-sm font-medium border rounded-md px-3 py-2 bg-white text-blue-600 border-stone-200 hover:bg-blue-500 hover:text-white hover:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-1 transition;}.vs-btn-row[data-v-44f47a6f]:disabled{@apply opacity-50 cursor-not-allowed bg-gray-100 text-gray-400 border-gray-200 hover:bg-gray-100 hover:text-gray-400;}.fullscreen[data-v-44f47a6f]{position:fixed!important;inset:0;width:100vw!important;height:100vh!important;z-index:9999;background:#fff}.tool[data-v-44f47a6f]{line-height:1}.col-error .vs-form-text input[data-v-b0eba370]{border:1px solid red}.vs-form-text[data-v-b0eba370]{position:relative}.vs-form-text__input[data-v-b0eba370]::placeholder{opacity:.5}[draggable=true][data-v-a0f7fbfc]{-webkit-user-select:none;user-select:none}
1
+ @charset "UTF-8";.grid[data-v-91f3584a]{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:1rem}.item-file:hover>div[data-v-0ca886b3]{display:flex!important;background-color:#00000080}.widget-file .vs-button{background-color:#2563eb;color:#fff;font-size:.875rem;line-height:1.25rem;font-weight:600}.ui-dialog__modal div.flex.justify-between.items-center.py-3.px-4.border-b{border-bottom-width:0px;--tw-text-opacity: 1;color:#1f2937;font-weight:500;font-size:1.125rem;line-height:1.75rem;padding-bottom:0rem}.ui-dialog__modal .ui-dialog__content .p-4{padding-top:0rem}.slide-fade-enter-active[data-v-90320b87],.slide-fade-leave-active[data-v-90320b87]{transition:all .3s ease}.slide-fade-enter-from[data-v-90320b87],.slide-fade-leave-to[data-v-90320b87]{max-height:0;opacity:0;transform:translateY(-10px)}.slide-fade-enter-to[data-v-90320b87],.slide-fade-leave-from[data-v-90320b87]{max-height:1000px;opacity:1;transform:translateY(0)}.slide-fade-enter-active[data-v-590eff11],.slide-fade-leave-active[data-v-590eff11]{transition:all .3s ease}.slide-fade-enter-from[data-v-590eff11],.slide-fade-leave-to[data-v-590eff11]{max-height:0;opacity:0;transform:translateY(-10px)}.slide-fade-enter-to[data-v-590eff11],.slide-fade-leave-from[data-v-590eff11]{max-height:1000px;opacity:1;transform:translateY(0)}.vs-ctrl-group[data-v-a10e125c]{display:inline-flex;flex-direction:column;background:#fff;border:1px solid #e5e7eb;border-radius:6px;overflow:hidden;box-shadow:0 1px 2px #0000000a;gap:2px}.vs-btn[data-v-a10e125c]{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:none;cursor:pointer;border-radius:.375rem;transition:background-color .15s ease,color .15s ease,opacity .15s}.vs-btn svg[data-v-a10e125c]{width:16px;height:16px;stroke:currentColor;fill:none;color:#3c3c43;stroke-width:2}.vs-btn[data-v-a10e125c]:hover,.vs-active[data-v-a10e125c]{background:#2563eb;color:#fff}.vs-btn[data-v-a10e125c]:disabled{opacity:.5;cursor:not-allowed}.vs-btn-danger[data-v-a10e125c]:hover{background:#ef4444;color:#fff}.ring-2[data-v-a10e125c]{box-shadow:0 0 0 2px #3b82f699}.leaflet-map-wrapper .leaflet-container[data-v-a10e125c]{font:inherit}.vs-btn-row[data-v-a10e125c]{@apply inline-flex items-center gap-2 text-sm font-medium border rounded-md px-3 py-2 bg-white text-blue-600 border-stone-200 hover:bg-blue-500 hover:text-white hover:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-1 transition;}.vs-btn-row[data-v-a10e125c]:disabled{@apply opacity-50 cursor-not-allowed bg-gray-100 text-gray-400 border-gray-200 hover:bg-gray-100 hover:text-gray-400;}.fullscreen[data-v-a10e125c]{position:fixed!important;inset:0;width:100vw!important;height:100vh!important;z-index:9999;background:#fff}.tool[data-v-a10e125c]{line-height:1}.col-error .vs-form-text input[data-v-b0eba370]{border:1px solid red}.vs-form-text[data-v-b0eba370]{position:relative}.vs-form-text__input[data-v-b0eba370]::placeholder{opacity:.5}[draggable=true][data-v-a0f7fbfc]{-webkit-user-select:none;user-select:none}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as F, ref as w, onMounted as xe, onUnmounted as qe, createElementBlock as d, openBlock as i, createCommentVNode as A, renderSlot as Ve, createElementVNode as l, toDisplayString as P, mergeProps as Ie, createTextVNode as fe, normalizeProps as Ze, guardReactiveProps as Ye, computed as D, normalizeClass as C, mergeModels as Q, useModel as X, withDirectives as K, unref as J, vModelText as ie, vModelCheckbox as ht, createVNode as I, createBlock as re, resolveDynamicComponent as Ee, normalizeStyle as ke, withCtx as Be, withModifiers as ye, onBeforeUnmount as At, watch as le, createStaticVNode as ce, vModelRadio as gt, Fragment as ee, renderList as oe, reactive as Ft, vModelDynamic as Dt, vShow as Ge, inject as Se, resolveComponent as nt, Transition as bt, Teleport as yt, nextTick as De, getCurrentInstance as Ot, watchEffect as Ut, toRef as Tt, provide as rt } from "vue";
1
+ import { defineComponent as F, ref as w, onMounted as xe, onUnmounted as qe, createElementBlock as d, openBlock as i, createCommentVNode as A, renderSlot as Ve, createElementVNode as l, toDisplayString as P, mergeProps as Ie, createTextVNode as fe, normalizeProps as Ze, guardReactiveProps as Ye, computed as D, normalizeClass as C, mergeModels as Q, useModel as X, withDirectives as K, unref as J, vModelText as ie, vModelCheckbox as ht, createVNode as I, createBlock as re, resolveDynamicComponent as Ee, normalizeStyle as ke, withCtx as Be, withModifiers as ye, onBeforeUnmount as At, watch as ae, createStaticVNode as ce, vModelRadio as gt, Fragment as ee, renderList as le, reactive as Ft, vModelDynamic as Dt, vShow as Ge, inject as Se, resolveComponent as nt, Transition as bt, Teleport as yt, nextTick as De, getCurrentInstance as Ot, watchEffect as Ut, toRef as Tt, provide as rt } from "vue";
2
2
  import { notify as ne, VsModal as xt, modal as Rt } from "@opengis/core";
3
3
  const Pt = { class: "w-full relative" }, Ht = {
4
4
  key: 0,
@@ -619,7 +619,7 @@ const Pl = /* @__PURE__ */ N(Ul, [["render", Rl]]), Hl = {
619
619
  }
620
620
  }), At(() => {
621
621
  n?.destroy();
622
- }), le(() => e.mask, (s) => {
622
+ }), ae(() => e.mask, (s) => {
623
623
  n && n.updateOptions({
624
624
  mask: s,
625
625
  definitions: {
@@ -628,7 +628,7 @@ const Pl = /* @__PURE__ */ N(Ul, [["render", Rl]]), Hl = {
628
628
  "*": /[a-zA-Z0-9]/
629
629
  }
630
630
  });
631
- }), le(r, (s) => {
631
+ }), ae(r, (s) => {
632
632
  n && n.unmaskedValue !== s && (n.value = s || "");
633
633
  }), (s, u) => (i(), d("input", {
634
634
  type: "text",
@@ -784,7 +784,7 @@ const Pl = /* @__PURE__ */ N(Ul, [["render", Rl]]), Hl = {
784
784
  return (a, n) => (i(), d("div", {
785
785
  class: C([a.position === "horizontal" ? "flex items-center flex-wrap gap-2" : ""])
786
786
  }, [
787
- (i(!0), d(ee, null, oe(a.options, (s) => (i(), re(Ee(r.value), Ie({
787
+ (i(!0), d(ee, null, le(a.options, (s) => (i(), re(Ee(r.value), Ie({
788
788
  key: s?.id,
789
789
  text: s.text,
790
790
  value: s.id.toString(),
@@ -821,7 +821,7 @@ const Pl = /* @__PURE__ */ N(Ul, [["render", Rl]]), Hl = {
821
821
  console.error(p);
822
822
  }
823
823
  };
824
- return le(
824
+ return ae(
825
825
  () => t.modelValue,
826
826
  (p) => {
827
827
  if (typeof p == "boolean" && a.value.length === 1) {
@@ -838,7 +838,7 @@ const Pl = /* @__PURE__ */ N(Ul, [["render", Rl]]), Hl = {
838
838
  }
839
839
  },
840
840
  { immediate: !0 }
841
- ), le(
841
+ ), ae(
842
842
  n,
843
843
  () => {
844
844
  if (!a.value.length) {
@@ -880,7 +880,7 @@ const Pl = /* @__PURE__ */ N(Ul, [["render", Rl]]), Hl = {
880
880
  }), (p, f) => (i(), d("div", {
881
881
  class: C(["p-0 w-full gap-[6px]", [p.position === "vertical" ? "flex-col" : "", p.colSpan ? "grid" : "flex justify-start"]])
882
882
  }, [
883
- (i(!0), d(ee, null, oe(a.value, (y) => (i(), re(wt, {
883
+ (i(!0), d(ee, null, le(a.value, (y) => (i(), re(wt, {
884
884
  modelValue: n[s(y)],
885
885
  "onUpdate:modelValue": (_) => n[s(y)] = _,
886
886
  value: s(y),
@@ -1235,7 +1235,7 @@ const $t = /* @__PURE__ */ N(To, [["render", Po]]), Ho = { class: "h-[120px] w-[
1235
1235
  value: t.value,
1236
1236
  "onUpdate:value": u[1] || (u[1] = (c) => t.value = c)
1237
1237
  }, null, 8, ["item", "value"])) : s.multiple ? (i(), d("div", Jo, [
1238
- (i(!0), d(ee, null, oe(t.value, (c, v) => (i(), re(ct, {
1238
+ (i(!0), d(ee, null, le(t.value, (c, v) => (i(), re(ct, {
1239
1239
  multiple: s.multiple,
1240
1240
  key: v,
1241
1241
  value: t.value,
@@ -1491,7 +1491,7 @@ const va = /* @__PURE__ */ N(ca, [["render", fa]]), ma = { class: "flex flex-col
1491
1491
  }, S = (x) => {
1492
1492
  v.value = M(x), c.value = !0;
1493
1493
  };
1494
- return le(a, (x) => {
1494
+ return ae(a, (x) => {
1495
1495
  x && E();
1496
1496
  }), xe(() => {
1497
1497
  a.value && E();
@@ -1557,7 +1557,7 @@ const va = /* @__PURE__ */ N(ca, [["render", fa]]), ma = { class: "flex flex-col
1557
1557
  ])
1558
1558
  ])) : A("", !0),
1559
1559
  p.value?.length ? (i(), d("div", ka, [
1560
- (i(!0), d(ee, null, oe(_.value, (V, se) => (i(), re(da, {
1560
+ (i(!0), d(ee, null, le(_.value, (V, se) => (i(), re(da, {
1561
1561
  key: se,
1562
1562
  prefix: x.prefix,
1563
1563
  item: V,
@@ -1603,7 +1603,7 @@ const va = /* @__PURE__ */ N(ca, [["render", fa]]), ma = { class: "flex flex-col
1603
1603
  },
1604
1604
  setup(o) {
1605
1605
  const e = o, t = w(e.isOpen);
1606
- return le(
1606
+ return ae(
1607
1607
  () => e.isOpen,
1608
1608
  (r) => {
1609
1609
  t.value = r;
@@ -1647,7 +1647,7 @@ const va = /* @__PURE__ */ N(ca, [["render", fa]]), ma = { class: "flex flex-col
1647
1647
  },
1648
1648
  setup(o) {
1649
1649
  const e = o, t = w(e.isOpen);
1650
- return le(
1650
+ return ae(
1651
1651
  () => e.isOpen,
1652
1652
  (r) => {
1653
1653
  t.value = r;
@@ -1775,7 +1775,7 @@ const va = /* @__PURE__ */ N(ca, [["render", fa]]), ma = { class: "flex flex-col
1775
1775
  style: ke(o.style)
1776
1776
  }, {
1777
1777
  default: Be(() => [
1778
- (i(!0), d(ee, null, oe(a.value, (c) => (i(), re(Ct, Ie({
1778
+ (i(!0), d(ee, null, le(a.value, (c) => (i(), re(Ct, Ie({
1779
1779
  key: c.name
1780
1780
  }, { ref_for: !0 }, c, {
1781
1781
  item: c,
@@ -1851,8 +1851,8 @@ const va = /* @__PURE__ */ N(ca, [["render", fa]]), ma = { class: "flex flex-col
1851
1851
  return m;
1852
1852
  }
1853
1853
  try {
1854
- const m = t.host ?? "", $ = t.prefix ?? "api", H = t.api ?? `/${$}/suggest/${t.data}`, ae = `${m}${H}`, be = new URLSearchParams();
1855
- return be.set("json", "1"), g && be.set("key", g), _e.value !== void 0 && _e.value !== null && _e.value !== "" && be.set("parent", String(_e.value)), (await fetch(`${ae}?${be.toString()}`).then((je) => je.json()))?.data ?? [];
1854
+ const m = t.host ?? "", $ = t.prefix ?? "api", H = t.api ?? `/${$}/suggest/${t.data}`, oe = `${m}${H}`, be = new URLSearchParams();
1855
+ return be.set("json", "1"), g && be.set("key", g), _e.value !== void 0 && _e.value !== null && _e.value !== "" && be.set("parent", String(_e.value)), (await fetch(`${oe}?${be.toString()}`).then((je) => je.json()))?.data ?? [];
1856
1856
  } catch {
1857
1857
  return [];
1858
1858
  }
@@ -1864,9 +1864,9 @@ const va = /* @__PURE__ */ N(ca, [["render", fa]]), ma = { class: "flex flex-col
1864
1864
  return m || ((await me(String(g)))?.[0] ?? null);
1865
1865
  }, j = async (g) => {
1866
1866
  const m = new Set(O.value.map((H) => H.id?.toString())), $ = g.filter((H) => !m.has(H?.toString()));
1867
- $.length && await $.reduce(async (H, ae) => {
1867
+ $.length && await $.reduce(async (H, oe) => {
1868
1868
  await H;
1869
- const be = await B(ae);
1869
+ const be = await B(oe);
1870
1870
  be && O.value.push(be);
1871
1871
  }, Promise.resolve());
1872
1872
  }, q = async () => {
@@ -1892,9 +1892,9 @@ const va = /* @__PURE__ */ N(ca, [["render", fa]]), ma = { class: "flex flex-col
1892
1892
  de(g.id) || G(g);
1893
1893
  }, ge = (g, m) => {
1894
1894
  if (!g || !m) return;
1895
- const $ = g.offsetTop, H = $ + g.offsetHeight, ae = m.scrollTop, be = ae + m.clientHeight;
1895
+ const $ = g.offsetTop, H = $ + g.offsetHeight, oe = m.scrollTop, be = oe + m.clientHeight;
1896
1896
  let Le = m.scrollTop;
1897
- $ < ae ? Le = $ - 80 : H > be && (Le = H - m.clientHeight + 4);
1897
+ $ < oe ? Le = $ - 80 : H > be && (Le = H - m.clientHeight + 4);
1898
1898
  const je = m;
1899
1899
  je.scrollTop = Le;
1900
1900
  }, $e = (g) => {
@@ -1910,7 +1910,7 @@ const va = /* @__PURE__ */ N(ca, [["render", fa]]), ma = { class: "flex flex-col
1910
1910
  return document.body;
1911
1911
  }, we = () => {
1912
1912
  if (!c.value) return;
1913
- const g = c.value.getBoundingClientRect(), m = window.innerHeight || document.documentElement.clientHeight, $ = window.innerWidth || document.documentElement.clientWidth, H = 8, ae = 8, be = t.maxHeight || 300, Le = m - g.bottom - ae - H, je = g.top - ae - H, Pe = Le >= je, Ke = Math.max($ - H * 2, 0);
1913
+ const g = c.value.getBoundingClientRect(), m = window.innerHeight || document.documentElement.clientHeight, $ = window.innerWidth || document.documentElement.clientWidth, H = 8, oe = 8, be = t.maxHeight || 300, Le = m - g.bottom - oe - H, je = g.top - oe - H, Pe = Le >= je, Ke = Math.max($ - H * 2, 0);
1914
1914
  let { width: Ae } = g;
1915
1915
  Ke > 0 && Ae > Ke && (Ae = Ke);
1916
1916
  let { left: Fe } = g;
@@ -1926,7 +1926,7 @@ const va = /* @__PURE__ */ N(ca, [["render", fa]]), ma = { class: "flex flex-col
1926
1926
  minWidth: "300px",
1927
1927
  maxHeight: `${zt}px`,
1928
1928
  transform: Pe ? "none" : "translateY(-100%)",
1929
- top: Pe ? `${g.bottom + ae}px` : `${g.top - ae}px`
1929
+ top: Pe ? `${g.bottom + oe}px` : `${g.top - oe}px`
1930
1930
  };
1931
1931
  }, Ce = async (g) => {
1932
1932
  n.value || !f.value && (g.key === "ArrowDown" || g.key === "ArrowUp") && (g.preventDefault(), await q());
@@ -1958,7 +1958,7 @@ const va = /* @__PURE__ */ N(ca, [["render", fa]]), ma = { class: "flex flex-col
1958
1958
  }, lt = () => {
1959
1959
  f.value && we();
1960
1960
  };
1961
- le(() => t.options, (g) => {
1961
+ ae(() => t.options, (g) => {
1962
1962
  g?.length && (O.value = [...g]);
1963
1963
  }, { immediate: !0 });
1964
1964
  const ot = async () => {
@@ -1972,7 +1972,7 @@ const va = /* @__PURE__ */ N(ca, [["render", fa]]), ma = { class: "flex flex-col
1972
1972
  _.value = await B(s.value);
1973
1973
  }
1974
1974
  };
1975
- le(s, () => {
1975
+ ae(s, () => {
1976
1976
  ot();
1977
1977
  }), xe(async () => {
1978
1978
  addEventListener("keydown", Qe), addEventListener("scroll", et, !0), addEventListener("resize", tt), document.addEventListener("click", Xe, !0), c.value && $e(c.value).addEventListener("scroll", lt, !0), t.options?.length ? O.value = [...t.options] : t.data && (O.value = await me("")), await ot();
@@ -1989,7 +1989,7 @@ const va = /* @__PURE__ */ N(ca, [["render", fa]]), ma = { class: "flex flex-col
1989
1989
  body: JSON.stringify(We.value)
1990
1990
  }).then((H) => H.json());
1991
1991
  if (!t.options?.length && t.data) {
1992
- const { data: H } = await fetch(`${t.api ?? `/api/suggest/${t.data}`}?val=${$}`).then((ae) => ae.json());
1992
+ const { data: H } = await fetch(`${t.api ?? `/api/suggest/${t.data}`}?val=${$}`).then((oe) => oe.json());
1993
1993
  _.value = H[0], O.value.push(H[0]), s.value = $;
1994
1994
  }
1995
1995
  Re.value = !1, ne({ title: "Success!", message: "Object created." });
@@ -2008,13 +2008,13 @@ const va = /* @__PURE__ */ N(ca, [["render", fa]]), ma = { class: "flex flex-col
2008
2008
  const Et = It(async (g) => {
2009
2009
  O.value = await me(g);
2010
2010
  }, 200);
2011
- return le(M, (g) => {
2011
+ return ae(M, (g) => {
2012
2012
  t.data && Et(g.trim());
2013
- }), le(() => t.options, (g) => {
2013
+ }), ae(() => t.options, (g) => {
2014
2014
  !t.data && g?.length && (O.value = [...g]);
2015
- }, { immediate: !0 }), le(() => t.parent ?? t.parentValue, () => {
2015
+ }, { immediate: !0 }), ae(() => t.parent ?? t.parentValue, () => {
2016
2016
  t.data && T();
2017
- }), le(_e, async () => {
2017
+ }), ae(_e, async () => {
2018
2018
  t.data && (a.value ? (z.value = [], s.value = [], r("change", [])) : (_.value = null, s.value = null, r("change", null)));
2019
2019
  }), (g, m) => (i(), d(ee, null, [
2020
2020
  I(J(xt), {
@@ -2075,7 +2075,7 @@ const va = /* @__PURE__ */ N(ca, [["render", fa]]), ma = { class: "flex flex-col
2075
2075
  ref_key: "triggerRef",
2076
2076
  ref: c
2077
2077
  }, [
2078
- a.value && z.value.length ? (i(!0), d(ee, { key: 0 }, oe(W.value, ($) => (i(), d("div", {
2078
+ a.value && z.value.length ? (i(!0), d(ee, { key: 0 }, le(W.value, ($) => (i(), d("div", {
2079
2079
  class: "flex min-w-0 bg-[#e6e6e6] rounded-sm m-0.5 box-border",
2080
2080
  key: $.id
2081
2081
  }, [
@@ -2199,10 +2199,10 @@ const va = /* @__PURE__ */ N(ca, [["render", fa]]), ma = { class: "flex flex-col
2199
2199
  ref_key: "listRef",
2200
2200
  ref: v
2201
2201
  }, [
2202
- te.value.length ? (i(!0), d(ee, { key: 0 }, oe(te.value, ($, H) => (i(), d("div", {
2202
+ te.value.length ? (i(!0), d(ee, { key: 0 }, le(te.value, ($, H) => (i(), d("div", {
2203
2203
  key: $.id,
2204
2204
  ref_for: !0,
2205
- ref: (ae) => U.value[H] = ae,
2205
+ ref: (oe) => U.value[H] = oe,
2206
2206
  class: C([
2207
2207
  "flex px-3 py-2 cursor-default select-none text-gray-900 ",
2208
2208
  de($.id) ? "bg-blue-500 text-white" : "bg-white hover:bg-blue-100",
@@ -2211,7 +2211,7 @@ const va = /* @__PURE__ */ N(ca, [["render", fa]]), ma = { class: "flex flex-col
2211
2211
  "aria-disabled": de($.id) ? "true" : "false",
2212
2212
  role: "option",
2213
2213
  tabindex: "-1",
2214
- onClick: (ae) => Y($)
2214
+ onClick: (oe) => Y($)
2215
2215
  }, [
2216
2216
  $?.color ? (i(), d("span", {
2217
2217
  key: 0,
@@ -2567,7 +2567,7 @@ const Os = /* @__PURE__ */ N(As, [["render", Ds]]), Us = { class: "vs-datatable
2567
2567
  width: "14",
2568
2568
  height: "14"
2569
2569
  }),
2570
- B[4] || (B[4] = fe(" Імпортувати ", -1))
2570
+ B[4] || (B[4] = fe(" Імпортувати "))
2571
2571
  ]),
2572
2572
  l("button", {
2573
2573
  onClick: S,
@@ -2579,7 +2579,7 @@ const Os = /* @__PURE__ */ N(As, [["render", Ds]]), Us = { class: "vs-datatable
2579
2579
  width: "14",
2580
2580
  height: "14"
2581
2581
  }),
2582
- B[5] || (B[5] = fe(" Експортувати ", -1))
2582
+ B[5] || (B[5] = fe(" Експортувати "))
2583
2583
  ])
2584
2584
  ])
2585
2585
  ])
@@ -2591,7 +2591,7 @@ const Os = /* @__PURE__ */ N(As, [["render", Ds]]), Us = { class: "vs-datatable
2591
2591
  class: "text-slate-700 bg-white hover:bg-gray-100 font-semibold text-[15px] leadig-[18.5px] py-[10px] px-[12px] border border-[#E5E7EB] rounded-[8px] h-[38px] max-h-[38px] gap-[8px] flex items-center"
2592
2592
  }, [
2593
2593
  I(Ue),
2594
- B[6] || (B[6] = fe(" Додати ", -1))
2594
+ B[6] || (B[6] = fe(" Додати "))
2595
2595
  ])
2596
2596
  ]),
2597
2597
  l("div", Ks, [
@@ -2605,7 +2605,7 @@ const Os = /* @__PURE__ */ N(As, [["render", Ds]]), Us = { class: "vs-datatable
2605
2605
  class: "w-4 h-4 mx-auto text-slate-400 dark:text-slate-500"
2606
2606
  })
2607
2607
  ]),
2608
- (i(!0), d(ee, null, oe(T.colModel, (j) => (i(), d("th", {
2608
+ (i(!0), d(ee, null, le(T.colModel, (j) => (i(), d("th", {
2609
2609
  key: j.key,
2610
2610
  class: "h-10 px-2 text-left align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] font-semibold text-slate-700 dark:text-slate-300 min-w-[150px]"
2611
2611
  }, P(j.ua || j.label), 1))), 128)),
@@ -2626,7 +2626,7 @@ const Os = /* @__PURE__ */ N(As, [["render", Ds]]), Us = { class: "vs-datatable
2626
2626
  ])
2627
2627
  ])
2628
2628
  ])) : A("", !0),
2629
- (i(!0), d(ee, null, oe(n.value, (j, q) => (i(), d("tr", {
2629
+ (i(!0), d(ee, null, le(n.value, (j, q) => (i(), d("tr", {
2630
2630
  key: j.id,
2631
2631
  class: C(["border-b data-[state=selected]:bg-muted transition-all duration-200 hover:bg-slate-50/60 dark:hover:bg-slate-700/60 cursor-move", {
2632
2632
  "opacity-50": s.value === q,
@@ -2646,7 +2646,7 @@ const Os = /* @__PURE__ */ N(As, [["render", Ds]]), Us = { class: "vs-datatable
2646
2646
  })
2647
2647
  ])
2648
2648
  ]),
2649
- (i(!0), d(ee, null, oe(T.colModel, (Z) => (i(), d("td", {
2649
+ (i(!0), d(ee, null, le(T.colModel, (Z) => (i(), d("td", {
2650
2650
  key: Z.key,
2651
2651
  class: "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]"
2652
2652
  }, [
@@ -3083,7 +3083,7 @@ const Tn = /* @__PURE__ */ N(Dn, [["render", Un]]), Rn = { class: "form-geom__se
3083
3083
  r.value ? (i(), d("div", Jn, [
3084
3084
  l("div", Wn, [
3085
3085
  l("div", Kn, [
3086
- (i(), d(ee, null, oe(p, (b) => l("div", {
3086
+ (i(), d(ee, null, le(p, (b) => l("div", {
3087
3087
  onClick: (z) => y(b),
3088
3088
  key: b.value,
3089
3089
  class: "form-autocomplete__item cursor-pointer hs-selected:bg-stone-100 dark:hs-selected:bg-neutral-800 py-2 px-4 w-full text-sm text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-stone-100 dark:bg-neutral-900 dark:hover:bg-neutral-800 dark:text-neutral-200 dark:focus:bg-neutral-800 cursor-default"
@@ -3160,7 +3160,7 @@ const Tn = /* @__PURE__ */ N(Dn, [["render", Un]]), Rn = { class: "form-geom__se
3160
3160
  ]))) : A("", !0),
3161
3161
  u.value && a.value !== "coordinates" ? (i(), d("div", lr, [
3162
3162
  s.value.length ? (i(), d("ul", or, [
3163
- (i(!0), d(ee, null, oe(s.value, (b) => (i(), d("li", {
3163
+ (i(!0), d(ee, null, le(s.value, (b) => (i(), d("li", {
3164
3164
  key: b.properties.place_id,
3165
3165
  onClick: (z) => M(b),
3166
3166
  class: "px-3 py-2 text-sm cursor-pointer hover:bg-gray-100"
@@ -3186,7 +3186,7 @@ const Tn = /* @__PURE__ */ N(Dn, [["render", Un]]), Rn = { class: "form-geom__se
3186
3186
  }
3187
3187
  return (s, u) => (i(), d("div", ir, [
3188
3188
  l("div", ur, [
3189
- (i(!0), d(ee, null, oe(s.basemaps, (c, v) => (i(), d("div", {
3189
+ (i(!0), d(ee, null, le(s.basemaps, (c, v) => (i(), d("div", {
3190
3190
  key: v,
3191
3191
  class: C(["cursor-pointer border rounded-lg overflow-hidden hover:shadow-sm", { "ring-2 ring-blue-500 border-blue-300": r.value === v }]),
3192
3192
  onClick: (p) => n(v),
@@ -3397,10 +3397,9 @@ const Tn = /* @__PURE__ */ N(Dn, [["render", Un]]), Rn = { class: "form-geom__se
3397
3397
  const k = L.latLng(h[0], h[1]);
3398
3398
  s.setView(k, 13);
3399
3399
  }
3400
- le(
3400
+ ae(
3401
3401
  () => r.modelValue,
3402
3402
  (h) => {
3403
- console.log("update map");
3404
3403
  const k = S(h);
3405
3404
  if (h && k !== h) {
3406
3405
  a("update:modelValue", k);
@@ -3431,7 +3430,7 @@ const Tn = /* @__PURE__ */ N(Dn, [["render", Un]]), Rn = { class: "form-geom__se
3431
3430
  };
3432
3431
  }
3433
3432
  const he = w(!1);
3434
- return le(he, () => {
3433
+ return ae(he, () => {
3435
3434
  setTimeout(() => {
3436
3435
  s.invalidateSize();
3437
3436
  }, 50);
@@ -3530,19 +3529,19 @@ const Tn = /* @__PURE__ */ N(Dn, [["render", Un]]), Rn = { class: "form-geom__se
3530
3529
  l("div", _r, [
3531
3530
  O.value ? (i(), d("div", $r, [
3532
3531
  l("div", Vr, [
3533
- k[7] || (k[7] = fe(" Тип: ", -1)),
3532
+ k[7] || (k[7] = fe(" Тип: ")),
3534
3533
  l("span", Cr, P(O.value.type), 1)
3535
3534
  ]),
3536
3535
  l("div", Mr, [
3537
3536
  l("div", Lr, [
3538
- k[8] || (k[8] = fe(" Центр: ", -1)),
3537
+ k[8] || (k[8] = fe(" Центр: ")),
3539
3538
  l("b", null, P(O.value.center.lat.toFixed(5)) + ", " + P(O.value.center.lng.toFixed(5)), 1)
3540
3539
  ]),
3541
3540
  O.value.areaKm2 !== null ? (i(), d("div", Sr, [
3542
- k[9] || (k[9] = fe(" Площа: ", -1)),
3541
+ k[9] || (k[9] = fe(" Площа: ")),
3543
3542
  l("b", null, P(O.value.areaKm2.toFixed(1)) + "км²", 1)
3544
3543
  ])) : (i(), d("div", Br, k[10] || (k[10] = [
3545
- fe(" Площа: ", -1),
3544
+ fe(" Площа: "),
3546
3545
  l("b", null, "—", -1)
3547
3546
  ]))),
3548
3547
  l("button", {
@@ -3550,7 +3549,7 @@ const Tn = /* @__PURE__ */ N(Dn, [["render", Un]]), Rn = { class: "form-geom__se
3550
3549
  title: "Наблизити",
3551
3550
  onClick: k[5] || (k[5] = (R) => ze())
3552
3551
  }, k[11] || (k[11] = [
3553
- ce('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-3 h-3" data-v-44f47a6f><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" data-v-44f47a6f></path><path d="M7 10l6 0" data-v-44f47a6f></path><path d="M10 7l0 6" data-v-44f47a6f></path><path d="M21 21l-6 -6" data-v-44f47a6f></path></svg>', 1)
3552
+ ce('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-3 h-3" data-v-a10e125c><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" data-v-a10e125c></path><path d="M7 10l6 0" data-v-a10e125c></path><path d="M10 7l0 6" data-v-a10e125c></path><path d="M21 21l-6 -6" data-v-a10e125c></path></svg>', 1)
3554
3553
  ])),
3555
3554
  l("button", {
3556
3555
  class: "tool bg-gray-100 py-1.5 px-2 rounded-lg text-md cursor-pointer hover:bg-blue-500 hover:text-white transition-all",
@@ -3564,7 +3563,7 @@ const Tn = /* @__PURE__ */ N(Dn, [["render", Un]]), Rn = { class: "form-geom__se
3564
3563
  ])
3565
3564
  ], 2));
3566
3565
  }
3567
- }), Ir = /* @__PURE__ */ N(jr, [["__scopeId", "data-v-44f47a6f"]]), Er = ["data-focus"], zr = { class: "flex items-center" }, Ar = { class: "overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-[#333] text-[85%] px-0.5 py-[3px] pl-1.5 box-border" }, Fr = ["onClick", "aria-label"], Dr = {
3566
+ }), Ir = /* @__PURE__ */ N(jr, [["__scopeId", "data-v-a10e125c"]]), Er = ["data-focus"], zr = { class: "flex items-center" }, Ar = { class: "overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-[#333] text-[85%] px-0.5 py-[3px] pl-1.5 box-border" }, Fr = ["onClick", "aria-label"], Dr = {
3568
3567
  key: 0,
3569
3568
  class: "absolute text-gray-500 truncate pl-2"
3570
3569
  }, Or = { class: "flex-1 min-w-[2px]" }, Ur = ["placeholder"], Tr = { class: "flex items-center shrink-0" }, Rr = ["disabled"], Pr = /* @__PURE__ */ F({
@@ -3634,7 +3633,7 @@ const Tn = /* @__PURE__ */ N(Dn, [["render", Un]]), Rn = { class: "form-geom__se
3634
3633
  ref_key: "chipsRef",
3635
3634
  ref: n
3636
3635
  }, [
3637
- (i(!0), d(ee, null, oe(v.value, (se, ue) => (i(), d("div", {
3636
+ (i(!0), d(ee, null, le(v.value, (se, ue) => (i(), d("div", {
3638
3637
  key: ue,
3639
3638
  class: "flex min-w-0 bg-[#e6e6e6] rounded-sm m-0.5 box-border"
3640
3639
  }, [
@@ -3821,7 +3820,7 @@ const Tn = /* @__PURE__ */ N(Dn, [["render", Un]]), Rn = { class: "form-geom__se
3821
3820
  }, E = (U) => {
3822
3821
  c.value = c.value.filter((M) => M.id !== U);
3823
3822
  };
3824
- return le(
3823
+ return ae(
3825
3824
  c,
3826
3825
  (U) => {
3827
3826
  const M = {};
@@ -3839,7 +3838,7 @@ const Tn = /* @__PURE__ */ N(Dn, [["render", Un]]), Rn = { class: "form-geom__se
3839
3838
  { deep: !0 }
3840
3839
  ), (U, M) => (i(), d("div", Jr, [
3841
3840
  l("div", Wr, [
3842
- (i(!0), d(ee, null, oe(c.value, (S, x) => (i(), d("div", {
3841
+ (i(!0), d(ee, null, le(c.value, (S, x) => (i(), d("div", {
3843
3842
  key: S.id,
3844
3843
  class: C(["flex items-center gap-2 w-full", { "opacity-50": v.value === x }]),
3845
3844
  draggable: "true",
@@ -4003,7 +4002,7 @@ const Tn = /* @__PURE__ */ N(Dn, [["render", Un]]), Rn = { class: "form-geom__se
4003
4002
  return (n, s) => (i(), d("div", {
4004
4003
  class: C(["grid gap-2", `grid-cols-${n.limit}`])
4005
4004
  }, [
4006
- (i(!0), d(ee, null, oe(n.count, (u) => (i(), d("input", {
4005
+ (i(!0), d(ee, null, le(n.count, (u) => (i(), d("input", {
4007
4006
  type: n.inputType,
4008
4007
  value: r.value?.[u - 1] ?? "",
4009
4008
  onInput: (c) => a(c, u - 1),
@@ -4037,7 +4036,7 @@ const Tn = /* @__PURE__ */ N(Dn, [["render", Un]]), Rn = { class: "form-geom__se
4037
4036
  "vs-input-datatable": bn,
4038
4037
  "vs-input-map": Ir,
4039
4038
  "vs-input-file-list": $a,
4040
- "vs-input-tag": Pr,
4039
+ "vs-input-tags": Pr,
4041
4040
  "vs-input-slug": Gr,
4042
4041
  "vs-input-key-value": oi,
4043
4042
  "vs-input-range": ui,
@@ -4119,7 +4118,7 @@ const Tn = /* @__PURE__ */ N(Dn, [["render", Un]]), Rn = { class: "form-geom__se
4119
4118
  modelValue: t.value,
4120
4119
  "onUpdate:modelValue": c[0] || (c[0] = (v) => t.value = v)
4121
4120
  }), null, 16, ["modelValue"])),
4122
- u.item.description ? (i(), d("p", mi, P(u.item.description), 1)) : A("", !0)
4121
+ u.item.description && e.layout !== "settings" ? (i(), d("p", mi, P(u.item.description), 1)) : A("", !0)
4123
4122
  ]),
4124
4123
  u.item.behavior?.api && u.item.behavior?.button ? (i(), re(fi, Ie({ key: 0 }, u.item.behavior, { value: t.value }), null, 16, ["value"])) : A("", !0)
4125
4124
  ], 2)
@@ -4266,13 +4265,11 @@ const $i = {
4266
4265
  const E = Object.keys(_), U = Object.keys(O);
4267
4266
  return E.length !== U.length ? !1 : E.every((M) => _[M] === O[M]);
4268
4267
  }
4269
- return rt("form", n), rt("values", s), le(n.value, (_) => {
4270
- console.log("form", _);
4271
- }), (_, O) => (i(), d("form", {
4268
+ return rt("form", n), rt("values", s), (_, O) => (i(), d("form", {
4272
4269
  onSubmit: ye(f, ["prevent"]),
4273
4270
  class: C(["grid grid-cols-12", _.layout === "default" ? "gap-6" : "gap-4"])
4274
4271
  }, [
4275
- (i(!0), d(ee, null, oe(J(p), (E, U) => (i(), d("div", {
4272
+ (i(!0), d(ee, null, le(J(p), (E, U) => (i(), d("div", {
4276
4273
  key: E.name,
4277
4274
  class: C(_.layout === "horizontal" ? "col-span-12" : `col-span-${E.col || 12}`)
4278
4275
  }, [