@feedmepos/mf-hrm-portal 2.0.20-dev.1 → 2.0.20-dev.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 (31) hide show
  1. package/dist/{AuditLogList-Bsj-qg8n.js → AuditLogList-7E8iWQWx.js} +4 -4
  2. package/dist/EmployeeList-DyNW3cUo.js +851 -0
  3. package/dist/{Main-CSMAtoMj.js → Main-BLJyOcEv.js} +184 -176
  4. package/dist/{Main-BGc6kNaR.js → Main-BZjZxFHp.js} +2008 -2001
  5. package/dist/Main-C9lMH4EN.js +90 -0
  6. package/dist/PermissionSetList-BuCp14Os.js +355 -0
  7. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CdWgTjZw.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BQSDnH-Z.js} +675 -661
  8. package/dist/RoleList-L8L1xmJ2.js +564 -0
  9. package/dist/TeamMemberList-DEN9rHqb.js +1124 -0
  10. package/dist/{TimesheetList-tFjvFHqH.js → TimesheetList-D88u0GFn.js} +61 -53
  11. package/dist/{app-CL7rUfL3.js → app-g_SrJtfC.js} +191 -193
  12. package/dist/app.js +1 -1
  13. package/dist/{dayjs.min-ChdFPuFV.js → dayjs.min-BGHzwXCt.js} +1 -1
  14. package/dist/employee-Dep-q_aU.js +200 -0
  15. package/dist/{iteration-BbD0nOgO.js → iteration-Dc-Bz5bA.js} +173 -175
  16. package/dist/{lodash-CDf3aG6G.js → lodash-Cxw1GZ6L.js} +1 -1
  17. package/dist/{rule-BJ-y3Sp8.js → rule-ClRtpdqO.js} +27 -26
  18. package/dist/src/types/team.d.ts +1 -0
  19. package/dist/style.css +1 -1
  20. package/dist/{timesheet-BmV02Rkz.js → timesheet-CZoSvFYT.js} +2 -2
  21. package/dist/tsconfig.app.tsbuildinfo +1 -1
  22. package/dist/{useAppStore-D8QAGZ02.js → useAppStore-CTBRpqmO.js} +36 -38
  23. package/dist/{useLoading-KpcQw0p4.js → useLoading-XvrLj1VM.js} +1 -1
  24. package/dist/{useReportPermissions-CmGJAz_N.js → useReportPermissions-nivbQm9V.js} +3 -3
  25. package/package.json +1 -1
  26. package/dist/EmployeeList-Cy2ayCko.js +0 -824
  27. package/dist/Main-D7bV8EuC.js +0 -86
  28. package/dist/PermissionSetList-CuHhDqWl.js +0 -347
  29. package/dist/RoleList-e0WUqt4Y.js +0 -545
  30. package/dist/TeamMemberList-CpPa1KyV.js +0 -1097
  31. package/dist/employee-kKV7UnHU.js +0 -204
@@ -1,39 +1,39 @@
1
1
  import { defineStore as x, storeToRefs as U } from "pinia";
2
2
  import { ref as R } from "vue";
