@opengis/admin 0.1.83 → 0.1.85

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as t, createElementVNode as n } from "vue";
2
- import { _ as r } from "./import-file-DA-DiiaH.js";
2
+ import { _ as r } from "./import-file-f46xrNIz.js";
3
3
  const l = {}, s = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
5
5
  viewBox: "0 0 24 24",
@@ -1,4 +1,4 @@
1
- import { _ as d, u as h, a as i } from "./import-file-DA-DiiaH.js";
1
+ import { _ as d, u as h, a as i } from "./import-file-f46xrNIz.js";
2
2
  import { resolveComponent as p, openBlock as m, createElementBlock as g, createElementVNode as n, createBlock as f, createCommentVNode as x } from "vue";
3
3
  const w = {
4
4
  data() {
@@ -1,6 +1,6 @@
1
- import { _ as k, b as Te, a as F, c as Ve, d as De, e as Fe, f as Me, I as je, u as ye, s as qe } from "./import-file-DA-DiiaH.js";
1
+ import { _ as k, b as Te, a as F, c as Ve, d as De, e as Fe, f as Me, I as je, u as ye, s as qe } from "./import-file-f46xrNIz.js";
2
2
  import { openBlock as r, createElementBlock as a, createTextVNode as M, toDisplayString as I, createCommentVNode as w, createStaticVNode as B, Fragment as A, createElementVNode as l, resolveComponent as p, createVNode as x, withCtx as $, createBlock as _, renderList as D, withModifiers as Be, normalizeClass as V, withDirectives as L, vModelCheckbox as ze, resolveDynamicComponent as z, Transition as P, renderSlot as Le, vShow as ve, getCurrentInstance as Pe, ref as _e, normalizeStyle as ke } from "vue";
3
- import { I as Ue } from "./IconChevronDown-B7bJL5rk.js";
3
+ import { I as Ue } from "./IconChevronDown-IrRpX-i0.js";
4
4
  const Oe = {
5
5
  data() {
6
6
  return {
@@ -99,7 +99,7 @@ function Ge(t, e, s, i, n, o) {
99
99
  ])) : (r(), a("p", We, I(o.label), 1))
100
100
  ]);
101
101
  }
