alytus-ff 0.1.33 → 0.1.35
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/alytus-ff.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRouter as
|
|
1
|
+
import { defineComponent as A, createElementBlock as v, openBlock as r, createElementVNode as $, createCommentVNode as k, toDisplayString as g, renderSlot as O, normalizeClass as D, resolveComponent as s, createBlock as h, withCtx as o, Fragment as w, renderList as S, createVNode as a, createTextVNode as V, computed as H, ref as E, normalizeProps as J, guardReactiveProps as W, mergeProps as P, resolveDynamicComponent as I, normalizeStyle as Q } from "vue";
|
|
2
|
+
import { useRouter as X, useRoute as x } from "vue-router";
|
|
3
3
|
import { useI18n as B } from "vue-i18n";
|
|
4
|
-
const
|
|
4
|
+
const ee = A({
|
|
5
5
|
name: "PageTitle",
|
|
6
6
|
props: {
|
|
7
7
|
title: {
|
|
@@ -13,27 +13,27 @@ const x = C({
|
|
|
13
13
|
default: null
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
}),
|
|
16
|
+
}), L = (e, t) => {
|
|
17
17
|
const n = e.__vccOpts || e;
|
|
18
|
-
for (const [
|
|
19
|
-
n[
|
|
18
|
+
for (const [i, l] of t)
|
|
19
|
+
n[i] = l;
|
|
20
20
|
return n;
|
|
21
|
-
},
|
|
21
|
+
}, te = { class: "mt-6 mb-3 ff-page-title" }, ne = { class: "text-h5 ff-title" }, oe = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "text-body-2 ff-description"
|
|
24
24
|
};
|
|
25
|
-
function
|
|
26
|
-
return r(),
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
e.description ? (r(),
|
|
25
|
+
function re(e, t, n, i, l, c) {
|
|
26
|
+
return r(), v("div", te, [
|
|
27
|
+
$("div", null, [
|
|
28
|
+
$("span", ne, g(e.title), 1),
|
|
29
|
+
e.description ? (r(), v("div", oe, g(e.description), 1)) : k("", !0)
|
|
30
30
|
]),
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
$("div", null, [
|
|
32
|
+
O(e.$slots, "buttons")
|
|
33
33
|
])
|
|
34
34
|
]);
|
|
35
35
|
}
|
|
36
|
-
const
|
|
36
|
+
const en = /* @__PURE__ */ L(ee, [["render", re]]), se = A({
|
|
37
37
|
name: "PageSubtitle",
|
|
38
38
|
props: {
|
|
39
39
|
subtitle: {
|
|
@@ -45,18 +45,18 @@ const Qt = /* @__PURE__ */ H(x, [["render", oe]]), re = C({
|
|
|
45
45
|
default: !1
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
}),
|
|
49
|
-
function
|
|
50
|
-
return r(),
|
|
48
|
+
}), le = { class: "text-h6 font-weight-bold" };
|
|
49
|
+
function ae(e, t, n, i, l, c) {
|
|
50
|
+
return r(), v("div", {
|
|
51
51
|
class: D([e.firstPosition ? "mt-0" : "", "ff-page-subtitle"])
|
|
52
52
|
}, [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
$("div", le, g(e.subtitle), 1),
|
|
54
|
+
$("div", null, [
|
|
55
|
+
O(e.$slots, "buttons")
|
|
56
56
|
])
|
|
57
57
|
], 2);
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const tn = /* @__PURE__ */ L(se, [["render", ae]]), ie = A({
|
|
60
60
|
name: "InnerLeftMenu",
|
|
61
61
|
components: {},
|
|
62
62
|
props: {
|
|
@@ -66,22 +66,22 @@ const Xt = /* @__PURE__ */ H(re, [["render", le]]), ae = C({
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
setup() {
|
|
69
|
-
const e =
|
|
70
|
-
return { goTo: (
|
|
69
|
+
const e = X(), t = x();
|
|
70
|
+
return { goTo: (l) => e.push(l), isActive: (l) => t.fullPath.startsWith(l) };
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
|
-
function
|
|
74
|
-
const
|
|
75
|
-
return r(),
|
|
73
|
+
function ue(e, t, n, i, l, c) {
|
|
74
|
+
const d = s("v-list-item-title"), f = s("v-list-item"), _ = s("v-list");
|
|
75
|
+
return r(), h(_, { class: "inner-left-menu mobile-horizontal" }, {
|
|
76
76
|
default: o(() => [
|
|
77
|
-
(r(!0),
|
|
78
|
-
active: e.isActive(
|
|
79
|
-
onClick: (p) => e.goTo(
|
|
77
|
+
(r(!0), v(w, null, S(e.items, (u) => (r(), h(f, {
|
|
78
|
+
active: e.isActive(u.link),
|
|
79
|
+
onClick: (p) => e.goTo(u.link)
|
|
80
80
|
}, {
|
|
81
81
|
default: o(() => [
|
|
82
|
-
|
|
82
|
+
a(d, null, {
|
|
83
83
|
default: o(() => [
|
|
84
|
-
|
|
84
|
+
V(g(u.text), 1)
|
|
85
85
|
]),
|
|
86
86
|
_: 2
|
|
87
87
|
}, 1024)
|
|
@@ -92,13 +92,13 @@ function ie(e, t, n, a, u, d) {
|
|
|
92
92
|
_: 1
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
var
|
|
97
|
-
const
|
|
95
|
+
const nn = /* @__PURE__ */ L(ie, [["render", ue]]);
|
|
96
|
+
var ce = "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z", Y = "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z", de = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", me = "M9,3H11V5H9V3M13,3H15V5H13V3M9,7H11V9H9V7M13,7H15V9H13V7M9,11H11V13H9V11M13,11H15V13H13V11M9,15H11V17H9V15M13,15H15V17H13V15M9,19H11V21H9V19M13,19H15V21H13V19Z", pe = "M22,18V22H18V19H15V16H12L9.74,13.74C9.19,13.91 8.61,14 8,14A6,6 0 0,1 2,8A6,6 0 0,1 8,2A6,6 0 0,1 14,8C14,8.61 13.91,9.19 13.74,9.74L22,18M7,5A2,2 0 0,0 5,7A2,2 0 0,0 7,9A2,2 0 0,0 9,7A2,2 0 0,0 7,5Z", fe = "M17 7L15.59 8.41L18.17 11H8V13H18.17L15.59 15.58L17 17L22 12M4 5H12V3H4C2.9 3 2 3.9 2 5V19C2 20.1 2.9 21 4 21H12V19H4V5Z", ve = "M7,10L12,15L17,10H7Z", _e = "M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z", ge = "M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z", ye = "M16,5V18H21V5M4,18H9V5H4M10,18H15V5H10V18Z";
|
|
97
|
+
const $e = A({
|
|
98
98
|
name: "CustomDialog",
|
|
99
99
|
methods: {
|
|
100
100
|
mdiClose() {
|
|
101
|
-
return
|
|
101
|
+
return de;
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
props: {
|
|
@@ -127,45 +127,45 @@ const ye = C({
|
|
|
127
127
|
default: !1
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
}),
|
|
131
|
-
function
|
|
132
|
-
const
|
|
133
|
-
return r(),
|
|
130
|
+
}), he = { class: "close-btn" };
|
|
131
|
+
function be(e, t, n, i, l, c) {
|
|
132
|
+
const d = s("v-btn"), f = s("v-card-text"), _ = s("v-spacer"), u = s("v-card-actions"), p = s("v-card"), b = s("v-dialog");
|
|
133
|
+
return r(), h(b, {
|
|
134
134
|
"model-value": e.value,
|
|
135
135
|
"max-width": "960",
|
|
136
136
|
persistent: e.persistent,
|
|
137
137
|
fullscreen: e.$vuetify.display.smAndDown && !e.noFullScreen,
|
|
138
138
|
class: D([e.fullHeight ? "ff-dialog" : "ff-dialog ff-full-height"]),
|
|
139
139
|
"content-class": e.fullHeight ? "ff-full-height" : "",
|
|
140
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
140
|
+
"onUpdate:modelValue": t[1] || (t[1] = (y) => e.$emit("close"))
|
|
141
141
|
}, {
|
|
142
142
|
default: o(() => [
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
O(e.$slots, "card", {}, () => [
|
|
144
|
+
a(p, {
|
|
145
145
|
title: e.title,
|
|
146
146
|
class: D(e.fullHeight ? "ff-full-height" : "")
|
|
147
147
|
}, {
|
|
148
148
|
append: o(() => [
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
$("div", he, [
|
|
150
|
+
a(d, {
|
|
151
151
|
variant: "text",
|
|
152
152
|
icon: e.mdiClose(),
|
|
153
|
-
onClick: t[0] || (t[0] = (
|
|
153
|
+
onClick: t[0] || (t[0] = (y) => e.$emit("close"))
|
|
154
154
|
}, null, 8, ["icon"])
|
|
155
155
|
])
|
|
156
156
|
]),
|
|
157
157
|
default: o(() => [
|
|
158
|
-
|
|
158
|
+
a(f, null, {
|
|
159
159
|
default: o(() => [
|
|
160
|
-
|
|
160
|
+
O(e.$slots, "default")
|
|
161
161
|
]),
|
|
162
162
|
_: 3
|
|
163
163
|
}),
|
|
164
|
-
e.noFooter ? k("", !0) : (r(),
|
|
164
|
+
e.noFooter ? k("", !0) : (r(), h(u, { key: 0 }, {
|
|
165
165
|
default: o(() => [
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
166
|
+
O(e.$slots, "left-footer"),
|
|
167
|
+
a(_),
|
|
168
|
+
O(e.$slots, "footer")
|
|
169
169
|
]),
|
|
170
170
|
_: 3
|
|
171
171
|
}))
|
|
@@ -177,7 +177,7 @@ function he(e, t, n, a, u, d) {
|
|
|
177
177
|
_: 3
|
|
178
178
|
}, 8, ["model-value", "persistent", "fullscreen", "class", "content-class"]);
|
|
179
179
|
}
|
|
180
|
-
const
|
|
180
|
+
const Me = /* @__PURE__ */ L($e, [["render", be]]), ke = A({
|
|
181
181
|
name: "AccountAvatar",
|
|
182
182
|
props: {
|
|
183
183
|
item: {
|
|
@@ -190,19 +190,19 @@ const be = /* @__PURE__ */ H(ye, [["render", he]]), Me = C({
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
|
-
function
|
|
194
|
-
const
|
|
195
|
-
return r(),
|
|
193
|
+
function Ce(e, t, n, i, l, c) {
|
|
194
|
+
const d = s("v-avatar");
|
|
195
|
+
return r(), h(d, {
|
|
196
196
|
class: D(`ff-avatar avatar-${e.size}-${e.item.initials.length >= 3 ? "l" : "s"}`),
|
|
197
197
|
size: e.size
|
|
198
198
|
}, {
|
|
199
199
|
default: o(() => [
|
|
200
|
-
|
|
200
|
+
V(g(e.item.initials), 1)
|
|
201
201
|
]),
|
|
202
202
|
_: 1
|
|
203
203
|
}, 8, ["class", "size"]);
|
|
204
204
|
}
|
|
205
|
-
const Z = /* @__PURE__ */
|
|
205
|
+
const Z = /* @__PURE__ */ L(ke, [["render", Ce]]), q = (e) => e.surname ? `${e.name} ${e.surname}` : e.name, on = (e) => e == null ? "" : e.name ? e.surname ? `${e.name.trim().substring(0, 1).toUpperCase()}${e.surname.trim().substring(0, 1).toUpperCase()}` : e.name.trim().substring(0, 1).toUpperCase() : e.surname ? e.surname.trim().substring(0, 1).toUpperCase() : "", Ae = A({
|
|
206
206
|
name: "UserAvatar",
|
|
207
207
|
props: {
|
|
208
208
|
user: {
|
|
@@ -219,27 +219,27 @@ const Z = /* @__PURE__ */ H(Me, [["render", ke]]), q = (e) => e.surname ? `${e.n
|
|
|
219
219
|
}
|
|
220
220
|
},
|
|
221
221
|
setup(e) {
|
|
222
|
-
return { fullName:
|
|
222
|
+
return { fullName: H(() => q(e.user)) };
|
|
223
223
|
}
|
|
224
224
|
}), Le = { key: 1 };
|
|
225
|
-
function
|
|
226
|
-
const
|
|
227
|
-
return r(),
|
|
225
|
+
function He(e, t, n, i, l, c) {
|
|
226
|
+
const d = s("v-img"), f = s("v-avatar");
|
|
227
|
+
return r(), h(f, {
|
|
228
228
|
color: e.user.avatar_thumb ? "light_grey_bg" : e.user.color ?? "primary",
|
|
229
229
|
class: D(`avatar-${e.size}-${e.user.initials.length >= 3 ? "l" : "s"}`),
|
|
230
230
|
size: e.size
|
|
231
231
|
}, {
|
|
232
232
|
default: o(() => [
|
|
233
|
-
e.user.avatar_thumb ? (r(),
|
|
233
|
+
e.user.avatar_thumb ? (r(), h(d, {
|
|
234
234
|
key: 0,
|
|
235
235
|
alt: e.fullName,
|
|
236
236
|
src: `${e.baseUrl}/${e.user.avatar_thumb}`
|
|
237
|
-
}, null, 8, ["alt", "src"])) : (r(),
|
|
237
|
+
}, null, 8, ["alt", "src"])) : (r(), v("span", Le, g(e.user.initials), 1))
|
|
238
238
|
]),
|
|
239
239
|
_: 1
|
|
240
240
|
}, 8, ["color", "class", "size"]);
|
|
241
241
|
}
|
|
242
|
-
const F = /* @__PURE__ */
|
|
242
|
+
const F = /* @__PURE__ */ L(Ae, [["render", He]]), Ve = A({
|
|
243
243
|
name: "UserMenu",
|
|
244
244
|
components: { AccountAvatar: Z, UserAvatar: F },
|
|
245
245
|
methods: {
|
|
@@ -247,13 +247,13 @@ const F = /* @__PURE__ */ H(Ae, [["render", Ce]]), He = C({
|
|
|
247
247
|
return fe;
|
|
248
248
|
},
|
|
249
249
|
mdiAccount() {
|
|
250
|
-
return
|
|
250
|
+
return ce;
|
|
251
251
|
},
|
|
252
252
|
mdiMenuDown() {
|
|
253
|
-
return
|
|
253
|
+
return ve;
|
|
254
254
|
},
|
|
255
255
|
mdiCheck() {
|
|
256
|
-
return
|
|
256
|
+
return Y;
|
|
257
257
|
},
|
|
258
258
|
formatFullName: q
|
|
259
259
|
},
|
|
@@ -295,60 +295,60 @@ const F = /* @__PURE__ */ H(Ae, [["render", Ce]]), He = C({
|
|
|
295
295
|
"log-out"
|
|
296
296
|
],
|
|
297
297
|
setup(e, { emit: t }) {
|
|
298
|
-
const { t: n } = B(),
|
|
299
|
-
return { isOpen:
|
|
300
|
-
e.multipleAccounts ? t(
|
|
298
|
+
const { t: n } = B(), i = E(!1), l = E(!1), c = H(() => e.currentUser != null ? q(e.currentUser) : "-"), d = H(() => e.currentAccounts.map((y) => y.id)), f = H(() => e.currentAccounts.length === 1 ? q(e.currentAccounts[0]) : `${e.currentAccounts.length} ${n("aff.workspaces")}`);
|
|
299
|
+
return { isOpen: i, userName: c, langMenu: l, accountIds: d, accountTitle: f, selectAccount: (y) => {
|
|
300
|
+
e.multipleAccounts ? t(d.value.indexOf(y.id) >= 0 ? "unselect-account" : "select-account", y) : t("select-account", y);
|
|
301
301
|
}, openProfile: () => {
|
|
302
|
-
t("open-profile"),
|
|
303
|
-
}, switchLang: (
|
|
304
|
-
t("switch-lang",
|
|
302
|
+
t("open-profile"), i.value = !1;
|
|
303
|
+
}, switchLang: (y) => {
|
|
304
|
+
t("switch-lang", y), l.value = !1;
|
|
305
305
|
}, logOut: () => {
|
|
306
|
-
t("log-out"),
|
|
306
|
+
t("log-out"), i.value = !1;
|
|
307
307
|
} };
|
|
308
308
|
}
|
|
309
|
-
}), we = { class: "ff-user-btn-text" },
|
|
310
|
-
function ze(e, t, n,
|
|
311
|
-
const
|
|
312
|
-
return r(),
|
|
309
|
+
}), we = { class: "ff-user-btn-text" }, Se = { class: "name" }, Pe = { class: "comp" }, Ue = { class: "as-avatar" }, De = ["src"], Ee = ["src"], Oe = { class: "as-avatar" }, Te = { class: "as-avatar" };
|
|
310
|
+
function ze(e, t, n, i, l, c) {
|
|
311
|
+
const d = s("UserAvatar"), f = s("v-btn"), _ = s("v-list-subheader"), u = s("v-list-item"), p = s("AccountAvatar"), b = s("v-list-item-title"), y = s("v-icon"), m = s("v-list"), U = s("v-menu"), z = s("v-card-text"), R = s("v-card");
|
|
312
|
+
return r(), h(U, {
|
|
313
313
|
modelValue: e.isOpen,
|
|
314
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
314
|
+
"onUpdate:modelValue": t[2] || (t[2] = (M) => e.isOpen = M),
|
|
315
315
|
"close-on-content-click": !1
|
|
316
316
|
}, {
|
|
317
|
-
activator: o(({ props:
|
|
318
|
-
|
|
317
|
+
activator: o(({ props: M }) => [
|
|
318
|
+
a(f, P(M, { class: "ff-user-btn" }), {
|
|
319
319
|
default: o(() => [
|
|
320
|
-
|
|
320
|
+
a(d, {
|
|
321
321
|
size: 32,
|
|
322
322
|
user: e.currentUser,
|
|
323
323
|
"base-url": e.baseUrl + "/avatars"
|
|
324
324
|
}, null, 8, ["user", "base-url"]),
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
325
|
+
$("div", we, [
|
|
326
|
+
$("div", Se, g(e.userName), 1),
|
|
327
|
+
$("div", Pe, g(e.accountTitle), 1)
|
|
328
328
|
])
|
|
329
329
|
]),
|
|
330
330
|
_: 2
|
|
331
331
|
}, 1040)
|
|
332
332
|
]),
|
|
333
333
|
default: o(() => [
|
|
334
|
-
|
|
334
|
+
a(R, { class: "ff-user-manu-card" }, {
|
|
335
335
|
default: o(() => [
|
|
336
|
-
|
|
336
|
+
a(z, { class: "pa-0" }, {
|
|
337
337
|
default: o(() => [
|
|
338
|
-
|
|
338
|
+
a(m, null, {
|
|
339
339
|
default: o(() => [
|
|
340
|
-
|
|
340
|
+
a(_, null, {
|
|
341
341
|
default: o(() => [
|
|
342
|
-
|
|
342
|
+
V(g(e.$t("aff.Logged in as")) + ":", 1)
|
|
343
343
|
]),
|
|
344
344
|
_: 1
|
|
345
345
|
}),
|
|
346
|
-
|
|
346
|
+
a(u, {
|
|
347
347
|
title: e.userName,
|
|
348
348
|
subtitle: e.currentUser?.email ?? ""
|
|
349
349
|
}, {
|
|
350
350
|
prepend: o(() => [
|
|
351
|
-
|
|
351
|
+
a(d, {
|
|
352
352
|
size: 32,
|
|
353
353
|
user: e.currentUser,
|
|
354
354
|
"base-url": e.baseUrl + "/avatars"
|
|
@@ -356,83 +356,83 @@ function ze(e, t, n, a, u, d) {
|
|
|
356
356
|
]),
|
|
357
357
|
_: 1
|
|
358
358
|
}, 8, ["title", "subtitle"]),
|
|
359
|
-
|
|
359
|
+
a(_, null, {
|
|
360
360
|
default: o(() => [
|
|
361
|
-
|
|
361
|
+
V(g(e.$t("aff.Choose active company")) + ":", 1)
|
|
362
362
|
]),
|
|
363
363
|
_: 1
|
|
364
364
|
}),
|
|
365
|
-
(r(!0),
|
|
366
|
-
key:
|
|
367
|
-
onClick: (N) => e.selectAccount(
|
|
365
|
+
(r(!0), v(w, null, S(e.accounts, (M) => (r(), h(u, {
|
|
366
|
+
key: M.id,
|
|
367
|
+
onClick: (N) => e.selectAccount(M)
|
|
368
368
|
}, {
|
|
369
369
|
prepend: o(() => [
|
|
370
|
-
|
|
370
|
+
a(p, { item: M }, null, 8, ["item"])
|
|
371
371
|
]),
|
|
372
372
|
append: o(() => [
|
|
373
|
-
|
|
374
|
-
color: e.accountIds.indexOf(
|
|
373
|
+
a(y, {
|
|
374
|
+
color: e.accountIds.indexOf(M.id) >= 0 ? "primary" : "white",
|
|
375
375
|
icon: e.mdiCheck()
|
|
376
376
|
}, null, 8, ["color", "icon"])
|
|
377
377
|
]),
|
|
378
378
|
default: o(() => [
|
|
379
|
-
|
|
379
|
+
a(b, null, {
|
|
380
380
|
default: o(() => [
|
|
381
|
-
|
|
381
|
+
V(g(e.formatFullName(M)), 1)
|
|
382
382
|
]),
|
|
383
383
|
_: 2
|
|
384
384
|
}, 1024)
|
|
385
385
|
]),
|
|
386
386
|
_: 2
|
|
387
387
|
}, 1032, ["onClick"]))), 128)),
|
|
388
|
-
|
|
388
|
+
a(_, null, {
|
|
389
389
|
default: o(() => [
|
|
390
|
-
|
|
390
|
+
V(g(e.$t("aff.Actions")) + ":", 1)
|
|
391
391
|
]),
|
|
392
392
|
_: 1
|
|
393
393
|
}),
|
|
394
|
-
e.langs.length > 1 ? (r(),
|
|
394
|
+
e.langs.length > 1 ? (r(), h(u, {
|
|
395
395
|
key: 0,
|
|
396
396
|
"append-icon": e.mdiMenuDown(),
|
|
397
|
-
onClick: t[1] || (t[1] = (
|
|
397
|
+
onClick: t[1] || (t[1] = (M) => e.langMenu = !0)
|
|
398
398
|
}, {
|
|
399
399
|
prepend: o(() => [
|
|
400
|
-
|
|
401
|
-
|
|
400
|
+
$("div", Ue, [
|
|
401
|
+
$("img", {
|
|
402
402
|
src: e.currentLang.icon,
|
|
403
403
|
height: "15",
|
|
404
404
|
width: "20",
|
|
405
405
|
alt: ""
|
|
406
|
-
}, null, 8,
|
|
406
|
+
}, null, 8, De)
|
|
407
407
|
])
|
|
408
408
|
]),
|
|
409
409
|
default: o(() => [
|
|
410
|
-
|
|
410
|
+
a(b, null, {
|
|
411
411
|
default: o(() => [
|
|
412
|
-
|
|
412
|
+
a(U, {
|
|
413
413
|
modelValue: e.langMenu,
|
|
414
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
414
|
+
"onUpdate:modelValue": t[0] || (t[0] = (M) => e.langMenu = M),
|
|
415
415
|
"close-on-content-click": !1
|
|
416
416
|
}, {
|
|
417
|
-
activator: o(({ props:
|
|
418
|
-
|
|
417
|
+
activator: o(({ props: M }) => [
|
|
418
|
+
$("span", J(W(M)), g(e.currentLang.title), 17)
|
|
419
419
|
]),
|
|
420
420
|
default: o(() => [
|
|
421
|
-
|
|
421
|
+
a(m, null, {
|
|
422
422
|
default: o(() => [
|
|
423
|
-
(r(!0),
|
|
424
|
-
key:
|
|
425
|
-
title:
|
|
426
|
-
onClick: (N) => e.switchLang(
|
|
423
|
+
(r(!0), v(w, null, S(e.langs, (M) => (r(), h(u, {
|
|
424
|
+
key: M.value,
|
|
425
|
+
title: M.title,
|
|
426
|
+
onClick: (N) => e.switchLang(M)
|
|
427
427
|
}, {
|
|
428
428
|
prepend: o(() => [
|
|
429
|
-
|
|
430
|
-
src:
|
|
429
|
+
$("img", {
|
|
430
|
+
src: M.icon,
|
|
431
431
|
height: "18",
|
|
432
432
|
width: "24",
|
|
433
433
|
alt: "",
|
|
434
434
|
class: "mr-4"
|
|
435
|
-
}, null, 8,
|
|
435
|
+
}, null, 8, Ee)
|
|
436
436
|
]),
|
|
437
437
|
_: 2
|
|
438
438
|
}, 1032, ["title", "onClick"]))), 128))
|
|
@@ -448,26 +448,26 @@ function ze(e, t, n, a, u, d) {
|
|
|
448
448
|
]),
|
|
449
449
|
_: 1
|
|
450
450
|
}, 8, ["append-icon"])) : k("", !0),
|
|
451
|
-
|
|
451
|
+
a(u, {
|
|
452
452
|
title: e.$t("aff.Profile settings"),
|
|
453
453
|
onClick: e.openProfile
|
|
454
454
|
}, {
|
|
455
455
|
prepend: o(() => [
|
|
456
|
-
|
|
457
|
-
|
|
456
|
+
$("div", Oe, [
|
|
457
|
+
a(y, {
|
|
458
458
|
icon: e.mdiAccount()
|
|
459
459
|
}, null, 8, ["icon"])
|
|
460
460
|
])
|
|
461
461
|
]),
|
|
462
462
|
_: 1
|
|
463
463
|
}, 8, ["title", "onClick"]),
|
|
464
|
-
|
|
464
|
+
a(u, {
|
|
465
465
|
title: e.$t("aff.Log out"),
|
|
466
466
|
onClick: e.logOut
|
|
467
467
|
}, {
|
|
468
468
|
prepend: o(() => [
|
|
469
|
-
|
|
470
|
-
|
|
469
|
+
$("div", Te, [
|
|
470
|
+
a(y, {
|
|
471
471
|
icon: e.mdiLogout()
|
|
472
472
|
}, null, 8, ["icon"])
|
|
473
473
|
])
|
|
@@ -487,7 +487,7 @@ function ze(e, t, n, a, u, d) {
|
|
|
487
487
|
_: 1
|
|
488
488
|
}, 8, ["modelValue"]);
|
|
489
489
|
}
|
|
490
|
-
const
|
|
490
|
+
const rn = /* @__PURE__ */ L(Ve, [["render", ze]]), qe = A({
|
|
491
491
|
name: "ErrorDialog",
|
|
492
492
|
props: {
|
|
493
493
|
show: {
|
|
@@ -510,41 +510,41 @@ const tn = /* @__PURE__ */ H(He, [["render", ze]]), Oe = C({
|
|
|
510
510
|
emits: ["close"],
|
|
511
511
|
setup(e) {
|
|
512
512
|
const { t } = B();
|
|
513
|
-
return { title:
|
|
513
|
+
return { title: H(() => e.errorTitle ?? t("aff.Error occurred")) };
|
|
514
514
|
}
|
|
515
|
-
}),
|
|
516
|
-
function
|
|
517
|
-
const
|
|
518
|
-
return r(),
|
|
515
|
+
}), Be = ["innerHTML"], Ie = { key: 1 };
|
|
516
|
+
function Fe(e, t, n, i, l, c) {
|
|
517
|
+
const d = s("v-card-text"), f = s("v-spacer"), _ = s("v-btn"), u = s("v-card-actions"), p = s("v-card"), b = s("v-dialog");
|
|
518
|
+
return r(), h(b, {
|
|
519
519
|
"max-width": "500",
|
|
520
520
|
"model-value": e.show,
|
|
521
|
-
onClose: t[1] || (t[1] = (
|
|
521
|
+
onClose: t[1] || (t[1] = (y) => e.$emit("close"))
|
|
522
522
|
}, {
|
|
523
523
|
default: o(() => [
|
|
524
|
-
|
|
524
|
+
a(p, {
|
|
525
525
|
title: e.title,
|
|
526
526
|
theme: "dark"
|
|
527
527
|
}, {
|
|
528
528
|
default: o(() => [
|
|
529
|
-
|
|
529
|
+
a(d, null, {
|
|
530
530
|
default: o(() => [
|
|
531
|
-
e.errorDetails ? (r(),
|
|
531
|
+
e.errorDetails ? (r(), v("span", {
|
|
532
532
|
key: 0,
|
|
533
533
|
innerHTML: e.errorDetails
|
|
534
|
-
}, null, 8,
|
|
535
|
-
t[2] || (t[2] =
|
|
536
|
-
e.errorCode ? (r(),
|
|
534
|
+
}, null, 8, Be)) : k("", !0),
|
|
535
|
+
t[2] || (t[2] = V()),
|
|
536
|
+
e.errorCode ? (r(), v("span", Ie, "(" + g(e.$t("aff.Code")) + ": " + g(e.errorCode) + ")", 1)) : k("", !0)
|
|
537
537
|
]),
|
|
538
538
|
_: 1
|
|
539
539
|
}),
|
|
540
|
-
|
|
540
|
+
a(u, null, {
|
|
541
541
|
default: o(() => [
|
|
542
|
-
|
|
543
|
-
|
|
542
|
+
a(f),
|
|
543
|
+
a(_, {
|
|
544
544
|
text: e.$t("aff.Close"),
|
|
545
545
|
color: "primary",
|
|
546
546
|
variant: "flat",
|
|
547
|
-
onClick: t[0] || (t[0] = (
|
|
547
|
+
onClick: t[0] || (t[0] = (y) => e.$emit("close"))
|
|
548
548
|
}, null, 8, ["text"])
|
|
549
549
|
]),
|
|
550
550
|
_: 1
|
|
@@ -556,7 +556,7 @@ function Ie(e, t, n, a, u, d) {
|
|
|
556
556
|
_: 1
|
|
557
557
|
}, 8, ["model-value"]);
|
|
558
558
|
}
|
|
559
|
-
const
|
|
559
|
+
const sn = /* @__PURE__ */ L(qe, [["render", Fe]]), Re = A({
|
|
560
560
|
name: "FieldRow",
|
|
561
561
|
props: {
|
|
562
562
|
label: {
|
|
@@ -575,62 +575,62 @@ const nn = /* @__PURE__ */ H(Oe, [["render", Ie]]), Fe = C({
|
|
|
575
575
|
setup() {
|
|
576
576
|
return {};
|
|
577
577
|
}
|
|
578
|
-
}),
|
|
579
|
-
function
|
|
580
|
-
return r(),
|
|
578
|
+
}), Ne = { class: "lbl-col text-body-2" }, je = { class: "lbl" }, Ze = ["innerHTML"], Ge = { class: "inp-col" }, Ye = ["innerHTML"];
|
|
579
|
+
function Ke(e, t, n, i, l, c) {
|
|
580
|
+
return r(), v("div", {
|
|
581
581
|
class: D(["fld-row mobile-margin", e.errorMessage ? "fld-err" : ""])
|
|
582
582
|
}, [
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
e.description ? (r(),
|
|
583
|
+
$("div", Ne, [
|
|
584
|
+
$("div", je, g(e.label), 1),
|
|
585
|
+
e.description ? (r(), v("div", {
|
|
586
586
|
key: 0,
|
|
587
587
|
class: "descr",
|
|
588
588
|
innerHTML: e.description
|
|
589
|
-
}, null, 8,
|
|
589
|
+
}, null, 8, Ze)) : k("", !0)
|
|
590
590
|
]),
|
|
591
|
-
|
|
592
|
-
|
|
591
|
+
$("div", Ge, [
|
|
592
|
+
O(e.$slots, "default", {
|
|
593
593
|
hideDetails: !e.errorMessage,
|
|
594
594
|
errorMessages: e.errorMessage
|
|
595
595
|
})
|
|
596
596
|
]),
|
|
597
|
-
e.description ? (r(),
|
|
597
|
+
e.description ? (r(), v("div", {
|
|
598
598
|
key: 0,
|
|
599
599
|
class: "descr-col text-body-2",
|
|
600
600
|
innerHTML: e.description
|
|
601
|
-
}, null, 8,
|
|
601
|
+
}, null, 8, Ye)) : k("", !0)
|
|
602
602
|
], 2);
|
|
603
603
|
}
|
|
604
|
-
const
|
|
604
|
+
const ln = /* @__PURE__ */ L(Re, [["render", Ke]]), Je = A({
|
|
605
605
|
name: "ColorPicker",
|
|
606
606
|
components: { UserAvatar: F, AccountAvatar: Z },
|
|
607
607
|
setup() {
|
|
608
608
|
const e = E(null), t = (() => {
|
|
609
609
|
const n = [];
|
|
610
|
-
for (let
|
|
611
|
-
n.push(`color-${
|
|
610
|
+
for (let i = 1; i <= 48; i++)
|
|
611
|
+
n.push(`color-${i}`);
|
|
612
612
|
return n;
|
|
613
613
|
})();
|
|
614
614
|
return { val: e, colors: t };
|
|
615
615
|
}
|
|
616
616
|
});
|
|
617
|
-
function
|
|
618
|
-
const
|
|
619
|
-
return r(),
|
|
617
|
+
function We(e, t, n, i, l, c) {
|
|
618
|
+
const d = s("v-avatar"), f = s("v-list-item-title"), _ = s("v-list-item"), u = s("v-list"), p = s("v-card-text"), b = s("v-card");
|
|
619
|
+
return r(), h(b, { class: "ff-col-pckr" }, {
|
|
620
620
|
default: o(() => [
|
|
621
|
-
|
|
621
|
+
a(p, { style: { width: "305px", padding: "0 8px" } }, {
|
|
622
622
|
default: o(() => [
|
|
623
|
-
|
|
623
|
+
a(u, { style: { width: "289px" } }, {
|
|
624
624
|
default: o(() => [
|
|
625
|
-
(r(!0),
|
|
626
|
-
key:
|
|
627
|
-
onClick: (m) => e.$emit("change",
|
|
625
|
+
(r(!0), v(w, null, S(e.colors, (y) => (r(), h(_, {
|
|
626
|
+
key: y,
|
|
627
|
+
onClick: (m) => e.$emit("change", y)
|
|
628
628
|
}, {
|
|
629
629
|
default: o(() => [
|
|
630
|
-
|
|
630
|
+
a(f, null, {
|
|
631
631
|
default: o(() => [
|
|
632
|
-
|
|
633
|
-
color:
|
|
632
|
+
a(d, {
|
|
633
|
+
color: y,
|
|
634
634
|
size: "32"
|
|
635
635
|
}, null, 8, ["color"])
|
|
636
636
|
]),
|
|
@@ -649,7 +649,7 @@ function Je(e, t, n, a, u, d) {
|
|
|
649
649
|
_: 1
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
|
-
const
|
|
652
|
+
const Qe = /* @__PURE__ */ L(Je, [["render", We]]), Xe = A({
|
|
653
653
|
name: "FieldLabel",
|
|
654
654
|
props: {
|
|
655
655
|
label: {
|
|
@@ -670,18 +670,18 @@ const We = /* @__PURE__ */ H(Ke, [["render", Je]]), Qe = C({
|
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
672
|
});
|
|
673
|
-
function
|
|
674
|
-
const
|
|
675
|
-
return r(),
|
|
673
|
+
function xe(e, t, n, i, l, c) {
|
|
674
|
+
const d = s("v-col");
|
|
675
|
+
return r(), h(d, {
|
|
676
676
|
cols: e.cols,
|
|
677
677
|
sm: e.sm,
|
|
678
678
|
class: "fld"
|
|
679
679
|
}, {
|
|
680
680
|
default: o(() => [
|
|
681
|
-
|
|
681
|
+
$("div", {
|
|
682
682
|
class: D(["fld-lbl", e.errorMessages ? "fld-err" : ""])
|
|
683
|
-
},
|
|
684
|
-
|
|
683
|
+
}, g(e.label), 3),
|
|
684
|
+
O(e.$slots, "default", {
|
|
685
685
|
hideDetails: !e.errorMessages,
|
|
686
686
|
errorMessages: e.errorMessages
|
|
687
687
|
})
|
|
@@ -689,15 +689,15 @@ function Xe(e, t, n, a, u, d) {
|
|
|
689
689
|
_: 3
|
|
690
690
|
}, 8, ["cols", "sm"]);
|
|
691
691
|
}
|
|
692
|
-
const
|
|
692
|
+
const et = /* @__PURE__ */ L(Xe, [["render", xe]]), tt = (e, t, n) => (Object.defineProperty(e, t, {
|
|
693
693
|
value: n,
|
|
694
694
|
writable: !1,
|
|
695
695
|
configurable: !1,
|
|
696
696
|
enumerable: !1
|
|
697
|
-
}), n),
|
|
698
|
-
const
|
|
699
|
-
return
|
|
700
|
-
}, {}),
|
|
697
|
+
}), n), nt = (e, t, n) => e.reduce((i, l) => {
|
|
698
|
+
const c = l[t];
|
|
699
|
+
return i[c] = l[n], i;
|
|
700
|
+
}, {}), K = [
|
|
701
701
|
{ title: "lng.sv-se", value: "sv_SE" },
|
|
702
702
|
// $t("lng.sv-se")
|
|
703
703
|
{ title: "lng.sl-si", value: "sl_SI" },
|
|
@@ -758,7 +758,7 @@ const xe = /* @__PURE__ */ H(Qe, [["render", Xe]]), et = (e, t, n) => (Object.de
|
|
|
758
758
|
// $t("lng.ro-ro")
|
|
759
759
|
{ title: "lng.pt-pt", value: "pt_PT" }
|
|
760
760
|
// $t("lng.pt-pt")
|
|
761
|
-
],
|
|
761
|
+
], an = [
|
|
762
762
|
{ title: "lngin.et-ee", value: "et_EE" },
|
|
763
763
|
// $t("lngin.et-ee")
|
|
764
764
|
{ title: "lngin.lv-lv", value: "lv_LV" },
|
|
@@ -779,7 +779,7 @@ const xe = /* @__PURE__ */ H(Qe, [["render", Xe]]), et = (e, t, n) => (Object.de
|
|
|
779
779
|
// $t("lngin.de-de")
|
|
780
780
|
], j = {
|
|
781
781
|
get LangsEnum() {
|
|
782
|
-
return
|
|
782
|
+
return tt(this, "LangsEnum", nt(K, "value", "title"));
|
|
783
783
|
},
|
|
784
784
|
FrmLang(e) {
|
|
785
785
|
return this.LangsEnum[e] ?? e;
|
|
@@ -798,10 +798,10 @@ const xe = /* @__PURE__ */ H(Qe, [["render", Xe]]), et = (e, t, n) => (Object.de
|
|
|
798
798
|
return e.replace("-", "_");
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
|
-
},
|
|
801
|
+
}, ot = A({
|
|
802
802
|
methods: {
|
|
803
803
|
mdiPencil() {
|
|
804
|
-
return
|
|
804
|
+
return ge;
|
|
805
805
|
},
|
|
806
806
|
mdiKeyVariant() {
|
|
807
807
|
return pe;
|
|
@@ -820,73 +820,73 @@ const xe = /* @__PURE__ */ H(Qe, [["render", Xe]]), et = (e, t, n) => (Object.de
|
|
|
820
820
|
},
|
|
821
821
|
emits: ["edit-profile", "change-password"],
|
|
822
822
|
setup(e) {
|
|
823
|
-
const { t } = B(), n =
|
|
824
|
-
return { langauge: n, fullName:
|
|
823
|
+
const { t } = B(), n = H(() => e.currentUser?.locale ? t(j.FrmLang(j.ToLongFormat(e.currentUser.locale))) : ""), i = H(() => e.currentUser ? q(e.currentUser) : "");
|
|
824
|
+
return { langauge: n, fullName: i };
|
|
825
825
|
}
|
|
826
|
-
}),
|
|
826
|
+
}), rt = { class: "avatar" }, st = { class: "details" }, lt = { class: "name" }, at = {
|
|
827
827
|
key: 0,
|
|
828
828
|
class: "email"
|
|
829
|
-
},
|
|
830
|
-
function
|
|
831
|
-
const
|
|
832
|
-
return e.currentUser ? (r(),
|
|
829
|
+
}, it = { class: "email" };
|
|
830
|
+
function ut(e, t, n, i, l, c) {
|
|
831
|
+
const d = s("UserAvatar"), f = s("v-col"), _ = s("v-icon"), u = s("v-btn"), p = s("v-row");
|
|
832
|
+
return e.currentUser ? (r(), h(p, {
|
|
833
833
|
key: 0,
|
|
834
834
|
class: "mt-6 prof-hor"
|
|
835
835
|
}, {
|
|
836
836
|
default: o(() => [
|
|
837
|
-
|
|
837
|
+
a(f, {
|
|
838
838
|
cols: "12",
|
|
839
839
|
sm: "7",
|
|
840
840
|
class: "profile"
|
|
841
841
|
}, {
|
|
842
842
|
default: o(() => [
|
|
843
|
-
|
|
844
|
-
|
|
843
|
+
$("div", rt, [
|
|
844
|
+
a(d, {
|
|
845
845
|
size: 96,
|
|
846
846
|
user: e.currentUser,
|
|
847
847
|
"base-url": e.baseUrl + "/avatars"
|
|
848
848
|
}, null, 8, ["user", "base-url"])
|
|
849
849
|
]),
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
e.currentUser.email ? (r(),
|
|
853
|
-
|
|
850
|
+
$("div", st, [
|
|
851
|
+
$("div", lt, g(e.fullName), 1),
|
|
852
|
+
e.currentUser.email ? (r(), v("div", at, g(e.currentUser.email), 1)) : k("", !0),
|
|
853
|
+
$("div", it, g(e.$t("Language")) + ": " + g(e.langauge), 1)
|
|
854
854
|
])
|
|
855
855
|
]),
|
|
856
856
|
_: 1
|
|
857
857
|
}),
|
|
858
|
-
|
|
858
|
+
a(f, {
|
|
859
859
|
cols: "12",
|
|
860
860
|
sm: "5",
|
|
861
861
|
class: "buttons"
|
|
862
862
|
}, {
|
|
863
863
|
default: o(() => [
|
|
864
|
-
|
|
865
|
-
|
|
864
|
+
$("div", null, [
|
|
865
|
+
a(u, {
|
|
866
866
|
variant: "text",
|
|
867
867
|
color: "primary",
|
|
868
|
-
onClick: t[0] || (t[0] = (
|
|
868
|
+
onClick: t[0] || (t[0] = (b) => e.$emit("edit-profile"))
|
|
869
869
|
}, {
|
|
870
870
|
default: o(() => [
|
|
871
|
-
|
|
871
|
+
a(_, {
|
|
872
872
|
icon: e.mdiPencil(),
|
|
873
873
|
class: "mr-1"
|
|
874
874
|
}, null, 8, ["icon"]),
|
|
875
|
-
|
|
875
|
+
V(" " + g(e.$t("Edit info")), 1)
|
|
876
876
|
]),
|
|
877
877
|
_: 1
|
|
878
878
|
}),
|
|
879
|
-
|
|
879
|
+
a(u, {
|
|
880
880
|
variant: "text",
|
|
881
881
|
color: "primary",
|
|
882
|
-
onClick: t[1] || (t[1] = (
|
|
882
|
+
onClick: t[1] || (t[1] = (b) => e.$emit("change-password"))
|
|
883
883
|
}, {
|
|
884
884
|
default: o(() => [
|
|
885
|
-
|
|
885
|
+
a(_, {
|
|
886
886
|
icon: e.mdiKeyVariant(),
|
|
887
887
|
class: "mr-1"
|
|
888
888
|
}, null, 8, ["icon"]),
|
|
889
|
-
|
|
889
|
+
V(" " + g(e.$t("Change password")), 1)
|
|
890
890
|
]),
|
|
891
891
|
_: 1
|
|
892
892
|
})
|
|
@@ -898,14 +898,14 @@ function it(e, t, n, a, u, d) {
|
|
|
898
898
|
_: 1
|
|
899
899
|
})) : k("", !0);
|
|
900
900
|
}
|
|
901
|
-
const
|
|
901
|
+
const un = /* @__PURE__ */ L(ot, [["render", ut]]), ct = A({
|
|
902
902
|
name: "ProfileEditDialog",
|
|
903
903
|
methods: {
|
|
904
904
|
mdiPalette() {
|
|
905
|
-
return
|
|
905
|
+
return _e;
|
|
906
906
|
}
|
|
907
907
|
},
|
|
908
|
-
components: { ColorPicker:
|
|
908
|
+
components: { ColorPicker: Qe, UserAvatar: F, AccountAvatar: Z, FieldLabel: et, CustomDialog: Me },
|
|
909
909
|
props: {
|
|
910
910
|
showDialog: {
|
|
911
911
|
type: Boolean,
|
|
@@ -926,115 +926,115 @@ const sn = /* @__PURE__ */ H(nt, [["render", it]]), ut = C({
|
|
|
926
926
|
},
|
|
927
927
|
emits: ["close"],
|
|
928
928
|
setup(e) {
|
|
929
|
-
const { t } = B(), n = E({ ...e.currentUser }),
|
|
929
|
+
const { t } = B(), n = E({ ...e.currentUser }), i = E({}), l = E(j.ToLongFormat(e.currentUser.locale ?? e.fallbackLocale)), c = E(e.currentUser?.avatar_thumb ? "photo" : "color"), d = E(!1), f = H(() => [
|
|
930
930
|
{ value: "photo", text: t("Photo") },
|
|
931
931
|
{ value: "color", text: t("Color") }
|
|
932
|
-
]),
|
|
933
|
-
return { formData: n, localErrors:
|
|
934
|
-
|
|
932
|
+
]), _ = H(() => K.filter((p) => e.systemLanguages.indexOf(p.value) >= 0).map((p) => ({ title: t(p.value), value: p.value })));
|
|
933
|
+
return { formData: n, localErrors: i, languages: _, lang: l, identity: c, identities: f, loading: d, saveClick: () => {
|
|
934
|
+
d.value = !0, { ...n.value }, c.value == "color", l.value;
|
|
935
935
|
} };
|
|
936
936
|
}
|
|
937
937
|
}), dt = {
|
|
938
938
|
key: 0,
|
|
939
939
|
class: "ff-simple-form"
|
|
940
|
-
},
|
|
940
|
+
}, mt = { class: "avatar-edit" }, pt = { class: "avatar" }, ft = { class: "options" }, vt = {
|
|
941
941
|
key: 0,
|
|
942
942
|
class: "sel-ident"
|
|
943
943
|
};
|
|
944
|
-
function
|
|
945
|
-
const
|
|
946
|
-
return r(),
|
|
944
|
+
function _t(e, t, n, i, l, c) {
|
|
945
|
+
const d = s("v-avatar"), f = s("v-radio"), _ = s("v-radio-group"), u = s("v-icon"), p = s("v-btn"), b = s("ColorPicker"), y = s("v-menu"), m = s("v-col"), U = s("v-text-field"), z = s("FieldLabel"), R = s("v-select"), M = s("v-row"), N = s("CustomDialog");
|
|
946
|
+
return r(), h(N, {
|
|
947
947
|
value: e.showDialog,
|
|
948
948
|
title: e.$t("Your profile"),
|
|
949
949
|
persistent: "",
|
|
950
950
|
class: "prof-dlg",
|
|
951
|
-
onClose: t[7] || (t[7] = (
|
|
951
|
+
onClose: t[7] || (t[7] = (C) => e.$emit("close", null))
|
|
952
952
|
}, {
|
|
953
953
|
footer: o(() => [
|
|
954
|
-
|
|
954
|
+
a(p, {
|
|
955
955
|
variant: "flat",
|
|
956
956
|
color: "secondary",
|
|
957
|
-
onClick: t[6] || (t[6] = (
|
|
957
|
+
onClick: t[6] || (t[6] = (C) => e.$emit("close", null))
|
|
958
958
|
}, {
|
|
959
959
|
default: o(() => [
|
|
960
|
-
|
|
960
|
+
V(g(e.$t("Close")), 1)
|
|
961
961
|
]),
|
|
962
962
|
_: 1
|
|
963
963
|
}),
|
|
964
|
-
|
|
964
|
+
a(p, {
|
|
965
965
|
variant: "flat",
|
|
966
966
|
color: "primary",
|
|
967
967
|
loading: e.loading,
|
|
968
968
|
onClick: e.saveClick
|
|
969
969
|
}, {
|
|
970
970
|
default: o(() => [
|
|
971
|
-
|
|
971
|
+
V(g(e.$t("Save")), 1)
|
|
972
972
|
]),
|
|
973
973
|
_: 1
|
|
974
974
|
}, 8, ["loading", "onClick"])
|
|
975
975
|
]),
|
|
976
976
|
default: o(() => [
|
|
977
|
-
e.formData ? (r(),
|
|
978
|
-
|
|
977
|
+
e.formData ? (r(), v("form", dt, [
|
|
978
|
+
a(M, null, {
|
|
979
979
|
default: o(() => [
|
|
980
|
-
|
|
980
|
+
a(m, { cols: "12" }, {
|
|
981
981
|
default: o(() => [
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
982
|
+
$("div", mt, [
|
|
983
|
+
$("div", pt, [
|
|
984
|
+
a(d, {
|
|
985
985
|
color: e.formData.color ?? "primary",
|
|
986
986
|
class: D(`avatar-96-${e.formData.initials.length >= 3 ? "l" : "s"}`),
|
|
987
987
|
size: 96
|
|
988
988
|
}, {
|
|
989
989
|
default: o(() => [
|
|
990
|
-
|
|
990
|
+
$("span", null, g(e.formData.initials), 1)
|
|
991
991
|
]),
|
|
992
992
|
_: 1
|
|
993
993
|
}, 8, ["color", "class"])
|
|
994
994
|
]),
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
995
|
+
$("div", ft, [
|
|
996
|
+
$("div", null, [
|
|
997
|
+
a(_, {
|
|
998
998
|
modelValue: e.identity,
|
|
999
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
999
|
+
"onUpdate:modelValue": t[0] || (t[0] = (C) => e.identity = C),
|
|
1000
1000
|
"true-icon": e.$vuetify.icons.aliases?.success,
|
|
1001
1001
|
color: "primary",
|
|
1002
1002
|
"hide-details": "",
|
|
1003
1003
|
"error-messages": e.localErrors.other_vehicle_involved?.toString() ?? void 0
|
|
1004
1004
|
}, {
|
|
1005
1005
|
default: o(() => [
|
|
1006
|
-
(r(!0),
|
|
1007
|
-
key:
|
|
1008
|
-
label:
|
|
1009
|
-
value:
|
|
1006
|
+
(r(!0), v(w, null, S(e.identities, (C) => (r(), h(f, {
|
|
1007
|
+
key: C.value.toString(),
|
|
1008
|
+
label: C.text,
|
|
1009
|
+
value: C.value,
|
|
1010
1010
|
"base-color": e.localErrors.other_vehicle_involved ? "error" : ""
|
|
1011
1011
|
}, null, 8, ["label", "value", "base-color"]))), 128))
|
|
1012
1012
|
]),
|
|
1013
1013
|
_: 1
|
|
1014
1014
|
}, 8, ["modelValue", "true-icon", "error-messages"])
|
|
1015
1015
|
]),
|
|
1016
|
-
|
|
1017
|
-
e.identity === "color" ? (r(),
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
activator: o(({ props:
|
|
1021
|
-
|
|
1016
|
+
$("div", null, [
|
|
1017
|
+
e.identity === "color" ? (r(), v("div", vt, [
|
|
1018
|
+
$("div", null, [
|
|
1019
|
+
a(y, null, {
|
|
1020
|
+
activator: o(({ props: C }) => [
|
|
1021
|
+
a(p, P({
|
|
1022
1022
|
variant: "text",
|
|
1023
1023
|
color: "primary",
|
|
1024
1024
|
class: "ff-btn"
|
|
1025
|
-
},
|
|
1025
|
+
}, C), {
|
|
1026
1026
|
default: o(() => [
|
|
1027
|
-
|
|
1027
|
+
a(u, {
|
|
1028
1028
|
icon: e.mdiPalette()
|
|
1029
1029
|
}, null, 8, ["icon"]),
|
|
1030
|
-
|
|
1030
|
+
V(" " + g(e.$vuetify.display.smAndUp ? e.$t("Choose color") : e.$t("Color")), 1)
|
|
1031
1031
|
]),
|
|
1032
1032
|
_: 2
|
|
1033
1033
|
}, 1040)
|
|
1034
1034
|
]),
|
|
1035
1035
|
default: o(() => [
|
|
1036
|
-
|
|
1037
|
-
onChange: t[1] || (t[1] = (
|
|
1036
|
+
a(b, {
|
|
1037
|
+
onChange: t[1] || (t[1] = (C) => e.formData.color = C)
|
|
1038
1038
|
})
|
|
1039
1039
|
]),
|
|
1040
1040
|
_: 1
|
|
@@ -1047,67 +1047,67 @@ function gt(e, t, n, a, u, d) {
|
|
|
1047
1047
|
]),
|
|
1048
1048
|
_: 1
|
|
1049
1049
|
}),
|
|
1050
|
-
|
|
1050
|
+
a(z, {
|
|
1051
1051
|
label: e.$t("Name"),
|
|
1052
1052
|
cols: 12,
|
|
1053
1053
|
sm: 6,
|
|
1054
1054
|
"error-messages": e.localErrors.name?.toString() ?? void 0
|
|
1055
1055
|
}, {
|
|
1056
|
-
default: o((
|
|
1057
|
-
|
|
1056
|
+
default: o((C) => [
|
|
1057
|
+
a(U, P({
|
|
1058
1058
|
modelValue: e.formData.name,
|
|
1059
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
1059
|
+
"onUpdate:modelValue": t[2] || (t[2] = (T) => e.formData.name = T),
|
|
1060
1060
|
variant: "outlined"
|
|
1061
|
-
},
|
|
1061
|
+
}, C), null, 16, ["modelValue"])
|
|
1062
1062
|
]),
|
|
1063
1063
|
_: 1
|
|
1064
1064
|
}, 8, ["label", "error-messages"]),
|
|
1065
|
-
|
|
1065
|
+
a(z, {
|
|
1066
1066
|
label: e.$t("Surname"),
|
|
1067
1067
|
cols: 12,
|
|
1068
1068
|
sm: 6,
|
|
1069
1069
|
"error-messages": e.localErrors.surname?.toString() ?? void 0
|
|
1070
1070
|
}, {
|
|
1071
|
-
default: o((
|
|
1072
|
-
|
|
1071
|
+
default: o((C) => [
|
|
1072
|
+
a(U, P({
|
|
1073
1073
|
modelValue: e.formData.surname,
|
|
1074
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
1074
|
+
"onUpdate:modelValue": t[3] || (t[3] = (T) => e.formData.surname = T),
|
|
1075
1075
|
variant: "outlined"
|
|
1076
|
-
},
|
|
1076
|
+
}, C), null, 16, ["modelValue"])
|
|
1077
1077
|
]),
|
|
1078
1078
|
_: 1
|
|
1079
1079
|
}, 8, ["label", "error-messages"]),
|
|
1080
|
-
|
|
1080
|
+
a(z, {
|
|
1081
1081
|
label: e.$t("E-mail"),
|
|
1082
1082
|
cols: 12,
|
|
1083
1083
|
sm: 6,
|
|
1084
1084
|
"error-messages": e.localErrors.email?.toString() ?? void 0
|
|
1085
1085
|
}, {
|
|
1086
|
-
default: o((
|
|
1087
|
-
|
|
1086
|
+
default: o((C) => [
|
|
1087
|
+
a(U, P({
|
|
1088
1088
|
modelValue: e.formData.email,
|
|
1089
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
1089
|
+
"onUpdate:modelValue": t[4] || (t[4] = (T) => e.formData.email = T),
|
|
1090
1090
|
variant: "outlined",
|
|
1091
1091
|
disabled: ""
|
|
1092
|
-
},
|
|
1092
|
+
}, C), null, 16, ["modelValue"])
|
|
1093
1093
|
]),
|
|
1094
1094
|
_: 1
|
|
1095
1095
|
}, 8, ["label", "error-messages"]),
|
|
1096
|
-
|
|
1096
|
+
a(z, {
|
|
1097
1097
|
label: e.$t("Language"),
|
|
1098
1098
|
cols: 12,
|
|
1099
1099
|
sm: 6,
|
|
1100
1100
|
"error-messages": e.localErrors.locale?.toString() ?? void 0
|
|
1101
1101
|
}, {
|
|
1102
|
-
default: o((
|
|
1103
|
-
|
|
1102
|
+
default: o((C) => [
|
|
1103
|
+
a(R, P({
|
|
1104
1104
|
modelValue: e.lang,
|
|
1105
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
1105
|
+
"onUpdate:modelValue": t[5] || (t[5] = (T) => e.lang = T),
|
|
1106
1106
|
variant: "outlined",
|
|
1107
1107
|
items: e.languages,
|
|
1108
1108
|
"item-text": "title",
|
|
1109
1109
|
"item-value": "value"
|
|
1110
|
-
},
|
|
1110
|
+
}, C, { dense: "" }), null, 16, ["modelValue", "items"])
|
|
1111
1111
|
]),
|
|
1112
1112
|
_: 1
|
|
1113
1113
|
}, 8, ["label", "error-messages"])
|
|
@@ -1119,7 +1119,7 @@ function gt(e, t, n, a, u, d) {
|
|
|
1119
1119
|
_: 1
|
|
1120
1120
|
}, 8, ["value", "title"]);
|
|
1121
1121
|
}
|
|
1122
|
-
const
|
|
1122
|
+
const cn = /* @__PURE__ */ L(ct, [["render", _t]]), gt = A({
|
|
1123
1123
|
name: "RowActionsButton",
|
|
1124
1124
|
props: {
|
|
1125
1125
|
rowActions: {
|
|
@@ -1132,35 +1132,35 @@ const ln = /* @__PURE__ */ H(ut, [["render", gt]]), vt = C({
|
|
|
1132
1132
|
}
|
|
1133
1133
|
},
|
|
1134
1134
|
setup(e) {
|
|
1135
|
-
return { actions:
|
|
1135
|
+
return { actions: H(() => e.rowActions.actions.filter((n) => n.visible === void 0 || n.visible(e.item))) };
|
|
1136
1136
|
}
|
|
1137
1137
|
});
|
|
1138
|
-
function
|
|
1139
|
-
const
|
|
1140
|
-
return e.actions.length > 0 ? (r(),
|
|
1141
|
-
activator: o(({ props:
|
|
1142
|
-
|
|
1138
|
+
function yt(e, t, n, i, l, c) {
|
|
1139
|
+
const d = s("v-btn"), f = s("v-icon"), _ = s("v-list-item-title"), u = s("v-list-item"), p = s("v-list"), b = s("v-menu");
|
|
1140
|
+
return e.actions.length > 0 ? (r(), h(b, { key: 0 }, {
|
|
1141
|
+
activator: o(({ props: y }) => [
|
|
1142
|
+
a(d, P({
|
|
1143
1143
|
variant: "text",
|
|
1144
1144
|
size: "small",
|
|
1145
1145
|
icon: e.rowActions.icon
|
|
1146
|
-
},
|
|
1146
|
+
}, y), null, 16, ["icon"])
|
|
1147
1147
|
]),
|
|
1148
1148
|
default: o(() => [
|
|
1149
|
-
|
|
1149
|
+
a(p, { density: "compact" }, {
|
|
1150
1150
|
default: o(() => [
|
|
1151
|
-
(r(!0),
|
|
1152
|
-
key:
|
|
1153
|
-
onClick: (m) => e.$emit("row-action", { action:
|
|
1151
|
+
(r(!0), v(w, null, S(e.actions, (y) => (r(), h(u, {
|
|
1152
|
+
key: y.action,
|
|
1153
|
+
onClick: (m) => e.$emit("row-action", { action: y.action, item: e.item })
|
|
1154
1154
|
}, {
|
|
1155
1155
|
prepend: o(() => [
|
|
1156
|
-
|
|
1157
|
-
icon:
|
|
1156
|
+
a(f, {
|
|
1157
|
+
icon: y.icon
|
|
1158
1158
|
}, null, 8, ["icon"])
|
|
1159
1159
|
]),
|
|
1160
1160
|
default: o(() => [
|
|
1161
|
-
|
|
1161
|
+
a(_, null, {
|
|
1162
1162
|
default: o(() => [
|
|
1163
|
-
|
|
1163
|
+
V(g(y.title), 1)
|
|
1164
1164
|
]),
|
|
1165
1165
|
_: 2
|
|
1166
1166
|
}, 1024)
|
|
@@ -1174,7 +1174,7 @@ function _t(e, t, n, a, u, d) {
|
|
|
1174
1174
|
_: 1
|
|
1175
1175
|
})) : k("", !0);
|
|
1176
1176
|
}
|
|
1177
|
-
const G = /* @__PURE__ */
|
|
1177
|
+
const G = /* @__PURE__ */ L(gt, [["render", yt]]), $t = A({
|
|
1178
1178
|
name: "MobileLayoutItem",
|
|
1179
1179
|
methods: {
|
|
1180
1180
|
mdiDragVertical() {
|
|
@@ -1218,100 +1218,100 @@ const G = /* @__PURE__ */ H(vt, [["render", _t]]), yt = C({
|
|
|
1218
1218
|
},
|
|
1219
1219
|
emits: ["rowClick", "rowAction"],
|
|
1220
1220
|
setup() {
|
|
1221
|
-
const e = (n,
|
|
1222
|
-
return { formatValueList: (n,
|
|
1221
|
+
const e = (n, i) => i === null ? null : n.mobileLabel ? `${n.title}: ${i}` : i;
|
|
1222
|
+
return { formatValueList: (n, i, l) => n.map((c) => c.format ? e(c, c.format(c, i)) : e(c, i[c.value] ?? null)).filter((c) => c !== null).join(l) };
|
|
1223
1223
|
}
|
|
1224
|
-
}),
|
|
1224
|
+
}), ht = { style: { display: "flex", "align-items": "center", gap: "8px" } }, bt = { key: 1 }, Mt = { key: 2 }, kt = { key: 1 }, Ct = { key: 2 }, At = {
|
|
1225
1225
|
key: 0,
|
|
1226
1226
|
class: "mini-table"
|
|
1227
|
-
}, Lt = { key: 0 },
|
|
1227
|
+
}, Lt = { key: 0 }, Ht = { key: 1 }, Vt = { style: { "margin-top": "-11px", "margin-bottom": "-11px" } }, wt = {
|
|
1228
1228
|
key: 0,
|
|
1229
1229
|
class: "item-drag-handle"
|
|
1230
1230
|
};
|
|
1231
|
-
function
|
|
1232
|
-
const
|
|
1233
|
-
return r(),
|
|
1231
|
+
function St(e, t, n, i, l, c) {
|
|
1232
|
+
const d = s("v-col"), f = s("v-row"), _ = s("v-icon"), u = s("v-chip"), p = s("RowActionsButton"), b = s("v-card-text"), y = s("v-card");
|
|
1233
|
+
return r(), h(y, {
|
|
1234
1234
|
variant: "outlined",
|
|
1235
1235
|
title: e.formatValueList(e.titleHeaders, e.item, " - "),
|
|
1236
1236
|
subtitle: e.formatValueList(e.subTitleHeaders, e.item, "; "),
|
|
1237
1237
|
onClick: t[1] || (t[1] = (m) => e.$emit("rowClick", e.item))
|
|
1238
1238
|
}, {
|
|
1239
1239
|
title: o(() => [
|
|
1240
|
-
|
|
1241
|
-
(r(!0),
|
|
1242
|
-
m.component ? (r(),
|
|
1240
|
+
$("div", ht, [
|
|
1241
|
+
(r(!0), v(w, null, S(e.titleHeaders, (m, U) => (r(), v("span", { key: U }, [
|
|
1242
|
+
m.component ? (r(), h(I(m.component), P({
|
|
1243
1243
|
key: 0,
|
|
1244
1244
|
class: "mr-1",
|
|
1245
1245
|
ref_for: !0
|
|
1246
|
-
}, m.getProps ? m.getProps(m, e.item) : {}), null, 16)) : m.format ? (r(),
|
|
1246
|
+
}, m.getProps ? m.getProps(m, e.item) : {}), null, 16)) : m.format ? (r(), v("span", bt, g(m.format(m, e.item)), 1)) : (r(), v("span", Mt, g(e.item[m.value]), 1))
|
|
1247
1247
|
]))), 128))
|
|
1248
1248
|
])
|
|
1249
1249
|
]),
|
|
1250
1250
|
default: o(() => [
|
|
1251
|
-
|
|
1251
|
+
a(b, null, {
|
|
1252
1252
|
default: o(() => [
|
|
1253
|
-
(r(!0),
|
|
1253
|
+
(r(!0), v(w, null, S(e.otherHeaders, (m, U) => (r(), h(f, {
|
|
1254
1254
|
key: m.value,
|
|
1255
1255
|
"no-gutters": "",
|
|
1256
1256
|
class: D(`mt-${U === 0 ? 0 : 3}`)
|
|
1257
1257
|
}, {
|
|
1258
1258
|
default: o(() => [
|
|
1259
|
-
|
|
1259
|
+
a(d, {
|
|
1260
1260
|
cols: "4",
|
|
1261
1261
|
sm: "2"
|
|
1262
1262
|
}, {
|
|
1263
1263
|
default: o(() => [
|
|
1264
|
-
|
|
1264
|
+
V(g(m.title) + ":", 1)
|
|
1265
1265
|
]),
|
|
1266
1266
|
_: 2
|
|
1267
1267
|
}, 1024),
|
|
1268
|
-
|
|
1268
|
+
a(d, {
|
|
1269
1269
|
cols: "8",
|
|
1270
1270
|
sm: "10"
|
|
1271
1271
|
}, {
|
|
1272
1272
|
default: o(() => [
|
|
1273
|
-
m.component ? (r(),
|
|
1273
|
+
m.component ? (r(), h(I(m.component), P({
|
|
1274
1274
|
key: 0,
|
|
1275
1275
|
ref_for: !0
|
|
1276
|
-
}, m.getProps ? m.getProps(m, e.item) : {}), null, 16)) : m.format ? (r(),
|
|
1276
|
+
}, m.getProps ? m.getProps(m, e.item) : {}), null, 16)) : m.format ? (r(), v("span", kt, g(m.format(m, e.item)), 1)) : (r(), v("span", Ct, g(e.item[m.value]), 1))
|
|
1277
1277
|
]),
|
|
1278
1278
|
_: 2
|
|
1279
1279
|
}, 1024)
|
|
1280
1280
|
]),
|
|
1281
1281
|
_: 2
|
|
1282
1282
|
}, 1032, ["class"]))), 128)),
|
|
1283
|
-
e.miniTblHeaders.length > 0 ? (r(),
|
|
1284
|
-
|
|
1285
|
-
(r(!0),
|
|
1283
|
+
e.miniTblHeaders.length > 0 ? (r(), v("table", At, [
|
|
1284
|
+
$("tr", null, [
|
|
1285
|
+
(r(!0), v(w, null, S(e.miniTblHeaders, (m) => (r(), v("th", {
|
|
1286
1286
|
key: `h${m.value}`,
|
|
1287
|
-
style:
|
|
1288
|
-
},
|
|
1287
|
+
style: Q({ width: `${100 / e.miniTblHeaders.length}%` })
|
|
1288
|
+
}, g(m.title), 5))), 128))
|
|
1289
1289
|
]),
|
|
1290
|
-
|
|
1291
|
-
(r(!0),
|
|
1290
|
+
$("tr", null, [
|
|
1291
|
+
(r(!0), v(w, null, S(e.miniTblHeaders, (m) => (r(), v("td", {
|
|
1292
1292
|
key: `h${m.value}`
|
|
1293
1293
|
}, [
|
|
1294
|
-
m.format ? (r(),
|
|
1294
|
+
m.format ? (r(), v("span", Lt, g(m.format(m, e.item)), 1)) : (r(), v("span", Ht, g(e.item[m.value]), 1))
|
|
1295
1295
|
]))), 128))
|
|
1296
1296
|
])
|
|
1297
1297
|
])) : k("", !0),
|
|
1298
|
-
|
|
1298
|
+
a(f, {
|
|
1299
1299
|
"no-gutters": "",
|
|
1300
1300
|
class: "mt-3"
|
|
1301
1301
|
}, {
|
|
1302
1302
|
default: o(() => [
|
|
1303
|
-
|
|
1303
|
+
a(d, {
|
|
1304
1304
|
cols: e.rowActions ? 10 : 12
|
|
1305
1305
|
}, {
|
|
1306
1306
|
default: o(() => [
|
|
1307
|
-
(r(!0),
|
|
1307
|
+
(r(!0), v(w, null, S(e.tagHeaders, (m) => (r(), v("span", {
|
|
1308
1308
|
key: m.value
|
|
1309
1309
|
}, [
|
|
1310
|
-
m.component ? (r(),
|
|
1310
|
+
m.component ? (r(), h(I(m.component), P({
|
|
1311
1311
|
key: 0,
|
|
1312
1312
|
class: "mr-1",
|
|
1313
1313
|
ref_for: !0
|
|
1314
|
-
}, m.getProps ? m.getProps(m, e.item) : {}), null, 16)) : m.format ? (r(),
|
|
1314
|
+
}, m.getProps ? m.getProps(m, e.item) : {}), null, 16)) : m.format ? (r(), h(u, {
|
|
1315
1315
|
key: 1,
|
|
1316
1316
|
label: "",
|
|
1317
1317
|
size: "small",
|
|
@@ -1320,15 +1320,15 @@ function Vt(e, t, n, a, u, d) {
|
|
|
1320
1320
|
class: "mr-1"
|
|
1321
1321
|
}, {
|
|
1322
1322
|
default: o(() => [
|
|
1323
|
-
m.mobileIcon ? (r(),
|
|
1323
|
+
m.mobileIcon ? (r(), h(_, {
|
|
1324
1324
|
key: 0,
|
|
1325
1325
|
icon: m.mobileIcon,
|
|
1326
1326
|
class: "mr-1"
|
|
1327
1327
|
}, null, 8, ["icon"])) : k("", !0),
|
|
1328
|
-
|
|
1328
|
+
V(g(m.format(m, e.item)), 1)
|
|
1329
1329
|
]),
|
|
1330
1330
|
_: 2
|
|
1331
|
-
}, 1024)) : (r(),
|
|
1331
|
+
}, 1024)) : (r(), h(u, {
|
|
1332
1332
|
key: 2,
|
|
1333
1333
|
label: "",
|
|
1334
1334
|
size: "small",
|
|
@@ -1337,11 +1337,11 @@ function Vt(e, t, n, a, u, d) {
|
|
|
1337
1337
|
class: "mr-1"
|
|
1338
1338
|
}, {
|
|
1339
1339
|
default: o(() => [
|
|
1340
|
-
m.mobileIcon ? (r(),
|
|
1340
|
+
m.mobileIcon ? (r(), h(_, {
|
|
1341
1341
|
key: 0,
|
|
1342
1342
|
icon: m.mobileIcon
|
|
1343
1343
|
}, null, 8, ["icon"])) : k("", !0),
|
|
1344
|
-
|
|
1344
|
+
V(g(e.item[m.value]), 1)
|
|
1345
1345
|
]),
|
|
1346
1346
|
_: 2
|
|
1347
1347
|
}, 1024))
|
|
@@ -1349,14 +1349,14 @@ function Vt(e, t, n, a, u, d) {
|
|
|
1349
1349
|
]),
|
|
1350
1350
|
_: 1
|
|
1351
1351
|
}, 8, ["cols"]),
|
|
1352
|
-
e.rowActions ? (r(),
|
|
1352
|
+
e.rowActions ? (r(), h(d, {
|
|
1353
1353
|
key: 0,
|
|
1354
1354
|
cols: "2",
|
|
1355
1355
|
class: "text-right"
|
|
1356
1356
|
}, {
|
|
1357
1357
|
default: o(() => [
|
|
1358
|
-
|
|
1359
|
-
|
|
1358
|
+
$("div", Vt, [
|
|
1359
|
+
a(p, {
|
|
1360
1360
|
item: e.item,
|
|
1361
1361
|
"row-actions": e.rowActions,
|
|
1362
1362
|
onRowAction: t[0] || (t[0] = (m) => e.$emit("rowAction", m))
|
|
@@ -1371,8 +1371,8 @@ function Vt(e, t, n, a, u, d) {
|
|
|
1371
1371
|
]),
|
|
1372
1372
|
_: 1
|
|
1373
1373
|
}),
|
|
1374
|
-
e.draggable ? (r(),
|
|
1375
|
-
|
|
1374
|
+
e.draggable ? (r(), v("div", wt, [
|
|
1375
|
+
a(_, {
|
|
1376
1376
|
icon: e.mdiDragVertical()
|
|
1377
1377
|
}, null, 8, ["icon"])
|
|
1378
1378
|
])) : k("", !0)
|
|
@@ -1380,9 +1380,9 @@ function Vt(e, t, n, a, u, d) {
|
|
|
1380
1380
|
_: 1
|
|
1381
1381
|
}, 8, ["title", "subtitle"]);
|
|
1382
1382
|
}
|
|
1383
|
-
const
|
|
1383
|
+
const Pt = /* @__PURE__ */ L($t, [["render", St]]), Ut = A({
|
|
1384
1384
|
name: "MobileLayout",
|
|
1385
|
-
components: { MobileLayoutItem:
|
|
1385
|
+
components: { MobileLayoutItem: Pt, RowActionsButton: G },
|
|
1386
1386
|
props: {
|
|
1387
1387
|
items: {
|
|
1388
1388
|
type: Array,
|
|
@@ -1410,25 +1410,25 @@ const St = /* @__PURE__ */ H(yt, [["render", Vt]]), Pt = C({
|
|
|
1410
1410
|
}
|
|
1411
1411
|
},
|
|
1412
1412
|
setup(e, t) {
|
|
1413
|
-
const n = E(e.options.page),
|
|
1414
|
-
return { titleHeaders:
|
|
1413
|
+
const n = E(e.options.page), i = e.options.pageSize, l = H(() => e.headers.filter((p) => p.mobilePlacement === "title")), c = H(() => e.headers.filter((p) => p.mobilePlacement === "subtitle")), d = H(() => e.headers.filter((p) => p.mobilePlacement === "tag")), f = H(() => e.headers.filter((p) => p.mobilePlacement === "mini_table")), _ = H(() => e.headers.filter((p) => p.mobilePlacement !== "title" && p.mobilePlacement !== "subtitle" && p.mobilePlacement !== "tag" && p.mobilePlacement !== "mini_table"));
|
|
1414
|
+
return { titleHeaders: l, subTitleHeaders: c, tagHeaders: d, miniTblHeaders: f, otherHeaders: _, pageVal: n, pageSize: i, changePage: (p) => {
|
|
1415
1415
|
t.emit("options-update", { ...e.options, page: p });
|
|
1416
1416
|
} };
|
|
1417
1417
|
}
|
|
1418
|
-
}),
|
|
1418
|
+
}), Dt = { class: "mobile-margin2 data-table-layout" }, Et = {
|
|
1419
1419
|
key: 1,
|
|
1420
1420
|
class: "mt-3"
|
|
1421
1421
|
};
|
|
1422
|
-
function
|
|
1423
|
-
const
|
|
1424
|
-
return r(),
|
|
1425
|
-
e.loading ? (r(),
|
|
1422
|
+
function Ot(e, t, n, i, l, c) {
|
|
1423
|
+
const d = s("v-progress-linear"), f = s("MobileLayoutItem"), _ = s("v-pagination");
|
|
1424
|
+
return r(), v("div", Dt, [
|
|
1425
|
+
e.loading ? (r(), h(d, {
|
|
1426
1426
|
key: 0,
|
|
1427
1427
|
indeterminate: ""
|
|
1428
1428
|
})) : k("", !0),
|
|
1429
|
-
(r(!0),
|
|
1430
|
-
key:
|
|
1431
|
-
item:
|
|
1429
|
+
(r(!0), v(w, null, S(e.items, (u) => (r(), h(f, {
|
|
1430
|
+
key: u.id,
|
|
1431
|
+
item: u,
|
|
1432
1432
|
"title-headers": e.titleHeaders,
|
|
1433
1433
|
"mini-tbl-headers": e.miniTblHeaders,
|
|
1434
1434
|
"sub-title-headers": e.subTitleHeaders,
|
|
@@ -1438,11 +1438,11 @@ function Et(e, t, n, a, u, d) {
|
|
|
1438
1438
|
onRowClick: t[0] || (t[0] = (p) => e.$emit("row-click", p)),
|
|
1439
1439
|
onRowAction: t[1] || (t[1] = (p) => e.$emit("row-action", p))
|
|
1440
1440
|
}, null, 8, ["item", "title-headers", "mini-tbl-headers", "sub-title-headers", "tag-headers", "other-headers", "row-actions"]))), 128)),
|
|
1441
|
-
e.totalItems > e.pageSize ? (r(),
|
|
1442
|
-
|
|
1441
|
+
e.totalItems > e.pageSize ? (r(), v("div", Et, [
|
|
1442
|
+
a(_, {
|
|
1443
1443
|
modelValue: e.pageVal,
|
|
1444
1444
|
"onUpdate:modelValue": [
|
|
1445
|
-
t[2] || (t[2] = (
|
|
1445
|
+
t[2] || (t[2] = (u) => e.pageVal = u),
|
|
1446
1446
|
e.changePage
|
|
1447
1447
|
],
|
|
1448
1448
|
length: Math.ceil(e.totalItems / e.options.pageSize),
|
|
@@ -1452,7 +1452,7 @@ function Et(e, t, n, a, u, d) {
|
|
|
1452
1452
|
])) : k("", !0)
|
|
1453
1453
|
]);
|
|
1454
1454
|
}
|
|
1455
|
-
const
|
|
1455
|
+
const dn = /* @__PURE__ */ L(Ut, [["render", Ot]]), Tt = A({
|
|
1456
1456
|
name: "DesktopLayout",
|
|
1457
1457
|
components: { RowActionsButton: G },
|
|
1458
1458
|
props: {
|
|
@@ -1482,34 +1482,34 @@ const an = /* @__PURE__ */ H(Pt, [["render", Et]]), Tt = C({
|
|
|
1482
1482
|
}
|
|
1483
1483
|
},
|
|
1484
1484
|
setup(e, t) {
|
|
1485
|
-
const { t: n } = B(),
|
|
1486
|
-
const p =
|
|
1485
|
+
const { t: n } = B(), i = e.options.page, l = e.options.pageSize, c = e.options.sortField ? [{ key: e.options.sortField, order: e.options.sortDir }] : [], d = (u) => {
|
|
1486
|
+
const p = u.sortBy && u.sortBy.length > 0 ? u.sortBy[0] : null;
|
|
1487
1487
|
t.emit("options-update", {
|
|
1488
|
-
page:
|
|
1489
|
-
pageSize:
|
|
1488
|
+
page: u.page,
|
|
1489
|
+
pageSize: u.itemsPerPage,
|
|
1490
1490
|
sortField: p?.key ?? null,
|
|
1491
1491
|
sortDir: p?.order ?? "asc"
|
|
1492
1492
|
});
|
|
1493
|
-
}, f =
|
|
1493
|
+
}, f = H(() => [
|
|
1494
1494
|
{ value: 5, title: "5" },
|
|
1495
1495
|
{ value: 10, title: "10" },
|
|
1496
1496
|
{ value: 25, title: "25" },
|
|
1497
1497
|
{ value: 50, title: "50" },
|
|
1498
1498
|
{ value: -1, title: n("All") }
|
|
1499
|
-
]),
|
|
1500
|
-
const
|
|
1501
|
-
return
|
|
1499
|
+
]), _ = H(() => {
|
|
1500
|
+
const u = n("{0}-{1} of {2}", ["{0}", "{1}", "{2}"]), p = (e.options.page - 1) * e.options.pageSize + 1, b = Math.min(e.options.page * e.options.pageSize, e.totalItems);
|
|
1501
|
+
return u.replace("{0}", p.toString()).replace("{1}", b.toString()).replace("{2}", e.totalItems.toString());
|
|
1502
1502
|
});
|
|
1503
|
-
return { page:
|
|
1503
|
+
return { page: i, pageSize: l, sortBy: c, pageOptions: f, optionsUpdate: d, getPageText: _ };
|
|
1504
1504
|
}
|
|
1505
|
-
}), zt = { class: "data-table-layout" },
|
|
1505
|
+
}), zt = { class: "data-table-layout" }, qt = ["onClick"], Bt = { key: 1 }, It = { key: 2 }, Ft = {
|
|
1506
1506
|
key: 0,
|
|
1507
1507
|
class: "text-right"
|
|
1508
1508
|
};
|
|
1509
|
-
function
|
|
1510
|
-
const
|
|
1511
|
-
return r(),
|
|
1512
|
-
|
|
1509
|
+
function Rt(e, t, n, i, l, c) {
|
|
1510
|
+
const d = s("RowActionsButton"), f = s("v-data-table-server");
|
|
1511
|
+
return r(), v("div", zt, [
|
|
1512
|
+
a(f, {
|
|
1513
1513
|
items: e.items,
|
|
1514
1514
|
"items-length": e.totalItems,
|
|
1515
1515
|
headers: e.headers,
|
|
@@ -1522,40 +1522,107 @@ function Ft(e, t, n, a, u, d) {
|
|
|
1522
1522
|
"items-per-page-options": e.pageOptions,
|
|
1523
1523
|
"onUpdate:options": e.optionsUpdate
|
|
1524
1524
|
}, {
|
|
1525
|
-
item: o(({ item:
|
|
1526
|
-
|
|
1527
|
-
onClick: (
|
|
1525
|
+
item: o(({ item: _ }) => [
|
|
1526
|
+
$("tr", {
|
|
1527
|
+
onClick: (u) => e.$emit("row-click", _),
|
|
1528
1528
|
style: { cursor: "pointer" }
|
|
1529
1529
|
}, [
|
|
1530
|
-
(r(!0),
|
|
1531
|
-
key:
|
|
1532
|
-
class: D(["v-data-table__td", `v-data-table-column--align-${
|
|
1530
|
+
(r(!0), v(w, null, S(e.headers, (u) => (r(), v("td", {
|
|
1531
|
+
key: u.value,
|
|
1532
|
+
class: D(["v-data-table__td", `v-data-table-column--align-${u.align ?? "start"}`, u.mainField ? "ff-col-main" : ""])
|
|
1533
1533
|
}, [
|
|
1534
|
-
|
|
1534
|
+
u.component ? (r(), h(I(u.component), P({
|
|
1535
1535
|
key: 0,
|
|
1536
1536
|
ref_for: !0
|
|
1537
|
-
},
|
|
1537
|
+
}, u.getProps ? u.getProps(u, _) : {}), null, 16)) : u.format ? (r(), v("span", Bt, g(u.format(u, _)), 1)) : (r(), v("span", It, g(_[u.value]), 1))
|
|
1538
1538
|
], 2))), 128)),
|
|
1539
|
-
e.rowActions ? (r(),
|
|
1540
|
-
|
|
1541
|
-
item:
|
|
1539
|
+
e.rowActions ? (r(), v("td", Ft, [
|
|
1540
|
+
a(d, {
|
|
1541
|
+
item: _,
|
|
1542
1542
|
"row-actions": e.rowActions,
|
|
1543
|
-
onRowAction: t[0] || (t[0] = (
|
|
1543
|
+
onRowAction: t[0] || (t[0] = (u) => e.$emit("row-action", u))
|
|
1544
1544
|
}, null, 8, ["item", "row-actions"])
|
|
1545
1545
|
])) : k("", !0)
|
|
1546
|
-
], 8,
|
|
1546
|
+
], 8, qt)
|
|
1547
1547
|
]),
|
|
1548
1548
|
_: 1
|
|
1549
1549
|
}, 8, ["items", "items-length", "headers", "loading", "page", "items-per-page", "sort-by", "hide-default-footer", "items-per-page-options", "onUpdate:options"])
|
|
1550
1550
|
]);
|
|
1551
1551
|
}
|
|
1552
|
-
const
|
|
1552
|
+
const mn = /* @__PURE__ */ L(Tt, [["render", Rt]]), Nt = A({
|
|
1553
|
+
name: "ColumnSelector",
|
|
1554
|
+
props: {
|
|
1555
|
+
columns: {
|
|
1556
|
+
type: Array,
|
|
1557
|
+
required: !0
|
|
1558
|
+
},
|
|
1559
|
+
currentColumns: {
|
|
1560
|
+
type: Array,
|
|
1561
|
+
required: !0
|
|
1562
|
+
}
|
|
1563
|
+
},
|
|
1564
|
+
emits: ["changeCurrentColumns"],
|
|
1565
|
+
methods: {
|
|
1566
|
+
mdiCheck() {
|
|
1567
|
+
return Y;
|
|
1568
|
+
},
|
|
1569
|
+
mdiViewColumn() {
|
|
1570
|
+
return ye;
|
|
1571
|
+
}
|
|
1572
|
+
},
|
|
1573
|
+
setup(e, { emit: t }) {
|
|
1574
|
+
return { toggleColumn: (i) => {
|
|
1575
|
+
const l = [...e.currentColumns];
|
|
1576
|
+
l.indexOf(i) >= 0 ? l.splice(l.indexOf(i), 1) : l.push(i), t("changeCurrentColumns", l);
|
|
1577
|
+
} };
|
|
1578
|
+
}
|
|
1579
|
+
});
|
|
1580
|
+
function jt(e, t, n, i, l, c) {
|
|
1581
|
+
const d = s("v-btn"), f = s("v-list-item-title"), _ = s("v-icon"), u = s("v-list-item"), p = s("v-list"), b = s("v-menu");
|
|
1582
|
+
return r(), h(b, null, {
|
|
1583
|
+
activator: o(({ props: y }) => [
|
|
1584
|
+
a(d, P({
|
|
1585
|
+
variant: "text",
|
|
1586
|
+
icon: e.mdiViewColumn()
|
|
1587
|
+
}, y), null, 16, ["icon"])
|
|
1588
|
+
]),
|
|
1589
|
+
default: o(() => [
|
|
1590
|
+
a(p, { density: "compact" }, {
|
|
1591
|
+
default: o(() => [
|
|
1592
|
+
(r(!0), v(w, null, S(e.columns, (y, m) => (r(), h(u, {
|
|
1593
|
+
key: m,
|
|
1594
|
+
onClick: (U) => e.toggleColumn(y.value)
|
|
1595
|
+
}, {
|
|
1596
|
+
append: o(() => [
|
|
1597
|
+
a(_, {
|
|
1598
|
+
icon: e.mdiCheck(),
|
|
1599
|
+
color: e.currentColumns.indexOf(y.value) >= 0 ? "primary" : "white"
|
|
1600
|
+
}, null, 8, ["icon", "color"])
|
|
1601
|
+
]),
|
|
1602
|
+
default: o(() => [
|
|
1603
|
+
a(f, null, {
|
|
1604
|
+
default: o(() => [
|
|
1605
|
+
V(g(y.title), 1)
|
|
1606
|
+
]),
|
|
1607
|
+
_: 2
|
|
1608
|
+
}, 1024)
|
|
1609
|
+
]),
|
|
1610
|
+
_: 2
|
|
1611
|
+
}, 1032, ["onClick"]))), 128))
|
|
1612
|
+
]),
|
|
1613
|
+
_: 1
|
|
1614
|
+
})
|
|
1615
|
+
]),
|
|
1616
|
+
_: 1
|
|
1617
|
+
});
|
|
1618
|
+
}
|
|
1619
|
+
const pn = /* @__PURE__ */ L(Nt, [["render", jt]]), fn = (e) => e ? e.replace(/(?:\r\n|\r|\n)/g, "<br>") : "", vn = (e) => JSON.parse(JSON.stringify(e)), _n = (e) => {
|
|
1553
1620
|
let t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
1554
1621
|
return t ? decodeURIComponent(t[3]) : null;
|
|
1555
|
-
},
|
|
1556
|
-
let
|
|
1557
|
-
return
|
|
1558
|
-
},
|
|
1622
|
+
}, gn = (e, t, n, i = null) => {
|
|
1623
|
+
let l, c;
|
|
1624
|
+
return i == null && (i = "/"), c = "", n && (l = /* @__PURE__ */ new Date(), l.setTime(l.getTime() + n * 24 * 60 * 60 * 1e3), c = "; expires=" + l.toUTCString()), document.cookie = encodeURIComponent(e) + "=" + encodeURIComponent(t) + c + "; path=" + i, !0;
|
|
1625
|
+
}, yn = (e, t) => {
|
|
1559
1626
|
for (const n of t) {
|
|
1560
1627
|
if (n === "/")
|
|
1561
1628
|
return e === "/";
|
|
@@ -1563,36 +1630,36 @@ const un = /* @__PURE__ */ H(Tt, [["render", Ft]]), dn = (e) => e ? e.replace(/(
|
|
|
1563
1630
|
return !0;
|
|
1564
1631
|
}
|
|
1565
1632
|
return !1;
|
|
1566
|
-
},
|
|
1633
|
+
}, $n = (e) => {
|
|
1567
1634
|
const t = {};
|
|
1568
1635
|
for (const n of ["p", "l", "s", "d"])
|
|
1569
1636
|
e[n] !== void 0 && (t[n] = e[n]);
|
|
1570
1637
|
return t;
|
|
1571
|
-
},
|
|
1638
|
+
}, hn = {
|
|
1572
1639
|
et_EE: { culture: "et-EE", datetime_format: "d.MM.yyyy H:mm", date_format_no_year: "d.MM", month_format: "MM.yyyy", decimal_symbol: ",", list_separator: ";", time_format: "H:mm", date_format_friendly_no_year: "d. MMM", date_format: "d.MM.yyyy", thousands_symbol: " ", datetime_pos_format: "{1} {0}", money_format: "{1} {0}" },
|
|
1573
1640
|
et: { culture: "et", datetime_format: "d.MM.yyyy H:mm", date_format_no_year: "d.MM", month_format: "MM.yyyy", decimal_symbol: ",", list_separator: ";", time_format: "H:mm", date_format_friendly_no_year: "d. MMM", date_format: "d.MM.yyyy", thousands_symbol: " ", datetime_pos_format: "{1} {0}", money_format: "{1} {0}" },
|
|
1574
1641
|
en_GB: { culture: "en-GB", datetime_format: "dd/MM/yyyy, HH:mm", date_format_no_year: "dd/MM", month_format: "MM/yyyy", decimal_symbol: ".", list_separator: ",", time_format: "HH:mm", date_format_friendly_no_year: "D MMM", date_format: "dd/MM/yyyy", thousands_symbol: ",", datetime_pos_format: "{1}, {0}", money_format: "{1} {0}" },
|
|
1575
1642
|
en: { culture: "en", datetime_format: "dd/MM/yyyy, HH:mm", date_format_no_year: "dd/MM", month_format: "MM/yyyy", decimal_symbol: ".", list_separator: ",", time_format: "HH:mm", date_format_friendly_no_year: "D MMM", date_format: "dd/MM/yyyy", thousands_symbol: ",", datetime_pos_format: "{1}, {0}", money_format: "{1} {0}" }
|
|
1576
|
-
},
|
|
1643
|
+
}, bn = {
|
|
1577
1644
|
EUR: "€",
|
|
1578
1645
|
USD: "$"
|
|
1579
|
-
},
|
|
1646
|
+
}, Mn = (e, t, n, i, l) => (typeof e == "string" && (e = parseFloat(e)), e.toLocaleString("en-GB", { minimumFractionDigits: t, maximumFractionDigits: n }).replace(/\.|,/gi, (c) => c === "." ? i : l)), kn = (e, t) => e == null ? "" : e.replace(new RegExp(t, "g"), "").replace(new RegExp(" ", "g"), "").replace(",", "."), Zt = /(dddd|dd|d|hh|h|HH|H|mm|m|MMMM|MMM|MM|M|ss|s|tt|yyyy|yy|zzz)/g, Cn = (e, t) => {
|
|
1580
1647
|
if (!e) return "";
|
|
1581
1648
|
const n = typeof e == "string" ? new Date(e) : e;
|
|
1582
|
-
return t.replace(
|
|
1583
|
-
switch (
|
|
1649
|
+
return t.replace(Zt, (i) => {
|
|
1650
|
+
switch (i) {
|
|
1584
1651
|
case "d":
|
|
1585
1652
|
return n.getDate().toString();
|
|
1586
1653
|
case "dd":
|
|
1587
1654
|
case "DD":
|
|
1588
1655
|
return ("0" + n.getDate()).slice(-2);
|
|
1589
1656
|
case "h": {
|
|
1590
|
-
const
|
|
1591
|
-
return (
|
|
1657
|
+
const l = n.getHours();
|
|
1658
|
+
return (l === 0 ? 12 : l > 12 ? l - 12 : l).toString();
|
|
1592
1659
|
}
|
|
1593
1660
|
case "hh": {
|
|
1594
|
-
const
|
|
1595
|
-
return ("0" + (
|
|
1661
|
+
const l = n.getHours();
|
|
1662
|
+
return ("0" + (l === 0 ? 12 : l > 12 ? l - 12 : l)).slice(-2);
|
|
1596
1663
|
}
|
|
1597
1664
|
case "H":
|
|
1598
1665
|
return n.getHours().toString();
|
|
@@ -1624,37 +1691,37 @@ const un = /* @__PURE__ */ H(Tt, [["render", Ft]]), dn = (e) => e ? e.replace(/(
|
|
|
1624
1691
|
case "YYYY":
|
|
1625
1692
|
return n.getFullYear().toString();
|
|
1626
1693
|
case "zzz": {
|
|
1627
|
-
const
|
|
1628
|
-
return `${
|
|
1694
|
+
const l = n.getTimezoneOffset(), c = Math.abs(l) % 60;
|
|
1695
|
+
return `${l <= 0 ? "+" : "-"}${("0" + (Math.abs(l) - c) / 60).slice(-2)}:${("0" + c).slice(-2)}`;
|
|
1629
1696
|
}
|
|
1630
1697
|
default:
|
|
1631
|
-
return
|
|
1698
|
+
return i;
|
|
1632
1699
|
}
|
|
1633
1700
|
});
|
|
1634
|
-
},
|
|
1701
|
+
}, An = (e) => {
|
|
1635
1702
|
for (const t in e)
|
|
1636
1703
|
Object.prototype.hasOwnProperty.call(e, t) && (e[t] = null);
|
|
1637
|
-
},
|
|
1704
|
+
}, Ln = (e, t, n, i, l, c = null) => {
|
|
1638
1705
|
if (typeof e == "string") {
|
|
1639
|
-
|
|
1706
|
+
i(e);
|
|
1640
1707
|
return;
|
|
1641
1708
|
}
|
|
1642
1709
|
if (e.response && e.response.status) {
|
|
1643
1710
|
if (e.response.status === 400 && e.response.data) {
|
|
1644
|
-
|
|
1711
|
+
Yt(e, t, n, i, l, c);
|
|
1645
1712
|
return;
|
|
1646
1713
|
}
|
|
1647
1714
|
if (e.response.status === 409 && e.response.data) {
|
|
1648
|
-
|
|
1715
|
+
Kt(e, i, l);
|
|
1649
1716
|
return;
|
|
1650
1717
|
}
|
|
1651
1718
|
if (e.response.status === 417 && e.response.data) {
|
|
1652
|
-
|
|
1719
|
+
Jt(i, l);
|
|
1653
1720
|
return;
|
|
1654
1721
|
}
|
|
1655
1722
|
}
|
|
1656
|
-
|
|
1657
|
-
},
|
|
1723
|
+
i(e);
|
|
1724
|
+
}, Gt = () => {
|
|
1658
1725
|
setTimeout(() => {
|
|
1659
1726
|
const e = document.querySelector(".v-input--error, .ec-input.local-err");
|
|
1660
1727
|
if (e == null)
|
|
@@ -1662,52 +1729,52 @@ const un = /* @__PURE__ */ H(Tt, [["render", Ft]]), dn = (e) => e ? e.replace(/(
|
|
|
1662
1729
|
const t = e.querySelector("input, textarea, .ec-inp-ctrl");
|
|
1663
1730
|
t?.focus();
|
|
1664
1731
|
}, 200);
|
|
1665
|
-
},
|
|
1666
|
-
const
|
|
1667
|
-
let f = !1,
|
|
1732
|
+
}, Yt = (e, t, n, i, l, c = null) => {
|
|
1733
|
+
const d = [];
|
|
1734
|
+
let f = !1, _ = {};
|
|
1668
1735
|
if (Array.isArray(e.response.data))
|
|
1669
|
-
for (let
|
|
1670
|
-
|
|
1736
|
+
for (let u = 0; u < e.response.data.length; u++)
|
|
1737
|
+
d.push(e.response.data[u]);
|
|
1671
1738
|
else
|
|
1672
|
-
for (const
|
|
1673
|
-
if (Object.prototype.hasOwnProperty.call(e.response.data,
|
|
1674
|
-
const p = e.response.data[
|
|
1675
|
-
if (
|
|
1739
|
+
for (const u in e.response.data)
|
|
1740
|
+
if (Object.prototype.hasOwnProperty.call(e.response.data, u)) {
|
|
1741
|
+
const p = e.response.data[u];
|
|
1742
|
+
if (Wt(_, t, u, p[0]))
|
|
1676
1743
|
f = !0;
|
|
1677
1744
|
else {
|
|
1678
|
-
const
|
|
1679
|
-
|
|
1745
|
+
const y = c && c[u] ? c[u] : u;
|
|
1746
|
+
d.push({ error_message: `${y}: ${p}` });
|
|
1680
1747
|
}
|
|
1681
1748
|
}
|
|
1682
|
-
|
|
1683
|
-
message:
|
|
1684
|
-
details: "<ul><li>" +
|
|
1685
|
-
})), f && (n != null && (n.value = { ...n.value, ...
|
|
1686
|
-
},
|
|
1687
|
-
let
|
|
1688
|
-
typeof e.response.data == "string" ?
|
|
1749
|
+
d.length > 0 && (d.length === 1 ? i(d[0]) : i({
|
|
1750
|
+
message: l("Some errors occured:"),
|
|
1751
|
+
details: "<ul><li>" + d.map((u) => u.error_message).join("</li><li>") + "</li></ul>"
|
|
1752
|
+
})), f && (n != null && (n.value = { ...n.value, ..._ }), Gt());
|
|
1753
|
+
}, Kt = (e, t, n) => {
|
|
1754
|
+
let i = [];
|
|
1755
|
+
typeof e.response.data == "string" ? i.push(e.response.data) : e.response.data.errors && (i = e.response.data.errors.map((l) => l.error_message)), t({
|
|
1689
1756
|
title: n("Concurrency error"),
|
|
1690
|
-
details:
|
|
1757
|
+
details: i.length === 1 ? i[0] : "<ul><li>" + i.join("</li><li>") + "</li></ul>",
|
|
1691
1758
|
code: 409
|
|
1692
1759
|
});
|
|
1693
|
-
},
|
|
1760
|
+
}, Jt = (e, t) => {
|
|
1694
1761
|
e({
|
|
1695
1762
|
title: t("Product version mismatch."),
|
|
1696
1763
|
details: t("Please reload the page."),
|
|
1697
1764
|
code: 417
|
|
1698
1765
|
});
|
|
1699
|
-
},
|
|
1700
|
-
const
|
|
1701
|
-
let
|
|
1702
|
-
for (;
|
|
1703
|
-
const f =
|
|
1766
|
+
}, Wt = (e, t, n, i) => {
|
|
1767
|
+
const l = n.split(".");
|
|
1768
|
+
let c = t, d = e;
|
|
1769
|
+
for (; l.length > 0; ) {
|
|
1770
|
+
const f = l.shift();
|
|
1704
1771
|
if (f) {
|
|
1705
|
-
if (
|
|
1706
|
-
return /^\d+$/.test(f) ? !1 : Object.prototype.hasOwnProperty.call(
|
|
1772
|
+
if (l.length === 0)
|
|
1773
|
+
return /^\d+$/.test(f) ? !1 : Object.prototype.hasOwnProperty.call(c, f) ? (d[f] = i, !0) : !1;
|
|
1707
1774
|
if (/^\d+$/.test(f))
|
|
1708
|
-
|
|
1709
|
-
else if (Object.prototype.hasOwnProperty.call(
|
|
1710
|
-
|
|
1775
|
+
c = c[parseInt(f)], d[c.tmp_id] || (d[c.tmp_id] = {}), d = d[c.tmp_id];
|
|
1776
|
+
else if (Object.prototype.hasOwnProperty.call(c, f))
|
|
1777
|
+
c = c[f], d[f] || (d[f] = {}), d = d[f];
|
|
1711
1778
|
else
|
|
1712
1779
|
return !1;
|
|
1713
1780
|
}
|
|
@@ -1716,38 +1783,40 @@ const un = /* @__PURE__ */ H(Tt, [["render", Ft]]), dn = (e) => e ? e.replace(/(
|
|
|
1716
1783
|
};
|
|
1717
1784
|
export {
|
|
1718
1785
|
Z as AccountAvatar,
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1786
|
+
Qe as ColorPicker,
|
|
1787
|
+
pn as ColumnSelector,
|
|
1788
|
+
hn as CultureInfos,
|
|
1789
|
+
bn as CurrencySymbols,
|
|
1790
|
+
Me as CustomDialog,
|
|
1791
|
+
mn as DesktopLayout,
|
|
1792
|
+
sn as ErrorDialog,
|
|
1793
|
+
et as FieldLabel,
|
|
1794
|
+
ln as FieldRow,
|
|
1795
|
+
an as InLanguages,
|
|
1796
|
+
nn as InnerLeftMenu,
|
|
1729
1797
|
j as LangUtil,
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1798
|
+
K as Languages,
|
|
1799
|
+
tt as LazyLoadingProp,
|
|
1800
|
+
dn as MobileLayout,
|
|
1801
|
+
tn as PageSubtitle,
|
|
1802
|
+
en as PageTitle,
|
|
1803
|
+
cn as ProfileEditDialog,
|
|
1804
|
+
un as ProfileInfo,
|
|
1805
|
+
G as RowActionsButton,
|
|
1737
1806
|
F as UserAvatar,
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1807
|
+
rn as UserMenu,
|
|
1808
|
+
An as clearLocalErrors,
|
|
1809
|
+
kn as clnNumbCust,
|
|
1810
|
+
$n as clonePagingAndSort,
|
|
1811
|
+
vn as deepClone,
|
|
1743
1812
|
q as formatFullName,
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1813
|
+
on as formatInitials,
|
|
1814
|
+
Cn as frmDateCust,
|
|
1815
|
+
Mn as frmNumCust,
|
|
1816
|
+
_n as getCookie,
|
|
1817
|
+
Ln as handleErrorResponse,
|
|
1818
|
+
yn as isActive,
|
|
1819
|
+
nt as mapArrayToEnum,
|
|
1820
|
+
fn as nl2br,
|
|
1821
|
+
gn as setCookie
|
|
1753
1822
|
};
|