@feedmepos/mf-hrm-portal 2.3.2-dev.11 → 2.3.2-dev.12

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 (62) hide show
  1. package/dist/{ApprovalCodeList-DoNoFW6w.js → ApprovalCodeList-CCh9mNJh.js} +7 -7
  2. package/dist/AuditLogList-DCADUZ5s.js +2019 -0
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C1dLOPFb.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BZQNDOg7.js} +10 -10
  4. package/dist/{EmployeeList-BX9gy9WG.js → EmployeeList-CRI7XjzX.js} +8 -8
  5. package/dist/{FormSection.vue_vue_type_script_setup_true_lang-iCgTyICI.js → FormSection.vue_vue_type_script_setup_true_lang-y9_hxba6.js} +1 -1
  6. package/dist/{GrantUserList-DNvmmlDI.js → GrantUserList-DbMngkpK.js} +8 -8
  7. package/dist/{Main-BHmY7VHC.js → Main-BsFUfsmP.js} +29 -29
  8. package/dist/{Main-SzU5H5uC.js → Main-CrnM6wr8.js} +623 -629
  9. package/dist/{Main-2NivoQNg.js → Main-D4Zq5AXi.js} +5 -5
  10. package/dist/{MyPosProfile-2W5mT5d5.js → MyPosProfile-B4cE47im.js} +1 -1
  11. package/dist/{PermissionSetList-BCAm8rHm.js → PermissionSetList-D_2x-mDD.js} +112 -113
  12. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BM9Von-l.js +4212 -0
  13. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DYbfmF2P.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-COX-N0k6.js} +33 -33
  14. package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-o4mXv2hT.js → RoleForm.vue_vue_type_script_setup_true_lang-D8V8KWiL.js} +41 -41
  15. package/dist/{RoleList-BXkyCeH0.js → RoleList-BC-c7fqn.js} +105 -96
  16. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DOxRdHY1.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DBbuSrXV.js} +1 -1
  17. package/dist/{ScheduleGeneralPage-4hV53-q6.js → ScheduleGeneralPage-eytzOZQr.js} +2 -2
  18. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-D5jOHLA1.js → ScheduleModal.vue_vue_type_script_setup_true_lang-CP-kToVO.js} +4 -4
  19. package/dist/{SchedulePage-CqNa_p32.js → SchedulePage-B0QirzAk.js} +17 -17
  20. package/dist/{SchedulePositionPage-7xYBe1xd.js → SchedulePositionPage-BAE-NQvL.js} +3 -3
  21. package/dist/{SelectFilter-Dy2Nv1_D.js → SelectFilter-DrLJhxt6.js} +1 -1
  22. package/dist/TeamMemberList-CHkiL_q9.js +2083 -0
  23. package/dist/TimesheetList-BZuddmzy.js +402 -0
  24. package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-LCUO-ogb.js +58 -0
  25. package/dist/{app-C37qvNnc.js → app-B9qAxMj1.js} +3516 -3470
  26. package/dist/app.js +1 -1
  27. package/dist/{approval-code-B7rpc4Oe.js → approval-code-CTgj9q6m.js} +1 -1
  28. package/dist/{dayjs.min-D35yhU4A.js → dayjs.min-giCSI3N8.js} +22 -22
  29. package/dist/employee-BD3NXG8h.js +210 -0
  30. package/dist/{grant-user-CostZ0Md.js → grant-user-jeTFzGU1.js} +1 -1
  31. package/dist/{index-DPiNc7mn.js → iteration-Tyg43nH0.js} +726 -698
  32. package/dist/{lodash-C8MGI_QW.js → lodash-CZsDR_DU.js} +1 -1
  33. package/dist/{member-grant-CktOoicv.js → member-grant-DsEMLN1N.js} +2 -2
  34. package/dist/restaurant-CDJ3VjdH.js +49 -0
  35. package/dist/role-BDRWt87n.js +91 -0
  36. package/dist/{rule-EYBPBkv_.js → rule-EiO87cJJ.js} +309 -313
  37. package/dist/src/api/employee/index.d.ts +2 -1
  38. package/dist/src/api/timesheet/index.d.ts +1 -1
  39. package/dist/src/composables/useTenant.d.ts +11 -0
  40. package/dist/src/router/courtGuard.d.ts +4 -0
  41. package/dist/src/stores/employee.d.ts +7 -1
  42. package/dist/src/stores/restaurant.d.ts +1 -61
  43. package/dist/src/stores/team.d.ts +1 -1
  44. package/dist/src/stores/timesheet.d.ts +51 -66
  45. package/dist/src/types/timesheet.d.ts +0 -3
  46. package/dist/style.css +1 -1
  47. package/dist/tsconfig.app.tsbuildinfo +1 -1
  48. package/dist/{useAppStore-BmBJPo1_.js → useAppStore-CkUZ2H5h.js} +1 -1
  49. package/dist/{useLoading-BtyGXkm_.js → useLoading-DJHJM5E0.js} +1 -1
  50. package/dist/useReportPermissions-2dfIX21b.js +80 -0
  51. package/dist/{useSsoProviders-CZrTNgfp.js → useSsoProviders-BarGHndw.js} +1 -1
  52. package/package.json +2 -2
  53. package/dist/AuditLogList-D5M0cl8g.js +0 -2026
  54. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-e2vu_Mcn.js +0 -4208
  55. package/dist/TeamMemberList-okhiXdLg.js +0 -2087
  56. package/dist/TimesheetList-BKj9OnJW.js +0 -437
  57. package/dist/employee-Bn6HTMxg.js +0 -172
  58. package/dist/iteration-CcXrOMQe.js +0 -30
  59. package/dist/restaurant-BgvuJL8G.js +0 -52
  60. package/dist/role-D8G5QOG1.js +0 -98
  61. package/dist/timesheet-D6jBeR-V.js +0 -76
  62. package/dist/useReportPermissions-C8z7EA7v.js +0 -82
