@feedmepos/mf-hrm-portal 2.4.2-dev.2 → 2.4.2

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 (112) hide show
  1. package/dist/{ApprovalCodeList-b8usXKo8.js → ApprovalCodeList-DGLPcQcv.js} +15 -14
  2. package/dist/{AuditLogList-DqbgzFAs.js → AuditLogList-ahJwTF7N.js} +12 -12
  3. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-IPkyxwIF.js +438 -0
  4. package/dist/EmployeeList-B18mlY4V.js +776 -0
  5. package/dist/FormItem.vue_vue_type_script_setup_true_lang-Dvo9AiKf.js +45 -0
  6. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
  7. package/dist/{GrantUserList-B-p8Qghu.js → GrantUserList-C8BbP99C.js} +16 -15
  8. package/dist/{Main-D_EXStcl.js → Main-BA29_N_p.js} +2280 -2274
  9. package/dist/{Main-x6An4Vlq.js → Main-BN3b_yie.js} +5 -5
  10. package/dist/Main-Clux_qKN.js +96 -0
  11. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
  12. package/dist/{PermissionSetList-D4Vdbk10.js → PermissionSetList-BSOJ8ftd.js} +108 -107
  13. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Hz_rFmbH.js +4181 -0
  14. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BwuBk683.js +35 -0
  15. package/dist/RoleList-EnfxydGa.js +740 -0
  16. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DiWJzXvb.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-yIdd8r7y.js} +1 -1
  17. package/dist/{ScheduleGeneralPage-O7ohVH-K.js → ScheduleGeneralPage-CFUqm5-r.js} +2 -2
  18. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-DOkdX3vt.js → ScheduleModal.vue_vue_type_script_setup_true_lang-BmPrGRG2.js} +186 -187
  19. package/dist/{SchedulePage-WT_Ttars.js → SchedulePage-DEFQwipO.js} +16 -16
  20. package/dist/{SchedulePositionPage-13qwxMn2.js → SchedulePositionPage-CM5NS5-F.js} +3 -3
  21. package/dist/{SelectFilter-DbE6YV-6.js → SelectFilter-DgjR5o5E.js} +1 -1
  22. package/dist/TeamMemberList-BKvhHLNG.js +1150 -0
  23. package/dist/TimesheetList-EQRMimP7.js +402 -0
  24. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_ffd7f807_lang-_tXql6vR.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BumkwWvb.js} +7 -7
  25. package/dist/{app-D-6Rxcbg.js → app-Bkc0pF3P.js} +3929 -7722
  26. package/dist/app.js +3 -3
  27. package/dist/{approval-code-Ba9JpPf4.js → approval-code-BKMu1GDn.js} +1 -1
  28. package/dist/{dayjs.min-dCnie4oC.js → dayjs.min-CkI2q2aC.js} +24 -24
  29. package/dist/employee-BfkxCdPL.js +209 -0
  30. package/dist/{grant-user-Dpla60s_.js → grant-user-ClN_vTOv.js} +1 -1
  31. package/dist/{index-D8G0ElDc.js → iteration-CsNIceUp.js} +558 -573
  32. package/dist/{lodash-CucBZWOa.js → lodash-BgraJgCc.js} +1 -1
  33. package/dist/restaurant-CRNgiIa4.js +2685 -0
  34. package/dist/role-CZYSdVn2.js +91 -0
  35. package/dist/rule-_4roLZrG.js +780 -0
  36. package/dist/src/components/CollapsibleWrapper.vue.d.ts +3 -11
  37. package/dist/src/helpers/iteration.d.ts +2 -9
  38. package/dist/src/helpers/permission-set.d.ts +102 -1
  39. package/dist/src/helpers/rule.d.ts +2 -2
  40. package/dist/src/helpers/string.d.ts +1 -10
  41. package/dist/src/router/shared.d.ts +1 -3
  42. package/dist/src/stores/restaurant.d.ts +7 -7
  43. package/dist/src/stores/team.d.ts +0 -30
  44. package/dist/src/types/team.d.ts +1 -17
  45. package/dist/src/views/audit-log/locales/index.d.ts +0 -12
  46. package/dist/src/views/hr/locales/index.d.ts +0 -20
  47. package/dist/src/views/hr/role/RoleForm.vue.d.ts +2 -29
  48. package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +1 -1
  49. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1 -1
  50. package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +1 -1
  51. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +1 -1
  52. package/dist/src/views/team/components/BasePermission.vue.d.ts +0 -11
  53. package/dist/src/views/team/components/ConditionPermission.vue.d.ts +0 -11
  54. package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +0 -21
  55. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +0 -11
  56. package/dist/src/views/team/locales/index.d.ts +0 -716
  57. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -48
  58. package/dist/src/views/team/{components/MemberStatusBadge.vue.d.ts → member/MemberInfo.vue.d.ts} +2 -2
  59. package/dist/src/views/team/member/TeamMemberList.vue.d.ts +0 -1
  60. package/dist/string-VNuQNweN.js +15 -0
  61. package/dist/style.css +1 -1
  62. package/dist/tsconfig.app.tsbuildinfo +1 -1
  63. package/dist/{useAppStore-C_LStOtj.js → useAppStore-DYmF1kgk.js} +1 -1
  64. package/dist/{useLoading-CJ-DUrnR.js → useLoading-C2UKuAxD.js} +1 -1
  65. package/dist/{useReportPermissions-C7TLMKuR.js → useReportPermissions-BiaXRc0p.js} +22 -22
  66. package/package.json +1 -1
  67. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-WeFI9muF.js +0 -459
  68. package/dist/EmployeeList-NM0guUbU.js +0 -896
  69. package/dist/FormSection.vue_vue_type_script_setup_true_lang-BCNKeDZY.js +0 -90
  70. package/dist/Main-BrhCJsik.js +0 -101
  71. package/dist/MyPosProfile-CG1PZ5p4.js +0 -360
  72. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +0 -126
  73. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CFyGZpKr.js +0 -4212
  74. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CTxqUf16.js +0 -1797
  75. package/dist/RoleForm.vue_vue_type_script_setup_true_lang-DUhqZaQv.js +0 -547
  76. package/dist/RoleList-DFcy90mE.js +0 -274
  77. package/dist/TeamMemberList-CWfXQcO3.js +0 -2082
  78. package/dist/TimesheetList-Bp2hRf7V.js +0 -408
  79. package/dist/employee-B5qCkaCi.js +0 -237
  80. package/dist/member-grant-CZILo1nC.js +0 -54
  81. package/dist/restaurant-CD6RZ8XG.js +0 -49
  82. package/dist/role-54DbS-Cy.js +0 -91
  83. package/dist/rule-DzTp1Kjh.js +0 -845
  84. package/dist/src/api/my-pos-profile/index.d.ts +0 -3
  85. package/dist/src/api/sso-provider/index.d.ts +0 -5
  86. package/dist/src/api/staff-invite/index.d.ts +0 -16
  87. package/dist/src/components/form/SegmentedTabs.vue.d.ts +0 -23
  88. package/dist/src/composables/useMenuAccess.d.ts +0 -56
  89. package/dist/src/composables/useSsoProviders.d.ts +0 -19
  90. package/dist/src/composables/useStaffInviteProviders.d.ts +0 -8
  91. package/dist/src/helpers/employee-merge.d.ts +0 -33
  92. package/dist/src/helpers/member-grant.d.ts +0 -36
  93. package/dist/src/helpers/my-pos-profile.d.ts +0 -37
  94. package/dist/src/helpers/pos-assignment-rows.d.ts +0 -28
  95. package/dist/src/helpers/restaurant-lookup.d.ts +0 -19
  96. package/dist/src/helpers/role-merge.d.ts +0 -11
  97. package/dist/src/helpers/staff-invite.d.ts +0 -54
  98. package/dist/src/router/menu-access-guard.d.ts +0 -17
  99. package/dist/src/types/my-pos-profile.d.ts +0 -24
  100. package/dist/src/types/sso-provider.d.ts +0 -10
  101. package/dist/src/types/staff-invite.d.ts +0 -100
  102. package/dist/src/views/hr/timesheet/timesheet-view.d.ts +0 -29
  103. package/dist/src/views/my-pos-profile/MyPosProfile.vue.d.ts +0 -2
  104. package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +0 -4
  105. package/dist/src/views/my-pos-profile/locales/index.d.ts +0 -236
  106. package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +0 -51
  107. package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -44
  108. package/dist/src/views/team/member/ExistingMemberNotice.vue.d.ts +0 -11
  109. package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +0 -35
  110. package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +0 -19
  111. package/dist/string-DZQ1uNjn.js +0 -22
  112. package/dist/useSsoProviders-DhmUc7LW.js +0 -41
