@feedmepos/mf-hrm-portal 2.3.2-dev.15 → 2.3.2-dev.17
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-qB2eycv0.js → ApprovalCodeList-Bo8IbNxV.js} +15 -14
- package/dist/{AuditLogList-DaqYMXFA.js → AuditLogList-C7CjPILA.js} +833 -823
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C-4BaMN-.js +438 -0
- package/dist/EmployeeList-BOP-gaTp.js +776 -0
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BEOR-8QD.js +45 -0
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
- package/dist/{GrantUserList-DqeHBPqr.js → GrantUserList-CXWGr3Wo.js} +16 -15
- package/dist/Main-BrP1frfO.js +96 -0
- package/dist/{Main-8SeOYhVr.js → Main-DeuWov9n.js} +5 -5
- package/dist/{Main-DnWIkti6.js → Main-bru10M5U.js} +2097 -2102
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
- package/dist/{PermissionSetList-Bh0o_HFX.js → PermissionSetList--xt0piQz.js} +137 -136
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-D5nvRsW3.js +4167 -0
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DiNDrCy0.js +35 -0
- package/dist/RoleList-BEE-8EQK.js +740 -0
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BSmFLxZS.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Cqo5kHcF.js} +1 -1
- package/dist/{ScheduleGeneralPage-C0Y9XHXR.js → ScheduleGeneralPage-DxhgBLix.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-B1293tLU.js → ScheduleModal.vue_vue_type_script_setup_true_lang-DGPwmNQb.js} +186 -187
- package/dist/{SchedulePage-Cqp0mIOQ.js → SchedulePage-oBdEvGWN.js} +20 -20
- package/dist/{SchedulePositionPage-DpF7fZ2G.js → SchedulePositionPage-BZps-kKs.js} +3 -3
- package/dist/{SelectFilter-jjUAj29l.js → SelectFilter-Bs_LCk3L.js} +1 -1
- package/dist/TeamMemberList-DCgNcs4P.js +1154 -0
- package/dist/{TimesheetList-CzUVfPGT.js → TimesheetList-BW6iCigo.js} +9 -9
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CZ6axjWg.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Dv66Af5C.js} +3 -3
- package/dist/{app-IdmhLBBn.js → app-B8xnhtVI.js} +3706 -7569
- package/dist/app.js +3 -3
- package/dist/{approval-code-BOfGQEGW.js → approval-code-B0jU1bvk.js} +1 -1
- package/dist/{dayjs.min-DkHZ47ah.js → dayjs.min-CdpSCqn1.js} +34 -34
- package/dist/{employee-CJXt2fuN.js → employee-DlFGiUgI.js} +47 -48
- package/dist/{grant-user-Bj6DpBWc.js → grant-user-C3C6glCk.js} +1 -1
- package/dist/{iteration-BRk48OAH.js → iteration-BM0iyDBd.js} +1 -1
- package/dist/{lodash-CDREeRGa.js → lodash-KK9U7NAy.js} +1 -1
- package/dist/restaurant-C7o2Yk6j.js +2688 -0
- package/dist/{role-CtYVs62K.js → role-DYCorsOh.js} +20 -19
- package/dist/rule-BhGHZqKO.js +783 -0
- package/dist/src/components/CollapsibleWrapper.vue.d.ts +3 -11
- package/dist/src/helpers/permission-set.d.ts +102 -1
- package/dist/src/helpers/rule.d.ts +2 -2
- package/dist/src/helpers/string.d.ts +1 -10
- package/dist/src/router/shared.d.ts +1 -3
- package/dist/src/stores/restaurant.d.ts +7 -7
- package/dist/src/stores/team.d.ts +1 -31
- package/dist/src/types/team.d.ts +1 -17
- package/dist/src/views/audit-log/locales/index.d.ts +0 -12
- package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +1 -1
- package/dist/src/views/hr/locales/index.d.ts +0 -20
- package/dist/src/views/hr/role/RoleForm.vue.d.ts +2 -29
- 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 +0 -11
- package/dist/src/views/team/components/ConditionPermission.vue.d.ts +0 -11
- package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +0 -21
- package/dist/src/views/team/components/PosRolePermission.vue.d.ts +0 -11
- package/dist/src/views/team/locales/index.d.ts +0 -716
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -48
- package/dist/src/views/team/{components/MemberStatusBadge.vue.d.ts → member/MemberInfo.vue.d.ts} +2 -2
- package/dist/src/views/team/member/TeamMemberList.vue.d.ts +0 -1
- package/dist/string-VNuQNweN.js +15 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DAW1zVPH.js → useAppStore-C1lk2Q2j.js} +1 -1
- package/dist/{useLoading-C-AZgSLr.js → useLoading-CXdGsnHm.js} +1 -1
- package/dist/useReportPermissions-D_I4rFVo.js +82 -0
- package/package.json +3 -3
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-orzPqq0L.js +0 -459
- package/dist/EmployeeList-h0fWCjea.js +0 -896
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-rg4r9aRR.js +0 -90
- package/dist/Main-s-s803fq.js +0 -101
- package/dist/MyPosProfile-ChVMjpLY.js +0 -360
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +0 -126
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-05XZu7a9.js +0 -4212
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-rb5MPBnA.js +0 -1797
- package/dist/RoleForm.vue_vue_type_script_setup_true_lang-CwzYGZNY.js +0 -547
- package/dist/RoleList-BjcuUCyF.js +0 -274
- package/dist/TeamMemberList-B2wxF6Yn.js +0 -2082
- package/dist/member-grant-BkZ_oF44.js +0 -54
- package/dist/restaurant-BEdgW6Se.js +0 -49
- package/dist/rule-CWR80AmG.js +0 -839
- package/dist/src/api/my-pos-profile/index.d.ts +0 -3
- package/dist/src/api/sso-provider/index.d.ts +0 -5
- package/dist/src/api/staff-invite/index.d.ts +0 -16
- package/dist/src/components/form/SegmentedTabs.vue.d.ts +0 -23
- package/dist/src/composables/useMenuAccess.d.ts +0 -56
- package/dist/src/composables/useSsoProviders.d.ts +0 -19
- package/dist/src/composables/useStaffInviteProviders.d.ts +0 -8
- package/dist/src/composables/useTenant.d.ts +0 -11
- package/dist/src/helpers/member-grant.d.ts +0 -36
- package/dist/src/helpers/my-pos-profile.d.ts +0 -37
- package/dist/src/helpers/pos-assignment-rows.d.ts +0 -28
- package/dist/src/helpers/staff-invite.d.ts +0 -54
- package/dist/src/router/courtGuard.d.ts +0 -4
- package/dist/src/router/menu-access-guard.d.ts +0 -17
- package/dist/src/types/my-pos-profile.d.ts +0 -24
- package/dist/src/types/sso-provider.d.ts +0 -10
- package/dist/src/types/staff-invite.d.ts +0 -100
- package/dist/src/views/my-pos-profile/MyPosProfile.vue.d.ts +0 -2
- package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +0 -4
- package/dist/src/views/my-pos-profile/locales/index.d.ts +0 -236
- package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +0 -51
- package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -44
- package/dist/src/views/team/member/ExistingMemberNotice.vue.d.ts +0 -11
- package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +0 -35
- package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +0 -19
- package/dist/string-DZQ1uNjn.js +0 -22
- package/dist/useReportPermissions-ld6buoVe.js +0 -80
- package/dist/useSsoProviders-DeTogbyW.js +0 -41
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineStore as
|
|
1
|
+
import { defineStore as x, storeToRefs as b } from "pinia";
|
|
2
2
|
import { ref as w } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
import { s as
|
|
5
|
-
import { u as
|
|
3
|
+
import { useCoreStore as B } from "@feedmepos/mf-common";
|
|
4
|
+
import { s as v } from "./iteration-BM0iyDBd.js";
|
|
5
|
+
import { g as f, b as p, u as I } from "./restaurant-C7o2Yk6j.js";
|
|
6
6
|
const R = {
|
|
7
7
|
async readRoles() {
|
|
8
8
|
return f(await p().get("/pos-roles"));
|
|
@@ -23,7 +23,7 @@ const R = {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
async function m(e) {
|
|
26
|
-
const { restaurants: c } =
|
|
26
|
+
const { restaurants: c } = I(), u = e.reduce((n, a) => {
|
|
27
27
|
var d;
|
|
28
28
|
const s = n.findIndex((o) => o._id === a._id), r = {
|
|
29
29
|
id: a.restaurantId,
|
|
@@ -32,15 +32,16 @@ async function m(e) {
|
|
|
32
32
|
return s < 0 ? n.push({
|
|
33
33
|
...a,
|
|
34
34
|
restaurants: [r]
|
|
35
|
-
}) : n[s].restaurants.some((o) => o.id === a.restaurantId) || (n[s].restaurants =
|
|
35
|
+
}) : n[s].restaurants.some((o) => o.id === a.restaurantId) || (n[s].restaurants = v([...n[s].restaurants, r], { selector: "name" })), n;
|
|
36
36
|
}, []);
|
|
37
|
-
return
|
|
37
|
+
return v(u, { selector: "name" });
|
|
38
38
|
}
|
|
39
|
-
const h =
|
|
40
|
-
const e =
|
|
39
|
+
const h = x("hrm-role", () => {
|
|
40
|
+
const { currentBusiness: e } = B(), c = I(), u = w([]), n = w(!1), a = w(null);
|
|
41
41
|
let s = null, r = null;
|
|
42
42
|
async function d(l = !1) {
|
|
43
|
-
|
|
43
|
+
var y;
|
|
44
|
+
const t = ((y = e.value) == null ? void 0 : y._id) ?? null;
|
|
44
45
|
if (!t) {
|
|
45
46
|
u.value = [], a.value = null, s = null, r = null;
|
|
46
47
|
return;
|
|
@@ -52,8 +53,8 @@ const h = _("hrm-role", () => {
|
|
|
52
53
|
try {
|
|
53
54
|
n.value = !0, i = (async () => {
|
|
54
55
|
await c.readRestaurants();
|
|
55
|
-
const
|
|
56
|
-
u.value = await m(
|
|
56
|
+
const _ = await R.readRoles();
|
|
57
|
+
u.value = await m(_), a.value = t;
|
|
57
58
|
})(), s = i, r = t, await i;
|
|
58
59
|
} finally {
|
|
59
60
|
s === i && (s = null, r = null), n.value = !1;
|
|
@@ -63,11 +64,11 @@ const h = _("hrm-role", () => {
|
|
|
63
64
|
const t = await R.createRole(l);
|
|
64
65
|
u.value = await m(t);
|
|
65
66
|
}
|
|
66
|
-
async function
|
|
67
|
+
async function g(l, t) {
|
|
67
68
|
const i = await R.updateRole(l, t);
|
|
68
69
|
u.value = await m(i);
|
|
69
70
|
}
|
|
70
|
-
async function
|
|
71
|
+
async function S(l) {
|
|
71
72
|
const t = await R.deleteRole(l);
|
|
72
73
|
u.value = await m(t);
|
|
73
74
|
}
|
|
@@ -76,16 +77,16 @@ const h = _("hrm-role", () => {
|
|
|
76
77
|
isLoading: n,
|
|
77
78
|
readRoles: d,
|
|
78
79
|
createRole: o,
|
|
79
|
-
updateRole:
|
|
80
|
-
deleteRole:
|
|
80
|
+
updateRole: g,
|
|
81
|
+
deleteRole: S
|
|
81
82
|
};
|
|
82
|
-
}),
|
|
83
|
+
}), L = () => {
|
|
83
84
|
const e = h();
|
|
84
85
|
return {
|
|
85
86
|
...e,
|
|
86
|
-
...
|
|
87
|
+
...b(e)
|
|
87
88
|
};
|
|
88
89
|
};
|
|
89
90
|
export {
|
|
90
|
-
|
|
91
|
+
L as u
|
|
91
92
|
};
|