@opengis/admin 0.1.4 → 0.1.5
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-D6D_vCdT.js → add-page-JI-blQM-.js} +1 -1
- package/dist/{admin-interface-BpAoXL6Y.js → admin-interface-DQ7GmGCx.js} +96 -95
- package/dist/{admin-view-Ctnb3YHc.js → admin-view-DNKXD1JW.js} +79 -74
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +20 -20
- package/dist/{card-page-CDUWky8v.js → card-page-BagSWQrm.js} +23 -23
- package/dist/{card-view-BdtKFM_Q.js → card-view-D1chzwJf.js} +1 -1
- package/dist/{edit-page-Bl7TSfk5.js → edit-page-CDw8N17U.js} +1 -1
- package/dist/{import-file-bAV0TNST.js → import-file-Clxr3e1P.js} +1385 -1388
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/server/routes/data/controllers/utils/assignTokens.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as m } from "./userMenu-CT1xO2Pt.js";
|
|
2
|
-
import { _ as b, a as c } from "./import-file-
|
|
2
|
+
import { _ as b, a as c } from "./import-file-Clxr3e1P.js";
|
|
3
3
|
import { resolveComponent as h, openBlock as i, createElementBlock as d, createElementVNode as a, createBlock as f, createCommentVNode as p } from "vue";
|
|
4
4
|
const g = {
|
|
5
5
|
data() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as f, a as k } from "./import-file-Clxr3e1P.js";
|
|
2
2
|
import { u as I } from "./userMenu-CT1xO2Pt.js";
|
|
3
3
|
import { openBlock as o, createElementBlock as i, createStaticVNode as S, createElementVNode as n, Fragment as x, resolveComponent as c, createVNode as p, withCtx as y, createTextVNode as v, withModifiers as L, renderList as w, toDisplayString as T, withDirectives as E, vModelCheckbox as O, createBlock as F, vModelText as N, resolveDynamicComponent as q, Transition as R, createCommentVNode as G, vShow as J } from "vue";
|
|
4
4
|
const K = {}, Q = {
|
|
@@ -16,7 +16,7 @@ function W(t, e, s, a, l, r) {
|
|
|
16
16
|
S('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M4 6l8 0"></path><path d="M16 6l4 0"></path><path d="M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M4 12l2 0"></path><path d="M10 12l10 0"></path><path d="M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M4 18l11 0"></path><path d="M19 18l1 0"></path>', 10)
|
|
17
17
|
]));
|
|
18
18
|
}
|
|
19
|
-
const X = /* @__PURE__ */
|
|
19
|
+
const X = /* @__PURE__ */ f(K, [["render", W]]), Y = {}, Z = {
|
|
20
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21
21
|
viewBox: "0 0 24 24",
|
|
22
22
|
fill: "none",
|
|
@@ -38,7 +38,7 @@ function ee(t, e, s, a, l, r) {
|
|
|
38
38
|
n("path", { d: "M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
|
|
39
39
|
]));
|
|
40
40
|
}
|
|
41
|
-
const te = /* @__PURE__ */
|
|
41
|
+
const te = /* @__PURE__ */ f(Y, [["render", ee]]), ne = {}, se = {
|
|
42
42
|
class: "flex-shrink-0 size-3.5",
|
|
43
43
|
xmlns: "http://www.w3.org/2000/svg",
|
|
44
44
|
viewBox: "0 0 24 24",
|
|
@@ -53,14 +53,14 @@ function le(t, e, s, a, l, r) {
|
|
|
53
53
|
S('<path d="M3 6h18"></path><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"></path><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"></path><line x1="10" x2="10" y1="11" y2="17"></line><line x1="14" x2="14" y1="11" y2="17"></line>', 5)
|
|
54
54
|
]));
|
|
55
55
|
}
|
|
56
|
-
const re = /* @__PURE__ */
|
|
56
|
+
const re = /* @__PURE__ */ f(ne, [["render", le]]), oe = {
|
|
57
57
|
props: {
|
|
58
58
|
height: { type: String, default: "16" },
|
|
59
59
|
width: { type: String, default: "12" },
|
|
60
60
|
color: { type: String, default: "black" }
|
|
61
61
|
}
|
|
62
62
|
}, ae = { style: { display: "none" } }, ie = ["height", "width", "fill"];
|
|
63
|
-
function
|
|
63
|
+
function ue(t, e, s, a, l, r) {
|
|
64
64
|
return o(), i(x, null, [
|
|
65
65
|
(o(), i("svg", ae, e[0] || (e[0] = [
|
|
66
66
|
n("symbol", {
|
|
@@ -79,11 +79,11 @@ function de(t, e, s, a, l, r) {
|
|
|
79
79
|
]), 8, ie))
|
|
80
80
|
], 64);
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const de = /* @__PURE__ */ f(oe, [["render", ue]]), ce = {
|
|
83
83
|
components: {
|
|
84
84
|
IconMore: te,
|
|
85
85
|
IconDelete: re,
|
|
86
|
-
IconEdit:
|
|
86
|
+
IconEdit: de
|
|
87
87
|
},
|
|
88
88
|
emits: ["updateTable"],
|
|
89
89
|
props: { item: Object, table: String },
|
|
@@ -135,9 +135,9 @@ const ue = /* @__PURE__ */ g(oe, [["render", de]]), ce = {
|
|
|
135
135
|
id: "hs-pro-dupc1",
|
|
136
136
|
type: "button",
|
|
137
137
|
class: "gap-x-2 p-2 rounded-lg hover:border-transparent focus:outline-none text-black hover:bg-gray-50"
|
|
138
|
-
}, he = { class: "pt-[7px] pb-[7px] flex flex-col items-start" }, me = { class: "p-4" },
|
|
139
|
-
function
|
|
140
|
-
const
|
|
138
|
+
}, he = { class: "pt-[7px] pb-[7px] flex flex-col items-start" }, me = { class: "p-4" }, fe = { class: "mt-4 flex justify-end gap-x-3" };
|
|
139
|
+
function ge(t, e, s, a, l, r) {
|
|
140
|
+
const b = c("IconMore"), d = c("IconEdit"), h = c("router-link"), g = c("IconDelete"), $ = c("VsPopover"), A = c("VsDialog");
|
|
141
141
|
return o(), i(x, null, [
|
|
142
142
|
n("div", pe, [
|
|
143
143
|
p($, {
|
|
@@ -146,7 +146,7 @@ function fe(t, e, s, a, l, r) {
|
|
|
146
146
|
}, {
|
|
147
147
|
reference: y(() => [
|
|
148
148
|
n("button", be, [
|
|
149
|
-
p(
|
|
149
|
+
p(b, {
|
|
150
150
|
height: "16",
|
|
151
151
|
width: "16"
|
|
152
152
|
})
|
|
@@ -156,12 +156,12 @@ function fe(t, e, s, a, l, r) {
|
|
|
156
156
|
var _, C, M;
|
|
157
157
|
return [
|
|
158
158
|
n("div", he, [
|
|
159
|
-
p(
|
|
159
|
+
p(h, {
|
|
160
160
|
to: `/edit?table=${(C = (_ = t.$route) == null ? void 0 : _.params) == null ? void 0 : C.catchAll}&id=${(M = s.item) == null ? void 0 : M.id}`,
|
|
161
161
|
class: "w-[100px] ml-[2px] flex items-center justify-center gap-x-3 rounded-lg text-[13px] text-gray-800"
|
|
162
162
|
}, {
|
|
163
163
|
default: y(() => [
|
|
164
|
-
p(
|
|
164
|
+
p(d, { color: "#000" }),
|
|
165
165
|
e[4] || (e[4] = v(" Редагувати "))
|
|
166
166
|
]),
|
|
167
167
|
_: 1
|
|
@@ -172,7 +172,7 @@ function fe(t, e, s, a, l, r) {
|
|
|
172
172
|
type: "button",
|
|
173
173
|
class: "w-[100px] flex items-center justify-center gap-x-3 rounded-lg text-[14px] text-red-500"
|
|
174
174
|
}, [
|
|
175
|
-
p(
|
|
175
|
+
p(g),
|
|
176
176
|
e[5] || (e[5] = n("span", { class: "text-gray-800" }, "Видалити", -1))
|
|
177
177
|
])
|
|
178
178
|
])
|
|
@@ -189,7 +189,7 @@ function fe(t, e, s, a, l, r) {
|
|
|
189
189
|
default: y(() => [
|
|
190
190
|
n("div", me, [
|
|
191
191
|
e[7] || (e[7] = n("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
|
192
|
-
n("div",
|
|
192
|
+
n("div", fe, [
|
|
193
193
|
n("button", {
|
|
194
194
|
type: "button",
|
|
195
195
|
class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm 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",
|
|
@@ -207,7 +207,7 @@ function fe(t, e, s, a, l, r) {
|
|
|
207
207
|
}, 8, ["visible"])
|
|
208
208
|
], 64);
|
|
209
209
|
}
|
|
210
|
-
const xe = /* @__PURE__ */
|
|
210
|
+
const xe = /* @__PURE__ */ f(ce, [["render", ge]]), ye = {}, _e = {
|
|
211
211
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
|
212
212
|
xmlns: "http://www.w3.org/2000/svg",
|
|
213
213
|
viewBox: "0 0 24 24",
|
|
@@ -225,7 +225,7 @@ function ke(t, e, s, a, l, r) {
|
|
|
225
225
|
n("path", { d: "M17 4v16" }, null, -1)
|
|
226
226
|
]));
|
|
227
227
|
}
|
|
228
|
-
const ve = /* @__PURE__ */
|
|
228
|
+
const ve = /* @__PURE__ */ f(ye, [["render", ke]]), we = {
|
|
229
229
|
props: {
|
|
230
230
|
columns: { type: Object, default: () => {
|
|
231
231
|
} },
|
|
@@ -273,24 +273,24 @@ const ve = /* @__PURE__ */ g(ye, [["render", ke]]), we = {
|
|
|
273
273
|
}
|
|
274
274
|
}, $e = { class: "p-4" }, Ce = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, Me = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Te = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, De = { class: "mt-2 space-y-2" }, Ve = ["id", "onChange"], Fe = ["for"], Ae = { class: "pb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, Ie = { class: "text-center" };
|
|
275
275
|
function Ee(t, e, s, a, l, r) {
|
|
276
|
-
const
|
|
276
|
+
const b = c("VsCheckbox");
|
|
277
277
|
return o(), i(x, null, [
|
|
278
278
|
e[4] || (e[4] = n("div", { class: "dark:border-neutral-700" }, null, -1)),
|
|
279
279
|
n("div", $e, [
|
|
280
280
|
n("div", Ce, [
|
|
281
281
|
e[2] || (e[2] = n("label", { class: "text-sm text-gray-500 dark:text-neutral-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
|
282
282
|
n("div", Me, [
|
|
283
|
-
(o(!0), i(x, null, w(s.columns, (
|
|
283
|
+
(o(!0), i(x, null, w(s.columns, (d, h) => (o(), i("div", {
|
|
284
284
|
class: "flex items-center",
|
|
285
|
-
key:
|
|
285
|
+
key: h,
|
|
286
286
|
style: { width: "calc((100% - 10px) / 2)" }
|
|
287
287
|
}, [
|
|
288
|
-
p(
|
|
288
|
+
p(b, {
|
|
289
289
|
class: "py-0 shrink-0 border-gray-300 rounded text-blue-600 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",
|
|
290
290
|
modelValue: l.cols,
|
|
291
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
292
|
-
value:
|
|
293
|
-
label:
|
|
291
|
+
"onUpdate:modelValue": e[0] || (e[0] = (g) => l.cols = g),
|
|
292
|
+
value: d == null ? void 0 : d.name,
|
|
293
|
+
label: d == null ? void 0 : d.ua
|
|
294
294
|
}, null, 8, ["modelValue", "value", "label"])
|
|
295
295
|
]))), 128))
|
|
296
296
|
])
|
|
@@ -298,21 +298,21 @@ function Ee(t, e, s, a, l, r) {
|
|
|
298
298
|
n("div", Te, [
|
|
299
299
|
e[3] || (e[3] = n("label", { class: "text-sm text-gray-500 dark:text-neutral-500" }, " Виберіть формат таблиці: ", -1)),
|
|
300
300
|
n("div", De, [
|
|
301
|
-
(o(!0), i(x, null, w(l.tableFormats, (
|
|
301
|
+
(o(!0), i(x, null, w(l.tableFormats, (d, h) => (o(), i("div", {
|
|
302
302
|
class: "flex items-center",
|
|
303
|
-
key:
|
|
303
|
+
key: h
|
|
304
304
|
}, [
|
|
305
305
|
n("input", {
|
|
306
306
|
type: "radio",
|
|
307
307
|
name: "hs-pro-duecmfm",
|
|
308
308
|
class: "shrink-0 border-gray-300 rounded-full text-blue-600 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",
|
|
309
|
-
id:
|
|
310
|
-
onChange: (
|
|
309
|
+
id: d,
|
|
310
|
+
onChange: (g) => r.selectFormat(d)
|
|
311
311
|
}, null, 40, Ve),
|
|
312
312
|
n("label", {
|
|
313
|
-
for:
|
|
313
|
+
for: d,
|
|
314
314
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
|
315
|
-
}, " Формат " + T(
|
|
315
|
+
}, " Формат " + T(d), 9, Fe)
|
|
316
316
|
]))), 128))
|
|
317
317
|
])
|
|
318
318
|
]),
|
|
@@ -321,14 +321,14 @@ function Ee(t, e, s, a, l, r) {
|
|
|
321
321
|
n("button", {
|
|
322
322
|
type: "button",
|
|
323
323
|
class: "p-2 inline-flex items-center gap-x-2 text-xs font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-2 focus:ring-blue-500",
|
|
324
|
-
onClick: e[1] || (e[1] = (...
|
|
324
|
+
onClick: e[1] || (e[1] = (...d) => r.exportTable && r.exportTable(...d))
|
|
325
325
|
}, " Завантажити таблицю ")
|
|
326
326
|
])
|
|
327
327
|
])
|
|
328
328
|
])
|
|
329
329
|
], 64);
|
|
330
330
|
}
|
|
331
|
-
const Se = /* @__PURE__ */
|
|
331
|
+
const Se = /* @__PURE__ */ f(we, [["render", Ee]]), ze = {
|
|
332
332
|
components: { IconExport: ve, AdminTableExportForm: Se },
|
|
333
333
|
props: { table: String, columns: Array },
|
|
334
334
|
data() {
|
|
@@ -338,25 +338,25 @@ const Se = /* @__PURE__ */ g(we, [["render", Ee]]), ze = {
|
|
|
338
338
|
}
|
|
339
339
|
};
|
|
340
340
|
function je(t, e, s, a, l, r) {
|
|
341
|
-
const
|
|
341
|
+
const b = c("IconExport"), d = c("AdminTableExportForm"), h = c("VsDialog");
|
|
342
342
|
return o(), i(x, null, [
|
|
343
343
|
n("button", {
|
|
344
|
-
onClick: e[0] || (e[0] = (
|
|
344
|
+
onClick: e[0] || (e[0] = (g) => l.isOpen = !0),
|
|
345
345
|
class: "py-2 px-3 relative flex items-center gap-x-2 text-sm border focus:outline-none border-gray-100 font-medium rounded-lg text-gray-800 hover:border-gray-100 focus:border-gray-100 hover:bg-gray-50 shadow-sm duration-300"
|
|
346
346
|
}, [
|
|
347
|
-
p(
|
|
347
|
+
p(b, {
|
|
348
348
|
height: "16",
|
|
349
349
|
width: "16"
|
|
350
350
|
}),
|
|
351
351
|
e[2] || (e[2] = v(" Експорт "))
|
|
352
352
|
]),
|
|
353
|
-
p(
|
|
353
|
+
p(h, {
|
|
354
354
|
visible: l.isOpen,
|
|
355
|
-
"onUpdate:visible": e[1] || (e[1] = (
|
|
355
|
+
"onUpdate:visible": e[1] || (e[1] = (g) => l.isOpen = g),
|
|
356
356
|
title: "Експорт таблиці"
|
|
357
357
|
}, {
|
|
358
358
|
default: y(() => [
|
|
359
|
-
p(
|
|
359
|
+
p(d, {
|
|
360
360
|
table: s.table,
|
|
361
361
|
columns: s.columns
|
|
362
362
|
}, null, 8, ["table", "columns"])
|
|
@@ -365,7 +365,7 @@ function je(t, e, s, a, l, r) {
|
|
|
365
365
|
}, 8, ["visible"])
|
|
366
366
|
], 64);
|
|
367
367
|
}
|
|
368
|
-
const Pe = /* @__PURE__ */
|
|
368
|
+
const Pe = /* @__PURE__ */ f(ze, [["render", je]]), Be = {}, Ue = {
|
|
369
369
|
xmlns: "http://www.w3.org/2000/svg",
|
|
370
370
|
viewBox: "0 0 24 24",
|
|
371
371
|
fill: "none",
|
|
@@ -380,7 +380,7 @@ function He(t, e, s, a, l, r) {
|
|
|
380
380
|
S('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l5.5 0"></path><path d="M4 10l5.5 0"></path><path d="M4 14l5.5 0"></path><path d="M4 18l5.5 0"></path><path d="M14.5 6l5.5 0"></path><path d="M14.5 10l5.5 0"></path><path d="M14.5 14l5.5 0"></path><path d="M14.5 18l5.5 0"></path>', 9)
|
|
381
381
|
]));
|
|
382
382
|
}
|
|
383
|
-
const Le = /* @__PURE__ */
|
|
383
|
+
const Le = /* @__PURE__ */ f(Be, [["render", He]]), Oe = {
|
|
384
384
|
props: { column: Object },
|
|
385
385
|
emits: ["update-column"],
|
|
386
386
|
data() {
|
|
@@ -399,18 +399,18 @@ const Le = /* @__PURE__ */ g(Be, [["render", He]]), Oe = {
|
|
|
399
399
|
}
|
|
400
400
|
}, Ne = { class: "flex w-full gap-[8px] items-centr" };
|
|
401
401
|
function qe(t, e, s, a, l, r) {
|
|
402
|
-
var
|
|
402
|
+
var b, d;
|
|
403
403
|
return o(), i("label", Ne, [
|
|
404
404
|
E(n("input", {
|
|
405
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
405
|
+
"onUpdate:modelValue": e[0] || (e[0] = (h) => l.value = h),
|
|
406
406
|
type: "checkbox"
|
|
407
407
|
}, null, 512), [
|
|
408
408
|
[O, l.value]
|
|
409
409
|
]),
|
|
410
|
-
v(" " + T(((
|
|
410
|
+
v(" " + T(((b = s.column) == null ? void 0 : b.ua) || ((d = s.column) == null ? void 0 : d.title)), 1)
|
|
411
411
|
]);
|
|
412
412
|
}
|
|
413
|
-
const Re = /* @__PURE__ */
|
|
413
|
+
const Re = /* @__PURE__ */ f(Oe, [["render", qe]]), Ge = {
|
|
414
414
|
components: { IconColumns: Le, AdminTableColumnsHiddenItem: Re },
|
|
415
415
|
emits: ["update-columns"],
|
|
416
416
|
props: { columns: Array },
|
|
@@ -422,14 +422,14 @@ const Re = /* @__PURE__ */ g(Oe, [["render", qe]]), Ge = {
|
|
|
422
422
|
}
|
|
423
423
|
}, Je = { class: "py-2 px-3 flex items-center gap-x-2 text-sm border focus:outline-none border-gray-100 font-medium rounded-lg text-gray-800 hover:border-gray-100 focus:border-gray-100 hover:bg-gray-50 shadow-sm duration-300" }, Ke = { class: "flex flex-col gap-[3px] h-[400px] w-[300px] overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
|
|
424
424
|
function Qe(t, e, s, a, l, r) {
|
|
425
|
-
const
|
|
426
|
-
return o(), F(
|
|
425
|
+
const b = c("IconColumns"), d = c("AdminTableColumnsHiddenItem"), h = c("VsPopover");
|
|
426
|
+
return o(), F(h, {
|
|
427
427
|
trigger: "click",
|
|
428
428
|
placement: "bottom"
|
|
429
429
|
}, {
|
|
430
430
|
reference: y(() => [
|
|
431
431
|
n("button", Je, [
|
|
432
|
-
p(
|
|
432
|
+
p(b, {
|
|
433
433
|
height: "20",
|
|
434
434
|
width: "16"
|
|
435
435
|
})
|
|
@@ -439,9 +439,9 @@ function Qe(t, e, s, a, l, r) {
|
|
|
439
439
|
n("div", null, [
|
|
440
440
|
e[0] || (e[0] = n("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
|
|
441
441
|
n("ul", Ke, [
|
|
442
|
-
(o(!0), i(x, null, w(s.columns, (
|
|
443
|
-
p(
|
|
444
|
-
column:
|
|
442
|
+
(o(!0), i(x, null, w(s.columns, (g, $) => (o(), i("li", { key: $ }, [
|
|
443
|
+
p(d, {
|
|
444
|
+
column: g,
|
|
445
445
|
onUpdateColumn: r.updateColumn
|
|
446
446
|
}, null, 8, ["column", "onUpdateColumn"])
|
|
447
447
|
]))), 128))
|
|
@@ -451,7 +451,7 @@ function Qe(t, e, s, a, l, r) {
|
|
|
451
451
|
_: 1
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
|
-
const We = /* @__PURE__ */
|
|
454
|
+
const We = /* @__PURE__ */ f(Ge, [["render", Qe]]), Xe = {
|
|
455
455
|
props: { table: String },
|
|
456
456
|
components: {
|
|
457
457
|
IconFilter: X,
|
|
@@ -489,8 +489,8 @@ const We = /* @__PURE__ */ g(Ge, [["render", Qe]]), Xe = {
|
|
|
489
489
|
}
|
|
490
490
|
},
|
|
491
491
|
watch: {
|
|
492
|
-
table() {
|
|
493
|
-
this.getTableData();
|
|
492
|
+
async table() {
|
|
493
|
+
await this.getTableData();
|
|
494
494
|
},
|
|
495
495
|
searchValue() {
|
|
496
496
|
this.getTableData();
|
|
@@ -552,16 +552,16 @@ const We = /* @__PURE__ */ g(Ge, [["render", Qe]]), Xe = {
|
|
|
552
552
|
class: "bg-gray-50 p-[20px] flex"
|
|
553
553
|
}, nt = { class: "bg-white w-full rounded-xl border p-[20px]" }, st = { class: "flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px]" }, lt = { class: "flex gap-[6px] ml-auto" }, rt = { class: "space-y-5 flex items-start w-full justify-start" }, ot = {
|
|
554
554
|
style: { height: "calc(100vh - 250px)" },
|
|
555
|
-
class: "overflow-x-auto w-full [&::-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"
|
|
556
|
-
}, at = { class: "inline-block align-middle" }, it = { class: "divide-y divide-gray-200 dark:divide-neutral-700 relative" },
|
|
557
|
-
function
|
|
555
|
+
class: "overflow-x-auto w-full border-t [&::-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"
|
|
556
|
+
}, at = { class: "inline-block align-middle" }, it = { class: "divide-y divide-gray-200 dark:divide-neutral-700 relative" }, ut = { class: "sticky top-0 bg-white w-full z-[1] relative after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, dt = { class: "border-stone-200" }, ct = { class: "text-sm text-gray-800 px-[4px] py-2.5 text-start font-normal text-gray-500" }, pt = { class: "divide-y divide-gray-200" }, bt = { class: "size-px min-w-[200px] whitespace-nowrap text-start pe-4 py-3 text-sm text-gray-600" }, ht = { class: "text-center sticky right-0 bg-white" }, mt = { class: "p-[20px] flex justify-end w-full" }, ft = { class: "filter-content h-screen bg-white w-[400px] p-[20px] pt-[10px] overflow-x-auto bg-[rgba(0,0,0,0.5)] [&::-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" };
|
|
557
|
+
function gt(t, e, s, a, l, r) {
|
|
558
558
|
var C, M, D, z, j, P, B;
|
|
559
|
-
const
|
|
559
|
+
const b = c("router-link"), d = c("AdminTableColumnsHidden"), h = c("AdminTableExport"), g = c("IconFilter"), $ = c("AdminTableControl"), A = c("VsPagination"), _ = c("VsFilter");
|
|
560
560
|
return o(), i(x, null, [
|
|
561
561
|
n("div", Ye, [
|
|
562
562
|
n("div", Ze, [
|
|
563
563
|
n("h2", et, T((C = l.tableData) == null ? void 0 : C.title), 1),
|
|
564
|
-
p(
|
|
564
|
+
p(b, {
|
|
565
565
|
to: `/add?table=${(D = (M = t.$route) == null ? void 0 : M.params) == null ? void 0 : D.catchAll}`,
|
|
566
566
|
class: "py-2 px-3 flex items-center gap-x-2 text-sm text-white font-medium rounded-lg bg-blue-500 text-gray-800 shadow-sm hover:bg-blue-700 hover:text-white duration-300"
|
|
567
567
|
}, {
|
|
@@ -575,26 +575,26 @@ function ft(t, e, s, a, l, r) {
|
|
|
575
575
|
n("div", nt, [
|
|
576
576
|
n("div", st, [
|
|
577
577
|
E(n("input", {
|
|
578
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
578
|
+
"onUpdate:modelValue": e[0] || (e[0] = (u) => l.searchValue = u),
|
|
579
579
|
class: "py-2 pl-[15px] h-[38px] w-[400px] block w-full border rounded-lg text-sm focus:border-blue-600 focus:border-[2px] outline-none",
|
|
580
580
|
placeholder: "Пошук..."
|
|
581
581
|
}, null, 512), [
|
|
582
582
|
[N, l.searchValue]
|
|
583
583
|
]),
|
|
584
584
|
n("div", lt, [
|
|
585
|
-
p(
|
|
585
|
+
p(d, {
|
|
586
586
|
columns: (z = l.tableData) == null ? void 0 : z.columns,
|
|
587
|
-
onUpdateColumns: e[1] || (e[1] = (
|
|
587
|
+
onUpdateColumns: e[1] || (e[1] = (u) => l.tableData.columns = u)
|
|
588
588
|
}, null, 8, ["columns"]),
|
|
589
|
-
p(
|
|
589
|
+
p(h, {
|
|
590
590
|
table: s.table,
|
|
591
591
|
columns: (j = l.tableData) == null ? void 0 : j.columns
|
|
592
592
|
}, null, 8, ["table", "columns"]),
|
|
593
593
|
n("button", {
|
|
594
|
-
onClick: e[2] || (e[2] = (
|
|
594
|
+
onClick: e[2] || (e[2] = (u) => l.isFilters = !l.isFilters),
|
|
595
595
|
class: "py-2 px-3 flex items-center gap-x-2 text-sm border focus:outline-none border-gray-100 font-medium rounded-lg text-gray-800 hover:border-gray-100 focus:border-gray-100 hover:bg-gray-50 shadow-sm duration-300"
|
|
596
596
|
}, [
|
|
597
|
-
p(
|
|
597
|
+
p(g, {
|
|
598
598
|
height: "16",
|
|
599
599
|
width: "16"
|
|
600
600
|
}),
|
|
@@ -606,55 +606,53 @@ function ft(t, e, s, a, l, r) {
|
|
|
606
606
|
n("div", ot, [
|
|
607
607
|
n("div", at, [
|
|
608
608
|
n("table", it, [
|
|
609
|
-
n("thead",
|
|
610
|
-
n("tr",
|
|
611
|
-
(o(!0), i(x, null, w(r.columns, (
|
|
609
|
+
n("thead", ut, [
|
|
610
|
+
n("tr", dt, [
|
|
611
|
+
(o(!0), i(x, null, w(r.columns, (u) => (o(), i("th", {
|
|
612
612
|
class: "min-w-[200px] text-start",
|
|
613
|
-
key:
|
|
613
|
+
key: u.name
|
|
614
614
|
}, [
|
|
615
|
-
n("div", ct, T((
|
|
615
|
+
n("div", ct, T((u == null ? void 0 : u.ua) || u.name), 1)
|
|
616
616
|
]))), 128)),
|
|
617
|
-
e[7] || (e[7] = n("th", { class: "min-w-[
|
|
617
|
+
e[7] || (e[7] = n("th", { class: "min-w-[70px] max-w-[70px] sticky right-0 top-0 bg-white z-[10]" }, null, -1))
|
|
618
618
|
])
|
|
619
619
|
]),
|
|
620
620
|
n("tbody", pt, [
|
|
621
|
-
(o(!0), i(x, null, w((P = l.tableData) == null ? void 0 : P.rows, (
|
|
621
|
+
(o(!0), i(x, null, w((P = l.tableData) == null ? void 0 : P.rows, (u, V) => {
|
|
622
622
|
var U;
|
|
623
623
|
return o(), i("tr", { key: V }, [
|
|
624
624
|
n("td", bt, [
|
|
625
|
-
p(
|
|
626
|
-
to: `/card/${s.table}/${
|
|
625
|
+
p(b, {
|
|
626
|
+
to: `/card/${s.table}/${u == null ? void 0 : u.id}`,
|
|
627
627
|
class: "text-sm text-green-600 decoration-2 hover:underline font-medium focus:outline-none focus:underline hover:text-green-600"
|
|
628
628
|
}, {
|
|
629
629
|
default: y(() => {
|
|
630
|
-
var
|
|
630
|
+
var m;
|
|
631
631
|
return [
|
|
632
|
-
v(T(
|
|
632
|
+
v(T(u == null ? void 0 : u[(m = r.columns[0]) == null ? void 0 : m.name]), 1)
|
|
633
633
|
];
|
|
634
634
|
}),
|
|
635
635
|
_: 2
|
|
636
636
|
}, 1032, ["to"])
|
|
637
637
|
]),
|
|
638
|
-
(o(!0), i(x, null, w((U = r.columns) == null ? void 0 : U.
|
|
639
|
-
(b) => (b == null ? void 0 : b.name) !== "name"
|
|
640
|
-
), (b) => {
|
|
638
|
+
(o(!0), i(x, null, w((U = r.columns) == null ? void 0 : U.slice(1), (m) => {
|
|
641
639
|
var H;
|
|
642
640
|
return o(), i("td", {
|
|
643
|
-
class: "size-px min-w-[200px] whitespace-nowrap text-start
|
|
644
|
-
key:
|
|
641
|
+
class: "size-px min-w-[200px] whitespace-nowrap text-start px-[4px] py-3 text-sm text-gray-600",
|
|
642
|
+
key: m.name
|
|
645
643
|
}, [
|
|
646
644
|
(o(), F(q(
|
|
647
|
-
t.$componentsConfig[`table-format-${((H =
|
|
645
|
+
t.$componentsConfig[`table-format-${((H = m == null ? void 0 : m.format) == null ? void 0 : H.toLowerCase()) || t.text}`]
|
|
648
646
|
), {
|
|
649
|
-
name:
|
|
650
|
-
data:
|
|
651
|
-
value:
|
|
647
|
+
name: m == null ? void 0 : m.name,
|
|
648
|
+
data: u,
|
|
649
|
+
value: u == null ? void 0 : u[m == null ? void 0 : m.name]
|
|
652
650
|
}, null, 8, ["name", "data", "value"]))
|
|
653
651
|
]);
|
|
654
652
|
}), 128)),
|
|
655
653
|
n("td", ht, [
|
|
656
654
|
p($, {
|
|
657
|
-
item:
|
|
655
|
+
item: u,
|
|
658
656
|
table: s.table,
|
|
659
657
|
onUpdateTable: r.getTableData
|
|
660
658
|
}, null, 8, ["item", "table", "onUpdateTable"])
|
|
@@ -670,7 +668,6 @@ function ft(t, e, s, a, l, r) {
|
|
|
670
668
|
p(A, {
|
|
671
669
|
goTo: !1,
|
|
672
670
|
class: "justify-end",
|
|
673
|
-
style: { width: "calc(50% + 100px)" },
|
|
674
671
|
"default-page": r.defaultPage,
|
|
675
672
|
total: ((B = l.tableData) == null ? void 0 : B.total) || 0,
|
|
676
673
|
pageSize: l.limit,
|
|
@@ -684,15 +681,15 @@ function ft(t, e, s, a, l, r) {
|
|
|
684
681
|
]),
|
|
685
682
|
p(R, { name: "fade" }, {
|
|
686
683
|
default: y(() => {
|
|
687
|
-
var
|
|
684
|
+
var u;
|
|
688
685
|
return [
|
|
689
686
|
E(n("div", {
|
|
690
687
|
onClick: e[4] || (e[4] = (...V) => r.closeFilter && r.closeFilter(...V)),
|
|
691
688
|
style: { height: "100vh" },
|
|
692
689
|
class: "fixed filter-container top-0 flex justify-end items-center z-[2] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.5)]"
|
|
693
690
|
}, [
|
|
694
|
-
n("div",
|
|
695
|
-
(
|
|
691
|
+
n("div", ft, [
|
|
692
|
+
(u = l.filterScheme) != null && u.length ? (o(), F(_, {
|
|
696
693
|
key: 0,
|
|
697
694
|
ref: "filter",
|
|
698
695
|
scheme: l.filterScheme,
|
|
@@ -714,12 +711,13 @@ function ft(t, e, s, a, l, r) {
|
|
|
714
711
|
})
|
|
715
712
|
], 64);
|
|
716
713
|
}
|
|
717
|
-
const xt = /* @__PURE__ */
|
|
714
|
+
const xt = /* @__PURE__ */ f(Xe, [["render", gt]]), yt = {
|
|
718
715
|
components: { AdminTable: xt },
|
|
719
716
|
data() {
|
|
720
717
|
return {
|
|
721
718
|
table: !1,
|
|
722
|
-
interface: ""
|
|
719
|
+
interface: "",
|
|
720
|
+
title: ""
|
|
723
721
|
};
|
|
724
722
|
},
|
|
725
723
|
watch: {
|
|
@@ -729,6 +727,9 @@ const xt = /* @__PURE__ */ g(Xe, [["render", ft]]), yt = {
|
|
|
729
727
|
(t = I) != null && t.value || await this.getMenu(), await this.checkPageType();
|
|
730
728
|
},
|
|
731
729
|
deep: !0
|
|
730
|
+
},
|
|
731
|
+
title(t) {
|
|
732
|
+
t && (document.title = t);
|
|
732
733
|
}
|
|
733
734
|
},
|
|
734
735
|
async mounted() {
|
|
@@ -755,7 +756,7 @@ const xt = /* @__PURE__ */ g(Xe, [["render", ft]]), yt = {
|
|
|
755
756
|
var l, r;
|
|
756
757
|
return (a == null ? void 0 : a.path) == ((r = (l = this.$route) == null ? void 0 : l.params) == null ? void 0 : r.catchAll);
|
|
757
758
|
});
|
|
758
|
-
e || this.$router.replace("/404");
|
|
759
|
+
this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404");
|
|
759
760
|
const s = e == null ? void 0 : e.table;
|
|
760
761
|
this.table = s || !1, !s && this.getInterface();
|
|
761
762
|
},
|
|
@@ -776,15 +777,15 @@ const xt = /* @__PURE__ */ g(Xe, [["render", ft]]), yt = {
|
|
|
776
777
|
class: "w-full"
|
|
777
778
|
}, kt = ["innerHTML"];
|
|
778
779
|
function vt(t, e, s, a, l, r) {
|
|
779
|
-
const
|
|
780
|
-
return l.table ? (o(), F(
|
|
780
|
+
const b = c("AdminTable");
|
|
781
|
+
return l.table ? (o(), F(b, {
|
|
781
782
|
key: 0,
|
|
782
783
|
table: l.table
|
|
783
784
|
}, null, 8, ["table"])) : (o(), i("div", _t, [
|
|
784
785
|
n("div", { innerHTML: l.interface }, null, 8, kt)
|
|
785
786
|
]));
|
|
786
787
|
}
|
|
787
|
-
const Mt = /* @__PURE__ */
|
|
788
|
+
const Mt = /* @__PURE__ */ f(yt, [["render", vt]]);
|
|
788
789
|
export {
|
|
789
790
|
Mt as default
|
|
790
791
|
};
|