@feedmepos/mf-hrm-portal 2.0.6-dev.1 → 2.0.6

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 (38) hide show
  1. package/dist/{AuditLogList-C23_MiyK.js → AuditLogList-mk1RbMXf.js} +6 -7
  2. package/dist/{EmployeeList-vXPEVqoh.js → EmployeeList-BLzCroKt.js} +169 -164
  3. package/dist/{Main-k56Iy_zg.js → Main-Iq4fp839.js} +7 -8
  4. package/dist/{Main-DC9H9bAs.js → Main-LIt4hYn8.js} +10 -11
  5. package/dist/{PermissionSetList-B8tJCNpR.js → PermissionSetList-CNvdnZEw.js} +52 -53
  6. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BPJpVG8_.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DCT_Y6Am.js} +755 -756
  7. package/dist/{RoleList-C5WA3Kxu.js → RoleList-AMggFB4w.js} +24 -26
  8. package/dist/{TeamMemberList-Ic-iWBHd.js → TeamMemberList-DaWjvODe.js} +9 -10
  9. package/dist/{TimesheetList-DlGpcOUp.js → TimesheetList-Dp_1EjAA.js} +10 -11
  10. package/dist/{app-D0xH_99A.js → app-CCkFz3PM.js} +694 -959
  11. package/dist/app.js +1 -1
  12. package/dist/{dayjs.min-C1rTVn8X.js → dayjs.min-DVRxgWXl.js} +1 -1
  13. package/dist/{employee-BK4sYiRy.js → employee-8mSXAzs-.js} +20 -21
  14. package/dist/{index-DSAB4vz3.js → index-C_69XbrV.js} +1 -1
  15. package/dist/{iteration-BSGKcAZm.js → index-Cq17YHgg.js} +4430 -3468
  16. package/dist/{lodash-CeTePH4O.js → lodash-J0KOvkWp.js} +1 -1
  17. package/dist/src/api/index.d.ts +1 -3
  18. package/dist/src/router/shared.d.ts +1 -2
  19. package/dist/{team-B25hRkju.js → team-CRqSHpKv.js} +1 -1
  20. package/dist/{timesheet-C8oy-bxz.js → timesheet-XhZUvI_q.js} +9 -10
  21. package/dist/tsconfig.app.tsbuildinfo +1 -1
  22. package/dist/{useAppStore-WGnUS7Wm.js → useAppStore-CI8j71j-.js} +1 -1
  23. package/dist/{useLoading-BCi2g_rf.js → useLoading-DynadGXC.js} +1 -1
  24. package/dist/{useReportPermissions--LOfl1e-.js → useReportPermissions-BqGXho47.js} +11 -12
  25. package/dist/useRestaurantMap-D5BNPLKh.js +107 -0
  26. package/package.json +2 -2
  27. package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +0 -71
  28. package/dist/HorizontalSplitter-o860F4xM.js +0 -12
  29. package/dist/Main-CQWe1-SW.js +0 -599
  30. package/dist/index-C2ubYSVV.js +0 -968
  31. package/dist/src/api/grant-user/index.d.ts +0 -8
  32. package/dist/src/stores/grant-user.d.ts +0 -86
  33. package/dist/src/types/grant-user.d.ts +0 -27
  34. package/dist/src/views/grant/GrantUserList.vue.d.ts +0 -17
  35. package/dist/src/views/grant/Main.vue.d.ts +0 -2
  36. package/dist/src/views/grant/components/GrantUserForm.vue.d.ts +0 -17
  37. package/dist/src/views/grant/locales/index.d.ts +0 -232
  38. package/dist/useRestaurantMap-e9fQJiLC.js +0 -39
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as a, e as r, r as o } from "./app-D0xH_99A.js";
1
+ import { h as a, e as r, r as o } from "./app-CCkFz3PM.js";
2
2
  export {
3
3
  a as FmApp,
4
4
  r as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g as Q, c as K } from "./app-D0xH_99A.js";
1
+ import { g as Q, c as K } from "./app-CCkFz3PM.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, k) {
@@ -1,10 +1,9 @@
1
- import { d as T } from "./dayjs.min-C1rTVn8X.js";
1
+ import { d as T } from "./dayjs.min-DVRxgWXl.js";
2
2
  import { defineStore as _, storeToRefs as U } from "pinia";
3
3
  import { ref as I } from "vue";
4
4
  import { useCoreStore as $ } from "@feedmepos/mf-common";
