@feedmepos/mf-hrm-portal 2.3.1 → 2.3.2-dev.10
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-CcvVEriB.js → ApprovalCodeList-RKU5B8SO.js} +14 -15
- package/dist/{AuditLogList-C61-SnWG.js → AuditLogList-DuDCMjGR.js} +796 -720
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-pL2zRc67.js +459 -0
- package/dist/EmployeeList-nrYsS5uz.js +896 -0
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-7S2w36aY.js +90 -0
- package/dist/{GrantUserList-1ErIV7b7.js → GrantUserList-BSjeC4MC.js} +15 -16
- package/dist/{Main-R0qyd8Ea.js → Main-CpuHaXU6.js} +5 -5
- package/dist/Main-DbdoVLCE.js +101 -0
- package/dist/{Main-CD8OS1rM.js → Main-DtmCBbTR.js} +1005 -999
- package/dist/MyPosProfile-CsTCfGNT.js +360 -0
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +126 -0
- package/dist/{PermissionSetList-ig3oxdhh.js → PermissionSetList-B1c-uGZO.js} +80 -80
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Toq6qrLx.js +4208 -0
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-D6Z9z_Yt.js +1831 -0
- package/dist/RoleForm.vue_vue_type_script_setup_true_lang-TWTVo_9Y.js +547 -0
- package/dist/RoleList-CwaGNsFy.js +265 -0
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Dg7S6nFO.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-C2ekVXdR.js} +1 -1
- package/dist/{ScheduleGeneralPage-QYijA95u.js → ScheduleGeneralPage-BVtXmxtp.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-Bnyqna_E.js → ScheduleModal.vue_vue_type_script_setup_true_lang-DdsQ8v-5.js} +187 -186
- package/dist/{SchedulePage-BrBZmuMj.js → SchedulePage-3qksmT2I.js} +193 -205
- package/dist/{SchedulePositionPage-NCvNg8v5.js → SchedulePositionPage-DAU20KPZ.js} +3 -3
- package/dist/{SelectFilter-r-QOCO99.js → SelectFilter-BpzBwBmQ.js} +2 -3
- package/dist/TeamMemberList-Bdpm40i3.js +2087 -0
- package/dist/TimesheetList-CL_eJp2h.js +437 -0
- package/dist/{app-DKHtjxyC.js → app-DEZT4wdV.js} +7789 -3967
- package/dist/app.js +3 -3
- package/dist/{approval-code-BIpLingm.js → approval-code-BZTz5OXK.js} +4 -4
- package/dist/{dayjs.min-CNNMpacl.js → dayjs.min-B55I-uhI.js} +21 -21
- package/dist/employee-C6z5i6O4.js +172 -0
- package/dist/{grant-user-uZmvD_bw.js → grant-user-B2rYztyf.js} +2 -2
- package/dist/{iteration-DkcNkScw.js → index-Bfdseotz.js} +698 -726
- package/dist/iteration-CcXrOMQe.js +30 -0
- package/dist/{lodash-g-62RoFP.js → lodash-B8bqa6a9.js} +1 -1
- package/dist/member-grant-BIpKkuu8.js +54 -0
- package/dist/restaurant-ejyX2jEG.js +52 -0
- package/dist/role-C_t3DDlG.js +98 -0
- package/dist/rule-Ccopk8R_.js +843 -0
- package/dist/src/api/audit-log/index.d.ts +2 -0
- package/dist/src/api/employee/index.d.ts +1 -2
- package/dist/src/api/my-pos-profile/index.d.ts +3 -0
- package/dist/src/api/sso-provider/index.d.ts +5 -0
- package/dist/src/api/staff-invite/index.d.ts +16 -0
- package/dist/src/api/timesheet/index.d.ts +1 -1
- package/dist/src/components/CollapsibleWrapper.vue.d.ts +11 -3
- package/dist/src/components/form/SegmentedTabs.vue.d.ts +23 -0
- package/dist/src/composables/useMenuAccess.d.ts +56 -0
- package/dist/src/composables/useSsoProviders.d.ts +19 -0
- package/dist/src/composables/useStaffInviteProviders.d.ts +8 -0
- package/dist/src/helpers/member-grant.d.ts +36 -0
- package/dist/src/helpers/my-pos-profile.d.ts +37 -0
- package/dist/src/helpers/permission-set.d.ts +1 -102
- package/dist/src/helpers/pos-assignment-rows.d.ts +28 -0
- package/dist/src/helpers/rule.d.ts +2 -2
- package/dist/src/helpers/staff-invite.d.ts +54 -0
- package/dist/src/helpers/string.d.ts +10 -1
- package/dist/src/router/menu-access-guard.d.ts +17 -0
- package/dist/src/router/shared.d.ts +3 -1
- package/dist/src/stores/approval-code.d.ts +1 -1
- package/dist/src/stores/employee.d.ts +3 -9
- package/dist/src/stores/grant-user.d.ts +1 -1
- package/dist/src/stores/permission-assignment.d.ts +2 -2
- package/dist/src/stores/permission-set.d.ts +2 -2
- package/dist/src/stores/restaurant.d.ts +70 -10
- package/dist/src/stores/role.d.ts +2 -2
- package/dist/src/stores/team.d.ts +31 -1
- package/dist/src/stores/timesheet.d.ts +68 -53
- package/dist/src/types/my-pos-profile.d.ts +24 -0
- package/dist/src/types/sso-provider.d.ts +10 -0
- package/dist/src/types/staff-invite.d.ts +100 -0
- package/dist/src/types/team.d.ts +17 -1
- package/dist/src/types/timesheet.d.ts +3 -0
- package/dist/src/views/audit-log/locales/index.d.ts +40 -0
- package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +19 -0
- package/dist/src/views/hr/locales/index.d.ts +24 -4
- package/dist/src/views/hr/role/RoleForm.vue.d.ts +29 -2
- package/dist/src/views/my-pos-profile/MyPosProfile.vue.d.ts +2 -0
- package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +4 -0
- package/dist/src/views/my-pos-profile/locales/index.d.ts +236 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +1 -1
- package/dist/src/views/team/components/BasePermission.vue.d.ts +11 -0
- package/dist/src/views/team/components/ConditionPermission.vue.d.ts +11 -0
- package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +51 -0
- package/dist/src/views/team/{member/MemberInfo.vue.d.ts → components/MemberStatusBadge.vue.d.ts} +2 -2
- package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +21 -0
- package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +44 -0
- package/dist/src/views/team/components/PosRolePermission.vue.d.ts +11 -0
- package/dist/src/views/team/locales/index.d.ts +716 -0
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +48 -3
- package/dist/src/views/team/member/ExistingMemberNotice.vue.d.ts +11 -0
- package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +35 -0
- package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +19 -0
- package/dist/src/views/team/member/TeamMemberList.vue.d.ts +1 -0
- package/dist/string-DZQ1uNjn.js +22 -0
- package/dist/style.css +1 -1
- package/dist/timesheet-CZHcebqS.js +76 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-Bp0PwbAN.js → useAppStore-DfqsbhT2.js} +1 -1
- package/dist/{useLoading-sgL8DRUz.js → useLoading-CQnX5WjI.js} +1 -1
- package/dist/useMessage-_ywT_N9X.js +17 -0
- package/dist/{useReportPermissions-CcIHwTRI.js → useReportPermissions-kTjftFk7.js} +13 -13
- package/package.json +4 -4
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BZ-ZDviW.js +0 -438
- package/dist/EmployeeList-Cucr2mxn.js +0 -776
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-4XV2qPxn.js +0 -45
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
- package/dist/Main-B-F_cdM_.js +0 -96
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +0 -243
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ClG4YhnF.js +0 -4167
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DaAx79pC.js +0 -35
- package/dist/RoleList-BqR_Vf8H.js +0 -740
- package/dist/TeamMemberList-B6ZnfKV0.js +0 -1154
- package/dist/TimesheetList-BvsUk6kd.js +0 -402
- package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-D3--3EhR.js +0 -58
- package/dist/employee-H2J0xRqJ.js +0 -209
- package/dist/restaurant-CHpkjUPy.js +0 -1880
- package/dist/role-CkxDtfst.js +0 -92
- package/dist/rule-BWvSqhBk.js +0 -783
- package/dist/string-VNuQNweN.js +0 -15
package/dist/role-CkxDtfst.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { defineStore as x, storeToRefs as b } from "pinia";
|
|
2
|
-
import { ref as w } from "vue";
|
|
3
|
-
import { useCoreStore as B } from "@feedmepos/mf-common";
|
|
4
|
-
import { s as v } from "./iteration-DkcNkScw.js";
|
|
5
|
-
import { g as f, b as p, u as I } from "./restaurant-CHpkjUPy.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 } = I(), 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 = v([...n[s].restaurants, r], { selector: "name" })), n;
|
|
36
|
-
}, []);
|
|
37
|
-
return v(u, { selector: "name" });
|
|
38
|
-
}
|
|
39
|
-
const A = x("role", () => {
|
|
40
|
-
const { currentBusiness: e } = B(), c = I(), u = w([]), n = w(!1), a = w(null);
|
|
41
|
-
let s = null, r = null;
|
|
42
|
-
async function d(l = !1) {
|
|
43
|
-
var y;
|
|
44
|
-
const t = ((y = e.value) == null ? void 0 : y._id) ?? null;
|
|
45
|
-
if (!t) {
|
|
46
|
-
u.value = [], a.value = null, s = null, r = null;
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
if (a.value && a.value !== t && (u.value = [], a.value = null), r && r !== t && (s = null, r = null), !l && a.value === t) return;
|
|
50
|
-
if (!l && s && r === t)
|
|
51
|
-
return await s;
|
|
52
|
-
let i = null;
|
|
53
|
-
try {
|
|
54
|
-
n.value = !0, i = (async () => {
|
|
55
|
-
await c.readRestaurants();
|
|
56
|
-
const _ = await R.readRoles();
|
|
57
|
-
u.value = await m(_), a.value = t;
|
|
58
|
-
})(), s = i, r = t, await i;
|
|
59
|
-
} finally {
|
|
60
|
-
s === i && (s = null, r = null), n.value = !1;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
async function o(l) {
|
|
64
|
-
const t = await R.createRole(l);
|
|
65
|
-
u.value = await m(t);
|
|
66
|
-
}
|
|
67
|
-
async function g(l, t) {
|
|
68
|
-
const i = await R.updateRole(l, t);
|
|
69
|
-
u.value = await m(i);
|
|
70
|
-
}
|
|
71
|
-
async function S(l) {
|
|
72
|
-
const t = await R.deleteRole(l);
|
|
73
|
-
u.value = await m(t);
|
|
74
|
-
}
|
|
75
|
-
return {
|
|
76
|
-
roles: u,
|
|
77
|
-
isLoading: n,
|
|
78
|
-
readRoles: d,
|
|
79
|
-
createRole: o,
|
|
80
|
-
updateRole: g,
|
|
81
|
-
deleteRole: S
|
|
82
|
-
};
|
|
83
|
-
}), L = () => {
|
|
84
|
-
const e = A();
|
|
85
|
-
return {
|
|
86
|
-
...e,
|
|
87
|
-
...b(e)
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
export {
|
|
91
|
-
L as u
|
|
92
|
-
};
|