@feedmepos/mf-hrm-portal 2.3.2-dev.18 → 2.3.2-dev.19

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 (52) hide show
  1. package/dist/{ApprovalCodeList-Cv4-P7fX.js → ApprovalCodeList-CiZcp75s.js} +7 -7
  2. package/dist/{AuditLogList-KH-H5uzM.js → AuditLogList-AVdhUk22.js} +5 -5
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BQq5xW8d.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CGsOJ4bA.js} +2 -2
  4. package/dist/{EmployeeList-BCjOwL1V.js → EmployeeList-DmB3wCwv.js} +8 -8
  5. package/dist/{FormSection.vue_vue_type_script_setup_true_lang-D4e5iSQq.js → FormSection.vue_vue_type_script_setup_true_lang-Qsc3hk6l.js} +1 -1
  6. package/dist/{GrantUserList-CfvdU440.js → GrantUserList-CUWnDKaH.js} +8 -8
  7. package/dist/{Main-CVF5eDBd.js → Main-CbJjQFFR.js} +10 -10
  8. package/dist/{Main-DKKGpzdb.js → Main-D7CAtkiV.js} +1328 -1339
  9. package/dist/{Main-YrCgPqZU.js → Main-DT4TJPRM.js} +5 -5
  10. package/dist/{MyPosProfile-z84_PtAn.js → MyPosProfile-EWK8IPlZ.js} +1 -1
  11. package/dist/{PermissionSetList-9xD_n1VF.js → PermissionSetList-D2HDsSFi.js} +6 -6
  12. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-IX3av4mS.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BUSup81G.js} +551 -551
  13. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-sPatt5hV.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-B1sb_3ow.js} +2 -2
  14. package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-CSsgsqvl.js → RoleForm.vue_vue_type_script_setup_true_lang-D-Gve4l8.js} +9 -9
  15. package/dist/{RoleList-oSqkcGgN.js → RoleList-DRFTQcwP.js} +7 -7
  16. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-qJhZA2DN.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-b96QQsiZ.js} +1 -1
  17. package/dist/{ScheduleGeneralPage-BxXDcGD4.js → ScheduleGeneralPage-DO6ZO_7t.js} +2 -2
  18. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-Dcr2USSq.js → ScheduleModal.vue_vue_type_script_setup_true_lang-BG0-qg1-.js} +4 -4
  19. package/dist/{SchedulePage-C_M2ABMR.js → SchedulePage-m9fYfgEO.js} +9 -9
  20. package/dist/{SchedulePositionPage-XaIHUH4A.js → SchedulePositionPage-B9M8bgu1.js} +3 -3
  21. package/dist/{SelectFilter-BzqdpDfg.js → SelectFilter-qanI8DEh.js} +1 -1
  22. package/dist/{TeamMemberList--WEaatay.js → TeamMemberList-D7PIM3xv.js} +12 -12
  23. package/dist/TimesheetList-C_XQe3jl.js +408 -0
  24. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-GIIAlhti.js → TimesheetList.vue_vue_type_style_index_0_scoped_ffd7f807_lang-D6qTouaS.js} +7 -7
  25. package/dist/{app-DSUfooPD.js → app-BuJGxfu4.js} +10 -10
  26. package/dist/app.js +1 -1
  27. package/dist/{approval-code-BZYlghBT.js → approval-code-HPeWQne5.js} +1 -1
  28. package/dist/{dayjs.min-5UvwoDGv.js → dayjs.min-CLUgksBW.js} +1 -1
  29. package/dist/employee-DrsTtOKq.js +237 -0
  30. package/dist/{grant-user-CgvKn27g.js → grant-user-J6TSUXHn.js} +1 -1
  31. package/dist/{iteration-BFI7vEBg.js → index-Dl7XhjSB.js} +573 -558
  32. package/dist/{lodash-DJ0F99PK.js → lodash-CMqarlaS.js} +1 -1
  33. package/dist/{member-grant-BmthjLCk.js → member-grant-BeNgG3hd.js} +2 -2
  34. package/dist/{restaurant-CeR-XM1L.js → restaurant-9Y8x8pCL.js} +1 -1
  35. package/dist/role-COuuwMES.js +91 -0
  36. package/dist/rule-50_hBJQJ.js +845 -0
  37. package/dist/src/helpers/employee-merge.d.ts +33 -0
  38. package/dist/src/helpers/iteration.d.ts +9 -2
  39. package/dist/src/helpers/restaurant-lookup.d.ts +19 -0
  40. package/dist/src/helpers/role-merge.d.ts +11 -0
  41. package/dist/src/views/hr/timesheet/timesheet-view.d.ts +29 -0
  42. package/dist/style.css +1 -1
  43. package/dist/tsconfig.app.tsbuildinfo +1 -1
  44. package/dist/{useAppStore-KvMQH09O.js → useAppStore-BCvZUxKY.js} +1 -1
  45. package/dist/{useLoading-4s1zzjal.js → useLoading-BOt2Is3p.js} +1 -1
  46. package/dist/{useReportPermissions-BVxVU0SS.js → useReportPermissions-BVTpovDL.js} +3 -3
  47. package/dist/{useSsoProviders-CKRDQYcP.js → useSsoProviders-Bec-WHC7.js} +1 -1
  48. package/package.json +1 -1
  49. package/dist/TimesheetList-D6FG69-S.js +0 -402
  50. package/dist/employee-CT3TDtIM.js +0 -210
  51. package/dist/role-C2QeFrHr.js +0 -91
  52. package/dist/rule-CYsTf24V.js +0 -839
