@opengis/admin 0.1.98 → 0.1.100
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/add-page-Dl_bGhPC.js +92 -0
- package/dist/admin-interface-Dma-D4A9.js +1351 -0
- package/dist/admin-view-TeTAUVK1.js +640 -0
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +83 -128
- package/dist/card-page-D-3aubBo.js +230 -0
- package/dist/{card-view-BpcpqR_U.js → card-view-CZjPaUKx.js} +1 -1
- package/dist/edit-page-RhKgRai9.js +103 -0
- package/dist/{import-file-eH-_Imyb.js → import-file-DgJqxKyF.js} +18308 -19458
- package/dist/style.css +1 -1
- package/module/settings/card/admin.accounts.table/index.yml +8 -0
- package/module/settings/card/admin.accounts.table/rules.hbs +19 -0
- package/module/settings/card/admin.accounts.table/users.hbs +14 -0
- package/module/settings/card/admin.roles.table/access.hbs +3 -24
- package/module/settings/card/admin.roles.table/general_info.hbs +1 -17
- package/module/settings/card/admin.roles.table/index.yml +4 -1
- package/module/settings/card/admin.roles.table/users.hbs +6 -27
- package/module/settings/card/admin.routes.table/general_info.hbs +14 -41
- package/module/settings/card/admin.routes.table/groups.hbs +12 -0
- package/module/settings/card/admin.routes.table/index.yml +3 -0
- package/module/settings/card/admin.routes.table/users.hbs +16 -33
- package/module/settings/card/admin.users.table/context.hbs +15 -0
- package/module/settings/card/admin.users.table/general_info.hbs +13 -26
- package/module/settings/card/admin.users.table/index.yml +17 -7
- package/module/settings/card/admin.users.table/last_login.hbs +10 -0
- package/module/settings/card/admin.users.table/logs.hbs +11 -31
- package/module/settings/card/admin.users.table/routes.hbs +8 -0
- package/module/settings/card/admin.users.table/user_roles.hbs +13 -25
- package/module/settings/form/admin.accounts.form.json +13 -0
- package/module/settings/form/admin.rules.form.json +31 -0
- package/module/settings/form/admin.user_roles.form.json +0 -8
- package/module/settings/form/admin.user_roles_card.form.json +14 -0
- package/module/settings/form/admin.users.form.json +2 -2
- package/module/settings/form/context.account_grants.form.json +24 -0
- package/module/settings/form/context.account_users.form.json +12 -0
- package/module/settings/menu.json +24 -0
- package/module/settings/select/core.accounts.sql +1 -0
- package/module/settings/select/core.roles.sql +1 -1
- package/module/settings/select/core.rules.sql +1 -0
- package/module/settings/select/core.user_uid.sql +0 -1
- package/module/settings/table/admin.accounts.table.json +42 -0
- package/module/settings/table/admin.roles.table.json +1 -1
- package/module/settings/table/admin.routes.table.json +9 -4
- package/module/settings/table/admin.rules.table.json +77 -0
- package/module/settings/table/admin.users.table.json +17 -6
- package/module/settings/table/context.account_grants.table.json +68 -0
- package/module/settings/table/context.account_users.table.json +38 -0
- package/package.json +3 -2
- package/server/helpers/core/select.js +4 -6
- package/server/helpers/list/tableList.js +9 -6
- package/server/routes/access/controllers/access.group.js +1 -1
- package/server/routes/access/controllers/access.group.post.js +4 -4
- package/server/routes/data/controllers/cardData.js +11 -0
- package/server/routes/data/controllers/tableData.js +13 -4
- package/server/routes/menu/controllers/getMenu.js +12 -25
- package/dist/IconChevronDown-irxwDmQp.js +0 -26
- package/dist/add-page-UtwEANeW.js +0 -105
- package/dist/admin-interface-PJfd31TQ.js +0 -1600
- package/dist/admin-view-BuVQ8ziq.js +0 -383
- package/dist/assets/favicon.svg +0 -1
- package/dist/assets/logo.svg +0 -42
- package/dist/edit-page-Bd6VW9hb.js +0 -120
- package/module/settings/select/core.roles.json +0 -3
@@ -1,383 +0,0 @@
|
|
1
|
-
import { _, I as F, u as D, s as T, a as R, b as q, c as j } from "./import-file-eH-_Imyb.js";
|
2
|
-
import { openBlock as l, createElementBlock as c, createElementVNode as n, createStaticVNode as G, resolveComponent as p, normalizeClass as I, createTextVNode as B, toDisplayString as U, createVNode as u, Transition as J, withCtx as A, withDirectives as K, Fragment as Z, renderList as Q, vShow as P, createCommentVNode as E, withModifiers as W, createBlock as X, resolveDynamicComponent as Y } from "vue";
|
3
|
-
import { I as e1 } from "./IconChevronDown-irxwDmQp.js";
|
4
|
-
const t1 = {}, o1 = {
|
5
|
-
xmlns: "http://www.w3.org/2000/svg",
|
6
|
-
viewBox: "0 0 24 24",
|
7
|
-
fill: "none",
|
8
|
-
stroke: "currentColor",
|
9
|
-
"stroke-width": "2",
|
10
|
-
"stroke-linecap": "round",
|
11
|
-
"stroke-linejoin": "round",
|
12
|
-
class: "icon icon-tabler icons-tabler-outline icon-tabler-logout"
|
13
|
-
};
|
14
|
-
function r1(e, t, o, a, r, s) {
|
15
|
-
return l(), c("svg", o1, t[0] || (t[0] = [
|
16
|
-
n("path", {
|
17
|
-
stroke: "none",
|
18
|
-
d: "M0 0h24v24H0z",
|
19
|
-
fill: "none"
|
20
|
-
}, null, -1),
|
21
|
-
n("path", { d: "M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2" }, null, -1),
|
22
|
-
n("path", { d: "M9 12h12l-3 -3" }, null, -1),
|
23
|
-
n("path", { d: "M18 15l3 -3" }, null, -1)
|
24
|
-
]));
|
25
|
-
}
|
26
|
-
const n1 = /* @__PURE__ */ _(t1, [["render", r1]]), s1 = {}, l1 = {
|
27
|
-
viewBox: "0 0 1823 249",
|
28
|
-
fill: "none",
|
29
|
-
xmlns: "http://www.w3.org/2000/svg"
|
30
|
-
};
|
31
|
-
function a1(e, t, o, a, r, s) {
|
32
|
-
return l(), c("svg", l1, t[0] || (t[0] = [
|
33
|
-
G('<path d="M218.88 96.05C223.55 99.19 228.69 101.56 234.09 103.07V145.42C212.05 151.54 195.83 171.79 195.83 195.75C195.83 200.22 196.41 204.65 197.53 208.94L160.92 230.08C156.82 226.06 152.08 222.73 146.91 220.24V171.62C164.83 163.13 176.59 145.06 176.59 124.48C176.59 123.17 176.54 121.86 176.44 120.56L218.88 96.05ZM220.32 79.09L160.97 113.36C162.04 116.88 162.61 120.61 162.61 124.48C162.61 142.66 149.93 157.87 132.93 161.76V230.05C143.4 232.46 152.23 239.16 157.46 248.21L215 214.99C211.7 209.34 209.81 202.77 209.81 195.75C209.81 174.62 226.94 157.49 248.07 157.49V91.02C237.14 91.02 227.29 86.43 220.32 79.09Z" fill="#CE3936"></path><path d="M161.39 19.13L197.44 39.94C196.39 44.11 195.84 48.42 195.84 52.75C195.84 54.21 195.9 55.65 196.02 57.1L153.9 81.42C145.27 75.5 134.95 72.24 124.36 72.24C113.83 72.24 103.57 75.47 94.96 81.32L52.71 56.93C52.82 55.55 52.88 54.16 52.88 52.76C52.88 48.43 52.34 44.12 51.28 39.95L87.3 19.16C96.98 28.89 110.26 34.58 124.34 34.58C138.42 34.57 151.7 28.87 161.39 19.13ZM157.77 0.919983C151.24 12.66 138.71 20.6 124.33 20.6C109.95 20.6 97.44 12.67 90.9 0.939983L33.9 33.85C37.08 39.43 38.91 45.88 38.91 52.76C38.91 56.71 38.31 60.52 37.2 64.11L96.46 98.32C103.44 90.87 113.36 86.22 124.37 86.22C135.44 86.22 145.41 90.93 152.39 98.44L211.59 64.27C210.45 60.64 209.83 56.78 209.83 52.77C209.83 45.89 211.65 39.44 214.84 33.86L157.77 0.919983Z" fill="#CE3936"></path><path d="M29.97 95.95L72.28 120.38C72.17 121.74 72.12 123.1 72.12 124.47C72.12 145.02 83.86 163.08 101.74 171.58V220.23C96.58 222.71 91.84 226.04 87.75 230.05L51.17 208.93C52.29 204.64 52.87 200.21 52.87 195.74C52.87 171.78 36.65 151.53 14.61 145.41V103.06C20.07 101.55 25.27 99.14 29.97 95.95ZM28.5 78.97C21.52 86.38 11.63 91.02 0.640015 91.02V157.49C21.77 157.49 38.9 174.62 38.9 195.75C38.9 202.77 37 209.33 33.71 214.99L91.2 248.18C96.43 239.14 105.25 232.45 115.71 230.04V161.73C98.74 157.81 86.09 142.62 86.09 124.46C86.09 120.54 86.68 116.75 87.78 113.18L28.5 78.97Z" fill="#CE3936"></path><path d="M498.39 177.5V144.88C498.39 128.55 485.11 115.27 468.78 115.27H343.22C342.69 115.27 342.18 115.32 341.67 115.4H337.19C332.35 115.4 328.42 111.46 328.42 106.63V74C328.42 69.16 332.36 65.23 337.19 65.23H486.33C492.08 65.23 496.75 60.57 496.75 54.81C496.75 49.06 492.08 44.39 486.33 44.39H337.19C320.86 44.39 307.58 57.67 307.58 74V106.62C307.58 122.95 320.86 136.23 337.19 136.23H462.75C463.28 136.23 463.79 136.18 464.3 136.1H468.78C473.62 136.1 477.55 140.04 477.55 144.87V177.49C477.55 182.33 473.61 186.26 468.78 186.26H319.64C313.89 186.26 309.22 190.92 309.22 196.68C309.22 202.43 313.89 207.1 319.64 207.1H468.78C485.11 207.11 498.39 193.83 498.39 177.5Z" fill="#CE3935"></path><path d="M710.7 177.32V75.24C710.7 58.91 697.42 45.63 681.09 45.63H550.05C533.72 45.63 520.44 58.91 520.44 75.24V177.32C520.44 193.65 533.72 206.93 550.05 206.93H681.1C697.42 206.93 710.7 193.65 710.7 177.32ZM541.27 75.24C541.27 70.4 545.21 66.47 550.04 66.47H681.09C685.93 66.47 689.86 70.41 689.86 75.24V177.32C689.86 182.16 685.92 186.09 681.09 186.09H550.05C545.21 186.09 541.28 182.15 541.28 177.32V75.24H541.27Z" fill="#CE3935"></path><path d="M1823 177.32V75.24C1823 58.91 1809.72 45.63 1793.39 45.63H1662.34C1646.01 45.63 1632.73 58.91 1632.73 75.24V177.32C1632.73 193.65 1646.01 206.93 1662.34 206.93H1793.39C1809.72 206.93 1823 193.65 1823 177.32ZM1653.57 75.24C1653.57 70.4 1657.51 66.47 1662.34 66.47H1793.39C1798.23 66.47 1802.16 70.41 1802.16 75.24V177.32C1802.16 182.16 1798.22 186.09 1793.39 186.09H1662.34C1657.5 186.09 1653.57 182.15 1653.57 177.32V75.24Z" fill="#CE3935"></path><path d="M756.76 196.51V152H849.42C855.17 152 859.84 147.34 859.84 141.58C859.84 135.83 855.17 131.16 849.42 131.16H756.76V75.23C756.76 70.39 760.7 66.46 765.53 66.46H893.29C899.04 66.46 903.71 61.8 903.71 56.04C903.71 50.29 899.04 45.62 893.29 45.62H765.53C749.2 45.62 735.92 58.9 735.92 75.23V196.5C735.92 202.25 740.59 206.92 746.34 206.92C752.09 206.93 756.76 202.27 756.76 196.51Z" fill="#CE3935"></path><path d="M933.86 66.47H1006.51V194.32C1006.51 200.07 1011.18 204.74 1016.93 204.74C1022.68 204.74 1027.35 200.07 1027.35 194.32V66.47H1100C1105.75 66.47 1110.42 61.81 1110.42 56.05C1110.42 50.3 1105.76 45.63 1100 45.63H933.86C928.11 45.63 923.44 50.29 923.44 56.05C923.45 61.81 928.11 66.47 933.86 66.47Z" fill="#CE3935"></path><path d="M1218.44 204.19C1224.19 204.19 1228.86 199.53 1228.86 193.77V152H1368.13C1384.46 152 1397.74 138.72 1397.74 122.39V75.24C1397.74 58.91 1384.46 45.63 1368.13 45.63H1237.63C1221.3 45.63 1208.02 58.91 1208.02 75.24V193.77C1208.02 199.53 1212.68 204.19 1218.44 204.19ZM1237.63 66.47H1368.13C1372.97 66.47 1376.9 70.41 1376.9 75.24V122.39C1376.9 127.23 1372.96 131.16 1368.13 131.16H1228.86V75.23C1228.86 70.41 1232.79 66.47 1237.63 66.47Z" fill="#CE3935"></path><path d="M1430.64 204.19C1436.39 204.19 1441.06 199.53 1441.06 193.77V152H1523.95C1524.57 153.18 1525.42 154.26 1526.51 155.17L1581.89 201.23C1583.83 202.85 1586.2 203.64 1588.55 203.64C1591.54 203.64 1594.5 202.36 1596.57 199.88C1600.25 195.46 1599.64 188.89 1595.22 185.21L1555.29 152H1580.33C1596.66 152 1609.94 138.72 1609.94 122.39V75.24C1609.94 58.91 1596.66 45.63 1580.33 45.63H1449.83C1433.5 45.63 1420.22 58.91 1420.22 75.24V193.77C1420.22 199.53 1424.88 204.19 1430.64 204.19ZM1449.83 66.47H1580.33C1585.17 66.47 1589.1 70.41 1589.1 75.24V122.39C1589.1 127.23 1585.17 131.16 1580.33 131.16H1441.06V75.23C1441.05 70.41 1444.99 66.47 1449.83 66.47Z" fill="#CE3935"></path>', 10)
|
34
|
-
]));
|
35
|
-
}
|
36
|
-
const c1 = /* @__PURE__ */ _(s1, [["render", a1]]), i1 = {
|
37
|
-
components: { IconChevronDown: e1 },
|
38
|
-
props: { route: Object, searchable: String },
|
39
|
-
mounted() {
|
40
|
-
var e, t, o;
|
41
|
-
(e = this.route) != null && e.menu && (o = (t = this.route) == null ? void 0 : t.menu) != null && o.some(
|
42
|
-
(a) => {
|
43
|
-
var r, s;
|
44
|
-
return (a == null ? void 0 : a.path) === this.$route.path.replace("/", "") || ((s = (r = this.$route) == null ? void 0 : r.params) == null ? void 0 : s.table) === (a == null ? void 0 : a.table) && (a == null ? void 0 : a.table);
|
45
|
-
}
|
46
|
-
) && (this.isOpen = !0);
|
47
|
-
},
|
48
|
-
watch: {
|
49
|
-
route(e) {
|
50
|
-
e != null && e.open && (this.isOpen = !0);
|
51
|
-
}
|
52
|
-
},
|
53
|
-
data() {
|
54
|
-
return {
|
55
|
-
isOpen: !1
|
56
|
-
};
|
57
|
-
},
|
58
|
-
methods: {
|
59
|
-
highLight(e) {
|
60
|
-
if (!this.searchable) return e;
|
61
|
-
const t = this.searchable.replace(
|
62
|
-
/[.*+?^${}()|[\]\\]/g,
|
63
|
-
"\\$&"
|
64
|
-
), o = new RegExp(`(${t})(\\s*)`, "gi");
|
65
|
-
return e.replace(
|
66
|
-
o,
|
67
|
-
(a, r, s) => `<span style="color:#1989fa;">${r}</span>${s}`
|
68
|
-
);
|
69
|
-
}
|
70
|
-
}
|
71
|
-
}, u1 = {
|
72
|
-
key: 0,
|
73
|
-
class: ""
|
74
|
-
}, d1 = { class: "ml-[30px] py-[6px] before:block before:absolute relative w-[196px] flex flex-col gap-[6px] inline-block before:w-[2px] before:h-[100%] before:bg-gray-100 before:left-[-14px] cursor-pointer" }, p1 = { key: 1 };
|
75
|
-
function h1(e, t, o, a, r, s) {
|
76
|
-
var g, x, h, b, v, w, m, y, k, V, H, $, M, O, N;
|
77
|
-
const C = p("IconChevronDown"), f = p("router-link");
|
78
|
-
return (g = o.route) != null && g.menu ? (l(), c("div", u1, [
|
79
|
-
n("button", {
|
80
|
-
onClick: t[0] || (t[0] = (d) => r.isOpen = !r.isOpen),
|
81
|
-
class: I(["flex items-center justify-start w-full px-3 py-2 text-sm text-left text-gray-800 duration-300 border-none rounded-lg cursor-pointer gap-x-3 focus:outline-none hover:bg-gray-100", [
|
82
|
-
((h = (x = o.route) == null ? void 0 : x.menu) == null ? void 0 : h.some(
|
83
|
-
(d) => {
|
84
|
-
var i, L;
|
85
|
-
return (d == null ? void 0 : d.path) === e.$route.path.replace("/", "") || (d == null ? void 0 : d.table) === ((L = (i = e.$route) == null ? void 0 : i.params) == null ? void 0 : L.table) && (d == null ? void 0 : d.table);
|
86
|
-
}
|
87
|
-
)) && "bg-gray-100"
|
88
|
-
]])
|
89
|
-
}, [
|
90
|
-
B(U((b = o.route) == null ? void 0 : b.ua) + " ", 1),
|
91
|
-
u(C, {
|
92
|
-
class: I([[r.isOpen && "-rotate-180"], "ml-auto duration-300"]),
|
93
|
-
width: "14",
|
94
|
-
height: "14"
|
95
|
-
}, null, 8, ["class"])
|
96
|
-
], 2),
|
97
|
-
u(J, { name: "fade" }, {
|
98
|
-
default: A(() => {
|
99
|
-
var d;
|
100
|
-
return [
|
101
|
-
K(n("ul", d1, [
|
102
|
-
(l(!0), c(Z, null, Q((d = o.route) == null ? void 0 : d.menu, (i, L) => {
|
103
|
-
var S, z;
|
104
|
-
return l(), c("li", {
|
105
|
-
key: L,
|
106
|
-
class: "w-full"
|
107
|
-
}, [
|
108
|
-
u(f, {
|
109
|
-
innerHTML: s.highLight(i == null ? void 0 : i.ua),
|
110
|
-
to: "/" + (i == null ? void 0 : i.path),
|
111
|
-
class: I([[
|
112
|
-
((i == null ? void 0 : i.path) === e.$route.path.replace("/", "") || ((z = (S = e.$route) == null ? void 0 : S.params) == null ? void 0 : z.table) === (i == null ? void 0 : i.table) && (i == null ? void 0 : i.table)) && "bg-gray-100"
|
113
|
-
], "inline-block px-3 py-2 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none focus:bg-gray-100"])
|
114
|
-
}, null, 8, ["innerHTML", "to", "class"])
|
115
|
-
]);
|
116
|
-
}), 128))
|
117
|
-
], 512), [
|
118
|
-
[P, r.isOpen]
|
119
|
-
])
|
120
|
-
];
|
121
|
-
}),
|
122
|
-
_: 1
|
123
|
-
})
|
124
|
-
])) : (v = o.route) != null && v.hidden ? E("", !0) : (l(), c("div", p1, [
|
125
|
-
u(f, {
|
126
|
-
innerHTML: s.highLight((w = o.route) == null ? void 0 : w.ua),
|
127
|
-
to: ((y = (m = o.route) == null ? void 0 : m.path) == null ? void 0 : y[0]) === "/" ? (k = o.route) == null ? void 0 : k.path : "/" + ((V = o.route) == null ? void 0 : V.path),
|
128
|
-
class: I([[
|
129
|
-
(((H = o.route) == null ? void 0 : H.path.replace("/", "")) === e.$route.path.replace("/", "") || ((M = ($ = e.$route) == null ? void 0 : $.params) == null ? void 0 : M.table) === ((O = o.route) == null ? void 0 : O.table) && ((N = o.route) == null ? void 0 : N.table)) && "bg-gray-100"
|
130
|
-
], "inline-block py-2 w-full font-[400] px-3 text-sm text-gray-800 rounded-lg items-center hover:bg-gray-100 duration-300 hover:text-gray-800"])
|
131
|
-
}, null, 8, ["innerHTML", "to", "class"])
|
132
|
-
]));
|
133
|
-
}
|
134
|
-
const f1 = /* @__PURE__ */ _(i1, [["render", h1]]), C1 = {
|
135
|
-
components: { IconLogout: n1, NavbarItem: f1, IconLogo: c1, IconSearch: F },
|
136
|
-
data() {
|
137
|
-
return {
|
138
|
-
activeIndex: null,
|
139
|
-
searchValue: ""
|
140
|
-
};
|
141
|
-
},
|
142
|
-
computed: {
|
143
|
-
data() {
|
144
|
-
var e;
|
145
|
-
return (e = this.searchValue) != null && e.trim() ? this.filterMenu(D.value, this.searchValue) : D.value;
|
146
|
-
},
|
147
|
-
logo() {
|
148
|
-
var e;
|
149
|
-
return ((e = T.value) == null ? void 0 : e.logo) || "/assets/logo.svg";
|
150
|
-
}
|
151
|
-
},
|
152
|
-
methods: {
|
153
|
-
filterMenu(e, t) {
|
154
|
-
return e.map((o) => {
|
155
|
-
var a, r;
|
156
|
-
if (o.menu) {
|
157
|
-
const s = this.filterMenu(o.menu, t);
|
158
|
-
if (s.length > 0)
|
159
|
-
return { ...o, menu: s, open: !0 };
|
160
|
-
} else if ((r = (a = o.ua) == null ? void 0 : a.toLowerCase()) != null && r.includes(t.toLowerCase()))
|
161
|
-
return o;
|
162
|
-
return null;
|
163
|
-
}).filter(Boolean);
|
164
|
-
}
|
165
|
-
}
|
166
|
-
}, g1 = { class: "flex flex-col h-[100vh] border-r w-[260px] shrink-0" }, x1 = ["src"], b1 = { class: "relative" }, _1 = { class: "p-[16px] overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-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" }, v1 = { class: "flex flex-col flex-wrap w-full pb-3" }, w1 = {
|
167
|
-
key: 0,
|
168
|
-
class: "flex flex-col gap-[6px]"
|
169
|
-
}, m1 = {
|
170
|
-
key: 1,
|
171
|
-
class: "text-gray-800 text-lg mt-[20px]"
|
172
|
-
};
|
173
|
-
function y1(e, t, o, a, r, s) {
|
174
|
-
var x;
|
175
|
-
const C = p("IconSearch"), f = p("VsText"), g = p("NavbarItem");
|
176
|
-
return l(), c("div", g1, [
|
177
|
-
n("img", {
|
178
|
-
src: s.logo,
|
179
|
-
height: "40",
|
180
|
-
width: "200",
|
181
|
-
class: "my-[20px] ml-[20px]"
|
182
|
-
}, null, 8, x1),
|
183
|
-
n("div", b1, [
|
184
|
-
u(C, {
|
185
|
-
height: "16",
|
186
|
-
width: "16",
|
187
|
-
class: "absolute top-[12px] left-[30px] text-gray-500 z-[1]"
|
188
|
-
}),
|
189
|
-
u(f, {
|
190
|
-
type: "text",
|
191
|
-
modelValue: r.searchValue,
|
192
|
-
"onUpdate:modelValue": t[0] || (t[0] = (h) => r.searchValue = h),
|
193
|
-
clearable: !0,
|
194
|
-
placeholder: "Пошук по меню",
|
195
|
-
class: "[&>input]:h-[40px] [&>input]:block [&>input]:rounded-none [&>input]:border-x-0 [&>input]:pl-[60px] [&>input:focus]:outline-none [&>input:focus]:focus:ring-0 [&>input:focus]:border-y-gray-200 [&>input:focus]:border-y-1 [&>input:focus]:border-x-0"
|
196
|
-
}, null, 8, ["modelValue"])
|
197
|
-
]),
|
198
|
-
n("div", _1, [
|
199
|
-
n("nav", v1, [
|
200
|
-
(x = s.data) != null && x.length ? (l(), c("ul", w1, [
|
201
|
-
(l(!0), c(Z, null, Q(s.data, (h, b) => (l(), c("li", {
|
202
|
-
key: b,
|
203
|
-
class: "flex flex-col gap-[6px]"
|
204
|
-
}, [
|
205
|
-
u(g, {
|
206
|
-
route: h,
|
207
|
-
searchable: r.searchValue
|
208
|
-
}, null, 8, ["route", "searchable"])
|
209
|
-
]))), 128))
|
210
|
-
])) : (l(), c("div", m1, "Не знайдено"))
|
211
|
-
])
|
212
|
-
])
|
213
|
-
]);
|
214
|
-
}
|
215
|
-
const k1 = /* @__PURE__ */ _(C1, [["render", y1]]), V1 = {}, H1 = {
|
216
|
-
class: "flex-shrink-0 size-4",
|
217
|
-
xmlns: "http://www.w3.org/2000/svg",
|
218
|
-
viewBox: "0 0 24 24",
|
219
|
-
fill: "none",
|
220
|
-
stroke: "currentColor",
|
221
|
-
"stroke-width": "2",
|
222
|
-
"stroke-linecap": "round",
|
223
|
-
"stroke-linejoin": "round"
|
224
|
-
};
|
225
|
-
function $1(e, t, o, a, r, s) {
|
226
|
-
return l(), c("svg", H1, t[0] || (t[0] = [
|
227
|
-
n("circle", {
|
228
|
-
cx: "12",
|
229
|
-
cy: "12",
|
230
|
-
r: "10"
|
231
|
-
}, null, -1),
|
232
|
-
n("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }, null, -1),
|
233
|
-
n("path", { d: "M12 17h.01" }, null, -1)
|
234
|
-
]));
|
235
|
-
}
|
236
|
-
const M1 = /* @__PURE__ */ _(V1, [["render", $1]]), L1 = {
|
237
|
-
components: { IconQuestion: M1, IconUser: R, AdminNotification: q },
|
238
|
-
mounted() {
|
239
|
-
this.getUserData();
|
240
|
-
},
|
241
|
-
data() {
|
242
|
-
return {
|
243
|
-
userData: null,
|
244
|
-
isVisible: !1
|
245
|
-
};
|
246
|
-
},
|
247
|
-
watch: {
|
248
|
-
isVisible(e) {
|
249
|
-
e ? setTimeout(
|
250
|
-
() => window.addEventListener("click", this.closeOnOutsideClick),
|
251
|
-
0
|
252
|
-
) : window.removeEventListener("click", this.closeOnOutsideClick);
|
253
|
-
}
|
254
|
-
},
|
255
|
-
methods: {
|
256
|
-
async getUserData() {
|
257
|
-
try {
|
258
|
-
const { data: e } = await j.get("/user");
|
259
|
-
this.userData = e;
|
260
|
-
} catch {
|
261
|
-
}
|
262
|
-
},
|
263
|
-
async logout() {
|
264
|
-
try {
|
265
|
-
await j.get("/logout"), await window.history.pushState({}, "", "/login"), await location.reload(), localStorage.removeItem("user");
|
266
|
-
} catch {
|
267
|
-
}
|
268
|
-
},
|
269
|
-
closeOnOutsideClick() {
|
270
|
-
this.isVisible = !1;
|
271
|
-
}
|
272
|
-
},
|
273
|
-
beforeUnmount() {
|
274
|
-
window.removeEventListener("click", this.closeOnOutsideClick);
|
275
|
-
}
|
276
|
-
}, I1 = {
|
277
|
-
class: "h-[60px] border-b flex justify-end px-[20px]",
|
278
|
-
style: { width: "calc(100vw - 260px)" }
|
279
|
-
}, D1 = { class: "flex items-center gap-[6px]" }, Z1 = {
|
280
|
-
href: "docs-softpro.com",
|
281
|
-
class: "size-[38px] inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent text-gray-500 hover:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 dark:text-neutral-400 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
282
|
-
}, E1 = { class: "relative" }, O1 = ["src"], N1 = {
|
283
|
-
key: 1,
|
284
|
-
class: "size-[40px] rounded-full bg-gray-200 flex items-center justify-center"
|
285
|
-
}, S1 = { class: "p-[10px] gap-[6px] items-center border-b flex justify-between" }, z1 = ["src"], j1 = {
|
286
|
-
key: 1,
|
287
|
-
class: "size-[40px] rounded-full bg-gray-200 flex items-center justify-center"
|
288
|
-
}, T1 = { class: "text-[14px] mr-[10px] text-gray-500" }, B1 = { class: "flex flex-col p-[4px]" };
|
289
|
-
function U1(e, t, o, a, r, s) {
|
290
|
-
var h, b, v, w, m, y, k, V, H, $;
|
291
|
-
const C = p("IconQuestion"), f = p("AdminNotification"), g = p("IconUser"), x = p("router-link");
|
292
|
-
return l(), c("div", I1, [
|
293
|
-
n("div", D1, [
|
294
|
-
n("a", Z1, [
|
295
|
-
u(C, {
|
296
|
-
height: "24",
|
297
|
-
width: "24"
|
298
|
-
})
|
299
|
-
]),
|
300
|
-
u(f),
|
301
|
-
t[4] || (t[4] = n("div", { class: "h-[30px] w-[1px] bg-gray-200 ml-[10px] mr-[10px]" }, null, -1)),
|
302
|
-
n("div", E1, [
|
303
|
-
n("div", {
|
304
|
-
onClick: t[0] || (t[0] = (M) => r.isVisible = !0),
|
305
|
-
class: "cursor-pointer"
|
306
|
-
}, [
|
307
|
-
(b = (h = r.userData) == null ? void 0 : h.user) != null && b.avatar ? (l(), c("img", {
|
308
|
-
key: 0,
|
309
|
-
class: "flex-shrink-0 size-[30px] rounded-full",
|
310
|
-
src: (w = (v = r.userData) == null ? void 0 : v.user) == null ? void 0 : w.avatar,
|
311
|
-
alt: "Image Description"
|
312
|
-
}, null, 8, O1)) : (l(), c("div", N1, [
|
313
|
-
u(g)
|
314
|
-
]))
|
315
|
-
]),
|
316
|
-
r.isVisible ? (l(), c("div", {
|
317
|
-
key: 0,
|
318
|
-
onClick: t[2] || (t[2] = W(() => {
|
319
|
-
}, ["stop"])),
|
320
|
-
class: "fixed bg-white w-[180px] top-[55px] right-[20px] shadow-xl rounded-xl z-[1]"
|
321
|
-
}, [
|
322
|
-
n("div", S1, [
|
323
|
-
(y = (m = r.userData) == null ? void 0 : m.user) != null && y.avatar ? (l(), c("img", {
|
324
|
-
key: 0,
|
325
|
-
class: "flex-shrink-0 size-[30px] rounded-full",
|
326
|
-
src: (V = (k = r.userData) == null ? void 0 : k.user) == null ? void 0 : V.avatar,
|
327
|
-
alt: "Image Description"
|
328
|
-
}, null, 8, z1)) : (l(), c("div", j1, [
|
329
|
-
u(g)
|
330
|
-
])),
|
331
|
-
n("div", null, [
|
332
|
-
n("p", T1, U(($ = (H = r.userData) == null ? void 0 : H.user) == null ? void 0 : $.username), 1)
|
333
|
-
])
|
334
|
-
]),
|
335
|
-
n("div", B1, [
|
336
|
-
u(x, {
|
337
|
-
to: "profile",
|
338
|
-
disabled: !0,
|
339
|
-
class: "p-[8px] block rounded-lg w-full mb-[4px] text-start hover:bg-gray-100 !duration-300"
|
340
|
-
}, {
|
341
|
-
default: A(() => t[3] || (t[3] = [
|
342
|
-
B("Профіль")
|
343
|
-
])),
|
344
|
-
_: 1
|
345
|
-
}),
|
346
|
-
n("button", {
|
347
|
-
onClick: t[1] || (t[1] = (...M) => s.logout && s.logout(...M)),
|
348
|
-
class: "p-[8px] block rounded-lg w-full text-start hover:bg-gray-100 !duration-300"
|
349
|
-
}, " Вийти ")
|
350
|
-
])
|
351
|
-
])) : E("", !0)
|
352
|
-
])
|
353
|
-
])
|
354
|
-
]);
|
355
|
-
}
|
356
|
-
const A1 = /* @__PURE__ */ _(L1, [["render", U1]]), Q1 = {
|
357
|
-
components: { navbar: k1, AdminHeader: A1 },
|
358
|
-
computed: {
|
359
|
-
isMenu() {
|
360
|
-
return D.value || null;
|
361
|
-
},
|
362
|
-
header() {
|
363
|
-
var e;
|
364
|
-
return ((e = T.value) == null ? void 0 : e.header) || "admin-header";
|
365
|
-
}
|
366
|
-
}
|
367
|
-
}, F1 = { class: "admin-wrapper" }, R1 = { class: "flex flex-col" };
|
368
|
-
function q1(e, t, o, a, r, s) {
|
369
|
-
const C = p("navbar"), f = p("router-view");
|
370
|
-
return l(), c("div", F1, [
|
371
|
-
u(C),
|
372
|
-
n("div", R1, [
|
373
|
-
s.isMenu ? (l(), c(Z, { key: 0 }, [
|
374
|
-
(l(), X(Y(s.header))),
|
375
|
-
u(f)
|
376
|
-
], 64)) : E("", !0)
|
377
|
-
])
|
378
|
-
]);
|
379
|
-
}
|
380
|
-
const P1 = /* @__PURE__ */ _(Q1, [["render", q1], ["__scopeId", "data-v-98158745"]]);
|
381
|
-
export {
|
382
|
-
P1 as default
|
383
|
-
};
|
package/dist/assets/favicon.svg
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-accessible"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /><path d="M10 16.5l2 -3l2 3m-2 -3v-2l3 -1m-6 0l3 1" /><circle cx="12" cy="7.5" r=".5" fill="currentColor" /></svg>
|
package/dist/assets/logo.svg
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
<svg viewBox="0 0 1823 249" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path
|
3
|
-
d="M218.88 96.05C223.55 99.19 228.69 101.56 234.09 103.07V145.42C212.05 151.54 195.83 171.79 195.83 195.75C195.83 200.22 196.41 204.65 197.53 208.94L160.92 230.08C156.82 226.06 152.08 222.73 146.91 220.24V171.62C164.83 163.13 176.59 145.06 176.59 124.48C176.59 123.17 176.54 121.86 176.44 120.56L218.88 96.05ZM220.32 79.09L160.97 113.36C162.04 116.88 162.61 120.61 162.61 124.48C162.61 142.66 149.93 157.87 132.93 161.76V230.05C143.4 232.46 152.23 239.16 157.46 248.21L215 214.99C211.7 209.34 209.81 202.77 209.81 195.75C209.81 174.62 226.94 157.49 248.07 157.49V91.02C237.14 91.02 227.29 86.43 220.32 79.09Z"
|
4
|
-
fill="#CE3936"
|
5
|
-
/>
|
6
|
-
<path
|
7
|
-
d="M161.39 19.13L197.44 39.94C196.39 44.11 195.84 48.42 195.84 52.75C195.84 54.21 195.9 55.65 196.02 57.1L153.9 81.42C145.27 75.5 134.95 72.24 124.36 72.24C113.83 72.24 103.57 75.47 94.96 81.32L52.71 56.93C52.82 55.55 52.88 54.16 52.88 52.76C52.88 48.43 52.34 44.12 51.28 39.95L87.3 19.16C96.98 28.89 110.26 34.58 124.34 34.58C138.42 34.57 151.7 28.87 161.39 19.13ZM157.77 0.919983C151.24 12.66 138.71 20.6 124.33 20.6C109.95 20.6 97.44 12.67 90.9 0.939983L33.9 33.85C37.08 39.43 38.91 45.88 38.91 52.76C38.91 56.71 38.31 60.52 37.2 64.11L96.46 98.32C103.44 90.87 113.36 86.22 124.37 86.22C135.44 86.22 145.41 90.93 152.39 98.44L211.59 64.27C210.45 60.64 209.83 56.78 209.83 52.77C209.83 45.89 211.65 39.44 214.84 33.86L157.77 0.919983Z"
|
8
|
-
fill="#CE3936"
|
9
|
-
/>
|
10
|
-
<path
|
11
|
-
d="M29.97 95.95L72.28 120.38C72.17 121.74 72.12 123.1 72.12 124.47C72.12 145.02 83.86 163.08 101.74 171.58V220.23C96.58 222.71 91.84 226.04 87.75 230.05L51.17 208.93C52.29 204.64 52.87 200.21 52.87 195.74C52.87 171.78 36.65 151.53 14.61 145.41V103.06C20.07 101.55 25.27 99.14 29.97 95.95ZM28.5 78.97C21.52 86.38 11.63 91.02 0.640015 91.02V157.49C21.77 157.49 38.9 174.62 38.9 195.75C38.9 202.77 37 209.33 33.71 214.99L91.2 248.18C96.43 239.14 105.25 232.45 115.71 230.04V161.73C98.74 157.81 86.09 142.62 86.09 124.46C86.09 120.54 86.68 116.75 87.78 113.18L28.5 78.97Z"
|
12
|
-
fill="#CE3936"
|
13
|
-
/>
|
14
|
-
<path
|
15
|
-
d="M498.39 177.5V144.88C498.39 128.55 485.11 115.27 468.78 115.27H343.22C342.69 115.27 342.18 115.32 341.67 115.4H337.19C332.35 115.4 328.42 111.46 328.42 106.63V74C328.42 69.16 332.36 65.23 337.19 65.23H486.33C492.08 65.23 496.75 60.57 496.75 54.81C496.75 49.06 492.08 44.39 486.33 44.39H337.19C320.86 44.39 307.58 57.67 307.58 74V106.62C307.58 122.95 320.86 136.23 337.19 136.23H462.75C463.28 136.23 463.79 136.18 464.3 136.1H468.78C473.62 136.1 477.55 140.04 477.55 144.87V177.49C477.55 182.33 473.61 186.26 468.78 186.26H319.64C313.89 186.26 309.22 190.92 309.22 196.68C309.22 202.43 313.89 207.1 319.64 207.1H468.78C485.11 207.11 498.39 193.83 498.39 177.5Z"
|
16
|
-
fill="#CE3935"
|
17
|
-
/>
|
18
|
-
<path
|
19
|
-
d="M710.7 177.32V75.24C710.7 58.91 697.42 45.63 681.09 45.63H550.05C533.72 45.63 520.44 58.91 520.44 75.24V177.32C520.44 193.65 533.72 206.93 550.05 206.93H681.1C697.42 206.93 710.7 193.65 710.7 177.32ZM541.27 75.24C541.27 70.4 545.21 66.47 550.04 66.47H681.09C685.93 66.47 689.86 70.41 689.86 75.24V177.32C689.86 182.16 685.92 186.09 681.09 186.09H550.05C545.21 186.09 541.28 182.15 541.28 177.32V75.24H541.27Z"
|
20
|
-
fill="#CE3935"
|
21
|
-
/>
|
22
|
-
<path
|
23
|
-
d="M1823 177.32V75.24C1823 58.91 1809.72 45.63 1793.39 45.63H1662.34C1646.01 45.63 1632.73 58.91 1632.73 75.24V177.32C1632.73 193.65 1646.01 206.93 1662.34 206.93H1793.39C1809.72 206.93 1823 193.65 1823 177.32ZM1653.57 75.24C1653.57 70.4 1657.51 66.47 1662.34 66.47H1793.39C1798.23 66.47 1802.16 70.41 1802.16 75.24V177.32C1802.16 182.16 1798.22 186.09 1793.39 186.09H1662.34C1657.5 186.09 1653.57 182.15 1653.57 177.32V75.24Z"
|
24
|
-
fill="#CE3935"
|
25
|
-
/>
|
26
|
-
<path
|
27
|
-
d="M756.76 196.51V152H849.42C855.17 152 859.84 147.34 859.84 141.58C859.84 135.83 855.17 131.16 849.42 131.16H756.76V75.23C756.76 70.39 760.7 66.46 765.53 66.46H893.29C899.04 66.46 903.71 61.8 903.71 56.04C903.71 50.29 899.04 45.62 893.29 45.62H765.53C749.2 45.62 735.92 58.9 735.92 75.23V196.5C735.92 202.25 740.59 206.92 746.34 206.92C752.09 206.93 756.76 202.27 756.76 196.51Z"
|
28
|
-
fill="#CE3935"
|
29
|
-
/>
|
30
|
-
<path
|
31
|
-
d="M933.86 66.47H1006.51V194.32C1006.51 200.07 1011.18 204.74 1016.93 204.74C1022.68 204.74 1027.35 200.07 1027.35 194.32V66.47H1100C1105.75 66.47 1110.42 61.81 1110.42 56.05C1110.42 50.3 1105.76 45.63 1100 45.63H933.86C928.11 45.63 923.44 50.29 923.44 56.05C923.45 61.81 928.11 66.47 933.86 66.47Z"
|
32
|
-
fill="#CE3935"
|
33
|
-
/>
|
34
|
-
<path
|
35
|
-
d="M1218.44 204.19C1224.19 204.19 1228.86 199.53 1228.86 193.77V152H1368.13C1384.46 152 1397.74 138.72 1397.74 122.39V75.24C1397.74 58.91 1384.46 45.63 1368.13 45.63H1237.63C1221.3 45.63 1208.02 58.91 1208.02 75.24V193.77C1208.02 199.53 1212.68 204.19 1218.44 204.19ZM1237.63 66.47H1368.13C1372.97 66.47 1376.9 70.41 1376.9 75.24V122.39C1376.9 127.23 1372.96 131.16 1368.13 131.16H1228.86V75.23C1228.86 70.41 1232.79 66.47 1237.63 66.47Z"
|
36
|
-
fill="#CE3935"
|
37
|
-
/>
|
38
|
-
<path
|
39
|
-
d="M1430.64 204.19C1436.39 204.19 1441.06 199.53 1441.06 193.77V152H1523.95C1524.57 153.18 1525.42 154.26 1526.51 155.17L1581.89 201.23C1583.83 202.85 1586.2 203.64 1588.55 203.64C1591.54 203.64 1594.5 202.36 1596.57 199.88C1600.25 195.46 1599.64 188.89 1595.22 185.21L1555.29 152H1580.33C1596.66 152 1609.94 138.72 1609.94 122.39V75.24C1609.94 58.91 1596.66 45.63 1580.33 45.63H1449.83C1433.5 45.63 1420.22 58.91 1420.22 75.24V193.77C1420.22 199.53 1424.88 204.19 1430.64 204.19ZM1449.83 66.47H1580.33C1585.17 66.47 1589.1 70.41 1589.1 75.24V122.39C1589.1 127.23 1585.17 131.16 1580.33 131.16H1441.06V75.23C1441.05 70.41 1444.99 66.47 1449.83 66.47Z"
|
40
|
-
fill="#CE3935"
|
41
|
-
/>
|
42
|
-
</svg>
|
@@ -1,120 +0,0 @@
|
|
1
|
-
import { _ as d, u as m, c as n } from "./import-file-eH-_Imyb.js";
|
2
|
-
import { resolveComponent as b, openBlock as u, createElementBlock as h, createElementVNode as a, createBlock as f, createCommentVNode as p } from "vue";
|
3
|
-
const g = {
|
4
|
-
data() {
|
5
|
-
return {
|
6
|
-
formValues: {},
|
7
|
-
scheme: null,
|
8
|
-
table: "",
|
9
|
-
token: ""
|
10
|
-
};
|
11
|
-
},
|
12
|
-
mounted() {
|
13
|
-
this.getFormScheme();
|
14
|
-
},
|
15
|
-
methods: {
|
16
|
-
flattenMenu(t) {
|
17
|
-
const e = [];
|
18
|
-
return t.forEach((l) => {
|
19
|
-
l.menu ? e.push(...this.flattenMenu(l.menu)) : e.push(l);
|
20
|
-
}), e;
|
21
|
-
},
|
22
|
-
async getFormScheme() {
|
23
|
-
var c, i;
|
24
|
-
const t = this.flattenMenu(m.value);
|
25
|
-
t != null && t.length || this.$router.replace("/404");
|
26
|
-
const e = t == null ? void 0 : t.find((o) => {
|
27
|
-
var s, r;
|
28
|
-
return (o == null ? void 0 : o.path) == ((r = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : r.table);
|
29
|
-
});
|
30
|
-
e || this.$router.replace("/404");
|
31
|
-
const l = e == null ? void 0 : e.table;
|
32
|
-
this.table = l;
|
33
|
-
try {
|
34
|
-
const {
|
35
|
-
data: { form: o }
|
36
|
-
} = await n.get(`/api/template/table/${l}`), { data: s } = await n.get(
|
37
|
-
`/api/table/${this.table}/${(i = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : i.id}`
|
38
|
-
);
|
39
|
-
this.token = (s == null ? void 0 : s.token) || "", this.formValues = s || {};
|
40
|
-
const { data: r } = await n.get(`/api/template/form/${o}`);
|
41
|
-
this.scheme = (r == null ? void 0 : r.schema) || r;
|
42
|
-
} catch {
|
43
|
-
}
|
44
|
-
},
|
45
|
-
async onlyEditObject() {
|
46
|
-
try {
|
47
|
-
await this.$refs.form.doValidation(), await n.put(`/api/table/${this.token}`, this.formValues), await this.$notify({
|
48
|
-
title: "Успішно!",
|
49
|
-
message: "Об'єкт успішно створено",
|
50
|
-
type: "success"
|
51
|
-
});
|
52
|
-
} catch {
|
53
|
-
this.$notify({
|
54
|
-
title: "Помилка!",
|
55
|
-
message: "Сталася помилка",
|
56
|
-
type: "error"
|
57
|
-
});
|
58
|
-
}
|
59
|
-
},
|
60
|
-
async editObjectAndRedirect() {
|
61
|
-
try {
|
62
|
-
await this.$refs.form.doValidation(), await n.put(`/api/table/${this.token}`, this.formValues), await this.$router.back(), await this.$notify({
|
63
|
-
title: "Успішно!",
|
64
|
-
message: "Об'єкт успішно створено",
|
65
|
-
type: "success"
|
66
|
-
});
|
67
|
-
} catch {
|
68
|
-
this.$notify({
|
69
|
-
title: "Помилка!",
|
70
|
-
message: "Сталася помилка",
|
71
|
-
type: "error"
|
72
|
-
});
|
73
|
-
}
|
74
|
-
}
|
75
|
-
}
|
76
|
-
}, x = {
|
77
|
-
style: { width: "calc(100vw - 260px)" },
|
78
|
-
class: "bg-gray-50"
|
79
|
-
}, y = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, w = { class: "flex items-center gap-[6px]" }, k = {
|
80
|
-
style: { height: "calc(100vh - 155px)", width: "calc(100vw - 260px)" },
|
81
|
-
class: "bg-gray-50 p-[20px] flex"
|
82
|
-
}, v = { class: "bg-white w-full rounded-xl border p-[20px] 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" };
|
83
|
-
function V(t, e, l, c, i, o) {
|
84
|
-
const s = b("VsForm");
|
85
|
-
return u(), h("div", x, [
|
86
|
-
a("div", y, [
|
87
|
-
e[4] || (e[4] = a("h2", { class: "text-xl font-medium" }, "Редагувати", -1)),
|
88
|
-
a("div", w, [
|
89
|
-
a("button", {
|
90
|
-
onClick: e[0] || (e[0] = (r) => t.$router.back()),
|
91
|
-
class: "flex items-center px-3 py-2 text-sm font-medium text-gray-800 duration-300 bg-white border border-gray-100 rounded-lg shadow gap-x-2 focus:outline-none hover:bg-gray-50 hover:border-gray-100"
|
92
|
-
}, " Повернутися "),
|
93
|
-
a("button", {
|
94
|
-
onClick: e[1] || (e[1] = (...r) => o.onlyEditObject && o.onlyEditObject(...r)),
|
95
|
-
class: "inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white"
|
96
|
-
}, " Зберегти "),
|
97
|
-
a("button", {
|
98
|
-
onClick: e[2] || (e[2] = (...r) => o.editObjectAndRedirect && o.editObjectAndRedirect(...r)),
|
99
|
-
class: "inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white"
|
100
|
-
}, " Зберегти і повернутися ")
|
101
|
-
])
|
102
|
-
]),
|
103
|
-
a("div", k, [
|
104
|
-
a("div", v, [
|
105
|
-
i.scheme ? (u(), f(s, {
|
106
|
-
key: 0,
|
107
|
-
ref: "form",
|
108
|
-
scheme: i.scheme,
|
109
|
-
modelValue: i.formValues,
|
110
|
-
"onUpdate:modelValue": e[3] || (e[3] = (r) => i.formValues = r),
|
111
|
-
class: "p-0 mt-[20px]"
|
112
|
-
}, null, 8, ["scheme", "modelValue"])) : p("", !0)
|
113
|
-
])
|
114
|
-
])
|
115
|
-
]);
|
116
|
-
}
|
117
|
-
const j = /* @__PURE__ */ d(g, [["render", V]]);
|
118
|
-
export {
|
119
|
-
j as default
|
120
|
-
};
|