@@ -1,5 +1,5 @@
1
1
  import { defineStore as p } from "pinia";
2
- import { g as s } from "./app-C37qvNnc.js";
2
+ import { g as s } from "./app-B9qAxMj1.js";
3
3
  import { baseClientInstance as d } from "@feedmepos/mf-common";
4
4
  var n = [];
5
5
  for (var r = 0; r < 256; ++r)
@@ -1,6 +1,6 @@
1
1
  import { computed as I, isRef as L, watch as M } from "vue";
2
2
  import { SnackbarPosition as y } from "@feedmepos/ui-library";
3
- import { u as w, v } from "./useAppStore-BmBJPo1_.js";
3
+ import { u as w, v } from "./useAppStore-CkUZ2H5h.js";
4
4
  const E = (r) => {
5
5
  async function d(u, e) {
6
6
  var l, a;
@@ -0,0 +1,80 @@
1
+ import { computed as a, ref as o } from "vue";
2
+ import { e as d } from "./iteration-Tyg43nH0.js";
3
+ import { u as K, l as S } from "./app-B9qAxMj1.js";
4
+ import { i as g } from "./rule-EiO87cJJ.js";
5
+ const i = o([]), r = o(!1), l = o(!1), f = o(null), p = o(null), u = o(!1);
6
+ function J() {
7
+ const v = K();
8
+ async function m() {
9
+ const s = v.id.value;
10
+ if (!s) return;
11
+ f.value !== s && (i.value = [], r.value = !1, l.value = !1, f.value = s, u.value = !1);
12
+ const t = localStorage.getItem("locale");
13
+ if (!(r.value && p.value === t)) {
14
+ if (l.value) {
15
+ u.value = !0;
16
+ return;
17
+ }
18
+ l.value = !0;
19
+ try {
20
+ i.value = await g.fetchReportPermissions(
21
+ s,
22
+ t
23
+ ), r.value = !0, p.value = t;
24
+ } catch (e) {
25
+ console.warn("Failed to fetch dynamic report permissions, keeping last known list:", e), r.value = !1;
26
+ } finally {
27
+ l.value = !1, u.value && (u.value = !1, await m());
28
+ }
29
+ }
30
+ }
31
+ const c = S.filter(
32
+ (s) => s.subject === d.F_RULE_SUBJECT.enum.report && s.conditions
33
+ ), y = a(() => {
34
+ const s = new Set(
35
+ c.map((e) => {
36
+ const n = typeof e.conditions == "string" ? JSON.parse(e.conditions) : e.conditions;
37
+ return n == null ? void 0 : n.name;
38
+ })
39
+ ), t = i.value.filter((e) => !s.has(e.permissionKey)).map((e) => ({
40
+ label: e.name,
41
+ subject: d.F_RULE_SUBJECT.enum.report,
42
+ actions: ["read"],
43
+ conditions: { name: e.permissionKey },
44
+ inverted: !1,
45
+ reason: ""
46
+ }));
47
+ return [...c, ...t];
48
+ }), R = a(() => {
49
+ const s = new Set(
50
+ c.map((t) => {
51
+ const e = typeof t.conditions == "string" ? JSON.parse(t.conditions) : t.conditions;
52
+ return e == null ? void 0 : e.name;
53
+ })
54
+ );
55
+ for (const t of i.value)
56
+ s.add(t.permissionKey);
57
+ return s;
58
+ }), h = a(() => {
59
+ const s = new Set(
60
+ c.map((e) => {
61
+ const n = typeof e.conditions == "string" ? JSON.parse(e.conditions) : e.conditions;
62
+ return n == null ? void 0 : n.name;
63
+ })
64
+ ), t = /* @__PURE__ */ new Set();
65
+ for (const e of i.value)
66
+ s.has(e.permissionKey) || t.add(e.permissionKey);
67
+ return t;
68
+ });
69
+ return {
70
+ fetchReportPermissions: m,
71
+ allReportPermissions: y,
72
+ availableReportKeys: R,
73
+ customReportKeys: h,
74
+ isLoading: a(() => l.value),
75
+ isLoaded: a(() => r.value)
76
+ };
77
+ }
78
+ export {
79
+ J as u
80
+ };
@@ -1,6 +1,6 @@
1
1
  import { computed as v, ref as u } from "vue";
2
2
  import { useCoreStore as f } from "@feedmepos/mf-common";
3
- import { g as p, b as m } from "./app-C37qvNnc.js";
3
+ import { g as p, b as m } from "./app-B9qAxMj1.js";
4
4
  const P = {
5
5
  async readProviders() {
6
6
  return p(await m("sso-providers").get(""));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-hrm-portal",
3
- "version": "2.3.2-dev.11",
3
+ "version": "2.3.2-dev.12",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "@feedmepos/auth": "^1.6.4",
18
18
  "@feedmepos/core": "^2.14.36",
19
- "@feedmepos/mf-common": "^1.29.10",
19
+ "@feedmepos/mf-common": "1.29.36",
20
20
  "@feedmepos/mf-remy-panel": "0.15.0",
21
21
  "@feedmepos/ui-library": "^1.10.13",
22
22
  "@feedmepos/feature-flag": "^0.0.15",