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

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 (50) hide show
  1. package/dist/{AuditLogList-BxigxQv3.js → AuditLogList-C23_MiyK.js} +31 -30
  2. package/dist/{EmployeeList-DyvqwZtw.js → EmployeeList-vXPEVqoh.js} +164 -169
  3. package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +71 -0
  4. package/dist/HorizontalSplitter-o860F4xM.js +12 -0
  5. package/dist/Main-CQWe1-SW.js +599 -0
  6. package/dist/{Main-B8tSMq-U.js → Main-DC9H9bAs.js} +11 -10
  7. package/dist/{Main-CtH5MCty.js → Main-k56Iy_zg.js} +8 -7
  8. package/dist/PermissionSetList-B8tJCNpR.js +338 -0
  9. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BPJpVG8_.js +3356 -0
  10. package/dist/{RoleList-jykDD_zm.js → RoleList-C5WA3Kxu.js} +26 -24
  11. package/dist/TeamMemberList-Ic-iWBHd.js +989 -0
  12. package/dist/{TimesheetList-Bk1XF9xy.js → TimesheetList-DlGpcOUp.js} +11 -10
  13. package/dist/{app-BPlaahxK.js → app-D0xH_99A.js} +1310 -937
  14. package/dist/app.js +2 -2
  15. package/dist/{dayjs.min-LweNOSZ_.js → dayjs.min-C1rTVn8X.js} +1 -1
  16. package/dist/{employee-DPfiL6rd.js → employee-BK4sYiRy.js} +21 -20
  17. package/dist/index-C2ubYSVV.js +968 -0
  18. package/dist/{index-BAhsHYNv.js → index-DSAB4vz3.js} +1 -1
  19. package/dist/{index-CBxn7cxI.js → iteration-BSGKcAZm.js} +3416 -4256
  20. package/dist/{lodash-D1uG3PY3.js → lodash-CeTePH4O.js} +1 -1
  21. package/dist/src/api/grant-user/index.d.ts +8 -0
  22. package/dist/src/api/index.d.ts +3 -1
  23. package/dist/src/api/permission-assignment/index.d.ts +3 -0
  24. package/dist/src/api/report-query/index.d.ts +1 -0
  25. package/dist/src/composables/useCustomReportPermissions.d.ts +7 -0
  26. package/dist/src/helpers/permission-set.d.ts +32 -1
  27. package/dist/src/helpers/permission-set.test.d.ts +1 -0
  28. package/dist/src/helpers/rule.d.ts +4 -1
  29. package/dist/src/router/shared.d.ts +2 -1
  30. package/dist/src/stores/grant-user.d.ts +86 -0
  31. package/dist/src/types/grant-user.d.ts +27 -0
  32. package/dist/src/types/report-query.d.ts +1 -0
  33. package/dist/src/views/grant/GrantUserList.vue.d.ts +17 -0
  34. package/dist/src/views/grant/Main.vue.d.ts +2 -0
  35. package/dist/src/views/grant/components/GrantUserForm.vue.d.ts +17 -0
  36. package/dist/src/views/grant/locales/index.d.ts +232 -0
  37. package/dist/src/views/team/components/BasePermission.vue.d.ts +17 -0
  38. package/dist/{team-B1osnB4U.js → team-B25hRkju.js} +1 -1
  39. package/dist/{timesheet-rte2utJf.js → timesheet-C8oy-bxz.js} +10 -9
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/dist/{useAppStore-CqrjwnF_.js → useAppStore-WGnUS7Wm.js} +1 -1
  42. package/dist/{useLoading-B5IjfVEP.js → useLoading-BCi2g_rf.js} +1 -1
  43. package/dist/useReportPermissions--LOfl1e-.js +60 -0
  44. package/dist/useRestaurantMap-e9fQJiLC.js +39 -0
  45. package/package.json +2 -2
  46. package/dist/PermissionSetList-DCONmOgn.js +0 -323
  47. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-07Dsea27.js +0 -3092
  48. package/dist/TeamMemberList-DMrPgF1l.js +0 -973
  49. package/dist/useReportPermissions-C4Q29AQJ.js +0 -65
  50. package/dist/useRestaurantMap-D5BNPLKh.js +0 -107
