@feedmepos/mf-hrm-portal 2.3.2-dev.2 → 2.3.2-dev.20

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 (82) hide show
  1. package/dist/{ApprovalCodeList-sHnINTik.js → ApprovalCodeList-eCTF8Rwt.js} +7 -7
  2. package/dist/AuditLogList-YzR5ysmN.js +2021 -0
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BbsPesWY.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang--660w-zJ.js} +2 -2
  4. package/dist/{EmployeeList-D4oy5hXz.js → EmployeeList-C2ctTGCo.js} +8 -8
  5. package/dist/{FormSection.vue_vue_type_script_setup_true_lang-Cl053Tg1.js → FormSection.vue_vue_type_script_setup_true_lang-DWvJM14K.js} +1 -1
  6. package/dist/{GrantUserList-LWpqhl-5.js → GrantUserList-BoN1MUkB.js} +8 -8
  7. package/dist/{Main-PBJjfzBg.js → Main-BLmTdeYO.js} +5 -5
  8. package/dist/{Main-BWKb-QIE.js → Main-CIldvI5X.js} +2274 -2280
  9. package/dist/{Main-CVGiOYpC.js → Main-Di-083Pw.js} +29 -29
  10. package/dist/MyPosProfile-CctvT3RF.js +360 -0
  11. package/dist/{PermissionSetList-D2qZVlF4.js → PermissionSetList-BzvVAzwG.js} +126 -126
  12. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JgrJvMly.js +4212 -0
  13. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DRGTxOMW.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BdjAh48A.js} +414 -448
  14. package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-DFDTw0lj.js → RoleForm.vue_vue_type_script_setup_true_lang-WCNUeA3G.js} +74 -74
  15. package/dist/{RoleList-DG0crFzW.js → RoleList-wPupuMBG.js} +7 -7
  16. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Cs0rhCa3.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DcBIt4DL.js} +1 -1
  17. package/dist/{ScheduleGeneralPage-C4J6jYtG.js → ScheduleGeneralPage-NCKqPyt5.js} +2 -2
  18. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-3UqO6uPu.js → ScheduleModal.vue_vue_type_script_setup_true_lang-CG5Xxj3Q.js} +4 -4
  19. package/dist/{SchedulePage-ICzggri0.js → SchedulePage-BZ5bKLly.js} +197 -209
  20. package/dist/{SchedulePositionPage-BshUCd_C.js → SchedulePositionPage-CwHd3rf2.js} +3 -3
  21. package/dist/{SelectFilter-D9T0nFvG.js → SelectFilter-DLZNvKwI.js} +2 -3
  22. package/dist/TeamMemberList-D8uWsS0J.js +2082 -0
  23. package/dist/TimesheetList-K6doo0BX.js +408 -0
  24. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BLqgALLe.js → TimesheetList.vue_vue_type_style_index_0_scoped_ffd7f807_lang-DFoIix3D.js} +7 -7
  25. package/dist/{app-n6d4AmtP.js → app-BGzac7xv.js} +5618 -4632
  26. package/dist/app.js +1 -1
  27. package/dist/{approval-code-1j1OoXt1.js → approval-code-BBNbWSqR.js} +4 -4
  28. package/dist/{dayjs.min-DdNivv4b.js → dayjs.min-ey-9Jb-9.js} +20 -20
  29. package/dist/employee-D_COMGXq.js +237 -0
  30. package/dist/{grant-user-BmTyexk3.js → grant-user-CTTTpewT.js} +2 -2
  31. package/dist/{iteration-y_jodvfN.js → index-CTqdA7gA.js} +573 -558
  32. package/dist/{lodash-B2eWEGH4.js → lodash-DNSDZgnL.js} +1 -1
  33. package/dist/member-grant-5DnD17dB.js +54 -0
  34. package/dist/restaurant-qoOY3iMJ.js +49 -0
  35. package/dist/role-BEbd5Qsi.js +91 -0
  36. package/dist/rule-BLG5i_xT.js +845 -0
  37. package/dist/src/api/audit-log/index.d.ts +2 -0
  38. package/dist/src/api/my-pos-profile/index.d.ts +1 -3
  39. package/dist/src/composables/useTenant.d.ts +11 -0
  40. package/dist/src/helpers/employee-merge.d.ts +33 -0
  41. package/dist/src/helpers/iteration.d.ts +9 -2
  42. package/dist/src/helpers/permission-set.d.ts +1 -102
  43. package/dist/src/helpers/restaurant-lookup.d.ts +19 -0
  44. package/dist/src/helpers/role-merge.d.ts +11 -0
  45. package/dist/src/helpers/rule.d.ts +2 -2
  46. package/dist/src/router/courtGuard.d.ts +4 -0
  47. package/dist/src/stores/approval-code.d.ts +1 -1
  48. package/dist/src/stores/employee.d.ts +2 -2
  49. package/dist/src/stores/grant-user.d.ts +1 -1
  50. package/dist/src/stores/permission-assignment.d.ts +2 -2
  51. package/dist/src/stores/permission-set.d.ts +2 -2
  52. package/dist/src/stores/restaurant.d.ts +2 -2
  53. package/dist/src/stores/role.d.ts +2 -2
  54. package/dist/src/stores/team.d.ts +2 -2
  55. package/dist/src/stores/timesheet.d.ts +2 -2
  56. package/dist/src/types/my-pos-profile.d.ts +2 -3
  57. package/dist/src/views/audit-log/constants.d.ts +1 -1
  58. package/dist/src/views/audit-log/locales/index.d.ts +56 -0
  59. package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +19 -0
  60. package/dist/src/views/hr/locales/index.d.ts +4 -4
  61. package/dist/src/views/hr/timesheet/timesheet-view.d.ts +29 -0
  62. package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +1 -1
  63. package/dist/src/views/my-pos-profile/locales/index.d.ts +40 -4
  64. package/dist/style.css +1 -1
  65. package/dist/tsconfig.app.tsbuildinfo +1 -1
  66. package/dist/{useAppStore-BPARQyvJ.js → useAppStore-BwUs5XGY.js} +1 -1
  67. package/dist/{useLoading-iPESFb6R.js → useLoading-DmAqc_Gx.js} +1 -1
  68. package/dist/useMessage-_ywT_N9X.js +17 -0
  69. package/dist/useReportPermissions-PEzIBX1U.js +80 -0
  70. package/dist/useSsoProviders-CwLbvOdH.js +41 -0
  71. package/package.json +5 -5
  72. package/dist/AuditLogList-C9C2emU9.js +0 -1950
  73. package/dist/MyPosProfile-BQCBFMFw.js +0 -301
  74. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ZSREAS1r.js +0 -4243
  75. package/dist/TeamMemberList-C970Iqlj.js +0 -2086
  76. package/dist/TimesheetList-nxhr0EWj.js +0 -402
  77. package/dist/employee-BlfleiCU.js +0 -210
  78. package/dist/member-grant-CzZUdO_s.js +0 -55
  79. package/dist/restaurant-Dl6yx37M.js +0 -51
  80. package/dist/role-DfZi7Ssk.js +0 -93
  81. package/dist/rule-ChmhcGgA.js +0 -788
  82. package/dist/useReportPermissions-By-BoJZb.js +0 -82
