@feedmepos/mf-hrm-portal 2.3.3 → 2.4.0

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 (46) hide show
  1. package/dist/{ApprovalCodeList-BvS5dgU3.js → ApprovalCodeList-D62tXKEd.js} +7 -7
  2. package/dist/{AuditLogList-CpX_suVp.js → AuditLogList-DQOdhFJm.js} +825 -835
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BT4DaSaO.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BDT1AfXa.js} +2 -2
  4. package/dist/{EmployeeList-CVsnidNV.js → EmployeeList-Bd211chl.js} +8 -8
  5. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-h8toO2k-.js → FormItem.vue_vue_type_script_setup_true_lang-CUBQnkkY.js} +1 -1
  6. package/dist/{GrantUserList-Dyh5kllB.js → GrantUserList-DaUUILOT.js} +8 -8
  7. package/dist/{Main-aoY6s0QA.js → Main-B95BdgQd.js} +5 -5
  8. package/dist/{Main-CRU4YEdj.js → Main-CvGjvEQL.js} +28 -28
  9. package/dist/{Main-OmCnufx6.js → Main-Dh3E2cEf.js} +11 -11
  10. package/dist/{PermissionSetList-B7B3vnRf.js → PermissionSetList-BIzlo_EV.js} +90 -90
  11. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BYYiW77c.js +4181 -0
  12. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-EwU7gHP7.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CSYNrTGr.js} +1 -1
  13. package/dist/{RoleList-B7jLSn2l.js → RoleList-QJV3cGvV.js} +33 -33
  14. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BG5gE0iX.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DsKfRa5Z.js} +1 -1
  15. package/dist/{ScheduleGeneralPage-DK2hKCWE.js → ScheduleGeneralPage-D6NPsdrU.js} +2 -2
  16. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-mMjDR4Nz.js → ScheduleModal.vue_vue_type_script_setup_true_lang-kYGNELLb.js} +3 -3
  17. package/dist/{SchedulePage-Dn4joe9m.js → SchedulePage-CO_ZP2QD.js} +13 -13
  18. package/dist/{SchedulePositionPage-D7u4QBug.js → SchedulePositionPage-DFjWfRwI.js} +3 -3
  19. package/dist/{SelectFilter-BbTj7kMh.js → SelectFilter-B94Z_Fat.js} +1 -1
  20. package/dist/TeamMemberList-BbGMw0jg.js +1150 -0
  21. package/dist/{TimesheetList-B6TIgZba.js → TimesheetList-DiTCj2H7.js} +8 -8
  22. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CF1cWXsG.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-B97k3KNz.js} +3 -3
  23. package/dist/{app-Cfzysb_Z.js → app-BRlNuQIz.js} +2465 -2387
  24. package/dist/app.js +1 -1
  25. package/dist/{approval-code-CWq2ce3u.js → approval-code-D6eLRwC7.js} +1 -1
  26. package/dist/{dayjs.min-NoTESZyy.js → dayjs.min-BaLuYA95.js} +1 -1
  27. package/dist/{employee-BzUt7_wz.js → employee-DF_QGtpu.js} +4 -4
  28. package/dist/{grant-user-q_mkj3Vh.js → grant-user-CdkuTYlZ.js} +1 -1
  29. package/dist/{iteration-DmbHO_Rl.js → iteration-t4kb_i13.js} +1 -1
  30. package/dist/{lodash-DqvpfdBt.js → lodash-Dv0NUeUP.js} +1 -1
  31. package/dist/{restaurant-DJBQY9N5.js → restaurant-D2q9eNtu.js} +578 -581
  32. package/dist/{role-Crd3XL59.js → role-y253W1Ep.js} +19 -20
  33. package/dist/{rule-B1ck-XG6.js → rule-DaFOMP6z.js} +150 -153
  34. package/dist/src/composables/useTenant.d.ts +11 -0
  35. package/dist/src/router/courtGuard.d.ts +4 -0
  36. package/dist/src/stores/team.d.ts +1 -1
  37. package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +1 -1
  38. package/dist/style.css +1 -1
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/{useAppStore-TRX-PQD4.js → useAppStore-CIPpnfP7.js} +1 -1
  41. package/dist/{useLoading-W3YSF8OB.js → useLoading-BRCeBVXP.js} +1 -1
  42. package/dist/useReportPermissions-Bveud3kc.js +80 -0
  43. package/package.json +3 -3
  44. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BVOwDcXo.js +0 -4167
  45. package/dist/TeamMemberList-C0nZBhqp.js +0 -1154
  46. package/dist/useReportPermissions-DmMlLiQP.js +0 -82
