alytus-ff 0.1.46 → 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
CHANGED
|
@@ -1,49 +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 {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
workspaces: "companies",
|
|
15
|
-
"Profile settings": "Profile settings",
|
|
16
|
-
"Log out": "Log out",
|
|
17
|
-
Language: "Language",
|
|
18
|
-
"Edit info": "Edit info",
|
|
19
|
-
"Change password": "Change password",
|
|
20
|
-
"Your profile": "Your profile",
|
|
21
|
-
Photo: "Photo",
|
|
22
|
-
Color: "Color",
|
|
23
|
-
"Choose color": "Choose color",
|
|
24
|
-
Name: "Name",
|
|
25
|
-
Surname: "Surname",
|
|
26
|
-
"E-mail": "E-mail",
|
|
27
|
-
Save: "Save"
|
|
28
|
-
},
|
|
29
|
-
lng: {
|
|
30
|
-
"et-ee": "Estonian",
|
|
31
|
-
"en-gb": "English"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}, ce = se({
|
|
35
|
-
legacy: !1,
|
|
36
|
-
locale: "en",
|
|
37
|
-
fallbackLocale: "en",
|
|
38
|
-
globalInjection: !0,
|
|
39
|
-
messages: ue
|
|
40
|
-
});
|
|
41
|
-
let G = null;
|
|
42
|
-
function Nn(e) {
|
|
43
|
-
G = e, console.log("[AlytusFF] setI18n called", e);
|
|
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
|
+
import { useI18n as q } from "vue-i18n";
|
|
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
|
+
});
|
|
44
14
|
}
|
|
45
|
-
|
|
46
|
-
|
|
15
|
+
function ie() {
|
|
16
|
+
return W;
|
|
17
|
+
}
|
|
18
|
+
let X = null;
|
|
19
|
+
function En(e) {
|
|
20
|
+
X = e, ae(e);
|
|
21
|
+
}
|
|
22
|
+
const ue = ee("page", () => {
|
|
23
|
+
const e = (d) => X?.global?.t(d) ?? d;
|
|
47
24
|
function t(d) {
|
|
48
25
|
return d;
|
|
49
26
|
}
|
|
@@ -57,7 +34,7 @@ const de = x("page", () => {
|
|
|
57
34
|
else if (d.response !== void 0)
|
|
58
35
|
switch (d.response.status) {
|
|
59
36
|
case 500:
|
|
60
|
-
|
|
37
|
+
l(null, e("aff.An error has occurred"), 500);
|
|
61
38
|
break;
|
|
62
39
|
case 504:
|
|
63
40
|
l(null, "Network timeout, please try again.", 504);
|
|
@@ -89,7 +66,7 @@ const de = x("page", () => {
|
|
|
89
66
|
}, 250);
|
|
90
67
|
}
|
|
91
68
|
return { errorDialog: n, errorTitle: r, errorDetails: m, errorCode: s, showError: g, closeError: i };
|
|
92
|
-
}),
|
|
69
|
+
}), ce = k({
|
|
93
70
|
name: "PageTitle",
|
|
94
71
|
props: {
|
|
95
72
|
title: {
|
|
@@ -101,27 +78,27 @@ const de = x("page", () => {
|
|
|
101
78
|
default: null
|
|
102
79
|
}
|
|
103
80
|
}
|
|
104
|
-
}),
|
|
81
|
+
}), A = (e, t) => {
|
|
105
82
|
const n = e.__vccOpts || e;
|
|
106
83
|
for (const [r, s] of t)
|
|
107
84
|
n[r] = s;
|
|
108
85
|
return n;
|
|
109
|
-
},
|
|
86
|
+
}, de = { class: "mt-6 mb-3 ff-page-title" }, me = { class: "text-h5 ff-title" }, pe = {
|
|
110
87
|
key: 0,
|
|
111
88
|
class: "text-body-2 ff-description"
|
|
112
89
|
};
|
|
113
|
-
function
|
|
114
|
-
return u(), _("div",
|
|
90
|
+
function fe(e, t, n, r, s, m) {
|
|
91
|
+
return u(), _("div", de, [
|
|
115
92
|
$("div", null, [
|
|
116
|
-
$("span",
|
|
117
|
-
e.description ? (u(), _("div",
|
|
93
|
+
$("span", me, y(e.title), 1),
|
|
94
|
+
e.description ? (u(), _("div", pe, y(e.description), 1)) : V("", !0)
|
|
118
95
|
]),
|
|
119
96
|
$("div", null, [
|
|
120
|
-
|
|
97
|
+
E(e.$slots, "buttons")
|
|
121
98
|
])
|
|
122
99
|
]);
|
|
123
100
|
}
|
|
124
|
-
const
|
|
101
|
+
const Tn = /* @__PURE__ */ A(ce, [["render", fe]]), ve = k({
|
|
125
102
|
name: "PageSubtitle",
|
|
126
103
|
props: {
|
|
127
104
|
subtitle: {
|
|
@@ -133,18 +110,18 @@ const qn = /* @__PURE__ */ C(me, [["render", _e]]), ge = k({
|
|
|
133
110
|
default: !1
|
|
134
111
|
}
|
|
135
112
|
}
|
|
136
|
-
}),
|
|
137
|
-
function
|
|
113
|
+
}), _e = { class: "text-h6 font-weight-bold" };
|
|
114
|
+
function ge(e, t, n, r, s, m) {
|
|
138
115
|
return u(), _("div", {
|
|
139
|
-
class:
|
|
116
|
+
class: I([e.firstPosition ? "mt-0" : "", "ff-page-subtitle"])
|
|
140
117
|
}, [
|
|
141
|
-
$("div",
|
|
118
|
+
$("div", _e, y(e.subtitle), 1),
|
|
142
119
|
$("div", null, [
|
|
143
|
-
|
|
120
|
+
E(e.$slots, "buttons")
|
|
144
121
|
])
|
|
145
122
|
], 2);
|
|
146
123
|
}
|
|
147
|
-
const
|
|
124
|
+
const On = /* @__PURE__ */ A(ve, [["render", ge]]), ye = k({
|
|
148
125
|
name: "InnerLeftMenu",
|
|
149
126
|
components: {},
|
|
150
127
|
props: {
|
|
@@ -154,22 +131,22 @@ const Fn = /* @__PURE__ */ C(ge, [["render", $e]]), he = k({
|
|
|
154
131
|
}
|
|
155
132
|
},
|
|
156
133
|
setup() {
|
|
157
|
-
const e =
|
|
134
|
+
const e = le(), t = se();
|
|
158
135
|
return { goTo: (s) => e.push(s), isActive: (s) => t.fullPath.startsWith(s) };
|
|
159
136
|
}
|
|
160
137
|
});
|
|
161
|
-
function
|
|
138
|
+
function $e(e, t, n, r, s, m) {
|
|
162
139
|
const l = a("v-list-item-title"), p = a("v-list-item"), g = a("v-list");
|
|
163
140
|
return u(), h(g, { class: "inner-left-menu mobile-horizontal" }, {
|
|
164
141
|
default: o(() => [
|
|
165
|
-
(u(!0), _(P, null,
|
|
142
|
+
(u(!0), _(P, null, U(e.items, (i) => (u(), h(p, {
|
|
166
143
|
active: e.isActive(i.link),
|
|
167
144
|
onClick: (d) => e.goTo(i.link)
|
|
168
145
|
}, {
|
|
169
146
|
default: o(() => [
|
|
170
147
|
c(l, null, {
|
|
171
148
|
default: o(() => [
|
|
172
|
-
|
|
149
|
+
C(y(i.text), 1)
|
|
173
150
|
]),
|
|
174
151
|
_: 2
|
|
175
152
|
}, 1024)
|
|
@@ -180,13 +157,13 @@ function be(e, t, n, r, s, m) {
|
|
|
180
157
|
_: 1
|
|
181
158
|
});
|
|
182
159
|
}
|
|
183
|
-
const
|
|
184
|
-
var
|
|
185
|
-
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({
|
|
186
163
|
name: "CustomDialog",
|
|
187
164
|
methods: {
|
|
188
165
|
mdiClose() {
|
|
189
|
-
return
|
|
166
|
+
return be;
|
|
190
167
|
}
|
|
191
168
|
},
|
|
192
169
|
props: {
|
|
@@ -215,26 +192,26 @@ const Se = k({
|
|
|
215
192
|
default: !1
|
|
216
193
|
}
|
|
217
194
|
}
|
|
218
|
-
}),
|
|
219
|
-
function
|
|
195
|
+
}), He = { class: "close-btn" };
|
|
196
|
+
function Se(e, t, n, r, s, m) {
|
|
220
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");
|
|
221
198
|
return u(), h(b, {
|
|
222
199
|
"model-value": e.value,
|
|
223
200
|
"max-width": "960",
|
|
224
201
|
persistent: e.persistent,
|
|
225
202
|
fullscreen: e.$vuetify.display.smAndDown && !e.noFullScreen,
|
|
226
|
-
class:
|
|
203
|
+
class: I([e.fullHeight ? "ff-dialog" : "ff-dialog ff-full-height"]),
|
|
227
204
|
"content-class": e.fullHeight ? "ff-full-height" : "",
|
|
228
205
|
"onUpdate:modelValue": t[1] || (t[1] = (v) => e.$emit("close"))
|
|
229
206
|
}, {
|
|
230
207
|
default: o(() => [
|
|
231
|
-
|
|
208
|
+
E(e.$slots, "card", {}, () => [
|
|
232
209
|
c(d, {
|
|
233
210
|
title: e.title,
|
|
234
|
-
class:
|
|
211
|
+
class: I(e.fullHeight ? "ff-full-height" : "")
|
|
235
212
|
}, {
|
|
236
213
|
append: o(() => [
|
|
237
|
-
$("div",
|
|
214
|
+
$("div", He, [
|
|
238
215
|
c(l, {
|
|
239
216
|
variant: "text",
|
|
240
217
|
icon: e.mdiClose(),
|
|
@@ -245,15 +222,15 @@ function Ee(e, t, n, r, s, m) {
|
|
|
245
222
|
default: o(() => [
|
|
246
223
|
c(p, null, {
|
|
247
224
|
default: o(() => [
|
|
248
|
-
|
|
225
|
+
E(e.$slots, "default")
|
|
249
226
|
]),
|
|
250
227
|
_: 3
|
|
251
228
|
}),
|
|
252
|
-
e.noFooter ?
|
|
229
|
+
e.noFooter ? V("", !0) : (u(), h(i, { key: 0 }, {
|
|
253
230
|
default: o(() => [
|
|
254
|
-
|
|
231
|
+
E(e.$slots, "left-footer"),
|
|
255
232
|
c(g),
|
|
256
|
-
|
|
233
|
+
E(e.$slots, "footer")
|
|
257
234
|
]),
|
|
258
235
|
_: 3
|
|
259
236
|
}))
|
|
@@ -265,7 +242,7 @@ function Ee(e, t, n, r, s, m) {
|
|
|
265
242
|
_: 3
|
|
266
243
|
}, 8, ["model-value", "persistent", "fullscreen", "class", "content-class"]);
|
|
267
244
|
}
|
|
268
|
-
const
|
|
245
|
+
const Pe = /* @__PURE__ */ A(we, [["render", Se]]), Ue = k({
|
|
269
246
|
name: "AccountAvatar",
|
|
270
247
|
props: {
|
|
271
248
|
item: {
|
|
@@ -278,19 +255,19 @@ const Ue = /* @__PURE__ */ C(Se, [["render", Ee]]), De = k({
|
|
|
278
255
|
}
|
|
279
256
|
}
|
|
280
257
|
});
|
|
281
|
-
function
|
|
258
|
+
function De(e, t, n, r, s, m) {
|
|
282
259
|
const l = a("v-avatar");
|
|
283
260
|
return u(), h(l, {
|
|
284
|
-
class:
|
|
261
|
+
class: I(`ff-avatar avatar-${e.size}-${e.item.initials.length >= 3 ? "l" : "s"}`),
|
|
285
262
|
size: e.size
|
|
286
263
|
}, {
|
|
287
264
|
default: o(() => [
|
|
288
|
-
|
|
265
|
+
C(y(e.item.initials), 1)
|
|
289
266
|
]),
|
|
290
267
|
_: 1
|
|
291
268
|
}, 8, ["class", "size"]);
|
|
292
269
|
}
|
|
293
|
-
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({
|
|
294
271
|
name: "UserAvatar",
|
|
295
272
|
props: {
|
|
296
273
|
user: {
|
|
@@ -307,14 +284,14 @@ const K = /* @__PURE__ */ C(De, [["render", Ie]]), z = (e) => e.surname ? `${e.n
|
|
|
307
284
|
}
|
|
308
285
|
},
|
|
309
286
|
setup(e) {
|
|
310
|
-
return { fullName:
|
|
287
|
+
return { fullName: w(() => z(e.user)) };
|
|
311
288
|
}
|
|
312
|
-
}),
|
|
313
|
-
function
|
|
289
|
+
}), Ee = { key: 1 };
|
|
290
|
+
function Te(e, t, n, r, s, m) {
|
|
314
291
|
const l = a("v-img"), p = a("v-avatar");
|
|
315
292
|
return u(), h(p, {
|
|
316
293
|
color: e.user.avatar_thumb ? "light_grey_bg" : e.user.color ?? "primary",
|
|
317
|
-
class:
|
|
294
|
+
class: I(`avatar-${e.size}-${e.user.initials.length >= 3 ? "l" : "s"}`),
|
|
318
295
|
size: e.size
|
|
319
296
|
}, {
|
|
320
297
|
default: o(() => [
|
|
@@ -322,26 +299,26 @@ function Ne(e, t, n, r, s, m) {
|
|
|
322
299
|
key: 0,
|
|
323
300
|
alt: e.fullName,
|
|
324
301
|
src: `${e.baseUrl}/${e.user.avatar_thumb}`
|
|
325
|
-
}, null, 8, ["alt", "src"])) : (u(), _("span",
|
|
302
|
+
}, null, 8, ["alt", "src"])) : (u(), _("span", Ee, y(e.user.initials), 1))
|
|
326
303
|
]),
|
|
327
304
|
_: 1
|
|
328
305
|
}, 8, ["color", "class", "size"]);
|
|
329
306
|
}
|
|
330
|
-
const B = /* @__PURE__ */
|
|
307
|
+
const B = /* @__PURE__ */ A(Ie, [["render", Te]]), Oe = k({
|
|
331
308
|
name: "UserMenu",
|
|
332
|
-
components: { AccountAvatar:
|
|
309
|
+
components: { AccountAvatar: Y, UserAvatar: B },
|
|
333
310
|
methods: {
|
|
334
311
|
mdiLogout() {
|
|
335
|
-
return
|
|
312
|
+
return Ce;
|
|
336
313
|
},
|
|
337
314
|
mdiAccount() {
|
|
338
|
-
return
|
|
315
|
+
return he;
|
|
339
316
|
},
|
|
340
317
|
mdiMenuDown() {
|
|
341
|
-
return
|
|
318
|
+
return Q;
|
|
342
319
|
},
|
|
343
320
|
mdiCheck() {
|
|
344
|
-
return
|
|
321
|
+
return Z;
|
|
345
322
|
},
|
|
346
323
|
formatFullName: z
|
|
347
324
|
},
|
|
@@ -383,7 +360,7 @@ const B = /* @__PURE__ */ C(Te, [["render", Ne]]), qe = k({
|
|
|
383
360
|
"log-out"
|
|
384
361
|
],
|
|
385
362
|
setup(e, { emit: t }) {
|
|
386
|
-
const { t: n } =
|
|
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")}`);
|
|
387
364
|
return { isOpen: r, userName: m, langMenu: s, accountIds: l, accountTitle: p, selectAccount: (v) => {
|
|
388
365
|
e.multipleAccounts ? t(l.value.indexOf(v.id) >= 0 ? "unselect-account" : "select-account", v) : t("select-account", v);
|
|
389
366
|
}, openProfile: () => {
|
|
@@ -394,8 +371,8 @@ const B = /* @__PURE__ */ C(Te, [["render", Ne]]), qe = k({
|
|
|
394
371
|
t("log-out"), r.value = !1;
|
|
395
372
|
} };
|
|
396
373
|
}
|
|
397
|
-
}),
|
|
398
|
-
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) {
|
|
399
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");
|
|
400
377
|
return u(), h(H, {
|
|
401
378
|
modelValue: e.isOpen,
|
|
@@ -403,16 +380,16 @@ function Ke(e, t, n, r, s, m) {
|
|
|
403
380
|
"close-on-content-click": !1
|
|
404
381
|
}, {
|
|
405
382
|
activator: o(({ props: M }) => [
|
|
406
|
-
c(p,
|
|
383
|
+
c(p, D(M, { class: "ff-user-btn" }), {
|
|
407
384
|
default: o(() => [
|
|
408
385
|
c(l, {
|
|
409
386
|
size: 32,
|
|
410
387
|
user: e.currentUser,
|
|
411
388
|
"base-url": e.baseUrl + "/avatars"
|
|
412
389
|
}, null, 8, ["user", "base-url"]),
|
|
413
|
-
$("div",
|
|
414
|
-
$("div",
|
|
415
|
-
$("div",
|
|
390
|
+
$("div", qe, [
|
|
391
|
+
$("div", Ne, y(e.userName), 1),
|
|
392
|
+
$("div", Fe, y(e.accountTitle), 1)
|
|
416
393
|
])
|
|
417
394
|
]),
|
|
418
395
|
_: 1
|
|
@@ -427,7 +404,7 @@ function Ke(e, t, n, r, s, m) {
|
|
|
427
404
|
default: o(() => [
|
|
428
405
|
c(g, null, {
|
|
429
406
|
default: o(() => [
|
|
430
|
-
|
|
407
|
+
C(y(e.$t("aff.Logged in as")) + ":", 1)
|
|
431
408
|
]),
|
|
432
409
|
_: 1
|
|
433
410
|
}),
|
|
@@ -446,11 +423,11 @@ function Ke(e, t, n, r, s, m) {
|
|
|
446
423
|
}, 8, ["title", "subtitle"]),
|
|
447
424
|
c(g, null, {
|
|
448
425
|
default: o(() => [
|
|
449
|
-
|
|
426
|
+
C(y(e.$t("aff.Choose active company")) + ":", 1)
|
|
450
427
|
]),
|
|
451
428
|
_: 1
|
|
452
429
|
}),
|
|
453
|
-
(u(!0), _(P, null,
|
|
430
|
+
(u(!0), _(P, null, U(e.accounts, (M) => (u(), h(i, {
|
|
454
431
|
key: M.id,
|
|
455
432
|
onClick: (j) => e.selectAccount(M)
|
|
456
433
|
}, {
|
|
@@ -466,7 +443,7 @@ function Ke(e, t, n, r, s, m) {
|
|
|
466
443
|
default: o(() => [
|
|
467
444
|
c(b, null, {
|
|
468
445
|
default: o(() => [
|
|
469
|
-
|
|
446
|
+
C(y(e.formatFullName(M)), 1)
|
|
470
447
|
]),
|
|
471
448
|
_: 2
|
|
472
449
|
}, 1024)
|
|
@@ -475,7 +452,7 @@ function Ke(e, t, n, r, s, m) {
|
|
|
475
452
|
}, 1032, ["onClick"]))), 128)),
|
|
476
453
|
c(g, null, {
|
|
477
454
|
default: o(() => [
|
|
478
|
-
|
|
455
|
+
C(y(e.$t("aff.Actions")) + ":", 1)
|
|
479
456
|
]),
|
|
480
457
|
_: 1
|
|
481
458
|
}),
|
|
@@ -485,13 +462,13 @@ function Ke(e, t, n, r, s, m) {
|
|
|
485
462
|
onClick: t[1] || (t[1] = (M) => e.langMenu = !0)
|
|
486
463
|
}, {
|
|
487
464
|
prepend: o(() => [
|
|
488
|
-
$("div",
|
|
465
|
+
$("div", ze, [
|
|
489
466
|
$("img", {
|
|
490
467
|
src: e.currentLang.icon,
|
|
491
468
|
height: "15",
|
|
492
469
|
width: "20",
|
|
493
470
|
alt: ""
|
|
494
|
-
}, null, 8,
|
|
471
|
+
}, null, 8, Be)
|
|
495
472
|
])
|
|
496
473
|
]),
|
|
497
474
|
default: o(() => [
|
|
@@ -503,12 +480,12 @@ function Ke(e, t, n, r, s, m) {
|
|
|
503
480
|
"close-on-content-click": !1
|
|
504
481
|
}, {
|
|
505
482
|
activator: o(({ props: M }) => [
|
|
506
|
-
$("span",
|
|
483
|
+
$("span", te(ne(M)), y(e.currentLang.title), 17)
|
|
507
484
|
]),
|
|
508
485
|
default: o(() => [
|
|
509
486
|
c(f, null, {
|
|
510
487
|
default: o(() => [
|
|
511
|
-
(u(!0), _(P, null,
|
|
488
|
+
(u(!0), _(P, null, U(e.langs, (M) => (u(), h(i, {
|
|
512
489
|
key: M.value,
|
|
513
490
|
title: M.title,
|
|
514
491
|
onClick: (j) => e.switchLang(M)
|
|
@@ -520,7 +497,7 @@ function Ke(e, t, n, r, s, m) {
|
|
|
520
497
|
width: "24",
|
|
521
498
|
alt: "",
|
|
522
499
|
class: "mr-4"
|
|
523
|
-
}, null, 8,
|
|
500
|
+
}, null, 8, Re)
|
|
524
501
|
]),
|
|
525
502
|
_: 2
|
|
526
503
|
}, 1032, ["title", "onClick"]))), 128))
|
|
@@ -535,13 +512,13 @@ function Ke(e, t, n, r, s, m) {
|
|
|
535
512
|
})
|
|
536
513
|
]),
|
|
537
514
|
_: 1
|
|
538
|
-
}, 8, ["append-icon"])) :
|
|
515
|
+
}, 8, ["append-icon"])) : V("", !0),
|
|
539
516
|
c(i, {
|
|
540
517
|
title: e.$t("aff.Profile settings"),
|
|
541
518
|
onClick: e.openProfile
|
|
542
519
|
}, {
|
|
543
520
|
prepend: o(() => [
|
|
544
|
-
$("div",
|
|
521
|
+
$("div", je, [
|
|
545
522
|
c(v, {
|
|
546
523
|
icon: e.mdiAccount()
|
|
547
524
|
}, null, 8, ["icon"])
|
|
@@ -554,7 +531,7 @@ function Ke(e, t, n, r, s, m) {
|
|
|
554
531
|
onClick: e.logOut
|
|
555
532
|
}, {
|
|
556
533
|
prepend: o(() => [
|
|
557
|
-
$("div",
|
|
534
|
+
$("div", Ge, [
|
|
558
535
|
c(v, {
|
|
559
536
|
icon: e.mdiLogout()
|
|
560
537
|
}, null, 8, ["icon"])
|
|
@@ -575,7 +552,7 @@ function Ke(e, t, n, r, s, m) {
|
|
|
575
552
|
_: 1
|
|
576
553
|
}, 8, ["modelValue"]);
|
|
577
554
|
}
|
|
578
|
-
const
|
|
555
|
+
const Fn = /* @__PURE__ */ A(Oe, [["render", Ze]]), Ye = k({
|
|
579
556
|
name: "ErrorDialog",
|
|
580
557
|
props: {
|
|
581
558
|
show: {
|
|
@@ -597,11 +574,11 @@ const Rn = /* @__PURE__ */ C(qe, [["render", Ke]]), Je = k({
|
|
|
597
574
|
},
|
|
598
575
|
emits: ["close"],
|
|
599
576
|
setup(e) {
|
|
600
|
-
const { t } =
|
|
601
|
-
return { title:
|
|
577
|
+
const { t } = q();
|
|
578
|
+
return { title: w(() => e.errorTitle ?? t("aff.Error occurred")) };
|
|
602
579
|
}
|
|
603
|
-
}),
|
|
604
|
-
function
|
|
580
|
+
}), Ke = ["innerHTML"], Je = { key: 1 };
|
|
581
|
+
function We(e, t, n, r, s, m) {
|
|
605
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");
|
|
606
583
|
return u(), h(b, {
|
|
607
584
|
"max-width": "500",
|
|
@@ -619,9 +596,9 @@ function Qe(e, t, n, r, s, m) {
|
|
|
619
596
|
e.errorDetails ? (u(), _("span", {
|
|
620
597
|
key: 0,
|
|
621
598
|
innerHTML: e.errorDetails
|
|
622
|
-
}, null, 8,
|
|
623
|
-
t[2] || (t[2] =
|
|
624
|
-
e.errorCode ? (u(), _("span",
|
|
599
|
+
}, null, 8, Ke)) : V("", !0),
|
|
600
|
+
t[2] || (t[2] = C()),
|
|
601
|
+
e.errorCode ? (u(), _("span", Je, "(" + y(e.$t("aff.Code")) + ": " + y(e.errorCode) + ")", 1)) : V("", !0)
|
|
625
602
|
]),
|
|
626
603
|
_: 1
|
|
627
604
|
}),
|
|
@@ -644,7 +621,7 @@ function Qe(e, t, n, r, s, m) {
|
|
|
644
621
|
_: 1
|
|
645
622
|
}, 8, ["model-value"]);
|
|
646
623
|
}
|
|
647
|
-
const
|
|
624
|
+
const zn = /* @__PURE__ */ A(Ye, [["render", We]]), Xe = k({
|
|
648
625
|
name: "FieldRow",
|
|
649
626
|
props: {
|
|
650
627
|
label: {
|
|
@@ -663,21 +640,21 @@ const jn = /* @__PURE__ */ C(Je, [["render", Qe]]), xe = k({
|
|
|
663
640
|
setup() {
|
|
664
641
|
return {};
|
|
665
642
|
}
|
|
666
|
-
}),
|
|
667
|
-
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) {
|
|
668
645
|
return u(), _("div", {
|
|
669
|
-
class:
|
|
646
|
+
class: I(["fld-row mobile-margin", e.errorMessage ? "fld-err" : ""])
|
|
670
647
|
}, [
|
|
671
|
-
$("div",
|
|
672
|
-
$("div",
|
|
648
|
+
$("div", Qe, [
|
|
649
|
+
$("div", xe, y(e.label), 1),
|
|
673
650
|
e.description ? (u(), _("div", {
|
|
674
651
|
key: 0,
|
|
675
652
|
class: "descr",
|
|
676
653
|
innerHTML: e.description
|
|
677
|
-
}, null, 8,
|
|
654
|
+
}, null, 8, et)) : V("", !0)
|
|
678
655
|
]),
|
|
679
|
-
$("div",
|
|
680
|
-
|
|
656
|
+
$("div", tt, [
|
|
657
|
+
E(e.$slots, "default", {
|
|
681
658
|
hideDetails: !e.errorMessage,
|
|
682
659
|
errorMessages: e.errorMessage
|
|
683
660
|
})
|
|
@@ -686,12 +663,12 @@ function lt(e, t, n, r, s, m) {
|
|
|
686
663
|
key: 0,
|
|
687
664
|
class: "descr-col text-body-2",
|
|
688
665
|
innerHTML: e.description
|
|
689
|
-
}, null, 8,
|
|
666
|
+
}, null, 8, nt)) : V("", !0)
|
|
690
667
|
], 2);
|
|
691
668
|
}
|
|
692
|
-
const
|
|
669
|
+
const Bn = /* @__PURE__ */ A(Xe, [["render", ot]]), rt = k({
|
|
693
670
|
name: "ColorPicker",
|
|
694
|
-
components: { UserAvatar: B, AccountAvatar:
|
|
671
|
+
components: { UserAvatar: B, AccountAvatar: Y },
|
|
695
672
|
setup() {
|
|
696
673
|
const e = S(null), t = (() => {
|
|
697
674
|
const n = [];
|
|
@@ -702,7 +679,7 @@ const Gn = /* @__PURE__ */ C(xe, [["render", lt]]), st = k({
|
|
|
702
679
|
return { val: e, colors: t };
|
|
703
680
|
}
|
|
704
681
|
});
|
|
705
|
-
function
|
|
682
|
+
function lt(e, t, n, r, s, m) {
|
|
706
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");
|
|
707
684
|
return u(), h(b, { class: "ff-col-pckr" }, {
|
|
708
685
|
default: o(() => [
|
|
@@ -710,7 +687,7 @@ function at(e, t, n, r, s, m) {
|
|
|
710
687
|
default: o(() => [
|
|
711
688
|
c(i, { style: { width: "289px" } }, {
|
|
712
689
|
default: o(() => [
|
|
713
|
-
(u(!0), _(P, null,
|
|
690
|
+
(u(!0), _(P, null, U(e.colors, (v) => (u(), h(g, {
|
|
714
691
|
key: v,
|
|
715
692
|
onClick: (f) => e.$emit("change", v)
|
|
716
693
|
}, {
|
|
@@ -737,7 +714,7 @@ function at(e, t, n, r, s, m) {
|
|
|
737
714
|
_: 1
|
|
738
715
|
});
|
|
739
716
|
}
|
|
740
|
-
const
|
|
717
|
+
const st = /* @__PURE__ */ A(rt, [["render", lt]]), at = k({
|
|
741
718
|
name: "FieldLabel",
|
|
742
719
|
props: {
|
|
743
720
|
label: {
|
|
@@ -762,7 +739,7 @@ const it = /* @__PURE__ */ C(st, [["render", at]]), ut = k({
|
|
|
762
739
|
}
|
|
763
740
|
}
|
|
764
741
|
});
|
|
765
|
-
function
|
|
742
|
+
function it(e, t, n, r, s, m) {
|
|
766
743
|
const l = a("v-col");
|
|
767
744
|
return u(), h(l, {
|
|
768
745
|
cols: e.cols,
|
|
@@ -771,9 +748,9 @@ function ct(e, t, n, r, s, m) {
|
|
|
771
748
|
}, {
|
|
772
749
|
default: o(() => [
|
|
773
750
|
$("div", {
|
|
774
|
-
class:
|
|
751
|
+
class: I(["fld-lbl", e.errorMessages ? "fld-err" : ""])
|
|
775
752
|
}, y(e.label), 3),
|
|
776
|
-
|
|
753
|
+
E(e.$slots, "default", {
|
|
777
754
|
hideDetails: !e.errorMessages,
|
|
778
755
|
errorMessages: e.errorMessages,
|
|
779
756
|
disabled: e.disabled
|
|
@@ -782,15 +759,15 @@ function ct(e, t, n, r, s, m) {
|
|
|
782
759
|
_: 3
|
|
783
760
|
}, 8, ["cols", "sm"]);
|
|
784
761
|
}
|
|
785
|
-
const
|
|
762
|
+
const ut = /* @__PURE__ */ A(at, [["render", it]]), ct = (e, t, n) => (Object.defineProperty(e, t, {
|
|
786
763
|
value: n,
|
|
787
764
|
writable: !1,
|
|
788
765
|
configurable: !1,
|
|
789
766
|
enumerable: !1
|
|
790
|
-
}), n),
|
|
767
|
+
}), n), dt = (e, t, n) => e.reduce((r, s) => {
|
|
791
768
|
const m = s[t];
|
|
792
769
|
return r[m] = s[n], r;
|
|
793
|
-
}, {}),
|
|
770
|
+
}, {}), x = [
|
|
794
771
|
{ title: "lng.sv-se", value: "sv_SE" },
|
|
795
772
|
// $t("lng.sv-se")
|
|
796
773
|
{ title: "lng.sl-si", value: "sl_SI" },
|
|
@@ -851,7 +828,7 @@ const dt = /* @__PURE__ */ C(ut, [["render", ct]]), mt = (e, t, n) => (Object.de
|
|
|
851
828
|
// $t("lng.ro-ro")
|
|
852
829
|
{ title: "lng.pt-pt", value: "pt_PT" }
|
|
853
830
|
// $t("lng.pt-pt")
|
|
854
|
-
],
|
|
831
|
+
], Rn = [
|
|
855
832
|
{ title: "lngin.et-ee", value: "et_EE" },
|
|
856
833
|
// $t("lngin.et-ee")
|
|
857
834
|
{ title: "lngin.lv-lv", value: "lv_LV" },
|
|
@@ -870,9 +847,9 @@ const dt = /* @__PURE__ */ C(ut, [["render", ct]]), mt = (e, t, n) => (Object.de
|
|
|
870
847
|
// $t("lngin.it-it")
|
|
871
848
|
{ title: "lngin.de-de", value: "de_DE" }
|
|
872
849
|
// $t("lngin.de-de")
|
|
873
|
-
],
|
|
850
|
+
], G = {
|
|
874
851
|
get LangsEnum() {
|
|
875
|
-
return
|
|
852
|
+
return ct(this, "LangsEnum", dt(x, "value", "title"));
|
|
876
853
|
},
|
|
877
854
|
FrmLang(e) {
|
|
878
855
|
return this.LangsEnum[e] ?? e;
|
|
@@ -894,13 +871,13 @@ const dt = /* @__PURE__ */ C(ut, [["render", ct]]), mt = (e, t, n) => (Object.de
|
|
|
894
871
|
ToShortFormat(e) {
|
|
895
872
|
return e.split(/_|-/)[0] ?? e;
|
|
896
873
|
}
|
|
897
|
-
},
|
|
874
|
+
}, mt = k({
|
|
898
875
|
methods: {
|
|
899
876
|
mdiPencil() {
|
|
900
|
-
return
|
|
877
|
+
return Ve;
|
|
901
878
|
},
|
|
902
879
|
mdiKeyVariant() {
|
|
903
|
-
return
|
|
880
|
+
return Ae;
|
|
904
881
|
}
|
|
905
882
|
},
|
|
906
883
|
components: { UserAvatar: B },
|
|
@@ -916,14 +893,14 @@ const dt = /* @__PURE__ */ C(ut, [["render", ct]]), mt = (e, t, n) => (Object.de
|
|
|
916
893
|
},
|
|
917
894
|
emits: ["edit-profile", "change-password"],
|
|
918
895
|
setup(e) {
|
|
919
|
-
const { t } =
|
|
896
|
+
const { t } = q(), n = w(() => e.currentUser?.locale ? t(G.FrmLang(G.ToLongFormat(e.currentUser.locale))) : ""), r = w(() => e.currentUser ? z(e.currentUser) : "");
|
|
920
897
|
return { langauge: n, fullName: r };
|
|
921
898
|
}
|
|
922
|
-
}),
|
|
899
|
+
}), pt = { class: "avatar" }, ft = { class: "details" }, vt = { class: "name" }, _t = {
|
|
923
900
|
key: 0,
|
|
924
901
|
class: "email"
|
|
925
|
-
},
|
|
926
|
-
function
|
|
902
|
+
}, gt = { class: "email" };
|
|
903
|
+
function yt(e, t, n, r, s, m) {
|
|
927
904
|
const l = a("UserAvatar"), p = a("v-col"), g = a("v-icon"), i = a("v-btn"), d = a("v-row");
|
|
928
905
|
return e.currentUser ? (u(), h(d, {
|
|
929
906
|
key: 0,
|
|
@@ -936,17 +913,17 @@ function ht(e, t, n, r, s, m) {
|
|
|
936
913
|
class: "profile"
|
|
937
914
|
}, {
|
|
938
915
|
default: o(() => [
|
|
939
|
-
$("div",
|
|
916
|
+
$("div", pt, [
|
|
940
917
|
c(l, {
|
|
941
918
|
size: 96,
|
|
942
919
|
user: e.currentUser,
|
|
943
920
|
"base-url": e.baseUrl + "/avatars"
|
|
944
921
|
}, null, 8, ["user", "base-url"])
|
|
945
922
|
]),
|
|
946
|
-
$("div",
|
|
947
|
-
$("div",
|
|
948
|
-
e.currentUser.email ? (u(), _("div",
|
|
949
|
-
$("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)
|
|
950
927
|
])
|
|
951
928
|
]),
|
|
952
929
|
_: 1
|
|
@@ -968,7 +945,7 @@ function ht(e, t, n, r, s, m) {
|
|
|
968
945
|
icon: e.mdiPencil(),
|
|
969
946
|
class: "mr-1"
|
|
970
947
|
}, null, 8, ["icon"]),
|
|
971
|
-
|
|
948
|
+
C(" " + y(e.$t("aff.Edit info")), 1)
|
|
972
949
|
]),
|
|
973
950
|
_: 1
|
|
974
951
|
}),
|
|
@@ -982,7 +959,7 @@ function ht(e, t, n, r, s, m) {
|
|
|
982
959
|
icon: e.mdiKeyVariant(),
|
|
983
960
|
class: "mr-1"
|
|
984
961
|
}, null, 8, ["icon"]),
|
|
985
|
-
|
|
962
|
+
C(" " + y(e.$t("aff.Change password")), 1)
|
|
986
963
|
]),
|
|
987
964
|
_: 1
|
|
988
965
|
})
|
|
@@ -992,32 +969,32 @@ function ht(e, t, n, r, s, m) {
|
|
|
992
969
|
})
|
|
993
970
|
]),
|
|
994
971
|
_: 1
|
|
995
|
-
})) :
|
|
972
|
+
})) : V("", !0);
|
|
996
973
|
}
|
|
997
|
-
const
|
|
974
|
+
const jn = /* @__PURE__ */ A(mt, [["render", yt]]), Gn = (e) => {
|
|
998
975
|
for (const t in e)
|
|
999
976
|
Object.prototype.hasOwnProperty.call(e, t) && (e[t] = null);
|
|
1000
|
-
},
|
|
977
|
+
}, $t = (e, t, n, r, s, m = null) => {
|
|
1001
978
|
if (typeof e == "string") {
|
|
1002
979
|
r(e);
|
|
1003
980
|
return;
|
|
1004
981
|
}
|
|
1005
982
|
if (e.response && e.response.status) {
|
|
1006
983
|
if (e.response.status === 400 && e.response.data) {
|
|
1007
|
-
|
|
984
|
+
bt(e, t, n, r, s, m);
|
|
1008
985
|
return;
|
|
1009
986
|
}
|
|
1010
987
|
if (e.response.status === 409 && e.response.data) {
|
|
1011
|
-
|
|
988
|
+
kt(e, r, s);
|
|
1012
989
|
return;
|
|
1013
990
|
}
|
|
1014
991
|
if (e.response.status === 417 && e.response.data) {
|
|
1015
|
-
|
|
992
|
+
At(r, s);
|
|
1016
993
|
return;
|
|
1017
994
|
}
|
|
1018
995
|
}
|
|
1019
996
|
r(e);
|
|
1020
|
-
},
|
|
997
|
+
}, ht = () => {
|
|
1021
998
|
setTimeout(() => {
|
|
1022
999
|
const e = document.querySelector(".v-input--error, .ec-input.local-err");
|
|
1023
1000
|
if (e == null)
|
|
@@ -1025,7 +1002,7 @@ const Yn = /* @__PURE__ */ C(ft, [["render", ht]]), Kn = (e) => {
|
|
|
1025
1002
|
const t = e.querySelector("input, textarea, .ec-inp-ctrl");
|
|
1026
1003
|
t?.focus();
|
|
1027
1004
|
}, 200);
|
|
1028
|
-
},
|
|
1005
|
+
}, bt = (e, t, n, r, s, m = null) => {
|
|
1029
1006
|
const l = [];
|
|
1030
1007
|
let p = !1, g = {};
|
|
1031
1008
|
if (Array.isArray(e.response.data))
|
|
@@ -1035,7 +1012,7 @@ const Yn = /* @__PURE__ */ C(ft, [["render", ht]]), Kn = (e) => {
|
|
|
1035
1012
|
for (const i in e.response.data)
|
|
1036
1013
|
if (Object.prototype.hasOwnProperty.call(e.response.data, i)) {
|
|
1037
1014
|
const d = e.response.data[i];
|
|
1038
|
-
if (
|
|
1015
|
+
if (Ct(g, t, i, d[0]))
|
|
1039
1016
|
p = !0;
|
|
1040
1017
|
else {
|
|
1041
1018
|
const v = m && m[i] ? m[i] : i;
|
|
@@ -1045,21 +1022,21 @@ const Yn = /* @__PURE__ */ C(ft, [["render", ht]]), Kn = (e) => {
|
|
|
1045
1022
|
l.length > 0 && (l.length === 1 ? r(l[0]) : r({
|
|
1046
1023
|
message: s("aff.Some errors occured:"),
|
|
1047
1024
|
details: "<ul><li>" + l.map((i) => i.error_message).join("</li><li>") + "</li></ul>"
|
|
1048
|
-
})), p && (n != null && (n.value = { ...n.value, ...g }),
|
|
1049
|
-
},
|
|
1025
|
+
})), p && (n != null && (n.value = { ...n.value, ...g }), ht());
|
|
1026
|
+
}, kt = (e, t, n) => {
|
|
1050
1027
|
let r = [];
|
|
1051
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({
|
|
1052
1029
|
title: n("aff.Concurrency error"),
|
|
1053
1030
|
details: r.length === 1 ? r[0] : "<ul><li>" + r.join("</li><li>") + "</li></ul>",
|
|
1054
1031
|
code: 409
|
|
1055
1032
|
});
|
|
1056
|
-
},
|
|
1033
|
+
}, At = (e, t) => {
|
|
1057
1034
|
e({
|
|
1058
1035
|
title: t("aff.Product version mismatch."),
|
|
1059
1036
|
details: t("aff.Please reload the page."),
|
|
1060
1037
|
code: 417
|
|
1061
1038
|
});
|
|
1062
|
-
},
|
|
1039
|
+
}, Ct = (e, t, n, r) => {
|
|
1063
1040
|
const s = n.split(".");
|
|
1064
1041
|
let m = t, l = e;
|
|
1065
1042
|
for (; s.length > 0; ) {
|
|
@@ -1076,17 +1053,17 @@ const Yn = /* @__PURE__ */ C(ft, [["render", ht]]), Kn = (e) => {
|
|
|
1076
1053
|
}
|
|
1077
1054
|
}
|
|
1078
1055
|
return !1;
|
|
1079
|
-
},
|
|
1056
|
+
}, Zn = (e, t) => {
|
|
1080
1057
|
for (const n in t)
|
|
1081
1058
|
Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
1082
|
-
},
|
|
1059
|
+
}, Mt = k({
|
|
1083
1060
|
name: "ProfileEditDialog",
|
|
1084
1061
|
methods: {
|
|
1085
1062
|
mdiPalette() {
|
|
1086
|
-
return
|
|
1063
|
+
return Me;
|
|
1087
1064
|
}
|
|
1088
1065
|
},
|
|
1089
|
-
components: { ColorPicker:
|
|
1066
|
+
components: { ColorPicker: st, UserAvatar: B, AccountAvatar: Y, FieldLabel: ut, CustomDialog: Pe },
|
|
1090
1067
|
props: {
|
|
1091
1068
|
showDialog: {
|
|
1092
1069
|
type: Boolean,
|
|
@@ -1111,40 +1088,40 @@ const Yn = /* @__PURE__ */ C(ft, [["render", ht]]), Kn = (e) => {
|
|
|
1111
1088
|
},
|
|
1112
1089
|
emits: ["close"],
|
|
1113
1090
|
setup(e, { emit: t }) {
|
|
1114
|
-
const { t: n } =
|
|
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(() => [
|
|
1115
1092
|
{ value: "photo", text: n("aff.Photo") },
|
|
1116
1093
|
{ value: "color", text: n("aff.Color") }
|
|
1117
|
-
]), d =
|
|
1094
|
+
]), d = w(() => x.filter((v) => e.systemLanguages.indexOf(v.value) >= 0).map((v) => ({ title: n(v.title), value: v.value })));
|
|
1118
1095
|
return { formData: s, localErrors: m, languages: d, lang: l, identity: p, identities: i, loading: g, saveClick: () => {
|
|
1119
1096
|
g.value = !0;
|
|
1120
1097
|
const v = { ...s.value };
|
|
1121
|
-
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);
|
|
1122
1099
|
} };
|
|
1123
1100
|
}
|
|
1124
|
-
}),
|
|
1101
|
+
}), Vt = {
|
|
1125
1102
|
key: 0,
|
|
1126
1103
|
class: "ff-simple-form"
|
|
1127
|
-
},
|
|
1104
|
+
}, Lt = { class: "avatar-edit" }, wt = { class: "avatar" }, Ht = { class: "options" }, St = {
|
|
1128
1105
|
key: 0,
|
|
1129
1106
|
class: "sel-ident"
|
|
1130
1107
|
};
|
|
1131
|
-
function
|
|
1108
|
+
function Pt(e, t, n, r, s, m) {
|
|
1132
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");
|
|
1133
1110
|
return u(), h(j, {
|
|
1134
1111
|
value: e.showDialog,
|
|
1135
1112
|
title: e.$t("aff.Your profile"),
|
|
1136
1113
|
persistent: "",
|
|
1137
1114
|
class: "prof-dlg",
|
|
1138
|
-
onClose: t[7] || (t[7] = (
|
|
1115
|
+
onClose: t[7] || (t[7] = (L) => e.$emit("close", null))
|
|
1139
1116
|
}, {
|
|
1140
1117
|
footer: o(() => [
|
|
1141
1118
|
c(d, {
|
|
1142
1119
|
variant: "flat",
|
|
1143
1120
|
color: "secondary",
|
|
1144
|
-
onClick: t[6] || (t[6] = (
|
|
1121
|
+
onClick: t[6] || (t[6] = (L) => e.$emit("close", null))
|
|
1145
1122
|
}, {
|
|
1146
1123
|
default: o(() => [
|
|
1147
|
-
|
|
1124
|
+
C(y(e.$t("aff.Close")), 1)
|
|
1148
1125
|
]),
|
|
1149
1126
|
_: 1
|
|
1150
1127
|
}),
|
|
@@ -1155,22 +1132,22 @@ function Ut(e, t, n, r, s, m) {
|
|
|
1155
1132
|
onClick: e.saveClick
|
|
1156
1133
|
}, {
|
|
1157
1134
|
default: o(() => [
|
|
1158
|
-
|
|
1135
|
+
C(y(e.$t("aff.Save")), 1)
|
|
1159
1136
|
]),
|
|
1160
1137
|
_: 1
|
|
1161
1138
|
}, 8, ["loading", "onClick"])
|
|
1162
1139
|
]),
|
|
1163
1140
|
default: o(() => [
|
|
1164
|
-
e.formData ? (u(), _("form",
|
|
1141
|
+
e.formData ? (u(), _("form", Vt, [
|
|
1165
1142
|
c(M, null, {
|
|
1166
1143
|
default: o(() => [
|
|
1167
1144
|
c(f, { cols: "12" }, {
|
|
1168
1145
|
default: o(() => [
|
|
1169
|
-
$("div",
|
|
1170
|
-
$("div",
|
|
1146
|
+
$("div", Lt, [
|
|
1147
|
+
$("div", wt, [
|
|
1171
1148
|
c(l, {
|
|
1172
1149
|
color: e.formData.color ?? "primary",
|
|
1173
|
-
class:
|
|
1150
|
+
class: I(`avatar-96-${e.formData.initials.length >= 3 ? "l" : "s"}`),
|
|
1174
1151
|
size: 96
|
|
1175
1152
|
}, {
|
|
1176
1153
|
default: o(() => [
|
|
@@ -1179,21 +1156,21 @@ function Ut(e, t, n, r, s, m) {
|
|
|
1179
1156
|
_: 1
|
|
1180
1157
|
}, 8, ["color", "class"])
|
|
1181
1158
|
]),
|
|
1182
|
-
$("div",
|
|
1159
|
+
$("div", Ht, [
|
|
1183
1160
|
$("div", null, [
|
|
1184
1161
|
c(g, {
|
|
1185
1162
|
modelValue: e.identity,
|
|
1186
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1163
|
+
"onUpdate:modelValue": t[0] || (t[0] = (L) => e.identity = L),
|
|
1187
1164
|
"true-icon": e.$vuetify.icons.aliases?.success,
|
|
1188
1165
|
color: "primary",
|
|
1189
1166
|
"hide-details": "",
|
|
1190
1167
|
"error-messages": e.localErrors.other_vehicle_involved?.toString() ?? void 0
|
|
1191
1168
|
}, {
|
|
1192
1169
|
default: o(() => [
|
|
1193
|
-
(u(!0), _(P, null,
|
|
1194
|
-
key:
|
|
1195
|
-
label:
|
|
1196
|
-
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,
|
|
1197
1174
|
"base-color": e.localErrors.other_vehicle_involved ? "error" : ""
|
|
1198
1175
|
}, null, 8, ["label", "value", "base-color"]))), 128))
|
|
1199
1176
|
]),
|
|
@@ -1201,33 +1178,33 @@ function Ut(e, t, n, r, s, m) {
|
|
|
1201
1178
|
}, 8, ["modelValue", "true-icon", "error-messages"])
|
|
1202
1179
|
]),
|
|
1203
1180
|
$("div", null, [
|
|
1204
|
-
e.identity === "color" ? (u(), _("div",
|
|
1181
|
+
e.identity === "color" ? (u(), _("div", St, [
|
|
1205
1182
|
$("div", null, [
|
|
1206
1183
|
c(v, null, {
|
|
1207
|
-
activator: o(({ props:
|
|
1208
|
-
c(d,
|
|
1184
|
+
activator: o(({ props: L }) => [
|
|
1185
|
+
c(d, D({
|
|
1209
1186
|
variant: "text",
|
|
1210
1187
|
color: "primary",
|
|
1211
1188
|
class: "ff-btn"
|
|
1212
|
-
},
|
|
1189
|
+
}, L), {
|
|
1213
1190
|
default: o(() => [
|
|
1214
1191
|
c(i, {
|
|
1215
1192
|
icon: e.mdiPalette()
|
|
1216
1193
|
}, null, 8, ["icon"]),
|
|
1217
|
-
|
|
1194
|
+
C(" " + y(e.$vuetify.display.smAndUp ? e.$t("aff.Choose color") : e.$t("aff.Color")), 1)
|
|
1218
1195
|
]),
|
|
1219
1196
|
_: 1
|
|
1220
1197
|
}, 16)
|
|
1221
1198
|
]),
|
|
1222
1199
|
default: o(() => [
|
|
1223
1200
|
c(b, {
|
|
1224
|
-
onChange: t[1] || (t[1] = (
|
|
1201
|
+
onChange: t[1] || (t[1] = (L) => e.formData.color = L)
|
|
1225
1202
|
})
|
|
1226
1203
|
]),
|
|
1227
1204
|
_: 1
|
|
1228
1205
|
})
|
|
1229
1206
|
])
|
|
1230
|
-
])) :
|
|
1207
|
+
])) : V("", !0)
|
|
1231
1208
|
])
|
|
1232
1209
|
])
|
|
1233
1210
|
])
|
|
@@ -1240,12 +1217,12 @@ function Ut(e, t, n, r, s, m) {
|
|
|
1240
1217
|
sm: 6,
|
|
1241
1218
|
"error-messages": e.localErrors.name?.toString() ?? void 0
|
|
1242
1219
|
}, {
|
|
1243
|
-
default: o((
|
|
1244
|
-
c(H,
|
|
1220
|
+
default: o((L) => [
|
|
1221
|
+
c(H, D({
|
|
1245
1222
|
modelValue: e.formData.name,
|
|
1246
1223
|
"onUpdate:modelValue": t[2] || (t[2] = (O) => e.formData.name = O),
|
|
1247
1224
|
variant: "outlined"
|
|
1248
|
-
},
|
|
1225
|
+
}, L), null, 16, ["modelValue"])
|
|
1249
1226
|
]),
|
|
1250
1227
|
_: 1
|
|
1251
1228
|
}, 8, ["label", "error-messages"]),
|
|
@@ -1255,12 +1232,12 @@ function Ut(e, t, n, r, s, m) {
|
|
|
1255
1232
|
sm: 6,
|
|
1256
1233
|
"error-messages": e.localErrors.surname?.toString() ?? void 0
|
|
1257
1234
|
}, {
|
|
1258
|
-
default: o((
|
|
1259
|
-
c(H,
|
|
1235
|
+
default: o((L) => [
|
|
1236
|
+
c(H, D({
|
|
1260
1237
|
modelValue: e.formData.surname,
|
|
1261
1238
|
"onUpdate:modelValue": t[3] || (t[3] = (O) => e.formData.surname = O),
|
|
1262
1239
|
variant: "outlined"
|
|
1263
|
-
},
|
|
1240
|
+
}, L), null, 16, ["modelValue"])
|
|
1264
1241
|
]),
|
|
1265
1242
|
_: 1
|
|
1266
1243
|
}, 8, ["label", "error-messages"]),
|
|
@@ -1270,13 +1247,13 @@ function Ut(e, t, n, r, s, m) {
|
|
|
1270
1247
|
sm: 6,
|
|
1271
1248
|
"error-messages": e.localErrors.email?.toString() ?? void 0
|
|
1272
1249
|
}, {
|
|
1273
|
-
default: o((
|
|
1274
|
-
c(H,
|
|
1250
|
+
default: o((L) => [
|
|
1251
|
+
c(H, D({
|
|
1275
1252
|
modelValue: e.formData.email,
|
|
1276
1253
|
"onUpdate:modelValue": t[4] || (t[4] = (O) => e.formData.email = O),
|
|
1277
1254
|
variant: "outlined",
|
|
1278
1255
|
disabled: ""
|
|
1279
|
-
},
|
|
1256
|
+
}, L), null, 16, ["modelValue"])
|
|
1280
1257
|
]),
|
|
1281
1258
|
_: 1
|
|
1282
1259
|
}, 8, ["label", "error-messages"]),
|
|
@@ -1286,27 +1263,27 @@ function Ut(e, t, n, r, s, m) {
|
|
|
1286
1263
|
sm: 6,
|
|
1287
1264
|
"error-messages": e.localErrors.locale?.toString() ?? void 0
|
|
1288
1265
|
}, {
|
|
1289
|
-
default: o((
|
|
1290
|
-
c(R,
|
|
1266
|
+
default: o((L) => [
|
|
1267
|
+
c(R, D({
|
|
1291
1268
|
modelValue: e.lang,
|
|
1292
1269
|
"onUpdate:modelValue": t[5] || (t[5] = (O) => e.lang = O),
|
|
1293
1270
|
variant: "outlined",
|
|
1294
1271
|
items: e.languages,
|
|
1295
1272
|
"item-text": "title",
|
|
1296
1273
|
"item-value": "value"
|
|
1297
|
-
},
|
|
1274
|
+
}, L, { dense: "" }), null, 16, ["modelValue", "items"])
|
|
1298
1275
|
]),
|
|
1299
1276
|
_: 1
|
|
1300
1277
|
}, 8, ["label", "error-messages"])
|
|
1301
1278
|
]),
|
|
1302
1279
|
_: 1
|
|
1303
1280
|
})
|
|
1304
|
-
])) :
|
|
1281
|
+
])) : V("", !0)
|
|
1305
1282
|
]),
|
|
1306
1283
|
_: 1
|
|
1307
1284
|
}, 8, ["value", "title"]);
|
|
1308
1285
|
}
|
|
1309
|
-
const
|
|
1286
|
+
const Yn = /* @__PURE__ */ A(Mt, [["render", Pt]]), Ut = k({
|
|
1310
1287
|
name: "RowActionsButton",
|
|
1311
1288
|
props: {
|
|
1312
1289
|
rowActions: {
|
|
@@ -1319,14 +1296,14 @@ const Wn = /* @__PURE__ */ C(Lt, [["render", Ut]]), Dt = k({
|
|
|
1319
1296
|
}
|
|
1320
1297
|
},
|
|
1321
1298
|
setup(e) {
|
|
1322
|
-
return { actions:
|
|
1299
|
+
return { actions: w(() => e.rowActions.actions.filter((n) => n.visible === void 0 || n.visible(e.item))) };
|
|
1323
1300
|
}
|
|
1324
1301
|
});
|
|
1325
|
-
function
|
|
1302
|
+
function Dt(e, t, n, r, s, m) {
|
|
1326
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");
|
|
1327
1304
|
return e.actions.length > 0 ? (u(), h(b, { key: 0 }, {
|
|
1328
1305
|
activator: o(({ props: v }) => [
|
|
1329
|
-
c(l,
|
|
1306
|
+
c(l, D({
|
|
1330
1307
|
variant: "text",
|
|
1331
1308
|
size: "small",
|
|
1332
1309
|
icon: e.rowActions.icon
|
|
@@ -1335,7 +1312,7 @@ function It(e, t, n, r, s, m) {
|
|
|
1335
1312
|
default: o(() => [
|
|
1336
1313
|
c(d, { density: "compact" }, {
|
|
1337
1314
|
default: o(() => [
|
|
1338
|
-
(u(!0), _(P, null,
|
|
1315
|
+
(u(!0), _(P, null, U(e.actions, (v) => (u(), h(i, {
|
|
1339
1316
|
key: v.action,
|
|
1340
1317
|
onClick: (f) => e.$emit("row-action", { action: v.action, item: e.item })
|
|
1341
1318
|
}, {
|
|
@@ -1347,7 +1324,7 @@ function It(e, t, n, r, s, m) {
|
|
|
1347
1324
|
default: o(() => [
|
|
1348
1325
|
c(g, null, {
|
|
1349
1326
|
default: o(() => [
|
|
1350
|
-
|
|
1327
|
+
C(y(v.title), 1)
|
|
1351
1328
|
]),
|
|
1352
1329
|
_: 2
|
|
1353
1330
|
}, 1024)
|
|
@@ -1359,16 +1336,16 @@ function It(e, t, n, r, s, m) {
|
|
|
1359
1336
|
})
|
|
1360
1337
|
]),
|
|
1361
1338
|
_: 1
|
|
1362
|
-
})) :
|
|
1339
|
+
})) : V("", !0);
|
|
1363
1340
|
}
|
|
1364
|
-
const
|
|
1341
|
+
const K = /* @__PURE__ */ A(Ut, [["render", Dt]]), It = k({
|
|
1365
1342
|
name: "MobileLayoutItem",
|
|
1366
1343
|
methods: {
|
|
1367
1344
|
mdiDragVertical() {
|
|
1368
|
-
return
|
|
1345
|
+
return ke;
|
|
1369
1346
|
}
|
|
1370
1347
|
},
|
|
1371
|
-
components: { RowActionsButton:
|
|
1348
|
+
components: { RowActionsButton: K },
|
|
1372
1349
|
props: {
|
|
1373
1350
|
item: {
|
|
1374
1351
|
type: Object,
|
|
@@ -1408,14 +1385,14 @@ const J = /* @__PURE__ */ C(Dt, [["render", It]]), Tt = k({
|
|
|
1408
1385
|
const e = (n, r) => r === null ? null : n.mobileLabel ? `${n.title}: ${r}` : r;
|
|
1409
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) };
|
|
1410
1387
|
}
|
|
1411
|
-
}),
|
|
1388
|
+
}), Et = { style: { display: "flex", "align-items": "center", gap: "8px" } }, Tt = { key: 1 }, Ot = { key: 2 }, qt = { key: 1 }, Nt = { key: 2 }, Ft = {
|
|
1412
1389
|
key: 0,
|
|
1413
1390
|
class: "mini-table"
|
|
1414
|
-
},
|
|
1391
|
+
}, zt = { key: 0 }, Bt = { key: 1 }, Rt = { style: { "margin-top": "-11px", "margin-bottom": "-11px" } }, jt = {
|
|
1415
1392
|
key: 0,
|
|
1416
1393
|
class: "item-drag-handle"
|
|
1417
1394
|
};
|
|
1418
|
-
function
|
|
1395
|
+
function Gt(e, t, n, r, s, m) {
|
|
1419
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");
|
|
1420
1397
|
return u(), h(v, {
|
|
1421
1398
|
variant: "outlined",
|
|
@@ -1424,22 +1401,22 @@ function Yt(e, t, n, r, s, m) {
|
|
|
1424
1401
|
onClick: t[1] || (t[1] = (f) => e.$emit("rowClick", e.item))
|
|
1425
1402
|
}, {
|
|
1426
1403
|
title: o(() => [
|
|
1427
|
-
$("div",
|
|
1428
|
-
(u(!0), _(P, null,
|
|
1429
|
-
f.component ? (u(), h(F(f.component),
|
|
1404
|
+
$("div", Et, [
|
|
1405
|
+
(u(!0), _(P, null, U(e.titleHeaders, (f, H) => (u(), _("span", { key: H }, [
|
|
1406
|
+
f.component ? (u(), h(F(f.component), D({
|
|
1430
1407
|
key: 0,
|
|
1431
1408
|
class: "mr-1"
|
|
1432
|
-
}, { 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))
|
|
1433
1410
|
]))), 128))
|
|
1434
1411
|
])
|
|
1435
1412
|
]),
|
|
1436
1413
|
default: o(() => [
|
|
1437
1414
|
c(b, null, {
|
|
1438
1415
|
default: o(() => [
|
|
1439
|
-
(u(!0), _(P, null,
|
|
1416
|
+
(u(!0), _(P, null, U(e.otherHeaders, (f, H) => (u(), h(p, {
|
|
1440
1417
|
key: f.value,
|
|
1441
1418
|
"no-gutters": "",
|
|
1442
|
-
class:
|
|
1419
|
+
class: I(`mt-${H === 0 ? 0 : 3}`)
|
|
1443
1420
|
}, {
|
|
1444
1421
|
default: o(() => [
|
|
1445
1422
|
c(l, {
|
|
@@ -1447,7 +1424,7 @@ function Yt(e, t, n, r, s, m) {
|
|
|
1447
1424
|
sm: "2"
|
|
1448
1425
|
}, {
|
|
1449
1426
|
default: o(() => [
|
|
1450
|
-
|
|
1427
|
+
C(y(f.title) + ":", 1)
|
|
1451
1428
|
]),
|
|
1452
1429
|
_: 2
|
|
1453
1430
|
}, 1024),
|
|
@@ -1456,31 +1433,31 @@ function Yt(e, t, n, r, s, m) {
|
|
|
1456
1433
|
sm: "10"
|
|
1457
1434
|
}, {
|
|
1458
1435
|
default: o(() => [
|
|
1459
|
-
f.component ? (u(), h(F(f.component),
|
|
1436
|
+
f.component ? (u(), h(F(f.component), D({
|
|
1460
1437
|
key: 0,
|
|
1461
1438
|
ref_for: !0
|
|
1462
|
-
}, 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))
|
|
1463
1440
|
]),
|
|
1464
1441
|
_: 2
|
|
1465
1442
|
}, 1024)
|
|
1466
1443
|
]),
|
|
1467
1444
|
_: 2
|
|
1468
1445
|
}, 1032, ["class"]))), 128)),
|
|
1469
|
-
e.miniTblHeaders.length > 0 ? (u(), _("table",
|
|
1446
|
+
e.miniTblHeaders.length > 0 ? (u(), _("table", Ft, [
|
|
1470
1447
|
$("tr", null, [
|
|
1471
|
-
(u(!0), _(P, null,
|
|
1448
|
+
(u(!0), _(P, null, U(e.miniTblHeaders, (f) => (u(), _("th", {
|
|
1472
1449
|
key: `h${f.value}`,
|
|
1473
|
-
style:
|
|
1450
|
+
style: oe({ width: `${100 / e.miniTblHeaders.length}%` })
|
|
1474
1451
|
}, y(f.title), 5))), 128))
|
|
1475
1452
|
]),
|
|
1476
1453
|
$("tr", null, [
|
|
1477
|
-
(u(!0), _(P, null,
|
|
1454
|
+
(u(!0), _(P, null, U(e.miniTblHeaders, (f) => (u(), _("td", {
|
|
1478
1455
|
key: `h${f.value}`
|
|
1479
1456
|
}, [
|
|
1480
|
-
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))
|
|
1481
1458
|
]))), 128))
|
|
1482
1459
|
])
|
|
1483
|
-
])) :
|
|
1460
|
+
])) : V("", !0),
|
|
1484
1461
|
c(p, {
|
|
1485
1462
|
"no-gutters": "",
|
|
1486
1463
|
class: "mt-3"
|
|
@@ -1490,10 +1467,10 @@ function Yt(e, t, n, r, s, m) {
|
|
|
1490
1467
|
cols: e.rowActions ? 10 : 12
|
|
1491
1468
|
}, {
|
|
1492
1469
|
default: o(() => [
|
|
1493
|
-
(u(!0), _(P, null,
|
|
1470
|
+
(u(!0), _(P, null, U(e.tagHeaders, (f) => (u(), _("span", {
|
|
1494
1471
|
key: f.value
|
|
1495
1472
|
}, [
|
|
1496
|
-
f.component ? (u(), h(F(f.component),
|
|
1473
|
+
f.component ? (u(), h(F(f.component), D({
|
|
1497
1474
|
key: 0,
|
|
1498
1475
|
class: "mr-1"
|
|
1499
1476
|
}, { ref_for: !0 }, f.getProps ? f.getProps(f, e.item) : {}), null, 16)) : f.format ? (u(), h(i, {
|
|
@@ -1509,8 +1486,8 @@ function Yt(e, t, n, r, s, m) {
|
|
|
1509
1486
|
key: 0,
|
|
1510
1487
|
icon: f.mobileIcon,
|
|
1511
1488
|
class: "mr-1"
|
|
1512
|
-
}, null, 8, ["icon"])) :
|
|
1513
|
-
|
|
1489
|
+
}, null, 8, ["icon"])) : V("", !0),
|
|
1490
|
+
C(y(f.format(f, e.item)), 1)
|
|
1514
1491
|
]),
|
|
1515
1492
|
_: 2
|
|
1516
1493
|
}, 1024)) : (u(), h(i, {
|
|
@@ -1525,8 +1502,8 @@ function Yt(e, t, n, r, s, m) {
|
|
|
1525
1502
|
f.mobileIcon ? (u(), h(g, {
|
|
1526
1503
|
key: 0,
|
|
1527
1504
|
icon: f.mobileIcon
|
|
1528
|
-
}, null, 8, ["icon"])) :
|
|
1529
|
-
|
|
1505
|
+
}, null, 8, ["icon"])) : V("", !0),
|
|
1506
|
+
C(y(e.item[f.value]), 1)
|
|
1530
1507
|
]),
|
|
1531
1508
|
_: 2
|
|
1532
1509
|
}, 1024))
|
|
@@ -1540,7 +1517,7 @@ function Yt(e, t, n, r, s, m) {
|
|
|
1540
1517
|
class: "text-right"
|
|
1541
1518
|
}, {
|
|
1542
1519
|
default: o(() => [
|
|
1543
|
-
$("div",
|
|
1520
|
+
$("div", Rt, [
|
|
1544
1521
|
c(d, {
|
|
1545
1522
|
item: e.item,
|
|
1546
1523
|
"row-actions": e.rowActions,
|
|
@@ -1549,25 +1526,25 @@ function Yt(e, t, n, r, s, m) {
|
|
|
1549
1526
|
])
|
|
1550
1527
|
]),
|
|
1551
1528
|
_: 1
|
|
1552
|
-
})) :
|
|
1529
|
+
})) : V("", !0)
|
|
1553
1530
|
]),
|
|
1554
1531
|
_: 1
|
|
1555
1532
|
})
|
|
1556
1533
|
]),
|
|
1557
1534
|
_: 1
|
|
1558
1535
|
}),
|
|
1559
|
-
e.draggable ? (u(), _("div",
|
|
1536
|
+
e.draggable ? (u(), _("div", jt, [
|
|
1560
1537
|
c(g, {
|
|
1561
1538
|
icon: e.mdiDragVertical()
|
|
1562
1539
|
}, null, 8, ["icon"])
|
|
1563
|
-
])) :
|
|
1540
|
+
])) : V("", !0)
|
|
1564
1541
|
]),
|
|
1565
1542
|
_: 1
|
|
1566
1543
|
}, 8, ["title", "subtitle"]);
|
|
1567
1544
|
}
|
|
1568
|
-
const
|
|
1545
|
+
const Zt = /* @__PURE__ */ A(It, [["render", Gt]]), Yt = k({
|
|
1569
1546
|
name: "MobileLayout",
|
|
1570
|
-
components: { MobileLayoutItem:
|
|
1547
|
+
components: { MobileLayoutItem: Zt, RowActionsButton: K },
|
|
1571
1548
|
props: {
|
|
1572
1549
|
items: {
|
|
1573
1550
|
type: Array,
|
|
@@ -1595,23 +1572,23 @@ const Kt = /* @__PURE__ */ C(Tt, [["render", Yt]]), Jt = k({
|
|
|
1595
1572
|
}
|
|
1596
1573
|
},
|
|
1597
1574
|
setup(e, t) {
|
|
1598
|
-
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"));
|
|
1599
1576
|
return { titleHeaders: s, subTitleHeaders: m, tagHeaders: l, miniTblHeaders: p, otherHeaders: g, pageVal: n, pageSize: r, changePage: (d) => {
|
|
1600
1577
|
t.emit("options-update", { ...e.options, page: d });
|
|
1601
1578
|
} };
|
|
1602
1579
|
}
|
|
1603
|
-
}),
|
|
1580
|
+
}), Kt = { class: "mobile-margin2 data-table-layout" }, Jt = {
|
|
1604
1581
|
key: 1,
|
|
1605
1582
|
class: "mt-3"
|
|
1606
1583
|
};
|
|
1607
|
-
function
|
|
1584
|
+
function Wt(e, t, n, r, s, m) {
|
|
1608
1585
|
const l = a("v-progress-linear"), p = a("MobileLayoutItem"), g = a("v-pagination");
|
|
1609
|
-
return u(), _("div",
|
|
1586
|
+
return u(), _("div", Kt, [
|
|
1610
1587
|
e.loading ? (u(), h(l, {
|
|
1611
1588
|
key: 0,
|
|
1612
1589
|
indeterminate: ""
|
|
1613
|
-
})) :
|
|
1614
|
-
(u(!0), _(P, null,
|
|
1590
|
+
})) : V("", !0),
|
|
1591
|
+
(u(!0), _(P, null, U(e.items, (i) => (u(), h(p, {
|
|
1615
1592
|
key: i.id,
|
|
1616
1593
|
item: i,
|
|
1617
1594
|
"title-headers": e.titleHeaders,
|
|
@@ -1623,7 +1600,7 @@ function Qt(e, t, n, r, s, m) {
|
|
|
1623
1600
|
onRowClick: t[0] || (t[0] = (d) => e.$emit("row-click", d)),
|
|
1624
1601
|
onRowAction: t[1] || (t[1] = (d) => e.$emit("row-action", d))
|
|
1625
1602
|
}, null, 8, ["item", "title-headers", "mini-tbl-headers", "sub-title-headers", "tag-headers", "other-headers", "row-actions"]))), 128)),
|
|
1626
|
-
e.totalItems > e.pageSize ? (u(), _("div",
|
|
1603
|
+
e.totalItems > e.pageSize ? (u(), _("div", Jt, [
|
|
1627
1604
|
c(g, {
|
|
1628
1605
|
modelValue: e.pageVal,
|
|
1629
1606
|
"onUpdate:modelValue": [
|
|
@@ -1634,12 +1611,12 @@ function Qt(e, t, n, r, s, m) {
|
|
|
1634
1611
|
rounded: "circle",
|
|
1635
1612
|
density: "comfortable"
|
|
1636
1613
|
}, null, 8, ["modelValue", "length", "onUpdate:modelValue"])
|
|
1637
|
-
])) :
|
|
1614
|
+
])) : V("", !0)
|
|
1638
1615
|
]);
|
|
1639
1616
|
}
|
|
1640
|
-
const
|
|
1617
|
+
const Kn = /* @__PURE__ */ A(Yt, [["render", Wt]]), Xt = k({
|
|
1641
1618
|
name: "DesktopLayout",
|
|
1642
|
-
components: { RowActionsButton:
|
|
1619
|
+
components: { RowActionsButton: K },
|
|
1643
1620
|
props: {
|
|
1644
1621
|
items: {
|
|
1645
1622
|
type: Array,
|
|
@@ -1667,7 +1644,7 @@ const Xn = /* @__PURE__ */ C(Jt, [["render", Qt]]), xt = k({
|
|
|
1667
1644
|
}
|
|
1668
1645
|
},
|
|
1669
1646
|
setup(e, t) {
|
|
1670
|
-
const { t: n } =
|
|
1647
|
+
const { t: n } = q(), r = e.options.page, s = e.options.pageSize, m = e.options.sortField ? [{ key: e.options.sortField, order: e.options.sortDir }] : [], l = (i) => {
|
|
1671
1648
|
const d = i.sortBy && i.sortBy.length > 0 ? i.sortBy[0] : null;
|
|
1672
1649
|
t.emit("options-update", {
|
|
1673
1650
|
page: i.page,
|
|
@@ -1675,25 +1652,25 @@ const Xn = /* @__PURE__ */ C(Jt, [["render", Qt]]), xt = k({
|
|
|
1675
1652
|
sortField: d?.key ?? null,
|
|
1676
1653
|
sortDir: d?.order ?? "asc"
|
|
1677
1654
|
});
|
|
1678
|
-
}, p =
|
|
1655
|
+
}, p = w(() => [
|
|
1679
1656
|
{ value: 5, title: "5" },
|
|
1680
1657
|
{ value: 10, title: "10" },
|
|
1681
1658
|
{ value: 25, title: "25" },
|
|
1682
1659
|
{ value: 50, title: "50" },
|
|
1683
1660
|
{ value: -1, title: n("aff.All") }
|
|
1684
|
-
]), g =
|
|
1661
|
+
]), g = w(() => {
|
|
1685
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);
|
|
1686
1663
|
return i.replace("{0}", d.toString()).replace("{1}", b.toString()).replace("{2}", e.totalItems.toString());
|
|
1687
1664
|
});
|
|
1688
1665
|
return { page: r, pageSize: s, sortBy: m, pageOptions: p, optionsUpdate: l, getPageText: g };
|
|
1689
1666
|
}
|
|
1690
|
-
}),
|
|
1667
|
+
}), Qt = { class: "data-table-layout" }, xt = ["onClick"], en = { key: 1 }, tn = { key: 2 }, nn = {
|
|
1691
1668
|
key: 0,
|
|
1692
1669
|
class: "text-right"
|
|
1693
1670
|
};
|
|
1694
|
-
function
|
|
1671
|
+
function on(e, t, n, r, s, m) {
|
|
1695
1672
|
const l = a("RowActionsButton"), p = a("v-data-table-server");
|
|
1696
|
-
return u(), _("div",
|
|
1673
|
+
return u(), _("div", Qt, [
|
|
1697
1674
|
c(p, {
|
|
1698
1675
|
items: e.items,
|
|
1699
1676
|
"items-length": e.totalItems,
|
|
@@ -1714,29 +1691,29 @@ function ln(e, t, n, r, s, m) {
|
|
|
1714
1691
|
onClick: (i) => e.$emit("row-click", g),
|
|
1715
1692
|
style: { cursor: "pointer" }
|
|
1716
1693
|
}, [
|
|
1717
|
-
(u(!0), _(P, null,
|
|
1694
|
+
(u(!0), _(P, null, U(e.headers, (i) => (u(), _("td", {
|
|
1718
1695
|
key: i.value,
|
|
1719
|
-
class:
|
|
1696
|
+
class: I(["v-data-table__td", `v-data-table-column--align-${i.align ?? "start"}`, i.mainField ? "ff-col-main" : ""])
|
|
1720
1697
|
}, [
|
|
1721
|
-
i.component ? (u(), h(F(i.component),
|
|
1698
|
+
i.component ? (u(), h(F(i.component), D({
|
|
1722
1699
|
key: 0,
|
|
1723
1700
|
ref_for: !0
|
|
1724
|
-
}, 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))
|
|
1725
1702
|
], 2))), 128)),
|
|
1726
|
-
e.rowActions ? (u(), _("td",
|
|
1703
|
+
e.rowActions ? (u(), _("td", nn, [
|
|
1727
1704
|
c(l, {
|
|
1728
1705
|
item: g,
|
|
1729
1706
|
"row-actions": e.rowActions,
|
|
1730
1707
|
onRowAction: t[0] || (t[0] = (i) => e.$emit("row-action", i))
|
|
1731
1708
|
}, null, 8, ["item", "row-actions"])
|
|
1732
|
-
])) :
|
|
1733
|
-
], 8,
|
|
1709
|
+
])) : V("", !0)
|
|
1710
|
+
], 8, xt)
|
|
1734
1711
|
]),
|
|
1735
1712
|
_: 1
|
|
1736
1713
|
}, 8, ["items", "items-length", "headers", "loading", "page", "items-per-page", "sort-by", "hide-default-footer", "items-per-page-options", "onUpdate:options"])
|
|
1737
1714
|
]);
|
|
1738
1715
|
}
|
|
1739
|
-
const
|
|
1716
|
+
const Jn = /* @__PURE__ */ A(Xt, [["render", on]]), rn = k({
|
|
1740
1717
|
name: "ColumnSelector",
|
|
1741
1718
|
props: {
|
|
1742
1719
|
columns: {
|
|
@@ -1751,10 +1728,10 @@ const Qn = /* @__PURE__ */ C(xt, [["render", ln]]), sn = k({
|
|
|
1751
1728
|
emits: ["changeCurrentColumns"],
|
|
1752
1729
|
methods: {
|
|
1753
1730
|
mdiCheck() {
|
|
1754
|
-
return
|
|
1731
|
+
return Z;
|
|
1755
1732
|
},
|
|
1756
1733
|
mdiViewColumn() {
|
|
1757
|
-
return
|
|
1734
|
+
return Le;
|
|
1758
1735
|
}
|
|
1759
1736
|
},
|
|
1760
1737
|
setup(e, { emit: t }) {
|
|
@@ -1764,11 +1741,11 @@ const Qn = /* @__PURE__ */ C(xt, [["render", ln]]), sn = k({
|
|
|
1764
1741
|
} };
|
|
1765
1742
|
}
|
|
1766
1743
|
});
|
|
1767
|
-
function
|
|
1744
|
+
function ln(e, t, n, r, s, m) {
|
|
1768
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");
|
|
1769
1746
|
return u(), h(b, null, {
|
|
1770
1747
|
activator: o(({ props: v }) => [
|
|
1771
|
-
c(l,
|
|
1748
|
+
c(l, D({
|
|
1772
1749
|
variant: "text",
|
|
1773
1750
|
icon: e.mdiViewColumn()
|
|
1774
1751
|
}, v), null, 16, ["icon"])
|
|
@@ -1776,7 +1753,7 @@ function an(e, t, n, r, s, m) {
|
|
|
1776
1753
|
default: o(() => [
|
|
1777
1754
|
c(d, { density: "compact" }, {
|
|
1778
1755
|
default: o(() => [
|
|
1779
|
-
(u(!0), _(P, null,
|
|
1756
|
+
(u(!0), _(P, null, U(e.columns, (v, f) => (u(), h(i, {
|
|
1780
1757
|
key: f,
|
|
1781
1758
|
onClick: (H) => e.toggleColumn(v.value)
|
|
1782
1759
|
}, {
|
|
@@ -1789,7 +1766,7 @@ function an(e, t, n, r, s, m) {
|
|
|
1789
1766
|
default: o(() => [
|
|
1790
1767
|
c(p, null, {
|
|
1791
1768
|
default: o(() => [
|
|
1792
|
-
|
|
1769
|
+
C(y(v.title), 1)
|
|
1793
1770
|
]),
|
|
1794
1771
|
_: 2
|
|
1795
1772
|
}, 1024)
|
|
@@ -1803,7 +1780,7 @@ function an(e, t, n, r, s, m) {
|
|
|
1803
1780
|
_: 1
|
|
1804
1781
|
});
|
|
1805
1782
|
}
|
|
1806
|
-
const
|
|
1783
|
+
const Wn = /* @__PURE__ */ A(rn, [["render", ln]]), sn = k({
|
|
1807
1784
|
name: "EmptyFilter",
|
|
1808
1785
|
props: {
|
|
1809
1786
|
modelValue: {
|
|
@@ -1819,11 +1796,11 @@ const xn = /* @__PURE__ */ C(sn, [["render", an]]), un = k({
|
|
|
1819
1796
|
required: !0
|
|
1820
1797
|
}
|
|
1821
1798
|
}
|
|
1822
|
-
}),
|
|
1823
|
-
function
|
|
1799
|
+
}), an = { class: "f-lbl" };
|
|
1800
|
+
function un(e, t, n, r, s, m) {
|
|
1824
1801
|
const l = a("v-btn");
|
|
1825
1802
|
return u(), _("div", null, [
|
|
1826
|
-
$("div",
|
|
1803
|
+
$("div", an, y(e.$t(e.filter.title)), 1),
|
|
1827
1804
|
c(l, {
|
|
1828
1805
|
variant: "flat",
|
|
1829
1806
|
color: "grey-lighten-2"
|
|
@@ -1835,7 +1812,7 @@ function dn(e, t, n, r, s, m) {
|
|
|
1835
1812
|
})
|
|
1836
1813
|
]);
|
|
1837
1814
|
}
|
|
1838
|
-
const
|
|
1815
|
+
const Xn = /* @__PURE__ */ A(sn, [["render", un]]), cn = k({
|
|
1839
1816
|
name: "SelectFilter",
|
|
1840
1817
|
props: {
|
|
1841
1818
|
modelValue: {
|
|
@@ -1854,14 +1831,14 @@ const eo = /* @__PURE__ */ C(un, [["render", dn]]), mn = k({
|
|
|
1854
1831
|
emits: ["change"],
|
|
1855
1832
|
methods: {
|
|
1856
1833
|
mdiCheck() {
|
|
1857
|
-
return
|
|
1834
|
+
return Z;
|
|
1858
1835
|
},
|
|
1859
1836
|
mdiMenuDown() {
|
|
1860
|
-
return
|
|
1837
|
+
return Q;
|
|
1861
1838
|
}
|
|
1862
1839
|
},
|
|
1863
1840
|
setup(e, { emit: t }) {
|
|
1864
|
-
const { t: n } =
|
|
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(() => {
|
|
1865
1842
|
if (!e.modelValue)
|
|
1866
1843
|
return n("aff.All");
|
|
1867
1844
|
const i = (Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue]).map((d) => typeof d == "string" ? parseInt(d) : d);
|
|
@@ -1872,15 +1849,15 @@ const eo = /* @__PURE__ */ C(un, [["render", dn]]), mn = k({
|
|
|
1872
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);
|
|
1873
1850
|
}, disp: l };
|
|
1874
1851
|
}
|
|
1875
|
-
}),
|
|
1876
|
-
function
|
|
1852
|
+
}), dn = { class: "f-lbl" };
|
|
1853
|
+
function mn(e, t, n, r, s, m) {
|
|
1877
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");
|
|
1878
1855
|
return u(), _("div", null, [
|
|
1879
|
-
$("div",
|
|
1856
|
+
$("div", dn, y(e.$t(e.filter.title)), 1),
|
|
1880
1857
|
c(p, {
|
|
1881
1858
|
id: `menu-activator${e.ctrlId}`,
|
|
1882
1859
|
variant: "flat",
|
|
1883
|
-
class:
|
|
1860
|
+
class: I(["like-select", e.modelValue === null ? "empty" : ""]),
|
|
1884
1861
|
color: "grey-lighten-2",
|
|
1885
1862
|
onClick: e.openMenu
|
|
1886
1863
|
}, {
|
|
@@ -1908,7 +1885,7 @@ function fn(e, t, n, r, s, m) {
|
|
|
1908
1885
|
default: o(() => [
|
|
1909
1886
|
c(d, null, {
|
|
1910
1887
|
default: o(() => [
|
|
1911
|
-
(u(!0), _(P, null,
|
|
1888
|
+
(u(!0), _(P, null, U(e.items, (H) => (u(), h(i, {
|
|
1912
1889
|
key: H.id,
|
|
1913
1890
|
onClick: (T) => e.selVal(H.id)
|
|
1914
1891
|
}, {
|
|
@@ -1921,7 +1898,7 @@ function fn(e, t, n, r, s, m) {
|
|
|
1921
1898
|
default: o(() => [
|
|
1922
1899
|
c(g, null, {
|
|
1923
1900
|
default: o(() => [
|
|
1924
|
-
|
|
1901
|
+
C(y(H.name), 1)
|
|
1925
1902
|
]),
|
|
1926
1903
|
_: 2
|
|
1927
1904
|
}, 1024)
|
|
@@ -1942,7 +1919,7 @@ function fn(e, t, n, r, s, m) {
|
|
|
1942
1919
|
}, 8, ["modelValue", "activator"])
|
|
1943
1920
|
]);
|
|
1944
1921
|
}
|
|
1945
|
-
const
|
|
1922
|
+
const Qn = /* @__PURE__ */ A(cn, [["render", mn]]), pn = k({
|
|
1946
1923
|
name: "DataTableFilters",
|
|
1947
1924
|
props: {
|
|
1948
1925
|
filters: {
|
|
@@ -1961,10 +1938,10 @@ const to = /* @__PURE__ */ C(mn, [["render", fn]]), vn = k({
|
|
|
1961
1938
|
setup(e) {
|
|
1962
1939
|
return { filters: S(e.filters.map((n) => ({ ...n, component: e.getFilterComponent(n), value: n.default }))) };
|
|
1963
1940
|
}
|
|
1964
|
-
}),
|
|
1965
|
-
function
|
|
1966
|
-
return u(), _("div",
|
|
1967
|
-
(u(!0), _(P, null,
|
|
1941
|
+
}), fn = { class: "dt-filters" };
|
|
1942
|
+
function vn(e, t, n, r, s, m) {
|
|
1943
|
+
return u(), _("div", fn, [
|
|
1944
|
+
(u(!0), _(P, null, U(e.filters, (l) => (u(), _("div", {
|
|
1968
1945
|
key: l.name
|
|
1969
1946
|
}, [
|
|
1970
1947
|
(u(), h(F(l.component), {
|
|
@@ -1976,7 +1953,7 @@ function gn(e, t, n, r, s, m) {
|
|
|
1976
1953
|
]))), 128))
|
|
1977
1954
|
]);
|
|
1978
1955
|
}
|
|
1979
|
-
const
|
|
1956
|
+
const xn = /* @__PURE__ */ A(pn, [["render", vn]]), N = {
|
|
1980
1957
|
PENDING: "pending",
|
|
1981
1958
|
ACTIVE: "active",
|
|
1982
1959
|
INACTIVE: "inactive",
|
|
@@ -1994,7 +1971,7 @@ const no = /* @__PURE__ */ C(vn, [["render", gn]]), q = {
|
|
|
1994
1971
|
return e;
|
|
1995
1972
|
}
|
|
1996
1973
|
}
|
|
1997
|
-
},
|
|
1974
|
+
}, _n = k({
|
|
1998
1975
|
name: "UserStatusChip",
|
|
1999
1976
|
props: {
|
|
2000
1977
|
item: {
|
|
@@ -2003,17 +1980,17 @@ const no = /* @__PURE__ */ C(vn, [["render", gn]]), q = {
|
|
|
2003
1980
|
}
|
|
2004
1981
|
},
|
|
2005
1982
|
setup(e) {
|
|
2006
|
-
const { t } =
|
|
2007
|
-
return { chipProps:
|
|
2008
|
-
const r =
|
|
1983
|
+
const { t } = q();
|
|
1984
|
+
return { chipProps: w(() => {
|
|
1985
|
+
const r = N.format(e.item.status, t);
|
|
2009
1986
|
switch (e.item.status) {
|
|
2010
|
-
case
|
|
1987
|
+
case N.ACTIVE:
|
|
2011
1988
|
return { text: r, color: "primary" };
|
|
2012
|
-
case
|
|
1989
|
+
case N.PENDING:
|
|
2013
1990
|
return { text: r, color: "deep-orange" };
|
|
2014
|
-
case
|
|
1991
|
+
case N.INACTIVE:
|
|
2015
1992
|
return { text: r, color: "grey-darken-1" };
|
|
2016
|
-
case
|
|
1993
|
+
case N.PENDING_INACTIVE:
|
|
2017
1994
|
return { text: r, color: "grey-darken-1" };
|
|
2018
1995
|
default:
|
|
2019
1996
|
return { text: r, color: "grey-darken-1" };
|
|
@@ -2021,19 +1998,19 @@ const no = /* @__PURE__ */ C(vn, [["render", gn]]), q = {
|
|
|
2021
1998
|
}) };
|
|
2022
1999
|
}
|
|
2023
2000
|
});
|
|
2024
|
-
function
|
|
2001
|
+
function gn(e, t, n, r, s, m) {
|
|
2025
2002
|
const l = a("v-chip");
|
|
2026
2003
|
return u(), h(l, {
|
|
2027
2004
|
label: "",
|
|
2028
2005
|
color: e.chipProps.color
|
|
2029
2006
|
}, {
|
|
2030
2007
|
default: o(() => [
|
|
2031
|
-
|
|
2008
|
+
C(y(e.chipProps.text), 1)
|
|
2032
2009
|
]),
|
|
2033
2010
|
_: 1
|
|
2034
2011
|
}, 8, ["color"]);
|
|
2035
2012
|
}
|
|
2036
|
-
const
|
|
2013
|
+
const eo = /* @__PURE__ */ A(_n, [["render", gn]]), yn = k({
|
|
2037
2014
|
name: "ConfirmPopup",
|
|
2038
2015
|
props: {
|
|
2039
2016
|
show: {
|
|
@@ -2055,7 +2032,7 @@ const oo = /* @__PURE__ */ C(yn, [["render", $n]]), hn = k({
|
|
|
2055
2032
|
},
|
|
2056
2033
|
emits: ["close", "ok"]
|
|
2057
2034
|
});
|
|
2058
|
-
function
|
|
2035
|
+
function $n(e, t, n, r, s, m) {
|
|
2059
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");
|
|
2060
2037
|
return u(), h(b, {
|
|
2061
2038
|
modelValue: e.show,
|
|
@@ -2074,20 +2051,20 @@ function bn(e, t, n, r, s, m) {
|
|
|
2074
2051
|
default: o(() => [
|
|
2075
2052
|
c(l, { class: "text-subtitle-1" }, {
|
|
2076
2053
|
default: o(() => [
|
|
2077
|
-
|
|
2054
|
+
C(y(e.message), 1)
|
|
2078
2055
|
]),
|
|
2079
2056
|
_: 1
|
|
2080
2057
|
}),
|
|
2081
2058
|
c(i, { class: "dialog-actions-bar" }, {
|
|
2082
2059
|
default: o(() => [
|
|
2083
|
-
|
|
2060
|
+
E(e.$slots, "buttons", {}, () => [
|
|
2084
2061
|
c(p),
|
|
2085
2062
|
c(g, {
|
|
2086
2063
|
onClick: t[0] || (t[0] = (v) => e.$emit("close")),
|
|
2087
2064
|
flat: ""
|
|
2088
2065
|
}, {
|
|
2089
2066
|
default: o(() => [
|
|
2090
|
-
|
|
2067
|
+
C(y(e.$t("aff.Cancel")), 1)
|
|
2091
2068
|
]),
|
|
2092
2069
|
_: 1
|
|
2093
2070
|
}),
|
|
@@ -2098,7 +2075,7 @@ function bn(e, t, n, r, s, m) {
|
|
|
2098
2075
|
color: "primary"
|
|
2099
2076
|
}, {
|
|
2100
2077
|
default: o(() => [
|
|
2101
|
-
|
|
2078
|
+
C(y(e.okText ?? e.$t("aff.OK")), 1)
|
|
2102
2079
|
]),
|
|
2103
2080
|
_: 1
|
|
2104
2081
|
}, 8, ["loading"])
|
|
@@ -2113,7 +2090,7 @@ function bn(e, t, n, r, s, m) {
|
|
|
2113
2090
|
_: 3
|
|
2114
2091
|
}, 8, ["modelValue"]);
|
|
2115
2092
|
}
|
|
2116
|
-
const
|
|
2093
|
+
const to = /* @__PURE__ */ A(yn, [["render", $n]]), hn = k({
|
|
2117
2094
|
name: "SearchFilter",
|
|
2118
2095
|
props: {
|
|
2119
2096
|
modelValue: {
|
|
@@ -2133,15 +2110,15 @@ const ro = /* @__PURE__ */ C(hn, [["render", bn]]), kn = k({
|
|
|
2133
2110
|
clearTimeout(r), r = window.setTimeout(() => m(s), l);
|
|
2134
2111
|
};
|
|
2135
2112
|
};
|
|
2136
|
-
return
|
|
2113
|
+
return re(() => e.modelValue, (r) => {
|
|
2137
2114
|
r !== t.value && (t.value = r);
|
|
2138
2115
|
}), { val: t, debounce: n() };
|
|
2139
2116
|
}
|
|
2140
|
-
}),
|
|
2141
|
-
function
|
|
2117
|
+
}), bn = { class: "f-lbl" };
|
|
2118
|
+
function kn(e, t, n, r, s, m) {
|
|
2142
2119
|
const l = a("v-text-field");
|
|
2143
2120
|
return u(), _("div", null, [
|
|
2144
|
-
$("div",
|
|
2121
|
+
$("div", bn, y(e.$t(e.filter.title)), 1),
|
|
2145
2122
|
c(l, {
|
|
2146
2123
|
modelValue: e.val,
|
|
2147
2124
|
"onUpdate:modelValue": [
|
|
@@ -2154,23 +2131,18 @@ function An(e, t, n, r, s, m) {
|
|
|
2154
2131
|
}, null, 8, ["modelValue"])
|
|
2155
2132
|
]);
|
|
2156
2133
|
}
|
|
2157
|
-
const
|
|
2134
|
+
const no = /* @__PURE__ */ A(hn, [["render", kn]]), An = {
|
|
2158
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}" },
|
|
2159
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}" },
|
|
2160
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}" },
|
|
2161
2138
|
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}" }
|
|
2162
|
-
},
|
|
2139
|
+
}, oo = {
|
|
2163
2140
|
EUR: "€",
|
|
2164
2141
|
USD: "$"
|
|
2165
|
-
}
|
|
2166
|
-
function Vn() {
|
|
2167
|
-
const e = re("i18nLocale", V(() => "en_GB"));
|
|
2168
|
-
return V(() => le(e));
|
|
2169
|
-
}
|
|
2170
|
-
const W = Vn(), Ln = (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)), ao = (e, t) => e == null ? "" : e.replace(new RegExp(t, "g"), "").replace(new RegExp(" ", "g"), "").replace(",", "."), wn = /(dddd|dd|d|hh|h|HH|H|mm|m|MMMM|MMM|MM|M|ss|s|tt|yyyy|yy|zzz)/g, io = (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) => {
|
|
2171
2143
|
if (!e) return "";
|
|
2172
2144
|
const n = typeof e == "string" ? new Date(e) : e;
|
|
2173
|
-
return t.replace(
|
|
2145
|
+
return t.replace(Mn, (r) => {
|
|
2174
2146
|
switch (r) {
|
|
2175
2147
|
case "d":
|
|
2176
2148
|
return n.getDate().toString();
|
|
@@ -2222,34 +2194,34 @@ const W = Vn(), Ln = (e, t, n, r, s) => (typeof e == "string" && (e = parseFloat
|
|
|
2222
2194
|
return r;
|
|
2223
2195
|
}
|
|
2224
2196
|
});
|
|
2225
|
-
},
|
|
2197
|
+
}, Vn = (e, t = void 0, n = void 0) => {
|
|
2226
2198
|
if (t === void 0 && (t = 0), n === void 0 && (n = 4), e == null) return "";
|
|
2227
|
-
typeof e == "string" && (e = parseFloat(e)), console.log("AAAAAAA",
|
|
2228
|
-
const { decimal_symbol: r, thousands_symbol: s } =
|
|
2229
|
-
return
|
|
2230
|
-
},
|
|
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: "," };
|
|
2201
|
+
return Cn(e, t, n, r, s);
|
|
2202
|
+
}, so = (e) => e.getFullYear() + "-" + ("0" + (e.getMonth() + 1)).slice(-2) + "-" + ("0" + e.getDate()).slice(-2), Ln = k({
|
|
2231
2203
|
name: "DataTableTotals",
|
|
2232
|
-
methods: { frmNum:
|
|
2204
|
+
methods: { frmNum: Vn },
|
|
2233
2205
|
props: {
|
|
2234
2206
|
totalItems: {
|
|
2235
2207
|
type: Number,
|
|
2236
2208
|
required: !0
|
|
2237
2209
|
}
|
|
2238
2210
|
}
|
|
2239
|
-
}),
|
|
2240
|
-
function
|
|
2211
|
+
}), wn = { key: 0 }, Hn = { key: 1 };
|
|
2212
|
+
function Sn(e, t, n, r, s, m) {
|
|
2241
2213
|
return u(), _("span", null, [
|
|
2242
|
-
|
|
2243
|
-
e.totalItems === 1 ? (u(), _("span",
|
|
2214
|
+
C(y(e.frmNum(e.totalItems)) + " ", 1),
|
|
2215
|
+
e.totalItems === 1 ? (u(), _("span", wn, y(e.$t("aff.row")), 1)) : (u(), _("span", Hn, y(e.$t("aff.rows")), 1))
|
|
2244
2216
|
]);
|
|
2245
2217
|
}
|
|
2246
|
-
const
|
|
2218
|
+
const ao = /* @__PURE__ */ A(Ln, [["render", Sn]]), io = (e) => e ? e.replace(/(?:\r\n|\r|\n)/g, "<br>") : "", uo = (e) => JSON.parse(JSON.stringify(e)), co = (e) => {
|
|
2247
2219
|
let t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
2248
2220
|
return t ? decodeURIComponent(t[3]) : null;
|
|
2249
|
-
},
|
|
2221
|
+
}, mo = (e, t, n, r = null) => {
|
|
2250
2222
|
let s, m;
|
|
2251
2223
|
return r == null && (r = "/"), m = "", n && (s = /* @__PURE__ */ new Date(), s.setTime(s.getTime() + n * 24 * 60 * 60 * 1e3), m = "; expires=" + s.toUTCString()), document.cookie = encodeURIComponent(e) + "=" + encodeURIComponent(t) + m + "; path=" + r, !0;
|
|
2252
|
-
},
|
|
2224
|
+
}, po = (e, t) => {
|
|
2253
2225
|
for (const n of t) {
|
|
2254
2226
|
if (n === "/")
|
|
2255
2227
|
return e === "/";
|
|
@@ -2257,62 +2229,62 @@ const co = /* @__PURE__ */ C(Sn, [["render", Un]]), mo = (e) => e ? e.replace(/(
|
|
|
2257
2229
|
return !0;
|
|
2258
2230
|
}
|
|
2259
2231
|
return !1;
|
|
2260
|
-
},
|
|
2232
|
+
}, fo = (e) => {
|
|
2261
2233
|
const t = {};
|
|
2262
2234
|
for (const n of ["p", "l", "s", "d"])
|
|
2263
2235
|
e[n] !== void 0 && (t[n] = e[n]);
|
|
2264
2236
|
return t;
|
|
2265
2237
|
};
|
|
2266
2238
|
export {
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2239
|
+
Y as AccountAvatar,
|
|
2240
|
+
st as ColorPicker,
|
|
2241
|
+
Wn as ColumnSelector,
|
|
2242
|
+
to as ConfirmPopup,
|
|
2243
|
+
An as CultureInfos,
|
|
2244
|
+
oo as CurrencySymbols,
|
|
2245
|
+
Pe as CustomDialog,
|
|
2246
|
+
xn as DataTableFilters,
|
|
2247
|
+
ao as DataTableTotals,
|
|
2248
|
+
Jn as DesktopLayout,
|
|
2249
|
+
Xn as EmptyFilter,
|
|
2250
|
+
zn as ErrorDialog,
|
|
2251
|
+
ut as FieldLabel,
|
|
2252
|
+
Bn as FieldRow,
|
|
2253
|
+
Rn as InLanguages,
|
|
2254
|
+
qn as InnerLeftMenu,
|
|
2255
|
+
G as LangUtil,
|
|
2256
|
+
x as Languages,
|
|
2257
|
+
ct as LazyLoadingProp,
|
|
2258
|
+
Kn as MobileLayout,
|
|
2259
|
+
Zt as MobileLayoutItem,
|
|
2260
|
+
On as PageSubtitle,
|
|
2261
|
+
Tn as PageTitle,
|
|
2262
|
+
Yn as ProfileEditDialog,
|
|
2263
|
+
jn as ProfileInfo,
|
|
2264
|
+
K as RowActionsButton,
|
|
2265
|
+
no as SearchFilter,
|
|
2266
|
+
Qn as SelectFilter,
|
|
2295
2267
|
B as UserAvatar,
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2268
|
+
Fn as UserMenu,
|
|
2269
|
+
N as UserStatus,
|
|
2270
|
+
eo as UserStatusChip,
|
|
2271
|
+
Gn as clearLocalErrors,
|
|
2272
|
+
ro as clnNumbCust,
|
|
2273
|
+
fo as clonePagingAndSort,
|
|
2274
|
+
uo as deepClone,
|
|
2303
2275
|
z as formatFullName,
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2276
|
+
Nn as formatInitials,
|
|
2277
|
+
lo as frmDateCust,
|
|
2278
|
+
Vn as frmNum,
|
|
2279
|
+
Cn as frmNumCust,
|
|
2280
|
+
so as frmSysDate,
|
|
2281
|
+
co as getCookie,
|
|
2282
|
+
$t as handleErrorResponse,
|
|
2283
|
+
po as isActive,
|
|
2284
|
+
dt as mapArrayToEnum,
|
|
2285
|
+
io as nl2br,
|
|
2286
|
+
mo as setCookie,
|
|
2287
|
+
En as setI18n,
|
|
2288
|
+
Zn as syncItemChanges,
|
|
2289
|
+
ue as usePageStore
|
|
2318
2290
|
};
|