102
- const Ze = /* @__PURE__ */ k(Oe, [["render", Ge]]), Je = {}, Ye = {
102
+ const Ze = /* @__PURE__ */ k(Oe, [["render", Ge]]), Je = {}, Ke = {
103
103
  class: "flex-shrink-0 size-3.5",
104
104
  xmlns: "http://www.w3.org/2000/svg",
105
105
  viewBox: "0 0 24 24",
@@ -109,12 +109,12 @@ const Ze = /* @__PURE__ */ k(Oe, [["render", Ge]]), Je = {}, Ye = {
109
109
  "stroke-linecap": "round",
110
110
  "stroke-linejoin": "round"
111
111
  };
112
- function Ke(t, e, s, i, n, o) {
113
- return r(), a("svg", Ye, e[0] || (e[0] = [
112
+ function Qe(t, e, s, i, n, o) {
113
+ return r(), a("svg", Ke, e[0] || (e[0] = [
114
114
  B('<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>', 5)
115
115
  ]));
116
116
  }
117
- const Qe = /* @__PURE__ */ k(Je, [["render", Ke]]), Xe = {
117
+ const Xe = /* @__PURE__ */ k(Je, [["render", Qe]]), Ye = {
118
118
  props: {
119
119
  height: { type: String, default: "16" },
120
120
  width: { type: String, default: "12" },
@@ -140,10 +140,10 @@ function nt(t, e, s, i, n, o) {
140
140
  ]), 8, tt))
141
141
  ], 64);
142
142
  }
143
- const st = /* @__PURE__ */ k(Xe, [["render", nt]]), lt = {
143
+ const st = /* @__PURE__ */ k(Ye, [["render", nt]]), lt = {
144
144
  components: {
145
145
  IconMore: Te,
146
- IconDelete: Qe,
146
+ IconDelete: Xe,
147
147
  IconEdit: st
148
148
  },
149
149
  emits: ["updateTable"],
@@ -208,8 +208,15 @@ const st = /* @__PURE__ */ k(Xe, [["render", nt]]), lt = {
208
208
  }
209
209
  },
210
210
  async customButtonAction(t) {
211
- t != null && t.form && await this.$v3plugin.$form({
212
- token: "wJbtW5SHZvFeaD_hNn9vn5t0jUY"
211
+ var e;
212
+ document.querySelector("body").click(), t != null && t.form ? (await this.$v3plugin.$form({
213
+ form: t == null ? void 0 : t.form,
214
+ id: (e = this.item) == null ? void 0 : e.id,
215
+ api: t == null ? void 0 : t.api
216
+ }), await this.$emit("update-table")) : await this.$v3plugin.$api({
217
+ confirm: t == null ? void 0 : t.confirm,
218
+ api: t == null ? void 0 : t.api,
219
+ method: t == null ? void 0 : t.method
213
220
  });
214
221
  }
215
222
  }
@@ -628,8 +635,8 @@ const Gt = /* @__PURE__ */ k(Ht, [["render", Wt]]), Zt = {
628
635
  s[e] = t, this.$emit("update-columns", [...s]);
629
636
  }
630
637
  }
631
- }, Jt = { class: "py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, Yt = { class: "py-[10px] px-[10px] w-[260px]" }, Kt = { class: "flex flex-col gap-[3px] max-h-[400px] w-full overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
632
- function Qt(t, e, s, i, n, o) {
638
+ }, Jt = { class: "py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, Kt = { class: "py-[10px] px-[10px] w-[260px]" }, Qt = { class: "flex flex-col gap-[3px] max-h-[400px] w-full overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
639
+ function Xt(t, e, s, i, n, o) {
633
640
  const u = p("IconColumns"), b = p("AdminTableColumnsHiddenItem"), f = p("VsPopover");
634
641
  return r(), _(f, {
635
642
  trigger: "click",
@@ -644,9 +651,9 @@ function Qt(t, e, s, i, n, o) {
644
651
  ])
645
652
  ]),
646
653
  default: $(() => [
647
- l("div", Yt, [
654
+ l("div", Kt, [
648
655
  e[0] || (e[0] = l("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
649
- l("ul", Kt, [
656
+ l("ul", Qt, [
650
657
  (r(!0), a(A, null, D(s.columns, (m, v) => (r(), a("li", { key: v }, [
651
658
  x(b, {
652
659
  column: m,
@@ -659,7 +666,7 @@ function Qt(t, e, s, i, n, o) {
659
666
  _: 1
660
667
  });
661
668
  }
662
- const Xt = /* @__PURE__ */ k(Zt, [["render", Qt]]), en = {}, tn = {
669
+ const Yt = /* @__PURE__ */ k(Zt, [["render", Xt]]), en = {}, tn = {
663
670
  class: "hidden sm:block shrink-0 size-3",
664
671
  xmlns: "http://www.w3.org/2000/svg",
665
672
  fill: "currentColor",
@@ -996,7 +1003,7 @@ function Jn(t, e, s, i, n, o) {
996
1003
  }, I(u == null ? void 0 : u.label), 11, Zn))), 256))
997
1004
  ]);
998
1005
  }
999
- const Yn = /* @__PURE__ */ k(Wn, [["render", Jn]]), Kn = {}, Qn = {
1006
+ const Kn = /* @__PURE__ */ k(Wn, [["render", Jn]]), Qn = {}, Xn = {
1000
1007
  xmlns: "http://www.w3.org/2000/svg",
1001
1008
  viewBox: "0 0 24 24",
1002
1009
  fill: "none",
@@ -1006,8 +1013,8 @@ const Yn = /* @__PURE__ */ k(Wn, [["render", Jn]]), Kn = {}, Qn = {
1006
1013
  "stroke-linejoin": "round",
1007
1014
  class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
1008
1015
  };
1009
- function Xn(t, e, s, i, n, o) {
1010
- return r(), a("svg", Qn, e[0] || (e[0] = [
1016
+ function Yn(t, e, s, i, n, o) {
1017
+ return r(), a("svg", Xn, e[0] || (e[0] = [
1011
1018
  l("path", {
1012
1019
  stroke: "none",
1013
1020
  d: "M0 0h24v24H0z",
@@ -1016,7 +1023,7 @@ function Xn(t, e, s, i, n, o) {
1016
1023
  l("path", { d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" }, null, -1)
1017
1024
  ]));
1018
1025
  }
1019
- const es = /* @__PURE__ */ k(Kn, [["render", Xn]]), ts = {
1026
+ const es = /* @__PURE__ */ k(Qn, [["render", Yn]]), ts = {
1020
1027
  components: { IconFilter2: es },
1021
1028
  props: { filterCustom: String, customList: Array }
1022
1029
  }, ns = { class: "py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, ss = { class: "flex flex-col gap-[4px]" }, ls = ["onClick"];
@@ -1099,7 +1106,7 @@ const os = /* @__PURE__ */ k(ts, [["render", rs]]), as = { class: "flex items-ce
1099
1106
  components: {
1100
1107
  AdminTableControl: ft,
1101
1108
  AdminTableExport: Pt,
1102
- AdminTableColumnsHidden: Xt,
1109
+ AdminTableColumnsHidden: Yt,
1103
1110
  AdminTableColumn: Ze,
1104
1111
  AdminNodata: on,
1105
1112
  IconPlus: we,
@@ -1108,7 +1115,7 @@ const os = /* @__PURE__ */ k(ts, [["render", rs]]), as = { class: "flex items-ce
1108
1115
  IconOpenCard: Bn,
1109
1116
  AdminComponentIs: Ce,
1110
1117
  AdminTableFilters: Rn,
1111
- AdminTableTabs: Yn,
1118
+ AdminTableTabs: Kn,
1112
1119
  AdminTableCustomFilters: os,
1113
1120
  AdminTableCustomButtons: is
1114
1121
  },
@@ -1308,7 +1315,7 @@ const os = /* @__PURE__ */ k(ts, [["render", rs]]), as = { class: "flex items-ce
1308
1315
  class: "font-semibold text-gray-800 dark:text-neutral-200"
1309
1316
  };
1310
1317
  function Ms(t, e, s, i, n, o) {
1311
- var O, E, N, H, R, W, G, Z, J, Y, K, Q, X, ee, te, ne, se, le, re, oe, ae, ie;
1318
+ var O, E, N, H, R, W, G, Z, J, K, Q, X, Y, ee, te, ne, se, le, re, oe, ae, ie;
1312
1319
  const u = p("IconPlus"), b = p("router-link"), f = p("AdminTableTabs"), m = p("IconSearch"), v = p("VsText"), c = p("AdminTableCustomButtons"), g = p("AdminTableCustomFilters"), d = p("AdminTableColumnsHidden"), C = p("AdminTableExport"), y = p("AdminTableFilters"), S = p("IconOpenCard"), T = p("AdminTableColumn"), j = p("AdminComponentIs"), U = p("AdminTableControl"), $e = p("AdminNodata"), Se = p("VsPagination"), Ae = p("AdminTableCardInfo");
1313
1320
  return r(), a("div", ds, [
1314
1321
  l("div", hs, [
@@ -1362,23 +1369,23 @@ function Ms(t, e, s, i, n, o) {
1362
1369
  }, null, 8, ["slots"])) : w("", !0),
1363
1370
  (J = (Z = n.tableData) == null ? void 0 : Z.filterCustom) != null && J.length ? (r(), _(g, {
1364
1371
  key: 1,
1365
- customList: (Y = n.tableData) == null ? void 0 : Y.filterCustom,
1372
+ customList: (K = n.tableData) == null ? void 0 : K.filterCustom,
1366
1373
  filterCustom: n.filterCustom,
1367
1374
  "onUpdate:filterCustom": e[2] || (e[2] = (h) => n.filterCustom = h)
1368
1375
  }, null, 8, ["customList", "filterCustom"])) : w("", !0),
1369
1376
  x(d, {
1370
- columns: (K = n.tableData) == null ? void 0 : K.columns,
1377
+ columns: (Q = n.tableData) == null ? void 0 : Q.columns,
1371
1378
  onUpdateColumns: e[3] || (e[3] = (h) => n.tableData.columns = h)
1372
1379
  }, null, 8, ["columns"]),
1373
1380
  x(C, {
1374
1381
  table: s.table,
1375
- columns: (Q = n.tableData) == null ? void 0 : Q.columns,
1382
+ columns: (X = n.tableData) == null ? void 0 : X.columns,
1376
1383
  page: n.page,
1377
1384
  "filter-state": n.filterState,
1378
1385
  "filter-custom": n.filterCustom,
1379
1386
  filters: n.filters
1380
1387
  }, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"]),
1381
- (X = n.filterScheme) != null && X.length ? (r(), _(y, {
1388
+ (Y = n.filterScheme) != null && Y.length ? (r(), _(y, {
1382
1389
  key: 2,
1383
1390
  scheme: n.filterScheme,
1384
1391
  onFilters: n.onFilters,
@@ -1,6 +1,6 @@
1
- import { _ as w, I as Q, u as B, s as F, V as R, a as O } from "./import-file-DA-DiiaH.js";
1
+ import { _ as w, I as Q, u as B, s as F, V as R, a as O } from "./import-file-f46xrNIz.js";
2
2
  import { openBlock as s, createElementBlock as r, createElementVNode as t, createStaticVNode as q, resolveComponent as v, normalizeClass as E, createTextVNode as L, toDisplayString as V, createVNode as c, Transition as T, withCtx as M, withDirectives as G, Fragment as N, renderList as S, vShow as J, ref as D, createCommentVNode as H, getCurrentInstance as K, watch as W, onBeforeUnmount as X, createBlock as Y, withModifiers as ee } from "vue";
3
- import { I as te } from "./IconChevronDown-B7bJL5rk.js";
3
+ import { I as te } from "./IconChevronDown-IrRpX-i0.js";
4
4
  const oe = {}, ne = {
5
5
  xmlns: "http://www.w3.org/2000/svg",
6
6
  viewBox: "0 0 24 24",
package/dist/admin.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as f } from "./import-file-DA-DiiaH.js";
1
+ import { i as f } from "./import-file-f46xrNIz.js";
2
2
  export {
3
3
  f as default
4
4
  };