@feedmepos/mf-hrm-portal 2.0.7-dev → 2.0.7

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.
Files changed (44) hide show
  1. package/dist/{AuditLogList-COq6WH3T.js → AuditLogList-BWzKxoBK.js} +24 -23
  2. package/dist/{EmployeeList-CtosIPFL.js → EmployeeList-CPvHmCle.js} +164 -169
  3. package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +71 -0
  4. package/dist/HorizontalSplitter-o860F4xM.js +12 -0
  5. package/dist/{Main-B4YdcrGe.js → Main-BEj_iUkZ.js} +8 -7
  6. package/dist/{Main-CdsqeB2G.js → Main-BNywXKr0.js} +11 -10
  7. package/dist/Main-BkIzKoHQ.js +560 -0
  8. package/dist/PermissionSetList-B8jSoL19.js +338 -0
  9. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Ddnj8eg_.js +3356 -0
  10. package/dist/{RoleList-D1NGE2IC.js → RoleList-BEx1B8PE.js} +26 -24
  11. package/dist/TeamMemberList-BEDwcjeT.js +989 -0
  12. package/dist/{TimesheetList-B8yCkaxb.js → TimesheetList-CqZG4xmE.js} +11 -10
  13. package/dist/{app-CB3ye-CT.js → app-DHtKeCwy.js} +1333 -1060
  14. package/dist/app.js +2 -2
  15. package/dist/{dayjs.min-DOxEzdpe.js → dayjs.min-BWWy9u8p.js} +1 -1
  16. package/dist/{employee-G0pQg8_6.js → employee-C2ys9jf0.js} +21 -20
  17. package/dist/index-BwYlZrxP.js +968 -0
  18. package/dist/{index-DQArLkVB.js → index-O9ipnK-U.js} +1 -1
  19. package/dist/{index-Beu6IuhT.js → iteration-BdhU8jGb.js} +3444 -4352
  20. package/dist/{lodash-COjtwv4w.js → lodash-CDSEYvRz.js} +1 -1
  21. package/dist/src/api/grant-user/index.d.ts +8 -0
  22. package/dist/src/api/index.d.ts +3 -1
  23. package/dist/src/api/permission-assignment/index.d.ts +1 -1
  24. package/dist/src/helpers/permission-set.d.ts +26 -4
  25. package/dist/src/helpers/permission-set.test.d.ts +1 -0
  26. package/dist/src/router/shared.d.ts +2 -1
  27. package/dist/src/stores/grant-user.d.ts +86 -0
  28. package/dist/src/types/grant-user.d.ts +27 -0
  29. package/dist/src/views/grant/GrantUserList.vue.d.ts +17 -0
  30. package/dist/src/views/grant/Main.vue.d.ts +2 -0
  31. package/dist/src/views/grant/components/GrantUserForm.vue.d.ts +17 -0
  32. package/dist/src/views/grant/locales/index.d.ts +232 -0
  33. package/dist/{team-CEtKQK6n.js → team-9CwJsJGX.js} +1 -1
  34. package/dist/{timesheet-DZF9D3QQ.js → timesheet-ChKYJtjK.js} +10 -9
  35. package/dist/tsconfig.app.tsbuildinfo +1 -1
  36. package/dist/{useAppStore-9lbKMy_9.js → useAppStore-DGzBzMIR.js} +1 -1
  37. package/dist/{useLoading-BIIvuJcM.js → useLoading-CzteZR_c.js} +1 -1
  38. package/dist/{useReportPermissions-BXQ0-WwK.js → useReportPermissions-CaY_wr2l.js} +12 -11
  39. package/dist/useRestaurantMap-e9fQJiLC.js +39 -0
  40. package/package.json +2 -2
  41. package/dist/PermissionSetList-BUORArci.js +0 -327
  42. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ChqCTn1L.js +0 -3333
  43. package/dist/TeamMemberList-auSjZRNz.js +0 -979
  44. package/dist/useRestaurantMap-D5BNPLKh.js +0 -107
@@ -1,22 +1,23 @@
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-DOxEzdpe.js";
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 A, 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-BWWy9u8p.js";
3
3
  import { useI18n as ue, useCoreStore as me } from "@feedmepos/mf-common";
