@feedmepos/mf-hrm-portal 1.1.3-dev.7 → 1.1.3-dev.9
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/{AuditLogList-n6xAYZGv.js → AuditLogList-FDOzktEG.js} +119 -109
- package/dist/{EmployeeList-D9rLxXo5.js → EmployeeList-BlULf09V.js} +5 -5
- package/dist/{Main-BCa8A1rV.js → Main-BEXtYa2u.js} +5 -5
- package/dist/{Main-zQF3GD9j.js → Main-r19cnUfU.js} +8 -8
- package/dist/PermissionSetList-CNfiMPnB.js +323 -0
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BA1LS-wd.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bu-eBtus.js} +253 -253
- package/dist/{RoleList-Cfv9wKaN.js → RoleList-BGmWrKAP.js} +6 -6
- package/dist/TeamMemberList-_DLS33js.js +965 -0
- package/dist/{TimesheetList-B0e-Muws.js → TimesheetList-_iQScXAp.js} +6 -6
- package/dist/{app-DKSPx49S.js → app-BwF4Swnp.js} +24 -8
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DZJQ_JpV.js → dayjs.min-DVWcfk3W.js} +1 -1
- package/dist/{employee-DKRqMph9.js → employee-09CJRs3Q.js} +3 -3
- package/dist/{index-D09s817L.js → index-BIzqz5Rs.js} +7 -5
- package/dist/{index-BwyUbhZj.js → index-C-0bzcOw.js} +1 -1
- package/dist/{lodash-CL6AaeJB.js → lodash-f-cIBAzV.js} +1 -1
- package/dist/{team-DEjtUFVl.js → team-doxRPLFp.js} +1 -1
- package/dist/{timesheet-B0usAfjL.js → timesheet-Dd_xXYAz.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DfaKfSuR.js → useAppStore-CbDp946u.js} +1 -1
- package/dist/{useLoading-D2AX24ph.js → useLoading-s8etox00.js} +1 -1
- package/dist/{useReportPermissions-CwsHq61C.js → useReportPermissions-BphupOls.js} +2 -2
- package/dist/views/audit-log/locales/index.d.ts +8 -0
- package/dist/views/team/locales/index.d.ts +8 -0
- package/package.json +2 -2
- package/dist/PermissionSetList-EsoA_anf.js +0 -338
- package/dist/TeamMemberList-HkvCqzPj.js +0 -945
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as le, ref as f, computed as k, watch as
|
|
2
|
-
import { d as ie } from "./dayjs.min-
|
|
1
|
+
import { defineComponent as le, ref as f, computed as k, watch as U, resolveComponent as w, createElementBlock as u, openBlock as d, Fragment as V, createVNode as n, unref as i, withCtx as j, createElementVNode as e, createBlock as K, createCommentVNode as _, toDisplayString as s, renderList as se } from "vue";
|
|
2
|
+
import { d as ie } from "./dayjs.min-DVWcfk3W.js";
|
|
3
3
|
import { useI18n as ne, useCoreStore as de } from "@feedmepos/mf-common";
|
|
4
|
-
import { _ as
|
|
4
|
+
import { _ as re, G as ce } from "./app-BwF4Swnp.js";
|
|
5
5
|
import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
6
|
import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
7
|
import { components as $ } from "@feedmepos/ui-library";
|
|
8
|
-
import { g as fe, b as pe, p as
|
|
9
|
-
import { u as
|
|
8
|
+
import { g as fe, b as pe, p as z } from "./index-BIzqz5Rs.js";
|
|
9
|
+
import { u as _e } from "./team-doxRPLFp.js";
|
|
10
10
|
import { S as C } from "./SelectFilter-NbXrJ4iH.js";
|
|
11
|
-
const
|
|
12
|
-
async read(
|
|
11
|
+
const ve = "/audit-logs", ge = {
|
|
12
|
+
async read(r) {
|
|
13
13
|
return fe(
|
|
14
|
-
await pe().get(
|
|
14
|
+
await pe().get(ve, {
|
|
15
15
|
params: {
|
|
16
|
-
limit: (
|
|
17
|
-
offset: (
|
|
18
|
-
...
|
|
19
|
-
...
|
|
16
|
+
limit: (r == null ? void 0 : r.limit) ?? 100,
|
|
17
|
+
offset: (r == null ? void 0 : r.offset) ?? 0,
|
|
18
|
+
...r != null && r.from ? { from: r.from } : {},
|
|
19
|
+
...r != null && r.to ? { to: r.to } : {}
|
|
20
20
|
}
|
|
21
21
|
})
|
|
22
22
|
);
|
|
@@ -40,123 +40,125 @@ const _e = "/audit-logs", ge = {
|
|
|
40
40
|
class: "flex shrink-0 items-center justify-end border-t border-fm-color-border-default py-4"
|
|
41
41
|
}, Ie = {
|
|
42
42
|
class: "text-sm text-fm-color-typo-secondary"
|
|
43
|
-
},
|
|
43
|
+
}, Te = {
|
|
44
44
|
key: 0,
|
|
45
45
|
class: "space-y-12 p-4 text-sm"
|
|
46
|
-
}, Te = {
|
|
47
|
-
class: "rounded-lg border border-fm-color-border-default"
|
|
48
46
|
}, De = {
|
|
49
|
-
class: "
|
|
47
|
+
class: "rounded-lg border border-fm-color-border-default"
|
|
50
48
|
}, Ve = {
|
|
49
|
+
class: "flex items-start justify-between gap-8 p-12"
|
|
50
|
+
}, je = {
|
|
51
51
|
class: "text-base font-bold leading-snug text-fm-color-typo-primary"
|
|
52
52
|
}, Ce = {
|
|
53
|
-
class: "
|
|
53
|
+
class: "font-semibold"
|
|
54
54
|
}, Oe = {
|
|
55
|
-
class: "
|
|
55
|
+
class: "space-y-12 p-12"
|
|
56
56
|
}, Pe = {
|
|
57
|
-
class: "
|
|
57
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
58
58
|
}, Fe = {
|
|
59
|
-
|
|
59
|
+
class: "font-semibold"
|
|
60
60
|
}, Ne = {
|
|
61
|
-
|
|
61
|
+
key: 0
|
|
62
62
|
}, Ue = {
|
|
63
|
-
class: "font-semibold"
|
|
64
|
-
}, Be = {
|
|
65
63
|
class: "text-xs text-fm-color-typo-secondary"
|
|
64
|
+
}, Be = {
|
|
65
|
+
class: "font-semibold"
|
|
66
66
|
}, Ae = {
|
|
67
|
-
class: "break-all font-mono text-xs font-semibold"
|
|
68
|
-
}, Ee = {
|
|
69
67
|
class: "text-xs text-fm-color-typo-secondary"
|
|
68
|
+
}, Ee = {
|
|
69
|
+
class: "break-all font-mono text-xs font-semibold"
|
|
70
70
|
}, Re = {
|
|
71
|
-
class: "font-semibold"
|
|
72
|
-
}, qe = {
|
|
73
71
|
class: "text-xs text-fm-color-typo-secondary"
|
|
74
|
-
},
|
|
72
|
+
}, qe = {
|
|
75
73
|
class: "font-semibold"
|
|
74
|
+
}, Me = {
|
|
75
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
76
76
|
}, Ke = {
|
|
77
|
-
|
|
77
|
+
class: "font-semibold"
|
|
78
78
|
}, $e = {
|
|
79
|
+
key: 1
|
|
80
|
+
}, ze = {
|
|
79
81
|
class: "text-xs text-fm-color-typo-secondary"
|
|
80
82
|
}, Ye = {
|
|
81
83
|
class: "font-semibold"
|
|
82
|
-
}, ze = {
|
|
83
|
-
class: "text-xs text-fm-color-typo-secondary"
|
|
84
84
|
}, Ge = {
|
|
85
|
-
class: "break-all font-mono text-xs font-semibold"
|
|
86
|
-
}, Je = {
|
|
87
85
|
class: "text-xs text-fm-color-typo-secondary"
|
|
86
|
+
}, Je = {
|
|
87
|
+
class: "break-all font-mono text-xs font-semibold"
|
|
88
88
|
}, Ze = {
|
|
89
|
-
class: "
|
|
89
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
90
90
|
}, He = {
|
|
91
|
-
class: "
|
|
91
|
+
class: "font-semibold"
|
|
92
92
|
}, Qe = {
|
|
93
|
-
class: "
|
|
93
|
+
class: "rounded-lg border border-fm-color-border-default"
|
|
94
94
|
}, We = {
|
|
95
|
-
class: "
|
|
95
|
+
class: "p-12"
|
|
96
96
|
}, Xe = {
|
|
97
|
-
class: "
|
|
97
|
+
class: "text-base font-bold text-fm-color-typo-primary"
|
|
98
98
|
}, et = {
|
|
99
|
-
|
|
99
|
+
class: "space-y-12 p-12"
|
|
100
100
|
}, tt = {
|
|
101
|
-
|
|
101
|
+
key: 0
|
|
102
102
|
}, ot = {
|
|
103
|
-
class: "font-semibold"
|
|
104
|
-
}, at = {
|
|
105
103
|
class: "text-xs text-fm-color-typo-secondary"
|
|
106
|
-
},
|
|
104
|
+
}, at = {
|
|
107
105
|
class: "font-semibold"
|
|
106
|
+
}, lt = {
|
|
107
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
108
108
|
}, st = {
|
|
109
|
-
|
|
109
|
+
class: "font-semibold"
|
|
110
110
|
}, it = {
|
|
111
|
-
|
|
111
|
+
key: 1
|
|
112
112
|
}, nt = {
|
|
113
|
-
class: "
|
|
113
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
114
114
|
}, dt = {
|
|
115
|
+
class: "font-semibold"
|
|
116
|
+
}, rt = {
|
|
115
117
|
class: "break-all font-mono text-xs text-fm-color-typo-secondary"
|
|
116
118
|
}, ct = {
|
|
117
119
|
class: "font-semibold"
|
|
118
|
-
},
|
|
120
|
+
}, ut = {
|
|
119
121
|
key: 0,
|
|
120
122
|
class: "break-all font-mono text-xs text-fm-color-typo-secondary"
|
|
121
|
-
}, ut = {
|
|
122
|
-
key: 2
|
|
123
123
|
}, mt = {
|
|
124
|
-
|
|
124
|
+
key: 2
|
|
125
125
|
}, ft = {
|
|
126
|
-
class: "
|
|
126
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
127
127
|
}, pt = {
|
|
128
|
+
class: "mt-4 space-y-4"
|
|
129
|
+
}, _t = {
|
|
128
130
|
class: "flex h-16 w-16 shrink-0 items-center justify-center rounded-full bg-fm-color-primary-default text-xs font-bold text-white"
|
|
129
131
|
}, vt = {
|
|
130
132
|
class: "text-xs font-semibold"
|
|
131
|
-
},
|
|
133
|
+
}, gt = {
|
|
132
134
|
key: 0,
|
|
133
135
|
class: "text-fm-color-typo-secondary"
|
|
134
|
-
}, gt = {
|
|
135
|
-
class: "text-xs text-fm-color-typo-secondary"
|
|
136
136
|
}, ht = {
|
|
137
|
-
class: "font-mono text-xs font-semibold"
|
|
138
|
-
}, xt = {
|
|
139
137
|
class: "text-xs text-fm-color-typo-secondary"
|
|
138
|
+
}, xt = {
|
|
139
|
+
class: "font-mono text-xs font-semibold"
|
|
140
140
|
}, bt = {
|
|
141
|
-
class: "
|
|
141
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
142
142
|
}, yt = {
|
|
143
|
-
|
|
143
|
+
class: "break-all font-mono text-xs font-semibold"
|
|
144
144
|
}, Lt = {
|
|
145
|
-
|
|
145
|
+
key: 3
|
|
146
146
|
}, kt = {
|
|
147
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
148
|
+
}, St = {
|
|
147
149
|
class: "mt-4 max-h-[400px] overflow-auto rounded bg-gray-100 p-8 font-mono text-xs leading-relaxed shadow-inner"
|
|
148
|
-
},
|
|
150
|
+
}, B = 100, Nt = /* @__PURE__ */ le({
|
|
149
151
|
__name: "AuditLogList",
|
|
150
|
-
setup(
|
|
152
|
+
setup(r) {
|
|
151
153
|
const {
|
|
152
154
|
t: o
|
|
153
|
-
} = ne(),
|
|
154
|
-
startDate:
|
|
155
|
-
endDate:
|
|
156
|
-
}), g = f(), h = f(), x = f(), b = f(), G = k(() =>
|
|
155
|
+
} = ne(), Y = de(), v = _e(), I = f(!1), A = f([]), l = f(null), O = f(!1), p = f(1), T = f(!1), E = ie().format("YYYY-MM-DD"), S = f({
|
|
156
|
+
startDate: E,
|
|
157
|
+
endDate: E
|
|
158
|
+
}), g = f(), h = f(), x = f(), b = f(), G = k(() => v.members.map((a) => ({
|
|
157
159
|
label: a.name,
|
|
158
160
|
value: a.doc.userId
|
|
159
|
-
}))), J = k(() =>
|
|
161
|
+
}))), J = k(() => z.map((a) => ({
|
|
160
162
|
label: a.label,
|
|
161
163
|
value: a.subject
|
|
162
164
|
}))), Z = k(() => [{
|
|
@@ -190,12 +192,12 @@ const _e = "/audit-logs", ge = {
|
|
|
190
192
|
} = S.value;
|
|
191
193
|
return a && t ? `${a} – ${t}` : a || t || o("auditLog.dateRange.placeholder");
|
|
192
194
|
}), P = k(() => {
|
|
193
|
-
let a =
|
|
195
|
+
let a = A.value;
|
|
194
196
|
return g.value && g.value.length > 0 && (a = a.filter((t) => g.value.includes(t.userId))), h.value && h.value.length > 0 && (a = a.filter((t) => h.value.includes(t.subject))), x.value && x.value.length > 0 && (a = a.filter((t) => x.value.includes(t.outcome))), b.value && b.value.length > 0 && (a = a.filter((t) => b.value.includes(t.action))), a;
|
|
195
197
|
});
|
|
196
|
-
function
|
|
198
|
+
function R(a) {
|
|
197
199
|
var t;
|
|
198
|
-
return ((t =
|
|
200
|
+
return ((t = z.find((m) => m.subject === a)) == null ? void 0 : t.label) ?? ce[a];
|
|
199
201
|
}
|
|
200
202
|
const q = {
|
|
201
203
|
allowed: "success",
|
|
@@ -213,7 +215,7 @@ const _e = "/audit-logs", ge = {
|
|
|
213
215
|
header: () => o("auditLog.columns.user"),
|
|
214
216
|
enableSorting: !1,
|
|
215
217
|
cell(a) {
|
|
216
|
-
const t = a.row.original, m =
|
|
218
|
+
const t = a.row.original, m = v.userIdToName[t.userId];
|
|
217
219
|
return n("div", {
|
|
218
220
|
class: "flex items-center gap-8"
|
|
219
221
|
}, [n($.FmAvatar, {
|
|
@@ -228,7 +230,7 @@ const _e = "/audit-logs", ge = {
|
|
|
228
230
|
cellClass: "text-left"
|
|
229
231
|
},
|
|
230
232
|
cell(a) {
|
|
231
|
-
const t = a.row.original, m =
|
|
233
|
+
const t = a.row.original, m = R(t.subject);
|
|
232
234
|
return m ? n("div", {
|
|
233
235
|
class: "text-left"
|
|
234
236
|
}, [n("span", null, [m]), n("p", {
|
|
@@ -241,6 +243,14 @@ const _e = "/audit-logs", ge = {
|
|
|
241
243
|
accessorKey: "action",
|
|
242
244
|
header: () => o("auditLog.columns.action"),
|
|
243
245
|
enableSorting: !1
|
|
246
|
+
}, {
|
|
247
|
+
accessorKey: "operationLabel",
|
|
248
|
+
header: () => o("auditLog.columns.operation"),
|
|
249
|
+
enableSorting: !1,
|
|
250
|
+
size: 240,
|
|
251
|
+
cell(a) {
|
|
252
|
+
return a.row.original.metadata.operationLabel ?? "-";
|
|
253
|
+
}
|
|
244
254
|
}, {
|
|
245
255
|
accessorKey: "outcome",
|
|
246
256
|
header: () => o("auditLog.columns.outcome"),
|
|
@@ -255,17 +265,17 @@ const _e = "/audit-logs", ge = {
|
|
|
255
265
|
}
|
|
256
266
|
}];
|
|
257
267
|
function M(a, t = !1) {
|
|
258
|
-
const [m, y,
|
|
268
|
+
const [m, y, F] = a.split("-").map(Number), L = new Date(m, y - 1, F);
|
|
259
269
|
return t && L.setDate(L.getDate() + 1), L.toISOString().slice(0, 19).replace("T", " ");
|
|
260
270
|
}
|
|
261
|
-
async function
|
|
271
|
+
async function D() {
|
|
262
272
|
I.value = !0;
|
|
263
273
|
try {
|
|
264
274
|
const {
|
|
265
275
|
startDate: a,
|
|
266
276
|
endDate: t
|
|
267
|
-
} = S.value, m = (p.value - 1) *
|
|
268
|
-
limit:
|
|
277
|
+
} = S.value, m = (p.value - 1) * B, [y] = await Promise.all([ge.read({
|
|
278
|
+
limit: B,
|
|
269
279
|
offset: m,
|
|
270
280
|
// Convert local date boundaries to UTC ISO strings so ClickHouse
|
|
271
281
|
// (which stores timestamps in UTC) receives the correct range.
|
|
@@ -275,22 +285,22 @@ const _e = "/audit-logs", ge = {
|
|
|
275
285
|
...t ? {
|
|
276
286
|
to: M(t, !0)
|
|
277
287
|
} : {}
|
|
278
|
-
}),
|
|
279
|
-
|
|
288
|
+
}), v.readTeamMembers()]);
|
|
289
|
+
A.value = y, T.value = y.length === B;
|
|
280
290
|
} finally {
|
|
281
291
|
I.value = !1;
|
|
282
292
|
}
|
|
283
293
|
}
|
|
284
|
-
|
|
285
|
-
p.value = 1,
|
|
286
|
-
}),
|
|
294
|
+
U(S, () => {
|
|
295
|
+
p.value = 1, D();
|
|
296
|
+
}), U([g, h, x, b], () => {
|
|
287
297
|
p.value = 1;
|
|
288
298
|
});
|
|
289
299
|
async function X() {
|
|
290
|
-
p.value > 1 && (p.value--, await
|
|
300
|
+
p.value > 1 && (p.value--, await D());
|
|
291
301
|
}
|
|
292
302
|
async function ee() {
|
|
293
|
-
|
|
303
|
+
T.value && (p.value++, await D());
|
|
294
304
|
}
|
|
295
305
|
function te(a) {
|
|
296
306
|
l.value = a, O.value = !0;
|
|
@@ -298,28 +308,28 @@ const _e = "/audit-logs", ge = {
|
|
|
298
308
|
function oe() {
|
|
299
309
|
O.value = !1, l.value = null;
|
|
300
310
|
}
|
|
301
|
-
return
|
|
302
|
-
a && (p.value = 1,
|
|
311
|
+
return U(Y.currentBusiness, (a) => {
|
|
312
|
+
a && (p.value = 1, D());
|
|
303
313
|
}, {
|
|
304
314
|
immediate: !0
|
|
305
315
|
}), (a, t) => {
|
|
306
|
-
const m = w("FmChip"), y = w("FmDateRangePicker"),
|
|
307
|
-
return d(), u(
|
|
316
|
+
const m = w("FmChip"), y = w("FmDateRangePicker"), F = w("FmTable"), L = w("FmButton"), ae = w("FmSideSheet");
|
|
317
|
+
return d(), u(V, null, [n(ue, {
|
|
308
318
|
heading: i(o)("auditLog.title")
|
|
309
319
|
}, {
|
|
310
|
-
default:
|
|
320
|
+
default: j(() => [e("div", he, [e("div", xe, [n(y, {
|
|
311
321
|
modelValue: S.value,
|
|
312
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
322
|
+
"onUpdate:modelValue": t[0] || (t[0] = (c) => S.value = c),
|
|
313
323
|
"show-predefined-range": ""
|
|
314
324
|
}, {
|
|
315
|
-
"trigger-button":
|
|
325
|
+
"trigger-button": j(() => [n(m, {
|
|
316
326
|
label: Q.value,
|
|
317
327
|
icon: "calendar_month"
|
|
318
328
|
}, null, 8, ["label"])]),
|
|
319
329
|
_: 1
|
|
320
330
|
}, 8, ["modelValue"]), e("div", be, [n(C, {
|
|
321
331
|
modelValue: g.value,
|
|
322
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
332
|
+
"onUpdate:modelValue": t[1] || (t[1] = (c) => g.value = c),
|
|
323
333
|
items: G.value,
|
|
324
334
|
multiple: "",
|
|
325
335
|
variant: "dark",
|
|
@@ -328,7 +338,7 @@ const _e = "/audit-logs", ge = {
|
|
|
328
338
|
"chip-icon": "account_circle"
|
|
329
339
|
}, null, 8, ["modelValue", "items", "placeholder", "selected-prefix"])]), e("div", ye, [n(C, {
|
|
330
340
|
modelValue: h.value,
|
|
331
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
341
|
+
"onUpdate:modelValue": t[2] || (t[2] = (c) => h.value = c),
|
|
332
342
|
items: J.value,
|
|
333
343
|
multiple: "",
|
|
334
344
|
variant: "dark",
|
|
@@ -337,7 +347,7 @@ const _e = "/audit-logs", ge = {
|
|
|
337
347
|
"chip-icon": "badge"
|
|
338
348
|
}, null, 8, ["modelValue", "items", "placeholder", "selected-prefix"])]), e("div", Le, [n(C, {
|
|
339
349
|
modelValue: b.value,
|
|
340
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
350
|
+
"onUpdate:modelValue": t[3] || (t[3] = (c) => b.value = c),
|
|
341
351
|
items: Z.value,
|
|
342
352
|
multiple: "",
|
|
343
353
|
variant: "dark",
|
|
@@ -346,7 +356,7 @@ const _e = "/audit-logs", ge = {
|
|
|
346
356
|
searchable: !1
|
|
347
357
|
}, null, 8, ["modelValue", "items", "placeholder", "selected-prefix"])]), e("div", ke, [n(C, {
|
|
348
358
|
modelValue: x.value,
|
|
349
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
359
|
+
"onUpdate:modelValue": t[4] || (t[4] = (c) => x.value = c),
|
|
350
360
|
items: H.value,
|
|
351
361
|
multiple: "",
|
|
352
362
|
variant: "dark",
|
|
@@ -358,10 +368,10 @@ const _e = "/audit-logs", ge = {
|
|
|
358
368
|
key: 0,
|
|
359
369
|
title: i(o)("auditLog.noData.title"),
|
|
360
370
|
subtitle: i(o)("auditLog.noData.subtitle")
|
|
361
|
-
}, null, 8, ["title", "subtitle"])) : (d(), K(
|
|
371
|
+
}, null, 8, ["title", "subtitle"])) : (d(), K(re, {
|
|
362
372
|
key: 1
|
|
363
373
|
}, {
|
|
364
|
-
default:
|
|
374
|
+
default: j(() => [e("div", Se, [n(F, {
|
|
365
375
|
"column-defs": W,
|
|
366
376
|
"row-data": P.value,
|
|
367
377
|
"page-size": P.value.length,
|
|
@@ -369,8 +379,8 @@ const _e = "/audit-logs", ge = {
|
|
|
369
379
|
"pin-header-row": "",
|
|
370
380
|
"hide-footer": "",
|
|
371
381
|
class: "min-h-0 flex-1 cursor-pointer",
|
|
372
|
-
onRowClick: t[5] || (t[5] = (
|
|
373
|
-
}, null, 8, ["row-data", "page-size", "loading"]), p.value > 1 ||
|
|
382
|
+
onRowClick: t[5] || (t[5] = (c) => te(c.original))
|
|
383
|
+
}, null, 8, ["row-data", "page-size", "loading"]), p.value > 1 || T.value ? (d(), u("div", we, [n(L, {
|
|
374
384
|
variant: "tertiary",
|
|
375
385
|
icon: "chevron_left",
|
|
376
386
|
disabled: p.value === 1,
|
|
@@ -381,10 +391,10 @@ const _e = "/audit-logs", ge = {
|
|
|
381
391
|
})), 1), n(L, {
|
|
382
392
|
variant: "tertiary",
|
|
383
393
|
icon: "chevron_right",
|
|
384
|
-
disabled: !
|
|
394
|
+
disabled: !T.value,
|
|
385
395
|
"aria-label": i(o)("auditLog.pagination.nextPage"),
|
|
386
396
|
onClick: ee
|
|
387
|
-
}, null, 8, ["disabled", "aria-label"])])) :
|
|
397
|
+
}, null, 8, ["disabled", "aria-label"])])) : _("", !0)])]),
|
|
388
398
|
_: 1
|
|
389
399
|
}))])]),
|
|
390
400
|
_: 1
|
|
@@ -393,31 +403,31 @@ const _e = "/audit-logs", ge = {
|
|
|
393
403
|
"model-value": O.value,
|
|
394
404
|
"max-width": 480,
|
|
395
405
|
"dismiss-away": "",
|
|
396
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
397
|
-
|
|
406
|
+
"onUpdate:modelValue": t[6] || (t[6] = (c) => {
|
|
407
|
+
c || oe();
|
|
398
408
|
})
|
|
399
409
|
}, {
|
|
400
|
-
default:
|
|
410
|
+
default: j(() => [l.value ? (d(), u("div", Te, [e("div", De, [e("div", Ve, [e("span", je, [e("p", Ce, s(l.value.metadata.operationLabel), 1)]), n(m, {
|
|
401
411
|
variant: q[l.value.outcome] ?? "neutral",
|
|
402
412
|
label: l.value.outcome,
|
|
403
413
|
compact: ""
|
|
404
414
|
}, null, 8, ["variant", "label"])]), t[7] || (t[7] = e("hr", {
|
|
405
415
|
class: "border-fm-color-border-default"
|
|
406
|
-
}, null, -1)), e("div",
|
|
416
|
+
}, null, -1)), e("div", Oe, [e("div", null, [e("p", Pe, s(i(o)("auditLog.detail.timestamp")), 1), e("p", Fe, s(new Date(l.value.timestamp).toLocaleString()), 1)]), i(v).userIdToName[l.value.userId] ? (d(), u("div", Ne, [e("p", Ue, s(i(o)("auditLog.detail.user")), 1), e("p", Be, s(i(v).userIdToName[l.value.userId]), 1)])) : _("", !0), e("div", null, [e("p", Ae, s(i(o)("auditLog.detail.email")), 1), e("p", Ee, s(i(v).userIdToEmail[l.value.userId] || l.value.userId), 1)]), e("div", null, [e("p", Re, s(i(o)("auditLog.detail.action")), 1), e("p", qe, s(l.value.action), 1)]), e("div", null, [e("p", Me, s(i(o)("auditLog.detail.subject")), 1), e("p", Ke, s(R(l.value.subject) || l.value.subject), 1)]), l.value.field ? (d(), u("div", $e, [e("p", ze, s(i(o)("auditLog.detail.field")), 1), e("p", Ye, s(l.value.field), 1)])) : _("", !0), e("div", null, [e("p", Ge, s(i(o)("auditLog.detail.business")), 1), e("p", Je, s(l.value.businessId || "-"), 1)]), e("div", null, [e("p", Ze, s(i(o)("auditLog.detail.restaurant")), 1), e("p", He, s(l.value.restaurantId || "-"), 1)])])]), e("div", Qe, [e("div", We, [e("p", Xe, s(i(o)("auditLog.detail.metadata")), 1)]), t[8] || (t[8] = e("hr", {
|
|
407
417
|
class: "border-fm-color-border-default"
|
|
408
|
-
}, null, -1)), e("div",
|
|
418
|
+
}, null, -1)), e("div", et, [l.value.metadata.reason ? (d(), u("div", tt, [e("p", ot, s(i(o)("auditLog.detail.reason")), 1), e("p", at, s(l.value.metadata.reason), 1)])) : _("", !0), e("div", null, [e("p", lt, s(i(o)("auditLog.detail.resolvedFrom")), 1), e("p", st, s(l.value.metadata.resolvedFrom), 1)]), l.value.metadata.permissionSetId ? (d(), u("div", it, [e("p", nt, s(i(o)("auditLog.detail.permissionSet")), 1), l.value.metadata.resolvedFrom === "systemPermissionSet" ? (d(), u(V, {
|
|
409
419
|
key: 0
|
|
410
|
-
}, [e("p",
|
|
420
|
+
}, [e("p", dt, s(l.value.metadata.permissionSetName) + " (system)", 1), e("p", rt, s(l.value.metadata.permissionSetId), 1)], 64)) : (d(), u(V, {
|
|
411
421
|
key: 1
|
|
412
|
-
}, [e("p", ct, s(l.value.metadata.permissionSetName || l.value.metadata.permissionSetId), 1), l.value.metadata.permissionSetName ? (d(), u("p",
|
|
413
|
-
key:
|
|
422
|
+
}, [e("p", ct, s(l.value.metadata.permissionSetName || l.value.metadata.permissionSetId), 1), l.value.metadata.permissionSetName ? (d(), u("p", ut, s(l.value.metadata.permissionSetId), 1)) : _("", !0)], 64))])) : _("", !0), l.value.metadata.trace && l.value.metadata.trace.length > 0 ? (d(), u("div", mt, [e("p", ft, s(i(o)("auditLog.detail.permissionTrace")), 1), e("ol", pt, [(d(!0), u(V, null, se(l.value.metadata.trace, (c, N) => (d(), u("li", {
|
|
423
|
+
key: N,
|
|
414
424
|
class: "flex items-center gap-6"
|
|
415
|
-
}, [e("span",
|
|
425
|
+
}, [e("span", _t, s(N + 1), 1), e("span", vt, s(c), 1), N < l.value.metadata.trace.length - 1 ? (d(), u("span", gt, "→")) : _("", !0)]))), 128))])])) : _("", !0), e("div", null, [e("p", ht, s(i(o)("auditLog.detail.requestMethod")), 1), e("p", xt, s(l.value.metadata.requestMethod), 1)]), e("div", null, [e("p", bt, s(i(o)("auditLog.detail.requestPath")), 1), e("p", yt, s(l.value.metadata.requestPath), 1)]), l.value.metadata.requestBody && Object.keys(l.value.metadata.requestBody).length > 0 ? (d(), u("div", Lt, [e("p", kt, s(i(o)("auditLog.detail.requestBody")), 1), e("pre", St, s(JSON.stringify(l.value.metadata.requestBody, null, 2)), 1)])) : _("", !0)])])])) : _("", !0)]),
|
|
416
426
|
_: 1
|
|
417
427
|
}, 8, ["header", "model-value"])], 64);
|
|
418
428
|
};
|
|
419
429
|
}
|
|
420
430
|
});
|
|
421
431
|
export {
|
|
422
|
-
|
|
432
|
+
Nt as default
|
|
423
433
|
};
|
|
@@ -2,14 +2,14 @@ import { createElementBlock as $, openBlock as _, createElementVNode as d, toRaw
|
|
|
2
2
|
import { useCoreStore as Fe, useI18n as xe, RestaurantSelector as ce } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as we, components as ke, useDialog as Ne, useBreakpoints as Be, FmButtonVariant as De } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as Pe, S as pe } from "./SelectFilter-NbXrJ4iH.js";
|
|
5
|
-
import { _ as Te } from "./app-
|
|
5
|
+
import { _ as Te } from "./app-BwF4Swnp.js";
|
|
6
6
|
import { _ as ze } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
7
|
import { u as Ue } from "./useSearch-B6WK1LBB.js";
|
|
8
|
-
import { u as Se, E as Ae } from "./employee-
|
|
9
|
-
import { l as je } from "./lodash-
|
|
8
|
+
import { u as Se, E as Ae } from "./employee-09CJRs3Q.js";
|
|
9
|
+
import { l as je } from "./lodash-f-cIBAzV.js";
|
|
10
10
|
import { u as Ke, _ as ve, a as fe, b as Ge } from "./useRestaurantMap-D5BNPLKh.js";
|
|
11
|
-
import { u as qe } from "./useLoading-
|
|
12
|
-
import { u as ue } from "./useAppStore-
|
|
11
|
+
import { u as qe } from "./useLoading-s8etox00.js";
|
|
12
|
+
import { u as ue } from "./useAppStore-CbDp946u.js";
|
|
13
13
|
const He = {};
|
|
14
14
|
function Je(S, O) {
|
|
15
15
|
return _(), $("div", null, [...O[0] || (O[0] = [
|
|
@@ -4,13 +4,13 @@ import { useI18n as N } from "@feedmepos/mf-common";
|
|
|
4
4
|
import { _ as g } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
5
|
import { _ as h } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
6
|
import "@feedmepos/ui-library";
|
|
7
|
-
import "./index-
|
|
8
|
-
import { R as v } from "./app-
|
|
9
|
-
import "./useAppStore-
|
|
10
|
-
import "./index-
|
|
7
|
+
import "./index-BIzqz5Rs.js";
|
|
8
|
+
import { R as v } from "./app-BwF4Swnp.js";
|
|
9
|
+
import "./useAppStore-CbDp946u.js";
|
|
10
|
+
import "./index-C-0bzcOw.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
|
-
import "./team-
|
|
13
|
+
import "./team-doxRPLFp.js";
|
|
14
14
|
const w = { class: "space-y-24" }, P = /* @__PURE__ */ V({
|
|
15
15
|
__name: "Main",
|
|
16
16
|
setup(x) {
|
|
@@ -3,16 +3,16 @@ import { useRouter as of, useRoute as cf } from "vue-router";
|
|
|
3
3
|
import { useCoreStore as hf, useI18n as uf } from "@feedmepos/mf-common";
|
|
4
4
|
import { _ as vf } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
5
|
import { _ as pf } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
|
-
import { u as df } from "./useAppStore-
|
|
6
|
+
import { u as df } from "./useAppStore-CbDp946u.js";
|
|
7
7
|
import "@feedmepos/ui-library";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { u as mf } from "./employee-
|
|
10
|
-
import "./lodash-
|
|
11
|
-
import "./index-
|
|
12
|
-
import { R as vt } from "./app-
|
|
13
|
-
import "./useReportPermissions-
|
|
14
|
-
import "./dayjs.min-
|
|
15
|
-
import "./timesheet-
|
|
9
|
+
import { u as mf } from "./employee-09CJRs3Q.js";
|
|
10
|
+
import "./lodash-f-cIBAzV.js";
|
|
11
|
+
import "./index-BIzqz5Rs.js";
|
|
12
|
+
import { R as vt } from "./app-BwF4Swnp.js";
|
|
13
|
+
import "./useReportPermissions-BphupOls.js";
|
|
14
|
+
import "./dayjs.min-DVWcfk3W.js";
|
|
15
|
+
import "./timesheet-Dd_xXYAz.js";
|
|
16
16
|
var In = {};
|
|
17
17
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
18
18
|
var jt = {};
|