@@ -1,91 +0,0 @@
1
- import { defineStore as _, storeToRefs as x } from "pinia";
2
- import { ref as w } from "vue";
3
- import { g as f, b as p, u as b } from "./app-DSUfooPD.js";
4
- import { s as y } from "./iteration-BFI7vEBg.js";
5
- import { u as v } from "./restaurant-CeR-XM1L.js";
6
- const R = {
7
- async readRoles() {
8
- return f(await p().get("/pos-roles"));
9
- },
10
- async createRole(e) {
11
- return f(await p().post("/pos-roles", e));
12
- },
13
- async updateRole(e, c) {
14
- return f(await p().put(`/pos-roles/${e}`, c));
15
- },
16
- async deleteRole(e) {
17
- return f(
18
- await p().put(`/pos-roles/${e._id}`, {
19
- restaurantIds: [],
20
- role: e
21
- })
22
- );
23
- }
24
- };
25
- async function m(e) {
26
- const { restaurants: c } = v(), u = e.reduce((n, a) => {
27
- var d;
28
- const s = n.findIndex((o) => o._id === a._id), r = {
29
- id: a.restaurantId,
30
- name: ((d = c.value.find((o) => o._id === a.restaurantId)) == null ? void 0 : d.profile.name) || ""
31
- };
32
- return s < 0 ? n.push({
33
- ...a,
34
- restaurants: [r]
35
- }) : n[s].restaurants.some((o) => o.id === a.restaurantId) || (n[s].restaurants = y([...n[s].restaurants, r], { selector: "name" })), n;
36
- }, []);
37
- return y(u, { selector: "name" });
38
- }
39
- const h = _("hrm-role", () => {
40
- const e = b(), c = v(), u = w([]), n = w(!1), a = w(null);
41
- let s = null, r = null;
42
- async function d(l = !1) {
43
- const t = e.id.value ?? null;
44
- if (!t) {
45
- u.value = [], a.value = null, s = null, r = null;
46
- return;
47
- }
48
- if (a.value && a.value !== t && (u.value = [], a.value = null), r && r !== t && (s = null, r = null), !l && a.value === t) return;
49
- if (!l && s && r === t)
50
- return await s;
51
- let i = null;
52
- try {
53
- n.value = !0, i = (async () => {
54
- await c.readRestaurants();
55
- const S = await R.readRoles();
56
- u.value = await m(S), a.value = t;
57
- })(), s = i, r = t, await i;
58
- } finally {
59
- s === i && (s = null, r = null), n.value = !1;
60
- }
61
- }
62
- async function o(l) {
63
- const t = await R.createRole(l);
64
- u.value = await m(t);
65
- }
66
- async function I(l, t) {
67
- const i = await R.updateRole(l, t);
68
- u.value = await m(i);
69
- }
70
- async function g(l) {
71
- const t = await R.deleteRole(l);
72
- u.value = await m(t);
73
- }
74
- return {
75
- roles: u,
76
- isLoading: n,
77
- readRoles: d,
78
- createRole: o,
79
- updateRole: I,
80
- deleteRole: g
81
- };
82
- }), C = () => {
83
- const e = h();
84
- return {
85
- ...e,
86
- ...x(e)
87
- };
88
- };
89
- export {
90
- C as u
91
- };