@feedmepos/mf-hrm-portal 2.3.2-dev.16 → 2.3.2-dev.17

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 (108) hide show
  1. package/dist/{ApprovalCodeList-B3jNdAYD.js → ApprovalCodeList-Bo8IbNxV.js} +15 -14
  2. package/dist/{AuditLogList-khYZrM4O.js → AuditLogList-C7CjPILA.js} +833 -823
  3. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C-4BaMN-.js +438 -0
  4. package/dist/EmployeeList-BOP-gaTp.js +776 -0
  5. package/dist/FormItem.vue_vue_type_script_setup_true_lang-BEOR-8QD.js +45 -0
  6. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
  7. package/dist/{GrantUserList-Cyde_ZvG.js → GrantUserList-CXWGr3Wo.js} +16 -15
  8. package/dist/Main-BrP1frfO.js +96 -0
  9. package/dist/{Main-DunDfrfn.js → Main-DeuWov9n.js} +5 -5
  10. package/dist/{Main-D7L7IaSi.js → Main-bru10M5U.js} +2097 -2102
  11. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
  12. package/dist/{PermissionSetList-CTya3yQD.js → PermissionSetList--xt0piQz.js} +137 -136
  13. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-D5nvRsW3.js +4167 -0
  14. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DiNDrCy0.js +35 -0
  15. package/dist/RoleList-BEE-8EQK.js +740 -0
  16. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DFIvDycw.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Cqo5kHcF.js} +1 -1
  17. package/dist/{ScheduleGeneralPage-SFsD-TKY.js → ScheduleGeneralPage-DxhgBLix.js} +2 -2
  18. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-YeoRA-WZ.js → ScheduleModal.vue_vue_type_script_setup_true_lang-DGPwmNQb.js} +186 -187
  19. package/dist/{SchedulePage-htF58vxp.js → SchedulePage-oBdEvGWN.js} +20 -20
  20. package/dist/{SchedulePositionPage-BVEpQvOB.js → SchedulePositionPage-BZps-kKs.js} +3 -3
  21. package/dist/{SelectFilter-C36mwNN9.js → SelectFilter-Bs_LCk3L.js} +1 -1
  22. package/dist/TeamMemberList-DCgNcs4P.js +1154 -0
  23. package/dist/{TimesheetList-CNixrC8s.js → TimesheetList-BW6iCigo.js} +9 -9
  24. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CYtX4RNX.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Dv66Af5C.js} +3 -3
  25. package/dist/{app-DwJPnksU.js → app-B8xnhtVI.js} +3702 -7565
  26. package/dist/app.js +3 -3
  27. package/dist/{approval-code-2b26Pgxl.js → approval-code-B0jU1bvk.js} +1 -1
  28. package/dist/{dayjs.min-cGJfyGlJ.js → dayjs.min-CdpSCqn1.js} +34 -34
  29. package/dist/{employee-CGDFUIei.js → employee-DlFGiUgI.js} +47 -48
  30. package/dist/{grant-user-3wYZeemh.js → grant-user-C3C6glCk.js} +1 -1
  31. package/dist/{iteration-CN3qkp7j.js → iteration-BM0iyDBd.js} +1 -1
  32. package/dist/{lodash-2kEG2kVJ.js → lodash-KK9U7NAy.js} +1 -1
  33. package/dist/restaurant-C7o2Yk6j.js +2688 -0
  34. package/dist/{role-DnK0aZXF.js → role-DYCorsOh.js} +20 -19
  35. package/dist/rule-BhGHZqKO.js +783 -0
  36. package/dist/src/components/CollapsibleWrapper.vue.d.ts +3 -11
  37. package/dist/src/helpers/permission-set.d.ts +102 -1
  38. package/dist/src/helpers/rule.d.ts +2 -2
  39. package/dist/src/helpers/string.d.ts +1 -10
  40. package/dist/src/router/shared.d.ts +1 -3
  41. package/dist/src/stores/restaurant.d.ts +7 -7
  42. package/dist/src/stores/team.d.ts +1 -31
  43. package/dist/src/types/team.d.ts +1 -17
  44. package/dist/src/views/audit-log/locales/index.d.ts +0 -12
  45. package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +1 -1
  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-D7B1Uzy9.js → useAppStore-C1lk2Q2j.js} +1 -1
  64. package/dist/{useLoading-Bfisabfg.js → useLoading-CXdGsnHm.js} +1 -1
  65. package/dist/useReportPermissions-D_I4rFVo.js +82 -0
  66. package/package.json +3 -3
  67. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-draQ4InF.js +0 -459
  68. package/dist/EmployeeList-Dnublgsa.js +0 -896
  69. package/dist/FormSection.vue_vue_type_script_setup_true_lang-BB43cRca.js +0 -90
  70. package/dist/Main-MWuJXveM.js +0 -101
  71. package/dist/MyPosProfile-GLy8uIjr.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-B819VW59.js +0 -4212
  74. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-MXPrxf7_.js +0 -1797
  75. package/dist/RoleForm.vue_vue_type_script_setup_true_lang-MEo4THC2.js +0 -547
  76. package/dist/RoleList-D7cBVxYw.js +0 -274
  77. package/dist/TeamMemberList-CQ_Q-kK_.js +0 -2082
  78. package/dist/member-grant-Tup6x9_U.js +0 -54
  79. package/dist/restaurant-BSeSCAtd.js +0 -49
  80. package/dist/rule-Di8SnWjQ.js +0 -839
  81. package/dist/src/api/my-pos-profile/index.d.ts +0 -3
  82. package/dist/src/api/sso-provider/index.d.ts +0 -5
  83. package/dist/src/api/staff-invite/index.d.ts +0 -16
  84. package/dist/src/components/form/SegmentedTabs.vue.d.ts +0 -23
  85. package/dist/src/composables/useMenuAccess.d.ts +0 -56
  86. package/dist/src/composables/useSsoProviders.d.ts +0 -19
  87. package/dist/src/composables/useStaffInviteProviders.d.ts +0 -8
  88. package/dist/src/composables/useTenant.d.ts +0 -11
  89. package/dist/src/helpers/member-grant.d.ts +0 -36
  90. package/dist/src/helpers/my-pos-profile.d.ts +0 -37
  91. package/dist/src/helpers/pos-assignment-rows.d.ts +0 -28
  92. package/dist/src/helpers/staff-invite.d.ts +0 -54
  93. package/dist/src/router/courtGuard.d.ts +0 -4
  94. package/dist/src/router/menu-access-guard.d.ts +0 -17
  95. package/dist/src/types/my-pos-profile.d.ts +0 -24
  96. package/dist/src/types/sso-provider.d.ts +0 -10
  97. package/dist/src/types/staff-invite.d.ts +0 -100
  98. package/dist/src/views/my-pos-profile/MyPosProfile.vue.d.ts +0 -2
  99. package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +0 -4
  100. package/dist/src/views/my-pos-profile/locales/index.d.ts +0 -236
  101. package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +0 -51
  102. package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -44
  103. package/dist/src/views/team/member/ExistingMemberNotice.vue.d.ts +0 -11
  104. package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +0 -35
  105. package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +0 -19
  106. package/dist/string-DZQ1uNjn.js +0 -22
  107. package/dist/useReportPermissions-BUmyfjFx.js +0 -80
  108. package/dist/useSsoProviders-CJQTq0Fk.js +0 -41
