@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,265 @@
|
|
|
1
|
+
import { defineComponent as Z, computed as y, ref as S, onMounted as ee, resolveComponent as C, createElementBlock as $, openBlock as _, Fragment as A, createBlock as x, createElementVNode as r, createVNode as m, unref as a, withCtx as R, h as u, renderList as oe, toDisplayString as p, createTextVNode as T, resolveDynamicComponent as M, withModifiers as se, nextTick as z } from "vue";
|
|
2
|
+
import { e as d } from "./index-Bfdseotz.js";
|
|
3
|
+
import { useI18n as te } from "@feedmepos/mf-common";
|
|
4
|
+
import { useDialog as ne, useSnackbar as re, useBreakpoints as ae, components as K, FmButtonColorThemeVariant as le } from "@feedmepos/ui-library";
|
|
5
|
+
import { _ as ie } from "./app-DEZT4wdV.js";
|
|
6
|
+
import { _ as D } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
|
|
7
|
+
import { _ as ce } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
8
|
+
import { f as b, r as me, h as ue } from "./rule-Ccopk8R_.js";
|
|
9
|
+
import { u as de } from "./restaurant-ejyX2jEG.js";
|
|
10
|
+
import { u as pe } from "./role-C_t3DDlG.js";
|
|
11
|
+
import { u as fe } from "./useReportPermissions-kTjftFk7.js";
|
|
12
|
+
import { _ as _e } from "./RoleForm.vue_vue_type_script_setup_true_lang-TWTVo_9Y.js";
|
|
13
|
+
const he = {
|
|
14
|
+
class: "space-y-8"
|
|
15
|
+
}, ve = {
|
|
16
|
+
class: "flex justify-end xs:px-16"
|
|
17
|
+
}, ge = {
|
|
18
|
+
class: "flex flex-col h-full overflow-auto"
|
|
19
|
+
}, ye = {
|
|
20
|
+
class: "pb-64 sm:hidden md:hidden lg:hidden"
|
|
21
|
+
}, Ce = {
|
|
22
|
+
class: "space-y-4"
|
|
23
|
+
}, xe = {
|
|
24
|
+
class: "fm-typo-en-body-lg-600"
|
|
25
|
+
}, Re = {
|
|
26
|
+
class: "text-fm-color-typo-secondary"
|
|
27
|
+
}, be = {
|
|
28
|
+
class: "line-clamp-2"
|
|
29
|
+
}, we = {
|
|
30
|
+
class: "font-bold"
|
|
31
|
+
}, Fe = {
|
|
32
|
+
class: "flex items-start gap-4"
|
|
33
|
+
}, Le = {
|
|
34
|
+
class: "line-clamp-2"
|
|
35
|
+
}, Ee = {
|
|
36
|
+
class: "font-bold"
|
|
37
|
+
}, ke = {
|
|
38
|
+
class: "flex items-start gap-4"
|
|
39
|
+
}, Ue = {
|
|
40
|
+
class: "line-clamp-2"
|
|
41
|
+
}, Se = {
|
|
42
|
+
class: "font-bold"
|
|
43
|
+
}, We = /* @__PURE__ */ Z({
|
|
44
|
+
__name: "RoleList",
|
|
45
|
+
setup(Te, {
|
|
46
|
+
expose: W
|
|
47
|
+
}) {
|
|
48
|
+
const {
|
|
49
|
+
t: s
|
|
50
|
+
} = te(), {
|
|
51
|
+
allReportPermissions: w
|
|
52
|
+
} = fe(), B = de(), j = y(() => B.restaurants.value), I = y(() => j.value.map((e) => e._id));
|
|
53
|
+
function F(e, o) {
|
|
54
|
+
const n = o === d.F_RULE_SUBJECT.enum.report ? w.value : void 0, t = b(e, o, n);
|
|
55
|
+
return ["-", "All"].includes(t) ? () => null : () => u(K.FmTooltip, {
|
|
56
|
+
"z-index": "999",
|
|
57
|
+
placement: "top",
|
|
58
|
+
class: "ml-2"
|
|
59
|
+
}, {
|
|
60
|
+
content: () => u("div", [s("hr.role.tooltip.labels.permission"), ...e.filter((i) => i.subject === o).map((i) => u("div", ["- ", me(i).label]))]),
|
|
61
|
+
default: () => u(K.FmIcon, {
|
|
62
|
+
name: "info",
|
|
63
|
+
color: le.NeutralGray400
|
|
64
|
+
})
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function J(e, o) {
|
|
68
|
+
const n = o === d.F_RULE_SUBJECT.enum.report ? w.value : void 0, t = b(e, o, n);
|
|
69
|
+
return () => t === "All" ? t : u("div", {
|
|
70
|
+
class: "flex items-center"
|
|
71
|
+
}, [t, F(e, o)()]);
|
|
72
|
+
}
|
|
73
|
+
function N(e) {
|
|
74
|
+
return [{
|
|
75
|
+
label: s("hr.role.form.update"),
|
|
76
|
+
onClick: () => L(e)
|
|
77
|
+
}, {
|
|
78
|
+
label: s("hr.role.remove.title"),
|
|
79
|
+
onClick: () => Q(e),
|
|
80
|
+
itemClass: "text-fm-color-typo-error",
|
|
81
|
+
disabled: ue(e.permissions)
|
|
82
|
+
}];
|
|
83
|
+
}
|
|
84
|
+
const G = ({
|
|
85
|
+
role: e,
|
|
86
|
+
className: o = ""
|
|
87
|
+
}) => m("div", {
|
|
88
|
+
class: o,
|
|
89
|
+
onClick: (n) => {
|
|
90
|
+
n.stopPropagation();
|
|
91
|
+
}
|
|
92
|
+
}, [m(D, {
|
|
93
|
+
items: N(e)
|
|
94
|
+
}, null)]), q = [{
|
|
95
|
+
accessorKey: "name",
|
|
96
|
+
header: () => s("hr.role.columns.name"),
|
|
97
|
+
enableSorting: !1
|
|
98
|
+
}, {
|
|
99
|
+
accessorKey: "operation",
|
|
100
|
+
header: () => s("hr.role.columns.operation"),
|
|
101
|
+
cell: (e) => u(J(e.row.original.permissions, d.F_RULE_SUBJECT.enum.order)),
|
|
102
|
+
enableSorting: !1
|
|
103
|
+
}, {
|
|
104
|
+
accessorKey: "report",
|
|
105
|
+
header: () => s("hr.role.columns.report"),
|
|
106
|
+
cell: (e) => u(J(e.row.original.permissions, d.F_RULE_SUBJECT.enum.report)),
|
|
107
|
+
enableSorting: !1
|
|
108
|
+
}, {
|
|
109
|
+
accessorKey: "restaurants",
|
|
110
|
+
header: () => s("hr.role.columns.restaurants"),
|
|
111
|
+
cell: (e) => e.row.original.restaurants.map((o, n) => {
|
|
112
|
+
const t = o.code, i = `${t ? t + " - " : ""}${o.name}`;
|
|
113
|
+
return u("div", (n ? `
|
|
114
|
+
` : "") + i);
|
|
115
|
+
}),
|
|
116
|
+
enableSorting: !1
|
|
117
|
+
}, {
|
|
118
|
+
id: "action",
|
|
119
|
+
size: 52,
|
|
120
|
+
meta: {
|
|
121
|
+
cellClass: "pl-16",
|
|
122
|
+
headerContentClass: "-mx-16"
|
|
123
|
+
},
|
|
124
|
+
cell: (e) => G({
|
|
125
|
+
role: e.row.original,
|
|
126
|
+
className: "flex w-full items-center justify-end"
|
|
127
|
+
})
|
|
128
|
+
}], L = async (e) => {
|
|
129
|
+
var o;
|
|
130
|
+
g.value = e._id, await z(), (o = U.value) == null || o.trigger();
|
|
131
|
+
}, f = pe(), H = y(() => {
|
|
132
|
+
const e = f.roles.value || [];
|
|
133
|
+
return (I.value.length === 0 ? e : e.filter((n) => n.restaurants.some((t) => I.value.includes(t.id)))).map((n) => {
|
|
134
|
+
const t = n.restaurants.map((i) => {
|
|
135
|
+
const c = B.restaurantsById.value.get(i.id);
|
|
136
|
+
return {
|
|
137
|
+
...i,
|
|
138
|
+
// Prefer live data from restaurantStore so names populate reactively
|
|
139
|
+
// even when restaurants loaded after roles.
|
|
140
|
+
name: (c == null ? void 0 : c.profile.name) || i.name,
|
|
141
|
+
code: c == null ? void 0 : c.profile.code
|
|
142
|
+
};
|
|
143
|
+
});
|
|
144
|
+
return {
|
|
145
|
+
...n,
|
|
146
|
+
restaurants: t
|
|
147
|
+
};
|
|
148
|
+
});
|
|
149
|
+
}), v = y(() => {
|
|
150
|
+
var o;
|
|
151
|
+
return (o = H.value) == null ? void 0 : o.filter((n) => {
|
|
152
|
+
const t = k.value.toLowerCase(), i = n.name.toLowerCase().includes(t), l = (n.restaurants || []).some((h) => {
|
|
153
|
+
var V;
|
|
154
|
+
return h.name.toLowerCase().includes(t) || ((V = h.code) == null ? void 0 : V.toLowerCase().includes(t));
|
|
155
|
+
});
|
|
156
|
+
return i || l;
|
|
157
|
+
});
|
|
158
|
+
}), P = ne(), E = re(), {
|
|
159
|
+
breakpoints: O
|
|
160
|
+
} = ae(), Q = (e) => {
|
|
161
|
+
P.open({
|
|
162
|
+
title: s("hr.role.remove.title"),
|
|
163
|
+
message: s("hr.role.remove.message", {
|
|
164
|
+
name: e.name
|
|
165
|
+
}),
|
|
166
|
+
minWidth: O.value.lg ? 588 : 0,
|
|
167
|
+
primaryActions: {
|
|
168
|
+
text: s("common.remove"),
|
|
169
|
+
close: !1,
|
|
170
|
+
variant: "destructive"
|
|
171
|
+
},
|
|
172
|
+
secondaryActions: {
|
|
173
|
+
text: s("common.cancel"),
|
|
174
|
+
close: !0
|
|
175
|
+
}
|
|
176
|
+
}).onPrimary(async () => {
|
|
177
|
+
await f.deleteRole(e).then(() => E.open({
|
|
178
|
+
message: s("hr.role.remove.successMessage", {
|
|
179
|
+
name: e.name
|
|
180
|
+
}),
|
|
181
|
+
type: "success"
|
|
182
|
+
})).catch((o) => E.open({
|
|
183
|
+
message: o,
|
|
184
|
+
type: "error"
|
|
185
|
+
})), P.close();
|
|
186
|
+
});
|
|
187
|
+
}, k = S(""), U = S(), g = S(void 0);
|
|
188
|
+
async function X() {
|
|
189
|
+
var e;
|
|
190
|
+
g.value = void 0, await z(), (e = U.value) == null || e.trigger();
|
|
191
|
+
}
|
|
192
|
+
async function Y() {
|
|
193
|
+
if (f.roles.value.length === 0)
|
|
194
|
+
try {
|
|
195
|
+
await f.readRoles();
|
|
196
|
+
} catch (e) {
|
|
197
|
+
console.error("Failed to load roles:", e), E.open({
|
|
198
|
+
message: e instanceof Error ? e.message : String(e),
|
|
199
|
+
type: "error"
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return ee(() => {
|
|
204
|
+
Y();
|
|
205
|
+
}), W({
|
|
206
|
+
create: X
|
|
207
|
+
}), (e, o) => {
|
|
208
|
+
const n = C("FmSearch"), t = C("FmTable"), i = C("FmListItem"), c = C("FmList");
|
|
209
|
+
return _(), $(A, null, [(_(), x(_e, {
|
|
210
|
+
id: g.value,
|
|
211
|
+
key: g.value,
|
|
212
|
+
ref_key: "roleFormRef",
|
|
213
|
+
ref: U
|
|
214
|
+
}, null, 8, ["id"])), r("div", he, [r("div", ve, [m(n, {
|
|
215
|
+
modelValue: k.value,
|
|
216
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => k.value = l),
|
|
217
|
+
class: "w-[320px] xs:w-full",
|
|
218
|
+
autofocus: "",
|
|
219
|
+
placeholder: a(s)("hr.role.search.placeholder") + " / " + a(s)("hr.restaurant.search.placeholder")
|
|
220
|
+
}, null, 8, ["modelValue", "placeholder"])]), m(ie, null, {
|
|
221
|
+
default: R(() => [r("div", ge, [m(ce, {
|
|
222
|
+
"is-loading": a(f).isLoading.value,
|
|
223
|
+
"is-empty": v.value.length === 0,
|
|
224
|
+
"collapse-at": "xs",
|
|
225
|
+
title: a(s)("hr.role.noData.title"),
|
|
226
|
+
subtitle: a(s)("hr.role.noData.subtitle")
|
|
227
|
+
}, {
|
|
228
|
+
default: R(() => [m(t, {
|
|
229
|
+
class: "xs:hidden",
|
|
230
|
+
"column-defs": q,
|
|
231
|
+
"row-data": v.value,
|
|
232
|
+
"page-size": v.value.length,
|
|
233
|
+
loading: a(f).isLoading.value,
|
|
234
|
+
"pin-header-row": "",
|
|
235
|
+
"hide-footer": "",
|
|
236
|
+
"shrink-at": !1,
|
|
237
|
+
onRowClick: o[1] || (o[1] = (l) => L(l.original))
|
|
238
|
+
}, null, 8, ["row-data", "page-size", "loading"])]),
|
|
239
|
+
_: 1
|
|
240
|
+
}, 8, ["is-loading", "is-empty", "title", "subtitle"]), r("div", ye, [m(c, {
|
|
241
|
+
separator: ""
|
|
242
|
+
}, {
|
|
243
|
+
default: R(() => [(_(!0), $(A, null, oe(v.value, (l) => (_(), x(i, {
|
|
244
|
+
key: l._id,
|
|
245
|
+
class: "py-12 px-16 items-center justify-between",
|
|
246
|
+
onClick: (h) => L(l)
|
|
247
|
+
}, {
|
|
248
|
+
default: R(() => [r("div", Ce, [r("p", xe, p(l.name), 1), r("div", Re, [r("p", be, [r("span", we, p(a(s)("hr.role.labels.restaurant")) + ":", 1), T(" " + p(l.restaurants.map((h) => h.name).join(", ")), 1)]), r("p", Fe, [r("span", Le, [r("span", Ee, p(a(s)("hr.role.labels.operation")) + ":", 1), T(" " + p(a(b)(l.permissions, a(d.F_RULE_SUBJECT).enum.order)), 1)]), (_(), x(M(F(l.permissions, a(d.F_RULE_SUBJECT).enum.order))))]), r("p", ke, [r("span", Ue, [r("span", Se, p(a(s)("hr.role.labels.report")) + ":", 1), T(" " + p(a(b)(l.permissions, a(d.F_RULE_SUBJECT).enum.report, a(w))), 1)]), (_(), x(M(F(l.permissions, a(d.F_RULE_SUBJECT).enum.report))))])])]), r("div", {
|
|
249
|
+
onClick: o[2] || (o[2] = se(() => {
|
|
250
|
+
}, ["stop"]))
|
|
251
|
+
}, [m(D, {
|
|
252
|
+
items: N(l)
|
|
253
|
+
}, null, 8, ["items"])])]),
|
|
254
|
+
_: 2
|
|
255
|
+
}, 1032, ["onClick"]))), 128))]),
|
|
256
|
+
_: 1
|
|
257
|
+
})])])]),
|
|
258
|
+
_: 1
|
|
259
|
+
})])], 64);
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
export {
|
|
264
|
+
We as default
|
|
265
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as k, watch as he, computed as z, reactive as Pe, nextTick as we, defineComponent as Ne, createBlock as ne, openBlock as b, withCtx as T, createElementVNode as i, createVNode as H, toDisplayString as v, unref as o, createElementBlock as E, withDirectives as fe, withKeys as Ce, vModelText as ye, normalizeClass as ge, createTextVNode as V, createCommentVNode as Z, Fragment as Ie, renderList as Se } from "vue";
|
|
2
2
|
import { useI18n as ie } from "@feedmepos/mf-common";
|
|
3
|
-
import { az as oe, p as D, aD as ke, aE as se, aF as pe, y as Ee, aG as $e, K as te, e as _, ay as xe, av as W } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { az as oe, p as D, aD as ke, aE as se, aF as pe, y as Ee, aG as $e, K as te, e as _, ay as xe, av as W } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-DdsQ8v-5.js";
|
|
4
4
|
function be() {
|
|
5
5
|
return oe.map((e) => ({ id: e.id, name: e.name }));
|
|
6
6
|
}
|
|
@@ -2,8 +2,8 @@ import { ref as b, reactive as Y, computed as L, defineComponent as N, createBlo
|
|
|
2
2
|
import { useRouter as K } from "vue-router";
|
|
3
3
|
import { useSnackbar as j } from "@feedmepos/ui-library";
|
|
4
4
|
import { useCoreStore as F, useI18n as E } from "@feedmepos/mf-common";
|
|
5
|
-
import { R as G } from "./app-
|
|
6
|
-
import { b as g, o as A, g as V, V as J, a1 as z, p as U, ay as Q, av as C, aA as X, aB as Z, ai as ee, ax as se } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { R as G } from "./app-DEZT4wdV.js";
|
|
6
|
+
import { b as g, o as A, g as V, V as J, a1 as z, p as U, ay as Q, av as C, aA as X, aB as Z, ai as ee, ax as se } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-DdsQ8v-5.js";
|
|
7
7
|
const te = [
|
|
8
8
|
{ key: "payrates", labelKey: "scheduling.general.payRates" },
|
|
9
9
|
{ key: "overtime", labelKey: "scheduling.general.overtime" },
|