@feedmepos/mf-hrm-portal 2.3.2 → 2.3.3

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 (33) hide show
  1. package/dist/{ApprovalCodeList-C9r8CGNH.js → ApprovalCodeList-BvS5dgU3.js} +4 -4
  2. package/dist/{AuditLogList-Cu-KcQKa.js → AuditLogList-CpX_suVp.js} +4 -4
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BQ-uIsTN.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BT4DaSaO.js} +2 -2
  4. package/dist/{EmployeeList-BaFqZnFM.js → EmployeeList-CVsnidNV.js} +6 -6
  5. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-Be1OU1_r.js → FormItem.vue_vue_type_script_setup_true_lang-h8toO2k-.js} +1 -1
  6. package/dist/{GrantUserList-Bjhx60M7.js → GrantUserList-Dyh5kllB.js} +5 -5
  7. package/dist/{Main-CJQpjOgY.js → Main-CRU4YEdj.js} +5 -5
  8. package/dist/{Main-LpfQqR_u.js → Main-OmCnufx6.js} +9 -9
  9. package/dist/{Main-DHiTgiDR.js → Main-aoY6s0QA.js} +2 -2
  10. package/dist/{PermissionSetList-C0OZ_dvE.js → PermissionSetList-B7B3vnRf.js} +5 -5
  11. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BVOwDcXo.js +4167 -0
  12. package/dist/{RoleList-DpyW5XLs.js → RoleList-B7jLSn2l.js} +7 -7
  13. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CqP-Dn1X.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BG5gE0iX.js} +1 -1
  14. package/dist/{ScheduleGeneralPage-BNHi5jGf.js → ScheduleGeneralPage-DK2hKCWE.js} +2 -2
  15. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-B609MZoP.js → ScheduleModal.vue_vue_type_script_setup_true_lang-mMjDR4Nz.js} +2 -2
  16. package/dist/{SchedulePage-CrP5_m3p.js → SchedulePage-Dn4joe9m.js} +7 -7
  17. package/dist/{SchedulePositionPage-ei_NKAUw.js → SchedulePositionPage-D7u4QBug.js} +3 -3
  18. package/dist/{SelectFilter-CEYQ-ViE.js → SelectFilter-BbTj7kMh.js} +1 -1
  19. package/dist/{TeamMemberList-rPiKKu2b.js → TeamMemberList-C0nZBhqp.js} +7 -7
  20. package/dist/{TimesheetList-B1L4WkNh.js → TimesheetList-B6TIgZba.js} +6 -6
  21. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-By6YR-k2.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CF1cWXsG.js} +2 -2
  22. package/dist/{app-BzlH-2cN.js → app-Cfzysb_Z.js} +199 -192
  23. package/dist/app.js +1 -1
  24. package/dist/{dayjs.min-D6T4JzVv.js → dayjs.min-NoTESZyy.js} +1 -1
  25. package/dist/{employee-Bw7kRokg.js → employee-BzUt7_wz.js} +3 -3
  26. package/dist/{iteration-Dz0e08VH.js → iteration-DmbHO_Rl.js} +1 -1
  27. package/dist/{lodash-DGG_-VgI.js → lodash-DqvpfdBt.js} +1 -1
  28. package/dist/{role-CiRbkZSm.js → role-Crd3XL59.js} +1 -1
  29. package/dist/{rule-DMgkHpva.js → rule-B1ck-XG6.js} +36 -36
  30. package/dist/tsconfig.app.tsbuildinfo +1 -1
  31. package/dist/{useReportPermissions-CCkCAaGO.js → useReportPermissions-DmMlLiQP.js} +3 -3
  32. package/package.json +2 -2
  33. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-T7dkd5Uv.js +0 -4167
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as e, i as r, r as o } from "./app-BzlH-2cN.js";
1
+ import { l as e, j as r, r as o } from "./app-Cfzysb_Z.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g as Q, f as K } from "./app-BzlH-2cN.js";
1
+ import { h as Q, g as K } from "./app-Cfzysb_Z.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, k) {
@@ -1,10 +1,10 @@
1
- import { d as g } from "./dayjs.min-D6T4JzVv.js";
1
+ import { d as g } from "./dayjs.min-NoTESZyy.js";
2
2
  import { defineStore as $, storeToRefs as h } from "pinia";
