@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.
- package/dist/AuditLogList-CjrocQS2.js +316 -0
- package/dist/{EmployeeList-CMUbRS7j.js → EmployeeList-CKHgrdAO.js} +9 -8
- package/dist/{Main-BbZ-t-pu.js → Main-HzplGv-e.js} +4 -4
- package/dist/{Main-un3v_g6p.js → Main-YQ5f-v03.js} +9 -8
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-xQ4fjIxa.js +3050 -0
- package/dist/{RoleList-mlTepnhN.js → RoleList-Bef-7IhW.js} +5 -5
- package/dist/{RolePermissionList-tR-Kmlu7.js → RolePermissionList-BzwpQFeO.js} +3 -3
- package/dist/{useSearch-C6gRA62e.js → SelectFilter-NbXrJ4iH.js} +90 -101
- package/dist/{TeamMemberList-BkRQl6x8.js → TeamMemberList-D2Xey_w9.js} +40 -39
- package/dist/{TimesheetList-i5yaAzhB.js → TimesheetList-DVIk0Tis.js} +21 -20
- package/dist/api/team/index.d.ts +4 -1
- package/dist/{app-4LaGLcWC.js → app-DUs516v0.js} +705 -418
- package/dist/app.js +4 -4
- package/dist/dayjs.min-DVb8OkTL.js +282 -0
- package/dist/employee-jH7EJnhi.js +172 -0
- package/dist/{index-BsEM84j5.js → index-CicR1-Jp.js} +1154 -1183
- package/dist/{lodash-DYaYvsmp.js → lodash-DpoPPi_j.js} +1 -1
- package/dist/{team-eo_yQh1g.js → team-CiZSNUQW.js} +1 -1
- package/dist/{timesheet-CfPIK52Q.js → timesheet-BRQvljNj.js} +12 -12
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/types/audit-log.d.ts +1 -0
- package/dist/types/permission.d.ts +1 -5
- package/dist/{useAppStore-D0F-tWJO.js → useAppStore-RzLLN5d9.js} +1 -1
- package/dist/{useLoading-DpbOtToC.js → useLoading-1OqFn86y.js} +1 -1
- package/dist/useSearch-B6WK1LBB.js +15 -0
- package/dist/views/audit-log/locales/index.d.ts +211 -0
- package/dist/views/team/components/BasePermission.vue.d.ts +0 -12
- package/package.json +2 -2
- package/dist/AuditLogList-D62QRWN-.js +0 -232
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CZKBfM_R.js +0 -3119
- package/dist/employee-BZTntAR0.js +0 -450
- /package/dist/views/{hr/audit-log → audit-log}/AuditLogList.vue.d.ts +0 -0
|
@@ -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-
|
|
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 {
|
|
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
|
|
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
|
|
7
|
+
return y(await c().get(`timesheet?start=${t}&end=${e}`));
|
|
8
8
|
},
|
|
9
9
|
async updateTimesheet(t, e) {
|
|
10
|
-
await
|
|
10
|
+
await c().put(`timesheet/${t}`, e);
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
function
|
|
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 ?
|
|
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(
|
|
19
|
-
end: n ? n.format(
|
|
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
|
|
24
|
+
return g(e, { selector: "start" });
|
|
25
25
|
}
|
|
26
|
-
const
|
|
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 =
|
|
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 =
|
|
48
|
+
const t = D();
|
|
49
49
|
return {
|
|
50
50
|
...t,
|
|
51
51
|
...T(t)
|