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