@opengis/admin 0.4.16 → 0.4.18
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.
- package/dist/{add-page-CuSnPcPi.js → add-page-BRbSorJq.js} +1 -1
- package/dist/{admin-interface-D-iedgAS.js → admin-interface-C5S42pkq.js} +230 -212
- package/dist/{admin-view-BFLFL7ja.js → admin-view-Ehc3wQnh.js} +1 -1
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +4 -4
- package/dist/{card-view-qp3cCQHr.js → card-view-iB2ylJiC.js} +1 -1
- package/dist/{edit-page-YQeMJOYf.js → edit-page-Fc7r-dVF.js} +1 -1
- package/dist/{import-file-EI9a0fXk.js → import-file--glS3bLV.js} +7 -7
- package/dist/{profile-page-7PoRBdwC.js → profile-page--sFXVR-B.js} +1 -1
- package/package.json +2 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { createElementBlock as
|
1
|
+
import { _ as T, h as Je, i as Ke, j as Ge, f as L, I as Qe, s as R, k as K, V as Xe, l as Ye, m as Ze, n as et, A as G, o as tt, p as st, b as nt, q as at, r as lt, a as rt, t as ot, v as it, u as Ee } from "./import-file--glS3bLV.js";
|
2
|
+
import { createElementBlock as d, openBlock as r, createTextVNode as z, createElementVNode as a, toDisplayString as A, createCommentVNode as k, normalizeClass as w, resolveComponent as p, Fragment as $, createVNode as x, withCtx as P, createBlock as y, renderList as V, withModifiers as dt, Transition as Q, withDirectives as X, renderSlot as ut, vShow as Y, Teleport as ct, getCurrentInstance as Ue, ref as H, resolveDynamicComponent as J, defineComponent as ht, withKeys as pt, normalizeStyle as W } from "vue";
|
3
3
|
const bt = {
|
4
4
|
data() {
|
5
5
|
return {
|
@@ -70,16 +70,16 @@ const bt = {
|
|
70
70
|
class: "flex items-center px-1 py-3 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200"
|
71
71
|
};
|
72
72
|
function xt(e, t, n, o, s, l) {
|
73
|
-
return r(),
|
74
|
-
l.getVisibleIcon ? (r(),
|
73
|
+
return r(), d("th", ft, [
|
74
|
+
l.getVisibleIcon ? (r(), d("button", {
|
75
75
|
key: 0,
|
76
76
|
type: "button",
|
77
77
|
class: "flex items-center px-1 py-2 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200",
|
78
78
|
onClick: t[0] || (t[0] = (h) => l.handleClickSortBtn(s.currentSort))
|
79
79
|
}, [
|
80
|
-
|
80
|
+
z(A(l.label) + " ", 1),
|
81
81
|
a("span", gt, [
|
82
|
-
s.currentSort ? (r(),
|
82
|
+
s.currentSort ? (r(), d("svg", {
|
83
83
|
key: 0,
|
84
84
|
class: w(["shrink-0 size-3.5", { "rotate-180": s.currentSort === "asc" }]),
|
85
85
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -96,10 +96,10 @@ function xt(e, t, n, o, s, l) {
|
|
96
96
|
a("path", { d: "M12 19V5" }, null, -1)
|
97
97
|
]), 2)) : k("", !0)
|
98
98
|
])
|
99
|
-
])) : (r(),
|
99
|
+
])) : (r(), d("p", mt, A(l.label), 1))
|
100
100
|
], 512);
|
101
101
|
}
|
102
|
-
const yt = /* @__PURE__ */
|
102
|
+
const yt = /* @__PURE__ */ T(bt, [["render", xt]]), vt = {}, kt = {
|
103
103
|
xmlns: "http://www.w3.org/2000/svg",
|
104
104
|
width: "24",
|
105
105
|
height: "24",
|
@@ -112,7 +112,7 @@ const yt = /* @__PURE__ */ A(bt, [["render", xt]]), vt = {}, kt = {
|
|
112
112
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-link"
|
113
113
|
};
|
114
114
|
function _t(e, t) {
|
115
|
-
return r(),
|
115
|
+
return r(), d("svg", kt, t[0] || (t[0] = [
|
116
116
|
a("path", {
|
117
117
|
stroke: "none",
|
118
118
|
d: "M0 0h24v24H0z",
|
@@ -123,11 +123,11 @@ function _t(e, t) {
|
|
123
123
|
a("path", { d: "M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" }, null, -1)
|
124
124
|
]));
|
125
125
|
}
|
126
|
-
const Ct = /* @__PURE__ */
|
126
|
+
const Ct = /* @__PURE__ */ T(vt, [["render", _t]]), wt = {
|
127
127
|
components: {
|
128
128
|
IconMore: Ge,
|
129
|
-
IconDelete:
|
130
|
-
IconEdit:
|
129
|
+
IconDelete: Ke,
|
130
|
+
IconEdit: Je,
|
131
131
|
IconLink: Ct
|
132
132
|
},
|
133
133
|
emits: ["updateTable"],
|
@@ -159,7 +159,7 @@ const Ct = /* @__PURE__ */ A(vt, [["render", _t]]), wt = {
|
|
159
159
|
async getData() {
|
160
160
|
var e;
|
161
161
|
try {
|
162
|
-
const { data: t } = await
|
162
|
+
const { data: t } = await L.get(
|
163
163
|
`/api/table/${this.table}/${(e = this.item) == null ? void 0 : e.id}`
|
164
164
|
);
|
165
165
|
this.formValue = t;
|
@@ -173,10 +173,10 @@ const Ct = /* @__PURE__ */ A(vt, [["render", _t]]), wt = {
|
|
173
173
|
async deleteElement() {
|
174
174
|
var e, t;
|
175
175
|
try {
|
176
|
-
const { data: n } = await
|
176
|
+
const { data: n } = await L.get(
|
177
177
|
`/api/table/${this.table}/${(e = this.item) == null ? void 0 : e.id}`
|
178
178
|
);
|
179
|
-
await
|
179
|
+
await L.delete(`/api/table/${n == null ? void 0 : n.token}`), await this.$notify({
|
180
180
|
title: "Успішно!",
|
181
181
|
message: "Об`єкт успішно видалeно",
|
182
182
|
type: "success"
|
@@ -207,13 +207,13 @@ const Ct = /* @__PURE__ */ A(vt, [["render", _t]]), wt = {
|
|
207
207
|
}), await this.$emit("update-table")) : e != null && e.href && this.$router.push((e == null ? void 0 : e.href) + ((o = this.item) == null ? void 0 : o.id));
|
208
208
|
}
|
209
209
|
}
|
210
|
-
}, $t = { class: "inline-flex" }, St = { class: "inline-flex items-center justify-center bg-white border rounded-lg shadow-sm size-7 gap-x-2 border-stone-200 text-stone-800 hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-50" },
|
210
|
+
}, $t = { class: "inline-flex" }, St = { class: "inline-flex items-center justify-center bg-white border rounded-lg shadow-sm size-7 gap-x-2 border-stone-200 text-stone-800 hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-50" }, At = { class: "flex flex-col items-start" }, Tt = ["onClick"], It = { class: "text-gray-800" }, Dt = {
|
211
211
|
key: 1,
|
212
212
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
213
213
|
}, Pt = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
|
214
214
|
function Vt(e, t, n, o, s, l) {
|
215
|
-
const h = p("IconMore"), g = p("IconEdit"), b = p("router-link"), f = p("IconLink"),
|
216
|
-
return r(),
|
215
|
+
const h = p("IconMore"), g = p("IconEdit"), b = p("router-link"), f = p("IconLink"), u = p("IconDelete"), v = p("VsPopover"), m = p("VsConfirm");
|
216
|
+
return r(), d($, null, [
|
217
217
|
a("div", $t, [
|
218
218
|
x(v, {
|
219
219
|
trigger: "click",
|
@@ -230,7 +230,7 @@ function Vt(e, t, n, o, s, l) {
|
|
230
230
|
default: P(() => {
|
231
231
|
var c, _, C, I, D;
|
232
232
|
return [
|
233
|
-
a("div",
|
233
|
+
a("div", At, [
|
234
234
|
(c = n.actions) != null && c.includes("edit") && n.isForm ? (r(), y(b, {
|
235
235
|
key: 0,
|
236
236
|
to: `/edit?table=${(C = (_ = e.$route) == null ? void 0 : _.params) == null ? void 0 : C.catchAll}&id=${(I = n.item) == null ? void 0 : I.id}`,
|
@@ -238,29 +238,29 @@ function Vt(e, t, n, o, s, l) {
|
|
238
238
|
}, {
|
239
239
|
default: P(() => [
|
240
240
|
x(g, { color: "#000" }),
|
241
|
-
t[4] || (t[4] =
|
241
|
+
t[4] || (t[4] = z(" Редагувати "))
|
242
242
|
]),
|
243
243
|
_: 1,
|
244
244
|
__: [4]
|
245
245
|
}, 8, ["to"])) : k("", !0),
|
246
|
-
(r(!0),
|
246
|
+
(r(!0), d($, null, V(l.getCustomActions, (S, F) => (r(), d("button", {
|
247
247
|
key: F,
|
248
|
-
onClick: (
|
248
|
+
onClick: (q) => l.customButtonAction(S),
|
249
249
|
class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
|
250
250
|
}, [
|
251
251
|
S != null && S.href ? (r(), y(f, {
|
252
252
|
key: 0,
|
253
253
|
class: "size-3.5"
|
254
254
|
})) : k("", !0),
|
255
|
-
a("span", It,
|
256
|
-
], 8,
|
257
|
-
n.isForm ? (r(),
|
258
|
-
(D = n.actions) != null && D.includes("del") ? (r(),
|
255
|
+
a("span", It, A(S == null ? void 0 : S.label), 1)
|
256
|
+
], 8, Tt))), 128)),
|
257
|
+
n.isForm ? (r(), d("div", Dt)) : k("", !0),
|
258
|
+
(D = n.actions) != null && D.includes("del") ? (r(), d("button", {
|
259
259
|
key: 2,
|
260
|
-
onClick: t[0] || (t[0] =
|
260
|
+
onClick: t[0] || (t[0] = dt((...S) => l.openConfirm && l.openConfirm(...S), ["stop"])),
|
261
261
|
class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
|
262
262
|
}, [
|
263
|
-
x(
|
263
|
+
x(u),
|
264
264
|
t[5] || (t[5] = a("span", { class: "text-gray-800" }, "Видалити", -1))
|
265
265
|
])) : k("", !0)
|
266
266
|
])
|
@@ -295,7 +295,7 @@ function Vt(e, t, n, o, s, l) {
|
|
295
295
|
}, 8, ["visible"])
|
296
296
|
], 64);
|
297
297
|
}
|
298
|
-
const Ft = /* @__PURE__ */
|
298
|
+
const Ft = /* @__PURE__ */ T(wt, [["render", Vt]]), jt = {}, Lt = {
|
299
299
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
300
300
|
xmlns: "http://www.w3.org/2000/svg",
|
301
301
|
viewBox: "0 0 24 24",
|
@@ -306,14 +306,14 @@ const Ft = /* @__PURE__ */ A(wt, [["render", Vt]]), jt = {}, Lt = {
|
|
306
306
|
"stroke-linejoin": "round"
|
307
307
|
};
|
308
308
|
function zt(e, t, n, o, s, l) {
|
309
|
-
return r(),
|
309
|
+
return r(), d("svg", Lt, t[0] || (t[0] = [
|
310
310
|
a("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
311
311
|
a("path", { d: "M7 20V4" }, null, -1),
|
312
312
|
a("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
313
313
|
a("path", { d: "M17 4v16" }, null, -1)
|
314
314
|
]));
|
315
315
|
}
|
316
|
-
const qt = /* @__PURE__ */
|
316
|
+
const qt = /* @__PURE__ */ T(jt, [["render", zt]]), Mt = {}, Bt = {
|
317
317
|
xmlns: "http://www.w3.org/2000/svg",
|
318
318
|
width: "24",
|
319
319
|
height: "24",
|
@@ -326,7 +326,7 @@ const qt = /* @__PURE__ */ A(jt, [["render", zt]]), Mt = {}, Bt = {
|
|
326
326
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
327
327
|
};
|
328
328
|
function Nt(e, t, n, o, s, l) {
|
329
|
-
return r(),
|
329
|
+
return r(), d("svg", Bt, t[0] || (t[0] = [
|
330
330
|
a("path", {
|
331
331
|
stroke: "none",
|
332
332
|
d: "M0 0h24v24H0z",
|
@@ -336,7 +336,7 @@ function Nt(e, t, n, o, s, l) {
|
|
336
336
|
a("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
337
337
|
]));
|
338
338
|
}
|
339
|
-
const Ot = /* @__PURE__ */
|
339
|
+
const Ot = /* @__PURE__ */ T(Mt, [["render", Nt]]), Et = {
|
340
340
|
components: { IconExport: qt, IconChevronDown: Qe, IconSuccess: Ot },
|
341
341
|
props: {
|
342
342
|
table: String,
|
@@ -362,7 +362,9 @@ const Ot = /* @__PURE__ */ A(Mt, [["render", Nt]]), Et = {
|
|
362
362
|
label: "Вибрати поточні"
|
363
363
|
},
|
364
364
|
{ name: "clearAll", function: this.clearAll, label: "Жодного" }
|
365
|
-
]
|
365
|
+
],
|
366
|
+
es: null,
|
367
|
+
progress: 0
|
366
368
|
};
|
367
369
|
},
|
368
370
|
watch: {
|
@@ -376,26 +378,31 @@ const Ot = /* @__PURE__ */ A(Mt, [["render", Nt]]), Et = {
|
|
376
378
|
}
|
377
379
|
},
|
378
380
|
methods: {
|
381
|
+
async downloadBlob(e) {
|
382
|
+
const t = await L.get(e || "/api/export", {
|
383
|
+
params: {
|
384
|
+
table: this.table,
|
385
|
+
format: this.format,
|
386
|
+
cols: this.cols.join(","),
|
387
|
+
page: this.page,
|
388
|
+
filter: this.filters || null,
|
389
|
+
state: this.filterState || null,
|
390
|
+
custom: this.filterCustom || null
|
391
|
+
},
|
392
|
+
responseType: "blob"
|
393
|
+
}), n = new Blob([t.data], {
|
394
|
+
type: "application/octet-stream"
|
395
|
+
}), o = document.createElement("a");
|
396
|
+
o.href = URL.createObjectURL(n), o.download = `${this.table.split(".")[0]}.${this.format}`, document.body.appendChild(o), o.click(), document.body.removeChild(o), URL.revokeObjectURL(o.href), this.isSuccessTemplate = !0, this.$notify({
|
397
|
+
type: "success",
|
398
|
+
title: "Експорт",
|
399
|
+
message: "Файл успішно експортовано!"
|
400
|
+
});
|
401
|
+
},
|
379
402
|
async exportTable() {
|
380
|
-
var
|
381
|
-
if (!((e = this.cols) != null && e.length)) {
|
382
|
-
this.$notify({
|
383
|
-
type: "error",
|
384
|
-
title: "Помилка",
|
385
|
-
message: "Оберіть колонки для експорту!"
|
386
|
-
});
|
387
|
-
return;
|
388
|
-
}
|
389
|
-
if (!this.format) {
|
390
|
-
this.$notify({
|
391
|
-
type: "error",
|
392
|
-
title: "Помилка",
|
393
|
-
message: "Оберіть формат!"
|
394
|
-
});
|
395
|
-
return;
|
396
|
-
}
|
403
|
+
var t;
|
397
404
|
try {
|
398
|
-
|
405
|
+
await L.get("/api/export", {
|
399
406
|
params: {
|
400
407
|
table: this.table,
|
401
408
|
format: this.format,
|
@@ -403,31 +410,43 @@ const Ot = /* @__PURE__ */ A(Mt, [["render", Nt]]), Et = {
|
|
403
410
|
page: this.page,
|
404
411
|
filter: this.filters || null,
|
405
412
|
state: this.filterState || null,
|
406
|
-
custom: this.filterCustom || null
|
413
|
+
custom: this.filterCustom || null,
|
414
|
+
stream: !0
|
407
415
|
},
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
416
|
+
validateStatus: (n) => n === 200
|
417
|
+
// treat only 200 as file already
|
418
|
+
}), await this.downloadBlob();
|
419
|
+
return;
|
420
|
+
} catch {
|
421
|
+
}
|
422
|
+
const e = new URLSearchParams({
|
423
|
+
table: this.table,
|
424
|
+
format: this.format,
|
425
|
+
cols: this.cols.join(","),
|
426
|
+
page: this.page,
|
427
|
+
filter: this.filters || "",
|
428
|
+
state: this.filterState || "",
|
429
|
+
custom: this.filterCustom || ""
|
430
|
+
});
|
431
|
+
(t = this.es) == null || t.close(), this.es = new EventSource(`/api/export?${e.toString()}`), this.es.addEventListener("progress", (n) => {
|
432
|
+
try {
|
433
|
+
const { percent: o } = JSON.parse(n.data);
|
434
|
+
this.progress = o;
|
435
|
+
} catch {
|
436
|
+
console.log("progress", n.data);
|
418
437
|
}
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
console.
|
438
|
+
}), this.es.addEventListener("done", async (n) => {
|
439
|
+
this.es.close(), this.es = null;
|
440
|
+
const { url: o } = JSON.parse(n.data || "{}");
|
441
|
+
await this.downloadBlob(o);
|
442
|
+
}), this.es.onerror = (n) => {
|
443
|
+
var o;
|
444
|
+
console.error("SSE error", n), this.$notify({
|
426
445
|
type: "error",
|
427
446
|
title: "Помилка",
|
428
|
-
message: "
|
429
|
-
});
|
430
|
-
}
|
447
|
+
message: "Потік експорту перервано."
|
448
|
+
}), (o = this.es) == null || o.close();
|
449
|
+
};
|
431
450
|
},
|
432
451
|
selectFormat(e) {
|
433
452
|
this.format = e;
|
@@ -450,7 +469,7 @@ const Ot = /* @__PURE__ */ A(Mt, [["render", Nt]]), Et = {
|
|
450
469
|
}, Rt = {
|
451
470
|
key: 1,
|
452
471
|
class: "p-4"
|
453
|
-
}, Wt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Ht = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" },
|
472
|
+
}, Wt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Ht = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Jt = ["onClick"], Kt = {
|
454
473
|
key: 0,
|
455
474
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
456
475
|
}, Gt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Qt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Xt = { class: "mt-2 space-y-2" }, Yt = ["id", "onChange"], Zt = ["for"], es = {
|
@@ -462,76 +481,76 @@ const Ot = /* @__PURE__ */ A(Mt, [["render", Nt]]), Et = {
|
|
462
481
|
};
|
463
482
|
function ss(e, t, n, o, s, l) {
|
464
483
|
const h = p("IconExport"), g = p("IconSuccess"), b = p("VsCheckbox"), f = p("VsDialog");
|
465
|
-
return r(),
|
484
|
+
return r(), d($, null, [
|
466
485
|
a("button", {
|
467
|
-
onClick: t[0] || (t[0] = (
|
486
|
+
onClick: t[0] || (t[0] = (u) => s.isOpen = !0),
|
468
487
|
class: "py-2 max-h-[34px] px-2.5 md:inline-flex hidden 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"
|
469
488
|
}, [
|
470
489
|
x(h, {
|
471
490
|
height: "16",
|
472
491
|
width: "16"
|
473
492
|
}),
|
474
|
-
t[7] || (t[7] =
|
493
|
+
t[7] || (t[7] = z(" Експорт "))
|
475
494
|
]),
|
476
495
|
x(f, {
|
477
496
|
visible: s.isOpen,
|
478
|
-
"onUpdate:visible": t[6] || (t[6] = (
|
497
|
+
"onUpdate:visible": t[6] || (t[6] = (u) => s.isOpen = u),
|
479
498
|
title: "Експорт таблиці",
|
480
499
|
size: "small",
|
481
500
|
closeClickBack: !0
|
482
501
|
}, {
|
483
502
|
footer: P(() => [
|
484
|
-
s.isSuccessTemplate ? (r(),
|
503
|
+
s.isSuccessTemplate ? (r(), d("div", es, [
|
485
504
|
a("button", {
|
486
505
|
type: "button",
|
487
506
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
488
|
-
onClick: t[2] || (t[2] = (
|
507
|
+
onClick: t[2] || (t[2] = (u) => s.isOpen = !1)
|
489
508
|
}, " Закрити "),
|
490
509
|
a("button", {
|
491
510
|
type: "button",
|
492
511
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-blue-600 border border-blue-600 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500",
|
493
|
-
onClick: t[3] || (t[3] = (
|
512
|
+
onClick: t[3] || (t[3] = (u) => s.isSuccessTemplate = !1)
|
494
513
|
}, " Вигрузити ще ")
|
495
|
-
])) : (r(),
|
514
|
+
])) : (r(), d("div", ts, [
|
496
515
|
a("button", {
|
497
516
|
type: "button",
|
498
517
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
499
|
-
onClick: t[4] || (t[4] = (
|
518
|
+
onClick: t[4] || (t[4] = (u) => s.isOpen = !1)
|
500
519
|
}, " Скасувати "),
|
501
520
|
a("button", {
|
502
521
|
type: "button",
|
503
522
|
class: w(`inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-${l.color}-700 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-${l.color}-800 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-${l.color}-300 dark:focus:ring-${l.color}-500`),
|
504
|
-
onClick: t[5] || (t[5] = (...
|
523
|
+
onClick: t[5] || (t[5] = (...u) => l.exportTable && l.exportTable(...u))
|
505
524
|
}, " Завантажити таблицю ", 2)
|
506
525
|
]))
|
507
526
|
]),
|
508
527
|
default: P(() => [
|
509
|
-
s.isSuccessTemplate ? (r(),
|
528
|
+
s.isSuccessTemplate ? (r(), d("div", Ut, [
|
510
529
|
x(g, {
|
511
530
|
height: "100",
|
512
531
|
width: "100",
|
513
532
|
class: "text-green-200 mb-[20px]"
|
514
533
|
}),
|
515
534
|
t[8] || (t[8] = a("h2", null, "Звіт сформовано і збережено", -1))
|
516
|
-
])) : (r(),
|
535
|
+
])) : (r(), d("div", Rt, [
|
517
536
|
a("div", Wt, [
|
518
537
|
t[9] || (t[9] = a("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
519
538
|
a("div", Ht, [
|
520
|
-
(r(!0),
|
521
|
-
key:
|
522
|
-
onClick:
|
539
|
+
(r(!0), d($, null, V(s.actions, (u) => (r(), d("button", {
|
540
|
+
key: u == null ? void 0 : u.name,
|
541
|
+
onClick: u == null ? void 0 : u.function,
|
523
542
|
class: "inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"
|
524
543
|
}, [
|
525
544
|
a("span", {
|
526
|
-
class: w(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (
|
545
|
+
class: w(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (u == null ? void 0 : u.name) === s.activeAction }])
|
527
546
|
}, [
|
528
|
-
(
|
547
|
+
(u == null ? void 0 : u.name) === s.activeAction ? (r(), d("span", Kt)) : k("", !0)
|
529
548
|
], 2),
|
530
|
-
|
531
|
-
], 8,
|
549
|
+
z(" " + A(u == null ? void 0 : u.label), 1)
|
550
|
+
], 8, Jt))), 128))
|
532
551
|
]),
|
533
552
|
a("div", Gt, [
|
534
|
-
(r(!0),
|
553
|
+
(r(!0), d($, null, V(n.columns, (u, v) => (r(), d("div", {
|
535
554
|
class: "flex items-center",
|
536
555
|
key: v,
|
537
556
|
style: { width: "calc((100% - 10px) / 2)" }
|
@@ -540,8 +559,8 @@ function ss(e, t, n, o, s, l) {
|
|
540
559
|
class: "[&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0",
|
541
560
|
modelValue: s.cols,
|
542
561
|
"onUpdate:modelValue": t[1] || (t[1] = (m) => s.cols = m),
|
543
|
-
value:
|
544
|
-
label:
|
562
|
+
value: u == null ? void 0 : u.name,
|
563
|
+
label: u == null ? void 0 : u.ua
|
545
564
|
}, null, 8, ["modelValue", "value", "label"])
|
546
565
|
]))), 128))
|
547
566
|
])
|
@@ -549,7 +568,7 @@ function ss(e, t, n, o, s, l) {
|
|
549
568
|
a("div", Qt, [
|
550
569
|
t[10] || (t[10] = a("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть формат таблиці: ", -1)),
|
551
570
|
a("div", Xt, [
|
552
|
-
(r(!0),
|
571
|
+
(r(!0), d($, null, V(s.tableFormats, (u, v) => (r(), d("div", {
|
553
572
|
class: "flex items-center",
|
554
573
|
key: v
|
555
574
|
}, [
|
@@ -557,13 +576,13 @@ function ss(e, t, n, o, s, l) {
|
|
557
576
|
type: "radio",
|
558
577
|
name: "hs-pro-duecmfm",
|
559
578
|
class: "text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",
|
560
|
-
id:
|
561
|
-
onChange: (m) => l.selectFormat(
|
579
|
+
id: u,
|
580
|
+
onChange: (m) => l.selectFormat(u)
|
562
581
|
}, null, 40, Yt),
|
563
582
|
a("label", {
|
564
|
-
for:
|
583
|
+
for: u,
|
565
584
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
566
|
-
}, " Формат " +
|
585
|
+
}, " Формат " + A(u), 9, Zt)
|
567
586
|
]))), 128))
|
568
587
|
])
|
569
588
|
])
|
@@ -573,7 +592,7 @@ function ss(e, t, n, o, s, l) {
|
|
573
592
|
}, 8, ["visible"])
|
574
593
|
], 64);
|
575
594
|
}
|
576
|
-
const ns = /* @__PURE__ */
|
595
|
+
const ns = /* @__PURE__ */ T(Et, [["render", ss]]), as = {}, ls = {
|
577
596
|
xmlns: "http://www.w3.org/2000/svg",
|
578
597
|
viewBox: "0 0 24 24",
|
579
598
|
fill: "none",
|
@@ -584,7 +603,7 @@ const ns = /* @__PURE__ */ A(Et, [["render", ss]]), ls = {}, as = {
|
|
584
603
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
|
585
604
|
};
|
586
605
|
function rs(e, t, n, o, s, l) {
|
587
|
-
return r(),
|
606
|
+
return r(), d("svg", ls, t[0] || (t[0] = [
|
588
607
|
a("path", {
|
589
608
|
stroke: "none",
|
590
609
|
d: "M0 0h24v24H0z",
|
@@ -593,8 +612,8 @@ function rs(e, t, n, o, s, l) {
|
|
593
612
|
a("path", { d: "M5 12l14 0" }, null, -1)
|
594
613
|
]));
|
595
614
|
}
|
596
|
-
const os = /* @__PURE__ */
|
597
|
-
components: { IconPlus:
|
615
|
+
const os = /* @__PURE__ */ T(as, [["render", rs]]), is = {
|
616
|
+
components: { IconPlus: K, IconMinus: os },
|
598
617
|
props: {
|
599
618
|
title: String,
|
600
619
|
defaultValue: { type: Boolean, default: () => !1 }
|
@@ -602,18 +621,18 @@ const os = /* @__PURE__ */ A(ls, [["render", rs]]), is = {
|
|
602
621
|
data() {
|
603
622
|
return { expanded: this.defaultValue };
|
604
623
|
}
|
605
|
-
},
|
624
|
+
}, ds = { class: "hs-accordion" }, us = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, cs = { class: "text-sm font-medium" }, hs = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
606
625
|
function ps(e, t, n, o, s, l) {
|
607
626
|
const h = p("IconPlus"), g = p("IconMinus");
|
608
|
-
return r(),
|
627
|
+
return r(), d("div", null, [
|
609
628
|
a("div", null, [
|
610
|
-
a("div",
|
611
|
-
a("div",
|
629
|
+
a("div", ds, [
|
630
|
+
a("div", us, [
|
612
631
|
a("div", {
|
613
632
|
onClick: t[0] || (t[0] = (b) => s.expanded = !s.expanded),
|
614
633
|
class: "rounded-md cursor-pointer grow"
|
615
634
|
}, [
|
616
|
-
a("span", cs,
|
635
|
+
a("span", cs, A(n.title), 1)
|
617
636
|
]),
|
618
637
|
a("button", {
|
619
638
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
@@ -628,7 +647,7 @@ function ps(e, t, n, o, s, l) {
|
|
628
647
|
x(Q, { name: "fade" }, {
|
629
648
|
default: P(() => [
|
630
649
|
X(a("div", hs, [
|
631
|
-
|
650
|
+
ut(e.$slots, "default", {}, void 0, !0)
|
632
651
|
], 512), [
|
633
652
|
[Y, s.expanded]
|
634
653
|
])
|
@@ -639,7 +658,7 @@ function ps(e, t, n, o, s, l) {
|
|
639
658
|
])
|
640
659
|
]);
|
641
660
|
}
|
642
|
-
const bs = /* @__PURE__ */
|
661
|
+
const bs = /* @__PURE__ */ T(is, [["render", ps], ["__scopeId", "data-v-c6318482"]]), fs = {
|
643
662
|
components: {
|
644
663
|
AdminComponentIs: G,
|
645
664
|
AdminTree: bs,
|
@@ -657,18 +676,18 @@ const bs = /* @__PURE__ */ A(is, [["render", ps], ["__scopeId", "data-v-c6318482
|
|
657
676
|
class: "pl-2"
|
658
677
|
}, xs = { class: "flow-root mt-[10px]" }, ys = { class: "divide-y divide-gray-100 text-[12px]" }, vs = { class: "grid grid-cols-1 gap-1 py-3 even:bg-gray-50 sm:grid-cols-3 sm:gap-4" }, ks = { class: "font-medium text-gray-900" }, _s = { class: "text-gray-700 sm:col-span-2" };
|
659
678
|
function Cs(e, t, n, o, s, l) {
|
660
|
-
var f,
|
679
|
+
var f, u, v, m;
|
661
680
|
const h = p("AdminComponentIs"), g = p("VsWidgetFileList"), b = p("VsNoData");
|
662
|
-
return r(),
|
681
|
+
return r(), d("div", gs, [
|
663
682
|
t[0] || (t[0] = a("div", { class: "pl-[10px] py-[9px]" }, [
|
664
683
|
a("h2", { class: "text-sm font-medium text-center" }, "Інформація про об'єкт")
|
665
684
|
], -1)),
|
666
685
|
a("div", ms, [
|
667
|
-
(
|
686
|
+
(u = (f = e.$route) == null ? void 0 : f.query) != null && u.card ? (r(), d($, { key: 0 }, [
|
668
687
|
a("div", xs, [
|
669
688
|
a("dl", ys, [
|
670
|
-
(r(!0),
|
671
|
-
a("dt", ks,
|
689
|
+
(r(!0), d($, null, V(n.columns, (c) => (r(), d("div", vs, [
|
690
|
+
a("dt", ks, A((c == null ? void 0 : c.ua) || (c == null ? void 0 : c.title)), 1),
|
672
691
|
a("dd", _s, [
|
673
692
|
x(h, {
|
674
693
|
row: n.row,
|
@@ -691,7 +710,7 @@ function Cs(e, t, n, o, s, l) {
|
|
691
710
|
])
|
692
711
|
]);
|
693
712
|
}
|
694
|
-
const ws = /* @__PURE__ */
|
713
|
+
const ws = /* @__PURE__ */ T(fs, [["render", Cs]]), $s = {
|
695
714
|
emits: ["filterChange"],
|
696
715
|
props: {
|
697
716
|
scheme: { type: Object },
|
@@ -712,10 +731,10 @@ const ws = /* @__PURE__ */ A(fs, [["render", Cs]]), $s = {
|
|
712
731
|
}, Ss = {
|
713
732
|
key: 0,
|
714
733
|
class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
|
715
|
-
},
|
716
|
-
function
|
734
|
+
}, As = { class: "filter-content h-screen bg-white w-[400px] overflow-x-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" };
|
735
|
+
function Ts(e, t, n, o, s, l) {
|
717
736
|
const h = p("IconFilter"), g = p("VsFilter");
|
718
|
-
return r(),
|
737
|
+
return r(), d($, null, [
|
719
738
|
a("button", {
|
720
739
|
onClick: t[0] || (t[0] = (b) => s.isFilters = !s.isFilters),
|
721
740
|
class: "py-2 px-2.5 max-h-[34px] 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"
|
@@ -724,8 +743,8 @@ function As(e, t, n, o, s, l) {
|
|
724
743
|
height: "16",
|
725
744
|
width: "16"
|
726
745
|
}),
|
727
|
-
t[4] || (t[4] =
|
728
|
-
n.onFilters ? (r(),
|
746
|
+
t[4] || (t[4] = z(" Фільтри ")),
|
747
|
+
n.onFilters ? (r(), d("span", Ss, A(n.onFilters), 1)) : k("", !0)
|
729
748
|
]),
|
730
749
|
x(Q, { name: "fade" }, {
|
731
750
|
default: P(() => {
|
@@ -737,7 +756,7 @@ function As(e, t, n, o, s, l) {
|
|
737
756
|
style: { height: "100vh" },
|
738
757
|
class: "fixed filter-container top-0 flex justify-end items-center z-[12] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.2)]"
|
739
758
|
}, [
|
740
|
-
a("div",
|
759
|
+
a("div", As, [
|
741
760
|
(b = n.scheme) != null && b.length ? (r(), y(g, {
|
742
761
|
key: 0,
|
743
762
|
ref: "filter",
|
@@ -745,14 +764,13 @@ function As(e, t, n, o, s, l) {
|
|
745
764
|
layout: "default",
|
746
765
|
"apply-vue-router": "",
|
747
766
|
history: "",
|
748
|
-
token: n.table,
|
749
767
|
name: "filter",
|
750
768
|
footer: !0,
|
751
769
|
background: !0,
|
752
770
|
onFilterChange: t[1] || (t[1] = (f) => e.$emit("filterChange", f)),
|
753
771
|
closeFilterBtn: !0,
|
754
772
|
onFilterClose: t[2] || (t[2] = (f) => s.isFilters = !1)
|
755
|
-
}, null, 8, ["scheme"
|
773
|
+
}, null, 8, ["scheme"])) : k("", !0)
|
756
774
|
])
|
757
775
|
], 512), [
|
758
776
|
[Y, s.isFilters]
|
@@ -764,7 +782,7 @@ function As(e, t, n, o, s, l) {
|
|
764
782
|
})
|
765
783
|
], 64);
|
766
784
|
}
|
767
|
-
const Is = /* @__PURE__ */
|
785
|
+
const Is = /* @__PURE__ */ T($s, [["render", Ts]]), Ds = {
|
768
786
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
769
787
|
}, Ps = {
|
770
788
|
class: "relative flex space-x-1 mb-[20px] after:absolute after:w-[99%] after:bottom-0 after:inset-x-0 after:border-b-2 after:border-gray-200 dark:after:border-neutral-700",
|
@@ -773,16 +791,16 @@ const Is = /* @__PURE__ */ A($s, [["render", As]]), Ds = {
|
|
773
791
|
"aria-orientation": "horizontal"
|
774
792
|
}, Vs = ["onClick"];
|
775
793
|
function Fs(e, t, n, o, s, l) {
|
776
|
-
return r(),
|
777
|
-
(r(!0),
|
794
|
+
return r(), d("nav", Ps, [
|
795
|
+
(r(!0), d($, null, V(n.tabsList, (h) => (r(), d("button", {
|
778
796
|
onClick: (g) => e.$emit("update:filterState", h == null ? void 0 : h.name),
|
779
797
|
class: w(["hs-tab-active:after:bg-gray-800 hs-tab-active:text-gray-800 px-2.5 py-1.5 mb-2 relative inline-flex justify-center items-center gap-x-2 hover:bg-gray-100 text-gray-500 hover:text-gray-800 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 after:absolute after:-bottom-2 after:inset-x-0 after:z-10 after:h-0.5 after:pointer-events-none dark:hs-tab-active:text-neutral-200 dark:hs-tab-active:after:bg-neutral-400 dark:text-neutral-500 dark:hover:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 active", {
|
780
798
|
" font-semibold after:absolute after:bottom-[-8px] after:left-2.5 after:right-2.5 after:z-10 after:h-0.5 after:bg-gray-800": (h == null ? void 0 : h.name) === n.filterState
|
781
799
|
}])
|
782
|
-
},
|
800
|
+
}, A(h == null ? void 0 : h.label), 11, Vs))), 256))
|
783
801
|
]);
|
784
802
|
}
|
785
|
-
const js = /* @__PURE__ */
|
803
|
+
const js = /* @__PURE__ */ T(Ds, [["render", Fs]]), Ls = {}, zs = {
|
786
804
|
xmlns: "http://www.w3.org/2000/svg",
|
787
805
|
viewBox: "0 0 24 24",
|
788
806
|
fill: "none",
|
@@ -793,7 +811,7 @@ const js = /* @__PURE__ */ A(Ds, [["render", Fs]]), Ls = {}, zs = {
|
|
793
811
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
794
812
|
};
|
795
813
|
function qs(e, t, n, o, s, l) {
|
796
|
-
return r(),
|
814
|
+
return r(), d("svg", zs, t[0] || (t[0] = [
|
797
815
|
a("path", {
|
798
816
|
stroke: "none",
|
799
817
|
d: "M0 0h24v24H0z",
|
@@ -802,7 +820,7 @@ function qs(e, t, n, o, s, l) {
|
|
802
820
|
a("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)
|
803
821
|
]));
|
804
822
|
}
|
805
|
-
const Ms = /* @__PURE__ */
|
823
|
+
const Ms = /* @__PURE__ */ T(Ls, [["render", qs]]), Bs = {
|
806
824
|
components: { IconFilter2: Ms, IconCheck2: st },
|
807
825
|
props: { filterCustom: String, customList: Array }
|
808
826
|
}, Ns = { class: "py-2 max-h-[34px] 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" }, Os = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, Es = ["onClick"], Us = { class: "text-sm text-gray-800" };
|
@@ -822,15 +840,15 @@ function Rs(e, t, n, o, s, l) {
|
|
822
840
|
]),
|
823
841
|
default: P(() => [
|
824
842
|
a("div", Os, [
|
825
|
-
(r(!0),
|
843
|
+
(r(!0), d($, null, V(n.customList, (f, u) => (r(), d("button", {
|
826
844
|
onClick: (v) => {
|
827
845
|
var m;
|
828
846
|
e.$emit("update:filterCustom", f == null ? void 0 : f.name), (m = e.$refs) == null || m.popover.togglePopover();
|
829
847
|
},
|
830
|
-
key:
|
848
|
+
key: u,
|
831
849
|
class: w(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": n.filterCustom === (f == null ? void 0 : f.name) }])
|
832
850
|
}, [
|
833
|
-
a("span", Us,
|
851
|
+
a("span", Us, A(f == null ? void 0 : f.label), 1),
|
834
852
|
n.filterCustom === (f == null ? void 0 : f.name) ? (r(), y(g, {
|
835
853
|
key: 0,
|
836
854
|
class: "ml-auto size-3 shrink-0"
|
@@ -839,8 +857,8 @@ function Rs(e, t, n, o, s, l) {
|
|
839
857
|
a("button", {
|
840
858
|
class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
|
841
859
|
onClick: t[0] || (t[0] = (f) => {
|
842
|
-
var
|
843
|
-
e.$emit("update:filterCustom", void 0), (
|
860
|
+
var u;
|
861
|
+
e.$emit("update:filterCustom", void 0), (u = e.$refs) == null || u.popover.togglePopover();
|
844
862
|
})
|
845
863
|
}, " Скинути фільтри ")
|
846
864
|
])
|
@@ -848,15 +866,15 @@ function Rs(e, t, n, o, s, l) {
|
|
848
866
|
_: 1
|
849
867
|
}, 512);
|
850
868
|
}
|
851
|
-
const Ws = /* @__PURE__ */
|
869
|
+
const Ws = /* @__PURE__ */ T(Bs, [["render", Rs]]), Hs = { class: "flex items-center gap-x-2" }, Js = {
|
852
870
|
__name: "admin-table-custom-buttons",
|
853
871
|
props: {
|
854
872
|
slots: Object,
|
855
873
|
data: Object
|
856
874
|
},
|
857
875
|
setup(e) {
|
858
|
-
var g, b, f,
|
859
|
-
const { asyncTemplateSlot: t } = (v = (
|
876
|
+
var g, b, f, u, v;
|
877
|
+
const { asyncTemplateSlot: t } = (v = (u = (f = (b = (g = Ue()) == null ? void 0 : g.appContext) == null ? void 0 : b.app) == null ? void 0 : f.config) == null ? void 0 : u.globalProperties) == null ? void 0 : v.utils, n = H(""), o = H(""), s = e, l = () => {
|
860
878
|
var m, c, _, C, I;
|
861
879
|
if ((m = s.slots) != null && m.panelLeft || (o.value = "div"), (_ = (c = s.slots) == null ? void 0 : c.panelLeft) != null && _.includes("<")) {
|
862
880
|
const D = t("PanelLeft", (C = s.slots) == null ? void 0 : C.panelLeft, [
|
@@ -875,12 +893,12 @@ const Ws = /* @__PURE__ */ A(Bs, [["render", Rs]]), Hs = { class: "flex items-ce
|
|
875
893
|
} else
|
876
894
|
n.value = (I = s.slots) == null ? void 0 : I.panelRight;
|
877
895
|
};
|
878
|
-
return l(), h(), (m, c) => (r(),
|
879
|
-
(r(), y(
|
880
|
-
(r(), y(
|
896
|
+
return l(), h(), (m, c) => (r(), d("div", Hs, [
|
897
|
+
(r(), y(J(o.value), { data: e.data }, null, 8, ["data"])),
|
898
|
+
(r(), y(J(n.value), { data: e.data }, null, 8, ["data"]))
|
881
899
|
]));
|
882
900
|
}
|
883
|
-
},
|
901
|
+
}, Ks = {
|
884
902
|
__name: "admin-custom-button-add",
|
885
903
|
props: {
|
886
904
|
slots: Object
|
@@ -889,17 +907,17 @@ const Ws = /* @__PURE__ */ A(Bs, [["render", Rs]]), Hs = { class: "flex items-ce
|
|
889
907
|
var l, h, g, b, f;
|
890
908
|
const { asyncTemplateSlot: t } = (f = (b = (g = (h = (l = Ue()) == null ? void 0 : l.appContext) == null ? void 0 : h.app) == null ? void 0 : g.config) == null ? void 0 : b.globalProperties) == null ? void 0 : f.utils, n = H(""), o = e;
|
891
909
|
return (() => {
|
892
|
-
var
|
893
|
-
if ((
|
910
|
+
var u, v, m, c, _;
|
911
|
+
if ((u = o.slots) != null && u.addButton || (n.value = "div"), (m = (v = o.slots) == null ? void 0 : v.addButton) != null && m.includes("<")) {
|
894
912
|
const C = t("addButton", (c = o.slots) == null ? void 0 : c.addButton, [
|
895
913
|
"IconPlus"
|
896
914
|
]);
|
897
915
|
n.value = C;
|
898
916
|
} else
|
899
917
|
n.value = (_ = o.slots) == null ? void 0 : _.addButton;
|
900
|
-
})(), (
|
918
|
+
})(), (u, v) => n.value ? (r(), y(J(n.value), {
|
901
919
|
key: 0,
|
902
|
-
IconPlus:
|
920
|
+
IconPlus: K
|
903
921
|
})) : k("", !0);
|
904
922
|
}
|
905
923
|
}, Gs = {
|
@@ -916,18 +934,18 @@ const Ws = /* @__PURE__ */ A(Bs, [["render", Rs]]), Hs = { class: "flex items-ce
|
|
916
934
|
} }
|
917
935
|
},
|
918
936
|
setup(e) {
|
919
|
-
return (t, n) => (r(),
|
920
|
-
(r(!0),
|
937
|
+
return (t, n) => (r(), d("tr", null, [
|
938
|
+
(r(!0), d($, null, V(e.columns, (o) => {
|
921
939
|
var s;
|
922
|
-
return r(),
|
940
|
+
return r(), d($, {
|
923
941
|
key: o == null ? void 0 : o.name
|
924
942
|
}, [
|
925
|
-
(s = e.agg) != null && s[o == null ? void 0 : o.name] ? (r(),
|
943
|
+
(s = e.agg) != null && s[o == null ? void 0 : o.name] ? (r(), d("td", Gs, [
|
926
944
|
x(G, {
|
927
945
|
column: o,
|
928
946
|
row: e.agg
|
929
947
|
}, null, 8, ["column", "row"])
|
930
|
-
])) : (r(),
|
948
|
+
])) : (r(), d("td", Qs))
|
931
949
|
], 64);
|
932
950
|
}), 128))
|
933
951
|
]));
|
@@ -943,7 +961,7 @@ const Ws = /* @__PURE__ */ A(Bs, [["render", Rs]]), Hs = { class: "flex items-ce
|
|
943
961
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
|
944
962
|
};
|
945
963
|
function en(e, t, n, o, s, l) {
|
946
|
-
return r(),
|
964
|
+
return r(), d("svg", Zs, t[0] || (t[0] = [
|
947
965
|
a("path", {
|
948
966
|
stroke: "none",
|
949
967
|
d: "M0 0h24v24H0z",
|
@@ -952,7 +970,7 @@ function en(e, t, n, o, s, l) {
|
|
952
970
|
a("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
953
971
|
]));
|
954
972
|
}
|
955
|
-
const tn = /* @__PURE__ */
|
973
|
+
const tn = /* @__PURE__ */ T(Ys, [["render", en]]), sn = ht({
|
956
974
|
components: { IconChevronDown: nt, IconCheck: tn },
|
957
975
|
props: {
|
958
976
|
total: { type: Number, default: () => 0 },
|
@@ -1038,13 +1056,13 @@ const tn = /* @__PURE__ */ A(Ys, [["render", en]]), sn = ht({
|
|
1038
1056
|
e.preventDefault(), e.target.blur();
|
1039
1057
|
}
|
1040
1058
|
}
|
1041
|
-
}), nn = { class: "flex items-center w-full" },
|
1059
|
+
}), nn = { class: "flex items-center w-full" }, an = { class: "flex items-center mx-[8px]" }, ln = { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, rn = {
|
1042
1060
|
key: 0,
|
1043
1061
|
class: "flex items-center justify-center ml-3 gap-x-5"
|
1044
|
-
}, on = { class: "relative" },
|
1062
|
+
}, on = { class: "relative" }, dn = { class: "z-50 bg-white shadow-md rounded-lg p-1 space-y-0.5 dark:bg-neutral-800 dark:border dark:border-neutral-700 dark:divide-neutral-700 absolute bottom-[100%]" }, un = ["onClick"];
|
1045
1063
|
function cn(e, t, n, o, s, l) {
|
1046
1064
|
const h = p("IconChevronDown"), g = p("IconCheck");
|
1047
|
-
return r(),
|
1065
|
+
return r(), d("nav", nn, [
|
1048
1066
|
a("button", {
|
1049
1067
|
type: "button",
|
1050
1068
|
onClick: t[0] || (t[0] = (...b) => e.handleClickPrev && e.handleClickPrev(...b)),
|
@@ -1056,16 +1074,16 @@ function cn(e, t, n, o, s, l) {
|
|
1056
1074
|
class: "rotate-90"
|
1057
1075
|
})
|
1058
1076
|
], 2),
|
1059
|
-
a("div",
|
1077
|
+
a("div", an, [
|
1060
1078
|
a("span", {
|
1061
1079
|
ref: "currentPage",
|
1062
1080
|
contenteditable: "true",
|
1063
1081
|
onKeydown: t[1] || (t[1] = pt((...b) => e.keydownEnter && e.keydownEnter(...b), ["enter"])),
|
1064
1082
|
onBlur: t[2] || (t[2] = (b) => e.handleSetPage(b.target.innerText)),
|
1065
1083
|
class: "min-h-[38px] max-h-[38px] overflow-hidden min-w-[38px] flex justify-center items-center bg-stone-100 text-stone-800 py-2 px-3 outline-blue-600 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:text-white"
|
1066
|
-
},
|
1084
|
+
}, A(e.page), 545),
|
1067
1085
|
t[5] || (t[5] = a("span", { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
|
1068
|
-
a("span",
|
1086
|
+
a("span", ln, A(e.pagesCount), 1)
|
1069
1087
|
]),
|
1070
1088
|
a("button", {
|
1071
1089
|
type: "button",
|
@@ -1078,32 +1096,32 @@ function cn(e, t, n, o, s, l) {
|
|
1078
1096
|
class: "-rotate-90"
|
1079
1097
|
})
|
1080
1098
|
], 2),
|
1081
|
-
e.pageSizes.length ? (r(),
|
1099
|
+
e.pageSizes.length ? (r(), d("div", rn, [
|
1082
1100
|
a("div", on, [
|
1083
|
-
X(a("div",
|
1084
|
-
(r(!0),
|
1101
|
+
X(a("div", dn, [
|
1102
|
+
(r(!0), d($, null, V(e.pageSizes, (b) => (r(), d("button", {
|
1085
1103
|
type: "button",
|
1086
1104
|
class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
|
1087
1105
|
onClick: (f) => e.pageSizeLocal = b
|
1088
1106
|
}, [
|
1089
|
-
|
1107
|
+
z(A(b) + " ", 1),
|
1090
1108
|
b === e.pageSizeLocal ? (r(), y(g, {
|
1091
1109
|
key: 0,
|
1092
1110
|
width: "14",
|
1093
1111
|
height: "14",
|
1094
1112
|
class: "text-blue-600"
|
1095
1113
|
})) : k("", !0)
|
1096
|
-
], 8,
|
1114
|
+
], 8, un))), 256))
|
1097
1115
|
], 512), [
|
1098
1116
|
[Y, e.isDropdownOpen]
|
1099
1117
|
]),
|
1100
|
-
e.pageSizes.length ? (r(),
|
1118
|
+
e.pageSizes.length ? (r(), d("button", {
|
1101
1119
|
key: 0,
|
1102
1120
|
type: "button",
|
1103
1121
|
class: "text-sm h-[32px] min-w-8 py-3 px-3.5 inline-flex items-center gap-x-1 rounded-lg border border-gray-200 text-gray-800 shadow-sm hover:bg-gray-50 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
1104
1122
|
onClick: t[4] || (t[4] = (b) => e.isDropdownOpen = !e.isDropdownOpen)
|
1105
1123
|
}, [
|
1106
|
-
|
1124
|
+
z(A(e.pageSizeLocal) + " ", 1),
|
1107
1125
|
x(h, {
|
1108
1126
|
height: "16",
|
1109
1127
|
width: "16"
|
@@ -1113,7 +1131,7 @@ function cn(e, t, n, o, s, l) {
|
|
1113
1131
|
])) : k("", !0)
|
1114
1132
|
]);
|
1115
1133
|
}
|
1116
|
-
const hn = /* @__PURE__ */
|
1134
|
+
const hn = /* @__PURE__ */ T(sn, [["render", cn]]), pn = {
|
1117
1135
|
props: { table: String, title: String, search: String },
|
1118
1136
|
components: {
|
1119
1137
|
AdminTableControl: Ft,
|
@@ -1122,16 +1140,16 @@ const hn = /* @__PURE__ */ A(sn, [["render", cn]]), pn = {
|
|
1122
1140
|
AdminTableColumnsHidden: it,
|
1123
1141
|
AdminTableColumn: yt,
|
1124
1142
|
AdminNodata: ot,
|
1125
|
-
IconPlus:
|
1143
|
+
IconPlus: K,
|
1126
1144
|
IconSearch: rt,
|
1127
1145
|
AdminTableCardInfo: ws,
|
1128
|
-
IconOpenCard:
|
1146
|
+
IconOpenCard: lt,
|
1129
1147
|
AdminComponentIs: G,
|
1130
1148
|
AdminTableFilters: Is,
|
1131
1149
|
AdminTableTabs: js,
|
1132
1150
|
AdminTableCustomFilters: Ws,
|
1133
|
-
AdminTableCustomButtons:
|
1134
|
-
AdminCustomButtonAdd:
|
1151
|
+
AdminTableCustomButtons: Js,
|
1152
|
+
AdminCustomButtonAdd: Ks,
|
1135
1153
|
AdminTableTotalsList: Xs,
|
1136
1154
|
AdminTablePagination: hn
|
1137
1155
|
},
|
@@ -1201,7 +1219,7 @@ const hn = /* @__PURE__ */ A(sn, [["render", cn]]), pn = {
|
|
1201
1219
|
// await this.getTableData();
|
1202
1220
|
// },
|
1203
1221
|
searchValue: {
|
1204
|
-
handler:
|
1222
|
+
handler: at(async function(e) {
|
1205
1223
|
var t;
|
1206
1224
|
this.page = 1, await this.getTableData(), this.$router.push({
|
1207
1225
|
...this.$route,
|
@@ -1254,8 +1272,8 @@ const hn = /* @__PURE__ */ A(sn, [["render", cn]]), pn = {
|
|
1254
1272
|
},
|
1255
1273
|
methods: {
|
1256
1274
|
async checkUrlMounted() {
|
1257
|
-
var e, t, n, o, s, l, h, g, b, f,
|
1258
|
-
this.page = ((t = (e = this.$route) == null ? void 0 : e.query) == null ? void 0 : t.page) || 1, this.limit = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.limit) || 20, (l = (s = this.$route) == null ? void 0 : s.query) != null && l.filter && (this.filters = ((b = decodeURI((g = (h = this.$route) == null ? void 0 : h.query) == null ? void 0 : g.filter)) == null ? void 0 : b.replaceAll("+", " ")) || null), this.filters && (this.onFilters = ((
|
1275
|
+
var e, t, n, o, s, l, h, g, b, f, u, v, m, c, _, C, I, D, S, F, q;
|
1276
|
+
this.page = ((t = (e = this.$route) == null ? void 0 : e.query) == null ? void 0 : t.page) || 1, this.limit = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.limit) || 20, (l = (s = this.$route) == null ? void 0 : s.query) != null && l.filter && (this.filters = ((b = decodeURI((g = (h = this.$route) == null ? void 0 : h.query) == null ? void 0 : g.filter)) == null ? void 0 : b.replaceAll("+", " ")) || null), this.filters && (this.onFilters = ((u = (f = this.filters) == null ? void 0 : f.split("=")) == null ? void 0 : u.length) - 1), this.filterState = ((m = (v = this.$route) == null ? void 0 : v.query) == null ? void 0 : m.state) || null, this.filterCustom = ((_ = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : _.custom) || null, this.searchValue = ((I = (C = this.$route) == null ? void 0 : C.query) == null ? void 0 : I.search) || "", this.visibleColumns = ((F = (S = (D = this.$route) == null ? void 0 : D.query) == null ? void 0 : S.columns) == null ? void 0 : F.split(",")) || [], (q = this.$route) != null && q.query.card && (this.isVisibleCardInfo = !0);
|
1259
1277
|
},
|
1260
1278
|
rowWidth(e) {
|
1261
1279
|
var n, o;
|
@@ -1269,9 +1287,9 @@ const hn = /* @__PURE__ */ A(sn, [["render", cn]]), pn = {
|
|
1269
1287
|
this.page = 1, this.visibleColumns = [], this.filterCustom = null, this.filterState = null, this.isVisibleCardInfo = !1, this.filterScheme = null, this.filters = null, this.onFilters = 0, this.searchValue = "";
|
1270
1288
|
},
|
1271
1289
|
async getTableData() {
|
1272
|
-
var e, t, n, o, s, l, h, g, b, f,
|
1290
|
+
var e, t, n, o, s, l, h, g, b, f, u;
|
1273
1291
|
try {
|
1274
|
-
const { data: v } = await
|
1292
|
+
const { data: v } = await L.get(`/api/template/table/${this.table}`), m = await L.get(`/api/table-data/${this.table}`, {
|
1275
1293
|
params: {
|
1276
1294
|
page: this.page,
|
1277
1295
|
search: this.searchValue || null,
|
@@ -1288,12 +1306,12 @@ const hn = /* @__PURE__ */ A(sn, [["render", cn]]), pn = {
|
|
1288
1306
|
}, this.initialHiddenColumns = (l = (s = (o = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : o.filter((c) => (c == null ? void 0 : c.hidden) !== !0)) == null ? void 0 : s.map((c) => c == null ? void 0 : c.name)) == null ? void 0 : l.join(","), (h = this.visibleColumns) != null && h.length ? (g = this.tableData) == null || g.columns.forEach((c) => {
|
1289
1307
|
var _;
|
1290
1308
|
(_ = this.visibleColumns) != null && _.includes(c == null ? void 0 : c.name) ? c.hidden = !1 : c.hidden = !0;
|
1291
|
-
}) : this.visibleColumns = (
|
1309
|
+
}) : this.visibleColumns = (u = (f = (b = this.tableData) == null ? void 0 : b.columns) == null ? void 0 : f.filter((c) => (c == null ? void 0 : c.hidden) !== !0)) == null ? void 0 : u.map((c) => c == null ? void 0 : c.name), setTimeout(() => {
|
1292
1310
|
var c, _;
|
1293
1311
|
(_ = (c = this.tableData) == null ? void 0 : c.columns) == null || _.forEach(({ name: C }) => {
|
1294
|
-
var I, D, S, F,
|
1312
|
+
var I, D, S, F, q, E;
|
1295
1313
|
(D = (I = this.columnsWidth) == null ? void 0 : I[C]) != null && D.ref && (this.columnsWidth[C].width = parseInt(
|
1296
|
-
(E = (
|
1314
|
+
(E = (q = (F = (S = this.columnsWidth) == null ? void 0 : S[C]) == null ? void 0 : F.ref) == null ? void 0 : q.getBoundingClientRect()) == null ? void 0 : E.width
|
1297
1315
|
) + "px");
|
1298
1316
|
});
|
1299
1317
|
});
|
@@ -1303,7 +1321,7 @@ const hn = /* @__PURE__ */ A(sn, [["render", cn]]), pn = {
|
|
1303
1321
|
async getFilters() {
|
1304
1322
|
var e;
|
1305
1323
|
try {
|
1306
|
-
const { data: t } = await
|
1324
|
+
const { data: t } = await L.get(`/api/table-filter/${this.table}`);
|
1307
1325
|
this.filterScheme = (e = t == null ? void 0 : t.list) == null ? void 0 : e.map((n) => ({
|
1308
1326
|
...n,
|
1309
1327
|
label: (n == null ? void 0 : n.label) || (n == null ? void 0 : n.ua)
|
@@ -1354,14 +1372,14 @@ const hn = /* @__PURE__ */ A(sn, [["render", cn]]), pn = {
|
|
1354
1372
|
}, bn = { class: "w-[calc(100vw - 320px)] bg-gray-100" }, fn = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white rounded-xl" }, gn = { class: "text-lg font-semibold text-gray-800 dark:text-neutral-200" }, mn = { class: "bg-white w-full rounded-xl p-[20px] pr-0" }, xn = { class: "flex" }, yn = { class: "flex gap-[6px] ml-auto" }, vn = { class: "inline-block w-full align-middle" }, kn = { class: "sticky top-[-1px] z-[2] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, _n = { class: "right-0" }, Cn = {
|
1355
1373
|
key: 0,
|
1356
1374
|
class: "w-[70px] sticky right-0 top-0"
|
1357
|
-
}, wn = { class: "divide-y divide-gray-200 z-[1] relative text-gray-600" }, $n = ["onClick"], Sn = ["onClick"],
|
1375
|
+
}, wn = { class: "divide-y divide-gray-200 z-[1] relative text-gray-600" }, $n = ["onClick"], Sn = ["onClick"], An = ["onClick"], Tn = { class: "flex items-center justify-start w-full px-1 py-2" }, In = { class: "w-[200px] md:inline-flex hidden" }, Dn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Pn = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Vn = { key: 0 };
|
1358
1376
|
function Fn(e, t, n, o, s, l) {
|
1359
|
-
var Z, ee, te, se, ne,
|
1360
|
-
const h = p("AdminCustomButtonAdd"), g = p("IconPlus"), b = p("router-link"), f = p("AdminTableTabs"),
|
1361
|
-
return r(),
|
1377
|
+
var Z, ee, te, se, ne, ae, le, re, oe, ie, de, ue, ce, he, pe, be, fe, ge, me, xe, ye, ve, ke, _e, Ce, we, $e, Se, Ae, Te, Ie, De, Pe;
|
1378
|
+
const h = p("AdminCustomButtonAdd"), g = p("IconPlus"), b = p("router-link"), f = p("AdminTableTabs"), u = p("IconSearch"), v = p("VsText"), m = p("AdminTableCustomButtons"), c = p("AdminTableCustomFilters"), _ = p("AdminTableColumnsHidden"), C = p("AdminTableExport"), I = p("AdminTableFilters"), D = p("IconOpenCard"), S = p("AdminTableColumn"), F = p("AdminComponentIs"), q = p("AdminTableControl"), E = p("AdminTableTotalsList"), Re = p("AdminNodata"), We = p("AdminTablePagination"), He = p("AdminTableCardInfo");
|
1379
|
+
return r(), d("div", bn, [
|
1362
1380
|
a("div", fn, [
|
1363
|
-
a("h2", gn,
|
1364
|
-
l.isForm ? (r(),
|
1381
|
+
a("h2", gn, A(n.title), 1),
|
1382
|
+
l.isForm ? (r(), d($, { key: 0 }, [
|
1365
1383
|
(ee = (Z = s.tableData) == null ? void 0 : Z.slots) != null && ee.addButton ? (r(), y(h, {
|
1366
1384
|
key: 0,
|
1367
1385
|
slots: (te = s.tableData) == null ? void 0 : te.slots
|
@@ -1375,7 +1393,7 @@ function Fn(e, t, n, o, s, l) {
|
|
1375
1393
|
height: "16",
|
1376
1394
|
width: "16"
|
1377
1395
|
}),
|
1378
|
-
t[5] || (t[5] =
|
1396
|
+
t[5] || (t[5] = z(" Додати "))
|
1379
1397
|
]),
|
1380
1398
|
_: 1,
|
1381
1399
|
__: [5]
|
@@ -1384,12 +1402,12 @@ function Fn(e, t, n, o, s, l) {
|
|
1384
1402
|
]),
|
1385
1403
|
a("div", {
|
1386
1404
|
style: W({
|
1387
|
-
height: ((
|
1405
|
+
height: ((ae = e.$adminSettings) == null ? void 0 : ae.header) === !1 ? "calc(100vh - 91px)" : "calc(100vh - 155px)"
|
1388
1406
|
}),
|
1389
1407
|
class: "bg-gray-100 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
|
1390
1408
|
}, [
|
1391
1409
|
a("div", mn, [
|
1392
|
-
(re = (
|
1410
|
+
(re = (le = s.tableData) == null ? void 0 : le.filterState) != null && re.length ? (r(), y(f, {
|
1393
1411
|
key: 0,
|
1394
1412
|
tabsList: (oe = s.tableData) == null ? void 0 : oe.filterState,
|
1395
1413
|
filterState: s.filterState,
|
@@ -1402,7 +1420,7 @@ function Fn(e, t, n, o, s, l) {
|
|
1402
1420
|
a("div", {
|
1403
1421
|
class: w(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1404
1422
|
}, [
|
1405
|
-
x(
|
1423
|
+
x(u, {
|
1406
1424
|
height: "14",
|
1407
1425
|
width: "14",
|
1408
1426
|
class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
|
@@ -1418,9 +1436,9 @@ function Fn(e, t, n, o, s, l) {
|
|
1418
1436
|
(ie = s.tableData) != null && ie.slots ? (r(), y(m, {
|
1419
1437
|
key: 0,
|
1420
1438
|
data: s.tableData,
|
1421
|
-
slots: (
|
1439
|
+
slots: (de = s.tableData) == null ? void 0 : de.slots
|
1422
1440
|
}, null, 8, ["data", "slots"])) : k("", !0),
|
1423
|
-
(ce = (
|
1441
|
+
(ce = (ue = s.tableData) == null ? void 0 : ue.filterCustom) != null && ce.length ? (r(), y(c, {
|
1424
1442
|
key: 1,
|
1425
1443
|
customList: (he = s.tableData) == null ? void 0 : he.filterCustom,
|
1426
1444
|
filterCustom: s.filterCustom,
|
@@ -1466,13 +1484,13 @@ function Fn(e, t, n, o, s, l) {
|
|
1466
1484
|
class: "overflow-x-auto w-full [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"
|
1467
1485
|
}, [
|
1468
1486
|
a("div", vn, [
|
1469
|
-
l.isNoData ? (r(), y(Re, { key: 1 })) : (r(),
|
1487
|
+
l.isNoData ? (r(), y(Re, { key: 1 })) : (r(), d("table", {
|
1470
1488
|
key: 0,
|
1471
1489
|
class: w([l.fontSize, "relative min-w-full my-2 divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"])
|
1472
1490
|
}, [
|
1473
1491
|
a("thead", kn, [
|
1474
1492
|
a("tr", _n, [
|
1475
|
-
(r(!0),
|
1493
|
+
(r(!0), d($, null, V(l.columns, (i) => {
|
1476
1494
|
var M, B;
|
1477
1495
|
return r(), y(S, {
|
1478
1496
|
key: i.name,
|
@@ -1492,13 +1510,13 @@ function Fn(e, t, n, o, s, l) {
|
|
1492
1510
|
}), 128)),
|
1493
1511
|
(Ce = (_e = l.getActions) == null ? void 0 : _e.filter(
|
1494
1512
|
(i) => i !== "add" && i !== "view"
|
1495
|
-
)) != null && Ce.length ? (r(),
|
1513
|
+
)) != null && Ce.length ? (r(), d("th", Cn)) : k("", !0)
|
1496
1514
|
])
|
1497
1515
|
]),
|
1498
1516
|
a("tbody", wn, [
|
1499
|
-
(r(!0),
|
1517
|
+
(r(!0), d($, null, V((we = s.tableData) == null ? void 0 : we.rows, (i, M) => {
|
1500
1518
|
var B, U, N, O, Ve, Fe, je, Le, ze, qe, Me, Be, Ne, Oe;
|
1501
|
-
return r(),
|
1519
|
+
return r(), d("tr", {
|
1502
1520
|
key: (i == null ? void 0 : i.id) || M,
|
1503
1521
|
class: w({
|
1504
1522
|
"bg-gray-100": ((U = (B = e.$route) == null ? void 0 : B.query) == null ? void 0 : U.card) === (i == null ? void 0 : i.id),
|
@@ -1528,7 +1546,7 @@ function Fn(e, t, n, o, s, l) {
|
|
1528
1546
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1529
1547
|
], 10, Sn)
|
1530
1548
|
], 10, $n),
|
1531
|
-
(r(!0),
|
1549
|
+
(r(!0), d($, null, V((Le = l.columns) == null ? void 0 : Le.slice(1), (j) => (r(), d("td", {
|
1532
1550
|
onClick: (Mn) => {
|
1533
1551
|
l.changeActiveCardInfo(i == null ? void 0 : i.id), l.pushToLinkCard(j, i);
|
1534
1552
|
},
|
@@ -1541,17 +1559,17 @@ function Fn(e, t, n, o, s, l) {
|
|
1541
1559
|
table: n.table,
|
1542
1560
|
onUpdateTable: l.getTableData
|
1543
1561
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1544
|
-
], 10,
|
1562
|
+
], 10, An))), 128)),
|
1545
1563
|
(qe = (ze = l.getActions) == null ? void 0 : ze.filter(
|
1546
1564
|
(j) => j !== "add" && j !== "view"
|
1547
|
-
)) != null && qe.length ? (r(),
|
1565
|
+
)) != null && qe.length ? (r(), d("td", {
|
1548
1566
|
key: 0,
|
1549
1567
|
class: w(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1550
1568
|
"bg-gray-50": ((Be = (Me = e.$route) == null ? void 0 : Me.query) == null ? void 0 : Be.card) === (i == null ? void 0 : i.id) || !(M % 2),
|
1551
1569
|
"bg-white": ((Oe = (Ne = e.$route) == null ? void 0 : Ne.query) == null ? void 0 : Oe.card) !== (i == null ? void 0 : i.id) && M % 2
|
1552
1570
|
}])
|
1553
1571
|
}, [
|
1554
|
-
x(
|
1572
|
+
x(q, {
|
1555
1573
|
actions: l.getActions,
|
1556
1574
|
isForm: l.isForm,
|
1557
1575
|
item: i,
|
@@ -1570,14 +1588,14 @@ function Fn(e, t, n, o, s, l) {
|
|
1570
1588
|
])
|
1571
1589
|
], 4)
|
1572
1590
|
], 2),
|
1573
|
-
a("div",
|
1591
|
+
a("div", Tn, [
|
1574
1592
|
a("div", In, [
|
1575
1593
|
a("p", Dn, [
|
1576
1594
|
a("span", Pn, [
|
1577
|
-
|
1578
|
-
s.limit < ((Se = s.tableData) == null ? void 0 : Se.filtered) ? s.limit : ((
|
1595
|
+
z(" Об'єктів: " + A(Intl.NumberFormat("ua").format(
|
1596
|
+
s.limit < ((Se = s.tableData) == null ? void 0 : Se.filtered) ? s.limit : ((Ae = s.tableData) == null ? void 0 : Ae.filtered) || 0
|
1579
1597
|
)) + " ", 1),
|
1580
|
-
s.limit < ((
|
1598
|
+
s.limit < ((Te = s.tableData) == null ? void 0 : Te.filtered) ? (r(), d("span", Vn, " з " + A(Intl.NumberFormat("ua").format(((Ie = s.tableData) == null ? void 0 : Ie.filtered) || 0)), 1)) : k("", !0)
|
1581
1599
|
])
|
1582
1600
|
])
|
1583
1601
|
]),
|
@@ -1611,7 +1629,7 @@ function Fn(e, t, n, o, s, l) {
|
|
1611
1629
|
], 4)
|
1612
1630
|
]);
|
1613
1631
|
}
|
1614
|
-
const jn = /* @__PURE__ */
|
1632
|
+
const jn = /* @__PURE__ */ T(pn, [["render", Fn], ["__scopeId", "data-v-ca941f11"]]), Ln = {
|
1615
1633
|
components: { AdminTable: jn },
|
1616
1634
|
data() {
|
1617
1635
|
return {
|
@@ -1658,7 +1676,7 @@ const jn = /* @__PURE__ */ A(pn, [["render", Fn], ["__scopeId", "data-v-ca941f11
|
|
1658
1676
|
async getInterface() {
|
1659
1677
|
var e, t;
|
1660
1678
|
try {
|
1661
|
-
const { data: n } = await
|
1679
|
+
const { data: n } = await L.get(
|
1662
1680
|
`/api/template/interface/${((t = (e = this.$route) == null ? void 0 : e.params) == null ? void 0 : t.catchAll) || ""}`
|
1663
1681
|
);
|
1664
1682
|
this.interface = n || "";
|
@@ -1675,14 +1693,14 @@ function qn(e, t, n, o, s, l) {
|
|
1675
1693
|
table: s.table,
|
1676
1694
|
title: e.title,
|
1677
1695
|
search: s.search
|
1678
|
-
}, null, 8, ["table", "title", "search"])) : (r(),
|
1696
|
+
}, null, 8, ["table", "title", "search"])) : (r(), d("div", {
|
1679
1697
|
key: 1,
|
1680
1698
|
class: "w-full bg-gray-50",
|
1681
1699
|
style: { height: "calc(100vh - 120px)" },
|
1682
1700
|
innerHTML: s.interface
|
1683
1701
|
}, null, 8, zn));
|
1684
1702
|
}
|
1685
|
-
const On = /* @__PURE__ */
|
1703
|
+
const On = /* @__PURE__ */ T(Ln, [["render", qn]]);
|
1686
1704
|
export {
|
1687
1705
|
On as default
|
1688
1706
|
};
|