@feedmepos/mf-hrm-portal 1.1.3-dev.2 → 1.1.3-dev.3
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-kZBi77lv.js → AuditLogList-BzlfsxZe.js} +23 -23
- package/dist/{EmployeeList-Cg-mhdLv.js → EmployeeList-JwXcalmk.js} +5 -5
- package/dist/{Main-CC9_bKTG.js → Main-CXeHhGbn.js} +7 -7
- package/dist/{Main-BHF7vXlD.js → Main-rZNF_FTP.js} +5 -5
- package/dist/{PermissionSetList-C0FOYrQ6.js → PermissionSetList-DogGMqoY.js} +3 -3
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CS4B-7AU.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-KRwX8ejK.js} +805 -804
- package/dist/{RoleList-D2NTVZa_.js → RoleList-D1_HCRy4.js} +5 -5
- package/dist/{TeamMemberList-DC0Gxjin.js → TeamMemberList-OfK7zSQC.js} +7 -7
- package/dist/{TimesheetList-CksRCsTc.js → TimesheetList-B0ftNJBO.js} +6 -6
- package/dist/api/team/index.d.ts +1 -4
- package/dist/{app-kKq54h9D.js → app-CSWaQRwW.js} +229 -285
- package/dist/app.js +2 -2
- package/dist/{dayjs.min-CGTR0SS0.js → dayjs.min-EuIkR9bv.js} +1 -1
- package/dist/{employee-CRKx3zN0.js → employee-84RPdPDw.js} +3 -3
- package/dist/{index-DRoNwfyW.js → index-B37OJY7u.js} +186 -189
- package/dist/{index-TP4vQCyq.js → index-CczCMtDa.js} +1 -1
- package/dist/{lodash-CeWi5dyp.js → lodash-DJT7KdyD.js} +1 -1
- package/dist/{team-CuLNHjGN.js → team-CypGrdSZ.js} +1 -1
- package/dist/{timesheet-V636ISlI.js → timesheet-DhmDGkf5.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DoX0IUFz.js → useAppStore-DR307TDF.js} +1 -1
- package/dist/{useLoading-1yy1KHsE.js → useLoading-WcbjSQRH.js} +1 -1
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as le, ref as f, computed as k, watch as U, resolveComponent as w, createElementBlock 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 c, openBlock as d, Fragment as D, createVNode as n, unref as i, withCtx as O, createElementVNode as e, createBlock as $, createCommentVNode as p, toDisplayString as l, renderList as se } from "vue";
|
|
2
|
+
import { d as ie } from "./dayjs.min-EuIkR9bv.js";
|
|
3
3
|
import { useI18n as ne, useCoreStore as de } from "@feedmepos/mf-common";
|
|
4
|
-
import { _ as
|
|
4
|
+
import { _ as ce, c as re } from "./app-CSWaQRwW.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 B } from "@feedmepos/ui-library";
|
|
8
|
-
import { g as fe, b as pe, p as J } from "./index-
|
|
9
|
-
import { u as ve } from "./team-
|
|
8
|
+
import { g as fe, b as pe, p as J } from "./index-B37OJY7u.js";
|
|
9
|
+
import { u as ve } from "./team-CypGrdSZ.js";
|
|
10
10
|
import { S as P } from "./SelectFilter-NbXrJ4iH.js";
|
|
11
11
|
const _e = "/audit-logs", ge = {
|
|
12
|
-
async read(
|
|
12
|
+
async read(r) {
|
|
13
13
|
return fe(
|
|
14
14
|
await pe().get(_e, {
|
|
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
|
);
|
|
@@ -113,9 +113,9 @@ const _e = "/audit-logs", ge = {
|
|
|
113
113
|
class: "font-semibold"
|
|
114
114
|
}, dt = {
|
|
115
115
|
class: "break-all font-mono text-xs text-fm-color-typo-secondary"
|
|
116
|
-
}, rt = {
|
|
117
|
-
class: "font-semibold"
|
|
118
116
|
}, ct = {
|
|
117
|
+
class: "font-semibold"
|
|
118
|
+
}, rt = {
|
|
119
119
|
key: 0,
|
|
120
120
|
class: "break-all font-mono text-xs text-fm-color-typo-secondary"
|
|
121
121
|
}, ut = {
|
|
@@ -157,7 +157,7 @@ const _e = "/audit-logs", ge = {
|
|
|
157
157
|
class: "mt-4 max-h-[400px] overflow-auto rounded bg-gray-100 p-8 font-mono text-xs leading-relaxed shadow-inner"
|
|
158
158
|
}, A = 100, At = /* @__PURE__ */ le({
|
|
159
159
|
__name: "AuditLogList",
|
|
160
|
-
setup(
|
|
160
|
+
setup(r) {
|
|
161
161
|
const {
|
|
162
162
|
t: o
|
|
163
163
|
} = ne(), Y = de(), _ = ve(), I = f(!1), E = f([]), a = f(null), V = f(!1), v = f(1), T = f(!1), q = ie().format("YYYY-MM-DD"), S = f({
|
|
@@ -205,7 +205,7 @@ const _e = "/audit-logs", ge = {
|
|
|
205
205
|
});
|
|
206
206
|
function N(s) {
|
|
207
207
|
var t;
|
|
208
|
-
return ((t = J.find((m) => m.subject === s)) == null ? void 0 : t.label) ??
|
|
208
|
+
return ((t = J.find((m) => m.subject === s)) == null ? void 0 : t.label) ?? re[s];
|
|
209
209
|
}
|
|
210
210
|
const M = {
|
|
211
211
|
allowed: "success",
|
|
@@ -316,7 +316,7 @@ const _e = "/audit-logs", ge = {
|
|
|
316
316
|
immediate: !0
|
|
317
317
|
}), (s, t) => {
|
|
318
318
|
const m = w("FmChip"), y = w("FmDateRangePicker"), F = w("FmTable"), L = w("FmButton"), ae = w("FmSideSheet");
|
|
319
|
-
return d(),
|
|
319
|
+
return d(), c(D, null, [n(ue, {
|
|
320
320
|
heading: i(o)("auditLog.title")
|
|
321
321
|
}, {
|
|
322
322
|
default: O(() => [e("div", he, [e("div", xe, [n(y, {
|
|
@@ -370,7 +370,7 @@ const _e = "/audit-logs", ge = {
|
|
|
370
370
|
key: 0,
|
|
371
371
|
title: i(o)("auditLog.noData.title"),
|
|
372
372
|
subtitle: i(o)("auditLog.noData.subtitle")
|
|
373
|
-
}, null, 8, ["title", "subtitle"])) : (d(), $(
|
|
373
|
+
}, null, 8, ["title", "subtitle"])) : (d(), $(ce, {
|
|
374
374
|
key: 1
|
|
375
375
|
}, {
|
|
376
376
|
default: O(() => [e("div", Se, [n(F, {
|
|
@@ -382,7 +382,7 @@ const _e = "/audit-logs", ge = {
|
|
|
382
382
|
"hide-footer": "",
|
|
383
383
|
class: "min-h-0 flex-1 cursor-pointer",
|
|
384
384
|
onRowClick: t[5] || (t[5] = (u) => te(u.original))
|
|
385
|
-
}, null, 8, ["row-data", "page-size", "loading"]), v.value > 1 || T.value ? (d(),
|
|
385
|
+
}, null, 8, ["row-data", "page-size", "loading"]), v.value > 1 || T.value ? (d(), c("div", we, [n(L, {
|
|
386
386
|
variant: "tertiary",
|
|
387
387
|
icon: "chevron_left",
|
|
388
388
|
disabled: v.value === 1,
|
|
@@ -409,22 +409,22 @@ const _e = "/audit-logs", ge = {
|
|
|
409
409
|
u || oe();
|
|
410
410
|
})
|
|
411
411
|
}, {
|
|
412
|
-
default: O(() => [a.value ? (d(),
|
|
412
|
+
default: O(() => [a.value ? (d(), c("div", Te, [e("div", je, [e("div", De, [e("span", Oe, l(N(a.value.subject) || a.value.subject), 1), n(m, {
|
|
413
413
|
variant: M[a.value.outcome] ?? "neutral",
|
|
414
414
|
label: a.value.outcome,
|
|
415
415
|
compact: ""
|
|
416
416
|
}, null, 8, ["variant", "label"])]), t[7] || (t[7] = e("hr", {
|
|
417
417
|
class: "border-fm-color-border-default"
|
|
418
|
-
}, null, -1)), e("div", Pe, [e("div", null, [e("p", Ve, l(i(o)("auditLog.detail.timestamp")), 1), e("p", Ce, l(new Date(a.value.timestamp).toLocaleString()), 1)]), i(_).userIdToName[a.value.userId] ? (d(),
|
|
418
|
+
}, null, -1)), e("div", Pe, [e("div", null, [e("p", Ve, l(i(o)("auditLog.detail.timestamp")), 1), e("p", Ce, l(new Date(a.value.timestamp).toLocaleString()), 1)]), i(_).userIdToName[a.value.userId] ? (d(), c("div", Ne, [e("p", Fe, l(i(o)("auditLog.detail.user")), 1), e("p", Re, l(i(_).userIdToName[a.value.userId]), 1)])) : p("", !0), e("div", null, [e("p", Ue, l(i(o)("auditLog.detail.email")), 1), e("p", Be, l(i(_).userIdToEmail[a.value.userId] || a.value.userId), 1)]), e("div", null, [e("p", Ae, l(i(o)("auditLog.detail.action")), 1), e("p", Ee, l(a.value.action), 1)]), e("div", null, [e("p", qe, l(i(o)("auditLog.detail.subject")), 1), e("p", Me, l(N(a.value.subject) || a.value.subject), 1)]), a.value.field ? (d(), c("div", Ke, [e("p", $e, l(i(o)("auditLog.detail.field")), 1), e("p", Je, l(a.value.field), 1)])) : p("", !0), e("div", null, [e("p", Ye, l(i(o)("auditLog.detail.business")), 1), e("p", ze, l(a.value.businessId || "-"), 1)]), e("div", null, [e("p", Ge, l(i(o)("auditLog.detail.restaurant")), 1), e("p", Ze, l(a.value.restaurantId || "-"), 1)])])]), e("div", He, [e("div", Qe, [e("p", We, l(i(o)("auditLog.detail.metadata")), 1)]), t[8] || (t[8] = e("hr", {
|
|
419
419
|
class: "border-fm-color-border-default"
|
|
420
|
-
}, null, -1)), e("div", Xe, [a.value.metadata.reason ? (d(),
|
|
420
|
+
}, null, -1)), e("div", Xe, [a.value.metadata.reason ? (d(), c("div", et, [e("p", tt, l(i(o)("auditLog.detail.reason")), 1), e("p", ot, l(a.value.metadata.reason), 1)])) : p("", !0), e("div", null, [e("p", at, l(i(o)("auditLog.detail.resolvedFrom")), 1), e("p", lt, l(a.value.metadata.resolvedFrom), 1)]), a.value.metadata.permissionSetId ? (d(), c("div", st, [e("p", it, l(i(o)("auditLog.detail.permissionSet")), 1), a.value.metadata.resolvedFrom === "systemPermissionSet" ? (d(), c(D, {
|
|
421
421
|
key: 0
|
|
422
|
-
}, [e("p", nt, l(a.value.metadata.permissionSetName) + " (system)", 1), e("p", dt, l(a.value.metadata.permissionSetId), 1)], 64)) : (d(),
|
|
422
|
+
}, [e("p", nt, l(a.value.metadata.permissionSetName) + " (system)", 1), e("p", dt, l(a.value.metadata.permissionSetId), 1)], 64)) : (d(), c(D, {
|
|
423
423
|
key: 1
|
|
424
|
-
}, [e("p",
|
|
424
|
+
}, [e("p", ct, l(a.value.metadata.permissionSetName || a.value.metadata.permissionSetId), 1), a.value.metadata.permissionSetName ? (d(), c("p", rt, l(a.value.metadata.permissionSetId), 1)) : p("", !0)], 64))])) : p("", !0), a.value.metadata.trace && a.value.metadata.trace.length > 0 ? (d(), c("div", ut, [e("p", mt, l(i(o)("auditLog.detail.permissionTrace")), 1), e("ol", ft, [(d(!0), c(D, null, se(a.value.metadata.trace, (u, R) => (d(), c("li", {
|
|
425
425
|
key: R,
|
|
426
426
|
class: "flex items-center gap-6"
|
|
427
|
-
}, [e("span", pt, l(R + 1), 1), e("span", vt, l(u), 1), R < a.value.metadata.trace.length - 1 ? (d(),
|
|
427
|
+
}, [e("span", pt, l(R + 1), 1), e("span", vt, l(u), 1), R < a.value.metadata.trace.length - 1 ? (d(), c("span", _t, "→")) : p("", !0)]))), 128))])])) : p("", !0), e("div", null, [e("p", gt, l(i(o)("auditLog.detail.decisivePermission")), 1), e("pre", ht, l(JSON.stringify(a.value.metadata.decisivePermission, null, 2)), 1)]), a.value.metadata.decisiveRule ? (d(), c("div", xt, [e("p", bt, l(i(o)("auditLog.detail.decisiveRule")), 1), e("pre", yt, l(JSON.stringify(a.value.metadata.decisiveRule, null, 2)), 1)])) : p("", !0), e("div", null, [e("p", Lt, l(i(o)("auditLog.detail.requestMethod")), 1), e("p", kt, l(a.value.metadata.requestMethod), 1)]), e("div", null, [e("p", St, l(i(o)("auditLog.detail.requestPath")), 1), e("p", wt, l(a.value.metadata.requestPath), 1)]), a.value.metadata.requestBody && Object.keys(a.value.metadata.requestBody).length > 0 ? (d(), c("div", It, [e("p", Tt, l(i(o)("auditLog.detail.requestBody")), 1), e("pre", jt, l(JSON.stringify(a.value.metadata.requestBody, null, 2)), 1)])) : p("", !0)])])])) : p("", !0)]),
|
|
428
428
|
_: 1
|
|
429
429
|
}, 8, ["header", "model-value"])], 64);
|
|
430
430
|
};
|
|
@@ -2,14 +2,14 @@ import { createElementBlock as $, openBlock as h, createElementVNode as c, toRaw
|
|
|
2
2
|
import { useCoreStore as be, useI18n as Ve, RestaurantSelector as me } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Fe, components as xe, useDialog as Le, useBreakpoints as Be, FmButtonVariant as De } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as Ne, S as ce } from "./SelectFilter-NbXrJ4iH.js";
|
|
5
|
-
import { _ as Pe } from "./app-
|
|
5
|
+
import { _ as Pe } from "./app-CSWaQRwW.js";
|
|
6
6
|
import { _ as Te } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
7
|
import { u as we } from "./useSearch-B6WK1LBB.js";
|
|
8
|
-
import { u as ke, E as ze } from "./employee-
|
|
9
|
-
import { l as Ae } from "./lodash-
|
|
8
|
+
import { u as ke, E as ze } from "./employee-84RPdPDw.js";
|
|
9
|
+
import { l as Ae } from "./lodash-DJT7KdyD.js";
|
|
10
10
|
import { u as je, _ as de, a as pe, b as Ke } from "./useRestaurantMap-D5BNPLKh.js";
|
|
11
|
-
import { u as Ge } from "./useLoading-
|
|
12
|
-
import { u as ne } from "./useAppStore-
|
|
11
|
+
import { u as Ge } from "./useLoading-WcbjSQRH.js";
|
|
12
|
+
import { u as ne } from "./useAppStore-DR307TDF.js";
|
|
13
13
|
const qe = {};
|
|
14
14
|
function He(S, O) {
|
|
15
15
|
return h(), $("div", null, [...O[0] || (O[0] = [
|
|
@@ -3,15 +3,15 @@ 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-DR307TDF.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 "./dayjs.min-
|
|
14
|
-
import "./timesheet-
|
|
9
|
+
import { u as mf } from "./employee-84RPdPDw.js";
|
|
10
|
+
import "./lodash-DJT7KdyD.js";
|
|
11
|
+
import "./index-B37OJY7u.js";
|
|
12
|
+
import { R as vt } from "./app-CSWaQRwW.js";
|
|
13
|
+
import "./dayjs.min-EuIkR9bv.js";
|
|
14
|
+
import "./timesheet-DhmDGkf5.js";
|
|
15
15
|
var In = {};
|
|
16
16
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
17
17
|
var jt = {};
|
|
@@ -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-B37OJY7u.js";
|
|
8
|
+
import { R as v } from "./app-CSWaQRwW.js";
|
|
9
|
+
import "./useAppStore-DR307TDF.js";
|
|
10
|
+
import "./index-CczCMtDa.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
|
-
import "./team-
|
|
13
|
+
import "./team-CypGrdSZ.js";
|
|
14
14
|
const w = { class: "space-y-24" }, P = /* @__PURE__ */ V({
|
|
15
15
|
__name: "Main",
|
|
16
16
|
setup(x) {
|
|
@@ -2,9 +2,9 @@ import { defineComponent as N, computed as V, resolveComponent as c, createEleme
|
|
|
2
2
|
import { useI18n as R, useCoreStore as K } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as E, useDialog as G, useBreakpoints as O, components as H, FmButtonColorThemeVariant as J, FmButtonVariant as Q } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as X } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
5
|
-
import { x as Y, u as W, A as Z } from "./index-
|
|
6
|
-
import { u as ee } from "./useLoading-
|
|
7
|
-
import { a as te } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { x as Y, u as W, A as Z } from "./index-B37OJY7u.js";
|
|
6
|
+
import { u as ee } from "./useLoading-WcbjSQRH.js";
|
|
7
|
+
import { a as te } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-KRwX8ejK.js";
|
|
8
8
|
const oe = { class: "flex flex-row items-center gap-8" }, se = /* @__PURE__ */ N({
|
|
9
9
|
__name: "PermissionWithTooltip",
|
|
10
10
|
props: {
|