5
- import { b as r, g as o, s as v } from "./iteration-BSGKcAZm.js";
6
- import { t as b, i as S } from "./index-C2ubYSVV.js";
7
- import { u as x } from "./useAppStore-WGnUS7Wm.js";
5
+ import { b as r, g as o, t as b, k as S, s as v } from "./index-Cq17YHgg.js";
6
+ import { u as x } from "./useAppStore-CI8j71j-.js";
8
7
  const n = {
9
8
  async readEmployees() {
10
9
  return o(await r().get("/pos-users"));
@@ -48,19 +47,19 @@ const n = {
48
47
  }
49
48
  };
50
49
  async function i(e) {
51
- const t = x().roles.value, { restaurants: d } = $(), M = e.reduce((u, m) => {
50
+ const t = x().roles.value, { restaurants: d } = $(), M = e.reduce((u, l) => {
52
51
  var w;
53
- const { _id: f, restaurantId: l } = m, p = u.findIndex((s) => s._id === f), g = ((w = d.value.find((s) => s._id === l)) == null ? void 0 : w.profile.name) || "", c = t.find((s) => s._id === m.role), E = {
54
- restaurantId: l,
52
+ const { _id: E, restaurantId: m } = l, p = u.findIndex((s) => s._id === E), g = ((w = d.value.find((s) => s._id === m)) == null ? void 0 : w.profile.name) || "", c = t.find((s) => s._id === l.role), f = {
53
+ restaurantId: m,
55
54
  restaurantName: g,
56
55
  roleId: (c == null ? void 0 : c._id) || "",
57
56
  roleName: (c == null ? void 0 : c.name) || ""
58
57
  };
59
58
  return p < 0 ? u.push({
60
- ...m,
61
- since: T(S(f)).format("DD/MM/YYYY"),
62
- restaurants: [E]
63
- }) : u[p].restaurants.some((s) => s.restaurantId === l) || (u[p].restaurants = v([...u[p].restaurants, E], {
59
+ ...l,
60
+ since: T(S(E)).format("DD/MM/YYYY"),
61
+ restaurants: [f]
62
+ }) : u[p].restaurants.some((s) => s.restaurantId === m) || (u[p].restaurants = v([...u[p].restaurants, f], {
64
63
  selector: "restaurantName"
65
64
  })), u;
66
65
  }, []);
@@ -83,15 +82,15 @@ const D = _("employee", () => {
83
82
  const a = await n.createEmployee(s);
84
83
  e.value = await i(a);
85
84
  }
86
- async function m(s, a) {
85
+ async function l(s, a) {
87
86
  const y = await n.updateEmployee(s, a);
88
87
  e.value = await i(y);
89
88
  }
90
- async function f(s) {
89
+ async function E(s) {
91
90
  const a = await n.deleteEmployee(s);
92
91
  e.value = await i(a);
93
92
  }
94
- async function l(s) {
93
+ async function m(s) {
95
94
  const a = await n.deleteMasterEmployee(s);
96
95
  e.value = await i(a);
97
96
  }
@@ -107,7 +106,7 @@ const D = _("employee", () => {
107
106
  const y = await n.migrateToMasterEmployee(s, a);
108
107
  e.value = await i(y);
109
108
  }
110
- async function E() {
109
+ async function f() {
111
110
  try {
112
111
  d.value = await b.readTeamMemberPosUserIds();
113
112
  } catch (s) {
@@ -123,16 +122,16 @@ const D = _("employee", () => {
123
122
  isLoading: t,
124
123
  readEmployees: M,
125
124
  createEmployee: u,
126
- updateEmployee: m,
127
- deleteEmployee: f,
125
+ updateEmployee: l,
126
+ deleteEmployee: E,
128
127
  createMasterEmployee: p,
129
128
  updateMasterEmployee: g,
130
- deleteMasterEmployee: l,
129
+ deleteMasterEmployee: m,
131
130
  migrateToMasterUser: c,
132
- readTeamMemberPosUserIds: E,
131
+ readTeamMemberPosUserIds: f,
133
132
  syncUsersMeta: w
134
133
  };
135
- }), j = () => {
134
+ }), R = () => {
136
135
  const e = D();
137
136
  return {
138
137
  ...e,
@@ -141,5 +140,5 @@ const D = _("employee", () => {
141
140
  };
142
141
  export {
143
142
  n as E,
144
- j as u
143
+ R as u
145
144
  };
@@ -2,7 +2,7 @@ var oe = Object.defineProperty;
2
2
  var se = (_, h, y) => h in _ ? oe(_, h, { enumerable: !0, configurable: !0, writable: !0, value: y }) : _[h] = y;
3
3
  var ot = (_, h, y) => se(_, typeof h != "symbol" ? h + "" : h, y);
4
4
  import { readonly as Nt, ref as Rt } from "vue";
5
- import { c as st } from "./app-D0xH_99A.js";
5
+ import { c as st } from "./app-CCkFz3PM.js";
6
6
  var Pt = { exports: {} };
7
7
  (function(_, h) {
8
8
  (function(y, p) {