@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,4 +1,4 @@
1
- import { y as jt } from "./app-DSUfooPD.js";
1
+ import { y as jt } from "./app-BuJGxfu4.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -1,5 +1,5 @@
1
- import { k as n } from "./app-DSUfooPD.js";
2
- import { z as u } from "./rule-CYsTf24V.js";
1
+ import { k as n } from "./app-BuJGxfu4.js";
2
+ import { z as u } from "./rule-50_hBJQJ.js";
3
3
  const a = [
4
4
  n.Subject.Business.restaurant,
5
5
  n.Subject.Business.role,
@@ -1,6 +1,6 @@
1
1
  import { defineStore as d, storeToRefs as v } from "pinia";
2
2
  import { ref as i } from "vue";
3
- import { b as c, g as p, u as m } from "./app-DSUfooPD.js";
3
+ import { b as c, g as p, u as m } from "./app-BuJGxfu4.js";
4
4
  const R = {
5
5
  async readRestaurants() {
6
6
  return p(await c().get("/hr-restaurants"));
@@ -0,0 +1,91 @@
1
+ import { defineStore as S, storeToRefs as h } from "pinia";
2
+ import { ref as R } from "vue";
3
+ import { g as d, b as f, u as _ } from "./app-BuJGxfu4.js";
4
+ import { a as b, s as m } from "./index-Dl7XhjSB.js";
5
+ import { u as B } from "./restaurant-9Y8x8pCL.js";
6
+ const p = {
7
+ async readRoles() {
8
+ return d(await f().get("/pos-roles"));
9
+ },
10
+ async createRole(t) {
11
+ return d(await f().post("/pos-roles", t));
12
+ },
13
+ async updateRole(t, n) {
14
+ return d(await f().put(`/pos-roles/${t}`, n));
15
+ },
16
+ async deleteRole(t) {
17
+ return d(
18
+ await f().put(`/pos-roles/${t._id}`, {
19
+ restaurantIds: [],
20
+ role: t
21
+ })
22
+ );
23
+ }
24
+ };
25
+ function v(t, n) {
26
+ const { nameById: r } = b(n), o = /* @__PURE__ */ new Map();
27
+ for (const e of t) {
28
+ const s = { id: e.restaurantId, name: r.get(e.restaurantId) ?? "" }, i = o.get(e._id);
29
+ i ? i.outletIds.has(e.restaurantId) || (i.outletIds.add(e.restaurantId), i.role.restaurants.push(s)) : o.set(e._id, {
30
+ role: { ...e, restaurants: [s] },
31
+ outletIds: /* @__PURE__ */ new Set([e.restaurantId])
32
+ });
33
+ }
34
+ const l = [];
35
+ for (const { role: e } of o.values())
36
+ e.restaurants = m(e.restaurants, { selector: "name" }), l.push(e);
37
+ return m(l, { selector: "name" });
38
+ }
39
+ const x = S("hrm-role", () => {
40
+ const t = _(), n = B(), r = R([]), o = R(!1), l = R(null);
41
+ let e = null, s = null;
42
+ async function i(u = !1) {
43
+ const a = t.id.value ?? null;
44
+ if (!a) {
45
+ r.value = [], l.value = null, e = null, s = null;
46
+ return;
47
+ }
48
+ if (l.value && l.value !== a && (r.value = [], l.value = null), s && s !== a && (e = null, s = null), !u && l.value === a) return;
49
+ if (!u && e && s === a)
50
+ return await e;
51
+ let c = null;
52
+ try {
53
+ o.value = !0, c = (async () => {
54
+ await n.readRestaurants();
55
+ const g = await p.readRoles();
56
+ r.value = v(g, n.restaurants.value), l.value = a;
57
+ })(), e = c, s = a, await c;
58
+ } finally {
59
+ e === c && (e = null, s = null), o.value = !1;
60
+ }
61
+ }
62
+ async function w(u) {
63
+ const a = await p.createRole(u);
64
+ r.value = v(a, n.restaurants.value);
65
+ }
66
+ async function I(u, a) {
67
+ const c = await p.updateRole(u, a);
68
+ r.value = v(c, n.restaurants.value);
69
+ }
70
+ async function y(u) {
71
+ const a = await p.deleteRole(u);
72
+ r.value = v(a, n.restaurants.value);
73
+ }
74
+ return {
75
+ roles: r,
76
+ isLoading: o,
77
+ readRoles: i,
78
+ createRole: w,
79
+ updateRole: I,
80
+ deleteRole: y
81
+ };
82
+ }), q = () => {
83
+ const t = x();
84
+ return {
85
+ ...t,
86
+ ...h(t)
87
+ };
88
+ };
89
+ export {
90
+ q as u
91
+ };