@opengis/admin 0.1.1 → 0.1.3
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-w8kqN9iC.js +94 -0
- package/dist/{admin-interface-vPkHXzQK.js → admin-interface-BfdlUhra.js} +142 -136
- package/dist/{admin-view-BYF4ITZY.js → admin-view-RWOu4JiB.js} +1 -1
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +618 -25
- package/dist/card-page-B3wwBScq.js +115 -0
- package/dist/{card-view-CjZRvfqy.js → card-view-CZ14NHxS.js} +1 -1
- package/dist/edit-page-QkVrvzva.js +104 -0
- package/dist/import-file-BJrxCNbe.js +29254 -0
- package/dist/style.css +1 -1
- package/package.json +5 -2
- package/plugin.js +3 -7
- package/server/routes/data/controllers/cardData.js +1 -1
- package/server/routes/data/controllers/funcs/getFilterSQL/index.js +82 -0
- package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +142 -0
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -0
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +67 -0
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -0
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -0
- package/server/routes/data/controllers/tableData.js +12 -31
- package/server/routes/data/controllers/tableFilter.js +1 -1
- package/server/routes/data/controllers/utils/assignTokens.js +31 -0
- package/server/routes/data/index.mjs +1 -1
- package/server/routes/templates/controllers/getTemplate.js +2 -4
- package/dist/add-page-C-msiPrU.js +0 -64
- package/dist/card-page-HOwuHNjV.js +0 -49
- package/dist/edit-page-7yrRusn4.js +0 -58
- package/dist/form-TrZSpRSC.js +0 -38
- package/dist/import-file-DPHo57R5.js +0 -3726
- package/server/routes/data/controllers/metaFormat/getSelectVal.js +0 -19
- package/server/routes/data/controllers/metaFormat/index.js +0 -29
- package/server/routes/templates/funcs/addTempateFolder.js +0 -47
- package/server/routes/templates/funcs/getTemplate.js +0 -70
- package/server/routes/templates/funcs/getTemplatePath.js +0 -39
- package/server/routes/templates/funcs/loadTemplate.js +0 -1
- package/server/routes/templates/funcs/loadTemplateDir.js +0 -1
- package/server/routes/templates/funcs/loadTemplatePath.js +0 -1
- package/server/templates/interface/management.user_group.html +0 -1
- package/server/templates/interface/management.user_group.json +0 -10
- package/server/templates/interface/management.users.html +0 -1
- package/server/templates/interface/management.users.json +0 -10
- package/server/templates/map/dgm_level_line.xml +0 -52
- package/server/templates/pt/admin-menu-pt.html +0 -108
- package/server/templates/pt/management.user_group.table.pt.html +0 -127
- package/server/templates/pt/management.users.table.pt.html +0 -130
- package/server/templates/pt/table-standard-pt.html +0 -202
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as m, a as k } from "./import-file-
|
|
1
|
+
import { _ as m, a as k } from "./import-file-BJrxCNbe.js";
|
|
2
2
|
import { u as I } from "./userMenu-CT1xO2Pt.js";
|
|
3
|
-
import { openBlock as
|
|
4
|
-
const
|
|
3
|
+
import { openBlock as o, createElementBlock as i, createStaticVNode as S, createElementVNode as n, Fragment as f, resolveComponent as c, createVNode as p, withCtx as _, createTextVNode as M, withModifiers as U, renderList as v, toDisplayString as V, withDirectives as E, vModelCheckbox as H, createBlock as F, vModelText as L, resolveDynamicComponent as O, Transition as N, createCommentVNode as q, vShow as R } from "vue";
|
|
4
|
+
const G = {}, J = {
|
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6
6
|
viewBox: "0 0 24 24",
|
|
7
7
|
fill: "none",
|
|
@@ -11,12 +11,12 @@ const J = {}, K = {
|
|
|
11
11
|
"stroke-linejoin": "round",
|
|
12
12
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-adjustments-horizontal"
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
return
|
|
14
|
+
function K(t, e, s, a, l, r) {
|
|
15
|
+
return o(), i("svg", J, e[0] || (e[0] = [
|
|
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
|
|
19
|
+
const Q = /* @__PURE__ */ m(G, [["render", K]]), W = {}, X = {
|
|
20
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21
21
|
viewBox: "0 0 24 24",
|
|
22
22
|
fill: "none",
|
|
@@ -26,8 +26,8 @@ const W = /* @__PURE__ */ m(J, [["render", Q]]), X = {}, Y = {
|
|
|
26
26
|
"stroke-linejoin": "round",
|
|
27
27
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-dots-vertical"
|
|
28
28
|
};
|
|
29
|
-
function
|
|
30
|
-
return
|
|
29
|
+
function Y(t, e, s, a, l, r) {
|
|
30
|
+
return o(), i("svg", X, e[0] || (e[0] = [
|
|
31
31
|
n("path", {
|
|
32
32
|
stroke: "none",
|
|
33
33
|
d: "M0 0h24v24H0z",
|
|
@@ -38,7 +38,7 @@ function Z(t, e, s, a, l, o) {
|
|
|
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
|
|
41
|
+
const Z = /* @__PURE__ */ m(W, [["render", Y]]), ee = {}, te = {
|
|
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",
|
|
@@ -48,21 +48,21 @@ const ee = /* @__PURE__ */ m(X, [["render", Z]]), te = {}, ne = {
|
|
|
48
48
|
"stroke-linecap": "round",
|
|
49
49
|
"stroke-linejoin": "round"
|
|
50
50
|
};
|
|
51
|
-
function
|
|
52
|
-
return
|
|
51
|
+
function ne(t, e, s, a, l, r) {
|
|
52
|
+
return o(), i("svg", te, e[0] || (e[0] = [
|
|
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
|
|
56
|
+
const se = /* @__PURE__ */ m(ee, [["render", ne]]), le = {
|
|
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
|
-
}, re = { style: { display: "none" } },
|
|
63
|
-
function
|
|
64
|
-
return
|
|
65
|
-
(
|
|
62
|
+
}, re = { style: { display: "none" } }, oe = ["height", "width", "fill"];
|
|
63
|
+
function ae(t, e, s, a, l, r) {
|
|
64
|
+
return o(), i(f, null, [
|
|
65
|
+
(o(), i("svg", re, e[0] || (e[0] = [
|
|
66
66
|
n("symbol", {
|
|
67
67
|
id: "icon-pencil",
|
|
68
68
|
viewBox: "0 0 32 32"
|
|
@@ -70,20 +70,20 @@ function ie(t, e, s, a, l, o) {
|
|
|
70
70
|
n("path", { d: "M27 0c2.761 0 5 2.239 5 5 0 1.126-0.372 2.164-1 3l-2 2-7-7 2-2c0.836-0.628 1.874-1 3-1zM2 23l-2 9 9-2 18.5-18.5-7-7-18.5 18.5zM22.362 11.362l-14 14-1.724-1.724 14-14 1.724 1.724z" })
|
|
71
71
|
], -1)
|
|
72
72
|
]))),
|
|
73
|
-
(
|
|
73
|
+
(o(), i("svg", {
|
|
74
74
|
height: s.height,
|
|
75
75
|
width: s.width,
|
|
76
76
|
fill: s.color
|
|
77
77
|
}, e[1] || (e[1] = [
|
|
78
78
|
n("use", { "xlink:href": "#icon-pencil" }, null, -1)
|
|
79
|
-
]), 8,
|
|
79
|
+
]), 8, oe))
|
|
80
80
|
], 64);
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const ie = /* @__PURE__ */ m(le, [["render", ae]]), de = {
|
|
83
83
|
components: {
|
|
84
|
-
IconMore:
|
|
85
|
-
IconDelete:
|
|
86
|
-
IconEdit:
|
|
84
|
+
IconMore: Z,
|
|
85
|
+
IconDelete: se,
|
|
86
|
+
IconEdit: ie
|
|
87
87
|
},
|
|
88
88
|
emits: ["updateTable"],
|
|
89
89
|
props: { item: Object, table: String },
|
|
@@ -131,21 +131,21 @@ const de = /* @__PURE__ */ m(oe, [["render", ie]]), ue = {
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
},
|
|
134
|
+
}, ue = { class: "hs-dropdown [--placement:bottom-right] inline-flex" }, 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
|
-
},
|
|
139
|
-
function
|
|
138
|
+
}, pe = { class: "pt-[7px] pb-[7px] flex flex-col items-start" }, be = { class: "p-4" }, he = { class: "mt-4 flex justify-end gap-x-3" };
|
|
139
|
+
function me(t, e, s, a, l, r) {
|
|
140
140
|
const b = c("IconMore"), d = c("IconEdit"), h = c("router-link"), g = c("IconDelete"), w = c("VsPopover"), A = c("VsDialog");
|
|
141
|
-
return
|
|
142
|
-
n("div",
|
|
141
|
+
return o(), i(f, null, [
|
|
142
|
+
n("div", ue, [
|
|
143
143
|
p(w, {
|
|
144
144
|
trigger: "click",
|
|
145
145
|
placement: "left"
|
|
146
146
|
}, {
|
|
147
147
|
reference: _(() => [
|
|
148
|
-
n("button",
|
|
148
|
+
n("button", ce, [
|
|
149
149
|
p(b, {
|
|
150
150
|
height: "16",
|
|
151
151
|
width: "16"
|
|
@@ -155,7 +155,7 @@ function ge(t, e, s, a, l, o) {
|
|
|
155
155
|
default: _(() => {
|
|
156
156
|
var y, $, C;
|
|
157
157
|
return [
|
|
158
|
-
n("div",
|
|
158
|
+
n("div", pe, [
|
|
159
159
|
p(h, {
|
|
160
160
|
to: `/edit?table=${($ = (y = t.$route) == null ? void 0 : y.params) == null ? void 0 : $.catchAll}&id=${(C = s.item) == null ? void 0 : C.id}`,
|
|
161
161
|
class: "w-[100px] ml-[2px] flex items-center justify-center gap-x-3 rounded-lg text-[13px] text-gray-800"
|
|
@@ -168,7 +168,7 @@ function ge(t, e, s, a, l, o) {
|
|
|
168
168
|
}, 8, ["to"]),
|
|
169
169
|
e[6] || (e[6] = n("div", { class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto mt-[10px] mb-[10px]" }, null, -1)),
|
|
170
170
|
n("button", {
|
|
171
|
-
onClick: e[0] || (e[0] =
|
|
171
|
+
onClick: e[0] || (e[0] = U((...T) => r.openConfirm && r.openConfirm(...T), ["stop"])),
|
|
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
|
}, [
|
|
@@ -187,9 +187,9 @@ function ge(t, e, s, a, l, o) {
|
|
|
187
187
|
title: "Ви впевнені?"
|
|
188
188
|
}, {
|
|
189
189
|
default: _(() => [
|
|
190
|
-
n("div",
|
|
190
|
+
n("div", be, [
|
|
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", he, [
|
|
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",
|
|
@@ -198,7 +198,7 @@ function ge(t, e, s, a, l, o) {
|
|
|
198
198
|
n("button", {
|
|
199
199
|
type: "button",
|
|
200
200
|
class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm font-semibold rounded-lg border border-transparent bg-red-500 text-white hover:bg-red-600 disabled:opacity-50 disabled:pointer-events-none",
|
|
201
|
-
onClick: e[2] || (e[2] = (...y) =>
|
|
201
|
+
onClick: e[2] || (e[2] = (...y) => r.deleteElement && r.deleteElement(...y))
|
|
202
202
|
}, " Так, я впевнена/ий ")
|
|
203
203
|
])
|
|
204
204
|
])
|
|
@@ -207,7 +207,7 @@ function ge(t, e, s, a, l, o) {
|
|
|
207
207
|
}, 8, ["visible"])
|
|
208
208
|
], 64);
|
|
209
209
|
}
|
|
210
|
-
const
|
|
210
|
+
const ge = /* @__PURE__ */ m(de, [["render", me]]), fe = {}, xe = {
|
|
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",
|
|
@@ -217,15 +217,15 @@ const fe = /* @__PURE__ */ m(ue, [["render", ge]]), xe = {}, ye = {
|
|
|
217
217
|
"stroke-linecap": "round",
|
|
218
218
|
"stroke-linejoin": "round"
|
|
219
219
|
};
|
|
220
|
-
function
|
|
221
|
-
return
|
|
220
|
+
function ye(t, e, s, a, l, r) {
|
|
221
|
+
return o(), i("svg", xe, e[0] || (e[0] = [
|
|
222
222
|
n("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
|
223
223
|
n("path", { d: "M7 20V4" }, null, -1),
|
|
224
224
|
n("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
|
225
225
|
n("path", { d: "M17 4v16" }, null, -1)
|
|
226
226
|
]));
|
|
227
227
|
}
|
|
228
|
-
const
|
|
228
|
+
const _e = /* @__PURE__ */ m(fe, [["render", ye]]), ke = {
|
|
229
229
|
props: {
|
|
230
230
|
columns: { type: Object, default: () => {
|
|
231
231
|
} },
|
|
@@ -271,16 +271,16 @@ const ke = /* @__PURE__ */ m(xe, [["render", _e]]), ve = {
|
|
|
271
271
|
this.format = t;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
},
|
|
275
|
-
function
|
|
274
|
+
}, ve = { class: "p-4" }, we = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, $e = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, 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 space-y-2" }, Te = ["id", "onChange"], De = ["for"], Ve = { class: "pb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, Fe = { class: "text-center" };
|
|
275
|
+
function Ae(t, e, s, a, l, r) {
|
|
276
276
|
const b = c("VsCheckbox");
|
|
277
|
-
return
|
|
277
|
+
return o(), i(f, null, [
|
|
278
278
|
e[4] || (e[4] = n("div", { class: "dark:border-neutral-700" }, null, -1)),
|
|
279
|
-
n("div",
|
|
280
|
-
n("div",
|
|
279
|
+
n("div", ve, [
|
|
280
|
+
n("div", we, [
|
|
281
281
|
e[2] || (e[2] = n("label", { class: "text-sm text-gray-500 dark:text-neutral-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
|
282
|
-
n("div",
|
|
283
|
-
(
|
|
282
|
+
n("div", $e, [
|
|
283
|
+
(o(!0), i(f, null, v(s.columns, (d, h) => (o(), i("div", {
|
|
284
284
|
class: "flex items-center",
|
|
285
285
|
key: h,
|
|
286
286
|
style: { width: "calc((100% - 10px) / 2)" }
|
|
@@ -295,10 +295,10 @@ function Ie(t, e, s, a, l, o) {
|
|
|
295
295
|
]))), 128))
|
|
296
296
|
])
|
|
297
297
|
]),
|
|
298
|
-
n("div",
|
|
298
|
+
n("div", Ce, [
|
|
299
299
|
e[3] || (e[3] = n("label", { class: "text-sm text-gray-500 dark:text-neutral-500" }, " Виберіть формат таблиці: ", -1)),
|
|
300
|
-
n("div",
|
|
301
|
-
(
|
|
300
|
+
n("div", Me, [
|
|
301
|
+
(o(!0), i(f, null, v(l.tableFormats, (d, h) => (o(), i("div", {
|
|
302
302
|
class: "flex items-center",
|
|
303
303
|
key: h
|
|
304
304
|
}, [
|
|
@@ -307,29 +307,29 @@ function Ie(t, e, s, a, l, o) {
|
|
|
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
309
|
id: d,
|
|
310
|
-
onChange: (g) =>
|
|
311
|
-
}, null, 40,
|
|
310
|
+
onChange: (g) => r.selectFormat(d)
|
|
311
|
+
}, null, 40, Te),
|
|
312
312
|
n("label", {
|
|
313
313
|
for: d,
|
|
314
314
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
|
315
|
-
}, " Формат " + V(d), 9,
|
|
315
|
+
}, " Формат " + V(d), 9, De)
|
|
316
316
|
]))), 128))
|
|
317
317
|
])
|
|
318
318
|
]),
|
|
319
|
-
n("div",
|
|
320
|
-
n("div",
|
|
319
|
+
n("div", Ve, [
|
|
320
|
+
n("div", Fe, [
|
|
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] = (...d) =>
|
|
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
|
|
332
|
-
components: { IconExport:
|
|
331
|
+
const Ie = /* @__PURE__ */ m(ke, [["render", Ae]]), Ee = {
|
|
332
|
+
components: { IconExport: _e, AdminTableExportForm: Ie },
|
|
333
333
|
props: { table: String, columns: Array },
|
|
334
334
|
data() {
|
|
335
335
|
return {
|
|
@@ -337,9 +337,9 @@ const Ee = /* @__PURE__ */ m(ve, [["render", Ie]]), Se = {
|
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
339
|
};
|
|
340
|
-
function
|
|
340
|
+
function Se(t, e, s, a, l, r) {
|
|
341
341
|
const b = c("IconExport"), d = c("AdminTableExportForm"), h = c("VsDialog");
|
|
342
|
-
return
|
|
342
|
+
return o(), i(f, null, [
|
|
343
343
|
n("button", {
|
|
344
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"
|
|
@@ -365,7 +365,7 @@ function je(t, e, s, a, l, o) {
|
|
|
365
365
|
}, 8, ["visible"])
|
|
366
366
|
], 64);
|
|
367
367
|
}
|
|
368
|
-
const
|
|
368
|
+
const je = /* @__PURE__ */ m(Ee, [["render", Se]]), ze = {}, Pe = {
|
|
369
369
|
xmlns: "http://www.w3.org/2000/svg",
|
|
370
370
|
viewBox: "0 0 24 24",
|
|
371
371
|
fill: "none",
|
|
@@ -375,12 +375,12 @@ const ze = /* @__PURE__ */ m(Se, [["render", je]]), Pe = {}, Be = {
|
|
|
375
375
|
"stroke-linejoin": "round",
|
|
376
376
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
|
377
377
|
};
|
|
378
|
-
function
|
|
379
|
-
return
|
|
378
|
+
function Be(t, e, s, a, l, r) {
|
|
379
|
+
return o(), i("svg", Pe, e[0] || (e[0] = [
|
|
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
|
|
383
|
+
const Ue = /* @__PURE__ */ m(ze, [["render", Be]]), He = {
|
|
384
384
|
props: { column: Object },
|
|
385
385
|
emits: ["update-column"],
|
|
386
386
|
data() {
|
|
@@ -397,21 +397,21 @@ const He = /* @__PURE__ */ m(Pe, [["render", Ue]]), Le = {
|
|
|
397
397
|
var t;
|
|
398
398
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
|
399
399
|
}
|
|
400
|
-
},
|
|
401
|
-
function
|
|
400
|
+
}, Le = { class: "flex w-full gap-[8px] items-centr" };
|
|
401
|
+
function Oe(t, e, s, a, l, r) {
|
|
402
402
|
var b, d;
|
|
403
|
-
return
|
|
403
|
+
return o(), i("label", Le, [
|
|
404
404
|
E(n("input", {
|
|
405
405
|
"onUpdate:modelValue": e[0] || (e[0] = (h) => l.value = h),
|
|
406
406
|
type: "checkbox"
|
|
407
407
|
}, null, 512), [
|
|
408
|
-
[
|
|
408
|
+
[H, l.value]
|
|
409
409
|
]),
|
|
410
410
|
M(" " + V(((b = s.column) == null ? void 0 : b.ua) || ((d = s.column) == null ? void 0 : d.title)), 1)
|
|
411
411
|
]);
|
|
412
412
|
}
|
|
413
|
-
const
|
|
414
|
-
components: { IconColumns:
|
|
413
|
+
const Ne = /* @__PURE__ */ m(He, [["render", Oe]]), qe = {
|
|
414
|
+
components: { IconColumns: Ue, AdminTableColumnsHiddenItem: Ne },
|
|
415
415
|
emits: ["update-columns"],
|
|
416
416
|
props: { columns: Array },
|
|
417
417
|
methods: {
|
|
@@ -420,15 +420,15 @@ const qe = /* @__PURE__ */ m(Le, [["render", Ne]]), Re = {
|
|
|
420
420
|
s[e] = t, this.$emit("update-columns", [...s]);
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
},
|
|
424
|
-
function
|
|
423
|
+
}, Re = { 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" }, Ge = { 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
|
+
function Je(t, e, s, a, l, r) {
|
|
425
425
|
const b = c("IconColumns"), d = c("AdminTableColumnsHiddenItem"), h = c("VsPopover");
|
|
426
|
-
return
|
|
426
|
+
return o(), F(h, {
|
|
427
427
|
trigger: "click",
|
|
428
428
|
placement: "bottom"
|
|
429
429
|
}, {
|
|
430
430
|
reference: _(() => [
|
|
431
|
-
n("button",
|
|
431
|
+
n("button", Re, [
|
|
432
432
|
p(b, {
|
|
433
433
|
height: "20",
|
|
434
434
|
width: "16"
|
|
@@ -438,11 +438,11 @@ function Ke(t, e, s, a, l, o) {
|
|
|
438
438
|
default: _(() => [
|
|
439
439
|
n("div", null, [
|
|
440
440
|
e[0] || (e[0] = n("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
|
|
441
|
-
n("ul",
|
|
442
|
-
(
|
|
441
|
+
n("ul", Ge, [
|
|
442
|
+
(o(!0), i(f, null, v(s.columns, (g, w) => (o(), i("li", { key: w }, [
|
|
443
443
|
p(d, {
|
|
444
444
|
column: g,
|
|
445
|
-
onUpdateColumn:
|
|
445
|
+
onUpdateColumn: r.updateColumn
|
|
446
446
|
}, null, 8, ["column", "onUpdateColumn"])
|
|
447
447
|
]))), 128))
|
|
448
448
|
])
|
|
@@ -451,13 +451,13 @@ function Ke(t, e, s, a, l, o) {
|
|
|
451
451
|
_: 1
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
|
-
const
|
|
454
|
+
const Ke = /* @__PURE__ */ m(qe, [["render", Je]]), Qe = {
|
|
455
455
|
props: { table: String },
|
|
456
456
|
components: {
|
|
457
|
-
IconFilter:
|
|
458
|
-
AdminTableControl:
|
|
459
|
-
AdminTableExport:
|
|
460
|
-
AdminTableColumnsHidden:
|
|
457
|
+
IconFilter: Q,
|
|
458
|
+
AdminTableControl: ge,
|
|
459
|
+
AdminTableExport: je,
|
|
460
|
+
AdminTableColumnsHidden: Ke
|
|
461
461
|
},
|
|
462
462
|
data() {
|
|
463
463
|
return {
|
|
@@ -494,6 +494,12 @@ const Qe = /* @__PURE__ */ m(Re, [["render", Ke]]), We = {
|
|
|
494
494
|
},
|
|
495
495
|
searchValue() {
|
|
496
496
|
this.getTableData();
|
|
497
|
+
},
|
|
498
|
+
$route: {
|
|
499
|
+
handler() {
|
|
500
|
+
this.filterScheme = null, this.getFilters();
|
|
501
|
+
},
|
|
502
|
+
deep: !0
|
|
497
503
|
}
|
|
498
504
|
},
|
|
499
505
|
methods: {
|
|
@@ -540,22 +546,22 @@ const Qe = /* @__PURE__ */ m(Re, [["render", Ke]]), We = {
|
|
|
540
546
|
this.filters = t, this.page = 1, await this.getTableData();
|
|
541
547
|
}
|
|
542
548
|
}
|
|
543
|
-
},
|
|
549
|
+
}, We = { class: "w-[calc(100vw - 320px)]" }, Xe = { class: "h-[58px] bg-gray-50 flex items-center justify-between px-[30px]" }, Ye = { class: "text-xl font-medium" }, Ze = {
|
|
544
550
|
style: { height: "calc(100vh - 60px)", width: "calc(100vw - 260px)" },
|
|
545
551
|
class: "bg-gray-50 p-[20px] flex"
|
|
546
|
-
},
|
|
552
|
+
}, et = { class: "bg-white w-full rounded-xl border p-[20px]" }, tt = { class: "flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px]" }, nt = { class: "flex gap-[6px] ml-auto" }, st = { class: "space-y-5 flex items-start w-full justify-start" }, lt = {
|
|
547
553
|
style: { height: "calc(100vh - 250px)" },
|
|
548
554
|
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"
|
|
549
|
-
}, rt = { class: "inline-block align-middle" },
|
|
550
|
-
function
|
|
551
|
-
var $, C, T, j, z, P, B
|
|
555
|
+
}, rt = { class: "inline-block align-middle" }, ot = { class: "divide-y divide-gray-200 dark:divide-neutral-700 relative" }, at = { class: "sticky top-0 bg-white" }, it = { class: "border-t border-stone-200" }, dt = { class: "pe-4 py-3 gap-x-1 text-sm font-medium text-gray-800 dark:text-neutral-200" }, ut = { class: "divide-y divide-gray-200 dark:divide-neutral-700" }, ct = ["onClick"], pt = { class: "text-center sticky right-0 bg-white" }, bt = { class: "p-[20px] flex justify-end w-full" }, ht = { 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" };
|
|
556
|
+
function mt(t, e, s, a, l, r) {
|
|
557
|
+
var $, C, T, j, z, P, B;
|
|
552
558
|
const b = c("router-link"), d = c("AdminTableColumnsHidden"), h = c("AdminTableExport"), g = c("IconFilter"), w = c("AdminTableControl"), A = c("VsPagination"), y = c("VsFilter");
|
|
553
|
-
return
|
|
554
|
-
n("div",
|
|
555
|
-
n("div",
|
|
556
|
-
n("h2",
|
|
559
|
+
return o(), i(f, null, [
|
|
560
|
+
n("div", We, [
|
|
561
|
+
n("div", Xe, [
|
|
562
|
+
n("h2", Ye, V(($ = l.tableData) == null ? void 0 : $.title), 1),
|
|
557
563
|
p(b, {
|
|
558
|
-
to: `/add?table=${(
|
|
564
|
+
to: `/add?table=${(T = (C = t.$route) == null ? void 0 : C.params) == null ? void 0 : T.catchAll}`,
|
|
559
565
|
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"
|
|
560
566
|
}, {
|
|
561
567
|
default: _(() => e[5] || (e[5] = [
|
|
@@ -564,24 +570,24 @@ function gt(t, e, s, a, l, o) {
|
|
|
564
570
|
_: 1
|
|
565
571
|
}, 8, ["to"])
|
|
566
572
|
]),
|
|
567
|
-
n("div",
|
|
568
|
-
n("div",
|
|
569
|
-
n("div",
|
|
573
|
+
n("div", Ze, [
|
|
574
|
+
n("div", et, [
|
|
575
|
+
n("div", tt, [
|
|
570
576
|
E(n("input", {
|
|
571
577
|
"onUpdate:modelValue": e[0] || (e[0] = (u) => l.searchValue = u),
|
|
572
578
|
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",
|
|
573
579
|
placeholder: "Пошук..."
|
|
574
580
|
}, null, 512), [
|
|
575
|
-
[
|
|
581
|
+
[L, l.searchValue]
|
|
576
582
|
]),
|
|
577
|
-
n("div",
|
|
583
|
+
n("div", nt, [
|
|
578
584
|
p(d, {
|
|
579
|
-
columns: (
|
|
585
|
+
columns: (j = l.tableData) == null ? void 0 : j.columns,
|
|
580
586
|
onUpdateColumns: e[1] || (e[1] = (u) => l.tableData.columns = u)
|
|
581
587
|
}, null, 8, ["columns"]),
|
|
582
588
|
p(h, {
|
|
583
589
|
table: s.table,
|
|
584
|
-
columns: (
|
|
590
|
+
columns: (z = l.tableData) == null ? void 0 : z.columns
|
|
585
591
|
}, null, 8, ["table", "columns"]),
|
|
586
592
|
n("button", {
|
|
587
593
|
onClick: e[2] || (e[2] = (u) => l.isFilters = !l.isFilters),
|
|
@@ -595,41 +601,41 @@ function gt(t, e, s, a, l, o) {
|
|
|
595
601
|
])
|
|
596
602
|
])
|
|
597
603
|
]),
|
|
598
|
-
n("div",
|
|
599
|
-
n("div",
|
|
604
|
+
n("div", st, [
|
|
605
|
+
n("div", lt, [
|
|
600
606
|
n("div", rt, [
|
|
601
|
-
n("table",
|
|
602
|
-
n("thead",
|
|
603
|
-
n("tr",
|
|
604
|
-
(
|
|
607
|
+
n("table", ot, [
|
|
608
|
+
n("thead", at, [
|
|
609
|
+
n("tr", it, [
|
|
610
|
+
(o(!0), i(f, null, v(r.columns, (u) => (o(), i("th", {
|
|
605
611
|
class: "min-w-[200px] text-start",
|
|
606
612
|
key: u.name
|
|
607
613
|
}, [
|
|
608
|
-
n("div",
|
|
614
|
+
n("div", dt, V((u == null ? void 0 : u.ua) || u.name), 1)
|
|
609
615
|
]))), 128)),
|
|
610
616
|
e[7] || (e[7] = n("th", { class: "min-w-[150px] sticky right-0 top-0 bg-white z-[10]" }, " Дія ", -1))
|
|
611
617
|
])
|
|
612
618
|
]),
|
|
613
|
-
n("tbody",
|
|
614
|
-
(
|
|
615
|
-
(
|
|
616
|
-
onClick: (
|
|
619
|
+
n("tbody", ut, [
|
|
620
|
+
(o(!0), i(f, null, v((P = l.tableData) == null ? void 0 : P.rows, (u, D) => (o(), i("tr", { key: D }, [
|
|
621
|
+
(o(!0), i(f, null, v(r.columns, (x) => (o(), i("td", {
|
|
622
|
+
onClick: (kt) => t.$router.push(`/card/${s.table}/${u == null ? void 0 : u.id}`),
|
|
617
623
|
class: "size-px min-w-[200px] whitespace-nowrap text-start pe-4 py-3 text-sm text-gray-600",
|
|
618
624
|
key: x.name
|
|
619
625
|
}, [
|
|
620
|
-
(
|
|
626
|
+
(o(), F(O(
|
|
621
627
|
t.$componentsConfig[`table-format-${(x == null ? void 0 : x.format) || t.text}`]
|
|
622
628
|
), {
|
|
623
629
|
name: x == null ? void 0 : x.name,
|
|
624
630
|
data: u,
|
|
625
631
|
value: u == null ? void 0 : u[x == null ? void 0 : x.name]
|
|
626
632
|
}, null, 8, ["name", "data", "value"]))
|
|
627
|
-
], 8,
|
|
628
|
-
n("td",
|
|
633
|
+
], 8, ct))), 128)),
|
|
634
|
+
n("td", pt, [
|
|
629
635
|
p(w, {
|
|
630
636
|
item: u,
|
|
631
637
|
table: s.table,
|
|
632
|
-
onUpdateTable:
|
|
638
|
+
onUpdateTable: r.getTableData
|
|
633
639
|
}, null, 8, ["item", "table", "onUpdateTable"])
|
|
634
640
|
])
|
|
635
641
|
]))), 128))
|
|
@@ -638,33 +644,33 @@ function gt(t, e, s, a, l, o) {
|
|
|
638
644
|
])
|
|
639
645
|
])
|
|
640
646
|
]),
|
|
641
|
-
n("div",
|
|
647
|
+
n("div", bt, [
|
|
642
648
|
p(A, {
|
|
643
649
|
goTo: !1,
|
|
644
650
|
class: "justify-end",
|
|
645
651
|
style: { width: "calc(50% + 100px)" },
|
|
646
|
-
"default-page":
|
|
647
|
-
total: ((
|
|
652
|
+
"default-page": r.defaultPage,
|
|
653
|
+
total: ((B = l.tableData) == null ? void 0 : B.total) || 0,
|
|
648
654
|
pageSize: l.limit,
|
|
649
|
-
onPageChange:
|
|
655
|
+
onPageChange: r.handlePageChange,
|
|
650
656
|
pageSizes: [10, 16, 20],
|
|
651
|
-
onPageSizeChange:
|
|
657
|
+
onPageSizeChange: r.changeLimit
|
|
652
658
|
}, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])
|
|
653
659
|
])
|
|
654
660
|
])
|
|
655
661
|
])
|
|
656
662
|
]),
|
|
657
|
-
p(
|
|
663
|
+
p(N, { name: "fade" }, {
|
|
658
664
|
default: _(() => {
|
|
659
665
|
var u;
|
|
660
666
|
return [
|
|
661
667
|
E(n("div", {
|
|
662
|
-
onClick: e[4] || (e[4] = (...D) =>
|
|
668
|
+
onClick: e[4] || (e[4] = (...D) => r.closeFilter && r.closeFilter(...D)),
|
|
663
669
|
style: { height: "100vh" },
|
|
664
|
-
class: "fixed filter-container top-0 flex justify-end items-center z-[2] right-0 left-0 bottom-0
|
|
670
|
+
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)]"
|
|
665
671
|
}, [
|
|
666
|
-
n("div",
|
|
667
|
-
(u = l.filterScheme) != null && u.length ? (
|
|
672
|
+
n("div", ht, [
|
|
673
|
+
(u = l.filterScheme) != null && u.length ? (o(), F(y, {
|
|
668
674
|
key: 0,
|
|
669
675
|
ref: "filter",
|
|
670
676
|
scheme: l.filterScheme,
|
|
@@ -672,13 +678,13 @@ function gt(t, e, s, a, l, o) {
|
|
|
672
678
|
"apply-vue-router": "",
|
|
673
679
|
history: "",
|
|
674
680
|
name: "filter",
|
|
675
|
-
onFilterChange:
|
|
681
|
+
onFilterChange: r.filterChange,
|
|
676
682
|
closeFilterBtn: !0,
|
|
677
683
|
onFilterClose: e[3] || (e[3] = (D) => l.isFilters = !1)
|
|
678
|
-
}, null, 8, ["scheme", "onFilterChange"])) :
|
|
684
|
+
}, null, 8, ["scheme", "onFilterChange"])) : q("", !0)
|
|
679
685
|
])
|
|
680
686
|
], 512), [
|
|
681
|
-
[
|
|
687
|
+
[R, l.isFilters]
|
|
682
688
|
])
|
|
683
689
|
];
|
|
684
690
|
}),
|
|
@@ -686,8 +692,8 @@ function gt(t, e, s, a, l, o) {
|
|
|
686
692
|
})
|
|
687
693
|
], 64);
|
|
688
694
|
}
|
|
689
|
-
const
|
|
690
|
-
components: { AdminTable:
|
|
695
|
+
const gt = /* @__PURE__ */ m(Qe, [["render", mt]]), ft = {
|
|
696
|
+
components: { AdminTable: gt },
|
|
691
697
|
data() {
|
|
692
698
|
return {
|
|
693
699
|
table: !1,
|
|
@@ -724,8 +730,8 @@ const ft = /* @__PURE__ */ m(We, [["render", gt]]), xt = {
|
|
|
724
730
|
const t = this.flattenMenu(I.value);
|
|
725
731
|
t != null && t.length || this.$router.replace("/404");
|
|
726
732
|
const e = t == null ? void 0 : t.find((a) => {
|
|
727
|
-
var l,
|
|
728
|
-
return (a == null ? void 0 : a.path) == ((
|
|
733
|
+
var l, r;
|
|
734
|
+
return (a == null ? void 0 : a.path) == ((r = (l = this.$route) == null ? void 0 : l.params) == null ? void 0 : r.catchAll);
|
|
729
735
|
});
|
|
730
736
|
e || this.$router.replace("/404");
|
|
731
737
|
const s = e == null ? void 0 : e.table;
|
|
@@ -743,20 +749,20 @@ const ft = /* @__PURE__ */ m(We, [["render", gt]]), xt = {
|
|
|
743
749
|
}
|
|
744
750
|
}
|
|
745
751
|
}
|
|
746
|
-
},
|
|
752
|
+
}, xt = {
|
|
747
753
|
key: 1,
|
|
748
754
|
class: "w-full"
|
|
749
|
-
},
|
|
750
|
-
function
|
|
755
|
+
}, yt = ["innerHTML"];
|
|
756
|
+
function _t(t, e, s, a, l, r) {
|
|
751
757
|
const b = c("AdminTable");
|
|
752
|
-
return l.table ? (
|
|
758
|
+
return l.table ? (o(), F(b, {
|
|
753
759
|
key: 0,
|
|
754
760
|
table: l.table
|
|
755
|
-
}, null, 8, ["table"])) : (
|
|
756
|
-
n("div", { innerHTML: l.interface }, null, 8,
|
|
761
|
+
}, null, 8, ["table"])) : (o(), i("div", xt, [
|
|
762
|
+
n("div", { innerHTML: l.interface }, null, 8, yt)
|
|
757
763
|
]));
|
|
758
764
|
}
|
|
759
|
-
const
|
|
765
|
+
const Ct = /* @__PURE__ */ m(ft, [["render", _t]]);
|
|
760
766
|
export {
|
|
761
|
-
|
|
767
|
+
Ct as default
|
|
762
768
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as f, a as N } from "./import-file-
|
|
1
|
+
import { _ as f, a as N } from "./import-file-BJrxCNbe.js";
|
|
2
2
|
import { u as g } from "./userMenu-CT1xO2Pt.js";
|
|
3
3
|
import { openBlock as r, createElementBlock as l, createElementVNode as s, createStaticVNode as B, resolveComponent as h, createTextVNode as v, toDisplayString as w, createVNode as C, normalizeClass as m, Transition as O, withCtx as V, withDirectives as L, Fragment as Z, renderList as E, vShow as D, vModelText as j, createBlock as z, createCommentVNode as S } from "vue";
|
|
4
4
|
const T = {}, F = {
|