@@ -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-YeoRA-WZ.js";
6
- import { R as Va, s as xl, a as Un } from "./app-DwJPnksU.js";
7
- import "./iteration-CN3qkp7j.js";
8
- import { t as So, b as xo } from "./rule-Di8SnWjQ.js";
9
- import { E as ja, u as Cl } from "./employee-CGDFUIei.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-DnK0aZXF.js";
13
- import { u as Pl } from "./restaurant-BSeSCAtd.js";
14
- import { u as zl } from "./useLoading-Bfisabfg.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-DGPwmNQb.js";
6
+ import "./iteration-BM0iyDBd.js";
7
+ import { t as So, j as xo } from "./rule-BhGHZqKO.js";
8
+ import { E as Va, u as xl } from "./employee-DlFGiUgI.js";
9
+ import { c as Cl } from "./object-Dwyg2LgX.js";
10
+ import { R as ja, a as Un } from "./app-B8xnhtVI.js";
11
+ import { u as El } from "./useDiscardConfirm-CzZSPyvh.js";
12
+ import { u as Co } from "./role-DYCorsOh.js";
13
+ import { u as Dl, A as Pl } from "./restaurant-C7o2Yk6j.js";
14
+ import { u as zl } from "./useLoading-CXdGsnHm.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-DFIvDycw.js";
17
+ import { u as Ol, _ as Al, a as Rl } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Cqo5kHcF.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: El(_.shifts)
441
+ shifts: Cl(_.shifts)
442
442
  }));