4
- import { L as J, _ as fe } from "./app-CB3ye-CT.js";
4
+ import { F as J, _ as fe } from "./app-DHtKeCwy.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
7
  import { components as G } from "@feedmepos/ui-library";
8
- import { g as _e, b as ge, p as Z } from "./index-Beu6IuhT.js";
9
- import { u as he } from "./team-CEtKQK6n.js";
8
+ import { g as _e, b as ge } from "./iteration-BdhU8jGb.js";
9
+ import { u as he } from "./team-9CwJsJGX.js";
10
10
  import { S as U } from "./SelectFilter-DUj7GBtT.js";
11
+ import { p as Z } from "./index-BwYlZrxP.js";
11
12
  const be = "/audit-logs", xe = {
12
13
  async read(i) {
13
- var O, g, L, w;
14
+ var F, g, L, w;
14
15
  const o = {
15
16
  limit: (i == null ? void 0 : i.limit) ?? 100,
16
17
  offset: (i == null ? void 0 : i.offset) ?? 0,
17
18
  ...i != null && i.from ? { from: i.from } : {},
18
19
  ...i != null && i.to ? { to: i.to } : {},
19
- ...(O = i == null ? void 0 : i.userIds) != null && O.length ? { userIds: i.userIds } : {},
20
+ ...(F = i == null ? void 0 : i.userIds) != null && F.length ? { userIds: i.userIds } : {},
20
21
  ...(g = i == null ? void 0 : i.subjects) != null && g.length ? { subjects: i.subjects } : {},
21
22
  ...(L = i == null ? void 0 : i.actions) != null && L.length ? { actions: i.actions } : {},
22
23
  ...(w = i == null ? void 0 : i.outcomes) != null && w.length ? { outcomes: i.outcomes } : {}
@@ -30,7 +31,7 @@ const be = "/audit-logs", xe = {
30
31
  const y = new URLSearchParams();
31
32
  for (const [p, b] of Object.entries(a))
32
33
  if (Array.isArray(b))
33
- for (const A of b) y.append(p, String(A));
34
+ for (const O of b) y.append(p, String(O));
34
35
  else b != null && y.append(p, String(b));
35
36
  return console.log("[AuditLogAPI] serialized query string:", y.toString()), y.toString();
36
37
  }
@@ -63,11 +64,11 @@ const be = "/audit-logs", xe = {
63
64
  class: "rounded-lg border border-fm-color-border-default"
64
65
  }, De = {
65
66
  class: "flex items-start justify-between gap-8 p-12"
66
- }, Oe = {
67
+ }, Fe = {
67
68
  class: "text-base font-bold leading-snug text-fm-color-typo-primary flex-1 min-w-0"
68
- }, Ae = {
69
+ }, Oe = {
69
70
  class: "audit-log-operation-label-detail font-semibold"
70
- }, Fe = {
71
+ }, Ae = {
71
72
  class: "space-y-12 p-12"
72
73
  }, Ne = {
73
74
  class: "text-xs text-fm-color-typo-secondary"
@@ -163,14 +164,14 @@ 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, Bt = /* @__PURE__ */ de({
167
+ }, q = 100, Et = /* @__PURE__ */ de({
167
168
  __name: "AuditLogList",
168
169
  setup(i) {
169
170
  const {
170
171
  t: o
171
- } = ue(), O = me(), g = he(), L = h(!1), w = h([]), a = h(null), y = h(!1), p = h(1), b = h(!1), A = ce().format("YYYY-MM-DD"), I = h({
172
- startDate: A,
173
- endDate: A
172
+ } = ue(), F = me(), g = he(), L = h(!1), w = h([]), a = h(null), y = h(!1), p = h(1), b = h(!1), O = ce().format("YYYY-MM-DD"), I = h({
173
+ startDate: O,
174
+ endDate: O
174
175
  }), C = h(), P = h(), T = h(), V = h();
175
176
  function H(l) {
176
177
  return typeof l == "string" ? [l] : Array.isArray(l) ? l.filter((t) => typeof t == "string") : [];
@@ -366,13 +367,13 @@ const be = "/audit-logs", xe = {
366
367
  function ie() {
367
368
  y.value = !1, a.value = null;
368
369
  }
369
- return R(O.currentBusiness, (l) => {
370
+ return R(F.currentBusiness, (l) => {
370
371
  l && (p.value = 1, g.readTeamMembers(), j());
371
372
  }, {
372
373
  immediate: !0
373
374
  }), (l, t) => {
374
375
  const r = D("FmChip"), v = D("FmDateRangePicker"), c = D("FmTable"), _ = D("FmButton"), E = D("FmSideSheet");
375
- return m(), f(F, null, [d(pe, {
376
+ return m(), f(A, null, [d(pe, {
376
377
  heading: n(o)("auditLog.title")
377
378
  }, {
378
379
  default: N(() => [e("div", ye, [e("div", Le, [d(v, {
@@ -466,19 +467,19 @@ const be = "/audit-logs", xe = {
466
467
  u || ie();
467
468
  })
468
469
  }, {
469
- default: N(() => [a.value ? (m(), f("div", Ve, [e("div", je, [e("div", De, [e("div", Oe, [e("p", Ae, s(a.value.metadata.operationLabel || "-"), 1)]), d(r, {
470
+ default: N(() => [a.value ? (m(), f("div", Ve, [e("div", je, [e("div", De, [e("div", Fe, [e("p", Oe, s(a.value.metadata.operationLabel || "-"), 1)]), d(r, {
470
471
  variant: M[a.value.outcome] ?? "neutral",
471
472
  label: a.value.outcome,
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", 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
+ }, null, -1)), e("div", Ae, [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
- }, 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
+ }, 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(A, {
478
479
  key: 0
479
- }, [e("p", ut, s(a.value.metadata.permissionSetName) + " (system)", 1), e("p", mt, s(a.value.metadata.permissionSetId), 1)], 64)) : (m(), f(F, {
480
+ }, [e("p", ut, s(a.value.metadata.permissionSetName) + " (system)", 1), e("p", mt, s(a.value.metadata.permissionSetId), 1)], 64)) : (m(), f(A, {
480
481
  key: 1
481
- }, [e("p", ft, s(a.value.metadata.permissionSetName || a.value.metadata.permissionSetId), 1), a.value.metadata.permissionSetName ? (m(), f("p", pt, s(a.value.metadata.permissionSetId), 1)) : x("", !0)], 64))])) : x("", !0), a.value.metadata.trace && a.value.metadata.trace.length > 0 ? (m(), f("div", vt, [e("p", _t, s(n(o)("auditLog.detail.permissionTrace")), 1), e("ol", gt, [(m(!0), f(F, null, re(a.value.metadata.trace, (u, S) => (m(), f("li", {
482
+ }, [e("p", ft, s(a.value.metadata.permissionSetName || a.value.metadata.permissionSetId), 1), a.value.metadata.permissionSetName ? (m(), f("p", pt, s(a.value.metadata.permissionSetId), 1)) : x("", !0)], 64))])) : x("", !0), a.value.metadata.trace && a.value.metadata.trace.length > 0 ? (m(), f("div", vt, [e("p", _t, s(n(o)("auditLog.detail.permissionTrace")), 1), e("ol", gt, [(m(!0), f(A, null, re(a.value.metadata.trace, (u, S) => (m(), f("li", {
482
483
  key: S,
483
484
  class: "flex items-center gap-6"
484
485
  }, [e("span", ht, s(S + 1), 1), e("span", bt, s(u), 1), S < a.value.metadata.trace.length - 1 ? (m(), f("span", xt, "→")) : x("", !0)]))), 128))])])) : x("", !0), e("div", null, [e("p", yt, s(n(o)("auditLog.detail.requestMethod")), 1), e("p", Lt, s(a.value.metadata.requestMethod), 1)]), e("div", null, [e("p", St, s(n(o)("auditLog.detail.requestPath")), 1), e("p", kt, s(a.value.metadata.requestPath), 1)]), a.value.metadata.requestBody && Object.keys(a.value.metadata.requestBody).length > 0 ? (m(), f("div", wt, [e("p", It, s(n(o)("auditLog.detail.requestBody")), 1), e("pre", Ct, s(JSON.stringify(a.value.metadata.requestBody, null, 2)), 1)])) : x("", !0)])])])) : x("", !0)]),
@@ -488,5 +489,5 @@ const be = "/audit-logs", xe = {
488
489
  }
489
490
  });
490
491
  export {
491
- Bt as default
492
+ Et as default
492
493
  };