package/dist/app.js CHANGED
@@ -1,6 +1,6 @@
1
- import { b as e, i as r, r as o } from "./app-BPlaahxK.js";
1
+ import { h as a, e as r, r as o } from "./app-D0xH_99A.js";
2
2
  export {
3
- e as FmApp,
3
+ a as FmApp,
4
4
  r as i18nMessages,
5
5
  o as routes
6
6
  };
@@ -1,4 +1,4 @@
1
- import { g as Q, c as K } from "./app-BPlaahxK.js";
1
+ import { g as Q, c as K } from "./app-D0xH_99A.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, k) {
@@ -1,9 +1,10 @@
1
- import { d as T } from "./dayjs.min-LweNOSZ_.js";
1
+ import { d as T } from "./dayjs.min-C1rTVn8X.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, t as b, k as S, s as v } from "./index-CBxn7cxI.js";
6
- import { u as x } from "./useAppStore-CqrjwnF_.js";
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";
7
8
  const n = {
8
9
  async readEmployees() {
9
10
  return o(await r().get("/pos-users"));
@@ -47,19 +48,19 @@ const n = {
47
48
  }
48
49
  };
49
50
  async function i(e) {
50
- const t = x().roles.value, { restaurants: d } = $(), M = e.reduce((u, l) => {
51
+ const t = x().roles.value, { restaurants: d } = $(), M = e.reduce((u, m) => {
51
52
  var w;
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,
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,
54
55
  restaurantName: g,
55
56
  roleId: (c == null ? void 0 : c._id) || "",
56
57
  roleName: (c == null ? void 0 : c.name) || ""
57
58
  };
58
59
  return p < 0 ? u.push({
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], {
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], {
63
64
  selector: "restaurantName"
64
65
  })), u;
65
66
  }, []);
@@ -82,15 +83,15 @@ const D = _("employee", () => {
82
83
  const a = await n.createEmployee(s);
83
84
  e.value = await i(a);
84
85
  }
85
- async function l(s, a) {
86
+ async function m(s, a) {
86
87
  const y = await n.updateEmployee(s, a);
87
88
  e.value = await i(y);
88
89
  }
89
- async function E(s) {
90
+ async function f(s) {
90
91
  const a = await n.deleteEmployee(s);
91
92
  e.value = await i(a);
92
93
  }
93
- async function m(s) {
94
+ async function l(s) {
94
95
  const a = await n.deleteMasterEmployee(s);
95
96
  e.value = await i(a);
96
97
  }
@@ -106,7 +107,7 @@ const D = _("employee", () => {
106
107
  const y = await n.migrateToMasterEmployee(s, a);
107
108
  e.value = await i(y);
108
109
  }
109
- async function f() {
110
+ async function E() {
110
111
  try {
111
112
  d.value = await b.readTeamMemberPosUserIds();
112
113
  } catch (s) {
@@ -122,16 +123,16 @@ const D = _("employee", () => {
122
123
  isLoading: t,
123
124
  readEmployees: M,
124
125
  createEmployee: u,
125
- updateEmployee: l,
126
- deleteEmployee: E,
126
+ updateEmployee: m,
127
+ deleteEmployee: f,
127
128
  createMasterEmployee: p,
128
129
  updateMasterEmployee: g,
129
- deleteMasterEmployee: m,
130
+ deleteMasterEmployee: l,
130
131
  migrateToMasterUser: c,
131
- readTeamMemberPosUserIds: f,
132
+ readTeamMemberPosUserIds: E,
132
133
  syncUsersMeta: w
133
134
  };
134
- }), R = () => {
135
+ }), j = () => {
135
136
  const e = D();
136
137
  return {
137
138
  ...e,
@@ -140,5 +141,5 @@ const D = _("employee", () => {
140
141
  };
141
142
  export {
142
143
  n as E,
143
- R as u
144
+ j as u
144
145
  };