@opengis/admin 0.3.76 → 0.3.78
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-B6IbD9HM.js → add-page-D6pPTqLL.js} +1 -1
- package/dist/{admin-interface-CbCWrnnZ.js → admin-interface-CLrHTrdO.js} +1 -1
- package/dist/{admin-view-D0SedRNh.js → admin-view-DBnuzq6s.js} +53 -53
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +72 -72
- package/dist/{card-view-BcxUOrin.js → card-view-CwK2oJa-.js} +1 -1
- package/dist/{edit-page-BzT7OndH.js → edit-page-BKnbC8dl.js} +1 -1
- package/dist/{import-file-BcwoHMHl.js → import-file-V7TgsOdE.js} +12429 -12410
- package/dist/{profile-page-CN6V512u.js → profile-page-x-Jp-6xS.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/server/helpers/core/buttonHelper.js +2 -2
- package/server/helpers/utils/buttonDel.js +24 -5
- package/server/helpers/utils/buttonEdit.js +17 -4
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as d, s as f, u as g, g as m } from "./import-file-
|
1
|
+
import { _ as d, s as f, u as g, g as m } from "./import-file-V7TgsOdE.js";
|
2
2
|
import { resolveComponent as b, openBlock as h, createElementBlock as x, createElementVNode as i, normalizeClass as y, normalizeStyle as p, createBlock as w, createCommentVNode as v } from "vue";
|
3
3
|
const $ = {
|
4
4
|
data() {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as S, h as Je, i as Ge, j as Qe, g as M, I as Xe, s as E, k as Ue, l as Q, A as X, V as Ye, m as Ze, n as et, o as tt, p as st, b as nt, q as at, a as lt, r as rt, t as ot, u as Ee } from "./import-file-
|
1
|
+
import { _ as S, h as Je, i as Ge, j as Qe, g as M, I as Xe, s as E, k as Ue, l as Q, A as X, V as Ye, m as Ze, n as et, o as tt, p as st, b as nt, q as at, a as lt, r as rt, t as ot, u as Ee } from "./import-file-V7TgsOdE.js";
|
2
2
|
import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as A, createElementVNode as l, normalizeClass as w, createCommentVNode as k, resolveComponent as f, Fragment as $, createVNode as x, withCtx as D, createBlock as v, renderList as V, withModifiers as it, createStaticVNode as dt, withDirectives as U, vModelCheckbox as ut, Transition as W, vModelText as ct, renderSlot as ht, vShow as Y, Teleport as pt, getCurrentInstance as Re, ref as J, resolveDynamicComponent as G, defineComponent as bt, withKeys as ft, normalizeStyle as K } from "vue";
|
3
3
|
const gt = {
|
4
4
|
data() {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { openBlock as n, createElementBlock as u, createElementVNode as o, createStaticVNode as Q, resolveComponent as p, normalizeClass as f, createTextVNode as V, toDisplayString as B, createCommentVNode as w, createVNode as h, Transition as q, withCtx as _, withDirectives as W, Fragment as U, renderList as P, vShow as J, createBlock as T, resolveDynamicComponent as F, ref as le, onMounted as ae, computed as oe, withModifiers as ne } from "vue";
|
2
|
-
import { _ as y, I as K, s as g, a as X, u as A, b as se, c as Y, d as ue, e as
|
2
|
+
import { _ as y, I as K, s as g, a as X, u as A, b as se, c as Y, d as ue, e as ie, f as de, g as ce } from "./import-file-V7TgsOdE.js";
|
3
3
|
import "./user-B_2kh6ic.js";
|
4
4
|
const he = {}, ge = {
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -95,16 +95,16 @@ const ee = /* @__PURE__ */ y(fe, [["render", xe]]), ve = {
|
|
95
95
|
class: "py-0.5 px-2 inline-flex items-center gap-x-1.5 text-xs font-medium bg-blue-100 text-blue-800 rounded-full dark:bg-blue-500/10 dark:text-blue-500"
|
96
96
|
}, _e = { key: 1 }, we = ["innerHTML"];
|
97
97
|
function ye(t, e, r, s, a, l) {
|
98
|
-
var
|
98
|
+
var d, v, m, H, E, k, C, z, M, $, I, O, D, j, N;
|
99
99
|
const b = p("IconChevronDown"), x = p("router-link");
|
100
|
-
return (
|
100
|
+
return (d = r.route) != null && d.menu ? (n(), u("div", me, [
|
101
101
|
o("button", {
|
102
102
|
onClick: e[0] || (e[0] = (c) => a.isOpen = !a.isOpen),
|
103
103
|
class: f(["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", [
|
104
104
|
((m = (v = r.route) == null ? void 0 : v.menu) == null ? void 0 : m.some(
|
105
105
|
(c) => {
|
106
|
-
var
|
107
|
-
return (c == null ? void 0 : c.path) === t.$route.path.replace("/", "") || (c == null ? void 0 : c.table) === ((L = (
|
106
|
+
var i, L;
|
107
|
+
return (c == null ? void 0 : c.path) === t.$route.path.replace("/", "") || (c == null ? void 0 : c.table) === ((L = (i = t.$route) == null ? void 0 : i.params) == null ? void 0 : L.table) && (c == null ? void 0 : c.table);
|
108
108
|
}
|
109
109
|
)) && (l.darkMode ? "bg-white/10" : "bg-gray-100"),
|
110
110
|
{
|
@@ -128,17 +128,17 @@ function ye(t, e, r, s, a, l) {
|
|
128
128
|
W(o("ul", {
|
129
129
|
class: f(["ml-[28px] pt-[6px] before:block before:absolute relative w-[calc(100%-28px)] flex-col gap-y-1.5 inline-flex before:w-[2px] before:h-[100%] before:left-[-10px] cursor-pointer", l.darkMode ? "before:bg-white/10" : "before:bg-gray-100"])
|
130
130
|
}, [
|
131
|
-
(n(!0), u(U, null, P((c = r.route) == null ? void 0 : c.menu, (
|
131
|
+
(n(!0), u(U, null, P((c = r.route) == null ? void 0 : c.menu, (i, L) => {
|
132
132
|
var Z, S;
|
133
133
|
return n(), u("li", {
|
134
134
|
key: L,
|
135
135
|
class: "w-full"
|
136
136
|
}, [
|
137
137
|
h(x, {
|
138
|
-
innerHTML: l.highLight(
|
139
|
-
to: "/" + (
|
138
|
+
innerHTML: l.highLight(i == null ? void 0 : i.ua),
|
139
|
+
to: "/" + (i == null ? void 0 : i.path),
|
140
140
|
class: f([[
|
141
|
-
((
|
141
|
+
((i == null ? void 0 : i.path) === t.$route.path.replace("/", "") || ((S = (Z = t.$route) == null ? void 0 : Z.params) == null ? void 0 : S.table) === (i == null ? void 0 : i.table) && (i == null ? void 0 : i.table)) && (l.darkMode ? "bg-white/10" : "bg-gray-100"),
|
142
142
|
{
|
143
143
|
"text-white/80 hover:bg-white/10 hover:text-white/80 focus:bg-white/10": l.darkMode,
|
144
144
|
"text-gray-800 hover:bg-gray-100 hover:text-gray-800 focus:bg-gray-100": !l.darkMode
|
@@ -158,7 +158,7 @@ function ye(t, e, r, s, a, l) {
|
|
158
158
|
h(x, {
|
159
159
|
to: ((z = (C = r.route) == null ? void 0 : C.path) == null ? void 0 : z[0]) === "/" ? (M = r.route) == null ? void 0 : M.path : "/" + (($ = r.route) == null ? void 0 : $.path),
|
160
160
|
class: f([[
|
161
|
-
(((I = r.route) == null ? void 0 : I.path.replace("/", "")) === t.$route.path.replace("/", "") || ((D = (O = t.$route) == null ? void 0 : O.params) == null ? void 0 : D.table) === ((
|
161
|
+
(((I = r.route) == null ? void 0 : I.path.replace("/", "")) === t.$route.path.replace("/", "") || ((D = (O = t.$route) == null ? void 0 : O.params) == null ? void 0 : D.table) === ((j = r.route) == null ? void 0 : j.table) && ((N = r.route) == null ? void 0 : N.table)) && (l.darkMode ? "bg-white/10" : "bg-gray-100"),
|
162
162
|
{
|
163
163
|
"text-white/80 hover:bg-white/10 hover:text-white/80 focus:bg-white/10 ": l.darkMode,
|
164
164
|
"text-gray-800 hover:bg-gray-100 hover:text-gray-800 focus:bg-gray-100 ": !l.darkMode
|
@@ -217,7 +217,7 @@ const Ie = /* @__PURE__ */ y(Le, [["render", $e]]), Oe = {}, De = {
|
|
217
217
|
viewBox: "0 0 256 256",
|
218
218
|
"xml:space": "preserve"
|
219
219
|
};
|
220
|
-
function
|
220
|
+
function je(t, e, r, s, a, l) {
|
221
221
|
return n(), u("svg", De, e[0] || (e[0] = [
|
222
222
|
o("defs", null, null, -1),
|
223
223
|
o("g", {
|
@@ -239,7 +239,7 @@ function Ne(t, e, r, s, a, l) {
|
|
239
239
|
], -1)
|
240
240
|
]));
|
241
241
|
}
|
242
|
-
const
|
242
|
+
const Ne = /* @__PURE__ */ y(Oe, [["render", je]]), Be = {}, Ee = {
|
243
243
|
class: "shrink-0 size-3.5 text-gray-800 dark:text-neutral-200",
|
244
244
|
xmlns: "http:.w3.org/2000/svg",
|
245
245
|
width: "24",
|
@@ -257,7 +257,7 @@ function Te(t, e, r, s, a, l) {
|
|
257
257
|
]));
|
258
258
|
}
|
259
259
|
const Ue = /* @__PURE__ */ y(Be, [["render", Te]]), Ze = {
|
260
|
-
components: { IconQuestion: te, IconUSA: Ie, IconUkraine:
|
260
|
+
components: { IconQuestion: te, IconUSA: Ie, IconUkraine: Ne, IconTick: Ue },
|
261
261
|
props: ["docs", "languages"],
|
262
262
|
data() {
|
263
263
|
return {
|
@@ -306,7 +306,7 @@ function Ge(t, e, r, s, a, l) {
|
|
306
306
|
ref: "langPopover"
|
307
307
|
}, {
|
308
308
|
reference: _(() => {
|
309
|
-
var
|
309
|
+
var d, v, m;
|
310
310
|
return [
|
311
311
|
o("button", {
|
312
312
|
type: "button",
|
@@ -317,7 +317,7 @@ function Ge(t, e, r, s, a, l) {
|
|
317
317
|
])
|
318
318
|
}, [
|
319
319
|
o("div", null, [
|
320
|
-
(n(), T(F((
|
320
|
+
(n(), T(F((d = l.selectedLang) == null ? void 0 : d.icon), { class: "w-[16px] h-[16px] rounded-full" }))
|
321
321
|
]),
|
322
322
|
o("span", Qe, B(a.currentLang === "ukraine" ? (v = l.selectedLang) == null ? void 0 : v.titleUA : (m = l.selectedLang) == null ? void 0 : m.titleEN), 1)
|
323
323
|
], 2)
|
@@ -325,16 +325,16 @@ function Ge(t, e, r, s, a, l) {
|
|
325
325
|
}),
|
326
326
|
default: _(() => [
|
327
327
|
o("div", null, [
|
328
|
-
(n(!0), u(U, null, P(a.languagesOptions, (
|
329
|
-
key:
|
328
|
+
(n(!0), u(U, null, P(a.languagesOptions, (d) => (n(), u("button", {
|
329
|
+
key: d.id,
|
330
330
|
type: "button",
|
331
|
-
onClick: (v) => l.changeLang(
|
332
|
-
class: f(["flex items-center gap-x-2 cursor-pointer dark:hs-selected:bg-neutral-800 py-2 px-4 w-full text-sm text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100 dark:text-neutral-300 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800 selected", (
|
331
|
+
onClick: (v) => l.changeLang(d.id),
|
332
|
+
class: f(["flex items-center gap-x-2 cursor-pointer dark:hs-selected:bg-neutral-800 py-2 px-4 w-full text-sm text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100 dark:text-neutral-300 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800 selected", (d == null ? void 0 : d.id) === a.currentLang ? "bg-gray-100" : ""])
|
333
333
|
}, [
|
334
|
-
(n(), T(F(
|
335
|
-
o("div", Pe, B(a.currentLang === "ukraine" ?
|
334
|
+
(n(), T(F(d == null ? void 0 : d.icon), { class: "w-[16px] h-[16px] rounded-full" })),
|
335
|
+
o("div", Pe, B(a.currentLang === "ukraine" ? d == null ? void 0 : d.titleUA : d == null ? void 0 : d.titleEN), 1),
|
336
336
|
o("span", Fe, [
|
337
|
-
(
|
337
|
+
(d == null ? void 0 : d.id) === a.currentLang ? (n(), T(b, { key: 0 })) : w("", !0)
|
338
338
|
])
|
339
339
|
], 10, Ae))), 128))
|
340
340
|
])
|
@@ -404,7 +404,7 @@ const re = /* @__PURE__ */ y(Ze, [["render", Ge]]), Re = {
|
|
404
404
|
};
|
405
405
|
function et(t, e, r, s, a, l) {
|
406
406
|
var v;
|
407
|
-
const b = p("VsText"), x = p("NavbarItem"),
|
407
|
+
const b = p("VsText"), x = p("NavbarItem"), d = p("NavbarFooter");
|
408
408
|
return n(), u("div", {
|
409
409
|
class: f(["lg:flex lg:relative lg:left-0 flex-col h-[100vh] pt-3 border-r w-[260px] top-0 bottom-0 shrink-0 absolute transition left-[-100%] z-[11]", {
|
410
410
|
"left-0": t.$parent.showMenu,
|
@@ -462,14 +462,14 @@ function et(t, e, r, s, a, l) {
|
|
462
462
|
}, " Не знайдено ", 2))
|
463
463
|
])
|
464
464
|
], 2),
|
465
|
-
l.docs || l.languages ? (n(), T(
|
465
|
+
l.docs || l.languages ? (n(), T(d, {
|
466
466
|
key: 0,
|
467
467
|
docs: l.docs,
|
468
468
|
languages: l.languages
|
469
469
|
}, null, 8, ["docs", "languages"])) : w("", !0)
|
470
470
|
], 2);
|
471
471
|
}
|
472
|
-
const R = /* @__PURE__ */ y(Re, [["render", et], ["__scopeId", "data-v-
|
472
|
+
const R = /* @__PURE__ */ y(Re, [["render", et], ["__scopeId", "data-v-7817bab2"]]), tt = {
|
473
473
|
components: { IconChevronDown: K },
|
474
474
|
props: { route: Object, searchable: String },
|
475
475
|
mounted() {
|
@@ -522,16 +522,16 @@ const R = /* @__PURE__ */ y(Re, [["render", et], ["__scopeId", "data-v-d8b78d9f"
|
|
522
522
|
class: "py-0.5 px-2 inline-flex items-center gap-x-1.5 text-xs font-medium bg-blue-100 text-blue-800 rounded-full dark:bg-blue-500/10 dark:text-blue-500"
|
523
523
|
}, at = { class: "ml-[28px] pt-[6px] before:block before:absolute relative w-[calc(100%-28px)] before:bg-gray-200 flex-col gap-y-1.5 inline-flex before:w-[2px] before:h-[100%] before:left-[-10px] cursor-pointer" }, ot = { key: 1 }, nt = ["innerHTML"];
|
524
524
|
function st(t, e, r, s, a, l) {
|
525
|
-
var
|
525
|
+
var d, v, m, H, E, k, C, z, M, $, I, O, D, j, N;
|
526
526
|
const b = p("IconChevronDown"), x = p("router-link");
|
527
|
-
return (
|
527
|
+
return (d = r.route) != null && d.menu ? (n(), u("div", rt, [
|
528
528
|
o("button", {
|
529
529
|
onClick: e[0] || (e[0] = (c) => a.isOpen = !a.isOpen),
|
530
530
|
class: f(["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-200", [
|
531
531
|
((m = (v = r.route) == null ? void 0 : v.menu) == null ? void 0 : m.some(
|
532
532
|
(c) => {
|
533
|
-
var
|
534
|
-
return (c == null ? void 0 : c.path) === t.$route.path.replace("/", "") || (c == null ? void 0 : c.table) === ((L = (
|
533
|
+
var i, L;
|
534
|
+
return (c == null ? void 0 : c.path) === t.$route.path.replace("/", "") || (c == null ? void 0 : c.table) === ((L = (i = t.$route) == null ? void 0 : i.params) == null ? void 0 : L.table) && (c == null ? void 0 : c.table);
|
535
535
|
}
|
536
536
|
)) && "bg-gray-200"
|
537
537
|
]])
|
@@ -549,17 +549,17 @@ function st(t, e, r, s, a, l) {
|
|
549
549
|
var c;
|
550
550
|
return [
|
551
551
|
W(o("ul", at, [
|
552
|
-
(n(!0), u(U, null, P((c = r.route) == null ? void 0 : c.menu, (
|
552
|
+
(n(!0), u(U, null, P((c = r.route) == null ? void 0 : c.menu, (i, L) => {
|
553
553
|
var Z, S;
|
554
554
|
return n(), u("li", {
|
555
555
|
key: L,
|
556
556
|
class: "w-full"
|
557
557
|
}, [
|
558
558
|
h(x, {
|
559
|
-
innerHTML: l.highLight(
|
560
|
-
to: "/" + (
|
559
|
+
innerHTML: l.highLight(i == null ? void 0 : i.ua),
|
560
|
+
to: "/" + (i == null ? void 0 : i.path),
|
561
561
|
class: f([[
|
562
|
-
((
|
562
|
+
((i == null ? void 0 : i.path) === t.$route.path.replace("/", "") || ((S = (Z = t.$route) == null ? void 0 : Z.params) == null ? void 0 : S.table) === (i == null ? void 0 : i.table) && (i == null ? void 0 : i.table)) && "bg-gray-200"
|
563
563
|
], "block px-3 py-2 text-sm rounded-lg focus:outline-none hover:bg-gray-200 focus:bg-gray-200"])
|
564
564
|
}, null, 8, ["innerHTML", "to", "class"])
|
565
565
|
]);
|
@@ -575,7 +575,7 @@ function st(t, e, r, s, a, l) {
|
|
575
575
|
h(x, {
|
576
576
|
to: ((z = (C = r.route) == null ? void 0 : C.path) == null ? void 0 : z[0]) === "/" ? (M = r.route) == null ? void 0 : M.path : "/" + (($ = r.route) == null ? void 0 : $.path),
|
577
577
|
class: f([[
|
578
|
-
(((I = r.route) == null ? void 0 : I.path.replace("/", "")) === t.$route.path.replace("/", "") || ((D = (O = t.$route) == null ? void 0 : O.params) == null ? void 0 : D.table) === ((
|
578
|
+
(((I = r.route) == null ? void 0 : I.path.replace("/", "")) === t.$route.path.replace("/", "") || ((D = (O = t.$route) == null ? void 0 : O.params) == null ? void 0 : D.table) === ((j = r.route) == null ? void 0 : j.table) && ((N = r.route) == null ? void 0 : N.table)) && "bg-gray-200"
|
579
579
|
], "flex items-center w-full px-3 py-2 text-sm text-gray-800 duration-300 rounded-lg gap-x-3 hover:bg-gray-200 focus:bg-gray-200"])
|
580
580
|
}, {
|
581
581
|
default: _(() => {
|
@@ -590,7 +590,7 @@ function st(t, e, r, s, a, l) {
|
|
590
590
|
}, 8, ["to", "class"])
|
591
591
|
]));
|
592
592
|
}
|
593
|
-
const ut = /* @__PURE__ */ y(tt, [["render", st]]),
|
593
|
+
const ut = /* @__PURE__ */ y(tt, [["render", st]]), it = { class: "relative w-fit mx-auto" }, dt = {
|
594
594
|
key: 0,
|
595
595
|
class: "w-60 duration absolute top-full left-0 z-20 bg-white rounded-xl shadow-xl block"
|
596
596
|
}, ct = { class: "p-1" }, ht = {
|
@@ -604,7 +604,7 @@ const ut = /* @__PURE__ */ y(tt, [["render", st]]), dt = { class: "relative w-fi
|
|
604
604
|
}), (r, s) => {
|
605
605
|
var l;
|
606
606
|
const a = p("router-link");
|
607
|
-
return n(), u("div",
|
607
|
+
return n(), u("div", it, [
|
608
608
|
o("button", {
|
609
609
|
onClick: s[0] || (s[0] = (b) => e.value = !e.value),
|
610
610
|
type: "button",
|
@@ -616,7 +616,7 @@ const ut = /* @__PURE__ */ y(tt, [["render", st]]), dt = { class: "relative w-fi
|
|
616
616
|
height: "16"
|
617
617
|
})
|
618
618
|
]),
|
619
|
-
e.value ? (n(), u("div",
|
619
|
+
e.value ? (n(), u("div", dt, [
|
620
620
|
o("div", ct, [
|
621
621
|
s[2] || (s[2] = o("a", {
|
622
622
|
class: "flex items-center gap-x-3 py-2 px-3 rounded-lg text-sm text-gray-800 hover:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-hidden focus:bg-gray-100 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
@@ -642,15 +642,15 @@ const ut = /* @__PURE__ */ y(tt, [["render", st]]), dt = { class: "relative w-fi
|
|
642
642
|
]);
|
643
643
|
};
|
644
644
|
}
|
645
|
-
}, gt = { class: "p-
|
645
|
+
}, gt = { class: "p-4 flex flex-col justify-center border-b relative max-h-[192px]" }, pt = {
|
646
646
|
__name: "navbar-gray-user",
|
647
647
|
setup(t) {
|
648
648
|
return (e, r) => (n(), u("div", gt, [
|
649
649
|
h(Y, {
|
650
|
-
class: "absolute top-[
|
650
|
+
class: "!absolute top-[8px] right-[8px]",
|
651
651
|
placement: "left"
|
652
652
|
}),
|
653
|
-
r[0] || (r[0] = o("div", { class: "flex size-24 justify-center items-center rounded-full overflow-hidden mx-auto mb-2" }, [
|
653
|
+
r[0] || (r[0] = o("div", { class: "flex size-24 justify-center items-center shrink-0 rounded-full overflow-hidden mx-auto mb-2" }, [
|
654
654
|
o("img", {
|
655
655
|
class: "object-cover h-[130px] w-[130px]",
|
656
656
|
src: "https://media.istockphoto.com/id/1337144146/vector/default-avatar-profile-icon-vector.jpg?s=612x612&w=0&k=20&c=BIbFwuv7FxTWvh5S3vB6bkT0Qv8Vn8N5Ffseq84ClGI=",
|
@@ -726,10 +726,10 @@ const ut = /* @__PURE__ */ y(tt, [["render", st]]), dt = { class: "relative w-fi
|
|
726
726
|
class: "flex flex-col gap-y-1"
|
727
727
|
}, vt = { class: "h-[55px] border-t w-full px-5 shrink-0 lg:px-5 flex items-center" }, mt = { href: "/" }, kt = ["src"];
|
728
728
|
function _t(t, e, r, s, a, l) {
|
729
|
-
var
|
729
|
+
var d;
|
730
730
|
const b = p("NavbarUser"), x = p("NavbarItem");
|
731
731
|
return n(), u("div", {
|
732
|
-
class: f(["lg:flex lg:relative lg:left-0 flex-col h-[100vh]
|
732
|
+
class: f(["lg:flex lg:relative lg:left-0 flex-col h-[100vh] border-r w-[260px] bg-gray-100 top-0 bottom-0 shrink-0 absolute transition left-[-100%] z-[11]", {
|
733
733
|
"left-0": t.$parent.showMenu
|
734
734
|
}])
|
735
735
|
}, [
|
@@ -741,7 +741,7 @@ function _t(t, e, r, s, a, l) {
|
|
741
741
|
])
|
742
742
|
}, [
|
743
743
|
o("nav", bt, [
|
744
|
-
(
|
744
|
+
(d = l.data) != null && d.length ? (n(), u("ul", xt, [
|
745
745
|
(n(!0), u(U, null, P(l.data, (v, m) => (n(), u("li", {
|
746
746
|
key: m,
|
747
747
|
class: "flex flex-col gap-[6px]"
|
@@ -770,7 +770,7 @@ function _t(t, e, r, s, a, l) {
|
|
770
770
|
])
|
771
771
|
], 2);
|
772
772
|
}
|
773
|
-
const wt = /* @__PURE__ */ y(ft, [["render", _t], ["__scopeId", "data-v-
|
773
|
+
const wt = /* @__PURE__ */ y(ft, [["render", _t], ["__scopeId", "data-v-3cea82a7"]]), yt = {
|
774
774
|
__name: "navbar",
|
775
775
|
setup(t) {
|
776
776
|
const e = {
|
@@ -789,7 +789,7 @@ const wt = /* @__PURE__ */ y(ft, [["render", _t], ["__scopeId", "data-v-8b4c631a
|
|
789
789
|
IconQuestion: te,
|
790
790
|
IconUser: ue,
|
791
791
|
AdminNotification: Y,
|
792
|
-
IconUserOutline:
|
792
|
+
IconUserOutline: ie,
|
793
793
|
IconLogout: G
|
794
794
|
},
|
795
795
|
data() {
|
@@ -817,7 +817,7 @@ const wt = /* @__PURE__ */ y(ft, [["render", _t], ["__scopeId", "data-v-8b4c631a
|
|
817
817
|
}
|
818
818
|
},
|
819
819
|
created() {
|
820
|
-
this.userData = this.$user,
|
820
|
+
this.userData = this.$user, de.value = this.$settings;
|
821
821
|
},
|
822
822
|
methods: {
|
823
823
|
async logout() {
|
@@ -845,9 +845,9 @@ const wt = /* @__PURE__ */ y(ft, [["render", _t], ["__scopeId", "data-v-8b4c631a
|
|
845
845
|
}, It = ["src"], Ot = {
|
846
846
|
key: 1,
|
847
847
|
class: "flex items-center justify-center bg-gray-200 rounded-full size-10"
|
848
|
-
}, Dt = { class: "grow" },
|
848
|
+
}, Dt = { class: "grow" }, jt = { class: "block text-sm font-medium text-gray-800 dark:text-neutral-200" }, Nt = { class: "text-xs text-gray-500 dark:text-neutral-500" }, Bt = { class: "flex flex-col space-y-0.5" };
|
849
849
|
function Et(t, e, r, s, a, l) {
|
850
|
-
const b = p("IconQuestion"), x = p("VsPopover"),
|
850
|
+
const b = p("IconQuestion"), x = p("VsPopover"), d = p("AdminNotification"), v = p("IconUser"), m = p("router-link"), H = p("IconUserOutline"), E = p("IconLogout");
|
851
851
|
return n(), u("div", {
|
852
852
|
class: f(["h-[58px] border-b flex items-center px-[20px]", l.headerBadgeTitle ? "justify-between" : "justify-end"])
|
853
853
|
}, [
|
@@ -882,7 +882,7 @@ function Et(t, e, r, s, a, l) {
|
|
882
882
|
h(x, { trigger: "hover" }, {
|
883
883
|
reference: _(() => [
|
884
884
|
o("a", Ht, [
|
885
|
-
h(
|
885
|
+
h(d)
|
886
886
|
])
|
887
887
|
]),
|
888
888
|
default: _(() => [
|
@@ -928,7 +928,7 @@ function Et(t, e, r, s, a, l) {
|
|
928
928
|
class: "py-2 px-2.5 flex items-center gap-3 rounded-lg hover:bg-gray-100 focus:outline-none focus:bg-gray-100 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"
|
929
929
|
}, {
|
930
930
|
default: _(() => {
|
931
|
-
var k, C, z, M, $, I, O, D,
|
931
|
+
var k, C, z, M, $, I, O, D, j, N;
|
932
932
|
return [
|
933
933
|
(C = (k = a.userData) == null ? void 0 : k.user) != null && C.avatar ? (n(), u("img", {
|
934
934
|
key: 0,
|
@@ -939,8 +939,8 @@ function Et(t, e, r, s, a, l) {
|
|
939
939
|
h(v, { class: "w-[16px]" })
|
940
940
|
])),
|
941
941
|
o("div", Dt, [
|
942
|
-
o("span",
|
943
|
-
o("p",
|
942
|
+
o("span", jt, B(((I = ($ = a.userData) == null ? void 0 : $.user) == null ? void 0 : I.username) || ((D = (O = a.userData) == null ? void 0 : O.user) == null ? void 0 : D.user_name) || "User User"), 1),
|
943
|
+
o("p", Nt, B(((N = (j = a.userData) == null ? void 0 : j.user) == null ? void 0 : N.email) || "email не вказано"), 1)
|
944
944
|
])
|
945
945
|
];
|
946
946
|
}),
|
@@ -1001,7 +1001,7 @@ function At(t, e, r, s, a, l) {
|
|
1001
1001
|
h(b),
|
1002
1002
|
a.showMenu ? (n(), u("div", {
|
1003
1003
|
key: 0,
|
1004
|
-
onClick: e[0] || (e[0] = (
|
1004
|
+
onClick: e[0] || (e[0] = (d) => a.showMenu = !1),
|
1005
1005
|
class: "z-[10] lg:hidden transition duration fixed inset-0 bg-gray-900 bg-opacity-50 dark:bg-opacity-80 dark:bg-neutral-900"
|
1006
1006
|
})) : w("", !0),
|
1007
1007
|
o("div", St, [
|
package/dist/admin.js
CHANGED