3
3
  import { ref as y } from "vue";
4
- import { s as E } from "./iteration-Dz0e08VH.js";
4
+ import { s as E } from "./iteration-DmbHO_Rl.js";
5
5
  import { b as l, g as m, u as I } from "./restaurant-DJBQY9N5.js";
6
6
  import { i as v } from "./utils-BZkjJbju.js";
7
- import { u as P } from "./role-CiRbkZSm.js";
7
+ import { u as P } from "./role-Crd3XL59.js";
8
8
  const o = {
9
9
  async readEmployees() {
10
10
  return m(await l().get("/pos-users"));
@@ -1,4 +1,4 @@
1
- import { f as B } from "./app-BzlH-2cN.js";
1
+ import { g as B } from "./app-Cfzysb_Z.js";
2
2
  var ma = {}, Zt = {}, l = {}, ji = {}, Ei = {}, Ii = {}, Dn = {};
3
3
  (function(e) {
4
4
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getParsedType = e.ZodParsedType = e.util = void 0;
@@ -1,4 +1,4 @@
1
- import { f as jt } from "./app-BzlH-2cN.js";
1
+ import { g as jt } from "./app-Cfzysb_Z.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -1,7 +1,7 @@
1
1
  import { defineStore as x, storeToRefs as b } from "pinia";
2
2
  import { ref as w } from "vue";
3
3
  import { useCoreStore as B } from "@feedmepos/mf-common";
4
- import { s as v } from "./iteration-Dz0e08VH.js";
4
+ import { s as v } from "./iteration-DmbHO_Rl.js";
5
5
  import { g as f, b as p, u as I } from "./restaurant-DJBQY9N5.js";
6
6
  const R = {
7
7
  async readRoles() {
@@ -1,22 +1,22 @@
1
- import { s as W, c as q, e as y } from "./iteration-Dz0e08VH.js";
2
- import { h as A, c as V, d as _, v as F, n as S, O as ee, D as M } from "./app-BzlH-2cN.js";
1
+ import { s as W, c as q, e as y } from "./iteration-DmbHO_Rl.js";
2
+ import { i as A, d as V, e as _, c as F, n as S, O as ee, D as M } from "./app-Cfzysb_Z.js";
3
3
  import { s as se } from "./utils-BZkjJbju.js";
4
- import { g, b as v, q as x, u as te } from "./restaurant-DJBQY9N5.js";
4
+ import { g, b, q as x, u as te } from "./restaurant-DJBQY9N5.js";
5
5
  import { defineStore as z, storeToRefs as K } from "pinia";
6
6
  import { ref as h, computed as T } from "vue";
7
7
  import { useCoreStore as X } from "@feedmepos/mf-common";
8
8
  const E = "/permission-sets", N = {
9
9
  async read() {
10
- return g(await v().get(E));
10
+ return g(await b().get(E));
11
11
  },
12
12
  async create(e) {
13
- return g(await v().post(E, e));
13
+ return g(await b().post(E, e));
14
14
  },
15
15
  async update(e, s) {
16
- return g(await v().put(`${E}/${e}`, s));
16
+ return g(await b().put(`${E}/${e}`, s));
17
17
  },
18
18
  async delete(e) {
19
- return g(await v().delete(`${E}/${e}`));
19
+ return g(await b().delete(`${E}/${e}`));
20
20
  }
21
21
  }, ne = z("hrm-permission-set", () => {
22
22
  const { currentBusiness: e } = X(), s = h([]), r = h(!1), n = h(null);
@@ -140,7 +140,7 @@ function G(e, s) {
140
140
  }));
141
141
  }
142
142
  for (const m of c.permissionSets ?? []) {
143
- const f = A(m), p = B(f, ["manage"]), b = {
143
+ const f = A(m), p = B(f, ["manage"]), v = {
144
144
  subject: f,
145
145
  actions: ["manage"],
146
146
  source: {
@@ -150,7 +150,7 @@ function G(e, s) {
150
150
  trace: d
151
151
  }
152
152
  };
153
- n.has(p) || (n.add(p), r.push(b)), a.push(b);
153
+ n.has(p) || (n.add(p), r.push(v)), a.push(v);
154
154
  }
155
155
  }
156
156
  return [...r.filter((o) => !o.inverted), ...r.filter((o) => o.inverted)];
@@ -227,10 +227,10 @@ function _e(e, s) {
227
227
  continue;
228
228
  }
229
229
  const m = Object.keys(l)[0], f = l[m].$in.filter(
230
- (b) => !d[m].$in.includes(b)
230
+ (v) => !d[m].$in.includes(v)
231
231
  );
232
232
  f.length > 0 && t.push(r(u, f)), d[m].$in.filter(
233
- (b) => !l[m].$in.includes(b)
233
+ (v) => !l[m].$in.includes(v)
234
234
  ).length > 0 && t.push(c);
235
235
  } else if (!u.conditions && c.conditions)
236
236
  t.push(c);
@@ -239,7 +239,7 @@ function _e(e, s) {
239
239
  else if (!u.conditions && !c.conditions) {
240
240
  const l = new Set(u.actions), d = new Set(c.actions), m = c.actions.some((p) => !l.has(p)), f = u.actions.filter((p) => !d.has(p));
241
241
  if (m) {
242
- const p = c.actions.filter((b) => !l.has(b));
242
+ const p = c.actions.filter((v) => !l.has(v));
243
243
  t.push({
244
244
  ...c,
245
245
  actions: p
@@ -385,26 +385,26 @@ function de(e, s) {
385
385
  }
386
386
  const P = "/permission-assignments", I = {
387
387
  async readAll() {
388
- return g(await v().get(P));
388
+ return g(await b().get(P));
389
389
  },
390
390
  async readByUserId(e) {
391
- return g(await v().get(`${P}/user/${e}`));
391
+ return g(await b().get(`${P}/user/${e}`));
392
392
  },
393
393
  async readById(e) {
394
- return g(await v().get(`${P}/${e}`));
394
+ return g(await b().get(`${P}/${e}`));
395
395
  },
396
396
  async create(e) {
397
- return g(await v().post(P, e));
397
+ return g(await b().post(P, e));
398
398
  },
399
399
  async update(e, s) {
400
- return g(await v().put(`${P}/${e}`, s));
400
+ return g(await b().put(`${P}/${e}`, s));
401
401
  },
402
402
  async delete(e) {
403
- return g(await v().delete(`${P}/${e}`));
403
+ return g(await b().delete(`${P}/${e}`));
404
404
  },
405
405
  async addReportManagePermission(e, s) {
406
406
  return g(
407
- await v().post("/my-permissions/report-manage", { permissionKey: e, label: s })
407
+ await b().post("/my-permissions/report-manage", { permissionKey: e, label: s })
408
408
  );
409
409
  }
410
410
  }, me = z("hrm-permission-assignment", () => {
@@ -515,7 +515,7 @@ function O(e) {
515
515
  (t == null ? void 0 : t.permissionSetIds) ?? [],
516
516
  s.permissionSets.value
517
517
  ), o = Q(a).map(
518
- ({ setNames: p, ...b }) => b
518
+ ({ setNames: p, ...v }) => v
519
519
  ), u = t == null ? void 0 : t.customPermissions, c = u ?? e.permissions.map((p) => ({
520
520
  ...p,
521
521
  subject: A(p.subject)
@@ -531,8 +531,8 @@ function O(e) {
531
531
  email: e.email,
532
532
  restaurants: W(
533
533
  f.map((p) => {
534
- var b;
535
- return ((b = n.value.find((Z) => Z._id === p)) == null ? void 0 : b.profile.name) ?? "";
534
+ var v;
535
+ return ((v = n.value.find((Z) => Z._id === p)) == null ? void 0 : v.profile.name) ?? "";
536
536
  })
537
537
  ),
538
538
  managableRestaurantIds: m,
@@ -540,18 +540,18 @@ function O(e) {
540
540
  permissions: l
541
541
  };
542
542
  }
543
- const ve = Object.freeze(
543
+ const be = Object.freeze(
544
544
  Object.values(ee)
545
545
  ), Ce = {
546
546
  async readTeamMembers() {
547
547
  return g(
548
- await v().get("/portal-users")
548
+ await b().get("/portal-users")
549
549
  ).map(O);
550
550
  },
551
551
  async readTeamMembersPage(e) {
552
552
  var r, n, i;
553
553
  const s = g(
554
- await v().get("/portal-users/paged", {
554
+ await b().get("/portal-users/paged", {
555
555
  params: {
556
556
  limit: e.limit,
557
557
  offset: e.offset,
@@ -569,28 +569,28 @@ const ve = Object.freeze(
569
569
  },
570
570
  async readTeamMember(e) {
571
571
  return O(
572
- g(await v().get(`/portal-users/${e}`))
572
+ g(await b().get(`/portal-users/${e}`))
573
573
  );
574
574
  },
575
575
  async createTeamMember(e) {
576
576
  return O(
577
- g(await v().post("/portal-users", e))
577
+ g(await b().post("/portal-users", e))
578
578
  );
579
579
  },
580
580
  async updateTeamMember(e, s) {
581
581
  return O(
582
- g(await v().put(`/portal-users/${e}`, s))
582
+ g(await b().put(`/portal-users/${e}`, s))
583
583
  );
584
584
  },
585
585
  async deleteTeamMember(e) {
586
- return g(await v().delete(`/portal-users/${e}`));
586
+ return g(await b().delete(`/portal-users/${e}`));
587
587
  },
588
588
  async readTeamMemberPosUserIds() {
589
- return g(await v().get("/portal-users")).map((s) => s.posUserId);
589
+ return g(await b().get("/portal-users")).map((s) => s.posUserId);
590
590
  },
591
591
  async generateMasterUserPasscode(e) {
592
592
  return `${g(
593
- await v().post("/portal-users/generate-passcode", {
593
+ await b().post("/portal-users/generate-passcode", {
594
594
  restaurantIds: e.restaurantIds,
595
595
  excludePosUserId: e.excludePosUserId
596
596
  })
@@ -674,12 +674,12 @@ function Y(e) {
674
674
  return s ? s.conditions ? JSON.parse(s.conditions).restaurantId.$in : null : [];
675
675
  }
676
676
  function Be(e, s) {
677
- return s.isOwner ? { restaurantIds: null, roleIds: null } : { restaurantIds: Y(e), roleIds: be(e) };
677
+ return s.isOwner ? { restaurantIds: null, roleIds: null } : { restaurantIds: Y(e), roleIds: ve(e) };
678
678
  }
679
679
  function Me(e) {
680
680
  return (e == null ? void 0 : e.some((s) => s.subject === "all")) ?? !1;
681
681
  }
682
- function be(e) {
682
+ function ve(e) {
683
683
  const s = e.find((r) => r.subject === _.Subject.Business.role);
684
684
  return s ? s.conditions ? JSON.parse(s.conditions).roleId.$in : null : [];
685
685
  }
@@ -740,7 +740,7 @@ function xe(e, s) {
740
740
  function Se(e, s = []) {
741
741
  return W(
742
742
  e.reduce((r, n) => {
743
- const i = ve.find(
743
+ const i = be.find(
744
744
  (t) => t.subject === n.subject && n.actions.includes("manage")
745
745
  ) || s.find((t) => t.subject === n.subject);
746
746
  if (i) {
@@ -770,7 +770,7 @@ export {
770
770
  Oe as m,
771
771
  Ne as n,
772
772
  Ue as o,
773
- ve as p,
773
+ be as p,
774
774
  fe as q,
775
775
  w as r,
776
776
  xe as s,
@@ -779,5 +779,5 @@ export {
779
779
  Se as v,
780
780
  Ae as w,
781
781
  Y as x,
782
- be as y
782
+ ve as y
783
783
  };