@feedmepos/mf-hrm-portal 2.1.1-dev → 2.1.1-dev.2
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-Cvp-5_0y.js → AuditLogList-DHiqs9G0.js} +219 -216
- package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-Cb8-YaiH.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-CWqNWNdD.js} +2 -2
- package/dist/{EmployeeList-DgrD3Hjm.js → EmployeeList-CUd3VH5h.js} +6 -6
- package/dist/{Main-mTxcltDY.js → Main-B_L5flWT.js} +6 -6
- package/dist/{Main-G3am-0Xi.js → Main-DUbLeLlK.js} +4 -4
- package/dist/{Main-BLRr_ORG.js → Main-DgemO-iy.js} +9 -9
- package/dist/{PermissionSetList-OzyfE-Yg.js → PermissionSetList-BaC4lKV5.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Ca2NnAAF.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DddOxcG_.js} +690 -690
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_79737e32_lang-Czo3FLbc.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_79737e32_lang-DbPzVpnG.js} +1 -1
- package/dist/{RoleList-DOZ5RJ6A.js → RoleList-CThb6VEd.js} +8 -8
- package/dist/{TeamMemberList-CAqLUyQK.js → TeamMemberList-CAw4jr1b.js} +8 -8
- package/dist/{TimesheetList-D21j4zLV.js → TimesheetList-C_IMtsTH.js} +6 -6
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CRmmIfTk.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-DGwteHIL.js} +2 -2
- package/dist/{app-CX-St7pv.js → app-BW91YDke.js} +4 -4
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-MDoe5X-P.js → dayjs.min-DwQTpnVK.js} +1 -1
- package/dist/{employee-B2cdx2t4.js → employee-yM0kdY70.js} +3 -3
- package/dist/{iteration-B38iapI_.js → iteration-Dj50K6I7.js} +1 -1
- package/dist/{lodash-DZAGPZLQ.js → lodash-DLReQyP0.js} +1 -1
- package/dist/{rule-DftQBR76.js → rule-BJ-o-PKi.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BBsP5C3E.js → useAppStore-CHkGWiai.js} +1 -1
- package/dist/{useLoading-qgSjOzRD.js → useLoading-B89K5XKO.js} +1 -1
- package/dist/{useReportPermissions-CIhkjN3B.js → useReportPermissions-Bjfhr6FD.js} +3 -3
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as St, ref as y, computed as w, onMounted as po, onBeforeUnmount as go, watch as ne, resolveComponent as U, createElementBlock as b, openBlock as
|
|
2
|
-
import { d as A } from "./dayjs.min-
|
|
1
|
+
import { defineComponent as St, ref as y, computed as w, onMounted as po, onBeforeUnmount as go, watch as ne, resolveComponent as U, createElementBlock as b, openBlock as v, createBlock as Ce, createCommentVNode as F, createElementVNode as l, Fragment as J, renderList as re, withCtx as B, createVNode as m, toDisplayString as r, unref as d, nextTick as ho, onUnmounted as bo, normalizeClass as yo, createTextVNode as We } from "vue";
|
|
2
|
+
import { d as A } from "./dayjs.min-DwQTpnVK.js";
|
|
3
3
|
import { useI18n as wt, useCoreStore as _o } from "@feedmepos/mf-common";
|
|
4
|
-
import { G as ht, _ as xo } from "./app-
|
|
4
|
+
import { G as ht, _ as xo } from "./app-BW91YDke.js";
|
|
5
5
|
import { components as _e } from "@feedmepos/ui-library";
|
|
6
|
-
import { g as qe, b as Ge } from "./iteration-
|
|
6
|
+
import { g as qe, b as Ge } from "./iteration-Dj50K6I7.js";
|
|
7
7
|
import { S as je, _ as Lo } from "./SelectFilter-ATOm0hdn.js";
|
|
8
8
|
import { _ as So } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
9
9
|
import { _ as wo } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-Ci_MVqGK.js";
|
|
10
|
-
import { t as ko, p as bt } from "./rule-
|
|
10
|
+
import { t as ko, p as bt } from "./rule-BJ-o-PKi.js";
|
|
11
11
|
import { defineStore as Io } from "pinia";
|
|
12
12
|
import { u as Mo } from "./useDebounce-B8ZPVS5C.js";
|
|
13
13
|
const xe = [
|
|
@@ -40,12 +40,12 @@ const xe = [
|
|
|
40
40
|
await Ge().get(`${Xe}/count`, {
|
|
41
41
|
params: o,
|
|
42
42
|
paramsSerializer: (x) => {
|
|
43
|
-
const
|
|
43
|
+
const D = new URLSearchParams();
|
|
44
44
|
for (const [T, j] of Object.entries(x))
|
|
45
45
|
if (Array.isArray(j))
|
|
46
|
-
for (const ee of j)
|
|
47
|
-
else j != null &&
|
|
48
|
-
return
|
|
46
|
+
for (const ee of j) D.append(T, String(ee));
|
|
47
|
+
else j != null && D.append(T, String(j));
|
|
48
|
+
return D.toString();
|
|
49
49
|
}
|
|
50
50
|
})
|
|
51
51
|
)).total;
|
|
@@ -74,10 +74,10 @@ const xe = [
|
|
|
74
74
|
// (NestJS @Query expects this; axios default adds brackets which break matching)
|
|
75
75
|
paramsSerializer: (S) => {
|
|
76
76
|
const x = new URLSearchParams();
|
|
77
|
-
for (const [
|
|
77
|
+
for (const [D, T] of Object.entries(S))
|
|
78
78
|
if (Array.isArray(T))
|
|
79
|
-
for (const j of T) x.append(
|
|
80
|
-
else T != null && x.append(
|
|
79
|
+
for (const j of T) x.append(D, String(j));
|
|
80
|
+
else T != null && x.append(D, String(T));
|
|
81
81
|
return x.toString();
|
|
82
82
|
}
|
|
83
83
|
})
|
|
@@ -109,7 +109,7 @@ const xe = [
|
|
|
109
109
|
emits: ["update:modelValue"],
|
|
110
110
|
setup(t, { emit: o }) {
|
|
111
111
|
const n = t, u = o, { t: _ } = wt(), c = y(!1), f = y(null), a = y(null), I = y([]), S = y(0), x = y(0);
|
|
112
|
-
let
|
|
112
|
+
let D = null;
|
|
113
113
|
async function T() {
|
|
114
114
|
if (await ho(), !a.value) return;
|
|
115
115
|
const O = a.value.querySelectorAll("[data-tab-measure]");
|
|
@@ -147,11 +147,11 @@ const xe = [
|
|
|
147
147
|
c.value = !1, u("update:modelValue", O);
|
|
148
148
|
}
|
|
149
149
|
return po(async () => {
|
|
150
|
-
await T(), f.value && (x.value = f.value.clientWidth,
|
|
150
|
+
await T(), f.value && (x.value = f.value.clientWidth, D = new ResizeObserver(() => {
|
|
151
151
|
f.value && (x.value = f.value.clientWidth);
|
|
152
|
-
}),
|
|
152
|
+
}), D.observe(f.value));
|
|
153
153
|
}), go(() => {
|
|
154
|
-
|
|
154
|
+
D == null || D.disconnect(), D = null;
|
|
155
155
|
}), ne(
|
|
156
156
|
() => n.items,
|
|
157
157
|
() => {
|
|
@@ -160,12 +160,12 @@ const xe = [
|
|
|
160
160
|
{ deep: !0 }
|
|
161
161
|
), (O, M) => {
|
|
162
162
|
const V = U("FmTab"), P = U("FmIcon"), W = U("FmMenuItem"), Y = U("FmMenu");
|
|
163
|
-
return
|
|
163
|
+
return v(), b("div", {
|
|
164
164
|
ref_key: "containerRef",
|
|
165
165
|
ref: f,
|
|
166
166
|
class: "relative flex w-full flex-row items-center"
|
|
167
167
|
}, [
|
|
168
|
-
(
|
|
168
|
+
(v(!0), b(J, null, re(ee.value, (L) => (v(), Ce(V, {
|
|
169
169
|
key: L.value,
|
|
170
170
|
"model-value": t.modelValue,
|
|
171
171
|
label: L.label,
|
|
@@ -174,7 +174,7 @@ const xe = [
|
|
|
174
174
|
value: L.value,
|
|
175
175
|
"onUpdate:modelValue": ge
|
|
176
176
|
}, null, 8, ["model-value", "label", "badge", "disabled", "value"]))), 128)),
|
|
177
|
-
pe.value.length > 0 ? (
|
|
177
|
+
pe.value.length > 0 ? (v(), Ce(Y, {
|
|
178
178
|
key: 0,
|
|
179
179
|
"show-menu": c.value,
|
|
180
180
|
class: "max-w-[360px] min-w-[90px] rounded-sm",
|
|
@@ -184,11 +184,11 @@ const xe = [
|
|
|
184
184
|
"menu-button": B(() => [
|
|
185
185
|
l("div", Oo, [
|
|
186
186
|
m(P, { name: "more_vert" }),
|
|
187
|
-
l("span", Ao,
|
|
187
|
+
l("span", Ao, r(d(_)("auditLog.modules.more")), 1)
|
|
188
188
|
])
|
|
189
189
|
]),
|
|
190
190
|
default: B(() => [
|
|
191
|
-
(
|
|
191
|
+
(v(!0), b(J, null, re(pe.value, (L) => (v(), Ce(W, {
|
|
192
192
|
key: L.value,
|
|
193
193
|
"model-value": t.modelValue === L.value,
|
|
194
194
|
label: L.label,
|
|
@@ -197,14 +197,14 @@ const xe = [
|
|
|
197
197
|
}, null, 8, ["model-value", "label", "disabled", "onClick"]))), 128))
|
|
198
198
|
]),
|
|
199
199
|
_: 1
|
|
200
|
-
}, 8, ["show-menu"])) :
|
|
200
|
+
}, 8, ["show-menu"])) : F("", !0),
|
|
201
201
|
l("div", {
|
|
202
202
|
ref_key: "measurerRef",
|
|
203
203
|
ref: a,
|
|
204
204
|
"aria-hidden": "true",
|
|
205
205
|
class: "pointer-events-none invisible absolute -left-[9999px] -top-[9999px] flex flex-row items-center"
|
|
206
206
|
}, [
|
|
207
|
-
(
|
|
207
|
+
(v(!0), b(J, null, re(t.items, (L) => (v(), b("div", {
|
|
208
208
|
key: `measure-${L.value}`,
|
|
209
209
|
"data-tab-measure": ""
|
|
210
210
|
}, [
|
|
@@ -218,7 +218,7 @@ const xe = [
|
|
|
218
218
|
]))), 128)),
|
|
219
219
|
l("div", Fo, [
|
|
220
220
|
m(P, { name: "more_vert" }),
|
|
221
|
-
l("span", Do,
|
|
221
|
+
l("span", Do, r(d(_)("auditLog.modules.more")), 1)
|
|
222
222
|
])
|
|
223
223
|
], 512)
|
|
224
224
|
], 512);
|
|
@@ -337,8 +337,8 @@ function Ko(t, o, n, u) {
|
|
|
337
337
|
n.map((S) => [S[_], S])
|
|
338
338
|
), I = /* @__PURE__ */ new Set([...f.keys(), ...a.keys()]);
|
|
339
339
|
for (const S of I) {
|
|
340
|
-
const x = f.has(S),
|
|
341
|
-
we(T, f.get(S), x, a.get(S),
|
|
340
|
+
const x = f.has(S), D = a.has(S), T = `${t}[${String(S)}]`;
|
|
341
|
+
we(T, f.get(S), x, a.get(S), D, u);
|
|
342
342
|
}
|
|
343
343
|
return;
|
|
344
344
|
}
|
|
@@ -419,199 +419,202 @@ const Yo = {
|
|
|
419
419
|
}, ss = {
|
|
420
420
|
class: "audit-log-operation-label-detail text-base font-bold leading-snug text-fm-color-typo-primary"
|
|
421
421
|
}, ls = {
|
|
422
|
-
|
|
422
|
+
key: 0,
|
|
423
|
+
class: "mt-4 break-all font-mono text-xs text-fm-color-typo-secondary"
|
|
423
424
|
}, as = {
|
|
424
|
-
class: "
|
|
425
|
+
class: "rounded-lg border border-fm-color-border-default p-12"
|
|
425
426
|
}, ns = {
|
|
426
|
-
class: "
|
|
427
|
+
class: "space-y-12"
|
|
427
428
|
}, rs = {
|
|
428
|
-
class: "font-semibold"
|
|
429
|
-
}, is = {
|
|
430
429
|
class: "text-xs text-fm-color-typo-secondary"
|
|
431
|
-
},
|
|
430
|
+
}, is = {
|
|
432
431
|
class: "font-semibold"
|
|
433
|
-
},
|
|
432
|
+
}, us = {
|
|
434
433
|
class: "text-xs text-fm-color-typo-secondary"
|
|
434
|
+
}, ds = {
|
|
435
|
+
class: "font-semibold"
|
|
435
436
|
}, cs = {
|
|
436
|
-
class: "
|
|
437
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
437
438
|
}, fs = {
|
|
438
|
-
|
|
439
|
+
class: "break-all font-semibold"
|
|
439
440
|
}, ms = {
|
|
440
|
-
|
|
441
|
+
key: 0
|
|
441
442
|
}, vs = {
|
|
442
|
-
class: "break-all font-mono text-xs font-semibold"
|
|
443
|
-
}, ps = {
|
|
444
443
|
class: "text-xs text-fm-color-typo-secondary"
|
|
445
|
-
},
|
|
444
|
+
}, ps = {
|
|
446
445
|
class: "break-all font-mono text-xs font-semibold"
|
|
447
|
-
},
|
|
446
|
+
}, gs = {
|
|
448
447
|
class: "text-xs text-fm-color-typo-secondary"
|
|
448
|
+
}, hs = {
|
|
449
|
+
class: "break-all font-mono text-xs font-semibold"
|
|
449
450
|
}, bs = {
|
|
450
|
-
class: "
|
|
451
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
451
452
|
}, ys = {
|
|
452
|
-
class: "
|
|
453
|
+
class: "font-semibold"
|
|
453
454
|
}, _s = {
|
|
454
|
-
class: "
|
|
455
|
+
class: "rounded-lg border border-fm-color-border-default"
|
|
455
456
|
}, xs = {
|
|
456
|
-
class: "
|
|
457
|
+
class: "p-12"
|
|
457
458
|
}, Ls = {
|
|
458
|
-
class: "
|
|
459
|
+
class: "text-base font-bold text-fm-color-typo-primary"
|
|
459
460
|
}, Ss = {
|
|
460
|
-
class: "
|
|
461
|
+
class: "space-y-12 p-12"
|
|
461
462
|
}, ws = {
|
|
462
|
-
class: "
|
|
463
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
463
464
|
}, ks = {
|
|
464
|
-
class: "
|
|
465
|
+
class: "font-semibold"
|
|
465
466
|
}, Is = {
|
|
466
|
-
class: "
|
|
467
|
+
class: "rounded-lg border border-fm-color-border-default"
|
|
467
468
|
}, Ms = {
|
|
468
|
-
class: "
|
|
469
|
+
class: "p-12"
|
|
469
470
|
}, Os = {
|
|
470
|
-
class: "
|
|
471
|
+
class: "text-base font-bold text-fm-color-typo-primary"
|
|
471
472
|
}, As = {
|
|
472
|
-
class: "
|
|
473
|
+
class: "space-y-12 p-12"
|
|
473
474
|
}, Fs = {
|
|
474
|
-
class: "
|
|
475
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
475
476
|
}, Ds = {
|
|
476
|
-
|
|
477
|
+
class: "font-semibold"
|
|
477
478
|
}, js = {
|
|
478
|
-
|
|
479
|
+
key: 0
|
|
479
480
|
}, Ts = {
|
|
481
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
482
|
+
}, Ps = {
|
|
480
483
|
key: 0,
|
|
481
484
|
class: "font-semibold"
|
|
482
|
-
},
|
|
485
|
+
}, Cs = {
|
|
483
486
|
key: 1,
|
|
484
487
|
class: "break-all font-mono text-xs text-fm-color-typo-secondary"
|
|
485
|
-
}, Cs = {
|
|
486
|
-
key: 1
|
|
487
488
|
}, Vs = {
|
|
488
|
-
|
|
489
|
+
key: 1
|
|
489
490
|
}, Es = {
|
|
490
|
-
class: "font-semibold whitespace-pre-line"
|
|
491
|
-
}, Rs = {
|
|
492
491
|
class: "text-xs text-fm-color-typo-secondary"
|
|
492
|
+
}, Rs = {
|
|
493
|
+
class: "font-semibold whitespace-pre-line"
|
|
493
494
|
}, Us = {
|
|
494
|
-
class: "font-semibold"
|
|
495
|
-
}, $s = {
|
|
496
495
|
class: "text-xs text-fm-color-typo-secondary"
|
|
496
|
+
}, $s = {
|
|
497
|
+
class: "font-semibold"
|
|
497
498
|
}, Ns = {
|
|
498
|
-
class: "
|
|
499
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
499
500
|
}, Ks = {
|
|
500
|
-
|
|
501
|
+
class: "break-all font-mono text-xs font-semibold"
|
|
501
502
|
}, Bs = {
|
|
502
|
-
|
|
503
|
+
key: 2
|
|
503
504
|
}, Ys = {
|
|
504
|
-
class: "
|
|
505
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
505
506
|
}, zs = {
|
|
506
|
-
class: "
|
|
507
|
+
class: "mt-4 space-y-4"
|
|
507
508
|
}, Hs = {
|
|
508
|
-
class: "text-xs font-
|
|
509
|
+
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"
|
|
509
510
|
}, Js = {
|
|
511
|
+
class: "text-xs font-semibold"
|
|
512
|
+
}, Ws = {
|
|
510
513
|
key: 0,
|
|
511
514
|
class: "text-fm-color-typo-secondary"
|
|
512
|
-
}, Ws = {
|
|
513
|
-
key: 3
|
|
514
515
|
}, qs = {
|
|
515
|
-
|
|
516
|
+
key: 3
|
|
516
517
|
}, Gs = {
|
|
517
|
-
class: "
|
|
518
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
518
519
|
}, Xs = {
|
|
520
|
+
class: "mt-4 max-h-[400px] overflow-auto rounded bg-gray-100 p-8 font-mono text-xs leading-relaxed shadow-inner whitespace-pre-wrap break-all"
|
|
521
|
+
}, Qs = {
|
|
519
522
|
key: 0,
|
|
520
523
|
class: "space-y-12 p-4 text-sm"
|
|
521
|
-
}, Qs = {
|
|
522
|
-
class: "flex items-start justify-between gap-8 rounded-lg border border-fm-color-border-default p-12"
|
|
523
524
|
}, Zs = {
|
|
524
|
-
class: "
|
|
525
|
+
class: "flex items-start justify-between gap-8 rounded-lg border border-fm-color-border-default p-12"
|
|
525
526
|
}, el = {
|
|
526
|
-
class: "
|
|
527
|
+
class: "min-w-0 flex-1"
|
|
527
528
|
}, tl = {
|
|
529
|
+
class: "text-base font-bold leading-snug text-fm-color-typo-primary"
|
|
530
|
+
}, ol = {
|
|
528
531
|
key: 0,
|
|
529
532
|
class: "text-xs text-fm-color-typo-secondary"
|
|
530
|
-
}, ol = {
|
|
531
|
-
class: "rounded-lg border border-fm-color-border-default p-12"
|
|
532
533
|
}, sl = {
|
|
533
|
-
class: "
|
|
534
|
+
class: "rounded-lg border border-fm-color-border-default p-12"
|
|
534
535
|
}, ll = {
|
|
535
|
-
class: "
|
|
536
|
+
class: "space-y-12"
|
|
536
537
|
}, al = {
|
|
537
|
-
class: "
|
|
538
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
538
539
|
}, nl = {
|
|
539
|
-
|
|
540
|
+
class: "font-semibold"
|
|
540
541
|
}, rl = {
|
|
541
|
-
|
|
542
|
+
key: 0
|
|
542
543
|
}, il = {
|
|
543
|
-
class: "
|
|
544
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
544
545
|
}, ul = {
|
|
545
|
-
|
|
546
|
+
class: "font-semibold"
|
|
546
547
|
}, dl = {
|
|
547
|
-
|
|
548
|
+
key: 1
|
|
548
549
|
}, cl = {
|
|
549
|
-
class: "
|
|
550
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
550
551
|
}, fl = {
|
|
552
|
+
class: "font-semibold"
|
|
553
|
+
}, ml = {
|
|
551
554
|
key: 0,
|
|
552
555
|
class: "rounded-lg border border-fm-color-border-default p-12"
|
|
553
|
-
}, ml = {
|
|
554
|
-
class: "text-xs text-fm-color-typo-secondary"
|
|
555
556
|
}, vl = {
|
|
556
|
-
class: "
|
|
557
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
557
558
|
}, pl = {
|
|
558
|
-
class: "
|
|
559
|
+
class: "whitespace-pre-line font-semibold text-fm-color-typo-error"
|
|
559
560
|
}, gl = {
|
|
560
|
-
class: "
|
|
561
|
+
class: "rounded-lg border border-fm-color-border-default"
|
|
561
562
|
}, hl = {
|
|
562
|
-
class: "text-base font-bold text-fm-color-typo-primary"
|
|
563
|
-
}, bl = {
|
|
564
563
|
class: "p-12"
|
|
564
|
+
}, bl = {
|
|
565
|
+
class: "text-base font-bold text-fm-color-typo-primary"
|
|
565
566
|
}, yl = {
|
|
567
|
+
class: "p-12"
|
|
568
|
+
}, _l = {
|
|
566
569
|
key: 0,
|
|
567
570
|
class: "divide-y divide-fm-color-border-default"
|
|
568
|
-
}, _l = {
|
|
569
|
-
class: "flex flex-wrap items-center gap-8"
|
|
570
571
|
}, xl = {
|
|
571
|
-
class: "
|
|
572
|
+
class: "flex flex-wrap items-center gap-8"
|
|
572
573
|
}, Ll = {
|
|
573
|
-
class: "
|
|
574
|
+
class: "break-all font-mono text-xs"
|
|
574
575
|
}, Sl = {
|
|
576
|
+
class: "space-y-4"
|
|
577
|
+
}, wl = {
|
|
575
578
|
key: 0,
|
|
576
579
|
class: "text-fm-color-typo-success"
|
|
577
|
-
}, wl = {
|
|
578
|
-
key: 1,
|
|
579
|
-
class: "text-fm-color-typo-error"
|
|
580
580
|
}, kl = {
|
|
581
|
+
key: 1,
|
|
581
582
|
class: "text-fm-color-typo-error"
|
|
582
583
|
}, Il = {
|
|
583
|
-
class: "text-fm-color-typo-
|
|
584
|
+
class: "text-fm-color-typo-error"
|
|
584
585
|
}, Ml = {
|
|
586
|
+
class: "text-fm-color-typo-success"
|
|
587
|
+
}, Ol = {
|
|
585
588
|
key: 1,
|
|
586
589
|
class: "text-fm-color-typo-secondary"
|
|
587
|
-
},
|
|
590
|
+
}, Al = {
|
|
588
591
|
key: 1,
|
|
589
592
|
class: "rounded-lg border border-fm-color-border-default"
|
|
590
|
-
}, Al = {
|
|
591
|
-
class: "text-base font-bold text-fm-color-typo-primary"
|
|
592
593
|
}, Fl = {
|
|
593
|
-
class: "
|
|
594
|
+
class: "text-base font-bold text-fm-color-typo-primary"
|
|
594
595
|
}, Dl = {
|
|
595
|
-
|
|
596
|
+
class: "space-y-12 p-12"
|
|
596
597
|
}, jl = {
|
|
597
|
-
|
|
598
|
+
key: 0
|
|
598
599
|
}, Tl = {
|
|
599
|
-
class: "
|
|
600
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
600
601
|
}, Pl = {
|
|
601
|
-
|
|
602
|
+
class: "mt-4 max-h-[400px] overflow-auto rounded bg-gray-100 p-8 font-mono text-xs leading-relaxed shadow-inner whitespace-pre-wrap break-all"
|
|
602
603
|
}, Cl = {
|
|
603
|
-
|
|
604
|
+
key: 1
|
|
604
605
|
}, Vl = {
|
|
606
|
+
class: "text-xs text-fm-color-typo-secondary"
|
|
607
|
+
}, El = {
|
|
605
608
|
class: "mt-4 max-h-[400px] overflow-auto rounded bg-gray-100 p-8 font-mono text-xs leading-relaxed shadow-inner whitespace-pre-wrap break-all"
|
|
606
|
-
}, Le = 100, Qe = 1e3, Pe = "__feedmeAdmin__",
|
|
609
|
+
}, Le = 100, Qe = 1e3, Pe = "__feedmeAdmin__", Rl = "D MMM YYYY h:mm A", Ul = "YYYY-MM-DD HH:mm", R = "YYYY-MM-DD", Lt = "audit-log-export-fields", $l = /* @__PURE__ */ St({
|
|
607
610
|
__name: "AuditLogList",
|
|
608
611
|
setup(t) {
|
|
609
612
|
const {
|
|
610
613
|
t: o
|
|
611
|
-
} = wt(), n = _o(), u = To(), _ = y(!1), c = y(!1), f = y([]), a = y(null), I = y(!1), S = y({}), x = y(null),
|
|
614
|
+
} = wt(), n = _o(), u = To(), _ = y(!1), c = y(!1), f = y([]), a = y(null), I = y(!1), S = y({}), x = y(null), D = y(!1);
|
|
612
615
|
async function T(e) {
|
|
613
|
-
const s = Uint8Array.from(atob(e), (
|
|
614
|
-
return await
|
|
616
|
+
const s = Uint8Array.from(atob(e), (g) => g.charCodeAt(0)), i = new DecompressionStream("gzip"), p = i.writable.getWriter();
|
|
617
|
+
return await p.write(s), await p.close(), new Response(i.readable).text();
|
|
615
618
|
}
|
|
616
619
|
const j = y("");
|
|
617
620
|
let ee = 0;
|
|
@@ -630,9 +633,9 @@ const Yo = {
|
|
|
630
633
|
}
|
|
631
634
|
if (e.startsWith("gzip:")) {
|
|
632
635
|
try {
|
|
633
|
-
const
|
|
636
|
+
const i = await T(e.slice(5));
|
|
634
637
|
if (s !== ee) return;
|
|
635
|
-
j.value = JSON.stringify(JSON.parse(
|
|
638
|
+
j.value = JSON.stringify(JSON.parse(i), null, 2);
|
|
636
639
|
} catch {
|
|
637
640
|
if (s !== ee) return;
|
|
638
641
|
j.value = e;
|
|
@@ -677,8 +680,8 @@ const Yo = {
|
|
|
677
680
|
ne(x, async (e) => {
|
|
678
681
|
const s = ++W;
|
|
679
682
|
if (O.value = [], M.value = "", V.value = "", P.value = !1, !e) return;
|
|
680
|
-
const [
|
|
681
|
-
s === W && (O.value = Bo(
|
|
683
|
+
const [i, p] = await Promise.all([pe(e.before), pe(e.after)]);
|
|
684
|
+
s === W && (O.value = Bo(i, p), M.value = ge(i), V.value = ge(p));
|
|
682
685
|
});
|
|
683
686
|
function Y(e) {
|
|
684
687
|
return e === "added" ? "success" : e === "removed" ? "critical" : "warning";
|
|
@@ -691,15 +694,15 @@ const Yo = {
|
|
|
691
694
|
}
|
|
692
695
|
const te = w(() => {
|
|
693
696
|
const e = [], s = /* @__PURE__ */ new Map();
|
|
694
|
-
for (const
|
|
695
|
-
const
|
|
696
|
-
let k = s.get(
|
|
697
|
+
for (const i of O.value) {
|
|
698
|
+
const p = ie(i.path), g = `${i.type}::${p}`;
|
|
699
|
+
let k = s.get(g);
|
|
697
700
|
k || (k = {
|
|
698
|
-
groupKey:
|
|
699
|
-
displayKey:
|
|
700
|
-
type:
|
|
701
|
+
groupKey: g,
|
|
702
|
+
displayKey: p,
|
|
703
|
+
type: i.type,
|
|
701
704
|
rows: []
|
|
702
|
-
}, s.set(
|
|
705
|
+
}, s.set(g, k), e.push(k)), k.rows.push(i);
|
|
703
706
|
}
|
|
704
707
|
return e;
|
|
705
708
|
}), se = y(1), Ze = y(!1), $ = y(0), ue = w(() => Math.max(1, Math.ceil($.value / Le))), et = A().format("YYYY-MM-DD"), q = y({
|
|
@@ -711,7 +714,7 @@ const Yo = {
|
|
|
711
714
|
}
|
|
712
715
|
const tt = xe.filter((e) => e.key !== "all").map((e) => e.key);
|
|
713
716
|
function ke(e) {
|
|
714
|
-
const s = xe.find((
|
|
717
|
+
const s = xe.find((i) => i.key !== "all" && i.subjectPrefixes.some((p) => e.startsWith(p)));
|
|
715
718
|
return (s == null ? void 0 : s.key) ?? "other";
|
|
716
719
|
}
|
|
717
720
|
function ot(e) {
|
|
@@ -746,42 +749,42 @@ const Yo = {
|
|
|
746
749
|
const e = H.value.toLowerCase();
|
|
747
750
|
if (!e) return [];
|
|
748
751
|
const s = /* @__PURE__ */ new Set();
|
|
749
|
-
for (const
|
|
750
|
-
const
|
|
751
|
-
((u.userIdToName[
|
|
752
|
+
for (const i of u.members) {
|
|
753
|
+
const p = i.doc.userId;
|
|
754
|
+
((u.userIdToName[p] ?? "").toLowerCase().includes(e) || (u.userIdToEmail[p] ?? "").toLowerCase().includes(e) || (u.userIdToPhone[p] ?? "").toLowerCase().includes(e)) && s.add(p);
|
|
752
755
|
}
|
|
753
|
-
for (const
|
|
754
|
-
|
|
756
|
+
for (const i of he.value)
|
|
757
|
+
i.name.toLowerCase().includes(e) && s.add(i.userId);
|
|
755
758
|
return [...s];
|
|
756
759
|
}), Ue = w(() => {
|
|
757
|
-
const e = bt.flatMap((
|
|
758
|
-
label:
|
|
760
|
+
const e = bt.flatMap((g) => kt(g.subject).map((k) => ({
|
|
761
|
+
label: g.label,
|
|
759
762
|
value: k
|
|
760
|
-
}))), s = Object.entries(ht).map(([
|
|
763
|
+
}))), s = Object.entries(ht).map(([g, k]) => ({
|
|
761
764
|
label: k,
|
|
762
|
-
value:
|
|
763
|
-
})),
|
|
764
|
-
for (const
|
|
765
|
-
if (!
|
|
766
|
-
|
|
767
|
-
const k = ke(
|
|
768
|
-
|
|
769
|
-
...
|
|
765
|
+
value: g
|
|
766
|
+
})), i = /* @__PURE__ */ new Set(), p = [];
|
|
767
|
+
for (const g of [...e, ...s])
|
|
768
|
+
if (!i.has(g.value)) {
|
|
769
|
+
i.add(g.value);
|
|
770
|
+
const k = ke(g.value);
|
|
771
|
+
p.push({
|
|
772
|
+
...g,
|
|
770
773
|
group: o(`auditLog.modules.${k}`)
|
|
771
774
|
});
|
|
772
775
|
}
|
|
773
|
-
return
|
|
776
|
+
return p.sort((g, k) => ot(ke(g.value)) - ot(ke(k.value)));
|
|
774
777
|
}), fe = w(() => {
|
|
775
778
|
const e = H.value.toLowerCase();
|
|
776
779
|
if (!e) return [];
|
|
777
780
|
const s = /* @__PURE__ */ new Set();
|
|
778
|
-
for (const
|
|
779
|
-
|
|
781
|
+
for (const i of Ue.value)
|
|
782
|
+
i.label.toLowerCase().includes(e) && s.add(i.value);
|
|
780
783
|
return [...s];
|
|
781
784
|
}), Ft = w(() => Mt.value ? Ue.value : Ue.value.filter((e) => ke(e.value) === le.value));
|
|
782
785
|
function Dt(e, s) {
|
|
783
|
-
const
|
|
784
|
-
return e.label.toLowerCase().includes(
|
|
786
|
+
const i = s.toLowerCase();
|
|
787
|
+
return e.label.toLowerCase().includes(i) || e.value.replace(/^business::/, "").toLowerCase().includes(i) ? !0 : e.value.toLowerCase().includes(i);
|
|
785
788
|
}
|
|
786
789
|
const K = w(() => ({
|
|
787
790
|
manage: o("auditLog.action.manage"),
|
|
@@ -847,7 +850,7 @@ const Yo = {
|
|
|
847
850
|
skipped: "warning"
|
|
848
851
|
};
|
|
849
852
|
function Oe(e) {
|
|
850
|
-
return A(e).format(
|
|
853
|
+
return A(e).format(Rl);
|
|
851
854
|
}
|
|
852
855
|
const Et = w(() => {
|
|
853
856
|
const {
|
|
@@ -900,12 +903,12 @@ const Yo = {
|
|
|
900
903
|
}]);
|
|
901
904
|
function Ke(e) {
|
|
902
905
|
var s;
|
|
903
|
-
return ((s = bt.find((
|
|
906
|
+
return ((s = bt.find((i) => i.subject === e)) == null ? void 0 : s.label) ?? ht[e];
|
|
904
907
|
}
|
|
905
908
|
function Ae(e) {
|
|
906
|
-
var
|
|
909
|
+
var i;
|
|
907
910
|
const s = u.userIdToName[e.userId];
|
|
908
|
-
return s || (u.hasLoaded ? (
|
|
911
|
+
return s || (u.hasLoaded ? (i = n.sessionUser.value) != null && i.isInternal ? `${e.actorName ?? e.userId} (${o("auditLog.user.feedmeAdmin")})` : o("auditLog.user.feedmeAdmin") : e.userId);
|
|
909
912
|
}
|
|
910
913
|
function lt(e) {
|
|
911
914
|
return u.userIdToPhone[e.userId] || "-";
|
|
@@ -1052,7 +1055,7 @@ const Yo = {
|
|
|
1052
1055
|
}
|
|
1053
1056
|
}
|
|
1054
1057
|
async function zt() {
|
|
1055
|
-
var e, s,
|
|
1058
|
+
var e, s, i, p, g;
|
|
1056
1059
|
if (!c.value) {
|
|
1057
1060
|
c.value = !0;
|
|
1058
1061
|
try {
|
|
@@ -1079,7 +1082,7 @@ const Yo = {
|
|
|
1079
1082
|
...(s = X.value) != null && s.length ? {
|
|
1080
1083
|
actions: X.value
|
|
1081
1084
|
} : {},
|
|
1082
|
-
...(
|
|
1085
|
+
...(i = G.value) != null && i.length ? {
|
|
1083
1086
|
outcomes: Ne(G.value)
|
|
1084
1087
|
} : {},
|
|
1085
1088
|
...H.value ? {
|
|
@@ -1102,8 +1105,8 @@ const Yo = {
|
|
|
1102
1105
|
if (h.push(...N), N.length < Qe) break;
|
|
1103
1106
|
C += Qe;
|
|
1104
1107
|
}
|
|
1105
|
-
const vt = Ye.filter((N) => me.value.has(N.key)), so = vt.map((N) => o(N.labelKey)), lo = h.map((N) => vt.map((vo) => vo.getValue(N) ?? "")), Je = -(/* @__PURE__ */ new Date()).getTimezoneOffset(), ao = Je >= 0 ? "+" : "-", no = String(Math.floor(Math.abs(Je) / 60)).padStart(2, "0"), ro = String(Math.abs(Je) % 60).padStart(2, "0"), io = `UTC${ao}${no}:${ro}`, pt = ((
|
|
1106
|
-
`), fo = `audit-log_${(((
|
|
1108
|
+
const vt = Ye.filter((N) => me.value.has(N.key)), so = vt.map((N) => o(N.labelKey)), lo = h.map((N) => vt.map((vo) => vo.getValue(N) ?? "")), Je = -(/* @__PURE__ */ new Date()).getTimezoneOffset(), ao = Je >= 0 ? "+" : "-", no = String(Math.floor(Math.abs(Je) / 60)).padStart(2, "0"), ro = String(Math.abs(Je) % 60).padStart(2, "0"), io = `UTC${ao}${no}:${ro}`, pt = ((p = n.currentBusiness.value) == null ? void 0 : p.name) || "", uo = [k, E].filter(Boolean).join(" – "), co = [...[[o("auditLog.title")], [`${o("auditLog.frontMatter.date")}: ${uo}`], ...pt ? [[`${o("auditLog.frontMatter.business")}: ${pt}`]] : [], [`${o("auditLog.frontMatter.generatedBy")}: ${A().format("DD MMM YYYY, HH:mm")} (${io})`], []].map((N) => N.map(ct).join(",")), ...[so, ...lo].map((N) => N.map(ct).join(","))].join(`
|
|
1109
|
+
`), fo = `audit-log_${(((g = n.currentBusiness.value) == null ? void 0 : g.name) || "business").replace(/[^a-z0-9_-]+/gi, "_")}_${A().format("YYYYMMDD_HHmmss")}.csv`, mo = new Blob([`\uFEFF${co}`], {
|
|
1107
1110
|
type: "text/csv;charset=utf-8;"
|
|
1108
1111
|
}), gt = window.URL.createObjectURL(mo), ye = document.createElement("a");
|
|
1109
1112
|
ye.href = gt, ye.download = fo, document.body.appendChild(ye), ye.click(), ye.remove(), window.URL.revokeObjectURL(gt);
|
|
@@ -1116,9 +1119,9 @@ const Yo = {
|
|
|
1116
1119
|
return "status" in e;
|
|
1117
1120
|
}
|
|
1118
1121
|
function Ht(e) {
|
|
1119
|
-
var
|
|
1122
|
+
var i;
|
|
1120
1123
|
const s = e.original;
|
|
1121
|
-
return e.depth === 0 && !ae(s) && !!((
|
|
1124
|
+
return e.depth === 0 && !ae(s) && !!((i = s.operations) != null && i.length);
|
|
1122
1125
|
}
|
|
1123
1126
|
function Jt(e) {
|
|
1124
1127
|
return ae(e) ? void 0 : e.operations;
|
|
@@ -1182,27 +1185,27 @@ const Yo = {
|
|
|
1182
1185
|
}, [We("· "), s.entityId]) : null, s.status === "failed" && s.errorMessage ? m("span", {
|
|
1183
1186
|
class: "text-fm-color-typo-error"
|
|
1184
1187
|
}, [We("· "), s.errorMessage]) : null]);
|
|
1185
|
-
const
|
|
1188
|
+
const i = ((E = s.operations) == null ? void 0 : E.length) ?? 0, p = (Z) => {
|
|
1186
1189
|
Z.stopPropagation(), e.row.getToggleExpandedHandler()();
|
|
1187
|
-
},
|
|
1190
|
+
}, g = {
|
|
1188
1191
|
variant: "tertiary",
|
|
1189
1192
|
icon: e.row.getIsExpanded() ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
1190
1193
|
"aria-label": o("auditLog.operation.toggle"),
|
|
1191
1194
|
class: "ml-auto shrink-0",
|
|
1192
|
-
onClick:
|
|
1195
|
+
onClick: p
|
|
1193
1196
|
}, k = _e.FmButton;
|
|
1194
1197
|
return m("span", {
|
|
1195
1198
|
class: "flex items-center gap-8"
|
|
1196
|
-
}, [m("span", null, [it(s)]),
|
|
1199
|
+
}, [m("span", null, [it(s)]), i > 0 ? m("span", {
|
|
1197
1200
|
class: "cursor-pointer",
|
|
1198
|
-
onClick:
|
|
1201
|
+
onClick: p
|
|
1199
1202
|
}, [m(_e.FmChip, {
|
|
1200
1203
|
variant: "neutral",
|
|
1201
1204
|
compact: !0,
|
|
1202
1205
|
label: o("auditLog.operation.badge", {
|
|
1203
|
-
count:
|
|
1206
|
+
count: i
|
|
1204
1207
|
})
|
|
1205
|
-
}, null)]) : null, e.row.getCanExpand() ? m(k,
|
|
1208
|
+
}, null)]) : null, e.row.getCanExpand() ? m(k, g, null) : null]);
|
|
1206
1209
|
}
|
|
1207
1210
|
}, {
|
|
1208
1211
|
accessorKey: "outcome",
|
|
@@ -1222,24 +1225,24 @@ const Yo = {
|
|
|
1222
1225
|
}
|
|
1223
1226
|
}];
|
|
1224
1227
|
function oe(e) {
|
|
1225
|
-
const s = A(e,
|
|
1228
|
+
const s = A(e, Ul);
|
|
1226
1229
|
return new Date(s.year(), s.month(), s.date(), s.hour(), s.minute(), 0).toISOString().slice(0, 19).replace("T", " ");
|
|
1227
1230
|
}
|
|
1228
1231
|
async function ft() {
|
|
1229
|
-
var e, s,
|
|
1232
|
+
var e, s, i;
|
|
1230
1233
|
_.value = !0;
|
|
1231
1234
|
try {
|
|
1232
1235
|
const {
|
|
1233
|
-
startDate:
|
|
1234
|
-
endDate:
|
|
1236
|
+
startDate: p,
|
|
1237
|
+
endDate: g
|
|
1235
1238
|
} = q.value, k = (se.value - 1) * Le, E = Ee.value.subjectPrefixes, Z = await Te.read({
|
|
1236
1239
|
limit: Le,
|
|
1237
1240
|
offset: k,
|
|
1238
|
-
...v ? {
|
|
1239
|
-
from: oe(v)
|
|
1240
|
-
} : {},
|
|
1241
1241
|
...p ? {
|
|
1242
|
-
|
|
1242
|
+
from: oe(p)
|
|
1243
|
+
} : {},
|
|
1244
|
+
...g ? {
|
|
1245
|
+
to: oe(g)
|
|
1243
1246
|
} : {},
|
|
1244
1247
|
...Q.value.userIds.length ? {
|
|
1245
1248
|
userIds: Q.value.userIds
|
|
@@ -1256,7 +1259,7 @@ const Yo = {
|
|
|
1256
1259
|
...(s = X.value) != null && s.length ? {
|
|
1257
1260
|
actions: X.value
|
|
1258
1261
|
} : {},
|
|
1259
|
-
...(
|
|
1262
|
+
...(i = G.value) != null && i.length ? {
|
|
1260
1263
|
outcomes: Ne(G.value)
|
|
1261
1264
|
} : {},
|
|
1262
1265
|
...H.value ? {
|
|
@@ -1288,11 +1291,11 @@ const Yo = {
|
|
|
1288
1291
|
});
|
|
1289
1292
|
});
|
|
1290
1293
|
async function qt() {
|
|
1291
|
-
var
|
|
1294
|
+
var p, g, k;
|
|
1292
1295
|
const {
|
|
1293
1296
|
startDate: e,
|
|
1294
1297
|
endDate: s
|
|
1295
|
-
} = q.value,
|
|
1298
|
+
} = q.value, i = Ee.value.subjectPrefixes;
|
|
1296
1299
|
$.value = await Te.count({
|
|
1297
1300
|
...e ? {
|
|
1298
1301
|
from: oe(e)
|
|
@@ -1306,13 +1309,13 @@ const Yo = {
|
|
|
1306
1309
|
...Q.value.feedmeAdminActors ? {
|
|
1307
1310
|
feedmeAdminActors: !0
|
|
1308
1311
|
} : {},
|
|
1309
|
-
...(
|
|
1312
|
+
...(p = z.value) != null && p.length ? {
|
|
1310
1313
|
subjects: z.value
|
|
1311
1314
|
} : {},
|
|
1312
|
-
...
|
|
1313
|
-
subjectPrefixes: [...
|
|
1315
|
+
...i.length ? {
|
|
1316
|
+
subjectPrefixes: [...i]
|
|
1314
1317
|
} : {},
|
|
1315
|
-
...(
|
|
1318
|
+
...(g = X.value) != null && g.length ? {
|
|
1316
1319
|
actions: X.value
|
|
1317
1320
|
} : {},
|
|
1318
1321
|
...(k = G.value) != null && k.length ? {
|
|
@@ -1362,10 +1365,10 @@ const Yo = {
|
|
|
1362
1365
|
I.value = !1, a.value = null;
|
|
1363
1366
|
}
|
|
1364
1367
|
function Zt(e) {
|
|
1365
|
-
x.value = e,
|
|
1368
|
+
x.value = e, D.value = !0;
|
|
1366
1369
|
}
|
|
1367
1370
|
function eo() {
|
|
1368
|
-
|
|
1371
|
+
D.value = !1, x.value = null;
|
|
1369
1372
|
}
|
|
1370
1373
|
ne(n.currentBusiness, (e) => {
|
|
1371
1374
|
e && u.readTeamMembers();
|
|
@@ -1375,20 +1378,20 @@ const Yo = {
|
|
|
1375
1378
|
function to() {
|
|
1376
1379
|
const e = de.value;
|
|
1377
1380
|
if (!(e != null && e.length)) return;
|
|
1378
|
-
const s = new Set(he.value.map((
|
|
1379
|
-
|
|
1381
|
+
const s = new Set(he.value.map((g) => g.userId)), i = new Set(u.members.map((g) => g.doc.userId)), p = e.filter((g) => g === Pe ? Ie.value : u.hasLoaded ? i.has(g) || s.has(g) : !0);
|
|
1382
|
+
p.length !== e.length && (de.value = p.length ? p : void 0);
|
|
1380
1383
|
}
|
|
1381
1384
|
async function oo() {
|
|
1382
|
-
var
|
|
1383
|
-
if (!((
|
|
1385
|
+
var i;
|
|
1386
|
+
if (!((i = n.currentBusiness.value) != null && i._id)) return;
|
|
1384
1387
|
const {
|
|
1385
1388
|
startDate: e,
|
|
1386
1389
|
endDate: s
|
|
1387
1390
|
} = q.value;
|
|
1388
1391
|
try {
|
|
1389
1392
|
const {
|
|
1390
|
-
actors:
|
|
1391
|
-
showFeedmeAdminFilter:
|
|
1393
|
+
actors: p,
|
|
1394
|
+
showFeedmeAdminFilter: g
|
|
1392
1395
|
} = await Te.getFeedmeAdminFilter({
|
|
1393
1396
|
...e ? {
|
|
1394
1397
|
from: oe(e)
|
|
@@ -1397,7 +1400,7 @@ const Yo = {
|
|
|
1397
1400
|
to: oe(s)
|
|
1398
1401
|
} : {}
|
|
1399
1402
|
});
|
|
1400
|
-
he.value =
|
|
1403
|
+
he.value = p, Ie.value = g;
|
|
1401
1404
|
} catch {
|
|
1402
1405
|
he.value = [], Ie.value = !1;
|
|
1403
1406
|
}
|
|
@@ -1413,11 +1416,11 @@ const Yo = {
|
|
|
1413
1416
|
immediate: !0,
|
|
1414
1417
|
deep: !0
|
|
1415
1418
|
}), (e, s) => {
|
|
1416
|
-
const
|
|
1417
|
-
return
|
|
1419
|
+
const i = U("FmSpacer"), p = U("FmButton"), g = U("FmMenuItem"), k = U("FmMenu"), E = U("FmChip"), Z = U("FmDateRangePicker"), Fe = U("FmSearch"), be = U("FmTable"), De = U("FmSideSheet"), He = U("FmIcon");
|
|
1420
|
+
return v(), b(J, null, [m(So, {
|
|
1418
1421
|
heading: d(o)("auditLog.title")
|
|
1419
1422
|
}, {
|
|
1420
|
-
"append-heading": B(() => [m(
|
|
1423
|
+
"append-heading": B(() => [m(i), m(p, {
|
|
1421
1424
|
variant: "primary",
|
|
1422
1425
|
"prepend-icon": "upload",
|
|
1423
1426
|
label: d(o)("auditLog.export"),
|
|
@@ -1428,13 +1431,13 @@ const Yo = {
|
|
|
1428
1431
|
"close-on-click": !1,
|
|
1429
1432
|
"z-index": 50
|
|
1430
1433
|
}, {
|
|
1431
|
-
"menu-button": B(() => [m(
|
|
1434
|
+
"menu-button": B(() => [m(p, {
|
|
1432
1435
|
variant: "tertiary",
|
|
1433
1436
|
icon: "settings",
|
|
1434
1437
|
"aria-label": d(o)("auditLog.exportSettings.title"),
|
|
1435
1438
|
disabled: c.value
|
|
1436
1439
|
}, null, 8, ["aria-label", "disabled"])]),
|
|
1437
|
-
default: B(() => [l("div", Yo, [l("p", zo,
|
|
1440
|
+
default: B(() => [l("div", Yo, [l("p", zo, r(d(o)("auditLog.exportSettings.title")), 1), (v(), b(J, null, re(Ye, (h) => m(g, {
|
|
1438
1441
|
key: h.key,
|
|
1439
1442
|
label: d(o)(h.labelKey),
|
|
1440
1443
|
"has-checkbox": "",
|
|
@@ -1510,7 +1513,7 @@ const Yo = {
|
|
|
1510
1513
|
title: d(o)("auditLog.noData.title"),
|
|
1511
1514
|
subtitle: d(o)("auditLog.noData.subtitle")
|
|
1512
1515
|
}, {
|
|
1513
|
-
default: B(() => [(
|
|
1516
|
+
default: B(() => [(v(), Ce(be, {
|
|
1514
1517
|
key: mt.value,
|
|
1515
1518
|
"column-defs": Wt,
|
|
1516
1519
|
"row-data": f.value,
|
|
@@ -1542,67 +1545,67 @@ const Yo = {
|
|
|
1542
1545
|
h || Qt();
|
|
1543
1546
|
})
|
|
1544
1547
|
}, {
|
|
1545
|
-
default: B(() => [a.value ? (
|
|
1548
|
+
default: B(() => [a.value ? (v(), b("div", es, [l("div", ts, [l("div", os, [l("p", ss, r($t(a.value)), 1), a.value.traceId ? (v(), b("p", ls, " Trace ID: " + r(a.value.traceId), 1)) : F("", !0)]), m(E, {
|
|
1546
1549
|
variant: dt(a.value.outcome),
|
|
1547
1550
|
label: Be(a.value.outcome),
|
|
1548
1551
|
compact: ""
|
|
1549
|
-
}, null, 8, ["variant", "label"])]), l("div",
|
|
1552
|
+
}, null, 8, ["variant", "label"])]), l("div", as, [l("div", ns, [l("div", null, [l("p", rs, r(d(o)("auditLog.detail.date")), 1), l("p", is, r(nt(a.value.timestamp)), 1)]), l("div", null, [l("p", us, r(d(o)("auditLog.detail.user")), 1), l("p", ds, r(Ae(a.value)), 1)]), l("div", null, [l("p", cs, r(d(o)("auditLog.detail.email")), 1), l("p", fs, r(Ut(a.value)), 1)]), a.value.field ? (v(), b("div", ms, [l("p", vs, r(d(o)("auditLog.detail.field")), 1), l("p", ps, r(a.value.field), 1)])) : F("", !0), l("div", null, [l("p", gs, r(d(o)("auditLog.detail.business")), 1), l("p", hs, r(a.value.businessId || "-"), 1)]), l("div", null, [l("p", bs, r(d(o)("auditLog.detail.restaurant")), 1), l("p", ys, r(a.value.restaurantId || "-"), 1)])])]), l("div", _s, [l("div", xs, [l("p", Ls, r(d(o)("auditLog.detail.eventDetails")), 1)]), s[12] || (s[12] = l("hr", {
|
|
1550
1553
|
class: "border-fm-color-border-default"
|
|
1551
|
-
}, null, -1)), l("div",
|
|
1554
|
+
}, null, -1)), l("div", Ss, [l("div", null, [l("p", ws, r(d(o)("auditLog.detail.actionDescription")), 1), l("p", ks, r(a.value.metadata.operationLabel || "-"), 1)])])]), l("div", Is, [l("div", Ms, [l("p", Os, r(d(o)("auditLog.detail.metadata")), 1)]), s[13] || (s[13] = l("hr", {
|
|
1552
1555
|
class: "border-fm-color-border-default"
|
|
1553
|
-
}, null, -1)), l("div",
|
|
1556
|
+
}, null, -1)), l("div", As, [l("div", null, [l("p", Fs, r(d(o)("auditLog.detail.resolvedFrom")), 1), l("p", Ds, r(Nt(a.value.metadata.resolvedFrom)), 1)]), (a.value.metadata.resolvedFrom === "permissionSet" || a.value.metadata.resolvedFrom === "systemPermissionSet") && (a.value.metadata.permissionSetName || a.value.metadata.permissionSetId) ? (v(), b("div", js, [l("p", Ts, r(d(o)("auditLog.detail.permissionSet")), 1), a.value.metadata.permissionSetName ? (v(), b("p", Ps, r(a.value.metadata.permissionSetName), 1)) : F("", !0), a.value.metadata.permissionSetId ? (v(), b("p", Cs, r(a.value.metadata.permissionSetId), 1)) : F("", !0)])) : F("", !0), a.value.metadata.reason ? (v(), b("div", Vs, [l("p", Es, r(d(o)("auditLog.detail.reason")), 1), l("p", Rs, r(a.value.metadata.reason), 1)])) : F("", !0), l("div", null, [l("p", Us, r(d(o)("auditLog.detail.requestMethod")), 1), l("p", $s, r(Kt(a.value)), 1)]), l("div", null, [l("p", Ns, r(d(o)("auditLog.detail.requestPath")), 1), l("p", Ks, r(a.value.metadata.requestPath || "-"), 1)]), a.value.metadata.trace && a.value.metadata.trace.length > 0 ? (v(), b("div", Bs, [l("p", Ys, r(d(o)("auditLog.detail.permissionTrace")), 1), l("ol", zs, [(v(!0), b(J, null, re(a.value.metadata.trace, (h, C) => (v(), b("li", {
|
|
1554
1557
|
key: C,
|
|
1555
1558
|
class: "flex items-center gap-6"
|
|
1556
|
-
}, [l("span",
|
|
1559
|
+
}, [l("span", Hs, r(C + 1), 1), l("span", Js, r(h), 1), C < a.value.metadata.trace.length - 1 ? (v(), b("span", Ws, "→")) : F("", !0)]))), 128))])])) : F("", !0), j.value ? (v(), b("div", qs, [l("p", Gs, r(d(o)("auditLog.detail.requestBody")), 1), l("pre", Xs, r(j.value), 1)])) : F("", !0)])])])) : F("", !0)]),
|
|
1557
1560
|
_: 1
|
|
1558
1561
|
}, 8, ["header", "model-value"]), m(De, {
|
|
1559
1562
|
header: d(o)("auditLog.operation.sheetHeader"),
|
|
1560
|
-
"model-value":
|
|
1563
|
+
"model-value": D.value,
|
|
1561
1564
|
"max-width": 768,
|
|
1562
1565
|
"dismiss-away": "",
|
|
1563
1566
|
"onUpdate:modelValue": s[11] || (s[11] = (h) => {
|
|
1564
1567
|
h || eo();
|
|
1565
1568
|
})
|
|
1566
1569
|
}, {
|
|
1567
|
-
default: B(() => [x.value ? (
|
|
1570
|
+
default: B(() => [x.value ? (v(), b("div", Qs, [l("div", Zs, [l("div", el, [l("p", tl, r(ut(x.value)), 1), x.value.entityId ? (v(), b("p", ol, r(x.value.entityId), 1)) : F("", !0)]), m(E, {
|
|
1568
1571
|
variant: x.value.status === "failed" ? "critical" : "success",
|
|
1569
1572
|
label: x.value.status === "failed" ? d(o)("auditLog.outcome.failed") : d(o)("auditLog.outcome.success"),
|
|
1570
1573
|
compact: ""
|
|
1571
|
-
}, null, 8, ["variant", "label"])]), l("div",
|
|
1574
|
+
}, null, 8, ["variant", "label"])]), l("div", sl, [l("div", ll, [l("div", null, [l("p", al, r(d(o)("auditLog.detail.date")), 1), l("p", nl, r(nt(x.value.timestamp)), 1)]), x.value.entityId ? (v(), b("div", rl, [l("p", il, r(d(o)("auditLog.operation.entity")), 1), l("p", ul, r(x.value.entityId), 1)])) : F("", !0), x.value.durationMs !== void 0 ? (v(), b("div", dl, [l("p", cl, r(d(o)("auditLog.operation.duration")), 1), l("p", fl, r(d(o)("auditLog.operation.durationValue", {
|
|
1572
1575
|
ms: x.value.durationMs
|
|
1573
|
-
})), 1)])) :
|
|
1576
|
+
})), 1)])) : F("", !0)])]), x.value.status === "failed" ? (v(), b("div", ml, [l("p", vl, r(d(o)("auditLog.operation.error")), 1), l("p", pl, r(x.value.errorMessage || "-"), 1)])) : F("", !0), l("div", gl, [l("div", hl, [l("p", bl, r(d(o)("auditLog.operation.changes")), 1)]), s[15] || (s[15] = l("hr", {
|
|
1574
1577
|
class: "border-fm-color-border-default"
|
|
1575
|
-
}, null, -1)), l("div",
|
|
1578
|
+
}, null, -1)), l("div", yl, [te.value.length ? (v(), b("div", _l, [(v(!0), b(J, null, re(te.value, (h) => (v(), b("div", {
|
|
1576
1579
|
key: h.groupKey,
|
|
1577
1580
|
class: "space-y-4 py-8 first:pt-0 last:pb-0"
|
|
1578
|
-
}, [l("div",
|
|
1581
|
+
}, [l("div", xl, [m(E, {
|
|
1579
1582
|
variant: Y(h.type),
|
|
1580
1583
|
label: L(h.type),
|
|
1581
1584
|
compact: ""
|
|
1582
|
-
}, null, 8, ["variant", "label"]), l("span",
|
|
1585
|
+
}, null, 8, ["variant", "label"]), l("span", Ll, r(h.displayKey), 1)]), l("div", Sl, [(v(!0), b(J, null, re(h.rows, (C) => (v(), b("p", {
|
|
1583
1586
|
key: C.path,
|
|
1584
1587
|
class: "break-all font-mono text-xs"
|
|
1585
|
-
}, [C.type === "added" ? (
|
|
1588
|
+
}, [C.type === "added" ? (v(), b("span", wl, r(C.after ?? "—"), 1)) : C.type === "removed" ? (v(), b("span", kl, r(C.before ?? "—"), 1)) : (v(), b(J, {
|
|
1586
1589
|
key: 2
|
|
1587
|
-
}, [l("span",
|
|
1590
|
+
}, [l("span", Il, r(C.before ?? "—"), 1), s[14] || (s[14] = l("span", {
|
|
1588
1591
|
class: "text-fm-color-typo-secondary"
|
|
1589
|
-
}, " → ", -1)), l("span",
|
|
1592
|
+
}, " → ", -1)), l("span", Ml, r(C.after ?? "—"), 1)], 64))]))), 128))])]))), 128))])) : (v(), b("p", Ol, r(d(o)("auditLog.operation.noChanges")), 1))])]), M.value || V.value ? (v(), b("div", Al, [l("button", {
|
|
1590
1593
|
type: "button",
|
|
1591
1594
|
class: "flex w-full items-center justify-between p-12 text-left",
|
|
1592
1595
|
onClick: s[10] || (s[10] = (h) => P.value = !P.value)
|
|
1593
|
-
}, [l("p",
|
|
1596
|
+
}, [l("p", Fl, r(d(o)("auditLog.operation.showData")), 1), m(He, {
|
|
1594
1597
|
name: "keyboard_arrow_down",
|
|
1595
1598
|
class: yo(["shrink-0 transition-transform", P.value ? "rotate-180" : ""])
|
|
1596
|
-
}, null, 8, ["class"])]), P.value ? (
|
|
1599
|
+
}, null, 8, ["class"])]), P.value ? (v(), b(J, {
|
|
1597
1600
|
key: 0
|
|
1598
1601
|
}, [s[16] || (s[16] = l("hr", {
|
|
1599
1602
|
class: "border-fm-color-border-default"
|
|
1600
|
-
}, null, -1)), l("div",
|
|
1603
|
+
}, null, -1)), l("div", Dl, [M.value ? (v(), b("div", jl, [l("p", Tl, r(d(o)("auditLog.operation.before")), 1), l("pre", Pl, r(M.value), 1)])) : F("", !0), V.value ? (v(), b("div", Cl, [l("p", Vl, r(d(o)("auditLog.operation.after")), 1), l("pre", El, r(V.value), 1)])) : F("", !0)])], 64)) : F("", !0)])) : F("", !0)])) : F("", !0)]),
|
|
1601
1604
|
_: 1
|
|
1602
1605
|
}, 8, ["header", "model-value"])], 64);
|
|
1603
1606
|
};
|
|
1604
1607
|
}
|
|
1605
|
-
}),
|
|
1608
|
+
}), ta = /* @__PURE__ */ Lo($l, [["__scopeId", "data-v-5b055e3b"]]);
|
|
1606
1609
|
export {
|
|
1607
|
-
|
|
1610
|
+
ta as default
|
|
1608
1611
|
};
|