3
- import { useCoreStore as D, baseClientInstance as h } from "@feedmepos/mf-common";
4
- import { g as c, b as y, u as Q, s as v } from "./iteration-BbD0nOgO.js";
5
- const m = {
3
+ import { useCoreStore as D, baseClientInstance as v } from "@feedmepos/mf-common";
4
+ import { g as c, b as g, u as Q, s as f } from "./iteration-Dc-Bz5bA.js";
5
+ const y = {
6
6
  async readRoles() {
7
- return c(await y().get("/pos-roles"));
7
+ return c(await g().get("/pos-roles"));
8
8
  },
9
9
  async createRole(e) {
10
- return c(await y().post("/pos-roles", e));
10
+ return c(await g().post("/pos-roles", e));
11
11
  },
12
12
  async updateRole(e, t) {
13
- return c(await y().put(`/pos-roles/${e}`, t));
13
+ return c(await g().put(`/pos-roles/${e}`, t));
14
14
  },
15
15
  async deleteRole(e) {
16
16
  return c(
17
- await y().put(`/pos-roles/${e._id}`, {
17
+ await g().put(`/pos-roles/${e._id}`, {
18
18
  restaurantIds: [],
19
19
  role: e
20
20
  })
21
21
  );
22
22
  }
23
23
  };
24
- async function b(e) {
24
+ async function m(e) {
25
25
  const { restaurants: t } = Q(), s = e.reduce((n, r) => {
26
- var g;
27
- const l = n.findIndex((o) => o._id === r._id), p = {
26
+ var p;
27
+ const l = n.findIndex((o) => o._id === r._id), d = {
28
28
  id: r.restaurantId,
29
- name: ((g = t.value.find((o) => o._id === r.restaurantId)) == null ? void 0 : g.profile.name) || ""
29
+ name: ((p = t.value.find((o) => o._id === r.restaurantId)) == null ? void 0 : p.profile.name) || ""
30
30
  };
31
31
  return l < 0 ? n.push({
32
32
  ...r,
33
- restaurants: [p]
34
- }) : n[l].restaurants.some((o) => o.id === r.restaurantId) || (n[l].restaurants = v([...n[l].restaurants, p], { selector: "name" })), n;
33
+ restaurants: [d]
34
+ }) : n[l].restaurants.some((o) => o.id === r.restaurantId) || (n[l].restaurants = f([...n[l].restaurants, d], { selector: "name" })), n;
35
35
  }, []);
36
- return v(s, { selector: "name" });
36
+ return f(s, { selector: "name" });
37
37
  }
38
38
  const A = x("role", () => {
39
39
  const { currentBusiness: e } = D(), t = Q(), s = R([]), n = R(!1), r = R(null);
@@ -43,35 +43,33 @@ const A = x("role", () => {
43
43
  if (r.value !== u)
44
44
  try {
45
45
  n.value = !0, await t.readRestaurants();
46
- const d = await m.readRoles();
47
- s.value = await b(d), r.value = u;
48
- } catch (d) {
49
- console.log("Error reading roles:", d);
46
+ const w = await y.readRoles();
47
+ s.value = await m(w), r.value = u;
50
48
  } finally {
51
49
  n.value = !1;
52
50
  }
53
51
  }
54
- async function p(u) {
55
- const i = await m.createRole(u);
56
- s.value = await b(i);
52
+ async function d(u) {
53
+ const i = await y.createRole(u);
54
+ s.value = await m(i);
57
55
  }
58
- async function g(u, i) {
59
- const d = await m.updateRole(u, i);
60
- s.value = await b(d);
56
+ async function p(u, i) {
57
+ const w = await y.updateRole(u, i);
58
+ s.value = await m(w);
61
59
  }
62
60
  async function o(u) {
63
- const i = await m.deleteRole(u);
64
- s.value = await b(i);
61
+ const i = await y.deleteRole(u);
62
+ s.value = await m(i);
65
63
  }
66
64
  return {
67
65
  roles: s,
68
66
  isLoading: n,
69
67
  readRoles: l,
70
- createRole: p,
71
- updateRole: g,
68
+ createRole: d,
69
+ updateRole: p,
72
70
  deleteRole: o
73
71
  };
74
- }), q = () => {
72
+ }), E = () => {
75
73
  const e = A();
76
74
  return {
77
75
  ...e,
@@ -84,29 +82,29 @@ for (var S = 0; S < 256; ++S)
84
82
  function _(e, t = 0) {
85
83
  return (a[e[t + 0]] + a[e[t + 1]] + a[e[t + 2]] + a[e[t + 3]] + "-" + a[e[t + 4]] + a[e[t + 5]] + "-" + a[e[t + 6]] + a[e[t + 7]] + "-" + a[e[t + 8]] + a[e[t + 9]] + "-" + a[e[t + 10]] + a[e[t + 11]] + a[e[t + 12]] + a[e[t + 13]] + a[e[t + 14]] + a[e[t + 15]]).toLowerCase();
86
84
  }
87
- var w, L = new Uint8Array(16);
85
+ var b, L = new Uint8Array(16);
88
86
  function C() {
89
- if (!w && (w = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !w))
87
+ if (!b && (b = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !b))
90
88
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
91
- return w(L);
89
+ return b(L);
92
90
  }
93
91
  var V = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
94
- const f = {
92
+ const h = {
95
93
  randomUUID: V
96
94
  };
97
95
  function P(e, t, s) {
98
- if (f.randomUUID && !e)
99
- return f.randomUUID();
96
+ if (h.randomUUID && !e)
97
+ return h.randomUUID();
100
98
  e = e || {};
101
99
  var n = e.random || (e.rng || C)();
102
100
  return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, _(n);
103
101
  }
104
102
  const I = {
105
103
  async read() {
106
- return c(await h("/").get("/public-setting"));
104
+ return c(await v("/").get("/public-setting"));
107
105
  },
108
106
  async update(e) {
109
- return c(await h("/").put("/public-setting", e));
107
+ return c(await v("/").put("/public-setting", e));
110
108
  }
111
109
  };
112
110
  function B() {
@@ -166,6 +164,6 @@ const H = x("portal-app-store", {
166
164
  });
167
165
  export {
168
166
  H as a,
169
- q as u,
167
+ E as u,
170
168
  P as v
171
169
  };
@@ -1,6 +1,6 @@
1
1
  import { computed as I, isRef as L, watch as M } from "vue";
2
2
  import { SnackbarPosition as y } from "@feedmepos/ui-library";
3
- import { a as w, v } from "./useAppStore-D8QAGZ02.js";
3
+ import { a as w, v } from "./useAppStore-CTBRpqmO.js";
4
4
  const E = (r) => {
5
5
  async function d(u, e) {
6
6
  var l, a;
@@ -1,8 +1,8 @@
1
1
  import { computed as u, ref as t } from "vue";
2
- import { e as d } from "./iteration-BbD0nOgO.js";
2
+ import { e as d } from "./iteration-Dc-Bz5bA.js";
3
3
  import { useCoreStore as h } from "@feedmepos/mf-common";
4
- import { e as S, R as g } from "./rule-BJ-y3Sp8.js";
5
- import "./app-CL7rUfL3.js";
4
+ import { e as S, R as g } from "./rule-ClRtpdqO.js";
5
+ import "./app-g_SrJtfC.js";
6
6
  const r = t([]), c = t(!1), a = t(!1), f = t(null), p = t(null), i = t(!1);
7
7
  function B() {
8
8
  const v = h();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-hrm-portal",
3
- "version": "2.0.20-dev.1",
3
+ "version": "2.0.20-dev.3",
4
4
  "files": [
5
5
  "dist"
6
6
  ],