@@ -1,8 +1,8 @@
1
- import { defineStore as x, storeToRefs as b } from "pinia";
1
+ import { defineStore as _, storeToRefs as x } from "pinia";
2
2
  import { ref as w } from "vue";
3
- import { useCoreStore as B } from "@feedmepos/mf-common";
4
- import { s as v } from "./iteration-DmbHO_Rl.js";
5
- import { g as f, b as p, u as I } from "./restaurant-DJBQY9N5.js";
3
+ import { u as b } from "./app-BRlNuQIz.js";
4
+ import { s as y } from "./iteration-t4kb_i13.js";
5
+ import { g as f, b as p, u as v } from "./restaurant-D2q9eNtu.js";
6
6
  const R = {
7
7
  async readRoles() {
8
8
  return f(await p().get("/pos-roles"));
@@ -23,7 +23,7 @@ const R = {
23
23
  }
24
24
  };
25
25
  async function m(e) {
26
- const { restaurants: c } = I(), u = e.reduce((n, a) => {
26
+ const { restaurants: c } = v(), u = e.reduce((n, a) => {
27
27
  var d;
28
28
  const s = n.findIndex((o) => o._id === a._id), r = {
29
29
  id: a.restaurantId,
@@ -32,16 +32,15 @@ async function m(e) {
32
32
  return s < 0 ? n.push({
33
33
  ...a,
34
34
  restaurants: [r]
35
- }) : n[s].restaurants.some((o) => o.id === a.restaurantId) || (n[s].restaurants = v([...n[s].restaurants, r], { selector: "name" })), n;
35
+ }) : n[s].restaurants.some((o) => o.id === a.restaurantId) || (n[s].restaurants = y([...n[s].restaurants, r], { selector: "name" })), n;
36
36
  }, []);
37
- return v(u, { selector: "name" });
37
+ return y(u, { selector: "name" });
38
38
  }
39
- const h = x("hrm-role", () => {
40
- const { currentBusiness: e } = B(), c = I(), u = w([]), n = w(!1), a = w(null);
39
+ const h = _("hrm-role", () => {
40
+ const e = b(), c = v(), u = w([]), n = w(!1), a = w(null);
41
41
  let s = null, r = null;
42
42
  async function d(l = !1) {
43
- var y;
44
- const t = ((y = e.value) == null ? void 0 : y._id) ?? null;
43
+ const t = e.id.value ?? null;
45
44
  if (!t) {
46
45
  u.value = [], a.value = null, s = null, r = null;
47
46
  return;
@@ -53,8 +52,8 @@ const h = x("hrm-role", () => {
53
52
  try {
54
53
  n.value = !0, i = (async () => {
55
54
  await c.readRestaurants();
56
- const _ = await R.readRoles();
57
- u.value = await m(_), a.value = t;
55
+ const S = await R.readRoles();
56
+ u.value = await m(S), a.value = t;
58
57
  })(), s = i, r = t, await i;
59
58
  } finally {
60
59
  s === i && (s = null, r = null), n.value = !1;
@@ -64,11 +63,11 @@ const h = x("hrm-role", () => {
64
63
  const t = await R.createRole(l);
65
64
  u.value = await m(t);
66
65
  }
67
- async function g(l, t) {
66
+ async function I(l, t) {
68
67
  const i = await R.updateRole(l, t);
69
68
  u.value = await m(i);
70
69
  }
71
- async function S(l) {
70
+ async function g(l) {
72
71
  const t = await R.deleteRole(l);
73
72
  u.value = await m(t);
74
73
  }
@@ -77,16 +76,16 @@ const h = x("hrm-role", () => {
77
76
  isLoading: n,
78
77
  readRoles: d,
79
78
  createRole: o,
80
- updateRole: g,
81
- deleteRole: S
79
+ updateRole: I,
80
+ deleteRole: g
82
81
  };
83
- }), L = () => {
82
+ }), C = () => {
84
83
  const e = h();
85
84
  return {
86
85
  ...e,
87
- ...b(e)
86
+ ...x(e)
88
87
  };
89
88
  };
90
89
  export {
91
- L as u
90
+ C as u
92
91
  };