@@ -1,49 +0,0 @@
1
- import { defineStore as d, storeToRefs as v } from "pinia";
2
- import { ref as i } from "vue";
3
- import { b as c, g as p, u as m } from "./app-D-6Rxcbg.js";
4
- const R = {
5
- async readRestaurants() {
6
- return p(await c().get("/hr-restaurants"));
7
- },
8
- async saveOperationalHours(n, s) {
9
- await c(`restaurants/${n}/schedules`).patch(
10
- "operational-hours",
11
- { operatingHours: s }
12
- );
13
- }
14
- }, g = d("hrm-restaurant", () => {
15
- const n = m(), s = i([]), r = i(!1), u = i(null);
16
- let a = null, e = null;
17
- async function f(o = !1) {
18
- const t = n.id.value ?? null;
19
- if (!t) {
20
- s.value = [], u.value = null, a = null, e = null;
21
- return;
22
- }
23
- if (u.value && u.value !== t && (s.value = [], u.value = null), e && e !== t && (a = null, e = null), !o && u.value === t) return;
24
- if (!o && a && e === t)
25
- return await a;
26
- let l = null;
27
- try {
28
- r.value = !0, l = (async () => {
29
- s.value = await R.readRestaurants(), u.value = t;
30
- })(), a = l, e = t, await l;
31
- } finally {
32
- a === l && (a = null, e = null), r.value = !1;
33
- }
34
- }
35
- return {
36
- restaurants: s,
37
- isLoading: r,
38
- readRestaurants: f
39
- };
40
- }), I = () => {
41
- const n = g();
42
- return {
43
- ...n,
44
- ...v(n)
45
- };
46
- };
47
- export {
48
- I as u
49
- };
@@ -1,91 +0,0 @@
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-D-6Rxcbg.js";
4
- import { a as b, s as m } from "./index-D8G0ElDc.js";
5
- import { u as B } from "./restaurant-CD6RZ8XG.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
- };