@feedmepos/mf-hrm-portal 2.3.2-dev.10 → 2.3.2-dev.12
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-RKU5B8SO.js → ApprovalCodeList-CCh9mNJh.js} +7 -7
- package/dist/AuditLogList-DCADUZ5s.js +2019 -0
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-pL2zRc67.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BZQNDOg7.js} +10 -10
- package/dist/{EmployeeList-nrYsS5uz.js → EmployeeList-CRI7XjzX.js} +8 -8
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-7S2w36aY.js → FormSection.vue_vue_type_script_setup_true_lang-y9_hxba6.js} +1 -1
- package/dist/{GrantUserList-BSjeC4MC.js → GrantUserList-DbMngkpK.js} +8 -8
- package/dist/{Main-DbdoVLCE.js → Main-BsFUfsmP.js} +29 -29
- package/dist/{Main-DtmCBbTR.js → Main-CrnM6wr8.js} +2168 -2169
- package/dist/{Main-CpuHaXU6.js → Main-D4Zq5AXi.js} +5 -5
- package/dist/{MyPosProfile-CsTCfGNT.js → MyPosProfile-B4cE47im.js} +1 -1
- package/dist/{PermissionSetList-B1c-uGZO.js → PermissionSetList-D_2x-mDD.js} +112 -113
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BM9Von-l.js +4212 -0
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-D6Z9z_Yt.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-COX-N0k6.js} +414 -448
- package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-TWTVo_9Y.js → RoleForm.vue_vue_type_script_setup_true_lang-D8V8KWiL.js} +41 -41
- package/dist/{RoleList-CwaGNsFy.js → RoleList-BC-c7fqn.js} +105 -96
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-C2ekVXdR.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DBbuSrXV.js} +1 -1
- package/dist/{ScheduleGeneralPage-BVtXmxtp.js → ScheduleGeneralPage-eytzOZQr.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-DdsQ8v-5.js → ScheduleModal.vue_vue_type_script_setup_true_lang-CP-kToVO.js} +4 -4
- package/dist/{SchedulePage-3qksmT2I.js → SchedulePage-B0QirzAk.js} +17 -17
- package/dist/{SchedulePositionPage-DAU20KPZ.js → SchedulePositionPage-BAE-NQvL.js} +3 -3
- package/dist/{SelectFilter-BpzBwBmQ.js → SelectFilter-DrLJhxt6.js} +1 -1
- package/dist/TeamMemberList-CHkiL_q9.js +2083 -0
- package/dist/TimesheetList-BZuddmzy.js +402 -0
- package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-LCUO-ogb.js +58 -0
- package/dist/{app-DEZT4wdV.js → app-B9qAxMj1.js} +3516 -3470
- package/dist/app.js +1 -1
- package/dist/{approval-code-BZTz5OXK.js → approval-code-CTgj9q6m.js} +1 -1
- package/dist/{dayjs.min-B55I-uhI.js → dayjs.min-giCSI3N8.js} +22 -22
- package/dist/employee-BD3NXG8h.js +210 -0
- package/dist/{grant-user-B2rYztyf.js → grant-user-jeTFzGU1.js} +1 -1
- package/dist/{index-Bfdseotz.js → iteration-Tyg43nH0.js} +726 -698
- package/dist/{lodash-B8bqa6a9.js → lodash-CZsDR_DU.js} +1 -1
- package/dist/{member-grant-BIpKkuu8.js → member-grant-DsEMLN1N.js} +2 -2
- package/dist/restaurant-CDJ3VjdH.js +49 -0
- package/dist/role-BDRWt87n.js +91 -0
- package/dist/{rule-Ccopk8R_.js → rule-EiO87cJJ.js} +309 -313
- package/dist/src/api/employee/index.d.ts +2 -1
- package/dist/src/api/timesheet/index.d.ts +1 -1
- package/dist/src/composables/useTenant.d.ts +11 -0
- package/dist/src/router/courtGuard.d.ts +4 -0
- package/dist/src/stores/employee.d.ts +7 -1
- package/dist/src/stores/restaurant.d.ts +1 -61
- package/dist/src/stores/team.d.ts +1 -1
- package/dist/src/stores/timesheet.d.ts +51 -66
- package/dist/src/types/timesheet.d.ts +0 -3
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DfqsbhT2.js → useAppStore-CkUZ2H5h.js} +1 -1
- package/dist/{useLoading-CQnX5WjI.js → useLoading-DJHJM5E0.js} +1 -1
- package/dist/useReportPermissions-2dfIX21b.js +80 -0
- package/dist/useSsoProviders-BarGHndw.js +41 -0
- package/package.json +2 -2
- package/dist/AuditLogList-DuDCMjGR.js +0 -2026
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Toq6qrLx.js +0 -4208
- package/dist/TeamMemberList-Bdpm40i3.js +0 -2087
- package/dist/TimesheetList-CL_eJp2h.js +0 -437
- package/dist/employee-C6z5i6O4.js +0 -172
- package/dist/iteration-CcXrOMQe.js +0 -30
- package/dist/restaurant-ejyX2jEG.js +0 -52
- package/dist/role-C_t3DDlG.js +0 -98
- package/dist/timesheet-CZHcebqS.js +0 -76
- package/dist/useReportPermissions-kTjftFk7.js +0 -82
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineStore as d, storeToRefs as v } from "pinia";
|
|
2
|
+
import { ref as i } from "vue";
|
|
3
|
+
import { b as c, g as p, u as m } from "./app-B9qAxMj1.js";
|
|
4
|
+
const R = {
|
|
5
|
+
async readRestaurants() {
|
|
6
|
+
return p(await c().get("/hr-restaurants"));
|
|
7
|
+
},
|
|
8
|
+
async saveOperationalHours(n, s) {
|
|
9
|
+
await c(`restaurants/${n}/schedules`).patch(
|
|
10
|
+
"operational-hours",
|
|
11
|
+
{ operatingHours: s }
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
}, g = d("hrm-restaurant", () => {
|
|
15
|
+
const n = m(), s = i([]), r = i(!1), u = i(null);
|
|
16
|
+
let a = null, e = null;
|
|
17
|
+
async function f(o = !1) {
|
|
18
|
+
const t = n.id.value ?? null;
|
|
19
|
+
if (!t) {
|
|
20
|
+
s.value = [], u.value = null, a = null, e = null;
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (u.value && u.value !== t && (s.value = [], u.value = null), e && e !== t && (a = null, e = null), !o && u.value === t) return;
|
|
24
|
+
if (!o && a && e === t)
|
|
25
|
+
return await a;
|
|
26
|
+
let l = null;
|
|
27
|
+
try {
|
|
28
|
+
r.value = !0, l = (async () => {
|
|
29
|
+
s.value = await R.readRestaurants(), u.value = t;
|
|
30
|
+
})(), a = l, e = t, await l;
|
|
31
|
+
} finally {
|
|
32
|
+
a === l && (a = null, e = null), r.value = !1;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
restaurants: s,
|
|
37
|
+
isLoading: r,
|
|
38
|
+
readRestaurants: f
|
|
39
|
+
};
|
|
40
|
+
}), I = () => {
|
|
41
|
+
const n = g();
|
|
42
|
+
return {
|
|
43
|
+
...n,
|
|
44
|
+
...v(n)
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
I as u
|
|
49
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { defineStore as _, storeToRefs as x } from "pinia";
|
|
2
|
+
import { ref as w } from "vue";
|
|
3
|
+
import { g as f, b as p, u as b } from "./app-B9qAxMj1.js";
|
|
4
|
+
import { s as y } from "./iteration-Tyg43nH0.js";
|
|
5
|
+
import { u as v } from "./restaurant-CDJ3VjdH.js";
|
|
6
|
+
const R = {
|
|
7
|
+
async readRoles() {
|
|
8
|
+
return f(await p().get("/pos-roles"));
|
|
9
|
+
},
|
|
10
|
+
async createRole(e) {
|
|
11
|
+
return f(await p().post("/pos-roles", e));
|
|
12
|
+
},
|
|
13
|
+
async updateRole(e, c) {
|
|
14
|
+
return f(await p().put(`/pos-roles/${e}`, c));
|
|
15
|
+
},
|
|
16
|
+
async deleteRole(e) {
|
|
17
|
+
return f(
|
|
18
|
+
await p().put(`/pos-roles/${e._id}`, {
|
|
19
|
+
restaurantIds: [],
|
|
20
|
+
role: e
|
|
21
|
+
})
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
async function m(e) {
|
|
26
|
+
const { restaurants: c } = v(), u = e.reduce((n, a) => {
|
|
27
|
+
var d;
|
|
28
|
+
const s = n.findIndex((o) => o._id === a._id), r = {
|
|
29
|
+
id: a.restaurantId,
|
|
30
|
+
name: ((d = c.value.find((o) => o._id === a.restaurantId)) == null ? void 0 : d.profile.name) || ""
|
|
31
|
+
};
|
|
32
|
+
return s < 0 ? n.push({
|
|
33
|
+
...a,
|
|
34
|
+
restaurants: [r]
|
|
35
|
+
}) : n[s].restaurants.some((o) => o.id === a.restaurantId) || (n[s].restaurants = y([...n[s].restaurants, r], { selector: "name" })), n;
|
|
36
|
+
}, []);
|
|
37
|
+
return y(u, { selector: "name" });
|
|
38
|
+
}
|
|
39
|
+
const h = _("hrm-role", () => {
|
|
40
|
+
const e = b(), c = v(), u = w([]), n = w(!1), a = w(null);
|
|
41
|
+
let s = null, r = null;
|
|
42
|
+
async function d(l = !1) {
|
|
43
|
+
const t = e.id.value ?? null;
|
|
44
|
+
if (!t) {
|
|
45
|
+
u.value = [], a.value = null, s = null, r = null;
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (a.value && a.value !== t && (u.value = [], a.value = null), r && r !== t && (s = null, r = null), !l && a.value === t) return;
|
|
49
|
+
if (!l && s && r === t)
|
|
50
|
+
return await s;
|
|
51
|
+
let i = null;
|
|
52
|
+
try {
|
|
53
|
+
n.value = !0, i = (async () => {
|
|
54
|
+
await c.readRestaurants();
|
|
55
|
+
const S = await R.readRoles();
|
|
56
|
+
u.value = await m(S), a.value = t;
|
|
57
|
+
})(), s = i, r = t, await i;
|
|
58
|
+
} finally {
|
|
59
|
+
s === i && (s = null, r = null), n.value = !1;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
async function o(l) {
|
|
63
|
+
const t = await R.createRole(l);
|
|
64
|
+
u.value = await m(t);
|
|
65
|
+
}
|
|
66
|
+
async function I(l, t) {
|
|
67
|
+
const i = await R.updateRole(l, t);
|
|
68
|
+
u.value = await m(i);
|
|
69
|
+
}
|
|
70
|
+
async function g(l) {
|
|
71
|
+
const t = await R.deleteRole(l);
|
|
72
|
+
u.value = await m(t);
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
roles: u,
|
|
76
|
+
isLoading: n,
|
|
77
|
+
readRoles: d,
|
|
78
|
+
createRole: o,
|
|
79
|
+
updateRole: I,
|
|
80
|
+
deleteRole: g
|
|
81
|
+
};
|
|
82
|
+
}), C = () => {
|
|
83
|
+
const e = h();
|
|
84
|
+
return {
|
|
85
|
+
...e,
|
|
86
|
+
...x(e)
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export {
|
|
90
|
+
C as u
|
|
91
|
+
};
|