@opengis/admin 0.4.15 → 0.4.17
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-CLQKORAq.js → add-page-D3JHk421.js} +1 -1
- package/dist/{admin-interface-CpLDRPag.js → admin-interface-Bh0X1WRG.js} +229 -210
- package/dist/{admin-view-B2qQ1IHJ.js → admin-view-BaFEZfOb.js} +1 -1
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +1 -1
- package/dist/{card-view-Cj5WEg5z.js → card-view-B6lmjnUp.js} +1 -1
- package/dist/{edit-page-r6I6Vi6E.js → edit-page-BRMI75iP.js} +1 -1
- package/dist/{import-file-q1gVGP28.js → import-file-DanTkH8S.js} +7 -7
- package/dist/{profile-page-DRdrE5zR.js → profile-page-Cvt3Wmr6.js} +1 -1
- package/package.json +3 -2
- package/server/routes/widget/controllers/file.edit.js +0 -51
- package/server/routes/widget/controllers/widget.del.js +0 -79
- package/server/routes/widget/controllers/widget.get.js +0 -136
- package/server/routes/widget/controllers/widget.set.js +0 -99
- package/server/routes/widget/hook/onWidgetSet.js +0 -12
- package/server/routes/widget/index.mjs +0 -20
- package/server/routes/widget/schema.js +0 -13
@@ -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-DanTkH8S.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-e1f274c9"]]), 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-e1f274c9
|
|
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",
|
@@ -764,7 +783,7 @@ function As(e, t, n, o, s, l) {
|
|
764
783
|
})
|
765
784
|
], 64);
|
766
785
|
}
|
767
|
-
const Is = /* @__PURE__ */
|
786
|
+
const Is = /* @__PURE__ */ T($s, [["render", Ts]]), Ds = {
|
768
787
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
769
788
|
}, Ps = {
|
770
789
|
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 +792,16 @@ const Is = /* @__PURE__ */ A($s, [["render", As]]), Ds = {
|
|
773
792
|
"aria-orientation": "horizontal"
|
774
793
|
}, Vs = ["onClick"];
|
775
794
|
function Fs(e, t, n, o, s, l) {
|
776
|
-
return r(),
|
777
|
-
(r(!0),
|
795
|
+
return r(), d("nav", Ps, [
|
796
|
+
(r(!0), d($, null, V(n.tabsList, (h) => (r(), d("button", {
|
778
797
|
onClick: (g) => e.$emit("update:filterState", h == null ? void 0 : h.name),
|
779
798
|
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
799
|
" 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
800
|
}])
|
782
|
-
},
|
801
|
+
}, A(h == null ? void 0 : h.label), 11, Vs))), 256))
|
783
802
|
]);
|
784
803
|
}
|
785
|
-
const js = /* @__PURE__ */
|
804
|
+
const js = /* @__PURE__ */ T(Ds, [["render", Fs]]), Ls = {}, zs = {
|
786
805
|
xmlns: "http://www.w3.org/2000/svg",
|
787
806
|
viewBox: "0 0 24 24",
|
788
807
|
fill: "none",
|
@@ -793,7 +812,7 @@ const js = /* @__PURE__ */ A(Ds, [["render", Fs]]), Ls = {}, zs = {
|
|
793
812
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
794
813
|
};
|
795
814
|
function qs(e, t, n, o, s, l) {
|
796
|
-
return r(),
|
815
|
+
return r(), d("svg", zs, t[0] || (t[0] = [
|
797
816
|
a("path", {
|
798
817
|
stroke: "none",
|
799
818
|
d: "M0 0h24v24H0z",
|
@@ -802,7 +821,7 @@ function qs(e, t, n, o, s, l) {
|
|
802
821
|
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
822
|
]));
|
804
823
|
}
|
805
|
-
const Ms = /* @__PURE__ */
|
824
|
+
const Ms = /* @__PURE__ */ T(Ls, [["render", qs]]), Bs = {
|
806
825
|
components: { IconFilter2: Ms, IconCheck2: st },
|
807
826
|
props: { filterCustom: String, customList: Array }
|
808
827
|
}, 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 +841,15 @@ function Rs(e, t, n, o, s, l) {
|
|
822
841
|
]),
|
823
842
|
default: P(() => [
|
824
843
|
a("div", Os, [
|
825
|
-
(r(!0),
|
844
|
+
(r(!0), d($, null, V(n.customList, (f, u) => (r(), d("button", {
|
826
845
|
onClick: (v) => {
|
827
846
|
var m;
|
828
847
|
e.$emit("update:filterCustom", f == null ? void 0 : f.name), (m = e.$refs) == null || m.popover.togglePopover();
|
829
848
|
},
|
830
|
-
key:
|
849
|
+
key: u,
|
831
850
|
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
851
|
}, [
|
833
|
-
a("span", Us,
|
852
|
+
a("span", Us, A(f == null ? void 0 : f.label), 1),
|
834
853
|
n.filterCustom === (f == null ? void 0 : f.name) ? (r(), y(g, {
|
835
854
|
key: 0,
|
836
855
|
class: "ml-auto size-3 shrink-0"
|
@@ -839,8 +858,8 @@ function Rs(e, t, n, o, s, l) {
|
|
839
858
|
a("button", {
|
840
859
|
class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
|
841
860
|
onClick: t[0] || (t[0] = (f) => {
|
842
|
-
var
|
843
|
-
e.$emit("update:filterCustom", void 0), (
|
861
|
+
var u;
|
862
|
+
e.$emit("update:filterCustom", void 0), (u = e.$refs) == null || u.popover.togglePopover();
|
844
863
|
})
|
845
864
|
}, " Скинути фільтри ")
|
846
865
|
])
|
@@ -848,15 +867,15 @@ function Rs(e, t, n, o, s, l) {
|
|
848
867
|
_: 1
|
849
868
|
}, 512);
|
850
869
|
}
|
851
|
-
const Ws = /* @__PURE__ */
|
870
|
+
const Ws = /* @__PURE__ */ T(Bs, [["render", Rs]]), Hs = { class: "flex items-center gap-x-2" }, Js = {
|
852
871
|
__name: "admin-table-custom-buttons",
|
853
872
|
props: {
|
854
873
|
slots: Object,
|
855
874
|
data: Object
|
856
875
|
},
|
857
876
|
setup(e) {
|
858
|
-
var g, b, f,
|
859
|
-
const { asyncTemplateSlot: t } = (v = (
|
877
|
+
var g, b, f, u, v;
|
878
|
+
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
879
|
var m, c, _, C, I;
|
861
880
|
if ((m = s.slots) != null && m.panelLeft || (o.value = "div"), (_ = (c = s.slots) == null ? void 0 : c.panelLeft) != null && _.includes("<")) {
|
862
881
|
const D = t("PanelLeft", (C = s.slots) == null ? void 0 : C.panelLeft, [
|
@@ -875,12 +894,12 @@ const Ws = /* @__PURE__ */ A(Bs, [["render", Rs]]), Hs = { class: "flex items-ce
|
|
875
894
|
} else
|
876
895
|
n.value = (I = s.slots) == null ? void 0 : I.panelRight;
|
877
896
|
};
|
878
|
-
return l(), h(), (m, c) => (r(),
|
879
|
-
(r(), y(
|
880
|
-
(r(), y(
|
897
|
+
return l(), h(), (m, c) => (r(), d("div", Hs, [
|
898
|
+
(r(), y(J(o.value), { data: e.data }, null, 8, ["data"])),
|
899
|
+
(r(), y(J(n.value), { data: e.data }, null, 8, ["data"]))
|
881
900
|
]));
|
882
901
|
}
|
883
|
-
},
|
902
|
+
}, Ks = {
|
884
903
|
__name: "admin-custom-button-add",
|
885
904
|
props: {
|
886
905
|
slots: Object
|
@@ -889,17 +908,17 @@ const Ws = /* @__PURE__ */ A(Bs, [["render", Rs]]), Hs = { class: "flex items-ce
|
|
889
908
|
var l, h, g, b, f;
|
890
909
|
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
910
|
return (() => {
|
892
|
-
var
|
893
|
-
if ((
|
911
|
+
var u, v, m, c, _;
|
912
|
+
if ((u = o.slots) != null && u.addButton || (n.value = "div"), (m = (v = o.slots) == null ? void 0 : v.addButton) != null && m.includes("<")) {
|
894
913
|
const C = t("addButton", (c = o.slots) == null ? void 0 : c.addButton, [
|
895
914
|
"IconPlus"
|
896
915
|
]);
|
897
916
|
n.value = C;
|
898
917
|
} else
|
899
918
|
n.value = (_ = o.slots) == null ? void 0 : _.addButton;
|
900
|
-
})(), (
|
919
|
+
})(), (u, v) => n.value ? (r(), y(J(n.value), {
|
901
920
|
key: 0,
|
902
|
-
IconPlus:
|
921
|
+
IconPlus: K
|
903
922
|
})) : k("", !0);
|
904
923
|
}
|
905
924
|
}, Gs = {
|
@@ -916,18 +935,18 @@ const Ws = /* @__PURE__ */ A(Bs, [["render", Rs]]), Hs = { class: "flex items-ce
|
|
916
935
|
} }
|
917
936
|
},
|
918
937
|
setup(e) {
|
919
|
-
return (t, n) => (r(),
|
920
|
-
(r(!0),
|
938
|
+
return (t, n) => (r(), d("tr", null, [
|
939
|
+
(r(!0), d($, null, V(e.columns, (o) => {
|
921
940
|
var s;
|
922
|
-
return r(),
|
941
|
+
return r(), d($, {
|
923
942
|
key: o == null ? void 0 : o.name
|
924
943
|
}, [
|
925
|
-
(s = e.agg) != null && s[o == null ? void 0 : o.name] ? (r(),
|
944
|
+
(s = e.agg) != null && s[o == null ? void 0 : o.name] ? (r(), d("td", Gs, [
|
926
945
|
x(G, {
|
927
946
|
column: o,
|
928
947
|
row: e.agg
|
929
948
|
}, null, 8, ["column", "row"])
|
930
|
-
])) : (r(),
|
949
|
+
])) : (r(), d("td", Qs))
|
931
950
|
], 64);
|
932
951
|
}), 128))
|
933
952
|
]));
|
@@ -943,7 +962,7 @@ const Ws = /* @__PURE__ */ A(Bs, [["render", Rs]]), Hs = { class: "flex items-ce
|
|
943
962
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
|
944
963
|
};
|
945
964
|
function en(e, t, n, o, s, l) {
|
946
|
-
return r(),
|
965
|
+
return r(), d("svg", Zs, t[0] || (t[0] = [
|
947
966
|
a("path", {
|
948
967
|
stroke: "none",
|
949
968
|
d: "M0 0h24v24H0z",
|
@@ -952,7 +971,7 @@ function en(e, t, n, o, s, l) {
|
|
952
971
|
a("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
953
972
|
]));
|
954
973
|
}
|
955
|
-
const tn = /* @__PURE__ */
|
974
|
+
const tn = /* @__PURE__ */ T(Ys, [["render", en]]), sn = ht({
|
956
975
|
components: { IconChevronDown: nt, IconCheck: tn },
|
957
976
|
props: {
|
958
977
|
total: { type: Number, default: () => 0 },
|
@@ -1038,13 +1057,13 @@ const tn = /* @__PURE__ */ A(Ys, [["render", en]]), sn = ht({
|
|
1038
1057
|
e.preventDefault(), e.target.blur();
|
1039
1058
|
}
|
1040
1059
|
}
|
1041
|
-
}), nn = { class: "flex items-center w-full" },
|
1060
|
+
}), 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
1061
|
key: 0,
|
1043
1062
|
class: "flex items-center justify-center ml-3 gap-x-5"
|
1044
|
-
}, on = { class: "relative" },
|
1063
|
+
}, 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
1064
|
function cn(e, t, n, o, s, l) {
|
1046
1065
|
const h = p("IconChevronDown"), g = p("IconCheck");
|
1047
|
-
return r(),
|
1066
|
+
return r(), d("nav", nn, [
|
1048
1067
|
a("button", {
|
1049
1068
|
type: "button",
|
1050
1069
|
onClick: t[0] || (t[0] = (...b) => e.handleClickPrev && e.handleClickPrev(...b)),
|
@@ -1056,16 +1075,16 @@ function cn(e, t, n, o, s, l) {
|
|
1056
1075
|
class: "rotate-90"
|
1057
1076
|
})
|
1058
1077
|
], 2),
|
1059
|
-
a("div",
|
1078
|
+
a("div", an, [
|
1060
1079
|
a("span", {
|
1061
1080
|
ref: "currentPage",
|
1062
1081
|
contenteditable: "true",
|
1063
1082
|
onKeydown: t[1] || (t[1] = pt((...b) => e.keydownEnter && e.keydownEnter(...b), ["enter"])),
|
1064
1083
|
onBlur: t[2] || (t[2] = (b) => e.handleSetPage(b.target.innerText)),
|
1065
1084
|
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
|
-
},
|
1085
|
+
}, A(e.page), 545),
|
1067
1086
|
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",
|
1087
|
+
a("span", ln, A(e.pagesCount), 1)
|
1069
1088
|
]),
|
1070
1089
|
a("button", {
|
1071
1090
|
type: "button",
|
@@ -1078,32 +1097,32 @@ function cn(e, t, n, o, s, l) {
|
|
1078
1097
|
class: "-rotate-90"
|
1079
1098
|
})
|
1080
1099
|
], 2),
|
1081
|
-
e.pageSizes.length ? (r(),
|
1100
|
+
e.pageSizes.length ? (r(), d("div", rn, [
|
1082
1101
|
a("div", on, [
|
1083
|
-
X(a("div",
|
1084
|
-
(r(!0),
|
1102
|
+
X(a("div", dn, [
|
1103
|
+
(r(!0), d($, null, V(e.pageSizes, (b) => (r(), d("button", {
|
1085
1104
|
type: "button",
|
1086
1105
|
class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
|
1087
1106
|
onClick: (f) => e.pageSizeLocal = b
|
1088
1107
|
}, [
|
1089
|
-
|
1108
|
+
z(A(b) + " ", 1),
|
1090
1109
|
b === e.pageSizeLocal ? (r(), y(g, {
|
1091
1110
|
key: 0,
|
1092
1111
|
width: "14",
|
1093
1112
|
height: "14",
|
1094
1113
|
class: "text-blue-600"
|
1095
1114
|
})) : k("", !0)
|
1096
|
-
], 8,
|
1115
|
+
], 8, un))), 256))
|
1097
1116
|
], 512), [
|
1098
1117
|
[Y, e.isDropdownOpen]
|
1099
1118
|
]),
|
1100
|
-
e.pageSizes.length ? (r(),
|
1119
|
+
e.pageSizes.length ? (r(), d("button", {
|
1101
1120
|
key: 0,
|
1102
1121
|
type: "button",
|
1103
1122
|
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
1123
|
onClick: t[4] || (t[4] = (b) => e.isDropdownOpen = !e.isDropdownOpen)
|
1105
1124
|
}, [
|
1106
|
-
|
1125
|
+
z(A(e.pageSizeLocal) + " ", 1),
|
1107
1126
|
x(h, {
|
1108
1127
|
height: "16",
|
1109
1128
|
width: "16"
|
@@ -1113,7 +1132,7 @@ function cn(e, t, n, o, s, l) {
|
|
1113
1132
|
])) : k("", !0)
|
1114
1133
|
]);
|
1115
1134
|
}
|
1116
|
-
const hn = /* @__PURE__ */
|
1135
|
+
const hn = /* @__PURE__ */ T(sn, [["render", cn]]), pn = {
|
1117
1136
|
props: { table: String, title: String, search: String },
|
1118
1137
|
components: {
|
1119
1138
|
AdminTableControl: Ft,
|
@@ -1122,16 +1141,16 @@ const hn = /* @__PURE__ */ A(sn, [["render", cn]]), pn = {
|
|
1122
1141
|
AdminTableColumnsHidden: it,
|
1123
1142
|
AdminTableColumn: yt,
|
1124
1143
|
AdminNodata: ot,
|
1125
|
-
IconPlus:
|
1144
|
+
IconPlus: K,
|
1126
1145
|
IconSearch: rt,
|
1127
1146
|
AdminTableCardInfo: ws,
|
1128
|
-
IconOpenCard:
|
1147
|
+
IconOpenCard: lt,
|
1129
1148
|
AdminComponentIs: G,
|
1130
1149
|
AdminTableFilters: Is,
|
1131
1150
|
AdminTableTabs: js,
|
1132
1151
|
AdminTableCustomFilters: Ws,
|
1133
|
-
AdminTableCustomButtons:
|
1134
|
-
AdminCustomButtonAdd:
|
1152
|
+
AdminTableCustomButtons: Js,
|
1153
|
+
AdminCustomButtonAdd: Ks,
|
1135
1154
|
AdminTableTotalsList: Xs,
|
1136
1155
|
AdminTablePagination: hn
|
1137
1156
|
},
|
@@ -1201,7 +1220,7 @@ const hn = /* @__PURE__ */ A(sn, [["render", cn]]), pn = {
|
|
1201
1220
|
// await this.getTableData();
|
1202
1221
|
// },
|
1203
1222
|
searchValue: {
|
1204
|
-
handler:
|
1223
|
+
handler: at(async function(e) {
|
1205
1224
|
var t;
|
1206
1225
|
this.page = 1, await this.getTableData(), this.$router.push({
|
1207
1226
|
...this.$route,
|
@@ -1254,8 +1273,8 @@ const hn = /* @__PURE__ */ A(sn, [["render", cn]]), pn = {
|
|
1254
1273
|
},
|
1255
1274
|
methods: {
|
1256
1275
|
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 = ((
|
1276
|
+
var e, t, n, o, s, l, h, g, b, f, u, v, m, c, _, C, I, D, S, F, q;
|
1277
|
+
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
1278
|
},
|
1260
1279
|
rowWidth(e) {
|
1261
1280
|
var n, o;
|
@@ -1269,9 +1288,9 @@ const hn = /* @__PURE__ */ A(sn, [["render", cn]]), pn = {
|
|
1269
1288
|
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
1289
|
},
|
1271
1290
|
async getTableData() {
|
1272
|
-
var e, t, n, o, s, l, h, g, b, f,
|
1291
|
+
var e, t, n, o, s, l, h, g, b, f, u;
|
1273
1292
|
try {
|
1274
|
-
const { data: v } = await
|
1293
|
+
const { data: v } = await L.get(`/api/template/table/${this.table}`), m = await L.get(`/api/table-data/${this.table}`, {
|
1275
1294
|
params: {
|
1276
1295
|
page: this.page,
|
1277
1296
|
search: this.searchValue || null,
|
@@ -1288,12 +1307,12 @@ const hn = /* @__PURE__ */ A(sn, [["render", cn]]), pn = {
|
|
1288
1307
|
}, 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
1308
|
var _;
|
1290
1309
|
(_ = this.visibleColumns) != null && _.includes(c == null ? void 0 : c.name) ? c.hidden = !1 : c.hidden = !0;
|
1291
|
-
}) : this.visibleColumns = (
|
1310
|
+
}) : 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
1311
|
var c, _;
|
1293
1312
|
(_ = (c = this.tableData) == null ? void 0 : c.columns) == null || _.forEach(({ name: C }) => {
|
1294
|
-
var I, D, S, F,
|
1313
|
+
var I, D, S, F, q, E;
|
1295
1314
|
(D = (I = this.columnsWidth) == null ? void 0 : I[C]) != null && D.ref && (this.columnsWidth[C].width = parseInt(
|
1296
|
-
(E = (
|
1315
|
+
(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
1316
|
) + "px");
|
1298
1317
|
});
|
1299
1318
|
});
|
@@ -1303,7 +1322,7 @@ const hn = /* @__PURE__ */ A(sn, [["render", cn]]), pn = {
|
|
1303
1322
|
async getFilters() {
|
1304
1323
|
var e;
|
1305
1324
|
try {
|
1306
|
-
const { data: t } = await
|
1325
|
+
const { data: t } = await L.get(`/api/table-filter/${this.table}`);
|
1307
1326
|
this.filterScheme = (e = t == null ? void 0 : t.list) == null ? void 0 : e.map((n) => ({
|
1308
1327
|
...n,
|
1309
1328
|
label: (n == null ? void 0 : n.label) || (n == null ? void 0 : n.ua)
|
@@ -1354,14 +1373,14 @@ const hn = /* @__PURE__ */ A(sn, [["render", cn]]), pn = {
|
|
1354
1373
|
}, 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
1374
|
key: 0,
|
1356
1375
|
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"],
|
1376
|
+
}, 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
1377
|
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(),
|
1378
|
+
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;
|
1379
|
+
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");
|
1380
|
+
return r(), d("div", bn, [
|
1362
1381
|
a("div", fn, [
|
1363
|
-
a("h2", gn,
|
1364
|
-
l.isForm ? (r(),
|
1382
|
+
a("h2", gn, A(n.title), 1),
|
1383
|
+
l.isForm ? (r(), d($, { key: 0 }, [
|
1365
1384
|
(ee = (Z = s.tableData) == null ? void 0 : Z.slots) != null && ee.addButton ? (r(), y(h, {
|
1366
1385
|
key: 0,
|
1367
1386
|
slots: (te = s.tableData) == null ? void 0 : te.slots
|
@@ -1375,7 +1394,7 @@ function Fn(e, t, n, o, s, l) {
|
|
1375
1394
|
height: "16",
|
1376
1395
|
width: "16"
|
1377
1396
|
}),
|
1378
|
-
t[5] || (t[5] =
|
1397
|
+
t[5] || (t[5] = z(" Додати "))
|
1379
1398
|
]),
|
1380
1399
|
_: 1,
|
1381
1400
|
__: [5]
|
@@ -1384,12 +1403,12 @@ function Fn(e, t, n, o, s, l) {
|
|
1384
1403
|
]),
|
1385
1404
|
a("div", {
|
1386
1405
|
style: W({
|
1387
|
-
height: ((
|
1406
|
+
height: ((ae = e.$adminSettings) == null ? void 0 : ae.header) === !1 ? "calc(100vh - 91px)" : "calc(100vh - 155px)"
|
1388
1407
|
}),
|
1389
1408
|
class: "bg-gray-100 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
|
1390
1409
|
}, [
|
1391
1410
|
a("div", mn, [
|
1392
|
-
(re = (
|
1411
|
+
(re = (le = s.tableData) == null ? void 0 : le.filterState) != null && re.length ? (r(), y(f, {
|
1393
1412
|
key: 0,
|
1394
1413
|
tabsList: (oe = s.tableData) == null ? void 0 : oe.filterState,
|
1395
1414
|
filterState: s.filterState,
|
@@ -1402,7 +1421,7 @@ function Fn(e, t, n, o, s, l) {
|
|
1402
1421
|
a("div", {
|
1403
1422
|
class: w(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1404
1423
|
}, [
|
1405
|
-
x(
|
1424
|
+
x(u, {
|
1406
1425
|
height: "14",
|
1407
1426
|
width: "14",
|
1408
1427
|
class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
|
@@ -1418,9 +1437,9 @@ function Fn(e, t, n, o, s, l) {
|
|
1418
1437
|
(ie = s.tableData) != null && ie.slots ? (r(), y(m, {
|
1419
1438
|
key: 0,
|
1420
1439
|
data: s.tableData,
|
1421
|
-
slots: (
|
1440
|
+
slots: (de = s.tableData) == null ? void 0 : de.slots
|
1422
1441
|
}, null, 8, ["data", "slots"])) : k("", !0),
|
1423
|
-
(ce = (
|
1442
|
+
(ce = (ue = s.tableData) == null ? void 0 : ue.filterCustom) != null && ce.length ? (r(), y(c, {
|
1424
1443
|
key: 1,
|
1425
1444
|
customList: (he = s.tableData) == null ? void 0 : he.filterCustom,
|
1426
1445
|
filterCustom: s.filterCustom,
|
@@ -1466,13 +1485,13 @@ function Fn(e, t, n, o, s, l) {
|
|
1466
1485
|
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
1486
|
}, [
|
1468
1487
|
a("div", vn, [
|
1469
|
-
l.isNoData ? (r(), y(Re, { key: 1 })) : (r(),
|
1488
|
+
l.isNoData ? (r(), y(Re, { key: 1 })) : (r(), d("table", {
|
1470
1489
|
key: 0,
|
1471
1490
|
class: w([l.fontSize, "relative min-w-full my-2 divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"])
|
1472
1491
|
}, [
|
1473
1492
|
a("thead", kn, [
|
1474
1493
|
a("tr", _n, [
|
1475
|
-
(r(!0),
|
1494
|
+
(r(!0), d($, null, V(l.columns, (i) => {
|
1476
1495
|
var M, B;
|
1477
1496
|
return r(), y(S, {
|
1478
1497
|
key: i.name,
|
@@ -1492,13 +1511,13 @@ function Fn(e, t, n, o, s, l) {
|
|
1492
1511
|
}), 128)),
|
1493
1512
|
(Ce = (_e = l.getActions) == null ? void 0 : _e.filter(
|
1494
1513
|
(i) => i !== "add" && i !== "view"
|
1495
|
-
)) != null && Ce.length ? (r(),
|
1514
|
+
)) != null && Ce.length ? (r(), d("th", Cn)) : k("", !0)
|
1496
1515
|
])
|
1497
1516
|
]),
|
1498
1517
|
a("tbody", wn, [
|
1499
|
-
(r(!0),
|
1518
|
+
(r(!0), d($, null, V((we = s.tableData) == null ? void 0 : we.rows, (i, M) => {
|
1500
1519
|
var B, U, N, O, Ve, Fe, je, Le, ze, qe, Me, Be, Ne, Oe;
|
1501
|
-
return r(),
|
1520
|
+
return r(), d("tr", {
|
1502
1521
|
key: (i == null ? void 0 : i.id) || M,
|
1503
1522
|
class: w({
|
1504
1523
|
"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 +1547,7 @@ function Fn(e, t, n, o, s, l) {
|
|
1528
1547
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1529
1548
|
], 10, Sn)
|
1530
1549
|
], 10, $n),
|
1531
|
-
(r(!0),
|
1550
|
+
(r(!0), d($, null, V((Le = l.columns) == null ? void 0 : Le.slice(1), (j) => (r(), d("td", {
|
1532
1551
|
onClick: (Mn) => {
|
1533
1552
|
l.changeActiveCardInfo(i == null ? void 0 : i.id), l.pushToLinkCard(j, i);
|
1534
1553
|
},
|
@@ -1541,17 +1560,17 @@ function Fn(e, t, n, o, s, l) {
|
|
1541
1560
|
table: n.table,
|
1542
1561
|
onUpdateTable: l.getTableData
|
1543
1562
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1544
|
-
], 10,
|
1563
|
+
], 10, An))), 128)),
|
1545
1564
|
(qe = (ze = l.getActions) == null ? void 0 : ze.filter(
|
1546
1565
|
(j) => j !== "add" && j !== "view"
|
1547
|
-
)) != null && qe.length ? (r(),
|
1566
|
+
)) != null && qe.length ? (r(), d("td", {
|
1548
1567
|
key: 0,
|
1549
1568
|
class: w(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1550
1569
|
"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
1570
|
"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
1571
|
}])
|
1553
1572
|
}, [
|
1554
|
-
x(
|
1573
|
+
x(q, {
|
1555
1574
|
actions: l.getActions,
|
1556
1575
|
isForm: l.isForm,
|
1557
1576
|
item: i,
|
@@ -1570,14 +1589,14 @@ function Fn(e, t, n, o, s, l) {
|
|
1570
1589
|
])
|
1571
1590
|
], 4)
|
1572
1591
|
], 2),
|
1573
|
-
a("div",
|
1592
|
+
a("div", Tn, [
|
1574
1593
|
a("div", In, [
|
1575
1594
|
a("p", Dn, [
|
1576
1595
|
a("span", Pn, [
|
1577
|
-
|
1578
|
-
s.limit < ((Se = s.tableData) == null ? void 0 : Se.filtered) ? s.limit : ((
|
1596
|
+
z(" Об'єктів: " + A(Intl.NumberFormat("ua").format(
|
1597
|
+
s.limit < ((Se = s.tableData) == null ? void 0 : Se.filtered) ? s.limit : ((Ae = s.tableData) == null ? void 0 : Ae.filtered) || 0
|
1579
1598
|
)) + " ", 1),
|
1580
|
-
s.limit < ((
|
1599
|
+
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
1600
|
])
|
1582
1601
|
])
|
1583
1602
|
]),
|
@@ -1611,7 +1630,7 @@ function Fn(e, t, n, o, s, l) {
|
|
1611
1630
|
], 4)
|
1612
1631
|
]);
|
1613
1632
|
}
|
1614
|
-
const jn = /* @__PURE__ */
|
1633
|
+
const jn = /* @__PURE__ */ T(pn, [["render", Fn], ["__scopeId", "data-v-ca941f11"]]), Ln = {
|
1615
1634
|
components: { AdminTable: jn },
|
1616
1635
|
data() {
|
1617
1636
|
return {
|
@@ -1658,7 +1677,7 @@ const jn = /* @__PURE__ */ A(pn, [["render", Fn], ["__scopeId", "data-v-ca941f11
|
|
1658
1677
|
async getInterface() {
|
1659
1678
|
var e, t;
|
1660
1679
|
try {
|
1661
|
-
const { data: n } = await
|
1680
|
+
const { data: n } = await L.get(
|
1662
1681
|
`/api/template/interface/${((t = (e = this.$route) == null ? void 0 : e.params) == null ? void 0 : t.catchAll) || ""}`
|
1663
1682
|
);
|
1664
1683
|
this.interface = n || "";
|
@@ -1675,14 +1694,14 @@ function qn(e, t, n, o, s, l) {
|
|
1675
1694
|
table: s.table,
|
1676
1695
|
title: e.title,
|
1677
1696
|
search: s.search
|
1678
|
-
}, null, 8, ["table", "title", "search"])) : (r(),
|
1697
|
+
}, null, 8, ["table", "title", "search"])) : (r(), d("div", {
|
1679
1698
|
key: 1,
|
1680
1699
|
class: "w-full bg-gray-50",
|
1681
1700
|
style: { height: "calc(100vh - 120px)" },
|
1682
1701
|
innerHTML: s.interface
|
1683
1702
|
}, null, 8, zn));
|
1684
1703
|
}
|
1685
|
-
const On = /* @__PURE__ */
|
1704
|
+
const On = /* @__PURE__ */ T(Ln, [["render", qn]]);
|
1686
1705
|
export {
|
1687
1706
|
On as default
|
1688
1707
|
};
|