@feedmepos/mf-hrm-portal 2.4.1 → 2.4.2-dev

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-BgnhS8P1.js → ApprovalCodeList-DpNF0wL7.js} +14 -15
  2. package/dist/{AuditLogList-BMEw3z3C.js → AuditLogList-D2bUFsuK.js} +12 -12
  3. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BjEJErcL.js +459 -0
  4. package/dist/EmployeeList-CBYU0R2j.js +896 -0
  5. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DsPLbLwQ.js +90 -0
  6. package/dist/{GrantUserList-DePGsJq1.js → GrantUserList-ClliuQ8h.js} +15 -16
  7. package/dist/{Main-hUOeiddV.js → Main-CBuOW87D.js} +2274 -2280
  8. package/dist/Main-D9MQo2l1.js +101 -0
  9. package/dist/{Main-BX2dD-ti.js → Main-DlPdGefL.js} +5 -5
  10. package/dist/MyPosProfile-IAPSqlBP.js +360 -0
  11. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +126 -0
  12. package/dist/{PermissionSetList-BHOjAjHj.js → PermissionSetList-Dd0fkW0L.js} +107 -108
  13. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CjQCbJRu.js +4212 -0
  14. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DJnIFlKq.js +1797 -0
  15. package/dist/RoleForm.vue_vue_type_script_setup_true_lang-hE2OZwfO.js +547 -0
  16. package/dist/RoleList-zZHpt079.js +274 -0
  17. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B8dH021B.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-yJwTtFyF.js} +1 -1
  18. package/dist/{ScheduleGeneralPage-WJu4dwH_.js → ScheduleGeneralPage-_cqIJY8R.js} +2 -2
  19. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-DvcZjDJA.js → ScheduleModal.vue_vue_type_script_setup_true_lang-C6M76KUA.js} +187 -186
  20. package/dist/{SchedulePage-BOiSyw9s.js → SchedulePage-DHkWe1KO.js} +16 -16
  21. package/dist/{SchedulePositionPage-NR8GaPxx.js → SchedulePositionPage-5JUJwlJc.js} +3 -3
  22. package/dist/{SelectFilter-xIFxmOuf.js → SelectFilter-DWRvb1Yl.js} +1 -1
  23. package/dist/TeamMemberList-C_4f5Djs.js +2082 -0
  24. package/dist/TimesheetList-B3Yx8cwt.js +408 -0
  25. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-fDOF4GYa.js → TimesheetList.vue_vue_type_style_index_0_scoped_ffd7f807_lang-Co2GtU1N.js} +7 -7
  26. package/dist/{app-DJOt_dse.js → app-BA3UHSk0.js} +7680 -3886
  27. package/dist/app.js +3 -3
  28. package/dist/{approval-code-D3J-F40I.js → approval-code-BR4FD3sx.js} +1 -1
  29. package/dist/{dayjs.min-YpmHqmB1.js → dayjs.min-JyaQ6PUU.js} +34 -34
  30. package/dist/employee-n31b7QEp.js +237 -0
  31. package/dist/{grant-user-kU9gjiVw.js → grant-user-DKUZdzrY.js} +1 -1
  32. package/dist/{iteration-RLqokZ_t.js → index-CkC2sfPK.js} +573 -558
  33. package/dist/{lodash-C6YpC6VN.js → lodash-BJMVlo9i.js} +1 -1
  34. package/dist/member-grant-B1V9g0Sb.js +54 -0
  35. package/dist/restaurant-BbSg6yOm.js +49 -0
  36. package/dist/role-iTqgtFqf.js +91 -0
  37. package/dist/rule-BJhti6BZ.js +845 -0
  38. package/dist/src/api/my-pos-profile/index.d.ts +3 -0
  39. package/dist/src/api/sso-provider/index.d.ts +5 -0
  40. package/dist/src/api/staff-invite/index.d.ts +16 -0
  41. package/dist/src/components/CollapsibleWrapper.vue.d.ts +11 -3
  42. package/dist/src/components/form/SegmentedTabs.vue.d.ts +23 -0
  43. package/dist/src/composables/useMenuAccess.d.ts +56 -0
  44. package/dist/src/composables/useSsoProviders.d.ts +19 -0
  45. package/dist/src/composables/useStaffInviteProviders.d.ts +8 -0
  46. package/dist/src/helpers/employee-merge.d.ts +33 -0
  47. package/dist/src/helpers/iteration.d.ts +9 -2
  48. package/dist/src/helpers/member-grant.d.ts +36 -0
  49. package/dist/src/helpers/my-pos-profile.d.ts +37 -0
  50. package/dist/src/helpers/permission-set.d.ts +1 -102
  51. package/dist/src/helpers/pos-assignment-rows.d.ts +28 -0
  52. package/dist/src/helpers/restaurant-lookup.d.ts +19 -0
  53. package/dist/src/helpers/role-merge.d.ts +11 -0
  54. package/dist/src/helpers/rule.d.ts +2 -2
  55. package/dist/src/helpers/staff-invite.d.ts +54 -0
  56. package/dist/src/helpers/string.d.ts +10 -1
  57. package/dist/src/router/menu-access-guard.d.ts +17 -0
  58. package/dist/src/router/shared.d.ts +3 -1
  59. package/dist/src/stores/restaurant.d.ts +7 -7
  60. package/dist/src/stores/team.d.ts +30 -0
  61. package/dist/src/types/my-pos-profile.d.ts +24 -0
  62. package/dist/src/types/sso-provider.d.ts +10 -0
  63. package/dist/src/types/staff-invite.d.ts +100 -0
  64. package/dist/src/types/team.d.ts +17 -1
  65. package/dist/src/views/audit-log/locales/index.d.ts +12 -0
  66. package/dist/src/views/hr/locales/index.d.ts +20 -0
  67. package/dist/src/views/hr/role/RoleForm.vue.d.ts +29 -2
  68. package/dist/src/views/hr/timesheet/timesheet-view.d.ts +29 -0
  69. package/dist/src/views/my-pos-profile/MyPosProfile.vue.d.ts +2 -0
  70. package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +4 -0
  71. package/dist/src/views/my-pos-profile/locales/index.d.ts +236 -0
  72. package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +1 -1
  73. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1 -1
  74. package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +1 -1
  75. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +1 -1
  76. package/dist/src/views/team/components/BasePermission.vue.d.ts +11 -0
  77. package/dist/src/views/team/components/ConditionPermission.vue.d.ts +11 -0
  78. package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +51 -0
  79. package/dist/src/views/team/{member/MemberInfo.vue.d.ts → components/MemberStatusBadge.vue.d.ts} +2 -2
  80. package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +21 -0
  81. package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +44 -0
  82. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +11 -0
  83. package/dist/src/views/team/locales/index.d.ts +716 -0
  84. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +48 -3
  85. package/dist/src/views/team/member/ExistingMemberNotice.vue.d.ts +11 -0
  86. package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +35 -0
  87. package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +19 -0
  88. package/dist/src/views/team/member/TeamMemberList.vue.d.ts +1 -0
  89. package/dist/string-DZQ1uNjn.js +22 -0
  90. package/dist/style.css +1 -1
  91. package/dist/tsconfig.app.tsbuildinfo +1 -1
  92. package/dist/{useAppStore-HpBmohxh.js → useAppStore-DiGaOhje.js} +1 -1
  93. package/dist/{useLoading-WAX5d520.js → useLoading-DOcoObCD.js} +1 -1
  94. package/dist/{useReportPermissions-C2eS3P4D.js → useReportPermissions-c9KGuXQq.js} +22 -22
  95. package/dist/useSsoProviders-CkhHtzRQ.js +41 -0
  96. package/package.json +1 -1
  97. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DNA8eHc4.js +0 -438
  98. package/dist/EmployeeList-BXO4vI9g.js +0 -776
  99. package/dist/FormItem.vue_vue_type_script_setup_true_lang-D69N78Sp.js +0 -45
  100. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
  101. package/dist/Main-DNViVR_m.js +0 -96
  102. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +0 -243
  103. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bu7YDHSf.js +0 -4181
  104. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-e6wGaXo3.js +0 -35
  105. package/dist/RoleList-Dx7Bstb_.js +0 -740
  106. package/dist/TeamMemberList-Dro66DME.js +0 -1150
  107. package/dist/TimesheetList-DO3uT60w.js +0 -402
  108. package/dist/employee-DfoS6h1_.js +0 -209
  109. package/dist/restaurant-D30tjUi3.js +0 -2685
  110. package/dist/role-DzH4jGCM.js +0 -91
  111. package/dist/rule-8KZ8d8qL.js +0 -780
  112. package/dist/string-VNuQNweN.js +0 -15
