@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,51 +0,0 @@
1
- import { defineStore as p, storeToRefs as m } from "pinia";
2
- import { ref as o } from "vue";
3
- import { useCoreStore as R } from "@feedmepos/mf-common";
4
- import { b as d, g } from "./app-n6d4AmtP.js";
5
- const y = {
6
- async readRestaurants() {
7
- return g(await d().get("/hr-restaurants"));
8
- },
9
- async saveOperationalHours(e, n) {
10
- await d(`restaurants/${e}/schedules`).patch(
11
- "operational-hours",
12
- { operatingHours: n }
13
- );
14
- }
15
- }, w = p("restaurant", () => {
16
- const { currentBusiness: e } = R(), n = o([]), l = o(!1), u = o(null);
17
- let a = null, t = null;
18
- async function v(i = !1) {
19
- var c, f;
20
- const s = ((c = e.value) == null ? void 0 : c._id) ?? ((f = e.value) == null ? void 0 : f.id) ?? null;
21
- if (!s) {
22
- n.value = [], u.value = null, a = null, t = null;
23
- return;
24
- }
25
- if (u.value && u.value !== s && (n.value = [], u.value = null), t && t !== s && (a = null, t = null), !i && u.value === s) return;
26
- if (!i && a && t === s)
27
- return await a;
28
- let r = null;
29
- try {
30
- l.value = !0, r = (async () => {
31
- n.value = await y.readRestaurants(), u.value = s;
32
- })(), a = r, t = s, await r;
33
- } finally {
34
- a === r && (a = null, t = null), l.value = !1;
35
- }
36
- }
37
- return {
38
- restaurants: n,
39
- isLoading: l,
40
- readRestaurants: v
41
- };
42
- }), B = () => {
43
- const e = w();
44
- return {
45
- ...e,
46
- ...m(e)
47
- };
48
- };
49
- export {
50
- B as u
51
- };
@@ -1,93 +0,0 @@
1
- import { defineStore as x, storeToRefs as b } from "pinia";
2
- import { ref as w } from "vue";
3
- import { useCoreStore as B } from "@feedmepos/mf-common";
4
- import { s as v } from "./iteration-y_jodvfN.js";
5
- import { g as f, b as p } from "./app-n6d4AmtP.js";
6
- import { u as I } from "./restaurant-Dl6yx37M.js";
7
- const R = {
8
- async readRoles() {
9
- return f(await p().get("/pos-roles"));
10
- },
11
- async createRole(e) {
12
- return f(await p().post("/pos-roles", e));
13
- },
14
- async updateRole(e, c) {
15
- return f(await p().put(`/pos-roles/${e}`, c));
16
- },
17
- async deleteRole(e) {
18
- return f(
19
- await p().put(`/pos-roles/${e._id}`, {
20
- restaurantIds: [],
21
- role: e
22
- })
23
- );
24
- }
25
- };
26
- async function m(e) {
27
- const { restaurants: c } = I(), u = e.reduce((n, a) => {
28
- var d;
29
- const s = n.findIndex((o) => o._id === a._id), r = {
30
- id: a.restaurantId,
31
- name: ((d = c.value.find((o) => o._id === a.restaurantId)) == null ? void 0 : d.profile.name) || ""
32
- };
33
- return s < 0 ? n.push({
34
- ...a,
35
- restaurants: [r]
36
- }) : n[s].restaurants.some((o) => o.id === a.restaurantId) || (n[s].restaurants = v([...n[s].restaurants, r], { selector: "name" })), n;
37
- }, []);
38
- return v(u, { selector: "name" });
39
- }
40
- const A = x("role", () => {
41
- const { currentBusiness: e } = B(), c = I(), u = w([]), n = w(!1), a = w(null);
42
- let s = null, r = null;
43
- async function d(l = !1) {
44
- var y;
45
- const t = ((y = e.value) == null ? void 0 : y._id) ?? null;
46
- if (!t) {
47
- u.value = [], a.value = null, s = null, r = null;
48
- return;
49
- }
50
- if (a.value && a.value !== t && (u.value = [], a.value = null), r && r !== t && (s = null, r = null), !l && a.value === t) return;
51
- if (!l && s && r === t)
52
- return await s;
53
- let i = null;
54
- try {
55
- n.value = !0, i = (async () => {
56
- await c.readRestaurants();
57
- const _ = await R.readRoles();
58
- u.value = await m(_), a.value = t;
59
- })(), s = i, r = t, await i;
60
- } finally {
61
- s === i && (s = null, r = null), n.value = !1;
62
- }
63
- }
64
- async function o(l) {
65
- const t = await R.createRole(l);
66
- u.value = await m(t);
67
- }
68
- async function g(l, t) {
69
- const i = await R.updateRole(l, t);
70
- u.value = await m(i);
71
- }
72
- async function S(l) {
73
- const t = await R.deleteRole(l);
74
- u.value = await m(t);
75
- }
76
- return {
77
- roles: u,
78
- isLoading: n,
79
- readRoles: d,
80
- createRole: o,
81
- updateRole: g,
82
- deleteRole: S
83
- };
84
- }), P = () => {
85
- const e = A();
86
- return {
87
- ...e,
88
- ...b(e)
89
- };
90
- };
91
- export {
92
- P as u
93
- };