443
443
  }
444
444
  function xe(_, ne = {}) {
@@ -2008,7 +2008,7 @@ function mi() {
2008
2008
  () => !Yn.value && o.value && !n.value
2009
2009
  );
2010
2010
  function c() {
2011
- e.push({ name: Va.SCHEDULE_POSITION });
2011
+ e.push({ name: ja.SCHEDULE_POSITION });
2012
2012
  }
2013
2013
  async function v() {
2014
2014
  var z, E;
@@ -2197,7 +2197,7 @@ function bi(e) {
2197
2197
  f.doc.posUserId,
2198
2198
  xo(f.permissions, { isOwner: f.doc.isOwner }).restaurantIds
2199
2199
  ])
2200
- ), h = await ja.readEmployeesPage({
2200
+ ), h = await Va.readEmployeesPage({
2201
2201
  limit: w,
2202
2202
  offset: ($ - 1) * w,
2203
2203
  search: C.trim() || void 0,
@@ -2416,7 +2416,7 @@ function xi(e, n = {}) {
2416
2416
  const O = await d.custom(
2417
2417
  () => {
2418
2418
  var h;
2419
- return ja.generateEmployeePasscode({
2419
+ return Va.generateEmployeePasscode({
2420
2420
  restaurantIds: P,
2421
2421
  excludePosUserId: (h = n.excludePosUserId) == null ? void 0 : h.value
2422
2422
  });
@@ -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 = Pl().restaurants.value.find((f) => f._id === O);
2489
+ const O = ho(P), h = Dl().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 = Cl();
2593
+ })), z = e.form.passcode.join(""), E = xl();
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 = Dl(h, H, { zIndex: 1e3 });
2777
+ const B = El(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 xl && e.status > 0 && e.status < 500;
3384
+ return e instanceof Pl && 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");
@@ -10221,7 +10221,7 @@ const Kh = { class: "topbar" }, Gh = { class: "page-title" }, Jh = { class: "pag
10221
10221
  type: "button",
10222
10222
  title: a(l)("scheduling.topbar.settings"),
10223
10223
  "aria-label": a(l)("scheduling.topbar.settings"),
10224
- onClick: u[14] || (u[14] = (d) => a(s).push({ name: a(Va).SCHEDULE_GENERAL }))
10224
+ onClick: u[14] || (u[14] = (d) => a(s).push({ name: a(ja).SCHEDULE_GENERAL }))
10225
10225
  }, {
10226
10226
  default: se(() => [...u[23] || (u[23] = [
10227
10227
  t("svg", {
@@ -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-DwJPnksU.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-YeoRA-WZ.js";
7
- import { u as K, a as q, _ as Q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DFIvDycw.js";
5
+ import { R as L, a as T } from "./app-B8xnhtVI.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-DGPwmNQb.js";
7
+ import { u as K, a as q, _ as Q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Cqo5kHcF.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-DwJPnksU.js";
4
+ import { a as ae } from "./app-B8xnhtVI.js";
5
5
  function ue(r, u, _ = r) {
6
6
  const t = $(!0), C = v(() => {
7
7
  if (!t.value && !u.value)