@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
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function d(e, r = []) {
|
|
2
|
+
const c = JSON.parse(JSON.stringify(e));
|
|
3
|
+
return r.length > 0 && r.forEach((s) => {
|
|
4
|
+
c[s] !== void 0 && delete c[s];
|
|
5
|
+
}), c;
|
|
6
|
+
}
|
|
7
|
+
function f(e, r) {
|
|
8
|
+
return r === void 0 ? e : typeof r == "function" ? r(e) : `${e[r]}`;
|
|
9
|
+
}
|
|
10
|
+
function g(e, r) {
|
|
11
|
+
return d(e).sort((s, u) => {
|
|
12
|
+
let n = f(s, r == null ? void 0 : r.selector), t = f(u, r == null ? void 0 : r.selector);
|
|
13
|
+
if (r != null && r.descending) {
|
|
14
|
+
const [a, l] = [n, t];
|
|
15
|
+
n = l, t = a;
|
|
16
|
+
}
|
|
17
|
+
return n.localeCompare(t, "en", { numeric: !0, sensitivity: "base" });
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function i(e, r) {
|
|
21
|
+
return e.reduce((c, s) => {
|
|
22
|
+
const u = f(s, r);
|
|
23
|
+
return c[u] = [...c[u] || [], s], c;
|
|
24
|
+
}, {});
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
d as c,
|
|
28
|
+
i as g,
|
|
29
|
+
g as s
|
|
30
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { m as n } from "./app-DEZT4wdV.js";
|
|
2
|
+
import { z as u } from "./rule-Ccopk8R_.js";
|
|
3
|
+
const m = [
|
|
4
|
+
n.Subject.Business.restaurant,
|
|
5
|
+
n.Subject.Business.role,
|
|
6
|
+
n.Subject.Restaurant.restaurant,
|
|
7
|
+
n.Subject.Business.inventory_stock
|
|
8
|
+
], c = (s) => m.includes(s.subject);
|
|
9
|
+
function l(s, t) {
|
|
10
|
+
return t.length > 0 || s.some((o) => !o.inverted && !c(o));
|
|
11
|
+
}
|
|
12
|
+
function d(s) {
|
|
13
|
+
return s.filter(c);
|
|
14
|
+
}
|
|
15
|
+
const b = {
|
|
16
|
+
customPermissions: [],
|
|
17
|
+
permissions: [],
|
|
18
|
+
permissionSetIds: [],
|
|
19
|
+
posUser: void 0
|
|
20
|
+
};
|
|
21
|
+
function S(s) {
|
|
22
|
+
const { customPermissions: t, permissions: o } = u({
|
|
23
|
+
userPermissions: s.userPermissions,
|
|
24
|
+
inheritedPermissions: s.inheritedPermissions,
|
|
25
|
+
reportSubjects: s.reportSubjects,
|
|
26
|
+
defaultReportSubjects: s.defaultReportSubjects
|
|
27
|
+
}), { posUser: e, savedPosUser: r } = s;
|
|
28
|
+
return {
|
|
29
|
+
customPermissions: t,
|
|
30
|
+
permissions: o,
|
|
31
|
+
permissionSetIds: s.permissionSetIds,
|
|
32
|
+
posUser: e ? {
|
|
33
|
+
...e,
|
|
34
|
+
name: e.name || (r == null ? void 0 : r.name) || s.fallbackName,
|
|
35
|
+
code: e.code || (r == null ? void 0 : r.code) || "",
|
|
36
|
+
passcode: e.passcode,
|
|
37
|
+
roles: e.roles.filter((i) => !!i.roleId)
|
|
38
|
+
} : e === null ? null : void 0
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function f(s, t) {
|
|
42
|
+
const { posUser: o, ...e } = s;
|
|
43
|
+
if (!o || !t || o.passcode !== t.passcode) return { ...e, posUser: o };
|
|
44
|
+
const { passcode: r, ...i } = o;
|
|
45
|
+
return { ...e, posUser: i };
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
b as E,
|
|
49
|
+
m as W,
|
|
50
|
+
S as b,
|
|
51
|
+
l as h,
|
|
52
|
+
f as t,
|
|
53
|
+
d as w
|
|
54
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
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-DEZT4wdV.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
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
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-Bfdseotz.js";
|
|
5
|
+
import { g as d, b as f } from "./app-DEZT4wdV.js";
|
|
6
|
+
import { s as y } from "./iteration-CcXrOMQe.js";
|
|
7
|
+
import { u as g } from "./restaurant-ejyX2jEG.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
|
+
};
|