alytus-ff 0.1.45 → 0.1.47
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 +253 -245
- package/dist/alytus-ff.umd.cjs +1 -1
- package/dist/bundle-stats.html +1 -1
- package/dist/plugins/i18n.d.ts +3 -0
- package/package.json +1 -1
package/dist/alytus-ff.js
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
import { defineStore as
|
|
2
|
-
import { ref as S, defineComponent as k, createElementBlock as _, openBlock as u, createElementVNode as $, createCommentVNode as
|
|
3
|
-
import { useRouter as
|
|
1
|
+
import { defineStore as ee } from "pinia";
|
|
2
|
+
import { ref as S, defineComponent as k, createElementBlock as _, openBlock as u, createElementVNode as $, createCommentVNode as V, toDisplayString as y, renderSlot as E, normalizeClass as I, resolveComponent as a, createBlock as h, withCtx as o, Fragment as P, renderList as U, createVNode as c, createTextVNode as C, computed as w, normalizeProps as te, guardReactiveProps as ne, mergeProps as D, resolveDynamicComponent as F, normalizeStyle as oe, watch as re } from "vue";
|
|
3
|
+
import { useRouter as le, useRoute as se } from "vue-router";
|
|
4
4
|
import { useI18n as q } from "vue-i18n";
|
|
5
|
-
|
|
5
|
+
const W = S("en_GB");
|
|
6
|
+
function ae(e) {
|
|
7
|
+
Object.defineProperty(W, "value", {
|
|
8
|
+
get: () => {
|
|
9
|
+
const t = e?.global?.locale;
|
|
10
|
+
return t ? typeof t == "string" ? t : t.value : "en_GB";
|
|
11
|
+
},
|
|
12
|
+
configurable: !0
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function ie() {
|
|
16
|
+
return W;
|
|
17
|
+
}
|
|
18
|
+
let X = null;
|
|
6
19
|
function En(e) {
|
|
7
|
-
|
|
20
|
+
X = e, ae(e);
|
|
8
21
|
}
|
|
9
|
-
const
|
|
10
|
-
const e = (d) =>
|
|
22
|
+
const ue = ee("page", () => {
|
|
23
|
+
const e = (d) => X?.global?.t(d) ?? d;
|
|
11
24
|
function t(d) {
|
|
12
25
|
return d;
|
|
13
26
|
}
|
|
@@ -21,7 +34,7 @@ const ie = x("page", () => {
|
|
|
21
34
|
else if (d.response !== void 0)
|
|
22
35
|
switch (d.response.status) {
|
|
23
36
|
case 500:
|
|
24
|
-
l(null, e("aff.An error has occurred
|
|
37
|
+
l(null, e("aff.An error has occurred"), 500);
|
|
25
38
|
break;
|
|
26
39
|
case 504:
|
|
27
40
|
l(null, "Network timeout, please try again.", 504);
|
|
@@ -30,7 +43,7 @@ const ie = x("page", () => {
|
|
|
30
43
|
l(null, "Insufficient permissions to perform this action.", 503);
|
|
31
44
|
break;
|
|
32
45
|
case 404:
|
|
33
|
-
l(null, e("aff.Not found
|
|
46
|
+
l(null, e("aff.Not found"), 404);
|
|
34
47
|
break;
|
|
35
48
|
case 409:
|
|
36
49
|
l(null, "Concurrency error. Please reload page and make your changes again.", 409);
|
|
@@ -53,7 +66,7 @@ const ie = x("page", () => {
|
|
|
53
66
|
}, 250);
|
|
54
67
|
}
|
|
55
68
|
return { errorDialog: n, errorTitle: r, errorDetails: m, errorCode: s, showError: g, closeError: i };
|
|
56
|
-
}),
|
|
69
|
+
}), ce = k({
|
|
57
70
|
name: "PageTitle",
|
|
58
71
|
props: {
|
|
59
72
|
title: {
|
|
@@ -70,22 +83,22 @@ const ie = x("page", () => {
|
|
|
70
83
|
for (const [r, s] of t)
|
|
71
84
|
n[r] = s;
|
|
72
85
|
return n;
|
|
73
|
-
},
|
|
86
|
+
}, de = { class: "mt-6 mb-3 ff-page-title" }, me = { class: "text-h5 ff-title" }, pe = {
|
|
74
87
|
key: 0,
|
|
75
88
|
class: "text-body-2 ff-description"
|
|
76
89
|
};
|
|
77
|
-
function
|
|
78
|
-
return u(), _("div",
|
|
90
|
+
function fe(e, t, n, r, s, m) {
|
|
91
|
+
return u(), _("div", de, [
|
|
79
92
|
$("div", null, [
|
|
80
|
-
$("span",
|
|
81
|
-
e.description ? (u(), _("div",
|
|
93
|
+
$("span", me, y(e.title), 1),
|
|
94
|
+
e.description ? (u(), _("div", pe, y(e.description), 1)) : V("", !0)
|
|
82
95
|
]),
|
|
83
96
|
$("div", null, [
|
|
84
97
|
E(e.$slots, "buttons")
|
|
85
98
|
])
|
|
86
99
|
]);
|
|
87
100
|
}
|
|
88
|
-
const Tn = /* @__PURE__ */ A(
|
|
101
|
+
const Tn = /* @__PURE__ */ A(ce, [["render", fe]]), ve = k({
|
|
89
102
|
name: "PageSubtitle",
|
|
90
103
|
props: {
|
|
91
104
|
subtitle: {
|
|
@@ -97,18 +110,18 @@ const Tn = /* @__PURE__ */ A(ue, [["render", pe]]), fe = k({
|
|
|
97
110
|
default: !1
|
|
98
111
|
}
|
|
99
112
|
}
|
|
100
|
-
}),
|
|
101
|
-
function
|
|
113
|
+
}), _e = { class: "text-h6 font-weight-bold" };
|
|
114
|
+
function ge(e, t, n, r, s, m) {
|
|
102
115
|
return u(), _("div", {
|
|
103
116
|
class: I([e.firstPosition ? "mt-0" : "", "ff-page-subtitle"])
|
|
104
117
|
}, [
|
|
105
|
-
$("div",
|
|
118
|
+
$("div", _e, y(e.subtitle), 1),
|
|
106
119
|
$("div", null, [
|
|
107
120
|
E(e.$slots, "buttons")
|
|
108
121
|
])
|
|
109
122
|
], 2);
|
|
110
123
|
}
|
|
111
|
-
const On = /* @__PURE__ */ A(
|
|
124
|
+
const On = /* @__PURE__ */ A(ve, [["render", ge]]), ye = k({
|
|
112
125
|
name: "InnerLeftMenu",
|
|
113
126
|
components: {},
|
|
114
127
|
props: {
|
|
@@ -118,11 +131,11 @@ const On = /* @__PURE__ */ A(fe, [["render", _e]]), ge = k({
|
|
|
118
131
|
}
|
|
119
132
|
},
|
|
120
133
|
setup() {
|
|
121
|
-
const e =
|
|
134
|
+
const e = le(), t = se();
|
|
122
135
|
return { goTo: (s) => e.push(s), isActive: (s) => t.fullPath.startsWith(s) };
|
|
123
136
|
}
|
|
124
137
|
});
|
|
125
|
-
function
|
|
138
|
+
function $e(e, t, n, r, s, m) {
|
|
126
139
|
const l = a("v-list-item-title"), p = a("v-list-item"), g = a("v-list");
|
|
127
140
|
return u(), h(g, { class: "inner-left-menu mobile-horizontal" }, {
|
|
128
141
|
default: o(() => [
|
|
@@ -144,13 +157,13 @@ function ye(e, t, n, r, s, m) {
|
|
|
144
157
|
_: 1
|
|
145
158
|
});
|
|
146
159
|
}
|
|
147
|
-
const qn = /* @__PURE__ */ A(
|
|
148
|
-
var
|
|
149
|
-
const
|
|
160
|
+
const qn = /* @__PURE__ */ A(ye, [["render", $e]]);
|
|
161
|
+
var he = "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", Z = "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z", be = "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", ke = "M9,3H11V5H9V3M13,3H15V5H13V3M9,7H11V9H9V7M13,7H15V9H13V7M9,11H11V13H9V11M13,11H15V13H13V11M9,15H11V17H9V15M13,15H15V17H13V15M9,19H11V21H9V19M13,19H15V21H13V19Z", Ae = "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", Ce = "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", Q = "M7,10L12,15L17,10H7Z", Me = "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", Ve = "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", Le = "M16,5V18H21V5M4,18H9V5H4M10,18H15V5H10V18Z";
|
|
162
|
+
const we = k({
|
|
150
163
|
name: "CustomDialog",
|
|
151
164
|
methods: {
|
|
152
165
|
mdiClose() {
|
|
153
|
-
return
|
|
166
|
+
return be;
|
|
154
167
|
}
|
|
155
168
|
},
|
|
156
169
|
props: {
|
|
@@ -179,8 +192,8 @@ const Le = k({
|
|
|
179
192
|
default: !1
|
|
180
193
|
}
|
|
181
194
|
}
|
|
182
|
-
}),
|
|
183
|
-
function
|
|
195
|
+
}), He = { class: "close-btn" };
|
|
196
|
+
function Se(e, t, n, r, s, m) {
|
|
184
197
|
const l = a("v-btn"), p = a("v-card-text"), g = a("v-spacer"), i = a("v-card-actions"), d = a("v-card"), b = a("v-dialog");
|
|
185
198
|
return u(), h(b, {
|
|
186
199
|
"model-value": e.value,
|
|
@@ -198,7 +211,7 @@ function He(e, t, n, r, s, m) {
|
|
|
198
211
|
class: I(e.fullHeight ? "ff-full-height" : "")
|
|
199
212
|
}, {
|
|
200
213
|
append: o(() => [
|
|
201
|
-
$("div",
|
|
214
|
+
$("div", He, [
|
|
202
215
|
c(l, {
|
|
203
216
|
variant: "text",
|
|
204
217
|
icon: e.mdiClose(),
|
|
@@ -213,7 +226,7 @@ function He(e, t, n, r, s, m) {
|
|
|
213
226
|
]),
|
|
214
227
|
_: 3
|
|
215
228
|
}),
|
|
216
|
-
e.noFooter ?
|
|
229
|
+
e.noFooter ? V("", !0) : (u(), h(i, { key: 0 }, {
|
|
217
230
|
default: o(() => [
|
|
218
231
|
E(e.$slots, "left-footer"),
|
|
219
232
|
c(g),
|
|
@@ -229,7 +242,7 @@ function He(e, t, n, r, s, m) {
|
|
|
229
242
|
_: 3
|
|
230
243
|
}, 8, ["model-value", "persistent", "fullscreen", "class", "content-class"]);
|
|
231
244
|
}
|
|
232
|
-
const
|
|
245
|
+
const Pe = /* @__PURE__ */ A(we, [["render", Se]]), Ue = k({
|
|
233
246
|
name: "AccountAvatar",
|
|
234
247
|
props: {
|
|
235
248
|
item: {
|
|
@@ -242,7 +255,7 @@ const Se = /* @__PURE__ */ A(Le, [["render", He]]), Pe = k({
|
|
|
242
255
|
}
|
|
243
256
|
}
|
|
244
257
|
});
|
|
245
|
-
function
|
|
258
|
+
function De(e, t, n, r, s, m) {
|
|
246
259
|
const l = a("v-avatar");
|
|
247
260
|
return u(), h(l, {
|
|
248
261
|
class: I(`ff-avatar avatar-${e.size}-${e.item.initials.length >= 3 ? "l" : "s"}`),
|
|
@@ -254,7 +267,7 @@ function Ue(e, t, n, r, s, m) {
|
|
|
254
267
|
_: 1
|
|
255
268
|
}, 8, ["class", "size"]);
|
|
256
269
|
}
|
|
257
|
-
const
|
|
270
|
+
const Y = /* @__PURE__ */ A(Ue, [["render", De]]), z = (e) => e.surname ? `${e.name} ${e.surname}` : e.name, Nn = (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() : "", Ie = k({
|
|
258
271
|
name: "UserAvatar",
|
|
259
272
|
props: {
|
|
260
273
|
user: {
|
|
@@ -271,10 +284,10 @@ const K = /* @__PURE__ */ A(Pe, [["render", Ue]]), z = (e) => e.surname ? `${e.n
|
|
|
271
284
|
}
|
|
272
285
|
},
|
|
273
286
|
setup(e) {
|
|
274
|
-
return { fullName:
|
|
287
|
+
return { fullName: w(() => z(e.user)) };
|
|
275
288
|
}
|
|
276
|
-
}),
|
|
277
|
-
function
|
|
289
|
+
}), Ee = { key: 1 };
|
|
290
|
+
function Te(e, t, n, r, s, m) {
|
|
278
291
|
const l = a("v-img"), p = a("v-avatar");
|
|
279
292
|
return u(), h(p, {
|
|
280
293
|
color: e.user.avatar_thumb ? "light_grey_bg" : e.user.color ?? "primary",
|
|
@@ -286,26 +299,26 @@ function Ee(e, t, n, r, s, m) {
|
|
|
286
299
|
key: 0,
|
|
287
300
|
alt: e.fullName,
|
|
288
301
|
src: `${e.baseUrl}/${e.user.avatar_thumb}`
|
|
289
|
-
}, null, 8, ["alt", "src"])) : (u(), _("span",
|
|
302
|
+
}, null, 8, ["alt", "src"])) : (u(), _("span", Ee, y(e.user.initials), 1))
|
|
290
303
|
]),
|
|
291
304
|
_: 1
|
|
292
305
|
}, 8, ["color", "class", "size"]);
|
|
293
306
|
}
|
|
294
|
-
const B = /* @__PURE__ */ A(
|
|
307
|
+
const B = /* @__PURE__ */ A(Ie, [["render", Te]]), Oe = k({
|
|
295
308
|
name: "UserMenu",
|
|
296
|
-
components: { AccountAvatar:
|
|
309
|
+
components: { AccountAvatar: Y, UserAvatar: B },
|
|
297
310
|
methods: {
|
|
298
311
|
mdiLogout() {
|
|
299
|
-
return
|
|
312
|
+
return Ce;
|
|
300
313
|
},
|
|
301
314
|
mdiAccount() {
|
|
302
|
-
return
|
|
315
|
+
return he;
|
|
303
316
|
},
|
|
304
317
|
mdiMenuDown() {
|
|
305
|
-
return
|
|
318
|
+
return Q;
|
|
306
319
|
},
|
|
307
320
|
mdiCheck() {
|
|
308
|
-
return
|
|
321
|
+
return Z;
|
|
309
322
|
},
|
|
310
323
|
formatFullName: z
|
|
311
324
|
},
|
|
@@ -347,7 +360,7 @@ const B = /* @__PURE__ */ A(De, [["render", Ee]]), Te = k({
|
|
|
347
360
|
"log-out"
|
|
348
361
|
],
|
|
349
362
|
setup(e, { emit: t }) {
|
|
350
|
-
const { t: n } = q(), r = S(!1), s = S(!1), m =
|
|
363
|
+
const { t: n } = q(), r = S(!1), s = S(!1), m = w(() => e.currentUser != null ? z(e.currentUser) : "-"), l = w(() => e.currentAccounts.map((v) => v.id)), p = w(() => e.currentAccounts.length === 1 ? z(e.currentAccounts[0]) : `${e.currentAccounts.length} ${n("aff.workspaces")}`);
|
|
351
364
|
return { isOpen: r, userName: m, langMenu: s, accountIds: l, accountTitle: p, selectAccount: (v) => {
|
|
352
365
|
e.multipleAccounts ? t(l.value.indexOf(v.id) >= 0 ? "unselect-account" : "select-account", v) : t("select-account", v);
|
|
353
366
|
}, openProfile: () => {
|
|
@@ -358,8 +371,8 @@ const B = /* @__PURE__ */ A(De, [["render", Ee]]), Te = k({
|
|
|
358
371
|
t("log-out"), r.value = !1;
|
|
359
372
|
} };
|
|
360
373
|
}
|
|
361
|
-
}),
|
|
362
|
-
function
|
|
374
|
+
}), qe = { class: "ff-user-btn-text" }, Ne = { class: "name" }, Fe = { class: "comp" }, ze = { class: "as-avatar" }, Be = ["src"], Re = ["src"], je = { class: "as-avatar" }, Ge = { class: "as-avatar" };
|
|
375
|
+
function Ze(e, t, n, r, s, m) {
|
|
363
376
|
const l = a("UserAvatar"), p = a("v-btn"), g = a("v-list-subheader"), i = a("v-list-item"), d = a("AccountAvatar"), b = a("v-list-item-title"), v = a("v-icon"), f = a("v-list"), H = a("v-menu"), T = a("v-card-text"), R = a("v-card");
|
|
364
377
|
return u(), h(H, {
|
|
365
378
|
modelValue: e.isOpen,
|
|
@@ -374,8 +387,8 @@ function Ge(e, t, n, r, s, m) {
|
|
|
374
387
|
user: e.currentUser,
|
|
375
388
|
"base-url": e.baseUrl + "/avatars"
|
|
376
389
|
}, null, 8, ["user", "base-url"]),
|
|
377
|
-
$("div",
|
|
378
|
-
$("div",
|
|
390
|
+
$("div", qe, [
|
|
391
|
+
$("div", Ne, y(e.userName), 1),
|
|
379
392
|
$("div", Fe, y(e.accountTitle), 1)
|
|
380
393
|
])
|
|
381
394
|
]),
|
|
@@ -449,13 +462,13 @@ function Ge(e, t, n, r, s, m) {
|
|
|
449
462
|
onClick: t[1] || (t[1] = (M) => e.langMenu = !0)
|
|
450
463
|
}, {
|
|
451
464
|
prepend: o(() => [
|
|
452
|
-
$("div",
|
|
465
|
+
$("div", ze, [
|
|
453
466
|
$("img", {
|
|
454
467
|
src: e.currentLang.icon,
|
|
455
468
|
height: "15",
|
|
456
469
|
width: "20",
|
|
457
470
|
alt: ""
|
|
458
|
-
}, null, 8,
|
|
471
|
+
}, null, 8, Be)
|
|
459
472
|
])
|
|
460
473
|
]),
|
|
461
474
|
default: o(() => [
|
|
@@ -467,7 +480,7 @@ function Ge(e, t, n, r, s, m) {
|
|
|
467
480
|
"close-on-content-click": !1
|
|
468
481
|
}, {
|
|
469
482
|
activator: o(({ props: M }) => [
|
|
470
|
-
$("span",
|
|
483
|
+
$("span", te(ne(M)), y(e.currentLang.title), 17)
|
|
471
484
|
]),
|
|
472
485
|
default: o(() => [
|
|
473
486
|
c(f, null, {
|
|
@@ -484,7 +497,7 @@ function Ge(e, t, n, r, s, m) {
|
|
|
484
497
|
width: "24",
|
|
485
498
|
alt: "",
|
|
486
499
|
class: "mr-4"
|
|
487
|
-
}, null, 8,
|
|
500
|
+
}, null, 8, Re)
|
|
488
501
|
]),
|
|
489
502
|
_: 2
|
|
490
503
|
}, 1032, ["title", "onClick"]))), 128))
|
|
@@ -499,13 +512,13 @@ function Ge(e, t, n, r, s, m) {
|
|
|
499
512
|
})
|
|
500
513
|
]),
|
|
501
514
|
_: 1
|
|
502
|
-
}, 8, ["append-icon"])) :
|
|
515
|
+
}, 8, ["append-icon"])) : V("", !0),
|
|
503
516
|
c(i, {
|
|
504
517
|
title: e.$t("aff.Profile settings"),
|
|
505
518
|
onClick: e.openProfile
|
|
506
519
|
}, {
|
|
507
520
|
prepend: o(() => [
|
|
508
|
-
$("div",
|
|
521
|
+
$("div", je, [
|
|
509
522
|
c(v, {
|
|
510
523
|
icon: e.mdiAccount()
|
|
511
524
|
}, null, 8, ["icon"])
|
|
@@ -518,7 +531,7 @@ function Ge(e, t, n, r, s, m) {
|
|
|
518
531
|
onClick: e.logOut
|
|
519
532
|
}, {
|
|
520
533
|
prepend: o(() => [
|
|
521
|
-
$("div",
|
|
534
|
+
$("div", Ge, [
|
|
522
535
|
c(v, {
|
|
523
536
|
icon: e.mdiLogout()
|
|
524
537
|
}, null, 8, ["icon"])
|
|
@@ -539,7 +552,7 @@ function Ge(e, t, n, r, s, m) {
|
|
|
539
552
|
_: 1
|
|
540
553
|
}, 8, ["modelValue"]);
|
|
541
554
|
}
|
|
542
|
-
const
|
|
555
|
+
const Fn = /* @__PURE__ */ A(Oe, [["render", Ze]]), Ye = k({
|
|
543
556
|
name: "ErrorDialog",
|
|
544
557
|
props: {
|
|
545
558
|
show: {
|
|
@@ -562,10 +575,10 @@ const Nn = /* @__PURE__ */ A(Te, [["render", Ge]]), Ze = k({
|
|
|
562
575
|
emits: ["close"],
|
|
563
576
|
setup(e) {
|
|
564
577
|
const { t } = q();
|
|
565
|
-
return { title:
|
|
578
|
+
return { title: w(() => e.errorTitle ?? t("aff.Error occurred")) };
|
|
566
579
|
}
|
|
567
|
-
}),
|
|
568
|
-
function
|
|
580
|
+
}), Ke = ["innerHTML"], Je = { key: 1 };
|
|
581
|
+
function We(e, t, n, r, s, m) {
|
|
569
582
|
const l = a("v-card-text"), p = a("v-spacer"), g = a("v-btn"), i = a("v-card-actions"), d = a("v-card"), b = a("v-dialog");
|
|
570
583
|
return u(), h(b, {
|
|
571
584
|
"max-width": "500",
|
|
@@ -583,9 +596,9 @@ function Je(e, t, n, r, s, m) {
|
|
|
583
596
|
e.errorDetails ? (u(), _("span", {
|
|
584
597
|
key: 0,
|
|
585
598
|
innerHTML: e.errorDetails
|
|
586
|
-
}, null, 8,
|
|
599
|
+
}, null, 8, Ke)) : V("", !0),
|
|
587
600
|
t[2] || (t[2] = C()),
|
|
588
|
-
e.errorCode ? (u(), _("span",
|
|
601
|
+
e.errorCode ? (u(), _("span", Je, "(" + y(e.$t("aff.Code")) + ": " + y(e.errorCode) + ")", 1)) : V("", !0)
|
|
589
602
|
]),
|
|
590
603
|
_: 1
|
|
591
604
|
}),
|
|
@@ -608,7 +621,7 @@ function Je(e, t, n, r, s, m) {
|
|
|
608
621
|
_: 1
|
|
609
622
|
}, 8, ["model-value"]);
|
|
610
623
|
}
|
|
611
|
-
const zn = /* @__PURE__ */ A(
|
|
624
|
+
const zn = /* @__PURE__ */ A(Ye, [["render", We]]), Xe = k({
|
|
612
625
|
name: "FieldRow",
|
|
613
626
|
props: {
|
|
614
627
|
label: {
|
|
@@ -627,20 +640,20 @@ const zn = /* @__PURE__ */ A(Ze, [["render", Je]]), We = k({
|
|
|
627
640
|
setup() {
|
|
628
641
|
return {};
|
|
629
642
|
}
|
|
630
|
-
}),
|
|
631
|
-
function
|
|
643
|
+
}), Qe = { class: "lbl-col text-body-2" }, xe = { class: "lbl" }, et = ["innerHTML"], tt = { class: "inp-col" }, nt = ["innerHTML"];
|
|
644
|
+
function ot(e, t, n, r, s, m) {
|
|
632
645
|
return u(), _("div", {
|
|
633
646
|
class: I(["fld-row mobile-margin", e.errorMessage ? "fld-err" : ""])
|
|
634
647
|
}, [
|
|
635
|
-
$("div",
|
|
636
|
-
$("div",
|
|
648
|
+
$("div", Qe, [
|
|
649
|
+
$("div", xe, y(e.label), 1),
|
|
637
650
|
e.description ? (u(), _("div", {
|
|
638
651
|
key: 0,
|
|
639
652
|
class: "descr",
|
|
640
653
|
innerHTML: e.description
|
|
641
|
-
}, null, 8,
|
|
654
|
+
}, null, 8, et)) : V("", !0)
|
|
642
655
|
]),
|
|
643
|
-
$("div",
|
|
656
|
+
$("div", tt, [
|
|
644
657
|
E(e.$slots, "default", {
|
|
645
658
|
hideDetails: !e.errorMessage,
|
|
646
659
|
errorMessages: e.errorMessage
|
|
@@ -650,12 +663,12 @@ function nt(e, t, n, r, s, m) {
|
|
|
650
663
|
key: 0,
|
|
651
664
|
class: "descr-col text-body-2",
|
|
652
665
|
innerHTML: e.description
|
|
653
|
-
}, null, 8,
|
|
666
|
+
}, null, 8, nt)) : V("", !0)
|
|
654
667
|
], 2);
|
|
655
668
|
}
|
|
656
|
-
const Bn = /* @__PURE__ */ A(
|
|
669
|
+
const Bn = /* @__PURE__ */ A(Xe, [["render", ot]]), rt = k({
|
|
657
670
|
name: "ColorPicker",
|
|
658
|
-
components: { UserAvatar: B, AccountAvatar:
|
|
671
|
+
components: { UserAvatar: B, AccountAvatar: Y },
|
|
659
672
|
setup() {
|
|
660
673
|
const e = S(null), t = (() => {
|
|
661
674
|
const n = [];
|
|
@@ -666,7 +679,7 @@ const Bn = /* @__PURE__ */ A(We, [["render", nt]]), ot = k({
|
|
|
666
679
|
return { val: e, colors: t };
|
|
667
680
|
}
|
|
668
681
|
});
|
|
669
|
-
function
|
|
682
|
+
function lt(e, t, n, r, s, m) {
|
|
670
683
|
const l = a("v-avatar"), p = a("v-list-item-title"), g = a("v-list-item"), i = a("v-list"), d = a("v-card-text"), b = a("v-card");
|
|
671
684
|
return u(), h(b, { class: "ff-col-pckr" }, {
|
|
672
685
|
default: o(() => [
|
|
@@ -701,7 +714,7 @@ function rt(e, t, n, r, s, m) {
|
|
|
701
714
|
_: 1
|
|
702
715
|
});
|
|
703
716
|
}
|
|
704
|
-
const
|
|
717
|
+
const st = /* @__PURE__ */ A(rt, [["render", lt]]), at = k({
|
|
705
718
|
name: "FieldLabel",
|
|
706
719
|
props: {
|
|
707
720
|
label: {
|
|
@@ -726,7 +739,7 @@ const lt = /* @__PURE__ */ A(ot, [["render", rt]]), st = k({
|
|
|
726
739
|
}
|
|
727
740
|
}
|
|
728
741
|
});
|
|
729
|
-
function
|
|
742
|
+
function it(e, t, n, r, s, m) {
|
|
730
743
|
const l = a("v-col");
|
|
731
744
|
return u(), h(l, {
|
|
732
745
|
cols: e.cols,
|
|
@@ -746,15 +759,15 @@ function at(e, t, n, r, s, m) {
|
|
|
746
759
|
_: 3
|
|
747
760
|
}, 8, ["cols", "sm"]);
|
|
748
761
|
}
|
|
749
|
-
const
|
|
762
|
+
const ut = /* @__PURE__ */ A(at, [["render", it]]), ct = (e, t, n) => (Object.defineProperty(e, t, {
|
|
750
763
|
value: n,
|
|
751
764
|
writable: !1,
|
|
752
765
|
configurable: !1,
|
|
753
766
|
enumerable: !1
|
|
754
|
-
}), n),
|
|
767
|
+
}), n), dt = (e, t, n) => e.reduce((r, s) => {
|
|
755
768
|
const m = s[t];
|
|
756
769
|
return r[m] = s[n], r;
|
|
757
|
-
}, {}),
|
|
770
|
+
}, {}), x = [
|
|
758
771
|
{ title: "lng.sv-se", value: "sv_SE" },
|
|
759
772
|
// $t("lng.sv-se")
|
|
760
773
|
{ title: "lng.sl-si", value: "sl_SI" },
|
|
@@ -834,9 +847,9 @@ const it = /* @__PURE__ */ A(st, [["render", at]]), ut = (e, t, n) => (Object.de
|
|
|
834
847
|
// $t("lngin.it-it")
|
|
835
848
|
{ title: "lngin.de-de", value: "de_DE" }
|
|
836
849
|
// $t("lngin.de-de")
|
|
837
|
-
],
|
|
850
|
+
], G = {
|
|
838
851
|
get LangsEnum() {
|
|
839
|
-
return
|
|
852
|
+
return ct(this, "LangsEnum", dt(x, "value", "title"));
|
|
840
853
|
},
|
|
841
854
|
FrmLang(e) {
|
|
842
855
|
return this.LangsEnum[e] ?? e;
|
|
@@ -858,13 +871,13 @@ const it = /* @__PURE__ */ A(st, [["render", at]]), ut = (e, t, n) => (Object.de
|
|
|
858
871
|
ToShortFormat(e) {
|
|
859
872
|
return e.split(/_|-/)[0] ?? e;
|
|
860
873
|
}
|
|
861
|
-
},
|
|
874
|
+
}, mt = k({
|
|
862
875
|
methods: {
|
|
863
876
|
mdiPencil() {
|
|
864
|
-
return
|
|
877
|
+
return Ve;
|
|
865
878
|
},
|
|
866
879
|
mdiKeyVariant() {
|
|
867
|
-
return
|
|
880
|
+
return Ae;
|
|
868
881
|
}
|
|
869
882
|
},
|
|
870
883
|
components: { UserAvatar: B },
|
|
@@ -880,14 +893,14 @@ const it = /* @__PURE__ */ A(st, [["render", at]]), ut = (e, t, n) => (Object.de
|
|
|
880
893
|
},
|
|
881
894
|
emits: ["edit-profile", "change-password"],
|
|
882
895
|
setup(e) {
|
|
883
|
-
const { t } = q(), n =
|
|
896
|
+
const { t } = q(), n = w(() => e.currentUser?.locale ? t(G.FrmLang(G.ToLongFormat(e.currentUser.locale))) : ""), r = w(() => e.currentUser ? z(e.currentUser) : "");
|
|
884
897
|
return { langauge: n, fullName: r };
|
|
885
898
|
}
|
|
886
|
-
}),
|
|
899
|
+
}), pt = { class: "avatar" }, ft = { class: "details" }, vt = { class: "name" }, _t = {
|
|
887
900
|
key: 0,
|
|
888
901
|
class: "email"
|
|
889
|
-
},
|
|
890
|
-
function
|
|
902
|
+
}, gt = { class: "email" };
|
|
903
|
+
function yt(e, t, n, r, s, m) {
|
|
891
904
|
const l = a("UserAvatar"), p = a("v-col"), g = a("v-icon"), i = a("v-btn"), d = a("v-row");
|
|
892
905
|
return e.currentUser ? (u(), h(d, {
|
|
893
906
|
key: 0,
|
|
@@ -900,17 +913,17 @@ function gt(e, t, n, r, s, m) {
|
|
|
900
913
|
class: "profile"
|
|
901
914
|
}, {
|
|
902
915
|
default: o(() => [
|
|
903
|
-
$("div",
|
|
916
|
+
$("div", pt, [
|
|
904
917
|
c(l, {
|
|
905
918
|
size: 96,
|
|
906
919
|
user: e.currentUser,
|
|
907
920
|
"base-url": e.baseUrl + "/avatars"
|
|
908
921
|
}, null, 8, ["user", "base-url"])
|
|
909
922
|
]),
|
|
910
|
-
$("div",
|
|
911
|
-
$("div",
|
|
912
|
-
e.currentUser.email ? (u(), _("div",
|
|
913
|
-
$("div",
|
|
923
|
+
$("div", ft, [
|
|
924
|
+
$("div", vt, y(e.fullName), 1),
|
|
925
|
+
e.currentUser.email ? (u(), _("div", _t, y(e.currentUser.email), 1)) : V("", !0),
|
|
926
|
+
$("div", gt, y(e.$t("aff.Language")) + ": " + y(e.langauge), 1)
|
|
914
927
|
])
|
|
915
928
|
]),
|
|
916
929
|
_: 1
|
|
@@ -956,32 +969,32 @@ function gt(e, t, n, r, s, m) {
|
|
|
956
969
|
})
|
|
957
970
|
]),
|
|
958
971
|
_: 1
|
|
959
|
-
})) :
|
|
972
|
+
})) : V("", !0);
|
|
960
973
|
}
|
|
961
|
-
const jn = /* @__PURE__ */ A(
|
|
974
|
+
const jn = /* @__PURE__ */ A(mt, [["render", yt]]), Gn = (e) => {
|
|
962
975
|
for (const t in e)
|
|
963
976
|
Object.prototype.hasOwnProperty.call(e, t) && (e[t] = null);
|
|
964
|
-
},
|
|
977
|
+
}, $t = (e, t, n, r, s, m = null) => {
|
|
965
978
|
if (typeof e == "string") {
|
|
966
979
|
r(e);
|
|
967
980
|
return;
|
|
968
981
|
}
|
|
969
982
|
if (e.response && e.response.status) {
|
|
970
983
|
if (e.response.status === 400 && e.response.data) {
|
|
971
|
-
|
|
984
|
+
bt(e, t, n, r, s, m);
|
|
972
985
|
return;
|
|
973
986
|
}
|
|
974
987
|
if (e.response.status === 409 && e.response.data) {
|
|
975
|
-
|
|
988
|
+
kt(e, r, s);
|
|
976
989
|
return;
|
|
977
990
|
}
|
|
978
991
|
if (e.response.status === 417 && e.response.data) {
|
|
979
|
-
|
|
992
|
+
At(r, s);
|
|
980
993
|
return;
|
|
981
994
|
}
|
|
982
995
|
}
|
|
983
996
|
r(e);
|
|
984
|
-
},
|
|
997
|
+
}, ht = () => {
|
|
985
998
|
setTimeout(() => {
|
|
986
999
|
const e = document.querySelector(".v-input--error, .ec-input.local-err");
|
|
987
1000
|
if (e == null)
|
|
@@ -989,7 +1002,7 @@ const jn = /* @__PURE__ */ A(dt, [["render", gt]]), Gn = (e) => {
|
|
|
989
1002
|
const t = e.querySelector("input, textarea, .ec-inp-ctrl");
|
|
990
1003
|
t?.focus();
|
|
991
1004
|
}, 200);
|
|
992
|
-
},
|
|
1005
|
+
}, bt = (e, t, n, r, s, m = null) => {
|
|
993
1006
|
const l = [];
|
|
994
1007
|
let p = !1, g = {};
|
|
995
1008
|
if (Array.isArray(e.response.data))
|
|
@@ -999,7 +1012,7 @@ const jn = /* @__PURE__ */ A(dt, [["render", gt]]), Gn = (e) => {
|
|
|
999
1012
|
for (const i in e.response.data)
|
|
1000
1013
|
if (Object.prototype.hasOwnProperty.call(e.response.data, i)) {
|
|
1001
1014
|
const d = e.response.data[i];
|
|
1002
|
-
if (
|
|
1015
|
+
if (Ct(g, t, i, d[0]))
|
|
1003
1016
|
p = !0;
|
|
1004
1017
|
else {
|
|
1005
1018
|
const v = m && m[i] ? m[i] : i;
|
|
@@ -1009,21 +1022,21 @@ const jn = /* @__PURE__ */ A(dt, [["render", gt]]), Gn = (e) => {
|
|
|
1009
1022
|
l.length > 0 && (l.length === 1 ? r(l[0]) : r({
|
|
1010
1023
|
message: s("aff.Some errors occured:"),
|
|
1011
1024
|
details: "<ul><li>" + l.map((i) => i.error_message).join("</li><li>") + "</li></ul>"
|
|
1012
|
-
})), p && (n != null && (n.value = { ...n.value, ...g }),
|
|
1013
|
-
},
|
|
1025
|
+
})), p && (n != null && (n.value = { ...n.value, ...g }), ht());
|
|
1026
|
+
}, kt = (e, t, n) => {
|
|
1014
1027
|
let r = [];
|
|
1015
1028
|
typeof e.response.data == "string" ? r.push(e.response.data) : e.response.data.errors && (r = e.response.data.errors.map((s) => s.error_message)), t({
|
|
1016
1029
|
title: n("aff.Concurrency error"),
|
|
1017
1030
|
details: r.length === 1 ? r[0] : "<ul><li>" + r.join("</li><li>") + "</li></ul>",
|
|
1018
1031
|
code: 409
|
|
1019
1032
|
});
|
|
1020
|
-
},
|
|
1033
|
+
}, At = (e, t) => {
|
|
1021
1034
|
e({
|
|
1022
1035
|
title: t("aff.Product version mismatch."),
|
|
1023
1036
|
details: t("aff.Please reload the page."),
|
|
1024
1037
|
code: 417
|
|
1025
1038
|
});
|
|
1026
|
-
},
|
|
1039
|
+
}, Ct = (e, t, n, r) => {
|
|
1027
1040
|
const s = n.split(".");
|
|
1028
1041
|
let m = t, l = e;
|
|
1029
1042
|
for (; s.length > 0; ) {
|
|
@@ -1043,14 +1056,14 @@ const jn = /* @__PURE__ */ A(dt, [["render", gt]]), Gn = (e) => {
|
|
|
1043
1056
|
}, Zn = (e, t) => {
|
|
1044
1057
|
for (const n in t)
|
|
1045
1058
|
Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
1046
|
-
},
|
|
1059
|
+
}, Mt = k({
|
|
1047
1060
|
name: "ProfileEditDialog",
|
|
1048
1061
|
methods: {
|
|
1049
1062
|
mdiPalette() {
|
|
1050
|
-
return
|
|
1063
|
+
return Me;
|
|
1051
1064
|
}
|
|
1052
1065
|
},
|
|
1053
|
-
components: { ColorPicker:
|
|
1066
|
+
components: { ColorPicker: st, UserAvatar: B, AccountAvatar: Y, FieldLabel: ut, CustomDialog: Pe },
|
|
1054
1067
|
props: {
|
|
1055
1068
|
showDialog: {
|
|
1056
1069
|
type: Boolean,
|
|
@@ -1075,37 +1088,37 @@ const jn = /* @__PURE__ */ A(dt, [["render", gt]]), Gn = (e) => {
|
|
|
1075
1088
|
},
|
|
1076
1089
|
emits: ["close"],
|
|
1077
1090
|
setup(e, { emit: t }) {
|
|
1078
|
-
const { t: n } = q(), { showError: r } =
|
|
1091
|
+
const { t: n } = q(), { showError: r } = ue(), s = S({ ...e.currentUser }), m = S({}), l = S(G.ToLongFormat(e.currentUser.locale ?? e.fallbackLocale)), p = S(e.currentUser?.avatar_thumb ? "photo" : "color"), g = S(!1), i = w(() => [
|
|
1079
1092
|
{ value: "photo", text: n("aff.Photo") },
|
|
1080
1093
|
{ value: "color", text: n("aff.Color") }
|
|
1081
|
-
]), d =
|
|
1094
|
+
]), d = w(() => x.filter((v) => e.systemLanguages.indexOf(v.value) >= 0).map((v) => ({ title: n(v.title), value: v.value })));
|
|
1082
1095
|
return { formData: s, localErrors: m, languages: d, lang: l, identity: p, identities: i, loading: g, saveClick: () => {
|
|
1083
1096
|
g.value = !0;
|
|
1084
1097
|
const v = { ...s.value };
|
|
1085
|
-
p.value == "color" && (v.avatar_thumb = null), v.locale = l.value, e.updateProfileFx(v).then(() => t("close")).catch((f) =>
|
|
1098
|
+
p.value == "color" && (v.avatar_thumb = null), v.locale = l.value, e.updateProfileFx(v).then(() => t("close")).catch((f) => $t(f, s.value, m, r, n)).finally(() => g.value = !1);
|
|
1086
1099
|
} };
|
|
1087
1100
|
}
|
|
1088
|
-
}),
|
|
1101
|
+
}), Vt = {
|
|
1089
1102
|
key: 0,
|
|
1090
1103
|
class: "ff-simple-form"
|
|
1091
|
-
},
|
|
1104
|
+
}, Lt = { class: "avatar-edit" }, wt = { class: "avatar" }, Ht = { class: "options" }, St = {
|
|
1092
1105
|
key: 0,
|
|
1093
1106
|
class: "sel-ident"
|
|
1094
1107
|
};
|
|
1095
|
-
function
|
|
1108
|
+
function Pt(e, t, n, r, s, m) {
|
|
1096
1109
|
const l = a("v-avatar"), p = a("v-radio"), g = a("v-radio-group"), i = a("v-icon"), d = a("v-btn"), b = a("ColorPicker"), v = a("v-menu"), f = a("v-col"), H = a("v-text-field"), T = a("FieldLabel"), R = a("v-select"), M = a("v-row"), j = a("CustomDialog");
|
|
1097
1110
|
return u(), h(j, {
|
|
1098
1111
|
value: e.showDialog,
|
|
1099
1112
|
title: e.$t("aff.Your profile"),
|
|
1100
1113
|
persistent: "",
|
|
1101
1114
|
class: "prof-dlg",
|
|
1102
|
-
onClose: t[7] || (t[7] = (
|
|
1115
|
+
onClose: t[7] || (t[7] = (L) => e.$emit("close", null))
|
|
1103
1116
|
}, {
|
|
1104
1117
|
footer: o(() => [
|
|
1105
1118
|
c(d, {
|
|
1106
1119
|
variant: "flat",
|
|
1107
1120
|
color: "secondary",
|
|
1108
|
-
onClick: t[6] || (t[6] = (
|
|
1121
|
+
onClick: t[6] || (t[6] = (L) => e.$emit("close", null))
|
|
1109
1122
|
}, {
|
|
1110
1123
|
default: o(() => [
|
|
1111
1124
|
C(y(e.$t("aff.Close")), 1)
|
|
@@ -1125,13 +1138,13 @@ function St(e, t, n, r, s, m) {
|
|
|
1125
1138
|
}, 8, ["loading", "onClick"])
|
|
1126
1139
|
]),
|
|
1127
1140
|
default: o(() => [
|
|
1128
|
-
e.formData ? (u(), _("form",
|
|
1141
|
+
e.formData ? (u(), _("form", Vt, [
|
|
1129
1142
|
c(M, null, {
|
|
1130
1143
|
default: o(() => [
|
|
1131
1144
|
c(f, { cols: "12" }, {
|
|
1132
1145
|
default: o(() => [
|
|
1133
|
-
$("div",
|
|
1134
|
-
$("div",
|
|
1146
|
+
$("div", Lt, [
|
|
1147
|
+
$("div", wt, [
|
|
1135
1148
|
c(l, {
|
|
1136
1149
|
color: e.formData.color ?? "primary",
|
|
1137
1150
|
class: I(`avatar-96-${e.formData.initials.length >= 3 ? "l" : "s"}`),
|
|
@@ -1143,21 +1156,21 @@ function St(e, t, n, r, s, m) {
|
|
|
1143
1156
|
_: 1
|
|
1144
1157
|
}, 8, ["color", "class"])
|
|
1145
1158
|
]),
|
|
1146
|
-
$("div",
|
|
1159
|
+
$("div", Ht, [
|
|
1147
1160
|
$("div", null, [
|
|
1148
1161
|
c(g, {
|
|
1149
1162
|
modelValue: e.identity,
|
|
1150
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1163
|
+
"onUpdate:modelValue": t[0] || (t[0] = (L) => e.identity = L),
|
|
1151
1164
|
"true-icon": e.$vuetify.icons.aliases?.success,
|
|
1152
1165
|
color: "primary",
|
|
1153
1166
|
"hide-details": "",
|
|
1154
1167
|
"error-messages": e.localErrors.other_vehicle_involved?.toString() ?? void 0
|
|
1155
1168
|
}, {
|
|
1156
1169
|
default: o(() => [
|
|
1157
|
-
(u(!0), _(P, null, U(e.identities, (
|
|
1158
|
-
key:
|
|
1159
|
-
label:
|
|
1160
|
-
value:
|
|
1170
|
+
(u(!0), _(P, null, U(e.identities, (L) => (u(), h(p, {
|
|
1171
|
+
key: L.value.toString(),
|
|
1172
|
+
label: L.text,
|
|
1173
|
+
value: L.value,
|
|
1161
1174
|
"base-color": e.localErrors.other_vehicle_involved ? "error" : ""
|
|
1162
1175
|
}, null, 8, ["label", "value", "base-color"]))), 128))
|
|
1163
1176
|
]),
|
|
@@ -1165,15 +1178,15 @@ function St(e, t, n, r, s, m) {
|
|
|
1165
1178
|
}, 8, ["modelValue", "true-icon", "error-messages"])
|
|
1166
1179
|
]),
|
|
1167
1180
|
$("div", null, [
|
|
1168
|
-
e.identity === "color" ? (u(), _("div",
|
|
1181
|
+
e.identity === "color" ? (u(), _("div", St, [
|
|
1169
1182
|
$("div", null, [
|
|
1170
1183
|
c(v, null, {
|
|
1171
|
-
activator: o(({ props:
|
|
1184
|
+
activator: o(({ props: L }) => [
|
|
1172
1185
|
c(d, D({
|
|
1173
1186
|
variant: "text",
|
|
1174
1187
|
color: "primary",
|
|
1175
1188
|
class: "ff-btn"
|
|
1176
|
-
},
|
|
1189
|
+
}, L), {
|
|
1177
1190
|
default: o(() => [
|
|
1178
1191
|
c(i, {
|
|
1179
1192
|
icon: e.mdiPalette()
|
|
@@ -1185,13 +1198,13 @@ function St(e, t, n, r, s, m) {
|
|
|
1185
1198
|
]),
|
|
1186
1199
|
default: o(() => [
|
|
1187
1200
|
c(b, {
|
|
1188
|
-
onChange: t[1] || (t[1] = (
|
|
1201
|
+
onChange: t[1] || (t[1] = (L) => e.formData.color = L)
|
|
1189
1202
|
})
|
|
1190
1203
|
]),
|
|
1191
1204
|
_: 1
|
|
1192
1205
|
})
|
|
1193
1206
|
])
|
|
1194
|
-
])) :
|
|
1207
|
+
])) : V("", !0)
|
|
1195
1208
|
])
|
|
1196
1209
|
])
|
|
1197
1210
|
])
|
|
@@ -1204,12 +1217,12 @@ function St(e, t, n, r, s, m) {
|
|
|
1204
1217
|
sm: 6,
|
|
1205
1218
|
"error-messages": e.localErrors.name?.toString() ?? void 0
|
|
1206
1219
|
}, {
|
|
1207
|
-
default: o((
|
|
1220
|
+
default: o((L) => [
|
|
1208
1221
|
c(H, D({
|
|
1209
1222
|
modelValue: e.formData.name,
|
|
1210
1223
|
"onUpdate:modelValue": t[2] || (t[2] = (O) => e.formData.name = O),
|
|
1211
1224
|
variant: "outlined"
|
|
1212
|
-
},
|
|
1225
|
+
}, L), null, 16, ["modelValue"])
|
|
1213
1226
|
]),
|
|
1214
1227
|
_: 1
|
|
1215
1228
|
}, 8, ["label", "error-messages"]),
|
|
@@ -1219,12 +1232,12 @@ function St(e, t, n, r, s, m) {
|
|
|
1219
1232
|
sm: 6,
|
|
1220
1233
|
"error-messages": e.localErrors.surname?.toString() ?? void 0
|
|
1221
1234
|
}, {
|
|
1222
|
-
default: o((
|
|
1235
|
+
default: o((L) => [
|
|
1223
1236
|
c(H, D({
|
|
1224
1237
|
modelValue: e.formData.surname,
|
|
1225
1238
|
"onUpdate:modelValue": t[3] || (t[3] = (O) => e.formData.surname = O),
|
|
1226
1239
|
variant: "outlined"
|
|
1227
|
-
},
|
|
1240
|
+
}, L), null, 16, ["modelValue"])
|
|
1228
1241
|
]),
|
|
1229
1242
|
_: 1
|
|
1230
1243
|
}, 8, ["label", "error-messages"]),
|
|
@@ -1234,13 +1247,13 @@ function St(e, t, n, r, s, m) {
|
|
|
1234
1247
|
sm: 6,
|
|
1235
1248
|
"error-messages": e.localErrors.email?.toString() ?? void 0
|
|
1236
1249
|
}, {
|
|
1237
|
-
default: o((
|
|
1250
|
+
default: o((L) => [
|
|
1238
1251
|
c(H, D({
|
|
1239
1252
|
modelValue: e.formData.email,
|
|
1240
1253
|
"onUpdate:modelValue": t[4] || (t[4] = (O) => e.formData.email = O),
|
|
1241
1254
|
variant: "outlined",
|
|
1242
1255
|
disabled: ""
|
|
1243
|
-
},
|
|
1256
|
+
}, L), null, 16, ["modelValue"])
|
|
1244
1257
|
]),
|
|
1245
1258
|
_: 1
|
|
1246
1259
|
}, 8, ["label", "error-messages"]),
|
|
@@ -1250,7 +1263,7 @@ function St(e, t, n, r, s, m) {
|
|
|
1250
1263
|
sm: 6,
|
|
1251
1264
|
"error-messages": e.localErrors.locale?.toString() ?? void 0
|
|
1252
1265
|
}, {
|
|
1253
|
-
default: o((
|
|
1266
|
+
default: o((L) => [
|
|
1254
1267
|
c(R, D({
|
|
1255
1268
|
modelValue: e.lang,
|
|
1256
1269
|
"onUpdate:modelValue": t[5] || (t[5] = (O) => e.lang = O),
|
|
@@ -1258,19 +1271,19 @@ function St(e, t, n, r, s, m) {
|
|
|
1258
1271
|
items: e.languages,
|
|
1259
1272
|
"item-text": "title",
|
|
1260
1273
|
"item-value": "value"
|
|
1261
|
-
},
|
|
1274
|
+
}, L, { dense: "" }), null, 16, ["modelValue", "items"])
|
|
1262
1275
|
]),
|
|
1263
1276
|
_: 1
|
|
1264
1277
|
}, 8, ["label", "error-messages"])
|
|
1265
1278
|
]),
|
|
1266
1279
|
_: 1
|
|
1267
1280
|
})
|
|
1268
|
-
])) :
|
|
1281
|
+
])) : V("", !0)
|
|
1269
1282
|
]),
|
|
1270
1283
|
_: 1
|
|
1271
1284
|
}, 8, ["value", "title"]);
|
|
1272
1285
|
}
|
|
1273
|
-
const Yn = /* @__PURE__ */ A(
|
|
1286
|
+
const Yn = /* @__PURE__ */ A(Mt, [["render", Pt]]), Ut = k({
|
|
1274
1287
|
name: "RowActionsButton",
|
|
1275
1288
|
props: {
|
|
1276
1289
|
rowActions: {
|
|
@@ -1283,10 +1296,10 @@ const Yn = /* @__PURE__ */ A(Ct, [["render", St]]), Pt = k({
|
|
|
1283
1296
|
}
|
|
1284
1297
|
},
|
|
1285
1298
|
setup(e) {
|
|
1286
|
-
return { actions:
|
|
1299
|
+
return { actions: w(() => e.rowActions.actions.filter((n) => n.visible === void 0 || n.visible(e.item))) };
|
|
1287
1300
|
}
|
|
1288
1301
|
});
|
|
1289
|
-
function
|
|
1302
|
+
function Dt(e, t, n, r, s, m) {
|
|
1290
1303
|
const l = a("v-btn"), p = a("v-icon"), g = a("v-list-item-title"), i = a("v-list-item"), d = a("v-list"), b = a("v-menu");
|
|
1291
1304
|
return e.actions.length > 0 ? (u(), h(b, { key: 0 }, {
|
|
1292
1305
|
activator: o(({ props: v }) => [
|
|
@@ -1323,16 +1336,16 @@ function Ut(e, t, n, r, s, m) {
|
|
|
1323
1336
|
})
|
|
1324
1337
|
]),
|
|
1325
1338
|
_: 1
|
|
1326
|
-
})) :
|
|
1339
|
+
})) : V("", !0);
|
|
1327
1340
|
}
|
|
1328
|
-
const
|
|
1341
|
+
const K = /* @__PURE__ */ A(Ut, [["render", Dt]]), It = k({
|
|
1329
1342
|
name: "MobileLayoutItem",
|
|
1330
1343
|
methods: {
|
|
1331
1344
|
mdiDragVertical() {
|
|
1332
|
-
return
|
|
1345
|
+
return ke;
|
|
1333
1346
|
}
|
|
1334
1347
|
},
|
|
1335
|
-
components: { RowActionsButton:
|
|
1348
|
+
components: { RowActionsButton: K },
|
|
1336
1349
|
props: {
|
|
1337
1350
|
item: {
|
|
1338
1351
|
type: Object,
|
|
@@ -1372,14 +1385,14 @@ const J = /* @__PURE__ */ A(Pt, [["render", Ut]]), Dt = k({
|
|
|
1372
1385
|
const e = (n, r) => r === null ? null : n.mobileLabel ? `${n.title}: ${r}` : r;
|
|
1373
1386
|
return { formatValueList: (n, r, s) => n.map((m) => m.format ? e(m, m.format(m, r)) : e(m, r[m.value] ?? null)).filter((m) => m !== null).join(s) };
|
|
1374
1387
|
}
|
|
1375
|
-
}),
|
|
1388
|
+
}), Et = { style: { display: "flex", "align-items": "center", gap: "8px" } }, Tt = { key: 1 }, Ot = { key: 2 }, qt = { key: 1 }, Nt = { key: 2 }, Ft = {
|
|
1376
1389
|
key: 0,
|
|
1377
1390
|
class: "mini-table"
|
|
1378
|
-
},
|
|
1391
|
+
}, zt = { key: 0 }, Bt = { key: 1 }, Rt = { style: { "margin-top": "-11px", "margin-bottom": "-11px" } }, jt = {
|
|
1379
1392
|
key: 0,
|
|
1380
1393
|
class: "item-drag-handle"
|
|
1381
1394
|
};
|
|
1382
|
-
function
|
|
1395
|
+
function Gt(e, t, n, r, s, m) {
|
|
1383
1396
|
const l = a("v-col"), p = a("v-row"), g = a("v-icon"), i = a("v-chip"), d = a("RowActionsButton"), b = a("v-card-text"), v = a("v-card");
|
|
1384
1397
|
return u(), h(v, {
|
|
1385
1398
|
variant: "outlined",
|
|
@@ -1388,12 +1401,12 @@ function jt(e, t, n, r, s, m) {
|
|
|
1388
1401
|
onClick: t[1] || (t[1] = (f) => e.$emit("rowClick", e.item))
|
|
1389
1402
|
}, {
|
|
1390
1403
|
title: o(() => [
|
|
1391
|
-
$("div",
|
|
1404
|
+
$("div", Et, [
|
|
1392
1405
|
(u(!0), _(P, null, U(e.titleHeaders, (f, H) => (u(), _("span", { key: H }, [
|
|
1393
|
-
f.component ? (u(), h(
|
|
1406
|
+
f.component ? (u(), h(F(f.component), D({
|
|
1394
1407
|
key: 0,
|
|
1395
1408
|
class: "mr-1"
|
|
1396
|
-
}, { ref_for: !0 }, f.getProps ? f.getProps(f, e.item) : {}), null, 16)) : f.format ? (u(), _("span",
|
|
1409
|
+
}, { ref_for: !0 }, f.getProps ? f.getProps(f, e.item) : {}), null, 16)) : f.format ? (u(), _("span", Tt, y(f.format(f, e.item)), 1)) : (u(), _("span", Ot, y(e.item[f.value]), 1))
|
|
1397
1410
|
]))), 128))
|
|
1398
1411
|
])
|
|
1399
1412
|
]),
|
|
@@ -1420,10 +1433,10 @@ function jt(e, t, n, r, s, m) {
|
|
|
1420
1433
|
sm: "10"
|
|
1421
1434
|
}, {
|
|
1422
1435
|
default: o(() => [
|
|
1423
|
-
f.component ? (u(), h(
|
|
1436
|
+
f.component ? (u(), h(F(f.component), D({
|
|
1424
1437
|
key: 0,
|
|
1425
1438
|
ref_for: !0
|
|
1426
|
-
}, f.getProps ? f.getProps(f, e.item) : {}), null, 16)) : f.format ? (u(), _("span",
|
|
1439
|
+
}, f.getProps ? f.getProps(f, e.item) : {}), null, 16)) : f.format ? (u(), _("span", qt, y(f.format(f, e.item)), 1)) : (u(), _("span", Nt, y(e.item[f.value]), 1))
|
|
1427
1440
|
]),
|
|
1428
1441
|
_: 2
|
|
1429
1442
|
}, 1024)
|
|
@@ -1434,17 +1447,17 @@ function jt(e, t, n, r, s, m) {
|
|
|
1434
1447
|
$("tr", null, [
|
|
1435
1448
|
(u(!0), _(P, null, U(e.miniTblHeaders, (f) => (u(), _("th", {
|
|
1436
1449
|
key: `h${f.value}`,
|
|
1437
|
-
style:
|
|
1450
|
+
style: oe({ width: `${100 / e.miniTblHeaders.length}%` })
|
|
1438
1451
|
}, y(f.title), 5))), 128))
|
|
1439
1452
|
]),
|
|
1440
1453
|
$("tr", null, [
|
|
1441
1454
|
(u(!0), _(P, null, U(e.miniTblHeaders, (f) => (u(), _("td", {
|
|
1442
1455
|
key: `h${f.value}`
|
|
1443
1456
|
}, [
|
|
1444
|
-
f.format ? (u(), _("span",
|
|
1457
|
+
f.format ? (u(), _("span", zt, y(f.format(f, e.item)), 1)) : (u(), _("span", Bt, y(e.item[f.value]), 1))
|
|
1445
1458
|
]))), 128))
|
|
1446
1459
|
])
|
|
1447
|
-
])) :
|
|
1460
|
+
])) : V("", !0),
|
|
1448
1461
|
c(p, {
|
|
1449
1462
|
"no-gutters": "",
|
|
1450
1463
|
class: "mt-3"
|
|
@@ -1457,7 +1470,7 @@ function jt(e, t, n, r, s, m) {
|
|
|
1457
1470
|
(u(!0), _(P, null, U(e.tagHeaders, (f) => (u(), _("span", {
|
|
1458
1471
|
key: f.value
|
|
1459
1472
|
}, [
|
|
1460
|
-
f.component ? (u(), h(
|
|
1473
|
+
f.component ? (u(), h(F(f.component), D({
|
|
1461
1474
|
key: 0,
|
|
1462
1475
|
class: "mr-1"
|
|
1463
1476
|
}, { ref_for: !0 }, f.getProps ? f.getProps(f, e.item) : {}), null, 16)) : f.format ? (u(), h(i, {
|
|
@@ -1473,7 +1486,7 @@ function jt(e, t, n, r, s, m) {
|
|
|
1473
1486
|
key: 0,
|
|
1474
1487
|
icon: f.mobileIcon,
|
|
1475
1488
|
class: "mr-1"
|
|
1476
|
-
}, null, 8, ["icon"])) :
|
|
1489
|
+
}, null, 8, ["icon"])) : V("", !0),
|
|
1477
1490
|
C(y(f.format(f, e.item)), 1)
|
|
1478
1491
|
]),
|
|
1479
1492
|
_: 2
|
|
@@ -1489,7 +1502,7 @@ function jt(e, t, n, r, s, m) {
|
|
|
1489
1502
|
f.mobileIcon ? (u(), h(g, {
|
|
1490
1503
|
key: 0,
|
|
1491
1504
|
icon: f.mobileIcon
|
|
1492
|
-
}, null, 8, ["icon"])) :
|
|
1505
|
+
}, null, 8, ["icon"])) : V("", !0),
|
|
1493
1506
|
C(y(e.item[f.value]), 1)
|
|
1494
1507
|
]),
|
|
1495
1508
|
_: 2
|
|
@@ -1504,7 +1517,7 @@ function jt(e, t, n, r, s, m) {
|
|
|
1504
1517
|
class: "text-right"
|
|
1505
1518
|
}, {
|
|
1506
1519
|
default: o(() => [
|
|
1507
|
-
$("div",
|
|
1520
|
+
$("div", Rt, [
|
|
1508
1521
|
c(d, {
|
|
1509
1522
|
item: e.item,
|
|
1510
1523
|
"row-actions": e.rowActions,
|
|
@@ -1513,25 +1526,25 @@ function jt(e, t, n, r, s, m) {
|
|
|
1513
1526
|
])
|
|
1514
1527
|
]),
|
|
1515
1528
|
_: 1
|
|
1516
|
-
})) :
|
|
1529
|
+
})) : V("", !0)
|
|
1517
1530
|
]),
|
|
1518
1531
|
_: 1
|
|
1519
1532
|
})
|
|
1520
1533
|
]),
|
|
1521
1534
|
_: 1
|
|
1522
1535
|
}),
|
|
1523
|
-
e.draggable ? (u(), _("div",
|
|
1536
|
+
e.draggable ? (u(), _("div", jt, [
|
|
1524
1537
|
c(g, {
|
|
1525
1538
|
icon: e.mdiDragVertical()
|
|
1526
1539
|
}, null, 8, ["icon"])
|
|
1527
|
-
])) :
|
|
1540
|
+
])) : V("", !0)
|
|
1528
1541
|
]),
|
|
1529
1542
|
_: 1
|
|
1530
1543
|
}, 8, ["title", "subtitle"]);
|
|
1531
1544
|
}
|
|
1532
|
-
const
|
|
1545
|
+
const Zt = /* @__PURE__ */ A(It, [["render", Gt]]), Yt = k({
|
|
1533
1546
|
name: "MobileLayout",
|
|
1534
|
-
components: { MobileLayoutItem:
|
|
1547
|
+
components: { MobileLayoutItem: Zt, RowActionsButton: K },
|
|
1535
1548
|
props: {
|
|
1536
1549
|
items: {
|
|
1537
1550
|
type: Array,
|
|
@@ -1559,22 +1572,22 @@ const Gt = /* @__PURE__ */ A(Dt, [["render", jt]]), Zt = k({
|
|
|
1559
1572
|
}
|
|
1560
1573
|
},
|
|
1561
1574
|
setup(e, t) {
|
|
1562
|
-
const n = S(e.options.page), r = e.options.pageSize, s =
|
|
1575
|
+
const n = S(e.options.page), r = e.options.pageSize, s = w(() => e.headers.filter((d) => d.mobilePlacement === "title")), m = w(() => e.headers.filter((d) => d.mobilePlacement === "subtitle")), l = w(() => e.headers.filter((d) => d.mobilePlacement === "tag")), p = w(() => e.headers.filter((d) => d.mobilePlacement === "mini_table")), g = w(() => e.headers.filter((d) => d.mobilePlacement !== "title" && d.mobilePlacement !== "subtitle" && d.mobilePlacement !== "tag" && d.mobilePlacement !== "mini_table"));
|
|
1563
1576
|
return { titleHeaders: s, subTitleHeaders: m, tagHeaders: l, miniTblHeaders: p, otherHeaders: g, pageVal: n, pageSize: r, changePage: (d) => {
|
|
1564
1577
|
t.emit("options-update", { ...e.options, page: d });
|
|
1565
1578
|
} };
|
|
1566
1579
|
}
|
|
1567
|
-
}),
|
|
1580
|
+
}), Kt = { class: "mobile-margin2 data-table-layout" }, Jt = {
|
|
1568
1581
|
key: 1,
|
|
1569
1582
|
class: "mt-3"
|
|
1570
1583
|
};
|
|
1571
|
-
function
|
|
1584
|
+
function Wt(e, t, n, r, s, m) {
|
|
1572
1585
|
const l = a("v-progress-linear"), p = a("MobileLayoutItem"), g = a("v-pagination");
|
|
1573
|
-
return u(), _("div",
|
|
1586
|
+
return u(), _("div", Kt, [
|
|
1574
1587
|
e.loading ? (u(), h(l, {
|
|
1575
1588
|
key: 0,
|
|
1576
1589
|
indeterminate: ""
|
|
1577
|
-
})) :
|
|
1590
|
+
})) : V("", !0),
|
|
1578
1591
|
(u(!0), _(P, null, U(e.items, (i) => (u(), h(p, {
|
|
1579
1592
|
key: i.id,
|
|
1580
1593
|
item: i,
|
|
@@ -1587,7 +1600,7 @@ function Jt(e, t, n, r, s, m) {
|
|
|
1587
1600
|
onRowClick: t[0] || (t[0] = (d) => e.$emit("row-click", d)),
|
|
1588
1601
|
onRowAction: t[1] || (t[1] = (d) => e.$emit("row-action", d))
|
|
1589
1602
|
}, null, 8, ["item", "title-headers", "mini-tbl-headers", "sub-title-headers", "tag-headers", "other-headers", "row-actions"]))), 128)),
|
|
1590
|
-
e.totalItems > e.pageSize ? (u(), _("div",
|
|
1603
|
+
e.totalItems > e.pageSize ? (u(), _("div", Jt, [
|
|
1591
1604
|
c(g, {
|
|
1592
1605
|
modelValue: e.pageVal,
|
|
1593
1606
|
"onUpdate:modelValue": [
|
|
@@ -1598,12 +1611,12 @@ function Jt(e, t, n, r, s, m) {
|
|
|
1598
1611
|
rounded: "circle",
|
|
1599
1612
|
density: "comfortable"
|
|
1600
1613
|
}, null, 8, ["modelValue", "length", "onUpdate:modelValue"])
|
|
1601
|
-
])) :
|
|
1614
|
+
])) : V("", !0)
|
|
1602
1615
|
]);
|
|
1603
1616
|
}
|
|
1604
|
-
const Kn = /* @__PURE__ */ A(
|
|
1617
|
+
const Kn = /* @__PURE__ */ A(Yt, [["render", Wt]]), Xt = k({
|
|
1605
1618
|
name: "DesktopLayout",
|
|
1606
|
-
components: { RowActionsButton:
|
|
1619
|
+
components: { RowActionsButton: K },
|
|
1607
1620
|
props: {
|
|
1608
1621
|
items: {
|
|
1609
1622
|
type: Array,
|
|
@@ -1639,25 +1652,25 @@ const Kn = /* @__PURE__ */ A(Zt, [["render", Jt]]), Wt = k({
|
|
|
1639
1652
|
sortField: d?.key ?? null,
|
|
1640
1653
|
sortDir: d?.order ?? "asc"
|
|
1641
1654
|
});
|
|
1642
|
-
}, p =
|
|
1655
|
+
}, p = w(() => [
|
|
1643
1656
|
{ value: 5, title: "5" },
|
|
1644
1657
|
{ value: 10, title: "10" },
|
|
1645
1658
|
{ value: 25, title: "25" },
|
|
1646
1659
|
{ value: 50, title: "50" },
|
|
1647
1660
|
{ value: -1, title: n("aff.All") }
|
|
1648
|
-
]), g =
|
|
1661
|
+
]), g = w(() => {
|
|
1649
1662
|
const i = n("aff.{0}-{1} of {2}", ["{0}", "{1}", "{2}"]), d = (e.options.page - 1) * e.options.pageSize + 1, b = Math.min(e.options.page * e.options.pageSize, e.totalItems);
|
|
1650
1663
|
return i.replace("{0}", d.toString()).replace("{1}", b.toString()).replace("{2}", e.totalItems.toString());
|
|
1651
1664
|
});
|
|
1652
1665
|
return { page: r, pageSize: s, sortBy: m, pageOptions: p, optionsUpdate: l, getPageText: g };
|
|
1653
1666
|
}
|
|
1654
|
-
}),
|
|
1667
|
+
}), Qt = { class: "data-table-layout" }, xt = ["onClick"], en = { key: 1 }, tn = { key: 2 }, nn = {
|
|
1655
1668
|
key: 0,
|
|
1656
1669
|
class: "text-right"
|
|
1657
1670
|
};
|
|
1658
|
-
function
|
|
1671
|
+
function on(e, t, n, r, s, m) {
|
|
1659
1672
|
const l = a("RowActionsButton"), p = a("v-data-table-server");
|
|
1660
|
-
return u(), _("div",
|
|
1673
|
+
return u(), _("div", Qt, [
|
|
1661
1674
|
c(p, {
|
|
1662
1675
|
items: e.items,
|
|
1663
1676
|
"items-length": e.totalItems,
|
|
@@ -1682,25 +1695,25 @@ function nn(e, t, n, r, s, m) {
|
|
|
1682
1695
|
key: i.value,
|
|
1683
1696
|
class: I(["v-data-table__td", `v-data-table-column--align-${i.align ?? "start"}`, i.mainField ? "ff-col-main" : ""])
|
|
1684
1697
|
}, [
|
|
1685
|
-
i.component ? (u(), h(
|
|
1698
|
+
i.component ? (u(), h(F(i.component), D({
|
|
1686
1699
|
key: 0,
|
|
1687
1700
|
ref_for: !0
|
|
1688
|
-
}, i.getProps ? i.getProps(i, g) : {}), null, 16)) : i.format ? (u(), _("span",
|
|
1701
|
+
}, i.getProps ? i.getProps(i, g) : {}), null, 16)) : i.format ? (u(), _("span", en, y(i.format(i, g)), 1)) : (u(), _("span", tn, y(g[i.value]), 1))
|
|
1689
1702
|
], 2))), 128)),
|
|
1690
|
-
e.rowActions ? (u(), _("td",
|
|
1703
|
+
e.rowActions ? (u(), _("td", nn, [
|
|
1691
1704
|
c(l, {
|
|
1692
1705
|
item: g,
|
|
1693
1706
|
"row-actions": e.rowActions,
|
|
1694
1707
|
onRowAction: t[0] || (t[0] = (i) => e.$emit("row-action", i))
|
|
1695
1708
|
}, null, 8, ["item", "row-actions"])
|
|
1696
|
-
])) :
|
|
1697
|
-
], 8,
|
|
1709
|
+
])) : V("", !0)
|
|
1710
|
+
], 8, xt)
|
|
1698
1711
|
]),
|
|
1699
1712
|
_: 1
|
|
1700
1713
|
}, 8, ["items", "items-length", "headers", "loading", "page", "items-per-page", "sort-by", "hide-default-footer", "items-per-page-options", "onUpdate:options"])
|
|
1701
1714
|
]);
|
|
1702
1715
|
}
|
|
1703
|
-
const Jn = /* @__PURE__ */ A(
|
|
1716
|
+
const Jn = /* @__PURE__ */ A(Xt, [["render", on]]), rn = k({
|
|
1704
1717
|
name: "ColumnSelector",
|
|
1705
1718
|
props: {
|
|
1706
1719
|
columns: {
|
|
@@ -1715,10 +1728,10 @@ const Jn = /* @__PURE__ */ A(Wt, [["render", nn]]), on = k({
|
|
|
1715
1728
|
emits: ["changeCurrentColumns"],
|
|
1716
1729
|
methods: {
|
|
1717
1730
|
mdiCheck() {
|
|
1718
|
-
return
|
|
1731
|
+
return Z;
|
|
1719
1732
|
},
|
|
1720
1733
|
mdiViewColumn() {
|
|
1721
|
-
return
|
|
1734
|
+
return Le;
|
|
1722
1735
|
}
|
|
1723
1736
|
},
|
|
1724
1737
|
setup(e, { emit: t }) {
|
|
@@ -1728,7 +1741,7 @@ const Jn = /* @__PURE__ */ A(Wt, [["render", nn]]), on = k({
|
|
|
1728
1741
|
} };
|
|
1729
1742
|
}
|
|
1730
1743
|
});
|
|
1731
|
-
function
|
|
1744
|
+
function ln(e, t, n, r, s, m) {
|
|
1732
1745
|
const l = a("v-btn"), p = a("v-list-item-title"), g = a("v-icon"), i = a("v-list-item"), d = a("v-list"), b = a("v-menu");
|
|
1733
1746
|
return u(), h(b, null, {
|
|
1734
1747
|
activator: o(({ props: v }) => [
|
|
@@ -1767,7 +1780,7 @@ function rn(e, t, n, r, s, m) {
|
|
|
1767
1780
|
_: 1
|
|
1768
1781
|
});
|
|
1769
1782
|
}
|
|
1770
|
-
const Wn = /* @__PURE__ */ A(
|
|
1783
|
+
const Wn = /* @__PURE__ */ A(rn, [["render", ln]]), sn = k({
|
|
1771
1784
|
name: "EmptyFilter",
|
|
1772
1785
|
props: {
|
|
1773
1786
|
modelValue: {
|
|
@@ -1783,11 +1796,11 @@ const Wn = /* @__PURE__ */ A(on, [["render", rn]]), ln = k({
|
|
|
1783
1796
|
required: !0
|
|
1784
1797
|
}
|
|
1785
1798
|
}
|
|
1786
|
-
}),
|
|
1787
|
-
function
|
|
1799
|
+
}), an = { class: "f-lbl" };
|
|
1800
|
+
function un(e, t, n, r, s, m) {
|
|
1788
1801
|
const l = a("v-btn");
|
|
1789
1802
|
return u(), _("div", null, [
|
|
1790
|
-
$("div",
|
|
1803
|
+
$("div", an, y(e.$t(e.filter.title)), 1),
|
|
1791
1804
|
c(l, {
|
|
1792
1805
|
variant: "flat",
|
|
1793
1806
|
color: "grey-lighten-2"
|
|
@@ -1799,7 +1812,7 @@ function an(e, t, n, r, s, m) {
|
|
|
1799
1812
|
})
|
|
1800
1813
|
]);
|
|
1801
1814
|
}
|
|
1802
|
-
const Xn = /* @__PURE__ */ A(
|
|
1815
|
+
const Xn = /* @__PURE__ */ A(sn, [["render", un]]), cn = k({
|
|
1803
1816
|
name: "SelectFilter",
|
|
1804
1817
|
props: {
|
|
1805
1818
|
modelValue: {
|
|
@@ -1818,14 +1831,14 @@ const Xn = /* @__PURE__ */ A(ln, [["render", an]]), un = k({
|
|
|
1818
1831
|
emits: ["change"],
|
|
1819
1832
|
methods: {
|
|
1820
1833
|
mdiCheck() {
|
|
1821
|
-
return
|
|
1834
|
+
return Z;
|
|
1822
1835
|
},
|
|
1823
1836
|
mdiMenuDown() {
|
|
1824
|
-
return
|
|
1837
|
+
return Q;
|
|
1825
1838
|
}
|
|
1826
1839
|
},
|
|
1827
1840
|
setup(e, { emit: t }) {
|
|
1828
|
-
const { t: n } = q(), r = Math.ceil(Math.random() * 1e5), s = S(!1), m = S(e.modelValue === null ? [] : (Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue]).map((i) => typeof i == "string" ? parseInt(i) : i)), l =
|
|
1841
|
+
const { t: n } = q(), r = Math.ceil(Math.random() * 1e5), s = S(!1), m = S(e.modelValue === null ? [] : (Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue]).map((i) => typeof i == "string" ? parseInt(i) : i)), l = w(() => {
|
|
1829
1842
|
if (!e.modelValue)
|
|
1830
1843
|
return n("aff.All");
|
|
1831
1844
|
const i = (Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue]).map((d) => typeof d == "string" ? parseInt(d) : d);
|
|
@@ -1836,11 +1849,11 @@ const Xn = /* @__PURE__ */ A(ln, [["render", an]]), un = k({
|
|
|
1836
1849
|
e.filter.multiple ? m.value.indexOf(i) >= 0 ? m.value.splice(m.value.indexOf(i), 1) : m.value.push(i) : m.value.length === 1 && m.value[0] === i ? m.value = [] : m.value = [i], t("change", m);
|
|
1837
1850
|
}, disp: l };
|
|
1838
1851
|
}
|
|
1839
|
-
}),
|
|
1840
|
-
function
|
|
1852
|
+
}), dn = { class: "f-lbl" };
|
|
1853
|
+
function mn(e, t, n, r, s, m) {
|
|
1841
1854
|
const l = a("v-icon"), p = a("v-btn"), g = a("v-list-item-title"), i = a("v-list-item"), d = a("v-list"), b = a("v-card-text"), v = a("v-card"), f = a("v-menu");
|
|
1842
1855
|
return u(), _("div", null, [
|
|
1843
|
-
$("div",
|
|
1856
|
+
$("div", dn, y(e.$t(e.filter.title)), 1),
|
|
1844
1857
|
c(p, {
|
|
1845
1858
|
id: `menu-activator${e.ctrlId}`,
|
|
1846
1859
|
variant: "flat",
|
|
@@ -1906,7 +1919,7 @@ function dn(e, t, n, r, s, m) {
|
|
|
1906
1919
|
}, 8, ["modelValue", "activator"])
|
|
1907
1920
|
]);
|
|
1908
1921
|
}
|
|
1909
|
-
const Qn = /* @__PURE__ */ A(
|
|
1922
|
+
const Qn = /* @__PURE__ */ A(cn, [["render", mn]]), pn = k({
|
|
1910
1923
|
name: "DataTableFilters",
|
|
1911
1924
|
props: {
|
|
1912
1925
|
filters: {
|
|
@@ -1925,13 +1938,13 @@ const Qn = /* @__PURE__ */ A(un, [["render", dn]]), mn = k({
|
|
|
1925
1938
|
setup(e) {
|
|
1926
1939
|
return { filters: S(e.filters.map((n) => ({ ...n, component: e.getFilterComponent(n), value: n.default }))) };
|
|
1927
1940
|
}
|
|
1928
|
-
}),
|
|
1929
|
-
function
|
|
1930
|
-
return u(), _("div",
|
|
1941
|
+
}), fn = { class: "dt-filters" };
|
|
1942
|
+
function vn(e, t, n, r, s, m) {
|
|
1943
|
+
return u(), _("div", fn, [
|
|
1931
1944
|
(u(!0), _(P, null, U(e.filters, (l) => (u(), _("div", {
|
|
1932
1945
|
key: l.name
|
|
1933
1946
|
}, [
|
|
1934
|
-
(u(), h(
|
|
1947
|
+
(u(), h(F(l.component), {
|
|
1935
1948
|
modelValue: e.filterValues[l.name],
|
|
1936
1949
|
"onUpdate:modelValue": (p) => e.filterValues[l.name] = p,
|
|
1937
1950
|
filter: l,
|
|
@@ -1940,7 +1953,7 @@ function fn(e, t, n, r, s, m) {
|
|
|
1940
1953
|
]))), 128))
|
|
1941
1954
|
]);
|
|
1942
1955
|
}
|
|
1943
|
-
const xn = /* @__PURE__ */ A(
|
|
1956
|
+
const xn = /* @__PURE__ */ A(pn, [["render", vn]]), N = {
|
|
1944
1957
|
PENDING: "pending",
|
|
1945
1958
|
ACTIVE: "active",
|
|
1946
1959
|
INACTIVE: "inactive",
|
|
@@ -1958,7 +1971,7 @@ const xn = /* @__PURE__ */ A(mn, [["render", fn]]), F = {
|
|
|
1958
1971
|
return e;
|
|
1959
1972
|
}
|
|
1960
1973
|
}
|
|
1961
|
-
},
|
|
1974
|
+
}, _n = k({
|
|
1962
1975
|
name: "UserStatusChip",
|
|
1963
1976
|
props: {
|
|
1964
1977
|
item: {
|
|
@@ -1968,16 +1981,16 @@ const xn = /* @__PURE__ */ A(mn, [["render", fn]]), F = {
|
|
|
1968
1981
|
},
|
|
1969
1982
|
setup(e) {
|
|
1970
1983
|
const { t } = q();
|
|
1971
|
-
return { chipProps:
|
|
1972
|
-
const r =
|
|
1984
|
+
return { chipProps: w(() => {
|
|
1985
|
+
const r = N.format(e.item.status, t);
|
|
1973
1986
|
switch (e.item.status) {
|
|
1974
|
-
case
|
|
1987
|
+
case N.ACTIVE:
|
|
1975
1988
|
return { text: r, color: "primary" };
|
|
1976
|
-
case
|
|
1989
|
+
case N.PENDING:
|
|
1977
1990
|
return { text: r, color: "deep-orange" };
|
|
1978
|
-
case
|
|
1991
|
+
case N.INACTIVE:
|
|
1979
1992
|
return { text: r, color: "grey-darken-1" };
|
|
1980
|
-
case
|
|
1993
|
+
case N.PENDING_INACTIVE:
|
|
1981
1994
|
return { text: r, color: "grey-darken-1" };
|
|
1982
1995
|
default:
|
|
1983
1996
|
return { text: r, color: "grey-darken-1" };
|
|
@@ -1985,7 +1998,7 @@ const xn = /* @__PURE__ */ A(mn, [["render", fn]]), F = {
|
|
|
1985
1998
|
}) };
|
|
1986
1999
|
}
|
|
1987
2000
|
});
|
|
1988
|
-
function
|
|
2001
|
+
function gn(e, t, n, r, s, m) {
|
|
1989
2002
|
const l = a("v-chip");
|
|
1990
2003
|
return u(), h(l, {
|
|
1991
2004
|
label: "",
|
|
@@ -1997,7 +2010,7 @@ function _n(e, t, n, r, s, m) {
|
|
|
1997
2010
|
_: 1
|
|
1998
2011
|
}, 8, ["color"]);
|
|
1999
2012
|
}
|
|
2000
|
-
const eo = /* @__PURE__ */ A(
|
|
2013
|
+
const eo = /* @__PURE__ */ A(_n, [["render", gn]]), yn = k({
|
|
2001
2014
|
name: "ConfirmPopup",
|
|
2002
2015
|
props: {
|
|
2003
2016
|
show: {
|
|
@@ -2019,7 +2032,7 @@ const eo = /* @__PURE__ */ A(vn, [["render", _n]]), gn = k({
|
|
|
2019
2032
|
},
|
|
2020
2033
|
emits: ["close", "ok"]
|
|
2021
2034
|
});
|
|
2022
|
-
function
|
|
2035
|
+
function $n(e, t, n, r, s, m) {
|
|
2023
2036
|
const l = a("v-card-text"), p = a("v-spacer"), g = a("v-btn"), i = a("v-card-actions"), d = a("v-card"), b = a("v-dialog");
|
|
2024
2037
|
return u(), h(b, {
|
|
2025
2038
|
modelValue: e.show,
|
|
@@ -2077,7 +2090,7 @@ function yn(e, t, n, r, s, m) {
|
|
|
2077
2090
|
_: 3
|
|
2078
2091
|
}, 8, ["modelValue"]);
|
|
2079
2092
|
}
|
|
2080
|
-
const to = /* @__PURE__ */ A(
|
|
2093
|
+
const to = /* @__PURE__ */ A(yn, [["render", $n]]), hn = k({
|
|
2081
2094
|
name: "SearchFilter",
|
|
2082
2095
|
props: {
|
|
2083
2096
|
modelValue: {
|
|
@@ -2097,15 +2110,15 @@ const to = /* @__PURE__ */ A(gn, [["render", yn]]), $n = k({
|
|
|
2097
2110
|
clearTimeout(r), r = window.setTimeout(() => m(s), l);
|
|
2098
2111
|
};
|
|
2099
2112
|
};
|
|
2100
|
-
return
|
|
2113
|
+
return re(() => e.modelValue, (r) => {
|
|
2101
2114
|
r !== t.value && (t.value = r);
|
|
2102
2115
|
}), { val: t, debounce: n() };
|
|
2103
2116
|
}
|
|
2104
|
-
}),
|
|
2105
|
-
function
|
|
2117
|
+
}), bn = { class: "f-lbl" };
|
|
2118
|
+
function kn(e, t, n, r, s, m) {
|
|
2106
2119
|
const l = a("v-text-field");
|
|
2107
2120
|
return u(), _("div", null, [
|
|
2108
|
-
$("div",
|
|
2121
|
+
$("div", bn, y(e.$t(e.filter.title)), 1),
|
|
2109
2122
|
c(l, {
|
|
2110
2123
|
modelValue: e.val,
|
|
2111
2124
|
"onUpdate:modelValue": [
|
|
@@ -2118,7 +2131,7 @@ function bn(e, t, n, r, s, m) {
|
|
|
2118
2131
|
}, null, 8, ["modelValue"])
|
|
2119
2132
|
]);
|
|
2120
2133
|
}
|
|
2121
|
-
const no = /* @__PURE__ */ A(
|
|
2134
|
+
const no = /* @__PURE__ */ A(hn, [["render", kn]]), An = {
|
|
2122
2135
|
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}" },
|
|
2123
2136
|
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}" },
|
|
2124
2137
|
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}" },
|
|
@@ -2126,12 +2139,7 @@ const no = /* @__PURE__ */ A($n, [["render", bn]]), kn = {
|
|
|
2126
2139
|
}, oo = {
|
|
2127
2140
|
EUR: "€",
|
|
2128
2141
|
USD: "$"
|
|
2129
|
-
}
|
|
2130
|
-
function An() {
|
|
2131
|
-
const e = re("i18nLocale", V(() => "en_GB"));
|
|
2132
|
-
return V(() => le(e));
|
|
2133
|
-
}
|
|
2134
|
-
const W = An(), Cn = (e, t, n, r, s) => (typeof e == "string" && (e = parseFloat(e)), e.toLocaleString("en-GB", { minimumFractionDigits: t, maximumFractionDigits: n }).replace(/\.|,/gi, (m) => m === "." ? r : s)), ro = (e, t) => e == null ? "" : e.replace(new RegExp(t, "g"), "").replace(new RegExp(" ", "g"), "").replace(",", "."), Mn = /(dddd|dd|d|hh|h|HH|H|mm|m|MMMM|MMM|MM|M|ss|s|tt|yyyy|yy|zzz)/g, lo = (e, t) => {
|
|
2142
|
+
}, J = ie(), Cn = (e, t, n, r, s) => (typeof e == "string" && (e = parseFloat(e)), e.toLocaleString("en-GB", { minimumFractionDigits: t, maximumFractionDigits: n }).replace(/\.|,/gi, (m) => m === "." ? r : s)), ro = (e, t) => e == null ? "" : e.replace(new RegExp(t, "g"), "").replace(new RegExp(" ", "g"), "").replace(",", "."), Mn = /(dddd|dd|d|hh|h|HH|H|mm|m|MMMM|MMM|MM|M|ss|s|tt|yyyy|yy|zzz)/g, lo = (e, t) => {
|
|
2135
2143
|
if (!e) return "";
|
|
2136
2144
|
const n = typeof e == "string" ? new Date(e) : e;
|
|
2137
2145
|
return t.replace(Mn, (r) => {
|
|
@@ -2188,8 +2196,8 @@ const W = An(), Cn = (e, t, n, r, s) => (typeof e == "string" && (e = parseFloat
|
|
|
2188
2196
|
});
|
|
2189
2197
|
}, Vn = (e, t = void 0, n = void 0) => {
|
|
2190
2198
|
if (t === void 0 && (t = 0), n === void 0 && (n = 4), e == null) return "";
|
|
2191
|
-
typeof e == "string" && (e = parseFloat(e)), console.log("AAAAAAA",
|
|
2192
|
-
const { decimal_symbol: r, thousands_symbol: s } =
|
|
2199
|
+
typeof e == "string" && (e = parseFloat(e)), console.log("AAAAAAA", J.value);
|
|
2200
|
+
const { decimal_symbol: r, thousands_symbol: s } = An[J.value] ?? { decimal_symbol: ".", thousands_symbol: "," };
|
|
2193
2201
|
return Cn(e, t, n, r, s);
|
|
2194
2202
|
}, so = (e) => e.getFullYear() + "-" + ("0" + (e.getMonth() + 1)).slice(-2) + "-" + ("0" + e.getDate()).slice(-2), Ln = k({
|
|
2195
2203
|
name: "DataTableTotals",
|
|
@@ -2228,55 +2236,55 @@ const ao = /* @__PURE__ */ A(Ln, [["render", Sn]]), io = (e) => e ? e.replace(/(
|
|
|
2228
2236
|
return t;
|
|
2229
2237
|
};
|
|
2230
2238
|
export {
|
|
2231
|
-
|
|
2232
|
-
|
|
2239
|
+
Y as AccountAvatar,
|
|
2240
|
+
st as ColorPicker,
|
|
2233
2241
|
Wn as ColumnSelector,
|
|
2234
2242
|
to as ConfirmPopup,
|
|
2235
|
-
|
|
2243
|
+
An as CultureInfos,
|
|
2236
2244
|
oo as CurrencySymbols,
|
|
2237
|
-
|
|
2245
|
+
Pe as CustomDialog,
|
|
2238
2246
|
xn as DataTableFilters,
|
|
2239
2247
|
ao as DataTableTotals,
|
|
2240
2248
|
Jn as DesktopLayout,
|
|
2241
2249
|
Xn as EmptyFilter,
|
|
2242
2250
|
zn as ErrorDialog,
|
|
2243
|
-
|
|
2251
|
+
ut as FieldLabel,
|
|
2244
2252
|
Bn as FieldRow,
|
|
2245
2253
|
Rn as InLanguages,
|
|
2246
2254
|
qn as InnerLeftMenu,
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2255
|
+
G as LangUtil,
|
|
2256
|
+
x as Languages,
|
|
2257
|
+
ct as LazyLoadingProp,
|
|
2250
2258
|
Kn as MobileLayout,
|
|
2251
|
-
|
|
2259
|
+
Zt as MobileLayoutItem,
|
|
2252
2260
|
On as PageSubtitle,
|
|
2253
2261
|
Tn as PageTitle,
|
|
2254
2262
|
Yn as ProfileEditDialog,
|
|
2255
2263
|
jn as ProfileInfo,
|
|
2256
|
-
|
|
2264
|
+
K as RowActionsButton,
|
|
2257
2265
|
no as SearchFilter,
|
|
2258
2266
|
Qn as SelectFilter,
|
|
2259
2267
|
B as UserAvatar,
|
|
2260
|
-
|
|
2261
|
-
|
|
2268
|
+
Fn as UserMenu,
|
|
2269
|
+
N as UserStatus,
|
|
2262
2270
|
eo as UserStatusChip,
|
|
2263
2271
|
Gn as clearLocalErrors,
|
|
2264
2272
|
ro as clnNumbCust,
|
|
2265
2273
|
fo as clonePagingAndSort,
|
|
2266
2274
|
uo as deepClone,
|
|
2267
2275
|
z as formatFullName,
|
|
2268
|
-
|
|
2276
|
+
Nn as formatInitials,
|
|
2269
2277
|
lo as frmDateCust,
|
|
2270
2278
|
Vn as frmNum,
|
|
2271
2279
|
Cn as frmNumCust,
|
|
2272
2280
|
so as frmSysDate,
|
|
2273
2281
|
co as getCookie,
|
|
2274
|
-
|
|
2282
|
+
$t as handleErrorResponse,
|
|
2275
2283
|
po as isActive,
|
|
2276
|
-
|
|
2284
|
+
dt as mapArrayToEnum,
|
|
2277
2285
|
io as nl2br,
|
|
2278
2286
|
mo as setCookie,
|
|
2279
2287
|
En as setI18n,
|
|
2280
2288
|
Zn as syncItemChanges,
|
|
2281
|
-
|
|
2289
|
+
ue as usePageStore
|
|
2282
2290
|
};
|