@@ -1,5 +1,5 @@
1
1
  import { defineStore as p } from "pinia";
2
- import { g as s } from "./app-n6d4AmtP.js";
2
+ import { g as s } from "./app-BGzac7xv.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-BPARQyvJ.js";
3
+ import { u as w, v } from "./useAppStore-BwUs5XGY.js";
4
4
  const E = (r) => {
5
5
  async function d(u, e) {
6
6
  var l, a;
@@ -0,0 +1,17 @@
1
+ import { useSnackbar as u } from "@feedmepos/ui-library";
2
+ function a() {
3
+ const c = u();
4
+ function s(r, e) {
5
+ c.open({ title: r, type: "success", position: e == null ? void 0 : e.position });
6
+ }
7
+ function t(r, e) {
8
+ c.open({ title: r, type: "error", position: e == null ? void 0 : e.position });
9
+ }
10
+ return {
11
+ success: s,
12
+ error: t
13
+ };
14
+ }
15
+ export {
16
+ a as u
17
+ };
@@ -0,0 +1,80 @@
1
+ import { computed as a, ref as o } from "vue";
2
+ import { e as d } from "./index-CTqdA7gA.js";
3
+ import { u as K, n as S } from "./app-BGzac7xv.js";
4
+ import { i as g } from "./rule-BLG5i_xT.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 n = localStorage.getItem("locale");
13
+ if (!(r.value && p.value === n)) {
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
+ n
23
+ ), r.value = !0, p.value = n;
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 t = typeof e.conditions == "string" ? JSON.parse(e.conditions) : e.conditions;
37
+ return t == null ? void 0 : t.name;
38
+ })
39
+ ), n = 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, ...n];
48
+ }), R = a(() => {
49
+ const s = new Set(
50
+ c.map((n) => {
51
+ const e = typeof n.conditions == "string" ? JSON.parse(n.conditions) : n.conditions;
52
+ return e == null ? void 0 : e.name;
53
+ })
54
+ );
55
+ for (const n of i.value)
56
+ s.add(n.permissionKey);
57
+ return s;
58
+ }), h = a(() => {
59
+ const s = new Set(
60
+ c.map((e) => {
61
+ const t = typeof e.conditions == "string" ? JSON.parse(e.conditions) : e.conditions;
62
+ return t == null ? void 0 : t.name;
63
+ })
64
+ ), n = /* @__PURE__ */ new Set();
65
+ for (const e of i.value)
66
+ s.has(e.permissionKey) || n.add(e.permissionKey);
67
+ return n;
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
+ };
@@ -0,0 +1,41 @@
1
+ import { computed as v, ref as u } from "vue";
2
+ import { useCoreStore as f } from "@feedmepos/mf-common";
3
+ import { g as p, b as m } from "./app-BGzac7xv.js";
4
+ const P = {
5
+ async readProviders() {
6
+ return p(await m("sso-providers").get(""));
7
+ }
8
+ }, n = u([]), t = u(null);
9
+ let s = null;
10
+ function g() {
11
+ const i = f();
12
+ async function a() {
13
+ var r, o;
14
+ const e = (r = i.currentBusiness.value) == null ? void 0 : r.id;
15
+ if (!(!e || s === e)) {
16
+ s = e, n.value = [], t.value = null;
17
+ try {
18
+ const c = await P.readProviders();
19
+ s === e && (n.value = c);
20
+ } catch {
21
+ s === e && (s = null);
22
+ } finally {
23
+ ((o = i.currentBusiness.value) == null ? void 0 : o.id) === e && (t.value = e);
24
+ }
25
+ }
26
+ }
27
+ const l = v(
28
+ () => {
29
+ var e;
30
+ return !!t.value && t.value === ((e = i.currentBusiness.value) == null ? void 0 : e.id);
31
+ }
32
+ );
33
+ function d(e) {
34
+ var r;
35
+ return ((r = n.value.find((o) => o.slug === e)) == null ? void 0 : r.label) ?? e;
36
+ }
37
+ return { providers: n, isLoaded: l, loadProviders: a, providerLabel: d };
38
+ }
39
+ export {
40
+ g as u
41
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-hrm-portal",
3
- "version": "2.3.2-dev.2",
3
+ "version": "2.3.2-dev.20",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -16,21 +16,21 @@
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",
23
- "axios": "^1.7.7",
23
+ "axios": "^1.20.0",
24
24
  "dayjs": "^1.11.10",
25
25
  "libphonenumber-js": "^1.11.1",
26
26
  "lodash": "^4.17.21",
27
27
  "pinia": "^2.1.7",
28
28
  "uuid": "^10.0.0",
29
- "vue": "^3.5.16",
29
+ "vue": "^3.5.42",
30
30
  "vue-router": "^4.3.2",
31
31
  "vue3-lottie": "^3.3.0",
32
32
  "xlsx": "^0.18.5",
33
- "@feedmepos/hrm-permission": "1.2.0",
33
+ "@feedmepos/hrm-permission": "1.2.5",
34
34
  "@feedmepos/hrm-schedule-contract": "1.0.0"
35
35
  },
36
36
  "devDependencies": {