@@ -2,19 +2,19 @@ import { reactive as Xe, watch as Ct, computed as L, ref as Y, onUnmounted as To
2
2
  import { useRouter as Ma, onBeforeRouteLeave as Qs } from "vue-router";
3
3
  import { useSnackbar as Dn, SnackbarPosition as jo, components as Zs } from "@feedmepos/ui-library";
4
4
  import { useCoreStore as Oo, useI18n as me } from "@feedmepos/mf-common";
5
- import { d as Ln, p as Dt, w as Ta, o as Nt, i as $n, c as _s, a as Oa, P as rn, R as In, b as Me, s as Et, e as on, f as el, h as tl, g as Aa, j as Ra, r as en, k as zt, l as so, m as La, n as nl, q as It, S as ol, t as qn, u as al, v as fo, x as kt, y as qo, z as mn, A as Qn, U as Ia, C as sl, W as Ge, B as Hn, D as ll, E as il, F as pn, G as Ao, H as an, I as qe, J as Cn, K as Ha, L as Ut, M as Lt, N as lo, O as io, Q as Yo, T as Yn, V as rl, X as yo, Y as dl, Z as Gn, _ as bo, $ as ro, a0 as ko, a1 as Na, a2 as Ko, a3 as Go, a4 as Sn, a5 as Jo, a6 as Xo, a7 as Fa, a8 as wo, a9 as ul, aa as Ba, ab as cl, ac as vn, ad as hl, ae as ml, af as vl, ag as pl, ah as Ua, ai as Jn, aj as gl, ak as _t, al as Xn, am as Qo, an as Ro, ao as Lo, ap as $o, aq as fl, ar as Io, as as yl, at as bl, au as kl, av as re, aw as wl, ax as wt, ay as Pn, az as Wa, aA as $l, aB as Sl, aC as Zo } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-DvcZjDJA.js";
6
- import { R as Va, a as Un } from "./app-DJOt_dse.js";
7
- import "./iteration-RLqokZ_t.js";
8
- import { t as So, j as xo } from "./rule-8KZ8d8qL.js";
9
- import { E as ja, u as xl } from "./employee-DfoS6h1_.js";
10
- import { c as Cl } from "./object-Dwyg2LgX.js";
11
- import { u as El } from "./useDiscardConfirm-CzZSPyvh.js";
12
- import { u as Co } from "./role-DzH4jGCM.js";
13
- import { u as Dl, A as Pl } from "./restaurant-D30tjUi3.js";
14
- import { u as zl } from "./useLoading-WAX5d520.js";
5
+ import { d as Ln, p as Dt, w as Ta, o as Nt, i as $n, c as _s, a as Oa, P as rn, R as In, b as Me, s as Et, e as on, f as el, h as tl, g as Aa, j as Ra, r as en, k as zt, l as so, m as La, n as nl, q as It, S as ol, t as qn, u as al, v as fo, x as kt, y as qo, z as mn, A as Qn, U as Ia, C as sl, W as Ge, B as Hn, D as ll, E as il, F as pn, G as Ao, H as an, I as qe, J as Cn, K as Ha, L as Ut, M as Lt, N as lo, O as io, Q as Yo, T as Yn, V as rl, X as yo, Y as dl, Z as Gn, _ as bo, $ as ro, a0 as ko, a1 as Na, a2 as Ko, a3 as Go, a4 as Sn, a5 as Jo, a6 as Xo, a7 as Fa, a8 as wo, a9 as ul, aa as Ba, ab as cl, ac as vn, ad as hl, ae as ml, af as vl, ag as pl, ah as Ua, ai as Jn, aj as gl, ak as _t, al as Xn, am as Qo, an as Ro, ao as Lo, ap as $o, aq as fl, ar as Io, as as yl, at as bl, au as kl, av as re, aw as wl, ax as wt, ay as Pn, az as Wa, aA as $l, aB as Sl, aC as Zo } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-C6M76KUA.js";
6
+ import { R as Va, s as xl, a as Un } from "./app-BA3UHSk0.js";
7
+ import "./index-CkC2sfPK.js";
8
+ import { t as So, b as xo } from "./rule-BJhti6BZ.js";
9
+ import { E as ja, u as Cl } from "./employee-n31b7QEp.js";
10
+ import { c as El } from "./object-Dwyg2LgX.js";
11
+ import { u as Dl } from "./useDiscardConfirm-CzZSPyvh.js";
12
+ import { u as Co } from "./role-iTqgtFqf.js";
13
+ import { u as Pl } from "./restaurant-BbSg6yOm.js";
14
+ import { u as zl } from "./useLoading-DOcoObCD.js";
15
15
  import { u as Ml } from "./useMessage-_ywT_N9X.js";
16
16
  import { useAppStore as Tl } from "@feedmepos/mf-remy-panel";
17
- import { u as Ol, _ as Al, a as Rl } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B8dH021B.js";
17
+ import { u as Ol, _ as Al, a as Rl } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-yJwTtFyF.js";
18
18
  function Ll(e) {
19
19
  return {
20
20
  employees: Oa(e),
@@ -438,7 +438,7 @@ ${N.role || n("scheduling.common.anyPosition")}${Te ? ` · ${n("scheduling.statu
438
438
  id: _.id,
439
439
  name: _.name,
440
440
  weekHours: _.weekHours,
441
- shifts: Cl(_.shifts)
441
+ shifts: El(_.shifts)
442
442
  }));
443
443
  }
444
444
  function xe(_, ne = {}) {
@@ -2486,7 +2486,7 @@ function xi(e, n = {}) {
2486
2486
  return s.value === null ? !0 : s.value ? s.value.includes(P._id) : P.isUsable;
2487
2487
  }
2488
2488
  function k(P) {
2489
- const O = ho(P), h = Dl().restaurants.value.find((f) => f._id === O);
2489
+ const O = ho(P), h = Pl().restaurants.value.find((f) => f._id === O);
2490
2490
  return h != null && h.managable ? l.value === null || l.value === void 0 ? !0 : l.value.includes(O ?? "") : !1;
2491
2491
  }
2492
2492
  return {
@@ -2590,7 +2590,7 @@ function Ci(e) {
2590
2590
  const w = [...c].map((D) => ({
2591
2591
  restaurantId: D,
2592
2592
  roleId: v.get(D) ?? ""
2593
- })), z = e.form.passcode.join(""), E = xl();
2593
+ })), z = e.form.passcode.join(""), E = Cl();
2594
2594
  let b;
2595
2595
  return e.form.masterUser ? b = await E.createMasterEmployee({
2596
2596
  user: { name: r, passcode: z, code: e.form.masterCode.trim() },
@@ -2774,7 +2774,7 @@ function Ei(e, n = {}) {
2774
2774
  function H() {
2775
2775
  l.value = !1, k.value = !1, A.value = !1, C.value = null, x.closeSelectExisting(), v.value = null;
2776
2776
  }
2777
- const B = El(h, H, { zIndex: 1e3 });
2777
+ const B = Dl(h, H, { zIndex: 1e3 });
2778
2778
  function Q(ae) {
2779
2779
  C.value = null, ae === "new" && u.value === "existing" && (Object.assign(d, Tn()), f.value && (d.locations = [f.value]), R.value = null, T.value = null, b.value = [], D.value = [], P.value = O()), u.value = ae;
2780
2780
  }
@@ -3381,7 +3381,7 @@ function Hi(e) {
3381
3381
  return e.startsWith(ia) ? { kind: "reject", text: e.slice(ia.length) } : e.startsWith(ra) ? { kind: "ai", text: e.slice(ra.length) } : { kind: "plain", text: e };
3382
3382
  }
3383
3383
  function Za(e) {
3384
- return e instanceof Pl && e.status > 0 && e.status < 500;
3384
+ return e instanceof xl && e.status > 0 && e.status < 500;
3385
3385
  }
3386
3386
  function Ni(e, n) {
3387
3387
  return Za(e) ? e.message : n("scheduling.autoSchedule.errors.generateFailed");
@@ -2,9 +2,9 @@ import { defineComponent as S, ref as x, onMounted as N, computed as z, createEl
2
2
  import { useRouter as B } from "vue-router";
3
3
  import { useSnackbar as I } from "@feedmepos/ui-library";
4
4
  import { useI18n as O } from "@feedmepos/mf-common";
5
- import { R as L, a as T } from "./app-DJOt_dse.js";
6
- import { aA as U, aB as H, ai as R, av as h, ax as j } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-DvcZjDJA.js";
7
- import { u as K, a as q, _ as Q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B8dH021B.js";
5
+ import { R as L, a as T } from "./app-BA3UHSk0.js";
6
+ import { aA as U, aB as H, ai as R, av as h, ax as j } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-C6M76KUA.js";
7
+ import { u as K, a as q, _ as Q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-yJwTtFyF.js";
8
8
  const W = { class: "main" }, G = {
9
9
  id: "viewPositions",
10
10
  class: "view"
@@ -1,7 +1,7 @@
1
1
  import { ref as $, computed as v, defineComponent as X, watch as Y, nextTick as Z, resolveComponent as F, createElementBlock as d, openBlock as c, createElementVNode as A, createVNode as b, renderSlot as z, withCtx as O, createCommentVNode as x, normalizeStyle as ee, Fragment as S, createBlock as T, unref as k, renderList as R, toDisplayString as N, normalizeClass as le, withModifiers as te } from "vue";
2
2
  import "@feedmepos/ui-library";
3
3
  /* empty css */
4
- import { a as ae } from "./app-DJOt_dse.js";
4
+ import { a as ae } from "./app-BA3UHSk0.js";
5
5
  function ue(r, u, _ = r) {
6
6
  const t = $(!0), C = v(() => {
7
7
  if (!t.value && !u.value)