@feedmepos/mf-hrm-portal 1.1.1-dev → 1.1.2-dev

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 (32) hide show
  1. package/dist/AuditLogList-CjrocQS2.js +316 -0
  2. package/dist/{EmployeeList-CMUbRS7j.js → EmployeeList-CKHgrdAO.js} +9 -8
  3. package/dist/{Main-BbZ-t-pu.js → Main-HzplGv-e.js} +4 -4
  4. package/dist/{Main-un3v_g6p.js → Main-YQ5f-v03.js} +9 -8
  5. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-xQ4fjIxa.js +3050 -0
  6. package/dist/{RoleList-mlTepnhN.js → RoleList-Bef-7IhW.js} +5 -5
  7. package/dist/{RolePermissionList-tR-Kmlu7.js → RolePermissionList-BzwpQFeO.js} +3 -3
  8. package/dist/{useSearch-C6gRA62e.js → SelectFilter-NbXrJ4iH.js} +90 -101
  9. package/dist/{TeamMemberList-BkRQl6x8.js → TeamMemberList-D2Xey_w9.js} +40 -39
  10. package/dist/{TimesheetList-i5yaAzhB.js → TimesheetList-DVIk0Tis.js} +21 -20
  11. package/dist/api/team/index.d.ts +4 -1
  12. package/dist/{app-4LaGLcWC.js → app-DUs516v0.js} +705 -418
  13. package/dist/app.js +4 -4
  14. package/dist/dayjs.min-DVb8OkTL.js +282 -0
  15. package/dist/employee-jH7EJnhi.js +172 -0
  16. package/dist/{index-BsEM84j5.js → index-CicR1-Jp.js} +1154 -1183
  17. package/dist/{lodash-DYaYvsmp.js → lodash-DpoPPi_j.js} +1 -1
  18. package/dist/{team-eo_yQh1g.js → team-CiZSNUQW.js} +1 -1
  19. package/dist/{timesheet-CfPIK52Q.js → timesheet-BRQvljNj.js} +12 -12
  20. package/dist/tsconfig.app.tsbuildinfo +1 -1
  21. package/dist/types/audit-log.d.ts +1 -0
  22. package/dist/types/permission.d.ts +1 -5
  23. package/dist/{useAppStore-D0F-tWJO.js → useAppStore-RzLLN5d9.js} +1 -1
  24. package/dist/{useLoading-DpbOtToC.js → useLoading-1OqFn86y.js} +1 -1
  25. package/dist/useSearch-B6WK1LBB.js +15 -0
  26. package/dist/views/audit-log/locales/index.d.ts +211 -0
  27. package/dist/views/team/components/BasePermission.vue.d.ts +0 -12
  28. package/package.json +2 -2
  29. package/dist/AuditLogList-D62QRWN-.js +0 -232
  30. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CZKBfM_R.js +0 -3119
  31. package/dist/employee-BZTntAR0.js +0 -450
  32. /package/dist/views/{hr/audit-log → audit-log}/AuditLogList.vue.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { c as jt } from "./app-4LaGLcWC.js";
1
+ import { c as jt } from "./app-DUs516v0.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -1,6 +1,6 @@
1
1
  import { defineStore as c } from "pinia";
2
2
  import { ref as t, computed as i } from "vue";
3
- import { t as u } from "./index-BsEM84j5.js";
3
+ import { t as u } from "./index-CicR1-Jp.js";
4
4
  const p = c("team", () => {
5
5
  const r = t([]), a = t(!1), m = i(
6
6
  () => Object.fromEntries(r.value.map((e) => [e.doc.userId, e.name]))
@@ -1,36 +1,36 @@
1
- import { D as i } from "./employee-BZTntAR0.js";
1
+ import { d as i } from "./dayjs.min-DVb8OkTL.js";
2
2
  import { defineStore as p, storeToRefs as T } from "pinia";
3
3
  import { ref as l } from "vue";
4
- import { b as d, g as y, k as u, j as D, s as S } from "./index-BsEM84j5.js";
4
+ import { b as c, g as y, k as u, j as S, s as g } from "./index-CicR1-Jp.js";
5
5
  const f = {
6
6
  async readTimesheets(t, e) {
7
- return y(await d().get(`timesheet?start=${t}&end=${e}`));
7
+ return y(await c().get(`timesheet?start=${t}&end=${e}`));
8
8
  },
9
9
  async updateTimesheet(t, e) {
10
- await d().put(`timesheet/${t}`, e);
10
+ await c().put(`timesheet/${t}`, e);
11
11
  }
12
12
  };
13
- function g(t) {
13
+ function A(t) {
14
14
  const e = t.map((o) => {
15
- const { startedAt: s, endedAt: a } = o, r = i(u(s)), n = a ? i(u(a)) : null, m = (n == null ? void 0 : n.diff(r, "minute", !1)) || 0, h = n ? D(m) : "", c = "YYYY-MM-DD hh:mm a";
15
+ const { startedAt: s, endedAt: a } = o, r = i(u(s)), n = a ? i(u(a)) : null, m = (n == null ? void 0 : n.diff(r, "minute", !1)) || 0, h = n ? S(m) : "", d = "YYYY-MM-DD hh:mm a";
16
16
  return {
17
17
  ...o,
18
- start: r.format(c),
19
- end: n ? n.format(c) : "",
18
+ start: r.format(d),
19
+ end: n ? n.format(d) : "",
20
20
  totalMin: m,
21
21
  duration: h
22
22
  };
23
23
  });
24
- return S(e, { selector: "start" });
24
+ return g(e, { selector: "start" });
25
25
  }
26
- const A = p("timesheet", () => {
26
+ const D = p("timesheet", () => {
27
27
  const t = l([]);
28
28
  async function e(s, a) {
29
29
  const r = await f.readTimesheets(
30
30
  i(s).startOf("day").toISOString(),
31
31
  i(a).endOf("day").toISOString()
32
32
  );
33
- t.value = g(r);
33
+ t.value = A(r);
34
34
  }
35
35
  async function o(s, a, r) {
36
36
  await f.updateTimesheet(s.restaurantId, {
@@ -45,7 +45,7 @@ const A = p("timesheet", () => {
45
45
  updateTimesheet: o
46
46
  };
47
47
  }), M = () => {
48
- const t = A();
48
+ const t = D();
49
49
  return {
50
50
  ...t,
51
51
  ...T(t)