@feedmepos/mf-hrm-portal 2.3.2-dev.9 → 2.3.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-gb0bre9J.js → ApprovalCodeList-C9r8CGNH.js} +15 -14
- package/dist/{AuditLogList-9cwS6bL7.js → AuditLogList-Cu-KcQKa.js} +152 -147
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BQ-uIsTN.js +438 -0
- package/dist/EmployeeList-BaFqZnFM.js +776 -0
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-Be1OU1_r.js +45 -0
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
- package/dist/{GrantUserList-yU2NqFVO.js → GrantUserList-Bjhx60M7.js} +16 -15
- package/dist/Main-CJQpjOgY.js +96 -0
- package/dist/{Main-4KwMqF3h.js → Main-DHiTgiDR.js} +5 -5
- package/dist/{Main-BS_Lk_eB.js → Main-LpfQqR_u.js} +999 -1005
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
- package/dist/{PermissionSetList-D7SS1iAr.js → PermissionSetList-C0OZ_dvE.js} +80 -80
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-T7dkd5Uv.js +4167 -0
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-EwU7gHP7.js +35 -0
- package/dist/RoleList-DpyW5XLs.js +740 -0
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang--dsZOhnv.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CqP-Dn1X.js} +1 -1
- package/dist/{ScheduleGeneralPage-Pq6ufiDu.js → ScheduleGeneralPage-BNHi5jGf.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-DKFJLsTW.js → ScheduleModal.vue_vue_type_script_setup_true_lang-B609MZoP.js} +186 -187
- package/dist/{SchedulePage-8EAOfiJx.js → SchedulePage-CrP5_m3p.js} +13 -13
- package/dist/{SchedulePositionPage-CGXeUnju.js → SchedulePositionPage-ei_NKAUw.js} +3 -3
- package/dist/{SelectFilter-C-UEVLla.js → SelectFilter-CEYQ-ViE.js} +1 -1
- package/dist/TeamMemberList-rPiKKu2b.js +1154 -0
- package/dist/TimesheetList-B1L4WkNh.js +402 -0
- package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-By6YR-k2.js +58 -0
- package/dist/{app-BohKQtlz.js → app-BzlH-2cN.js} +4015 -7796
- package/dist/app.js +3 -3
- package/dist/{approval-code-Bfvxsg8h.js → approval-code-CWq2ce3u.js} +1 -1
- package/dist/{dayjs.min-C0MqTPg1.js → dayjs.min-D6T4JzVv.js} +21 -21
- package/dist/employee-Bw7kRokg.js +209 -0
- package/dist/{grant-user-LZ3b6siI.js → grant-user-q_mkj3Vh.js} +1 -1
- package/dist/{index-DDDG-LHm.js → iteration-Dz0e08VH.js} +726 -698
- package/dist/{lodash-BRqMda7F.js → lodash-DGG_-VgI.js} +1 -1
- package/dist/restaurant-DJBQY9N5.js +2688 -0
- package/dist/role-CiRbkZSm.js +92 -0
- package/dist/rule-DMgkHpva.js +783 -0
- package/dist/src/api/employee/index.d.ts +2 -1
- package/dist/src/api/timesheet/index.d.ts +1 -1
- 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/employee.d.ts +7 -1
- package/dist/src/stores/restaurant.d.ts +8 -68
- package/dist/src/stores/team.d.ts +0 -30
- package/dist/src/stores/timesheet.d.ts +51 -66
- package/dist/src/types/team.d.ts +1 -17
- package/dist/src/types/timesheet.d.ts +0 -3
- package/dist/src/views/audit-log/constants.d.ts +1 -1
- package/dist/src/views/audit-log/locales/index.d.ts +16 -12
- 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-DV13z6oc.js → useAppStore-TRX-PQD4.js} +1 -1
- package/dist/{useLoading-Fcnnfywt.js → useLoading-W3YSF8OB.js} +1 -1
- package/dist/{useReportPermissions-BcyVoKVq.js → useReportPermissions-CCkCAaGO.js} +13 -13
- package/package.json +3 -3
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DR-c15gr.js +0 -459
- package/dist/EmployeeList-DjyoW1we.js +0 -896
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BBWlADve.js +0 -90
- package/dist/Main-BuG7SPnC.js +0 -101
- package/dist/MyPosProfile-CuDzRaRS.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-u1UlV2Aw.js +0 -4208
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CYkv2x_y.js +0 -1831
- package/dist/RoleForm.vue_vue_type_script_setup_true_lang-hiMgwiya.js +0 -547
- package/dist/RoleList-B3P-LQYV.js +0 -265
- package/dist/TeamMemberList-Bd1O44Ur.js +0 -2087
- package/dist/TimesheetList-CSCmigCM.js +0 -437
- package/dist/employee-DWxT78W2.js +0 -172
- package/dist/iteration-CcXrOMQe.js +0 -30
- package/dist/member-grant-a3AGCWfT.js +0 -54
- package/dist/restaurant-pL7vHt-H.js +0 -52
- package/dist/role--EKCVqho.js +0 -98
- package/dist/rule-Db3gFVHx.js +0 -843
- 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/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/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/timesheet-NYW1P4rf.js +0 -76
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { defineStore as m, storeToRefs as y } from "pinia";
|
|
2
|
-
import { ref as i, computed as R } from "vue";
|
|
3
|
-
import { useCoreStore as g } from "@feedmepos/mf-common";
|
|
4
|
-
import { b as f, g as w } from "./app-BohKQtlz.js";
|
|
5
|
-
const I = {
|
|
6
|
-
async readRestaurants() {
|
|
7
|
-
return w(await f().get("/hr-restaurants"));
|
|
8
|
-
},
|
|
9
|
-
async saveOperationalHours(e, a) {
|
|
10
|
-
await f(`restaurants/${e}/schedules`).patch(
|
|
11
|
-
"operational-hours",
|
|
12
|
-
{ operatingHours: a }
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
}, h = m("hrm-restaurant", () => {
|
|
16
|
-
const { currentBusiness: e } = g(), a = i([]), v = R(() => new Map(a.value.map((r) => [r._id, r]))), o = i(!1), u = i(null);
|
|
17
|
-
let t = null, s = null;
|
|
18
|
-
async function p(r = !1) {
|
|
19
|
-
var c, d;
|
|
20
|
-
const n = ((c = e.value) == null ? void 0 : c._id) ?? ((d = e.value) == null ? void 0 : d.id) ?? null;
|
|
21
|
-
if (!n) {
|
|
22
|
-
a.value = [], u.value = null, t = null, s = null;
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
if (u.value && u.value !== n && (a.value = [], u.value = null), s && s !== n && (t = null, s = null), !r && u.value === n) return;
|
|
26
|
-
if (!r && t && s === n)
|
|
27
|
-
return await t;
|
|
28
|
-
let l = null;
|
|
29
|
-
try {
|
|
30
|
-
o.value = !0, l = (async () => {
|
|
31
|
-
a.value = await I.readRestaurants(), u.value = n;
|
|
32
|
-
})(), t = l, s = n, await l;
|
|
33
|
-
} finally {
|
|
34
|
-
t === l && (t = null, s = null), o.value = !1;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
restaurants: a,
|
|
39
|
-
restaurantsById: v,
|
|
40
|
-
isLoading: o,
|
|
41
|
-
readRestaurants: p
|
|
42
|
-
};
|
|
43
|
-
}), A = () => {
|
|
44
|
-
const e = h();
|
|
45
|
-
return {
|
|
46
|
-
...e,
|
|
47
|
-
...y(e)
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
export {
|
|
51
|
-
A as u
|
|
52
|
-
};
|
package/dist/role--EKCVqho.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { defineStore as B, storeToRefs as b } from "pinia";
|
|
2
|
-
import { ref as v } from "vue";
|
|
3
|
-
import { useCoreStore as x } from "@feedmepos/mf-common";
|
|
4
|
-
import "./index-DDDG-LHm.js";
|
|
5
|
-
import { g as d, b as f } from "./app-BohKQtlz.js";
|
|
6
|
-
import { s as y } from "./iteration-CcXrOMQe.js";
|
|
7
|
-
import { u as g } from "./restaurant-pL7vHt-H.js";
|
|
8
|
-
const p = {
|
|
9
|
-
async readRoles() {
|
|
10
|
-
return d(await f().get("/pos-roles"));
|
|
11
|
-
},
|
|
12
|
-
async createRole(t) {
|
|
13
|
-
return d(await f().post("/pos-roles", t));
|
|
14
|
-
},
|
|
15
|
-
async updateRole(t, i) {
|
|
16
|
-
return d(await f().put(`/pos-roles/${t}`, i));
|
|
17
|
-
},
|
|
18
|
-
async deleteRole(t) {
|
|
19
|
-
return d(
|
|
20
|
-
await f().put(`/pos-roles/${t._id}`, {
|
|
21
|
-
restaurantIds: [],
|
|
22
|
-
role: t
|
|
23
|
-
})
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
async function m(t) {
|
|
28
|
-
var n;
|
|
29
|
-
const { restaurantsById: i } = g(), s = /* @__PURE__ */ new Map();
|
|
30
|
-
for (const e of t) {
|
|
31
|
-
const r = {
|
|
32
|
-
id: e.restaurantId,
|
|
33
|
-
name: ((n = i.value.get(e.restaurantId)) == null ? void 0 : n.profile.name) || ""
|
|
34
|
-
}, c = s.get(e._id);
|
|
35
|
-
c ? c.restaurants.some((R) => R.id === e.restaurantId) || c.restaurants.push(r) : s.set(e._id, {
|
|
36
|
-
...e,
|
|
37
|
-
restaurants: [r]
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
const l = [...s.values()];
|
|
41
|
-
for (const e of l)
|
|
42
|
-
e.restaurants = y(e.restaurants, { selector: "name" });
|
|
43
|
-
return y(l, { selector: "name" });
|
|
44
|
-
}
|
|
45
|
-
const h = B("hrm-role", () => {
|
|
46
|
-
const { currentBusiness: t } = x(), i = g(), s = v([]), l = v(!1), n = v(null);
|
|
47
|
-
let e = null, r = null;
|
|
48
|
-
async function c(o = !1) {
|
|
49
|
-
var w;
|
|
50
|
-
const a = ((w = t.value) == null ? void 0 : w._id) ?? null;
|
|
51
|
-
if (!a) {
|
|
52
|
-
s.value = [], n.value = null, e = null, r = null;
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
if (n.value && n.value !== a && (s.value = [], n.value = null), r && r !== a && (e = null, r = null), !o && n.value === a) return;
|
|
56
|
-
if (!o && e && r === a)
|
|
57
|
-
return await e;
|
|
58
|
-
let u = null;
|
|
59
|
-
try {
|
|
60
|
-
l.value = !0, u = (async () => {
|
|
61
|
-
await i.readRestaurants();
|
|
62
|
-
const _ = await p.readRoles();
|
|
63
|
-
s.value = await m(_), n.value = a;
|
|
64
|
-
})(), e = u, r = a, await u;
|
|
65
|
-
} finally {
|
|
66
|
-
e === u && (e = null, r = null), l.value = !1;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
async function R(o) {
|
|
70
|
-
const a = await p.createRole(o);
|
|
71
|
-
s.value = await m(a);
|
|
72
|
-
}
|
|
73
|
-
async function I(o, a) {
|
|
74
|
-
const u = await p.updateRole(o, a);
|
|
75
|
-
s.value = await m(u);
|
|
76
|
-
}
|
|
77
|
-
async function S(o) {
|
|
78
|
-
const a = await p.deleteRole(o);
|
|
79
|
-
s.value = await m(a);
|
|
80
|
-
}
|
|
81
|
-
return {
|
|
82
|
-
roles: s,
|
|
83
|
-
isLoading: l,
|
|
84
|
-
readRoles: c,
|
|
85
|
-
createRole: R,
|
|
86
|
-
updateRole: I,
|
|
87
|
-
deleteRole: S
|
|
88
|
-
};
|
|
89
|
-
}), P = () => {
|
|
90
|
-
const t = h();
|
|
91
|
-
return {
|
|
92
|
-
...t,
|
|
93
|
-
...b(t)
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
export {
|
|
97
|
-
P as u
|
|
98
|
-
};
|