alytus-ff 0.1.39 → 0.1.41
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 +421 -396
- package/dist/alytus-ff.umd.cjs +1 -1
- package/dist/bundle-stats.html +1 -1
- package/dist/components/DataTable/DataTableTotals.vue.d.ts +14 -0
- package/dist/index.d.ts +6 -3
- package/dist/types/Component.d.ts +4 -0
- package/dist/types/DataTable.d.ts +4 -0
- package/dist/types/Model.d.ts +12 -0
- package/dist/utils/FormUtil.d.ts +1 -0
- package/dist/utils/FormatUtil.d.ts +1 -0
- package/dist/utils/LangUtil.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/DataTable/DataTableTotals.vue +2 -2
- package/src/components/DataTable/filters/SelectFilter.vue +2 -2
- package/src/components/DataTable/layouts/DesktopLayout.vue +2 -2
- package/src/components/Dialog/ConfirmPopup.vue +2 -2
- package/src/components/Profile/ProfileEditDialog.vue +11 -11
- package/src/components/Profile/ProfileInfo.vue +3 -3
package/dist/alytus-ff.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineStore as Q } from "pinia";
|
|
2
2
|
import { useI18n as I } from "vue-i18n";
|
|
3
|
-
import { ref as S, defineComponent as k, createElementBlock as
|
|
3
|
+
import { ref as S, defineComponent as k, createElementBlock as _, openBlock as i, createElementVNode as $, createCommentVNode as L, toDisplayString as y, renderSlot as T, normalizeClass as E, resolveComponent as a, createBlock as h, withCtx as o, Fragment as P, renderList as U, createVNode as c, createTextVNode as C, computed as V, normalizeProps as x, guardReactiveProps as ee, mergeProps as D, resolveDynamicComponent as F, normalizeStyle as te, watch as ne, inject as oe, unref as re } from "vue";
|
|
4
4
|
import { useRouter as le, useRoute as se } from "vue-router";
|
|
5
5
|
const ae = Q("page", () => {
|
|
6
6
|
const { t: e } = I();
|
|
7
7
|
function t(d) {
|
|
8
8
|
return d;
|
|
9
9
|
}
|
|
10
|
-
const n = S(!1), r = S(null),
|
|
10
|
+
const n = S(!1), r = S(null), s = S(null), m = S(null);
|
|
11
11
|
function l(d, b, v) {
|
|
12
|
-
r.value = d, m.value = b,
|
|
12
|
+
r.value = d, m.value = b, s.value = v, n.value = !0;
|
|
13
13
|
}
|
|
14
14
|
function p(d) {
|
|
15
15
|
if (d instanceof XMLHttpRequest)
|
|
@@ -17,7 +17,7 @@ const ae = Q("page", () => {
|
|
|
17
17
|
else if (d.response !== void 0)
|
|
18
18
|
switch (d.response.status) {
|
|
19
19
|
case 500:
|
|
20
|
-
l(null, e("
|
|
20
|
+
l(null, e("aff.An error has occurred."), 500);
|
|
21
21
|
break;
|
|
22
22
|
case 504:
|
|
23
23
|
l(null, "Network timeout, please try again.", 504);
|
|
@@ -26,7 +26,7 @@ const ae = Q("page", () => {
|
|
|
26
26
|
l(null, "Insufficient permissions to perform this action.", 503);
|
|
27
27
|
break;
|
|
28
28
|
case 404:
|
|
29
|
-
l(null, e("Not found."), 404);
|
|
29
|
+
l(null, e("aff.Not found."), 404);
|
|
30
30
|
break;
|
|
31
31
|
case 409:
|
|
32
32
|
l(null, "Concurrency error. Please reload page and make your changes again.", 409);
|
|
@@ -38,17 +38,17 @@ const ae = Q("page", () => {
|
|
|
38
38
|
d.response.data && Array.isArray(d.response.data) && d.response.data.length === 1 ? l(null, d.response.data[0], null) : l(null, d.response.statusText, d.status);
|
|
39
39
|
break;
|
|
40
40
|
}
|
|
41
|
-
else d.name && d.name === "AxiosError" ? l(null, d.message, null) : typeof d == "string" ? l(null, d, null) : l(d.title, d.details, d.code);
|
|
41
|
+
else d.name && d.name === "AxiosError" || d instanceof Error ? l(null, d.message, null) : typeof d == "string" ? l(null, d, null) : l(d.title, d.details, d.code);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function g(d) {
|
|
44
44
|
p(d);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function u() {
|
|
47
47
|
n.value = !1, setTimeout(() => {
|
|
48
|
-
r.value = null,
|
|
48
|
+
r.value = null, s.value = null, m.value = null;
|
|
49
49
|
}, 250);
|
|
50
50
|
}
|
|
51
|
-
return { errorDialog: n, errorTitle: r, errorDetails: m, errorCode:
|
|
51
|
+
return { errorDialog: n, errorTitle: r, errorDetails: m, errorCode: s, showError: g, closeError: u };
|
|
52
52
|
}), ie = k({
|
|
53
53
|
name: "PageTitle",
|
|
54
54
|
props: {
|
|
@@ -63,25 +63,25 @@ const ae = Q("page", () => {
|
|
|
63
63
|
}
|
|
64
64
|
}), A = (e, t) => {
|
|
65
65
|
const n = e.__vccOpts || e;
|
|
66
|
-
for (const [r,
|
|
67
|
-
n[r] =
|
|
66
|
+
for (const [r, s] of t)
|
|
67
|
+
n[r] = s;
|
|
68
68
|
return n;
|
|
69
69
|
}, ue = { class: "mt-6 mb-3 ff-page-title" }, ce = { class: "text-h5 ff-title" }, de = {
|
|
70
70
|
key: 0,
|
|
71
71
|
class: "text-body-2 ff-description"
|
|
72
72
|
};
|
|
73
|
-
function me(e, t, n, r,
|
|
74
|
-
return
|
|
73
|
+
function me(e, t, n, r, s, m) {
|
|
74
|
+
return i(), _("div", ue, [
|
|
75
75
|
$("div", null, [
|
|
76
76
|
$("span", ce, y(e.title), 1),
|
|
77
|
-
e.description ? (
|
|
77
|
+
e.description ? (i(), _("div", de, y(e.description), 1)) : L("", !0)
|
|
78
78
|
]),
|
|
79
79
|
$("div", null, [
|
|
80
80
|
T(e.$slots, "buttons")
|
|
81
81
|
])
|
|
82
82
|
]);
|
|
83
83
|
}
|
|
84
|
-
const
|
|
84
|
+
const En = /* @__PURE__ */ A(ie, [["render", me]]), pe = k({
|
|
85
85
|
name: "PageSubtitle",
|
|
86
86
|
props: {
|
|
87
87
|
subtitle: {
|
|
@@ -94,8 +94,8 @@ const Hn = /* @__PURE__ */ A(ie, [["render", me]]), pe = k({
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
}), fe = { class: "text-h6 font-weight-bold" };
|
|
97
|
-
function ve(e, t, n, r,
|
|
98
|
-
return
|
|
97
|
+
function ve(e, t, n, r, s, m) {
|
|
98
|
+
return i(), _("div", {
|
|
99
99
|
class: E([e.firstPosition ? "mt-0" : "", "ff-page-subtitle"])
|
|
100
100
|
}, [
|
|
101
101
|
$("div", fe, y(e.subtitle), 1),
|
|
@@ -104,7 +104,7 @@ function ve(e, t, n, r, a, m) {
|
|
|
104
104
|
])
|
|
105
105
|
], 2);
|
|
106
106
|
}
|
|
107
|
-
const
|
|
107
|
+
const Tn = /* @__PURE__ */ A(pe, [["render", ve]]), _e = k({
|
|
108
108
|
name: "InnerLeftMenu",
|
|
109
109
|
components: {},
|
|
110
110
|
props: {
|
|
@@ -115,21 +115,21 @@ const Sn = /* @__PURE__ */ A(pe, [["render", ve]]), _e = k({
|
|
|
115
115
|
},
|
|
116
116
|
setup() {
|
|
117
117
|
const e = le(), t = se();
|
|
118
|
-
return { goTo: (
|
|
118
|
+
return { goTo: (s) => e.push(s), isActive: (s) => t.fullPath.startsWith(s) };
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
|
-
function ge(e, t, n, r,
|
|
122
|
-
const l =
|
|
123
|
-
return
|
|
121
|
+
function ge(e, t, n, r, s, m) {
|
|
122
|
+
const l = a("v-list-item-title"), p = a("v-list-item"), g = a("v-list");
|
|
123
|
+
return i(), h(g, { class: "inner-left-menu mobile-horizontal" }, {
|
|
124
124
|
default: o(() => [
|
|
125
|
-
(
|
|
126
|
-
active: e.isActive(
|
|
127
|
-
onClick: (d) => e.goTo(
|
|
125
|
+
(i(!0), _(P, null, U(e.items, (u) => (i(), h(p, {
|
|
126
|
+
active: e.isActive(u.link),
|
|
127
|
+
onClick: (d) => e.goTo(u.link)
|
|
128
128
|
}, {
|
|
129
129
|
default: o(() => [
|
|
130
|
-
|
|
130
|
+
c(l, null, {
|
|
131
131
|
default: o(() => [
|
|
132
|
-
C(y(
|
|
132
|
+
C(y(u.text), 1)
|
|
133
133
|
]),
|
|
134
134
|
_: 2
|
|
135
135
|
}, 1024)
|
|
@@ -140,7 +140,7 @@ function ge(e, t, n, r, a, m) {
|
|
|
140
140
|
_: 1
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
|
-
const
|
|
143
|
+
const In = /* @__PURE__ */ A(_e, [["render", ge]]);
|
|
144
144
|
var ye = "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", $e = "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", he = "M9,3H11V5H9V3M13,3H15V5H13V3M9,7H11V9H9V7M13,7H15V9H13V7M9,11H11V13H9V11M13,11H15V13H13V11M9,15H11V17H9V15M13,15H15V17H13V15M9,19H11V21H9V19M13,19H15V21H13V19Z", be = "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", ke = "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", W = "M7,10L12,15L17,10H7Z", Ae = "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", Ce = "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", Me = "M16,5V18H21V5M4,18H9V5H4M10,18H15V5H10V18Z";
|
|
145
145
|
const Ve = k({
|
|
146
146
|
name: "CustomDialog",
|
|
@@ -176,9 +176,9 @@ const Ve = k({
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
}), Le = { class: "close-btn" };
|
|
179
|
-
function we(e, t, n, r,
|
|
180
|
-
const l =
|
|
181
|
-
return
|
|
179
|
+
function we(e, t, n, r, s, m) {
|
|
180
|
+
const l = a("v-btn"), p = a("v-card-text"), g = a("v-spacer"), u = a("v-card-actions"), d = a("v-card"), b = a("v-dialog");
|
|
181
|
+
return i(), h(b, {
|
|
182
182
|
"model-value": e.value,
|
|
183
183
|
"max-width": "960",
|
|
184
184
|
persistent: e.persistent,
|
|
@@ -189,13 +189,13 @@ function we(e, t, n, r, a, m) {
|
|
|
189
189
|
}, {
|
|
190
190
|
default: o(() => [
|
|
191
191
|
T(e.$slots, "card", {}, () => [
|
|
192
|
-
|
|
192
|
+
c(d, {
|
|
193
193
|
title: e.title,
|
|
194
194
|
class: E(e.fullHeight ? "ff-full-height" : "")
|
|
195
195
|
}, {
|
|
196
196
|
append: o(() => [
|
|
197
197
|
$("div", Le, [
|
|
198
|
-
|
|
198
|
+
c(l, {
|
|
199
199
|
variant: "text",
|
|
200
200
|
icon: e.mdiClose(),
|
|
201
201
|
onClick: t[0] || (t[0] = (v) => e.$emit("close"))
|
|
@@ -203,16 +203,16 @@ function we(e, t, n, r, a, m) {
|
|
|
203
203
|
])
|
|
204
204
|
]),
|
|
205
205
|
default: o(() => [
|
|
206
|
-
|
|
206
|
+
c(p, null, {
|
|
207
207
|
default: o(() => [
|
|
208
208
|
T(e.$slots, "default")
|
|
209
209
|
]),
|
|
210
210
|
_: 3
|
|
211
211
|
}),
|
|
212
|
-
e.noFooter ? L("", !0) : (
|
|
212
|
+
e.noFooter ? L("", !0) : (i(), h(u, { key: 0 }, {
|
|
213
213
|
default: o(() => [
|
|
214
214
|
T(e.$slots, "left-footer"),
|
|
215
|
-
|
|
215
|
+
c(g),
|
|
216
216
|
T(e.$slots, "footer")
|
|
217
217
|
]),
|
|
218
218
|
_: 3
|
|
@@ -238,9 +238,9 @@ const He = /* @__PURE__ */ A(Ve, [["render", we]]), Se = k({
|
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
|
-
function Pe(e, t, n, r,
|
|
242
|
-
const l =
|
|
243
|
-
return
|
|
241
|
+
function Pe(e, t, n, r, s, m) {
|
|
242
|
+
const l = a("v-avatar");
|
|
243
|
+
return i(), h(l, {
|
|
244
244
|
class: E(`ff-avatar avatar-${e.size}-${e.item.initials.length >= 3 ? "l" : "s"}`),
|
|
245
245
|
size: e.size
|
|
246
246
|
}, {
|
|
@@ -250,7 +250,7 @@ function Pe(e, t, n, r, a, m) {
|
|
|
250
250
|
_: 1
|
|
251
251
|
}, 8, ["class", "size"]);
|
|
252
252
|
}
|
|
253
|
-
const
|
|
253
|
+
const Y = /* @__PURE__ */ A(Se, [["render", Pe]]), z = (e) => e.surname ? `${e.name} ${e.surname}` : e.name, On = (e) => e == null ? "" : e.name ? e.surname ? `${e.name.trim().substring(0, 1).toUpperCase()}${e.surname.trim().substring(0, 1).toUpperCase()}` : e.name.trim().substring(0, 1).toUpperCase() : e.surname ? e.surname.trim().substring(0, 1).toUpperCase() : "", Ue = k({
|
|
254
254
|
name: "UserAvatar",
|
|
255
255
|
props: {
|
|
256
256
|
user: {
|
|
@@ -270,26 +270,26 @@ const K = /* @__PURE__ */ A(Se, [["render", Pe]]), z = (e) => e.surname ? `${e.n
|
|
|
270
270
|
return { fullName: V(() => z(e.user)) };
|
|
271
271
|
}
|
|
272
272
|
}), De = { key: 1 };
|
|
273
|
-
function Ee(e, t, n, r,
|
|
274
|
-
const l =
|
|
275
|
-
return
|
|
273
|
+
function Ee(e, t, n, r, s, m) {
|
|
274
|
+
const l = a("v-img"), p = a("v-avatar");
|
|
275
|
+
return i(), h(p, {
|
|
276
276
|
color: e.user.avatar_thumb ? "light_grey_bg" : e.user.color ?? "primary",
|
|
277
277
|
class: E(`avatar-${e.size}-${e.user.initials.length >= 3 ? "l" : "s"}`),
|
|
278
278
|
size: e.size
|
|
279
279
|
}, {
|
|
280
280
|
default: o(() => [
|
|
281
|
-
e.user.avatar_thumb ? (
|
|
281
|
+
e.user.avatar_thumb ? (i(), h(l, {
|
|
282
282
|
key: 0,
|
|
283
283
|
alt: e.fullName,
|
|
284
284
|
src: `${e.baseUrl}/${e.user.avatar_thumb}`
|
|
285
|
-
}, null, 8, ["alt", "src"])) : (
|
|
285
|
+
}, null, 8, ["alt", "src"])) : (i(), _("span", De, y(e.user.initials), 1))
|
|
286
286
|
]),
|
|
287
287
|
_: 1
|
|
288
288
|
}, 8, ["color", "class", "size"]);
|
|
289
289
|
}
|
|
290
290
|
const B = /* @__PURE__ */ A(Ue, [["render", Ee]]), Te = k({
|
|
291
291
|
name: "UserMenu",
|
|
292
|
-
components: { AccountAvatar:
|
|
292
|
+
components: { AccountAvatar: Y, UserAvatar: B },
|
|
293
293
|
methods: {
|
|
294
294
|
mdiLogout() {
|
|
295
295
|
return ke;
|
|
@@ -343,29 +343,29 @@ const B = /* @__PURE__ */ A(Ue, [["render", Ee]]), Te = k({
|
|
|
343
343
|
"log-out"
|
|
344
344
|
],
|
|
345
345
|
setup(e, { emit: t }) {
|
|
346
|
-
const { t: n } = I(), r = S(!1),
|
|
347
|
-
return { isOpen: r, userName: m, langMenu:
|
|
346
|
+
const { t: n } = I(), r = S(!1), s = S(!1), m = V(() => e.currentUser != null ? z(e.currentUser) : "-"), l = V(() => e.currentAccounts.map((v) => v.id)), p = V(() => e.currentAccounts.length === 1 ? z(e.currentAccounts[0]) : `${e.currentAccounts.length} ${n("aff.workspaces")}`);
|
|
347
|
+
return { isOpen: r, userName: m, langMenu: s, accountIds: l, accountTitle: p, selectAccount: (v) => {
|
|
348
348
|
e.multipleAccounts ? t(l.value.indexOf(v.id) >= 0 ? "unselect-account" : "select-account", v) : t("select-account", v);
|
|
349
349
|
}, openProfile: () => {
|
|
350
350
|
t("open-profile"), r.value = !1;
|
|
351
351
|
}, switchLang: (v) => {
|
|
352
|
-
t("switch-lang", v),
|
|
352
|
+
t("switch-lang", v), s.value = !1;
|
|
353
353
|
}, logOut: () => {
|
|
354
354
|
t("log-out"), r.value = !1;
|
|
355
355
|
} };
|
|
356
356
|
}
|
|
357
357
|
}), Ie = { class: "ff-user-btn-text" }, Oe = { class: "name" }, qe = { class: "comp" }, Ne = { class: "as-avatar" }, Fe = ["src"], ze = ["src"], Be = { class: "as-avatar" }, Re = { class: "as-avatar" };
|
|
358
|
-
function je(e, t, n, r,
|
|
359
|
-
const l =
|
|
360
|
-
return
|
|
358
|
+
function je(e, t, n, r, s, m) {
|
|
359
|
+
const l = a("UserAvatar"), p = a("v-btn"), g = a("v-list-subheader"), u = 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"), O = a("v-card-text"), R = a("v-card");
|
|
360
|
+
return i(), h(H, {
|
|
361
361
|
modelValue: e.isOpen,
|
|
362
362
|
"onUpdate:modelValue": t[2] || (t[2] = (M) => e.isOpen = M),
|
|
363
363
|
"close-on-content-click": !1
|
|
364
364
|
}, {
|
|
365
365
|
activator: o(({ props: M }) => [
|
|
366
|
-
|
|
366
|
+
c(p, D(M, { class: "ff-user-btn" }), {
|
|
367
367
|
default: o(() => [
|
|
368
|
-
|
|
368
|
+
c(l, {
|
|
369
369
|
size: 32,
|
|
370
370
|
user: e.currentUser,
|
|
371
371
|
"base-url": e.baseUrl + "/avatars"
|
|
@@ -379,24 +379,24 @@ function je(e, t, n, r, a, m) {
|
|
|
379
379
|
}, 16)
|
|
380
380
|
]),
|
|
381
381
|
default: o(() => [
|
|
382
|
-
|
|
382
|
+
c(R, { class: "ff-user-manu-card" }, {
|
|
383
383
|
default: o(() => [
|
|
384
|
-
|
|
384
|
+
c(O, { class: "pa-0" }, {
|
|
385
385
|
default: o(() => [
|
|
386
|
-
|
|
386
|
+
c(f, null, {
|
|
387
387
|
default: o(() => [
|
|
388
|
-
|
|
388
|
+
c(g, null, {
|
|
389
389
|
default: o(() => [
|
|
390
390
|
C(y(e.$t("aff.Logged in as")) + ":", 1)
|
|
391
391
|
]),
|
|
392
392
|
_: 1
|
|
393
393
|
}),
|
|
394
|
-
u
|
|
394
|
+
c(u, {
|
|
395
395
|
title: e.userName,
|
|
396
396
|
subtitle: e.currentUser?.email ?? ""
|
|
397
397
|
}, {
|
|
398
398
|
prepend: o(() => [
|
|
399
|
-
|
|
399
|
+
c(l, {
|
|
400
400
|
size: 32,
|
|
401
401
|
user: e.currentUser,
|
|
402
402
|
"base-url": e.baseUrl + "/avatars"
|
|
@@ -404,27 +404,27 @@ function je(e, t, n, r, a, m) {
|
|
|
404
404
|
]),
|
|
405
405
|
_: 1
|
|
406
406
|
}, 8, ["title", "subtitle"]),
|
|
407
|
-
|
|
407
|
+
c(g, null, {
|
|
408
408
|
default: o(() => [
|
|
409
409
|
C(y(e.$t("aff.Choose active company")) + ":", 1)
|
|
410
410
|
]),
|
|
411
411
|
_: 1
|
|
412
412
|
}),
|
|
413
|
-
(
|
|
413
|
+
(i(!0), _(P, null, U(e.accounts, (M) => (i(), h(u, {
|
|
414
414
|
key: M.id,
|
|
415
415
|
onClick: (j) => e.selectAccount(M)
|
|
416
416
|
}, {
|
|
417
417
|
prepend: o(() => [
|
|
418
|
-
|
|
418
|
+
c(d, { item: M }, null, 8, ["item"])
|
|
419
419
|
]),
|
|
420
420
|
append: o(() => [
|
|
421
|
-
|
|
421
|
+
c(v, {
|
|
422
422
|
color: e.accountIds.indexOf(M.id) >= 0 ? "primary" : "white",
|
|
423
423
|
icon: e.mdiCheck()
|
|
424
424
|
}, null, 8, ["color", "icon"])
|
|
425
425
|
]),
|
|
426
426
|
default: o(() => [
|
|
427
|
-
|
|
427
|
+
c(b, null, {
|
|
428
428
|
default: o(() => [
|
|
429
429
|
C(y(e.formatFullName(M)), 1)
|
|
430
430
|
]),
|
|
@@ -433,13 +433,13 @@ function je(e, t, n, r, a, m) {
|
|
|
433
433
|
]),
|
|
434
434
|
_: 2
|
|
435
435
|
}, 1032, ["onClick"]))), 128)),
|
|
436
|
-
|
|
436
|
+
c(g, null, {
|
|
437
437
|
default: o(() => [
|
|
438
438
|
C(y(e.$t("aff.Actions")) + ":", 1)
|
|
439
439
|
]),
|
|
440
440
|
_: 1
|
|
441
441
|
}),
|
|
442
|
-
e.langs.length > 1 ? (
|
|
442
|
+
e.langs.length > 1 ? (i(), h(u, {
|
|
443
443
|
key: 0,
|
|
444
444
|
"append-icon": e.mdiMenuDown(),
|
|
445
445
|
onClick: t[1] || (t[1] = (M) => e.langMenu = !0)
|
|
@@ -455,9 +455,9 @@ function je(e, t, n, r, a, m) {
|
|
|
455
455
|
])
|
|
456
456
|
]),
|
|
457
457
|
default: o(() => [
|
|
458
|
-
|
|
458
|
+
c(b, null, {
|
|
459
459
|
default: o(() => [
|
|
460
|
-
|
|
460
|
+
c(H, {
|
|
461
461
|
modelValue: e.langMenu,
|
|
462
462
|
"onUpdate:modelValue": t[0] || (t[0] = (M) => e.langMenu = M),
|
|
463
463
|
"close-on-content-click": !1
|
|
@@ -466,9 +466,9 @@ function je(e, t, n, r, a, m) {
|
|
|
466
466
|
$("span", x(ee(M)), y(e.currentLang.title), 17)
|
|
467
467
|
]),
|
|
468
468
|
default: o(() => [
|
|
469
|
-
|
|
469
|
+
c(f, null, {
|
|
470
470
|
default: o(() => [
|
|
471
|
-
(
|
|
471
|
+
(i(!0), _(P, null, U(e.langs, (M) => (i(), h(u, {
|
|
472
472
|
key: M.value,
|
|
473
473
|
title: M.title,
|
|
474
474
|
onClick: (j) => e.switchLang(M)
|
|
@@ -496,26 +496,26 @@ function je(e, t, n, r, a, m) {
|
|
|
496
496
|
]),
|
|
497
497
|
_: 1
|
|
498
498
|
}, 8, ["append-icon"])) : L("", !0),
|
|
499
|
-
u
|
|
499
|
+
c(u, {
|
|
500
500
|
title: e.$t("aff.Profile settings"),
|
|
501
501
|
onClick: e.openProfile
|
|
502
502
|
}, {
|
|
503
503
|
prepend: o(() => [
|
|
504
504
|
$("div", Be, [
|
|
505
|
-
|
|
505
|
+
c(v, {
|
|
506
506
|
icon: e.mdiAccount()
|
|
507
507
|
}, null, 8, ["icon"])
|
|
508
508
|
])
|
|
509
509
|
]),
|
|
510
510
|
_: 1
|
|
511
511
|
}, 8, ["title", "onClick"]),
|
|
512
|
-
u
|
|
512
|
+
c(u, {
|
|
513
513
|
title: e.$t("aff.Log out"),
|
|
514
514
|
onClick: e.logOut
|
|
515
515
|
}, {
|
|
516
516
|
prepend: o(() => [
|
|
517
517
|
$("div", Re, [
|
|
518
|
-
|
|
518
|
+
c(v, {
|
|
519
519
|
icon: e.mdiLogout()
|
|
520
520
|
}, null, 8, ["icon"])
|
|
521
521
|
])
|
|
@@ -535,7 +535,7 @@ function je(e, t, n, r, a, m) {
|
|
|
535
535
|
_: 1
|
|
536
536
|
}, 8, ["modelValue"]);
|
|
537
537
|
}
|
|
538
|
-
const
|
|
538
|
+
const qn = /* @__PURE__ */ A(Te, [["render", je]]), Ge = k({
|
|
539
539
|
name: "ErrorDialog",
|
|
540
540
|
props: {
|
|
541
541
|
show: {
|
|
@@ -560,35 +560,35 @@ const Dn = /* @__PURE__ */ A(Te, [["render", je]]), Ge = k({
|
|
|
560
560
|
const { t } = I();
|
|
561
561
|
return { title: V(() => e.errorTitle ?? t("aff.Error occurred")) };
|
|
562
562
|
}
|
|
563
|
-
}), Ze = ["innerHTML"],
|
|
564
|
-
function
|
|
565
|
-
const l =
|
|
566
|
-
return
|
|
563
|
+
}), Ze = ["innerHTML"], Ye = { key: 1 };
|
|
564
|
+
function Ke(e, t, n, r, s, m) {
|
|
565
|
+
const l = a("v-card-text"), p = a("v-spacer"), g = a("v-btn"), u = a("v-card-actions"), d = a("v-card"), b = a("v-dialog");
|
|
566
|
+
return i(), h(b, {
|
|
567
567
|
"max-width": "500",
|
|
568
568
|
"model-value": e.show,
|
|
569
569
|
onClose: t[1] || (t[1] = (v) => e.$emit("close"))
|
|
570
570
|
}, {
|
|
571
571
|
default: o(() => [
|
|
572
|
-
|
|
572
|
+
c(d, {
|
|
573
573
|
title: e.title,
|
|
574
574
|
theme: "dark"
|
|
575
575
|
}, {
|
|
576
576
|
default: o(() => [
|
|
577
|
-
|
|
577
|
+
c(l, null, {
|
|
578
578
|
default: o(() => [
|
|
579
|
-
e.errorDetails ? (
|
|
579
|
+
e.errorDetails ? (i(), _("span", {
|
|
580
580
|
key: 0,
|
|
581
581
|
innerHTML: e.errorDetails
|
|
582
582
|
}, null, 8, Ze)) : L("", !0),
|
|
583
583
|
t[2] || (t[2] = C()),
|
|
584
|
-
e.errorCode ? (
|
|
584
|
+
e.errorCode ? (i(), _("span", Ye, "(" + y(e.$t("aff.Code")) + ": " + y(e.errorCode) + ")", 1)) : L("", !0)
|
|
585
585
|
]),
|
|
586
586
|
_: 1
|
|
587
587
|
}),
|
|
588
|
-
u
|
|
588
|
+
c(u, null, {
|
|
589
589
|
default: o(() => [
|
|
590
|
-
|
|
591
|
-
|
|
590
|
+
c(p),
|
|
591
|
+
c(g, {
|
|
592
592
|
text: e.$t("aff.Close"),
|
|
593
593
|
color: "primary",
|
|
594
594
|
variant: "flat",
|
|
@@ -604,7 +604,7 @@ function Ye(e, t, n, r, a, m) {
|
|
|
604
604
|
_: 1
|
|
605
605
|
}, 8, ["model-value"]);
|
|
606
606
|
}
|
|
607
|
-
const
|
|
607
|
+
const Nn = /* @__PURE__ */ A(Ge, [["render", Ke]]), Je = k({
|
|
608
608
|
name: "FieldRow",
|
|
609
609
|
props: {
|
|
610
610
|
label: {
|
|
@@ -624,13 +624,13 @@ const En = /* @__PURE__ */ A(Ge, [["render", Ye]]), Je = k({
|
|
|
624
624
|
return {};
|
|
625
625
|
}
|
|
626
626
|
}), We = { class: "lbl-col text-body-2" }, Xe = { class: "lbl" }, Qe = ["innerHTML"], xe = { class: "inp-col" }, et = ["innerHTML"];
|
|
627
|
-
function tt(e, t, n, r,
|
|
628
|
-
return
|
|
627
|
+
function tt(e, t, n, r, s, m) {
|
|
628
|
+
return i(), _("div", {
|
|
629
629
|
class: E(["fld-row mobile-margin", e.errorMessage ? "fld-err" : ""])
|
|
630
630
|
}, [
|
|
631
631
|
$("div", We, [
|
|
632
632
|
$("div", Xe, y(e.label), 1),
|
|
633
|
-
e.description ? (
|
|
633
|
+
e.description ? (i(), _("div", {
|
|
634
634
|
key: 0,
|
|
635
635
|
class: "descr",
|
|
636
636
|
innerHTML: e.description
|
|
@@ -642,16 +642,16 @@ function tt(e, t, n, r, a, m) {
|
|
|
642
642
|
errorMessages: e.errorMessage
|
|
643
643
|
})
|
|
644
644
|
]),
|
|
645
|
-
e.description ? (
|
|
645
|
+
e.description ? (i(), _("div", {
|
|
646
646
|
key: 0,
|
|
647
647
|
class: "descr-col text-body-2",
|
|
648
648
|
innerHTML: e.description
|
|
649
649
|
}, null, 8, et)) : L("", !0)
|
|
650
650
|
], 2);
|
|
651
651
|
}
|
|
652
|
-
const
|
|
652
|
+
const Fn = /* @__PURE__ */ A(Je, [["render", tt]]), nt = k({
|
|
653
653
|
name: "ColorPicker",
|
|
654
|
-
components: { UserAvatar: B, AccountAvatar:
|
|
654
|
+
components: { UserAvatar: B, AccountAvatar: Y },
|
|
655
655
|
setup() {
|
|
656
656
|
const e = S(null), t = (() => {
|
|
657
657
|
const n = [];
|
|
@@ -662,22 +662,22 @@ const Tn = /* @__PURE__ */ A(Je, [["render", tt]]), nt = k({
|
|
|
662
662
|
return { val: e, colors: t };
|
|
663
663
|
}
|
|
664
664
|
});
|
|
665
|
-
function ot(e, t, n, r,
|
|
666
|
-
const l =
|
|
667
|
-
return
|
|
665
|
+
function ot(e, t, n, r, s, m) {
|
|
666
|
+
const l = a("v-avatar"), p = a("v-list-item-title"), g = a("v-list-item"), u = a("v-list"), d = a("v-card-text"), b = a("v-card");
|
|
667
|
+
return i(), h(b, { class: "ff-col-pckr" }, {
|
|
668
668
|
default: o(() => [
|
|
669
|
-
|
|
669
|
+
c(d, { style: { width: "305px", padding: "0 8px" } }, {
|
|
670
670
|
default: o(() => [
|
|
671
|
-
u
|
|
671
|
+
c(u, { style: { width: "289px" } }, {
|
|
672
672
|
default: o(() => [
|
|
673
|
-
(
|
|
673
|
+
(i(!0), _(P, null, U(e.colors, (v) => (i(), h(g, {
|
|
674
674
|
key: v,
|
|
675
675
|
onClick: (f) => e.$emit("change", v)
|
|
676
676
|
}, {
|
|
677
677
|
default: o(() => [
|
|
678
|
-
|
|
678
|
+
c(p, null, {
|
|
679
679
|
default: o(() => [
|
|
680
|
-
|
|
680
|
+
c(l, {
|
|
681
681
|
color: v,
|
|
682
682
|
size: "32"
|
|
683
683
|
}, null, 8, ["color"])
|
|
@@ -722,9 +722,9 @@ const rt = /* @__PURE__ */ A(nt, [["render", ot]]), lt = k({
|
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
724
|
});
|
|
725
|
-
function st(e, t, n, r,
|
|
726
|
-
const l =
|
|
727
|
-
return
|
|
725
|
+
function st(e, t, n, r, s, m) {
|
|
726
|
+
const l = a("v-col");
|
|
727
|
+
return i(), h(l, {
|
|
728
728
|
cols: e.cols,
|
|
729
729
|
sm: e.sm,
|
|
730
730
|
class: "fld"
|
|
@@ -747,9 +747,9 @@ const at = /* @__PURE__ */ A(lt, [["render", st]]), it = (e, t, n) => (Object.de
|
|
|
747
747
|
writable: !1,
|
|
748
748
|
configurable: !1,
|
|
749
749
|
enumerable: !1
|
|
750
|
-
}), n), ut = (e, t, n) => e.reduce((r,
|
|
751
|
-
const m =
|
|
752
|
-
return r[m] =
|
|
750
|
+
}), n), ut = (e, t, n) => e.reduce((r, s) => {
|
|
751
|
+
const m = s[t];
|
|
752
|
+
return r[m] = s[n], r;
|
|
753
753
|
}, {}), X = [
|
|
754
754
|
{ title: "lng.sv-se", value: "sv_SE" },
|
|
755
755
|
// $t("lng.sv-se")
|
|
@@ -811,7 +811,7 @@ const at = /* @__PURE__ */ A(lt, [["render", st]]), it = (e, t, n) => (Object.de
|
|
|
811
811
|
// $t("lng.ro-ro")
|
|
812
812
|
{ title: "lng.pt-pt", value: "pt_PT" }
|
|
813
813
|
// $t("lng.pt-pt")
|
|
814
|
-
],
|
|
814
|
+
], zn = [
|
|
815
815
|
{ title: "lngin.et-ee", value: "et_EE" },
|
|
816
816
|
// $t("lngin.et-ee")
|
|
817
817
|
{ title: "lngin.lv-lv", value: "lv_LV" },
|
|
@@ -850,6 +850,9 @@ const at = /* @__PURE__ */ A(lt, [["render", st]]), it = (e, t, n) => (Object.de
|
|
|
850
850
|
default:
|
|
851
851
|
return e.replace("-", "_");
|
|
852
852
|
}
|
|
853
|
+
},
|
|
854
|
+
ToShortFormat(e) {
|
|
855
|
+
return e.split(/_|-/)[0] ?? e;
|
|
853
856
|
}
|
|
854
857
|
}, ct = k({
|
|
855
858
|
methods: {
|
|
@@ -880,21 +883,21 @@ const at = /* @__PURE__ */ A(lt, [["render", st]]), it = (e, t, n) => (Object.de
|
|
|
880
883
|
key: 0,
|
|
881
884
|
class: "email"
|
|
882
885
|
}, vt = { class: "email" };
|
|
883
|
-
function _t(e, t, n, r,
|
|
884
|
-
const l =
|
|
885
|
-
return e.currentUser ? (
|
|
886
|
+
function _t(e, t, n, r, s, m) {
|
|
887
|
+
const l = a("UserAvatar"), p = a("v-col"), g = a("v-icon"), u = a("v-btn"), d = a("v-row");
|
|
888
|
+
return e.currentUser ? (i(), h(d, {
|
|
886
889
|
key: 0,
|
|
887
890
|
class: "mt-6 prof-hor"
|
|
888
891
|
}, {
|
|
889
892
|
default: o(() => [
|
|
890
|
-
|
|
893
|
+
c(p, {
|
|
891
894
|
cols: "12",
|
|
892
895
|
sm: "7",
|
|
893
896
|
class: "profile"
|
|
894
897
|
}, {
|
|
895
898
|
default: o(() => [
|
|
896
899
|
$("div", dt, [
|
|
897
|
-
|
|
900
|
+
c(l, {
|
|
898
901
|
size: 96,
|
|
899
902
|
user: e.currentUser,
|
|
900
903
|
"base-url": e.baseUrl + "/avatars"
|
|
@@ -902,44 +905,44 @@ function _t(e, t, n, r, a, m) {
|
|
|
902
905
|
]),
|
|
903
906
|
$("div", mt, [
|
|
904
907
|
$("div", pt, y(e.fullName), 1),
|
|
905
|
-
e.currentUser.email ? (
|
|
906
|
-
$("div", vt, y(e.$t("Language")) + ": " + y(e.langauge), 1)
|
|
908
|
+
e.currentUser.email ? (i(), _("div", ft, y(e.currentUser.email), 1)) : L("", !0),
|
|
909
|
+
$("div", vt, y(e.$t("aff.Language")) + ": " + y(e.langauge), 1)
|
|
907
910
|
])
|
|
908
911
|
]),
|
|
909
912
|
_: 1
|
|
910
913
|
}),
|
|
911
|
-
|
|
914
|
+
c(p, {
|
|
912
915
|
cols: "12",
|
|
913
916
|
sm: "5",
|
|
914
917
|
class: "buttons"
|
|
915
918
|
}, {
|
|
916
919
|
default: o(() => [
|
|
917
920
|
$("div", null, [
|
|
918
|
-
u
|
|
921
|
+
c(u, {
|
|
919
922
|
variant: "text",
|
|
920
923
|
color: "primary",
|
|
921
924
|
onClick: t[0] || (t[0] = (b) => e.$emit("edit-profile"))
|
|
922
925
|
}, {
|
|
923
926
|
default: o(() => [
|
|
924
|
-
|
|
927
|
+
c(g, {
|
|
925
928
|
icon: e.mdiPencil(),
|
|
926
929
|
class: "mr-1"
|
|
927
930
|
}, null, 8, ["icon"]),
|
|
928
|
-
C(" " + y(e.$t("Edit info")), 1)
|
|
931
|
+
C(" " + y(e.$t("aff.Edit info")), 1)
|
|
929
932
|
]),
|
|
930
933
|
_: 1
|
|
931
934
|
}),
|
|
932
|
-
u
|
|
935
|
+
c(u, {
|
|
933
936
|
variant: "text",
|
|
934
937
|
color: "primary",
|
|
935
938
|
onClick: t[1] || (t[1] = (b) => e.$emit("change-password"))
|
|
936
939
|
}, {
|
|
937
940
|
default: o(() => [
|
|
938
|
-
|
|
941
|
+
c(g, {
|
|
939
942
|
icon: e.mdiKeyVariant(),
|
|
940
943
|
class: "mr-1"
|
|
941
944
|
}, null, 8, ["icon"]),
|
|
942
|
-
C(" " + y(e.$t("Change password")), 1)
|
|
945
|
+
C(" " + y(e.$t("aff.Change password")), 1)
|
|
943
946
|
]),
|
|
944
947
|
_: 1
|
|
945
948
|
})
|
|
@@ -951,25 +954,25 @@ function _t(e, t, n, r, a, m) {
|
|
|
951
954
|
_: 1
|
|
952
955
|
})) : L("", !0);
|
|
953
956
|
}
|
|
954
|
-
const
|
|
957
|
+
const Bn = /* @__PURE__ */ A(ct, [["render", _t]]), Rn = (e) => {
|
|
955
958
|
for (const t in e)
|
|
956
959
|
Object.prototype.hasOwnProperty.call(e, t) && (e[t] = null);
|
|
957
|
-
}, gt = (e, t, n, r,
|
|
960
|
+
}, gt = (e, t, n, r, s, m = null) => {
|
|
958
961
|
if (typeof e == "string") {
|
|
959
962
|
r(e);
|
|
960
963
|
return;
|
|
961
964
|
}
|
|
962
965
|
if (e.response && e.response.status) {
|
|
963
966
|
if (e.response.status === 400 && e.response.data) {
|
|
964
|
-
$t(e, t, n, r,
|
|
967
|
+
$t(e, t, n, r, s, m);
|
|
965
968
|
return;
|
|
966
969
|
}
|
|
967
970
|
if (e.response.status === 409 && e.response.data) {
|
|
968
|
-
ht(e, r,
|
|
971
|
+
ht(e, r, s);
|
|
969
972
|
return;
|
|
970
973
|
}
|
|
971
974
|
if (e.response.status === 417 && e.response.data) {
|
|
972
|
-
bt(r,
|
|
975
|
+
bt(r, s);
|
|
973
976
|
return;
|
|
974
977
|
}
|
|
975
978
|
}
|
|
@@ -982,47 +985,47 @@ const On = /* @__PURE__ */ A(ct, [["render", _t]]), qn = (e) => {
|
|
|
982
985
|
const t = e.querySelector("input, textarea, .ec-inp-ctrl");
|
|
983
986
|
t?.focus();
|
|
984
987
|
}, 200);
|
|
985
|
-
}, $t = (e, t, n, r,
|
|
988
|
+
}, $t = (e, t, n, r, s, m = null) => {
|
|
986
989
|
const l = [];
|
|
987
|
-
let p = !1,
|
|
990
|
+
let p = !1, g = {};
|
|
988
991
|
if (Array.isArray(e.response.data))
|
|
989
|
-
for (let
|
|
990
|
-
l.push(e.response.data[
|
|
992
|
+
for (let u = 0; u < e.response.data.length; u++)
|
|
993
|
+
l.push(e.response.data[u]);
|
|
991
994
|
else
|
|
992
|
-
for (const
|
|
993
|
-
if (Object.prototype.hasOwnProperty.call(e.response.data,
|
|
994
|
-
const d = e.response.data[
|
|
995
|
-
if (kt(
|
|
995
|
+
for (const u in e.response.data)
|
|
996
|
+
if (Object.prototype.hasOwnProperty.call(e.response.data, u)) {
|
|
997
|
+
const d = e.response.data[u];
|
|
998
|
+
if (kt(g, t, u, d[0]))
|
|
996
999
|
p = !0;
|
|
997
1000
|
else {
|
|
998
|
-
const v = m && m[
|
|
1001
|
+
const v = m && m[u] ? m[u] : u;
|
|
999
1002
|
l.push({ error_message: `${v}: ${d}` });
|
|
1000
1003
|
}
|
|
1001
1004
|
}
|
|
1002
1005
|
l.length > 0 && (l.length === 1 ? r(l[0]) : r({
|
|
1003
|
-
message:
|
|
1004
|
-
details: "<ul><li>" + l.map((
|
|
1005
|
-
})), p && (n != null && (n.value = { ...n.value, ...
|
|
1006
|
+
message: s("aff.Some errors occured:"),
|
|
1007
|
+
details: "<ul><li>" + l.map((u) => u.error_message).join("</li><li>") + "</li></ul>"
|
|
1008
|
+
})), p && (n != null && (n.value = { ...n.value, ...g }), yt());
|
|
1006
1009
|
}, ht = (e, t, n) => {
|
|
1007
1010
|
let r = [];
|
|
1008
|
-
typeof e.response.data == "string" ? r.push(e.response.data) : e.response.data.errors && (r = e.response.data.errors.map((
|
|
1009
|
-
title: n("Concurrency error"),
|
|
1011
|
+
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({
|
|
1012
|
+
title: n("aff.Concurrency error"),
|
|
1010
1013
|
details: r.length === 1 ? r[0] : "<ul><li>" + r.join("</li><li>") + "</li></ul>",
|
|
1011
1014
|
code: 409
|
|
1012
1015
|
});
|
|
1013
1016
|
}, bt = (e, t) => {
|
|
1014
1017
|
e({
|
|
1015
|
-
title: t("Product version mismatch."),
|
|
1016
|
-
details: t("Please reload the page."),
|
|
1018
|
+
title: t("aff.Product version mismatch."),
|
|
1019
|
+
details: t("aff.Please reload the page."),
|
|
1017
1020
|
code: 417
|
|
1018
1021
|
});
|
|
1019
1022
|
}, kt = (e, t, n, r) => {
|
|
1020
|
-
const
|
|
1023
|
+
const s = n.split(".");
|
|
1021
1024
|
let m = t, l = e;
|
|
1022
|
-
for (;
|
|
1023
|
-
const p =
|
|
1025
|
+
for (; s.length > 0; ) {
|
|
1026
|
+
const p = s.shift();
|
|
1024
1027
|
if (p) {
|
|
1025
|
-
if (
|
|
1028
|
+
if (s.length === 0)
|
|
1026
1029
|
return /^\d+$/.test(p) ? !1 : Object.prototype.hasOwnProperty.call(m, p) ? (l[p] = r, !0) : !1;
|
|
1027
1030
|
if (/^\d+$/.test(p))
|
|
1028
1031
|
m = m[parseInt(p)], l[m.tmp_id] || (l[m.tmp_id] = {}), l = l[m.tmp_id];
|
|
@@ -1033,6 +1036,9 @@ const On = /* @__PURE__ */ A(ct, [["render", _t]]), qn = (e) => {
|
|
|
1033
1036
|
}
|
|
1034
1037
|
}
|
|
1035
1038
|
return !1;
|
|
1039
|
+
}, jn = (e, t) => {
|
|
1040
|
+
for (const n in t)
|
|
1041
|
+
Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
1036
1042
|
}, At = k({
|
|
1037
1043
|
name: "ProfileEditDialog",
|
|
1038
1044
|
methods: {
|
|
@@ -1040,7 +1046,7 @@ const On = /* @__PURE__ */ A(ct, [["render", _t]]), qn = (e) => {
|
|
|
1040
1046
|
return Ae;
|
|
1041
1047
|
}
|
|
1042
1048
|
},
|
|
1043
|
-
components: { ColorPicker: rt, UserAvatar: B, AccountAvatar:
|
|
1049
|
+
components: { ColorPicker: rt, UserAvatar: B, AccountAvatar: Y, FieldLabel: at, CustomDialog: He },
|
|
1044
1050
|
props: {
|
|
1045
1051
|
showDialog: {
|
|
1046
1052
|
type: Boolean,
|
|
@@ -1065,14 +1071,14 @@ const On = /* @__PURE__ */ A(ct, [["render", _t]]), qn = (e) => {
|
|
|
1065
1071
|
},
|
|
1066
1072
|
emits: ["close"],
|
|
1067
1073
|
setup(e, { emit: t }) {
|
|
1068
|
-
const { t: n } = I(), { showError: r } = ae(),
|
|
1069
|
-
{ value: "photo", text: n("Photo") },
|
|
1070
|
-
{ value: "color", text: n("Color") }
|
|
1074
|
+
const { t: n } = I(), { showError: r } = ae(), 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), u = V(() => [
|
|
1075
|
+
{ value: "photo", text: n("aff.Photo") },
|
|
1076
|
+
{ value: "color", text: n("aff.Color") }
|
|
1071
1077
|
]), d = V(() => X.filter((v) => e.systemLanguages.indexOf(v.value) >= 0).map((v) => ({ title: n(v.title), value: v.value })));
|
|
1072
|
-
return { formData:
|
|
1073
|
-
|
|
1074
|
-
const v = { ...
|
|
1075
|
-
p.value == "color" && (v.avatar_thumb = null), v.locale = l.value, e.updateProfileFx(v).then(() => t("close")).catch((f) => gt(f,
|
|
1078
|
+
return { formData: s, localErrors: m, languages: d, lang: l, identity: p, identities: u, loading: g, saveClick: () => {
|
|
1079
|
+
g.value = !0;
|
|
1080
|
+
const v = { ...s.value };
|
|
1081
|
+
p.value == "color" && (v.avatar_thumb = null), v.locale = l.value, e.updateProfileFx(v).then(() => t("close")).catch((f) => gt(f, s.value, m, r, n)).finally(() => g.value = !1);
|
|
1076
1082
|
} };
|
|
1077
1083
|
}
|
|
1078
1084
|
}), Ct = {
|
|
@@ -1082,47 +1088,47 @@ const On = /* @__PURE__ */ A(ct, [["render", _t]]), qn = (e) => {
|
|
|
1082
1088
|
key: 0,
|
|
1083
1089
|
class: "sel-ident"
|
|
1084
1090
|
};
|
|
1085
|
-
function Ht(e, t, n, r,
|
|
1086
|
-
const l =
|
|
1087
|
-
return
|
|
1091
|
+
function Ht(e, t, n, r, s, m) {
|
|
1092
|
+
const l = a("v-avatar"), p = a("v-radio"), g = a("v-radio-group"), u = a("v-icon"), d = a("v-btn"), b = a("ColorPicker"), v = a("v-menu"), f = a("v-col"), H = a("v-text-field"), O = a("FieldLabel"), R = a("v-select"), M = a("v-row"), j = a("CustomDialog");
|
|
1093
|
+
return i(), h(j, {
|
|
1088
1094
|
value: e.showDialog,
|
|
1089
|
-
title: e.$t("Your profile"),
|
|
1095
|
+
title: e.$t("aff.Your profile"),
|
|
1090
1096
|
persistent: "",
|
|
1091
1097
|
class: "prof-dlg",
|
|
1092
1098
|
onClose: t[7] || (t[7] = (w) => e.$emit("close", null))
|
|
1093
1099
|
}, {
|
|
1094
1100
|
footer: o(() => [
|
|
1095
|
-
|
|
1101
|
+
c(d, {
|
|
1096
1102
|
variant: "flat",
|
|
1097
1103
|
color: "secondary",
|
|
1098
1104
|
onClick: t[6] || (t[6] = (w) => e.$emit("close", null))
|
|
1099
1105
|
}, {
|
|
1100
1106
|
default: o(() => [
|
|
1101
|
-
C(y(e.$t("Close")), 1)
|
|
1107
|
+
C(y(e.$t("aff.Close")), 1)
|
|
1102
1108
|
]),
|
|
1103
1109
|
_: 1
|
|
1104
1110
|
}),
|
|
1105
|
-
|
|
1111
|
+
c(d, {
|
|
1106
1112
|
variant: "flat",
|
|
1107
1113
|
color: "primary",
|
|
1108
1114
|
loading: e.loading,
|
|
1109
1115
|
onClick: e.saveClick
|
|
1110
1116
|
}, {
|
|
1111
1117
|
default: o(() => [
|
|
1112
|
-
C(y(e.$t("Save")), 1)
|
|
1118
|
+
C(y(e.$t("aff.Save")), 1)
|
|
1113
1119
|
]),
|
|
1114
1120
|
_: 1
|
|
1115
1121
|
}, 8, ["loading", "onClick"])
|
|
1116
1122
|
]),
|
|
1117
1123
|
default: o(() => [
|
|
1118
|
-
e.formData ? (
|
|
1119
|
-
|
|
1124
|
+
e.formData ? (i(), _("form", Ct, [
|
|
1125
|
+
c(M, null, {
|
|
1120
1126
|
default: o(() => [
|
|
1121
|
-
|
|
1127
|
+
c(f, { cols: "12" }, {
|
|
1122
1128
|
default: o(() => [
|
|
1123
1129
|
$("div", Mt, [
|
|
1124
1130
|
$("div", Vt, [
|
|
1125
|
-
|
|
1131
|
+
c(l, {
|
|
1126
1132
|
color: e.formData.color ?? "primary",
|
|
1127
1133
|
class: E(`avatar-96-${e.formData.initials.length >= 3 ? "l" : "s"}`),
|
|
1128
1134
|
size: 96
|
|
@@ -1135,7 +1141,7 @@ function Ht(e, t, n, r, a, m) {
|
|
|
1135
1141
|
]),
|
|
1136
1142
|
$("div", Lt, [
|
|
1137
1143
|
$("div", null, [
|
|
1138
|
-
|
|
1144
|
+
c(g, {
|
|
1139
1145
|
modelValue: e.identity,
|
|
1140
1146
|
"onUpdate:modelValue": t[0] || (t[0] = (w) => e.identity = w),
|
|
1141
1147
|
"true-icon": e.$vuetify.icons.aliases?.success,
|
|
@@ -1144,7 +1150,7 @@ function Ht(e, t, n, r, a, m) {
|
|
|
1144
1150
|
"error-messages": e.localErrors.other_vehicle_involved?.toString() ?? void 0
|
|
1145
1151
|
}, {
|
|
1146
1152
|
default: o(() => [
|
|
1147
|
-
(
|
|
1153
|
+
(i(!0), _(P, null, U(e.identities, (w) => (i(), h(p, {
|
|
1148
1154
|
key: w.value.toString(),
|
|
1149
1155
|
label: w.text,
|
|
1150
1156
|
value: w.value,
|
|
@@ -1155,26 +1161,26 @@ function Ht(e, t, n, r, a, m) {
|
|
|
1155
1161
|
}, 8, ["modelValue", "true-icon", "error-messages"])
|
|
1156
1162
|
]),
|
|
1157
1163
|
$("div", null, [
|
|
1158
|
-
e.identity === "color" ? (
|
|
1164
|
+
e.identity === "color" ? (i(), _("div", wt, [
|
|
1159
1165
|
$("div", null, [
|
|
1160
|
-
|
|
1166
|
+
c(v, null, {
|
|
1161
1167
|
activator: o(({ props: w }) => [
|
|
1162
|
-
|
|
1168
|
+
c(d, D({
|
|
1163
1169
|
variant: "text",
|
|
1164
1170
|
color: "primary",
|
|
1165
1171
|
class: "ff-btn"
|
|
1166
1172
|
}, w), {
|
|
1167
1173
|
default: o(() => [
|
|
1168
|
-
u
|
|
1174
|
+
c(u, {
|
|
1169
1175
|
icon: e.mdiPalette()
|
|
1170
1176
|
}, null, 8, ["icon"]),
|
|
1171
|
-
C(" " + y(e.$vuetify.display.smAndUp ? e.$t("Choose color") : e.$t("Color")), 1)
|
|
1177
|
+
C(" " + y(e.$vuetify.display.smAndUp ? e.$t("aff.Choose color") : e.$t("aff.Color")), 1)
|
|
1172
1178
|
]),
|
|
1173
1179
|
_: 1
|
|
1174
1180
|
}, 16)
|
|
1175
1181
|
]),
|
|
1176
1182
|
default: o(() => [
|
|
1177
|
-
|
|
1183
|
+
c(b, {
|
|
1178
1184
|
onChange: t[1] || (t[1] = (w) => e.formData.color = w)
|
|
1179
1185
|
})
|
|
1180
1186
|
]),
|
|
@@ -1188,14 +1194,14 @@ function Ht(e, t, n, r, a, m) {
|
|
|
1188
1194
|
]),
|
|
1189
1195
|
_: 1
|
|
1190
1196
|
}),
|
|
1191
|
-
|
|
1192
|
-
label: e.$t("Name"),
|
|
1197
|
+
c(O, {
|
|
1198
|
+
label: e.$t("aff.Name"),
|
|
1193
1199
|
cols: 12,
|
|
1194
1200
|
sm: 6,
|
|
1195
1201
|
"error-messages": e.localErrors.name?.toString() ?? void 0
|
|
1196
1202
|
}, {
|
|
1197
1203
|
default: o((w) => [
|
|
1198
|
-
|
|
1204
|
+
c(H, D({
|
|
1199
1205
|
modelValue: e.formData.name,
|
|
1200
1206
|
"onUpdate:modelValue": t[2] || (t[2] = (q) => e.formData.name = q),
|
|
1201
1207
|
variant: "outlined"
|
|
@@ -1203,14 +1209,14 @@ function Ht(e, t, n, r, a, m) {
|
|
|
1203
1209
|
]),
|
|
1204
1210
|
_: 1
|
|
1205
1211
|
}, 8, ["label", "error-messages"]),
|
|
1206
|
-
|
|
1207
|
-
label: e.$t("Surname"),
|
|
1212
|
+
c(O, {
|
|
1213
|
+
label: e.$t("aff.Surname"),
|
|
1208
1214
|
cols: 12,
|
|
1209
1215
|
sm: 6,
|
|
1210
1216
|
"error-messages": e.localErrors.surname?.toString() ?? void 0
|
|
1211
1217
|
}, {
|
|
1212
1218
|
default: o((w) => [
|
|
1213
|
-
|
|
1219
|
+
c(H, D({
|
|
1214
1220
|
modelValue: e.formData.surname,
|
|
1215
1221
|
"onUpdate:modelValue": t[3] || (t[3] = (q) => e.formData.surname = q),
|
|
1216
1222
|
variant: "outlined"
|
|
@@ -1218,14 +1224,14 @@ function Ht(e, t, n, r, a, m) {
|
|
|
1218
1224
|
]),
|
|
1219
1225
|
_: 1
|
|
1220
1226
|
}, 8, ["label", "error-messages"]),
|
|
1221
|
-
|
|
1222
|
-
label: e.$t("E-mail"),
|
|
1227
|
+
c(O, {
|
|
1228
|
+
label: e.$t("aff.E-mail"),
|
|
1223
1229
|
cols: 12,
|
|
1224
1230
|
sm: 6,
|
|
1225
1231
|
"error-messages": e.localErrors.email?.toString() ?? void 0
|
|
1226
1232
|
}, {
|
|
1227
1233
|
default: o((w) => [
|
|
1228
|
-
|
|
1234
|
+
c(H, D({
|
|
1229
1235
|
modelValue: e.formData.email,
|
|
1230
1236
|
"onUpdate:modelValue": t[4] || (t[4] = (q) => e.formData.email = q),
|
|
1231
1237
|
variant: "outlined",
|
|
@@ -1234,14 +1240,14 @@ function Ht(e, t, n, r, a, m) {
|
|
|
1234
1240
|
]),
|
|
1235
1241
|
_: 1
|
|
1236
1242
|
}, 8, ["label", "error-messages"]),
|
|
1237
|
-
|
|
1238
|
-
label: e.$t("Language"),
|
|
1243
|
+
c(O, {
|
|
1244
|
+
label: e.$t("aff.Language"),
|
|
1239
1245
|
cols: 12,
|
|
1240
1246
|
sm: 6,
|
|
1241
1247
|
"error-messages": e.localErrors.locale?.toString() ?? void 0
|
|
1242
1248
|
}, {
|
|
1243
1249
|
default: o((w) => [
|
|
1244
|
-
|
|
1250
|
+
c(R, D({
|
|
1245
1251
|
modelValue: e.lang,
|
|
1246
1252
|
"onUpdate:modelValue": t[5] || (t[5] = (q) => e.lang = q),
|
|
1247
1253
|
variant: "outlined",
|
|
@@ -1260,7 +1266,7 @@ function Ht(e, t, n, r, a, m) {
|
|
|
1260
1266
|
_: 1
|
|
1261
1267
|
}, 8, ["value", "title"]);
|
|
1262
1268
|
}
|
|
1263
|
-
const
|
|
1269
|
+
const Gn = /* @__PURE__ */ A(At, [["render", Ht]]), St = k({
|
|
1264
1270
|
name: "RowActionsButton",
|
|
1265
1271
|
props: {
|
|
1266
1272
|
rowActions: {
|
|
@@ -1276,30 +1282,30 @@ const Nn = /* @__PURE__ */ A(At, [["render", Ht]]), St = k({
|
|
|
1276
1282
|
return { actions: V(() => e.rowActions.actions.filter((n) => n.visible === void 0 || n.visible(e.item))) };
|
|
1277
1283
|
}
|
|
1278
1284
|
});
|
|
1279
|
-
function Pt(e, t, n, r,
|
|
1280
|
-
const l =
|
|
1281
|
-
return e.actions.length > 0 ? (
|
|
1285
|
+
function Pt(e, t, n, r, s, m) {
|
|
1286
|
+
const l = a("v-btn"), p = a("v-icon"), g = a("v-list-item-title"), u = a("v-list-item"), d = a("v-list"), b = a("v-menu");
|
|
1287
|
+
return e.actions.length > 0 ? (i(), h(b, { key: 0 }, {
|
|
1282
1288
|
activator: o(({ props: v }) => [
|
|
1283
|
-
|
|
1289
|
+
c(l, D({
|
|
1284
1290
|
variant: "text",
|
|
1285
1291
|
size: "small",
|
|
1286
1292
|
icon: e.rowActions.icon
|
|
1287
1293
|
}, v), null, 16, ["icon"])
|
|
1288
1294
|
]),
|
|
1289
1295
|
default: o(() => [
|
|
1290
|
-
|
|
1296
|
+
c(d, { density: "compact" }, {
|
|
1291
1297
|
default: o(() => [
|
|
1292
|
-
(
|
|
1298
|
+
(i(!0), _(P, null, U(e.actions, (v) => (i(), h(u, {
|
|
1293
1299
|
key: v.action,
|
|
1294
1300
|
onClick: (f) => e.$emit("row-action", { action: v.action, item: e.item })
|
|
1295
1301
|
}, {
|
|
1296
1302
|
prepend: o(() => [
|
|
1297
|
-
|
|
1303
|
+
c(p, {
|
|
1298
1304
|
icon: v.icon
|
|
1299
1305
|
}, null, 8, ["icon"])
|
|
1300
1306
|
]),
|
|
1301
1307
|
default: o(() => [
|
|
1302
|
-
|
|
1308
|
+
c(g, null, {
|
|
1303
1309
|
default: o(() => [
|
|
1304
1310
|
C(y(v.title), 1)
|
|
1305
1311
|
]),
|
|
@@ -1315,14 +1321,14 @@ function Pt(e, t, n, r, a, m) {
|
|
|
1315
1321
|
_: 1
|
|
1316
1322
|
})) : L("", !0);
|
|
1317
1323
|
}
|
|
1318
|
-
const
|
|
1324
|
+
const K = /* @__PURE__ */ A(St, [["render", Pt]]), Ut = k({
|
|
1319
1325
|
name: "MobileLayoutItem",
|
|
1320
1326
|
methods: {
|
|
1321
1327
|
mdiDragVertical() {
|
|
1322
1328
|
return he;
|
|
1323
1329
|
}
|
|
1324
1330
|
},
|
|
1325
|
-
components: { RowActionsButton:
|
|
1331
|
+
components: { RowActionsButton: K },
|
|
1326
1332
|
props: {
|
|
1327
1333
|
item: {
|
|
1328
1334
|
type: Object,
|
|
@@ -1360,7 +1366,7 @@ const Y = /* @__PURE__ */ A(St, [["render", Pt]]), Ut = k({
|
|
|
1360
1366
|
emits: ["rowClick", "rowAction"],
|
|
1361
1367
|
setup() {
|
|
1362
1368
|
const e = (n, r) => r === null ? null : n.mobileLabel ? `${n.title}: ${r}` : r;
|
|
1363
|
-
return { formatValueList: (n, r,
|
|
1369
|
+
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) };
|
|
1364
1370
|
}
|
|
1365
1371
|
}), Dt = { style: { display: "flex", "align-items": "center", gap: "8px" } }, Et = { key: 1 }, Tt = { key: 2 }, It = { key: 1 }, Ot = { key: 2 }, qt = {
|
|
1366
1372
|
key: 0,
|
|
@@ -1369,9 +1375,9 @@ const Y = /* @__PURE__ */ A(St, [["render", Pt]]), Ut = k({
|
|
|
1369
1375
|
key: 0,
|
|
1370
1376
|
class: "item-drag-handle"
|
|
1371
1377
|
};
|
|
1372
|
-
function Rt(e, t, n, r,
|
|
1373
|
-
const l =
|
|
1374
|
-
return
|
|
1378
|
+
function Rt(e, t, n, r, s, m) {
|
|
1379
|
+
const l = a("v-col"), p = a("v-row"), g = a("v-icon"), u = a("v-chip"), d = a("RowActionsButton"), b = a("v-card-text"), v = a("v-card");
|
|
1380
|
+
return i(), h(v, {
|
|
1375
1381
|
variant: "outlined",
|
|
1376
1382
|
title: e.formatValueList(e.titleHeaders, e.item, " - "),
|
|
1377
1383
|
subtitle: e.formatValueList(e.subTitleHeaders, e.item, "; "),
|
|
@@ -1379,24 +1385,24 @@ function Rt(e, t, n, r, a, m) {
|
|
|
1379
1385
|
}, {
|
|
1380
1386
|
title: o(() => [
|
|
1381
1387
|
$("div", Dt, [
|
|
1382
|
-
(
|
|
1383
|
-
f.component ? (
|
|
1388
|
+
(i(!0), _(P, null, U(e.titleHeaders, (f, H) => (i(), _("span", { key: H }, [
|
|
1389
|
+
f.component ? (i(), h(F(f.component), D({
|
|
1384
1390
|
key: 0,
|
|
1385
1391
|
class: "mr-1"
|
|
1386
|
-
}, { ref_for: !0 }, f.getProps ? f.getProps(f, e.item) : {}), null, 16)) : f.format ? (
|
|
1392
|
+
}, { ref_for: !0 }, f.getProps ? f.getProps(f, e.item) : {}), null, 16)) : f.format ? (i(), _("span", Et, y(f.format(f, e.item)), 1)) : (i(), _("span", Tt, y(e.item[f.value]), 1))
|
|
1387
1393
|
]))), 128))
|
|
1388
1394
|
])
|
|
1389
1395
|
]),
|
|
1390
1396
|
default: o(() => [
|
|
1391
|
-
|
|
1397
|
+
c(b, null, {
|
|
1392
1398
|
default: o(() => [
|
|
1393
|
-
(
|
|
1399
|
+
(i(!0), _(P, null, U(e.otherHeaders, (f, H) => (i(), h(p, {
|
|
1394
1400
|
key: f.value,
|
|
1395
1401
|
"no-gutters": "",
|
|
1396
1402
|
class: E(`mt-${H === 0 ? 0 : 3}`)
|
|
1397
1403
|
}, {
|
|
1398
1404
|
default: o(() => [
|
|
1399
|
-
|
|
1405
|
+
c(l, {
|
|
1400
1406
|
cols: "4",
|
|
1401
1407
|
sm: "2"
|
|
1402
1408
|
}, {
|
|
@@ -1405,52 +1411,52 @@ function Rt(e, t, n, r, a, m) {
|
|
|
1405
1411
|
]),
|
|
1406
1412
|
_: 2
|
|
1407
1413
|
}, 1024),
|
|
1408
|
-
|
|
1414
|
+
c(l, {
|
|
1409
1415
|
cols: "8",
|
|
1410
1416
|
sm: "10"
|
|
1411
1417
|
}, {
|
|
1412
1418
|
default: o(() => [
|
|
1413
|
-
f.component ? (
|
|
1419
|
+
f.component ? (i(), h(F(f.component), D({
|
|
1414
1420
|
key: 0,
|
|
1415
1421
|
ref_for: !0
|
|
1416
|
-
}, f.getProps ? f.getProps(f, e.item) : {}), null, 16)) : f.format ? (
|
|
1422
|
+
}, f.getProps ? f.getProps(f, e.item) : {}), null, 16)) : f.format ? (i(), _("span", It, y(f.format(f, e.item)), 1)) : (i(), _("span", Ot, y(e.item[f.value]), 1))
|
|
1417
1423
|
]),
|
|
1418
1424
|
_: 2
|
|
1419
1425
|
}, 1024)
|
|
1420
1426
|
]),
|
|
1421
1427
|
_: 2
|
|
1422
1428
|
}, 1032, ["class"]))), 128)),
|
|
1423
|
-
e.miniTblHeaders.length > 0 ? (
|
|
1429
|
+
e.miniTblHeaders.length > 0 ? (i(), _("table", qt, [
|
|
1424
1430
|
$("tr", null, [
|
|
1425
|
-
(
|
|
1431
|
+
(i(!0), _(P, null, U(e.miniTblHeaders, (f) => (i(), _("th", {
|
|
1426
1432
|
key: `h${f.value}`,
|
|
1427
1433
|
style: te({ width: `${100 / e.miniTblHeaders.length}%` })
|
|
1428
1434
|
}, y(f.title), 5))), 128))
|
|
1429
1435
|
]),
|
|
1430
1436
|
$("tr", null, [
|
|
1431
|
-
(
|
|
1437
|
+
(i(!0), _(P, null, U(e.miniTblHeaders, (f) => (i(), _("td", {
|
|
1432
1438
|
key: `h${f.value}`
|
|
1433
1439
|
}, [
|
|
1434
|
-
f.format ? (
|
|
1440
|
+
f.format ? (i(), _("span", Nt, y(f.format(f, e.item)), 1)) : (i(), _("span", Ft, y(e.item[f.value]), 1))
|
|
1435
1441
|
]))), 128))
|
|
1436
1442
|
])
|
|
1437
1443
|
])) : L("", !0),
|
|
1438
|
-
|
|
1444
|
+
c(p, {
|
|
1439
1445
|
"no-gutters": "",
|
|
1440
1446
|
class: "mt-3"
|
|
1441
1447
|
}, {
|
|
1442
1448
|
default: o(() => [
|
|
1443
|
-
|
|
1449
|
+
c(l, {
|
|
1444
1450
|
cols: e.rowActions ? 10 : 12
|
|
1445
1451
|
}, {
|
|
1446
1452
|
default: o(() => [
|
|
1447
|
-
(
|
|
1453
|
+
(i(!0), _(P, null, U(e.tagHeaders, (f) => (i(), _("span", {
|
|
1448
1454
|
key: f.value
|
|
1449
1455
|
}, [
|
|
1450
|
-
f.component ? (
|
|
1456
|
+
f.component ? (i(), h(F(f.component), D({
|
|
1451
1457
|
key: 0,
|
|
1452
1458
|
class: "mr-1"
|
|
1453
|
-
}, { ref_for: !0 }, f.getProps ? f.getProps(f, e.item) : {}), null, 16)) : f.format ? (
|
|
1459
|
+
}, { ref_for: !0 }, f.getProps ? f.getProps(f, e.item) : {}), null, 16)) : f.format ? (i(), h(u, {
|
|
1454
1460
|
key: 1,
|
|
1455
1461
|
label: "",
|
|
1456
1462
|
size: "small",
|
|
@@ -1459,7 +1465,7 @@ function Rt(e, t, n, r, a, m) {
|
|
|
1459
1465
|
class: "mr-1"
|
|
1460
1466
|
}, {
|
|
1461
1467
|
default: o(() => [
|
|
1462
|
-
f.mobileIcon ? (
|
|
1468
|
+
f.mobileIcon ? (i(), h(g, {
|
|
1463
1469
|
key: 0,
|
|
1464
1470
|
icon: f.mobileIcon,
|
|
1465
1471
|
class: "mr-1"
|
|
@@ -1467,7 +1473,7 @@ function Rt(e, t, n, r, a, m) {
|
|
|
1467
1473
|
C(y(f.format(f, e.item)), 1)
|
|
1468
1474
|
]),
|
|
1469
1475
|
_: 2
|
|
1470
|
-
}, 1024)) : (
|
|
1476
|
+
}, 1024)) : (i(), h(u, {
|
|
1471
1477
|
key: 2,
|
|
1472
1478
|
label: "",
|
|
1473
1479
|
size: "small",
|
|
@@ -1476,7 +1482,7 @@ function Rt(e, t, n, r, a, m) {
|
|
|
1476
1482
|
class: "mr-1"
|
|
1477
1483
|
}, {
|
|
1478
1484
|
default: o(() => [
|
|
1479
|
-
f.mobileIcon ? (
|
|
1485
|
+
f.mobileIcon ? (i(), h(g, {
|
|
1480
1486
|
key: 0,
|
|
1481
1487
|
icon: f.mobileIcon
|
|
1482
1488
|
}, null, 8, ["icon"])) : L("", !0),
|
|
@@ -1488,14 +1494,14 @@ function Rt(e, t, n, r, a, m) {
|
|
|
1488
1494
|
]),
|
|
1489
1495
|
_: 1
|
|
1490
1496
|
}, 8, ["cols"]),
|
|
1491
|
-
e.rowActions ? (
|
|
1497
|
+
e.rowActions ? (i(), h(l, {
|
|
1492
1498
|
key: 0,
|
|
1493
1499
|
cols: "2",
|
|
1494
1500
|
class: "text-right"
|
|
1495
1501
|
}, {
|
|
1496
1502
|
default: o(() => [
|
|
1497
1503
|
$("div", zt, [
|
|
1498
|
-
|
|
1504
|
+
c(d, {
|
|
1499
1505
|
item: e.item,
|
|
1500
1506
|
"row-actions": e.rowActions,
|
|
1501
1507
|
onRowAction: t[0] || (t[0] = (f) => e.$emit("rowAction", f))
|
|
@@ -1510,8 +1516,8 @@ function Rt(e, t, n, r, a, m) {
|
|
|
1510
1516
|
]),
|
|
1511
1517
|
_: 1
|
|
1512
1518
|
}),
|
|
1513
|
-
e.draggable ? (
|
|
1514
|
-
|
|
1519
|
+
e.draggable ? (i(), _("div", Bt, [
|
|
1520
|
+
c(g, {
|
|
1515
1521
|
icon: e.mdiDragVertical()
|
|
1516
1522
|
}, null, 8, ["icon"])
|
|
1517
1523
|
])) : L("", !0)
|
|
@@ -1521,7 +1527,7 @@ function Rt(e, t, n, r, a, m) {
|
|
|
1521
1527
|
}
|
|
1522
1528
|
const jt = /* @__PURE__ */ A(Ut, [["render", Rt]]), Gt = k({
|
|
1523
1529
|
name: "MobileLayout",
|
|
1524
|
-
components: { MobileLayoutItem: jt, RowActionsButton:
|
|
1530
|
+
components: { MobileLayoutItem: jt, RowActionsButton: K },
|
|
1525
1531
|
props: {
|
|
1526
1532
|
items: {
|
|
1527
1533
|
type: Array,
|
|
@@ -1549,25 +1555,25 @@ const jt = /* @__PURE__ */ A(Ut, [["render", Rt]]), Gt = k({
|
|
|
1549
1555
|
}
|
|
1550
1556
|
},
|
|
1551
1557
|
setup(e, t) {
|
|
1552
|
-
const n = S(e.options.page), r = e.options.pageSize,
|
|
1553
|
-
return { titleHeaders:
|
|
1558
|
+
const n = S(e.options.page), r = e.options.pageSize, s = V(() => e.headers.filter((d) => d.mobilePlacement === "title")), m = V(() => e.headers.filter((d) => d.mobilePlacement === "subtitle")), l = V(() => e.headers.filter((d) => d.mobilePlacement === "tag")), p = V(() => e.headers.filter((d) => d.mobilePlacement === "mini_table")), g = V(() => e.headers.filter((d) => d.mobilePlacement !== "title" && d.mobilePlacement !== "subtitle" && d.mobilePlacement !== "tag" && d.mobilePlacement !== "mini_table"));
|
|
1559
|
+
return { titleHeaders: s, subTitleHeaders: m, tagHeaders: l, miniTblHeaders: p, otherHeaders: g, pageVal: n, pageSize: r, changePage: (d) => {
|
|
1554
1560
|
t.emit("options-update", { ...e.options, page: d });
|
|
1555
1561
|
} };
|
|
1556
1562
|
}
|
|
1557
|
-
}), Zt = { class: "mobile-margin2 data-table-layout" },
|
|
1563
|
+
}), Zt = { class: "mobile-margin2 data-table-layout" }, Yt = {
|
|
1558
1564
|
key: 1,
|
|
1559
1565
|
class: "mt-3"
|
|
1560
1566
|
};
|
|
1561
|
-
function
|
|
1562
|
-
const l =
|
|
1563
|
-
return
|
|
1564
|
-
e.loading ? (
|
|
1567
|
+
function Kt(e, t, n, r, s, m) {
|
|
1568
|
+
const l = a("v-progress-linear"), p = a("MobileLayoutItem"), g = a("v-pagination");
|
|
1569
|
+
return i(), _("div", Zt, [
|
|
1570
|
+
e.loading ? (i(), h(l, {
|
|
1565
1571
|
key: 0,
|
|
1566
1572
|
indeterminate: ""
|
|
1567
1573
|
})) : L("", !0),
|
|
1568
|
-
(
|
|
1569
|
-
key:
|
|
1570
|
-
item:
|
|
1574
|
+
(i(!0), _(P, null, U(e.items, (u) => (i(), h(p, {
|
|
1575
|
+
key: u.id,
|
|
1576
|
+
item: u,
|
|
1571
1577
|
"title-headers": e.titleHeaders,
|
|
1572
1578
|
"mini-tbl-headers": e.miniTblHeaders,
|
|
1573
1579
|
"sub-title-headers": e.subTitleHeaders,
|
|
@@ -1577,11 +1583,11 @@ function Yt(e, t, n, r, a, m) {
|
|
|
1577
1583
|
onRowClick: t[0] || (t[0] = (d) => e.$emit("row-click", d)),
|
|
1578
1584
|
onRowAction: t[1] || (t[1] = (d) => e.$emit("row-action", d))
|
|
1579
1585
|
}, null, 8, ["item", "title-headers", "mini-tbl-headers", "sub-title-headers", "tag-headers", "other-headers", "row-actions"]))), 128)),
|
|
1580
|
-
e.totalItems > e.pageSize ? (
|
|
1581
|
-
|
|
1586
|
+
e.totalItems > e.pageSize ? (i(), _("div", Yt, [
|
|
1587
|
+
c(g, {
|
|
1582
1588
|
modelValue: e.pageVal,
|
|
1583
1589
|
"onUpdate:modelValue": [
|
|
1584
|
-
t[2] || (t[2] = (
|
|
1590
|
+
t[2] || (t[2] = (u) => e.pageVal = u),
|
|
1585
1591
|
e.changePage
|
|
1586
1592
|
],
|
|
1587
1593
|
length: Math.ceil(e.totalItems / e.options.pageSize),
|
|
@@ -1591,9 +1597,9 @@ function Yt(e, t, n, r, a, m) {
|
|
|
1591
1597
|
])) : L("", !0)
|
|
1592
1598
|
]);
|
|
1593
1599
|
}
|
|
1594
|
-
const
|
|
1600
|
+
const Zn = /* @__PURE__ */ A(Gt, [["render", Kt]]), Jt = k({
|
|
1595
1601
|
name: "DesktopLayout",
|
|
1596
|
-
components: { RowActionsButton:
|
|
1602
|
+
components: { RowActionsButton: K },
|
|
1597
1603
|
props: {
|
|
1598
1604
|
items: {
|
|
1599
1605
|
type: Array,
|
|
@@ -1621,11 +1627,11 @@ const Fn = /* @__PURE__ */ A(Gt, [["render", Yt]]), Jt = k({
|
|
|
1621
1627
|
}
|
|
1622
1628
|
},
|
|
1623
1629
|
setup(e, t) {
|
|
1624
|
-
const { t: n } = I(), r = e.options.page,
|
|
1625
|
-
const d =
|
|
1630
|
+
const { t: n } = I(), r = e.options.page, s = e.options.pageSize, m = e.options.sortField ? [{ key: e.options.sortField, order: e.options.sortDir }] : [], l = (u) => {
|
|
1631
|
+
const d = u.sortBy && u.sortBy.length > 0 ? u.sortBy[0] : null;
|
|
1626
1632
|
t.emit("options-update", {
|
|
1627
|
-
page:
|
|
1628
|
-
pageSize:
|
|
1633
|
+
page: u.page,
|
|
1634
|
+
pageSize: u.itemsPerPage,
|
|
1629
1635
|
sortField: d?.key ?? null,
|
|
1630
1636
|
sortDir: d?.order ?? "asc"
|
|
1631
1637
|
});
|
|
@@ -1634,21 +1640,21 @@ const Fn = /* @__PURE__ */ A(Gt, [["render", Yt]]), Jt = k({
|
|
|
1634
1640
|
{ value: 10, title: "10" },
|
|
1635
1641
|
{ value: 25, title: "25" },
|
|
1636
1642
|
{ value: 50, title: "50" },
|
|
1637
|
-
{ value: -1, title: n("All") }
|
|
1638
|
-
]),
|
|
1639
|
-
const
|
|
1640
|
-
return
|
|
1643
|
+
{ value: -1, title: n("aff.All") }
|
|
1644
|
+
]), g = V(() => {
|
|
1645
|
+
const u = 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);
|
|
1646
|
+
return u.replace("{0}", d.toString()).replace("{1}", b.toString()).replace("{2}", e.totalItems.toString());
|
|
1641
1647
|
});
|
|
1642
|
-
return { page: r, pageSize:
|
|
1648
|
+
return { page: r, pageSize: s, sortBy: m, pageOptions: p, optionsUpdate: l, getPageText: g };
|
|
1643
1649
|
}
|
|
1644
1650
|
}), Wt = { class: "data-table-layout" }, Xt = ["onClick"], Qt = { key: 1 }, xt = { key: 2 }, en = {
|
|
1645
1651
|
key: 0,
|
|
1646
1652
|
class: "text-right"
|
|
1647
1653
|
};
|
|
1648
|
-
function tn(e, t, n, r,
|
|
1649
|
-
const l =
|
|
1650
|
-
return
|
|
1651
|
-
|
|
1654
|
+
function tn(e, t, n, r, s, m) {
|
|
1655
|
+
const l = a("RowActionsButton"), p = a("v-data-table-server");
|
|
1656
|
+
return i(), _("div", Wt, [
|
|
1657
|
+
c(p, {
|
|
1652
1658
|
items: e.items,
|
|
1653
1659
|
"items-length": e.totalItems,
|
|
1654
1660
|
headers: e.headers,
|
|
@@ -1661,25 +1667,25 @@ function tn(e, t, n, r, a, m) {
|
|
|
1661
1667
|
"items-per-page-options": e.pageOptions,
|
|
1662
1668
|
"onUpdate:options": e.optionsUpdate
|
|
1663
1669
|
}, {
|
|
1664
|
-
item: o(({ item:
|
|
1670
|
+
item: o(({ item: g }) => [
|
|
1665
1671
|
$("tr", {
|
|
1666
|
-
onClick: (
|
|
1672
|
+
onClick: (u) => e.$emit("row-click", g),
|
|
1667
1673
|
style: { cursor: "pointer" }
|
|
1668
1674
|
}, [
|
|
1669
|
-
(
|
|
1670
|
-
key:
|
|
1671
|
-
class: E(["v-data-table__td", `v-data-table-column--align-${
|
|
1675
|
+
(i(!0), _(P, null, U(e.headers, (u) => (i(), _("td", {
|
|
1676
|
+
key: u.value,
|
|
1677
|
+
class: E(["v-data-table__td", `v-data-table-column--align-${u.align ?? "start"}`, u.mainField ? "ff-col-main" : ""])
|
|
1672
1678
|
}, [
|
|
1673
|
-
|
|
1679
|
+
u.component ? (i(), h(F(u.component), D({
|
|
1674
1680
|
key: 0,
|
|
1675
1681
|
ref_for: !0
|
|
1676
|
-
},
|
|
1682
|
+
}, u.getProps ? u.getProps(u, g) : {}), null, 16)) : u.format ? (i(), _("span", Qt, y(u.format(u, g)), 1)) : (i(), _("span", xt, y(g[u.value]), 1))
|
|
1677
1683
|
], 2))), 128)),
|
|
1678
|
-
e.rowActions ? (
|
|
1679
|
-
|
|
1680
|
-
item:
|
|
1684
|
+
e.rowActions ? (i(), _("td", en, [
|
|
1685
|
+
c(l, {
|
|
1686
|
+
item: g,
|
|
1681
1687
|
"row-actions": e.rowActions,
|
|
1682
|
-
onRowAction: t[0] || (t[0] = (
|
|
1688
|
+
onRowAction: t[0] || (t[0] = (u) => e.$emit("row-action", u))
|
|
1683
1689
|
}, null, 8, ["item", "row-actions"])
|
|
1684
1690
|
])) : L("", !0)
|
|
1685
1691
|
], 8, Xt)
|
|
@@ -1688,7 +1694,7 @@ function tn(e, t, n, r, a, m) {
|
|
|
1688
1694
|
}, 8, ["items", "items-length", "headers", "loading", "page", "items-per-page", "sort-by", "hide-default-footer", "items-per-page-options", "onUpdate:options"])
|
|
1689
1695
|
]);
|
|
1690
1696
|
}
|
|
1691
|
-
const
|
|
1697
|
+
const Yn = /* @__PURE__ */ A(Jt, [["render", tn]]), nn = k({
|
|
1692
1698
|
name: "ColumnSelector",
|
|
1693
1699
|
props: {
|
|
1694
1700
|
columns: {
|
|
@@ -1711,35 +1717,35 @@ const zn = /* @__PURE__ */ A(Jt, [["render", tn]]), nn = k({
|
|
|
1711
1717
|
},
|
|
1712
1718
|
setup(e, { emit: t }) {
|
|
1713
1719
|
return { toggleColumn: (r) => {
|
|
1714
|
-
const
|
|
1715
|
-
|
|
1720
|
+
const s = [...e.currentColumns];
|
|
1721
|
+
s.indexOf(r) >= 0 ? s.splice(s.indexOf(r), 1) : s.push(r), t("changeCurrentColumns", s);
|
|
1716
1722
|
} };
|
|
1717
1723
|
}
|
|
1718
1724
|
});
|
|
1719
|
-
function on(e, t, n, r,
|
|
1720
|
-
const l =
|
|
1721
|
-
return
|
|
1725
|
+
function on(e, t, n, r, s, m) {
|
|
1726
|
+
const l = a("v-btn"), p = a("v-list-item-title"), g = a("v-icon"), u = a("v-list-item"), d = a("v-list"), b = a("v-menu");
|
|
1727
|
+
return i(), h(b, null, {
|
|
1722
1728
|
activator: o(({ props: v }) => [
|
|
1723
|
-
|
|
1729
|
+
c(l, D({
|
|
1724
1730
|
variant: "text",
|
|
1725
1731
|
icon: e.mdiViewColumn()
|
|
1726
1732
|
}, v), null, 16, ["icon"])
|
|
1727
1733
|
]),
|
|
1728
1734
|
default: o(() => [
|
|
1729
|
-
|
|
1735
|
+
c(d, { density: "compact" }, {
|
|
1730
1736
|
default: o(() => [
|
|
1731
|
-
(
|
|
1737
|
+
(i(!0), _(P, null, U(e.columns, (v, f) => (i(), h(u, {
|
|
1732
1738
|
key: f,
|
|
1733
1739
|
onClick: (H) => e.toggleColumn(v.value)
|
|
1734
1740
|
}, {
|
|
1735
1741
|
append: o(() => [
|
|
1736
|
-
|
|
1742
|
+
c(g, {
|
|
1737
1743
|
icon: e.mdiCheck(),
|
|
1738
1744
|
color: e.currentColumns.indexOf(v.value) >= 0 ? "primary" : "white"
|
|
1739
1745
|
}, null, 8, ["icon", "color"])
|
|
1740
1746
|
]),
|
|
1741
1747
|
default: o(() => [
|
|
1742
|
-
|
|
1748
|
+
c(p, null, {
|
|
1743
1749
|
default: o(() => [
|
|
1744
1750
|
C(y(v.title), 1)
|
|
1745
1751
|
]),
|
|
@@ -1755,7 +1761,7 @@ function on(e, t, n, r, a, m) {
|
|
|
1755
1761
|
_: 1
|
|
1756
1762
|
});
|
|
1757
1763
|
}
|
|
1758
|
-
const
|
|
1764
|
+
const Kn = /* @__PURE__ */ A(nn, [["render", on]]), rn = k({
|
|
1759
1765
|
name: "EmptyFilter",
|
|
1760
1766
|
props: {
|
|
1761
1767
|
modelValue: {
|
|
@@ -1772,11 +1778,11 @@ const Bn = /* @__PURE__ */ A(nn, [["render", on]]), rn = k({
|
|
|
1772
1778
|
}
|
|
1773
1779
|
}
|
|
1774
1780
|
}), ln = { class: "f-lbl" };
|
|
1775
|
-
function sn(e, t, n, r,
|
|
1776
|
-
const l =
|
|
1777
|
-
return
|
|
1781
|
+
function sn(e, t, n, r, s, m) {
|
|
1782
|
+
const l = a("v-btn");
|
|
1783
|
+
return i(), _("div", null, [
|
|
1778
1784
|
$("div", ln, y(e.$t(e.filter.title)), 1),
|
|
1779
|
-
|
|
1785
|
+
c(l, {
|
|
1780
1786
|
variant: "flat",
|
|
1781
1787
|
color: "grey-lighten-2"
|
|
1782
1788
|
}, {
|
|
@@ -1787,7 +1793,7 @@ function sn(e, t, n, r, a, m) {
|
|
|
1787
1793
|
})
|
|
1788
1794
|
]);
|
|
1789
1795
|
}
|
|
1790
|
-
const
|
|
1796
|
+
const Jn = /* @__PURE__ */ A(rn, [["render", sn]]), an = k({
|
|
1791
1797
|
name: "SelectFilter",
|
|
1792
1798
|
props: {
|
|
1793
1799
|
modelValue: {
|
|
@@ -1813,23 +1819,23 @@ const Rn = /* @__PURE__ */ A(rn, [["render", sn]]), an = k({
|
|
|
1813
1819
|
}
|
|
1814
1820
|
},
|
|
1815
1821
|
setup(e, { emit: t }) {
|
|
1816
|
-
const { t: n } = I(), r = Math.ceil(Math.random() * 1e5),
|
|
1822
|
+
const { t: n } = I(), r = Math.ceil(Math.random() * 1e5), s = S(!1), m = S(e.modelValue === null ? [] : (Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue]).map((u) => typeof u == "string" ? parseInt(u) : u)), l = V(() => {
|
|
1817
1823
|
if (!e.modelValue)
|
|
1818
|
-
return n("All");
|
|
1819
|
-
const
|
|
1820
|
-
return
|
|
1824
|
+
return n("aff.All");
|
|
1825
|
+
const u = (Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue]).map((d) => typeof d == "string" ? parseInt(d) : d);
|
|
1826
|
+
return u.length >= 3 ? `${u.length} ${n("aff.items")}` : u.map((d) => e.items.find((b) => b.id === d)?.name).join(", ");
|
|
1821
1827
|
});
|
|
1822
|
-
return { ctrlId: r, open:
|
|
1823
|
-
}, selVal: (
|
|
1824
|
-
e.filter.multiple ? m.value.indexOf(
|
|
1828
|
+
return { ctrlId: r, open: s, selected: m, openMenu: () => {
|
|
1829
|
+
}, selVal: (u) => {
|
|
1830
|
+
e.filter.multiple ? m.value.indexOf(u) >= 0 ? m.value.splice(m.value.indexOf(u), 1) : m.value.push(u) : m.value = [u], t("change", m);
|
|
1825
1831
|
}, disp: l };
|
|
1826
1832
|
}
|
|
1827
1833
|
}), un = { class: "f-lbl" };
|
|
1828
|
-
function cn(e, t, n, r,
|
|
1829
|
-
const l =
|
|
1830
|
-
return
|
|
1834
|
+
function cn(e, t, n, r, s, m) {
|
|
1835
|
+
const l = a("v-icon"), p = a("v-btn"), g = a("v-list-item-title"), u = a("v-list-item"), d = a("v-list"), b = a("v-card-text"), v = a("v-card"), f = a("v-menu");
|
|
1836
|
+
return i(), _("div", null, [
|
|
1831
1837
|
$("div", un, y(e.$t(e.filter.title)), 1),
|
|
1832
|
-
|
|
1838
|
+
c(p, {
|
|
1833
1839
|
id: `menu-activator${e.ctrlId}`,
|
|
1834
1840
|
variant: "flat",
|
|
1835
1841
|
class: E(["like-select", e.modelValue === null ? "empty" : ""]),
|
|
@@ -1837,7 +1843,7 @@ function cn(e, t, n, r, a, m) {
|
|
|
1837
1843
|
onClick: e.openMenu
|
|
1838
1844
|
}, {
|
|
1839
1845
|
append: o(() => [
|
|
1840
|
-
|
|
1846
|
+
c(l, {
|
|
1841
1847
|
size: 24,
|
|
1842
1848
|
icon: e.mdiMenuDown()
|
|
1843
1849
|
}, null, 8, ["icon"])
|
|
@@ -1847,31 +1853,31 @@ function cn(e, t, n, r, a, m) {
|
|
|
1847
1853
|
]),
|
|
1848
1854
|
_: 1
|
|
1849
1855
|
}, 8, ["id", "class", "onClick"]),
|
|
1850
|
-
|
|
1856
|
+
c(f, {
|
|
1851
1857
|
modelValue: e.open,
|
|
1852
1858
|
"onUpdate:modelValue": t[0] || (t[0] = (H) => e.open = H),
|
|
1853
1859
|
activator: `#menu-activator${e.ctrlId}`,
|
|
1854
1860
|
"close-on-content-click": !0
|
|
1855
1861
|
}, {
|
|
1856
1862
|
default: o(() => [
|
|
1857
|
-
|
|
1863
|
+
c(v, null, {
|
|
1858
1864
|
default: o(() => [
|
|
1859
|
-
|
|
1865
|
+
c(b, { class: "pa-0" }, {
|
|
1860
1866
|
default: o(() => [
|
|
1861
|
-
|
|
1867
|
+
c(d, null, {
|
|
1862
1868
|
default: o(() => [
|
|
1863
|
-
(
|
|
1869
|
+
(i(!0), _(P, null, U(e.items, (H) => (i(), h(u, {
|
|
1864
1870
|
key: H.id,
|
|
1865
1871
|
onClick: (O) => e.selVal(H.id)
|
|
1866
1872
|
}, {
|
|
1867
1873
|
append: o(() => [
|
|
1868
|
-
|
|
1874
|
+
c(l, {
|
|
1869
1875
|
color: e.selected.indexOf(H.id) >= 0 ? "primary" : "white",
|
|
1870
1876
|
icon: e.mdiCheck()
|
|
1871
1877
|
}, null, 8, ["color", "icon"])
|
|
1872
1878
|
]),
|
|
1873
1879
|
default: o(() => [
|
|
1874
|
-
|
|
1880
|
+
c(g, null, {
|
|
1875
1881
|
default: o(() => [
|
|
1876
1882
|
C(y(H.name), 1)
|
|
1877
1883
|
]),
|
|
@@ -1894,7 +1900,7 @@ function cn(e, t, n, r, a, m) {
|
|
|
1894
1900
|
}, 8, ["modelValue", "activator"])
|
|
1895
1901
|
]);
|
|
1896
1902
|
}
|
|
1897
|
-
const
|
|
1903
|
+
const Wn = /* @__PURE__ */ A(an, [["render", cn]]), dn = k({
|
|
1898
1904
|
name: "DataTableFilters",
|
|
1899
1905
|
props: {
|
|
1900
1906
|
filters: {
|
|
@@ -1914,12 +1920,12 @@ const jn = /* @__PURE__ */ A(an, [["render", cn]]), dn = k({
|
|
|
1914
1920
|
return { filters: S(e.filters.map((n) => ({ ...n, component: e.getFilterComponent(n), value: n.default }))) };
|
|
1915
1921
|
}
|
|
1916
1922
|
}), mn = { class: "dt-filters" };
|
|
1917
|
-
function pn(e, t, n, r,
|
|
1918
|
-
return
|
|
1919
|
-
(
|
|
1923
|
+
function pn(e, t, n, r, s, m) {
|
|
1924
|
+
return i(), _("div", mn, [
|
|
1925
|
+
(i(!0), _(P, null, U(e.filters, (l) => (i(), _("div", {
|
|
1920
1926
|
key: l.name
|
|
1921
1927
|
}, [
|
|
1922
|
-
(
|
|
1928
|
+
(i(), h(F(l.component), {
|
|
1923
1929
|
modelValue: e.filterValues[l.name],
|
|
1924
1930
|
"onUpdate:modelValue": (p) => e.filterValues[l.name] = p,
|
|
1925
1931
|
filter: l,
|
|
@@ -1928,7 +1934,7 @@ function pn(e, t, n, r, a, m) {
|
|
|
1928
1934
|
]))), 128))
|
|
1929
1935
|
]);
|
|
1930
1936
|
}
|
|
1931
|
-
const
|
|
1937
|
+
const Xn = /* @__PURE__ */ A(dn, [["render", pn]]), N = {
|
|
1932
1938
|
PENDING: "pending",
|
|
1933
1939
|
ACTIVE: "active",
|
|
1934
1940
|
INACTIVE: "inactive",
|
|
@@ -1936,12 +1942,12 @@ const Gn = /* @__PURE__ */ A(dn, [["render", pn]]), N = {
|
|
|
1936
1942
|
format(e, t) {
|
|
1937
1943
|
switch (e) {
|
|
1938
1944
|
case this.PENDING:
|
|
1939
|
-
return t("User status__Pending");
|
|
1945
|
+
return t("aff.User status__Pending");
|
|
1940
1946
|
case this.ACTIVE:
|
|
1941
|
-
return t("User status__Active");
|
|
1947
|
+
return t("aff.User status__Active");
|
|
1942
1948
|
case this.INACTIVE:
|
|
1943
1949
|
case this.PENDING_INACTIVE:
|
|
1944
|
-
return t("User status__Inactive");
|
|
1950
|
+
return t("aff.User status__Inactive");
|
|
1945
1951
|
default:
|
|
1946
1952
|
return e;
|
|
1947
1953
|
}
|
|
@@ -1973,9 +1979,9 @@ const Gn = /* @__PURE__ */ A(dn, [["render", pn]]), N = {
|
|
|
1973
1979
|
}) };
|
|
1974
1980
|
}
|
|
1975
1981
|
});
|
|
1976
|
-
function vn(e, t, n, r,
|
|
1977
|
-
const l =
|
|
1978
|
-
return
|
|
1982
|
+
function vn(e, t, n, r, s, m) {
|
|
1983
|
+
const l = a("v-chip");
|
|
1984
|
+
return i(), h(l, {
|
|
1979
1985
|
label: "",
|
|
1980
1986
|
color: e.chipProps.color
|
|
1981
1987
|
}, {
|
|
@@ -1985,7 +1991,7 @@ function vn(e, t, n, r, a, m) {
|
|
|
1985
1991
|
_: 1
|
|
1986
1992
|
}, 8, ["color"]);
|
|
1987
1993
|
}
|
|
1988
|
-
const
|
|
1994
|
+
const Qn = /* @__PURE__ */ A(fn, [["render", vn]]), _n = k({
|
|
1989
1995
|
name: "ConfirmPopup",
|
|
1990
1996
|
props: {
|
|
1991
1997
|
show: {
|
|
@@ -2006,9 +2012,9 @@ const Zn = /* @__PURE__ */ A(fn, [["render", vn]]), _n = k({
|
|
|
2006
2012
|
}
|
|
2007
2013
|
}
|
|
2008
2014
|
});
|
|
2009
|
-
function gn(e, t, n, r,
|
|
2010
|
-
const l =
|
|
2011
|
-
return
|
|
2015
|
+
function gn(e, t, n, r, s, m) {
|
|
2016
|
+
const l = a("v-card-text"), p = a("v-spacer"), g = a("v-btn"), u = a("v-card-actions"), d = a("v-card"), b = a("v-dialog");
|
|
2017
|
+
return i(), h(b, {
|
|
2012
2018
|
modelValue: e.show,
|
|
2013
2019
|
"onUpdate:modelValue": [
|
|
2014
2020
|
t[2] || (t[2] = (v) => e.show = v),
|
|
@@ -2017,39 +2023,39 @@ function gn(e, t, n, r, a, m) {
|
|
|
2017
2023
|
width: "608px"
|
|
2018
2024
|
}, {
|
|
2019
2025
|
default: o(() => [
|
|
2020
|
-
|
|
2026
|
+
c(d, {
|
|
2021
2027
|
dark: "",
|
|
2022
2028
|
class: "confirm-dialog",
|
|
2023
2029
|
theme: "dark"
|
|
2024
2030
|
}, {
|
|
2025
2031
|
default: o(() => [
|
|
2026
|
-
|
|
2032
|
+
c(l, { class: "text-subtitle-1" }, {
|
|
2027
2033
|
default: o(() => [
|
|
2028
2034
|
C(y(e.message), 1)
|
|
2029
2035
|
]),
|
|
2030
2036
|
_: 1
|
|
2031
2037
|
}),
|
|
2032
|
-
u
|
|
2038
|
+
c(u, { class: "dialog-actions-bar" }, {
|
|
2033
2039
|
default: o(() => [
|
|
2034
2040
|
T(e.$slots, "buttons", {}, () => [
|
|
2035
|
-
|
|
2036
|
-
|
|
2041
|
+
c(p),
|
|
2042
|
+
c(g, {
|
|
2037
2043
|
onClick: t[0] || (t[0] = (v) => e.$emit("close")),
|
|
2038
2044
|
flat: ""
|
|
2039
2045
|
}, {
|
|
2040
2046
|
default: o(() => [
|
|
2041
|
-
C(y(e.$t("Cancel")), 1)
|
|
2047
|
+
C(y(e.$t("aff.Cancel")), 1)
|
|
2042
2048
|
]),
|
|
2043
2049
|
_: 1
|
|
2044
2050
|
}),
|
|
2045
|
-
|
|
2051
|
+
c(g, {
|
|
2046
2052
|
variant: "flat",
|
|
2047
2053
|
loading: e.okLoading,
|
|
2048
2054
|
onClick: t[1] || (t[1] = (v) => e.$emit("ok")),
|
|
2049
2055
|
color: "primary"
|
|
2050
2056
|
}, {
|
|
2051
2057
|
default: o(() => [
|
|
2052
|
-
C(y(e.okText ?? e.$t("OK")), 1)
|
|
2058
|
+
C(y(e.okText ?? e.$t("aff.OK")), 1)
|
|
2053
2059
|
]),
|
|
2054
2060
|
_: 1
|
|
2055
2061
|
}, 8, ["loading"])
|
|
@@ -2064,7 +2070,7 @@ function gn(e, t, n, r, a, m) {
|
|
|
2064
2070
|
_: 3
|
|
2065
2071
|
}, 8, ["modelValue"]);
|
|
2066
2072
|
}
|
|
2067
|
-
const
|
|
2073
|
+
const xn = /* @__PURE__ */ A(_n, [["render", gn]]), yn = k({
|
|
2068
2074
|
name: "SearchFilter",
|
|
2069
2075
|
props: {
|
|
2070
2076
|
modelValue: {
|
|
@@ -2080,8 +2086,8 @@ const Kn = /* @__PURE__ */ A(_n, [["render", gn]]), yn = k({
|
|
|
2080
2086
|
setup(e) {
|
|
2081
2087
|
const t = S(e.modelValue), n = () => {
|
|
2082
2088
|
let r;
|
|
2083
|
-
return (
|
|
2084
|
-
clearTimeout(r), r = window.setTimeout(() => m(
|
|
2089
|
+
return (s, m, l = 500) => {
|
|
2090
|
+
clearTimeout(r), r = window.setTimeout(() => m(s), l);
|
|
2085
2091
|
};
|
|
2086
2092
|
};
|
|
2087
2093
|
return ne(() => e.modelValue, (r) => {
|
|
@@ -2089,15 +2095,15 @@ const Kn = /* @__PURE__ */ A(_n, [["render", gn]]), yn = k({
|
|
|
2089
2095
|
}), { val: t, debounce: n() };
|
|
2090
2096
|
}
|
|
2091
2097
|
}), $n = { class: "f-lbl" };
|
|
2092
|
-
function hn(e, t, n, r,
|
|
2093
|
-
const l =
|
|
2094
|
-
return
|
|
2098
|
+
function hn(e, t, n, r, s, m) {
|
|
2099
|
+
const l = a("v-text-field");
|
|
2100
|
+
return i(), _("div", null, [
|
|
2095
2101
|
$("div", $n, y(e.$t(e.filter.title)), 1),
|
|
2096
|
-
|
|
2102
|
+
c(l, {
|
|
2097
2103
|
modelValue: e.val,
|
|
2098
2104
|
"onUpdate:modelValue": [
|
|
2099
2105
|
t[0] || (t[0] = (p) => e.val = p),
|
|
2100
|
-
t[1] || (t[1] = (p) => e.debounce(p, (
|
|
2106
|
+
t[1] || (t[1] = (p) => e.debounce(p, (g) => e.$emit("change", g)))
|
|
2101
2107
|
],
|
|
2102
2108
|
variant: "outlined",
|
|
2103
2109
|
"hide-details": !0,
|
|
@@ -2105,26 +2111,7 @@ function hn(e, t, n, r, a, m) {
|
|
|
2105
2111
|
}, null, 8, ["modelValue"])
|
|
2106
2112
|
]);
|
|
2107
2113
|
}
|
|
2108
|
-
const
|
|
2109
|
-
let t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
2110
|
-
return t ? decodeURIComponent(t[3]) : null;
|
|
2111
|
-
}, Qn = (e, t, n, r = null) => {
|
|
2112
|
-
let a, m;
|
|
2113
|
-
return r == null && (r = "/"), m = "", n && (a = /* @__PURE__ */ new Date(), a.setTime(a.getTime() + n * 24 * 60 * 60 * 1e3), m = "; expires=" + a.toUTCString()), document.cookie = encodeURIComponent(e) + "=" + encodeURIComponent(t) + m + "; path=" + r, !0;
|
|
2114
|
-
}, xn = (e, t) => {
|
|
2115
|
-
for (const n of t) {
|
|
2116
|
-
if (n === "/")
|
|
2117
|
-
return e === "/";
|
|
2118
|
-
if (e.startsWith(n))
|
|
2119
|
-
return !0;
|
|
2120
|
-
}
|
|
2121
|
-
return !1;
|
|
2122
|
-
}, eo = (e) => {
|
|
2123
|
-
const t = {};
|
|
2124
|
-
for (const n of ["p", "l", "s", "d"])
|
|
2125
|
-
e[n] !== void 0 && (t[n] = e[n]);
|
|
2126
|
-
return t;
|
|
2127
|
-
}, bn = {
|
|
2114
|
+
const eo = /* @__PURE__ */ A(yn, [["render", hn]]), bn = {
|
|
2128
2115
|
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}" },
|
|
2129
2116
|
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}" },
|
|
2130
2117
|
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}" },
|
|
@@ -2137,7 +2124,7 @@ function kn() {
|
|
|
2137
2124
|
const e = oe("i18nLocale", V(() => "en_GB"));
|
|
2138
2125
|
return V(() => re(e));
|
|
2139
2126
|
}
|
|
2140
|
-
const J = kn(), An = (e, t, n, r,
|
|
2127
|
+
const J = kn(), An = (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)), no = (e, t) => e == null ? "" : e.replace(new RegExp(t, "g"), "").replace(new RegExp(" ", "g"), "").replace(",", "."), Cn = /(dddd|dd|d|hh|h|HH|H|mm|m|MMMM|MMM|MM|M|ss|s|tt|yyyy|yy|zzz)/g, oo = (e, t) => {
|
|
2141
2128
|
if (!e) return "";
|
|
2142
2129
|
const n = typeof e == "string" ? new Date(e) : e;
|
|
2143
2130
|
return t.replace(Cn, (r) => {
|
|
@@ -2148,12 +2135,12 @@ const J = kn(), An = (e, t, n, r, a) => (typeof e == "string" && (e = parseFloat
|
|
|
2148
2135
|
case "DD":
|
|
2149
2136
|
return ("0" + n.getDate()).slice(-2);
|
|
2150
2137
|
case "h": {
|
|
2151
|
-
const
|
|
2152
|
-
return (
|
|
2138
|
+
const s = n.getHours();
|
|
2139
|
+
return (s === 0 ? 12 : s > 12 ? s - 12 : s).toString();
|
|
2153
2140
|
}
|
|
2154
2141
|
case "hh": {
|
|
2155
|
-
const
|
|
2156
|
-
return ("0" + (
|
|
2142
|
+
const s = n.getHours();
|
|
2143
|
+
return ("0" + (s === 0 ? 12 : s > 12 ? s - 12 : s)).slice(-2);
|
|
2157
2144
|
}
|
|
2158
2145
|
case "H":
|
|
2159
2146
|
return n.getHours().toString();
|
|
@@ -2185,65 +2172,103 @@ const J = kn(), An = (e, t, n, r, a) => (typeof e == "string" && (e = parseFloat
|
|
|
2185
2172
|
case "YYYY":
|
|
2186
2173
|
return n.getFullYear().toString();
|
|
2187
2174
|
case "zzz": {
|
|
2188
|
-
const
|
|
2189
|
-
return `${
|
|
2175
|
+
const s = n.getTimezoneOffset(), m = Math.abs(s) % 60;
|
|
2176
|
+
return `${s <= 0 ? "+" : "-"}${("0" + (Math.abs(s) - m) / 60).slice(-2)}:${("0" + m).slice(-2)}`;
|
|
2190
2177
|
}
|
|
2191
2178
|
default:
|
|
2192
2179
|
return r;
|
|
2193
2180
|
}
|
|
2194
2181
|
});
|
|
2195
|
-
},
|
|
2182
|
+
}, Mn = (e, t = void 0, n = void 0) => {
|
|
2196
2183
|
if (t === void 0 && (t = 0), n === void 0 && (n = 4), e == null) return "";
|
|
2197
2184
|
typeof e == "string" && (e = parseFloat(e)), console.log("AAAAAAA", J.value);
|
|
2198
|
-
const { decimal_symbol: r, thousands_symbol:
|
|
2199
|
-
return An(e, t, n, r,
|
|
2185
|
+
const { decimal_symbol: r, thousands_symbol: s } = bn[J.value] ?? { decimal_symbol: ".", thousands_symbol: "," };
|
|
2186
|
+
return An(e, t, n, r, s);
|
|
2187
|
+
}, ro = (e) => e.getFullYear() + "-" + ("0" + (e.getMonth() + 1)).slice(-2) + "-" + ("0" + e.getDate()).slice(-2), Vn = k({
|
|
2188
|
+
name: "DataTableTotals",
|
|
2189
|
+
methods: { frmNum: Mn },
|
|
2190
|
+
props: {
|
|
2191
|
+
totalItems: {
|
|
2192
|
+
type: Number,
|
|
2193
|
+
required: !0
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
}), Ln = { key: 0 }, wn = { key: 1 };
|
|
2197
|
+
function Hn(e, t, n, r, s, m) {
|
|
2198
|
+
return i(), _("span", null, [
|
|
2199
|
+
C(y(e.frmNum(e.totalItems)) + " ", 1),
|
|
2200
|
+
e.totalItems === 1 ? (i(), _("span", Ln, y(e.$t("aff.row")), 1)) : (i(), _("span", wn, y(e.$t("aff.rows")), 1))
|
|
2201
|
+
]);
|
|
2202
|
+
}
|
|
2203
|
+
const lo = /* @__PURE__ */ A(Vn, [["render", Hn]]), so = (e) => e ? e.replace(/(?:\r\n|\r|\n)/g, "<br>") : "", ao = (e) => JSON.parse(JSON.stringify(e)), io = (e) => {
|
|
2204
|
+
let t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
2205
|
+
return t ? decodeURIComponent(t[3]) : null;
|
|
2206
|
+
}, uo = (e, t, n, r = null) => {
|
|
2207
|
+
let s, m;
|
|
2208
|
+
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;
|
|
2209
|
+
}, co = (e, t) => {
|
|
2210
|
+
for (const n of t) {
|
|
2211
|
+
if (n === "/")
|
|
2212
|
+
return e === "/";
|
|
2213
|
+
if (e.startsWith(n))
|
|
2214
|
+
return !0;
|
|
2215
|
+
}
|
|
2216
|
+
return !1;
|
|
2217
|
+
}, mo = (e) => {
|
|
2218
|
+
const t = {};
|
|
2219
|
+
for (const n of ["p", "l", "s", "d"])
|
|
2220
|
+
e[n] !== void 0 && (t[n] = e[n]);
|
|
2221
|
+
return t;
|
|
2200
2222
|
};
|
|
2201
2223
|
export {
|
|
2202
|
-
|
|
2224
|
+
Y as AccountAvatar,
|
|
2203
2225
|
rt as ColorPicker,
|
|
2204
|
-
|
|
2205
|
-
|
|
2226
|
+
Kn as ColumnSelector,
|
|
2227
|
+
xn as ConfirmPopup,
|
|
2206
2228
|
bn as CultureInfos,
|
|
2207
2229
|
to as CurrencySymbols,
|
|
2208
2230
|
He as CustomDialog,
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2231
|
+
Xn as DataTableFilters,
|
|
2232
|
+
lo as DataTableTotals,
|
|
2233
|
+
Yn as DesktopLayout,
|
|
2234
|
+
Jn as EmptyFilter,
|
|
2235
|
+
Nn as ErrorDialog,
|
|
2213
2236
|
at as FieldLabel,
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2237
|
+
Fn as FieldRow,
|
|
2238
|
+
zn as InLanguages,
|
|
2239
|
+
In as InnerLeftMenu,
|
|
2217
2240
|
G as LangUtil,
|
|
2218
2241
|
X as Languages,
|
|
2219
2242
|
it as LazyLoadingProp,
|
|
2220
|
-
|
|
2243
|
+
Zn as MobileLayout,
|
|
2221
2244
|
jt as MobileLayoutItem,
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2245
|
+
Tn as PageSubtitle,
|
|
2246
|
+
En as PageTitle,
|
|
2247
|
+
Gn as ProfileEditDialog,
|
|
2248
|
+
Bn as ProfileInfo,
|
|
2249
|
+
K as RowActionsButton,
|
|
2250
|
+
eo as SearchFilter,
|
|
2251
|
+
Wn as SelectFilter,
|
|
2229
2252
|
B as UserAvatar,
|
|
2230
|
-
|
|
2253
|
+
qn as UserMenu,
|
|
2231
2254
|
N as UserStatus,
|
|
2232
|
-
|
|
2233
|
-
|
|
2255
|
+
Qn as UserStatusChip,
|
|
2256
|
+
Rn as clearLocalErrors,
|
|
2234
2257
|
no as clnNumbCust,
|
|
2235
|
-
|
|
2236
|
-
|
|
2258
|
+
mo as clonePagingAndSort,
|
|
2259
|
+
ao as deepClone,
|
|
2237
2260
|
z as formatFullName,
|
|
2238
|
-
|
|
2261
|
+
On as formatInitials,
|
|
2239
2262
|
oo as frmDateCust,
|
|
2240
|
-
|
|
2263
|
+
Mn as frmNum,
|
|
2241
2264
|
An as frmNumCust,
|
|
2242
|
-
|
|
2265
|
+
ro as frmSysDate,
|
|
2266
|
+
io as getCookie,
|
|
2243
2267
|
gt as handleErrorResponse,
|
|
2244
|
-
|
|
2268
|
+
co as isActive,
|
|
2245
2269
|
ut as mapArrayToEnum,
|
|
2246
|
-
|
|
2247
|
-
|
|
2270
|
+
so as nl2br,
|
|
2271
|
+
uo as setCookie,
|
|
2272
|
+
jn as syncItemChanges,
|
|
2248
2273
|
ae as usePageStore
|
|
2249
2274
|
};
|