@feedmepos/mf-hrm-portal 2.3.2-dev.6 → 2.3.2-dev.7
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/{ApprovalCodeList-ix9OeJEQ.js → ApprovalCodeList-Bw0E-hZl.js} +7 -7
- package/dist/{AuditLogList-D5H_O9Q0.js → AuditLogList-CA-_t77n.js} +5 -5
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CuELLYY4.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-LtjNCAFN.js} +2 -2
- package/dist/{EmployeeList-DICzZjVM.js → EmployeeList-D_bX0EhQ.js} +8 -8
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-BQzSWAqC.js → FormSection.vue_vue_type_script_setup_true_lang-CyZxQa-b.js} +1 -1
- package/dist/{GrantUserList-DoMN7Eks.js → GrantUserList-Cg7ITk_M.js} +8 -8
- package/dist/{Main-CQ42sYi9.js → Main-BaB4vgI5.js} +11 -11
- package/dist/{Main-CHIExpOV.js → Main-Bl-Ocx1G.js} +5 -5
- package/dist/{Main-DwYh9cxQ.js → Main-D5wi42fp.js} +10 -10
- package/dist/{MyPosProfile-DaUdREQX.js → MyPosProfile-CUG_201f.js} +1 -1
- package/dist/{PermissionSetList-B7WM9N-p.js → PermissionSetList-kgG9H3DX.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BSVtyLlL.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-y1YcZpGA.js} +755 -755
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-C7fnnbme.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fQyCtDXM.js} +1 -1
- package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-AbQIllkX.js → RoleForm.vue_vue_type_script_setup_true_lang-3Q8udk43.js} +9 -9
- package/dist/{RoleList-vQsHxlNc.js → RoleList-Cmz97HHP.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-D52LhvGG.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CggEy3OI.js} +1 -1
- package/dist/{ScheduleGeneralPage-BLqh7jH6.js → ScheduleGeneralPage-B39k3SQH.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-C9doSgov.js → ScheduleModal.vue_vue_type_script_setup_true_lang-C5j3D4eF.js} +4 -4
- package/dist/{SchedulePage-YADV_6w9.js → SchedulePage-AVmRkFi1.js} +9 -9
- package/dist/{SchedulePositionPage-BowDQMG_.js → SchedulePositionPage-3rE-O8CG.js} +3 -3
- package/dist/{SelectFilter-CBp1qxLd.js → SelectFilter-R7ry_GEg.js} +1 -1
- package/dist/{TeamMemberList-BoJ87moU.js → TeamMemberList-CvDnIILn.js} +12 -12
- package/dist/{TimesheetList-BULw75oo.js → TimesheetList-DYoglTi8.js} +62 -62
- package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_d0c6fd51_lang-DBpzyQ17.js +63 -0
- package/dist/{app-DOFDND9j.js → app-DKUCzcrc.js} +10 -10
- package/dist/app.js +1 -1
- package/dist/{approval-code-Dgj6S82q.js → approval-code-nsETgIry.js} +1 -1
- package/dist/{dayjs.min-AoirQCgL.js → dayjs.min-CtULWW1N.js} +1 -1
- package/dist/{employee-VB6YmuSS.js → employee-DlsSqR3i.js} +5 -5
- package/dist/{grant-user-C-ptrq7l.js → grant-user-Dpa_Rl6j.js} +1 -1
- package/dist/{iteration-DmuDXP8U.js → iteration-DpHBtiyr.js} +1 -1
- package/dist/{lodash-CBFO-xTu.js → lodash-YaHCUo_F.js} +1 -1
- package/dist/{member-grant-CHOB8eQ_.js → member-grant-CEokFI3_.js} +2 -2
- package/dist/{restaurant-DH2Fxzi7.js → restaurant-CDFKqEFm.js} +1 -1
- package/dist/{role-DUpHwRiY.js → role-DyBVVlEA.js} +3 -3
- package/dist/{rule-aUPH1VOW.js → rule-xErZqYmH.js} +3 -3
- package/dist/src/api/timesheet/index.d.ts +1 -1
- package/dist/src/stores/timesheet.d.ts +6 -6
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DwmJbpf-.js → useAppStore-BqsvPsPB.js} +1 -1
- package/dist/{useLoading-Dmlm4oSU.js → useLoading-BS1bnZg1.js} +1 -1
- package/dist/{useReportPermissions-XPn-p57R.js → useReportPermissions-DJEhkyGc.js} +3 -3
- package/package.json +1 -1
- package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_c98b0b84_lang-VlnjH9aQ.js +0 -58
|
@@ -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 { u as w, v } from "./useAppStore-
|
|
3
|
+
import { u as w, v } from "./useAppStore-BqsvPsPB.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 r, ref as n } from "vue";
|
|
2
|
-
import { e as d } from "./iteration-
|
|
2
|
+
import { e as d } from "./iteration-DpHBtiyr.js";
|
|
3
3
|
import { useCoreStore as h } from "@feedmepos/mf-common";
|
|
4
|
-
import { R as K } from "./rule-
|
|
5
|
-
import { s as g } from "./app-
|
|
4
|
+
import { R as K } from "./rule-xErZqYmH.js";
|
|
5
|
+
import { s as g } from "./app-DKUCzcrc.js";
|
|
6
6
|
const a = n([]), i = n(!1), l = n(!1), f = n(null), p = n(null), u = n(!1);
|
|
7
7
|
function B() {
|
|
8
8
|
const v = h();
|
package/package.json
CHANGED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { d as i } from "./dayjs.min-AoirQCgL.js";
|
|
2
|
-
import { defineStore as p, storeToRefs as T } from "pinia";
|
|
3
|
-
import { ref as l } from "vue";
|
|
4
|
-
import { b as c, g as y } from "./app-DOFDND9j.js";
|
|
5
|
-
import { s as S } from "./iteration-DmuDXP8U.js";
|
|
6
|
-
import { i as f, f as g } from "./utils-BZkjJbju.js";
|
|
7
|
-
const u = {
|
|
8
|
-
async readTimesheets(t, e) {
|
|
9
|
-
return y(await c().get(`timesheet?start=${t}&end=${e}`));
|
|
10
|
-
},
|
|
11
|
-
async updateTimesheet(t, e) {
|
|
12
|
-
await c().put(`timesheet/${t}`, e);
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
function A(t) {
|
|
16
|
-
const e = t.map((n) => {
|
|
17
|
-
const { startedAt: s, endedAt: r } = n, a = i(f(s)), o = r ? i(f(r)) : null, m = (o == null ? void 0 : o.diff(a, "minute", !1)) || 0, h = o ? g(m) : "", d = "YYYY-MM-DD hh:mm a";
|
|
18
|
-
return {
|
|
19
|
-
...n,
|
|
20
|
-
start: a.format(d),
|
|
21
|
-
end: o ? o.format(d) : "",
|
|
22
|
-
totalMin: m,
|
|
23
|
-
duration: h
|
|
24
|
-
};
|
|
25
|
-
});
|
|
26
|
-
return S(e, { selector: "start" });
|
|
27
|
-
}
|
|
28
|
-
const D = p("timesheet", () => {
|
|
29
|
-
const t = l([]);
|
|
30
|
-
async function e(s, r) {
|
|
31
|
-
const a = await u.readTimesheets(
|
|
32
|
-
i(s).startOf("day").toISOString(),
|
|
33
|
-
i(r).endOf("day").toISOString()
|
|
34
|
-
);
|
|
35
|
-
t.value = A(a);
|
|
36
|
-
}
|
|
37
|
-
async function n(s, r, a) {
|
|
38
|
-
await u.updateTimesheet(s.restaurantId, {
|
|
39
|
-
id: s._id,
|
|
40
|
-
startAt: r,
|
|
41
|
-
endAt: a
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
timesheets: t,
|
|
46
|
-
readTimesheet: e,
|
|
47
|
-
updateTimesheet: n
|
|
48
|
-
};
|
|
49
|
-
}), b = () => {
|
|
50
|
-
const t = D();
|
|
51
|
-
return {
|
|
52
|
-
...t,
|
|
53
|
-
...T(t)
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
export {
|
|
57
|
-
b as u
|
|
58
|
-
};
|