@feedmepos/mf-hrm-portal 2.4.1 → 2.4.2-dev.2
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-BgnhS8P1.js → ApprovalCodeList-b8usXKo8.js} +14 -15
- package/dist/{AuditLogList-BMEw3z3C.js → AuditLogList-DqbgzFAs.js} +12 -12
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-WeFI9muF.js +459 -0
- package/dist/EmployeeList-NM0guUbU.js +896 -0
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BCNKeDZY.js +90 -0
- package/dist/{GrantUserList-DePGsJq1.js → GrantUserList-B-p8Qghu.js} +15 -16
- package/dist/Main-BrhCJsik.js +101 -0
- package/dist/{Main-hUOeiddV.js → Main-D_EXStcl.js} +2274 -2280
- package/dist/{Main-BX2dD-ti.js → Main-x6An4Vlq.js} +5 -5
- package/dist/MyPosProfile-CG1PZ5p4.js +360 -0
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +126 -0
- package/dist/{PermissionSetList-BHOjAjHj.js → PermissionSetList-D4Vdbk10.js} +107 -108
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CFyGZpKr.js +4212 -0
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CTxqUf16.js +1797 -0
- package/dist/RoleForm.vue_vue_type_script_setup_true_lang-DUhqZaQv.js +547 -0
- package/dist/RoleList-DFcy90mE.js +274 -0
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B8dH021B.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DiWJzXvb.js} +1 -1
- package/dist/{ScheduleGeneralPage-WJu4dwH_.js → ScheduleGeneralPage-O7ohVH-K.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-DvcZjDJA.js → ScheduleModal.vue_vue_type_script_setup_true_lang-DOkdX3vt.js} +187 -186
- package/dist/{SchedulePage-BOiSyw9s.js → SchedulePage-WT_Ttars.js} +16 -16
- package/dist/{SchedulePositionPage-NR8GaPxx.js → SchedulePositionPage-13qwxMn2.js} +3 -3
- package/dist/{SelectFilter-xIFxmOuf.js → SelectFilter-DbE6YV-6.js} +1 -1
- package/dist/TeamMemberList-CWfXQcO3.js +2082 -0
- package/dist/TimesheetList-Bp2hRf7V.js +408 -0
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-fDOF4GYa.js → TimesheetList.vue_vue_type_style_index_0_scoped_ffd7f807_lang-_tXql6vR.js} +7 -7
- package/dist/{app-DJOt_dse.js → app-D-6Rxcbg.js} +7690 -3886
- package/dist/app.js +3 -3
- package/dist/{approval-code-D3J-F40I.js → approval-code-Ba9JpPf4.js} +1 -1
- package/dist/{dayjs.min-YpmHqmB1.js → dayjs.min-dCnie4oC.js} +24 -24
- package/dist/employee-B5qCkaCi.js +237 -0
- package/dist/{grant-user-kU9gjiVw.js → grant-user-Dpla60s_.js} +1 -1
- package/dist/{iteration-RLqokZ_t.js → index-D8G0ElDc.js} +573 -558
- package/dist/{lodash-C6YpC6VN.js → lodash-CucBZWOa.js} +1 -1
- package/dist/member-grant-CZILo1nC.js +54 -0
- package/dist/restaurant-CD6RZ8XG.js +49 -0
- package/dist/role-54DbS-Cy.js +91 -0
- package/dist/rule-DzTp1Kjh.js +845 -0
- 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/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/employee-merge.d.ts +33 -0
- package/dist/src/helpers/iteration.d.ts +9 -2
- 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/restaurant-lookup.d.ts +19 -0
- package/dist/src/helpers/role-merge.d.ts +11 -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/restaurant.d.ts +7 -7
- package/dist/src/stores/team.d.ts +30 -0
- 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/views/audit-log/locales/index.d.ts +12 -0
- package/dist/src/views/hr/locales/index.d.ts +20 -0
- package/dist/src/views/hr/role/RoleForm.vue.d.ts +29 -2
- package/dist/src/views/hr/timesheet/timesheet-view.d.ts +29 -0
- 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 +720 -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/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-HpBmohxh.js → useAppStore-C_LStOtj.js} +1 -1
- package/dist/{useLoading-WAX5d520.js → useLoading-CJ-DUrnR.js} +1 -1
- package/dist/{useReportPermissions-C2eS3P4D.js → useReportPermissions-C7TLMKuR.js} +22 -22
- package/dist/useSsoProviders-DhmUc7LW.js +41 -0
- package/package.json +2 -2
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DNA8eHc4.js +0 -438
- package/dist/EmployeeList-BXO4vI9g.js +0 -776
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-D69N78Sp.js +0 -45
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
- package/dist/Main-DNViVR_m.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-Bu7YDHSf.js +0 -4181
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-e6wGaXo3.js +0 -35
- package/dist/RoleList-Dx7Bstb_.js +0 -740
- package/dist/TeamMemberList-Dro66DME.js +0 -1150
- package/dist/TimesheetList-DO3uT60w.js +0 -402
- package/dist/employee-DfoS6h1_.js +0 -209
- package/dist/restaurant-D30tjUi3.js +0 -2685
- package/dist/role-DzH4jGCM.js +0 -91
- package/dist/rule-8KZ8d8qL.js +0 -780
- package/dist/string-VNuQNweN.js +0 -15
package/dist/role-DzH4jGCM.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { defineStore as _, storeToRefs as x } from "pinia";
|
|
2
|
-
import { ref as w } from "vue";
|
|
3
|
-
import { u as b } from "./app-DJOt_dse.js";
|
|
4
|
-
import { s as y } from "./iteration-RLqokZ_t.js";
|
|
5
|
-
import { g as f, b as p, u as v } from "./restaurant-D30tjUi3.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
|
-
};
|