@feedmepos/mf-hrm-portal 2.0.9-dev → 2.0.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-cTdvCUg5.js → AuditLogList-Cl_jdKsR.js} +15 -14
- package/dist/{EmployeeList-B3fnrpGh.js → EmployeeList-mFFhxuK1.js} +164 -169
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +71 -0
- package/dist/HorizontalSplitter-o860F4xM.js +12 -0
- package/dist/Main-BG4ecjMn.js +560 -0
- package/dist/{Main-BBnrg7Uj.js → Main-Cfv-CK-L.js} +11 -10
- package/dist/{Main-BdqhjHAf.js → Main-CozRWujW.js} +8 -7
- package/dist/PermissionSetList-BU35KYlK.js +338 -0
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Z0_HUlDd.js +3479 -0
- package/dist/{RoleList-DX5diS1S.js → RoleList-C1yW-0C7.js} +26 -24
- package/dist/TeamMemberList-CQ74C0vS.js +989 -0
- package/dist/{TimesheetList-BIow_Ws_.js → TimesheetList-C9q6Ix1M.js} +11 -10
- package/dist/{app-CvrjCzWF.js → app-DPJLA7RJ.js} +2136 -1100
- package/dist/app.js +2 -2
- package/dist/{dayjs.min-BLu272lb.js → dayjs.min-CayVNPbR.js} +1 -1
- package/dist/{employee-DJHxqq_Y.js → employee-UXVC-M3z.js} +21 -20
- package/dist/index-2She2r6Y.js +975 -0
- package/dist/{index-C2SJ78vp.js → index-Dwuf0_l9.js} +1 -1
- package/dist/{index-BR30VIHJ.js → iteration-DnHGdIBR.js} +3444 -4352
- package/dist/{lodash-17Fzq9hS.js → lodash-DGWGnYWt.js} +1 -1
- package/dist/src/api/grant-user/index.d.ts +8 -0
- package/dist/src/api/index.d.ts +3 -1
- package/dist/src/composables/useBasePermission.d.ts +37 -0
- package/dist/src/helpers/permission-set.d.ts +34 -5
- package/dist/src/helpers/permission-set.test.d.ts +1 -0
- package/dist/src/helpers/permission-sync.d.ts +12 -0
- package/dist/src/router/shared.d.ts +2 -1
- package/dist/src/stores/grant-user.d.ts +86 -0
- package/dist/src/types/grant-user.d.ts +27 -0
- package/dist/src/views/grant/GrantUserList.vue.d.ts +17 -0
- package/dist/src/views/grant/Main.vue.d.ts +2 -0
- package/dist/src/views/grant/components/GrantUserForm.vue.d.ts +17 -0
- package/dist/src/views/grant/locales/index.d.ts +232 -0
- package/dist/src/views/team/components/BasePermission.vue.d.ts +3 -3
- package/dist/{team-DPCgqGHp.js → team-1uv9NUze.js} +1 -1
- package/dist/{timesheet-B3sXm2-b.js → timesheet-BjxBgSXH.js} +10 -9
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-B87muKBs.js → useAppStore-CpqfheaD.js} +1 -1
- package/dist/{useLoading-Bsbv3Rtr.js → useLoading-COIKN-qB.js} +1 -1
- package/dist/{useReportPermissions-BpqdhZrp.js → useReportPermissions-CdiqM7eD.js} +12 -11
- package/dist/useRestaurantMap-e9fQJiLC.js +39 -0
- package/package.json +2 -2
- package/dist/PermissionSetList-CbTD1cQS.js +0 -327
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-kNwUa8pu.js +0 -3333
- package/dist/TeamMemberList-BYV9RGP6.js +0 -979
- package/dist/useRestaurantMap-D5BNPLKh.js +0 -107
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { defineComponent as de, ref as h, computed as k, watch as R, resolveComponent as D, createElementBlock as f, openBlock as m, Fragment as F, createVNode as d, unref as n, withCtx as N, createElementVNode as e, createBlock as $, createCommentVNode as x, toDisplayString as s, renderList as re, createTextVNode as Y } from "vue";
|
|
2
|
-
import { d as ce } from "./dayjs.min-
|
|
2
|
+
import { d as ce } from "./dayjs.min-CayVNPbR.js";
|
|
3
3
|
import { useI18n as ue, useCoreStore as me } from "@feedmepos/mf-common";
|
|
4
|
-
import {
|
|
4
|
+
import { I as J, _ as fe } from "./app-DPJLA7RJ.js";
|
|
5
5
|
import { _ as pe } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
6
|
import { _ as ve } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
|
-
import { components as
|
|
8
|
-
import { g as _e, b as ge
|
|
9
|
-
import { u as he } from "./team-
|
|
7
|
+
import { components as G } from "@feedmepos/ui-library";
|
|
8
|
+
import { g as _e, b as ge } from "./iteration-DnHGdIBR.js";
|
|
9
|
+
import { u as he } from "./team-1uv9NUze.js";
|
|
10
10
|
import { S as U } from "./SelectFilter-DUj7GBtT.js";
|
|
11
|
+
import { p as Z } from "./index-2She2r6Y.js";
|
|
11
12
|
const be = "/audit-logs", xe = {
|
|
12
13
|
async read(i) {
|
|
13
14
|
var O, g, L, w;
|
|
@@ -91,9 +92,9 @@ const be = "/audit-logs", xe = {
|
|
|
91
92
|
class: "text-xs text-fm-color-typo-secondary"
|
|
92
93
|
}, Ye = {
|
|
93
94
|
class: "font-semibold"
|
|
94
|
-
}, Ge = {
|
|
95
|
-
key: 1
|
|
96
95
|
}, Je = {
|
|
96
|
+
key: 1
|
|
97
|
+
}, Ge = {
|
|
97
98
|
class: "text-xs text-fm-color-typo-secondary"
|
|
98
99
|
}, Ze = {
|
|
99
100
|
class: "font-semibold"
|
|
@@ -163,7 +164,7 @@ const be = "/audit-logs", xe = {
|
|
|
163
164
|
class: "text-xs text-fm-color-typo-secondary"
|
|
164
165
|
}, Ct = {
|
|
165
166
|
class: "mt-4 max-h-[400px] overflow-auto rounded bg-gray-100 p-8 font-mono text-xs leading-relaxed shadow-inner"
|
|
166
|
-
}, q = 100,
|
|
167
|
+
}, q = 100, Et = /* @__PURE__ */ de({
|
|
167
168
|
__name: "AuditLogList",
|
|
168
169
|
setup(i) {
|
|
169
170
|
const {
|
|
@@ -182,7 +183,7 @@ const be = "/audit-logs", xe = {
|
|
|
182
183
|
const l = Z.flatMap((c) => H(c.subject).map((_) => ({
|
|
183
184
|
label: c.label,
|
|
184
185
|
value: _
|
|
185
|
-
}))), t = Object.entries(
|
|
186
|
+
}))), t = Object.entries(J).map(([c, _]) => ({
|
|
186
187
|
label: _,
|
|
187
188
|
value: c
|
|
188
189
|
})), r = /* @__PURE__ */ new Set(), v = [];
|
|
@@ -227,7 +228,7 @@ const be = "/audit-logs", xe = {
|
|
|
227
228
|
}), B = k(() => w.value);
|
|
228
229
|
function z(l) {
|
|
229
230
|
var t;
|
|
230
|
-
return ((t = Z.find((r) => r.subject === l)) == null ? void 0 : t.label) ??
|
|
231
|
+
return ((t = Z.find((r) => r.subject === l)) == null ? void 0 : t.label) ?? J[l];
|
|
231
232
|
}
|
|
232
233
|
const M = {
|
|
233
234
|
allowed: "success",
|
|
@@ -249,7 +250,7 @@ const be = "/audit-logs", xe = {
|
|
|
249
250
|
const t = l.row.original, r = g.userIdToName[t.userId], v = g.userIdToPhone[t.userId], c = g.userIdToEmail[t.userId];
|
|
250
251
|
return d("div", {
|
|
251
252
|
class: "flex items-center gap-8"
|
|
252
|
-
}, [d(
|
|
253
|
+
}, [d(G.FmAvatar, {
|
|
253
254
|
initials: r || t.userId,
|
|
254
255
|
size: "sm",
|
|
255
256
|
class: "shrink-0"
|
|
@@ -302,7 +303,7 @@ const be = "/audit-logs", xe = {
|
|
|
302
303
|
enableSorting: !1,
|
|
303
304
|
cell(l) {
|
|
304
305
|
const t = l.row.original;
|
|
305
|
-
return d(
|
|
306
|
+
return d(G.FmChip, {
|
|
306
307
|
variant: M[t.outcome] ?? "neutral",
|
|
307
308
|
label: t.outcome,
|
|
308
309
|
compact: !0
|
|
@@ -472,7 +473,7 @@ const be = "/audit-logs", xe = {
|
|
|
472
473
|
compact: ""
|
|
473
474
|
}, null, 8, ["variant", "label"])]), t[7] || (t[7] = e("hr", {
|
|
474
475
|
class: "border-fm-color-border-default"
|
|
475
|
-
}, null, -1)), e("div", Fe, [e("div", null, [e("p", Ne, s(n(o)("auditLog.detail.timestamp")), 1), e("p", Ue, s(new Date(a.value.timestamp).toLocaleString()), 1)]), n(g).userIdToName[a.value.userId] ? (m(), f("div", Be, [e("p", Ee, s(n(o)("auditLog.detail.user")), 1), e("p", Re, s(n(g).userIdToName[a.value.userId]), 1)])) : x("", !0), e("div", null, [e("p", qe, s(n(o)("auditLog.detail.email")), 1), e("p", ze, s(n(g).userIdToEmail[a.value.userId] || a.value.userId), 1)]), e("div", null, [e("p", Me, s(n(o)("auditLog.detail.action")), 1), e("p", Ke, s(a.value.action), 1)]), e("div", null, [e("p", $e, s(n(o)("auditLog.detail.subject")), 1), e("p", Ye, s(z(a.value.subject) || a.value.subject), 1)]), a.value.field ? (m(), f("div",
|
|
476
|
+
}, null, -1)), e("div", Fe, [e("div", null, [e("p", Ne, s(n(o)("auditLog.detail.timestamp")), 1), e("p", Ue, s(new Date(a.value.timestamp).toLocaleString()), 1)]), n(g).userIdToName[a.value.userId] ? (m(), f("div", Be, [e("p", Ee, s(n(o)("auditLog.detail.user")), 1), e("p", Re, s(n(g).userIdToName[a.value.userId]), 1)])) : x("", !0), e("div", null, [e("p", qe, s(n(o)("auditLog.detail.email")), 1), e("p", ze, s(n(g).userIdToEmail[a.value.userId] || a.value.userId), 1)]), e("div", null, [e("p", Me, s(n(o)("auditLog.detail.action")), 1), e("p", Ke, s(a.value.action), 1)]), e("div", null, [e("p", $e, s(n(o)("auditLog.detail.subject")), 1), e("p", Ye, s(z(a.value.subject) || a.value.subject), 1)]), a.value.field ? (m(), f("div", Je, [e("p", Ge, s(n(o)("auditLog.detail.field")), 1), e("p", Ze, s(a.value.field), 1)])) : x("", !0), e("div", null, [e("p", He, s(n(o)("auditLog.detail.business")), 1), e("p", Qe, s(a.value.businessId || "-"), 1)]), e("div", null, [e("p", We, s(n(o)("auditLog.detail.restaurant")), 1), e("p", Xe, s(a.value.restaurantId || "-"), 1)])])]), e("div", et, [e("div", tt, [e("p", ot, s(n(o)("auditLog.detail.metadata")), 1)]), t[8] || (t[8] = e("hr", {
|
|
476
477
|
class: "border-fm-color-border-default"
|
|
477
478
|
}, null, -1)), e("div", at, [a.value.metadata.reason ? (m(), f("div", lt, [e("p", st, s(n(o)("auditLog.detail.reason")), 1), e("p", nt, s(a.value.metadata.reason), 1)])) : x("", !0), e("div", null, [e("p", it, s(n(o)("auditLog.detail.resolvedFrom")), 1), e("p", dt, s(a.value.metadata.resolvedFrom), 1)]), a.value.metadata.permissionSetId ? (m(), f("div", rt, [e("p", ct, s(n(o)("auditLog.detail.permissionSet")), 1), a.value.metadata.resolvedFrom === "systemPermissionSet" ? (m(), f(F, {
|
|
478
479
|
key: 0
|
|
@@ -488,5 +489,5 @@ const be = "/audit-logs", xe = {
|
|
|
488
489
|
}
|
|
489
490
|
});
|
|
490
491
|
export {
|
|
491
|
-
|
|
492
|
+
Et as default
|
|
492
493
|
};
|