@opengis/admin 0.2.80 → 0.2.82

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 { resolveComponent as e, openBlock as r, createBlock as t } from "vue";
2
- import { _ as c } from "./import-file-g9nXuHvS.js";
2
+ import { _ as c } from "./import-file-Dcs_0g1C.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 g, u as f, e as b } from "./import-file-g9nXuHvS.js";
1
+ import { _ as g, u as f, e as b } from "./import-file-Dcs_0g1C.js";
2
2
  import { resolveComponent as y, openBlock as p, createElementBlock as x, createElementVNode as u, createBlock as w, normalizeStyle as k, createCommentVNode as v } from "vue";
3
3
  const V = {
4
4
  data() {
@@ -1749,7 +1749,7 @@ const jf = Qt({}), HL = () => {
1749
1749
  e({
1750
1750
  title: "Помилка!",
1751
1751
  type: "error",
1752
- message: ((O = z == null ? void 0 : z.response) == null ? void 0 : O.data) || "Сталася помилка"
1752
+ message: z.message === "validation error" ? "Перевірте правильність полів." : ((O = z == null ? void 0 : z.response) == null ? void 0 : O.data) || "Сталася помилка"
1753
1753
  });
1754
1754
  }
1755
1755
  };
@@ -3691,16 +3691,16 @@ function xB(n) {
3691
3691
  }
3692
3692
  const wB = [
3693
3693
  // { name: 'profile', path: '/profile', component: () => import('../components/profile/vs-profile.vue') },
3694
- { name: "edit", path: "/edit", component: () => import("./edit-page-CJOg-fHq.js") },
3695
- { name: "add", path: "/add", component: () => import("./add-page-B--iNsnp.js") },
3694
+ { name: "edit", path: "/edit", component: () => import("./edit-page-CIYRxSp9.js") },
3695
+ { name: "add", path: "/add", component: () => import("./add-page-D-gdxNnz.js") },
3696
3696
  {
3697
3697
  name: "card-view",
3698
3698
  path: "/card",
3699
- component: () => import("./card-view-BYs3p6pQ.js"),
3699
+ component: () => import("./card-view-C8pMNjQF.js"),
3700
3700
  children: [{
3701
3701
  name: "table",
3702
3702
  path: ":table",
3703
- component: () => import("./card-view-BYs3p6pQ.js"),
3703
+ component: () => import("./card-view-C8pMNjQF.js"),
3704
3704
  children: [{ name: "card", path: ":id", component: () => Promise.resolve().then(() => $se) }]
3705
3705
  }]
3706
3706
  }
@@ -3754,14 +3754,14 @@ const TB = /* @__PURE__ */ vt(SB, [["render", CB]]), AB = (n) => {
3754
3754
  {
3755
3755
  path: "/",
3756
3756
  name: "home",
3757
- component: () => import("./admin-view-ZWBCcfXl.js"),
3757
+ component: () => import("./admin-view-FtuvEpxh.js"),
3758
3758
  children: [
3759
3759
  ...e,
3760
3760
  ...n,
3761
3761
  // { path: '/', redirect: '/home' },
3762
3762
  {
3763
3763
  path: "/:catchAll(.*)",
3764
- component: () => import("./admin-interface-SLegMCCg.js")
3764
+ component: () => import("./admin-interface-CwjwYrOe.js")
3765
3765
  }
3766
3766
  ]
3767
3767
  }
@@ -28428,7 +28428,7 @@ const aM = /* @__PURE__ */ vt(_$, [["render", w$]]), S$ = {
28428
28428
  },
28429
28429
  methods: {
28430
28430
  isSupportedFile(n) {
28431
- return ["pdf", "txt", "json"].includes(n.ext) && parseInt(n.size, 10) <= 10485760;
28431
+ return ["pdf", "json"].includes(n.ext) && parseInt(n.size, 10) <= 10485760;
28432
28432
  },
28433
28433
  async downloadFile(n) {
28434
28434
  const e = document.createElement("a");
@@ -45351,12 +45351,7 @@ const vI = /* @__PURE__ */ vt(UG, [["render", GG]]), YG = {
45351
45351
  },
45352
45352
  createDate() {
45353
45353
  try {
45354
- const n = yt(this.comment.cdate, "YYYY-MM-DD");
45355
- return new Date(n).toLocaleDateString("uk-UA", {
45356
- day: "2-digit",
45357
- month: "long",
45358
- year: "numeric"
45359
- });
45354
+ return yt(this.comment.cdate, "YYYY-MM-DD HH:mm:ss").format("DD MMMM YYYY HH:mm");
45360
45355
  } catch {
45361
45356
  return "";
45362
45357
  }
@@ -45428,13 +45423,13 @@ const vI = /* @__PURE__ */ vt(UG, [["render", GG]]), YG = {
45428
45423
  class: "flex shrink-0 justify-center items-center size-[38px] border border-gray-200 text-sm font-semibold uppercase text-gray-800 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-400"
45429
45424
  }, QG = { class: "pb-8 grow" }, e9 = { class: "flex justify-between -mt-[5px]" }, t9 = { class: "flex items-center" }, n9 = { class: "text-sm font-semibold text-gray-800 dark:text-neutral-200" }, i9 = { class: "text-xs text-gray-400 ms-1 dark:text-neutral-500" }, r9 = { class: "min-h-[32px]" }, s9 = { class: "p-0.5 inline-flex items-center gap-x-0.5 bg-white border border-gray-200 shadow-sm rounded-lg dark:bg-neutral-800 dark:border-neutral-700" }, o9 = ["innerHTML"], a9 = { class: "flex flex-col gap-[8px] p-[10px] text-sm font-medium text-gray-500" }, l9 = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" };
45430
45425
  function c9(n, e, t, i, r, s) {
45431
- var f;
45426
+ var f, m;
45432
45427
  const c = ut("VsTextEditor"), o = ut("VsDialog");
45433
45428
  return oe(), pe(Zt, null, [
45434
45429
  F("div", {
45435
45430
  class: "group relative flex gap-x-3.5",
45436
- onMouseenter: e[2] || (e[2] = (m) => r.hovered = !0),
45437
- onMouseleave: e[3] || (e[3] = (m) => r.hovered = !1)
45431
+ onMouseenter: e[2] || (e[2] = (y) => r.hovered = !0),
45432
+ onMouseleave: e[3] || (e[3] = (y) => r.hovered = !1)
45438
45433
  }, [
45439
45434
  F("div", ZG, [
45440
45435
  F("div", XG, [
@@ -45449,14 +45444,14 @@ function c9(n, e, t, i, r, s) {
45449
45444
  F("div", QG, [
45450
45445
  F("span", e9, [
45451
45446
  F("div", t9, [
45452
- F("span", n9, ct(t.comment.username), 1),
45447
+ F("span", n9, ct((m = t.comment) == null ? void 0 : m.username), 1),
45453
45448
  F("span", i9, ct(s.createDate), 1)
45454
45449
  ]),
45455
45450
  F("div", r9, [
45456
45451
  oo(F("div", s9, [
45457
45452
  F("div", {
45458
45453
  class: "inline-block",
45459
- onClick: e[0] || (e[0] = (m) => s.openEditModal())
45454
+ onClick: e[0] || (e[0] = (y) => s.openEditModal())
45460
45455
  }, e[8] || (e[8] = [
45461
45456
  ja('<button type="button" class="hs-tooltip-toggle size-[26px] inline-flex justify-center items-center gap-x-1 text-xs font-medium rounded-md border border-transparent bg-white text-gray-500 hover:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 dark:bg-neutral-800 dark:border-transparent dark:text-neutral-500 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"><svg class="shrink-0 size-3.5" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"></path><path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"></path></svg><span class="sr-only">Edit message</span></button>', 1),
45462
45457
  F("span", {
@@ -45466,7 +45461,7 @@ function c9(n, e, t, i, r, s) {
45466
45461
  ])),
45467
45462
  F("div", {
45468
45463
  class: "inline-block",
45469
- onClick: e[1] || (e[1] = (m) => s.confirnDeleteComment())
45464
+ onClick: e[1] || (e[1] = (y) => s.confirnDeleteComment())
45470
45465
  }, e[9] || (e[9] = [
45471
45466
  ja('<button type="button" class="hs-tooltip-toggle size-[26px] inline-flex justify-center items-center gap-x-1 text-xs font-medium rounded-md border border-transparent bg-white text-gray-500 hover:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 dark:bg-neutral-800 dark:border-transparent dark:text-neutral-500 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"><svg class="shrink-0 size-3.5" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"></path><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"></path><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"></path><line x1="10" x2="10" y1="11" y2="17"></line><line x1="14" x2="14" y1="11" y2="17"></line></svg><span class="sr-only">Delete message</span></button>', 1),
45472
45467
  F("span", {
@@ -45487,18 +45482,18 @@ function c9(n, e, t, i, r, s) {
45487
45482
  ], 32),
45488
45483
  tt(o, {
45489
45484
  visible: r.isOpen,
45490
- "onUpdate:visible": e[7] || (e[7] = (m) => r.isOpen = m),
45485
+ "onUpdate:visible": e[7] || (e[7] = (y) => r.isOpen = y),
45491
45486
  title: "Редагувати",
45492
45487
  size: "small"
45493
45488
  }, {
45494
45489
  footer: on(() => [
45495
45490
  F("div", l9, [
45496
45491
  F("button", {
45497
- onClick: e[5] || (e[5] = (m) => r.isOpen = !1),
45492
+ onClick: e[5] || (e[5] = (y) => r.isOpen = !1),
45498
45493
  class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-black border rounded-lg !border-gray-200 hover:bg-gray-100 duration-300"
45499
45494
  }, " Скасувати "),
45500
45495
  F("button", {
45501
- onClick: e[6] || (e[6] = (...m) => s.updateComment && s.updateComment(...m)),
45496
+ onClick: e[6] || (e[6] = (...y) => s.updateComment && s.updateComment(...y)),
45502
45497
  class: "py-2 px-3 inline-flex items-center gap-x-2 text-[14px] font-[400] whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"
45503
45498
  }, " Зберегти ")
45504
45499
  ])
@@ -45507,7 +45502,7 @@ function c9(n, e, t, i, r, s) {
45507
45502
  F("div", a9, [
45508
45503
  tt(c, {
45509
45504
  modelValue: r.textareaValue,
45510
- "onUpdate:modelValue": e[4] || (e[4] = (m) => r.textareaValue = m),
45505
+ "onUpdate:modelValue": e[4] || (e[4] = (y) => r.textareaValue = y),
45511
45506
  options: t.options
45512
45507
  }, null, 8, ["modelValue", "options"])
45513
45508
  ])