@feedmepos/mf-hrm-portal 2.3.2-dev.2 → 2.3.2-dev.20
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-sHnINTik.js → ApprovalCodeList-eCTF8Rwt.js} +7 -7
- package/dist/AuditLogList-YzR5ysmN.js +2021 -0
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BbsPesWY.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang--660w-zJ.js} +2 -2
- package/dist/{EmployeeList-D4oy5hXz.js → EmployeeList-C2ctTGCo.js} +8 -8
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-Cl053Tg1.js → FormSection.vue_vue_type_script_setup_true_lang-DWvJM14K.js} +1 -1
- package/dist/{GrantUserList-LWpqhl-5.js → GrantUserList-BoN1MUkB.js} +8 -8
- package/dist/{Main-PBJjfzBg.js → Main-BLmTdeYO.js} +5 -5
- package/dist/{Main-BWKb-QIE.js → Main-CIldvI5X.js} +2274 -2280
- package/dist/{Main-CVGiOYpC.js → Main-Di-083Pw.js} +29 -29
- package/dist/MyPosProfile-CctvT3RF.js +360 -0
- package/dist/{PermissionSetList-D2qZVlF4.js → PermissionSetList-BzvVAzwG.js} +126 -126
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JgrJvMly.js +4212 -0
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DRGTxOMW.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BdjAh48A.js} +414 -448
- package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-DFDTw0lj.js → RoleForm.vue_vue_type_script_setup_true_lang-WCNUeA3G.js} +74 -74
- package/dist/{RoleList-DG0crFzW.js → RoleList-wPupuMBG.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Cs0rhCa3.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DcBIt4DL.js} +1 -1
- package/dist/{ScheduleGeneralPage-C4J6jYtG.js → ScheduleGeneralPage-NCKqPyt5.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-3UqO6uPu.js → ScheduleModal.vue_vue_type_script_setup_true_lang-CG5Xxj3Q.js} +4 -4
- package/dist/{SchedulePage-ICzggri0.js → SchedulePage-BZ5bKLly.js} +197 -209
- package/dist/{SchedulePositionPage-BshUCd_C.js → SchedulePositionPage-CwHd3rf2.js} +3 -3
- package/dist/{SelectFilter-D9T0nFvG.js → SelectFilter-DLZNvKwI.js} +2 -3
- package/dist/TeamMemberList-D8uWsS0J.js +2082 -0
- package/dist/TimesheetList-K6doo0BX.js +408 -0
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BLqgALLe.js → TimesheetList.vue_vue_type_style_index_0_scoped_ffd7f807_lang-DFoIix3D.js} +7 -7
- package/dist/{app-n6d4AmtP.js → app-BGzac7xv.js} +5618 -4632
- package/dist/app.js +1 -1
- package/dist/{approval-code-1j1OoXt1.js → approval-code-BBNbWSqR.js} +4 -4
- package/dist/{dayjs.min-DdNivv4b.js → dayjs.min-ey-9Jb-9.js} +20 -20
- package/dist/employee-D_COMGXq.js +237 -0
- package/dist/{grant-user-BmTyexk3.js → grant-user-CTTTpewT.js} +2 -2
- package/dist/{iteration-y_jodvfN.js → index-CTqdA7gA.js} +573 -558
- package/dist/{lodash-B2eWEGH4.js → lodash-DNSDZgnL.js} +1 -1
- package/dist/member-grant-5DnD17dB.js +54 -0
- package/dist/restaurant-qoOY3iMJ.js +49 -0
- package/dist/role-BEbd5Qsi.js +91 -0
- package/dist/rule-BLG5i_xT.js +845 -0
- package/dist/src/api/audit-log/index.d.ts +2 -0
- package/dist/src/api/my-pos-profile/index.d.ts +1 -3
- package/dist/src/composables/useTenant.d.ts +11 -0
- package/dist/src/helpers/employee-merge.d.ts +33 -0
- package/dist/src/helpers/iteration.d.ts +9 -2
- package/dist/src/helpers/permission-set.d.ts +1 -102
- 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/router/courtGuard.d.ts +4 -0
- package/dist/src/stores/approval-code.d.ts +1 -1
- package/dist/src/stores/employee.d.ts +2 -2
- 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 +2 -2
- package/dist/src/stores/role.d.ts +2 -2
- package/dist/src/stores/team.d.ts +2 -2
- package/dist/src/stores/timesheet.d.ts +2 -2
- package/dist/src/types/my-pos-profile.d.ts +2 -3
- package/dist/src/views/audit-log/constants.d.ts +1 -1
- package/dist/src/views/audit-log/locales/index.d.ts +56 -0
- package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +19 -0
- package/dist/src/views/hr/locales/index.d.ts +4 -4
- package/dist/src/views/hr/timesheet/timesheet-view.d.ts +29 -0
- package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +1 -1
- package/dist/src/views/my-pos-profile/locales/index.d.ts +40 -4
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BPARQyvJ.js → useAppStore-BwUs5XGY.js} +1 -1
- package/dist/{useLoading-iPESFb6R.js → useLoading-DmAqc_Gx.js} +1 -1
- package/dist/useMessage-_ywT_N9X.js +17 -0
- package/dist/useReportPermissions-PEzIBX1U.js +80 -0
- package/dist/useSsoProviders-CwLbvOdH.js +41 -0
- package/package.json +5 -5
- package/dist/AuditLogList-C9C2emU9.js +0 -1950
- package/dist/MyPosProfile-BQCBFMFw.js +0 -301
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ZSREAS1r.js +0 -4243
- package/dist/TeamMemberList-C970Iqlj.js +0 -2086
- package/dist/TimesheetList-nxhr0EWj.js +0 -402
- package/dist/employee-BlfleiCU.js +0 -210
- package/dist/member-grant-CzZUdO_s.js +0 -55
- package/dist/restaurant-Dl6yx37M.js +0 -51
- package/dist/role-DfZi7Ssk.js +0 -93
- package/dist/rule-ChmhcGgA.js +0 -788
- package/dist/useReportPermissions-By-BoJZb.js +0 -82
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as ze, computed as y, ref as
|
|
2
|
-
import { l as W } from "./lodash-
|
|
3
|
-
import { e as be } from "./
|
|
1
|
+
import { defineComponent as ze, computed as y, ref as D, watch as T, onMounted as Le, resolveComponent as w, createBlock as M, openBlock as h, unref as o, withCtx as V, createElementVNode as c, createVNode as _, toDisplayString as O, createElementBlock as S, Fragment as z, renderList as ee, createCommentVNode as te, normalizeClass as he } from "vue";
|
|
2
|
+
import { l as W } from "./lodash-DNSDZgnL.js";
|
|
3
|
+
import { e as be } from "./index-CTqdA7gA.js";
|
|
4
4
|
import { useI18n as Ne } from "@feedmepos/mf-common";
|
|
5
|
-
import { useBreakpoints as
|
|
6
|
-
import { u as We, _ as Ge, a as _e } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { useBreakpoints as qe, useSnackbar as Ke, components as Te } from "@feedmepos/ui-library";
|
|
6
|
+
import { u as We, _ as Ge, a as _e } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang--660w-zJ.js";
|
|
7
7
|
import { u as Je } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
8
|
-
import { u as He } from "./useLoading-
|
|
9
|
-
import { u as Qe } from "./useReportPermissions-
|
|
10
|
-
import {
|
|
11
|
-
import { r as ae, h as tt,
|
|
12
|
-
import { u as rt } from "./restaurant-
|
|
13
|
-
import { u as ot } from "./role-
|
|
14
|
-
function
|
|
8
|
+
import { u as He } from "./useLoading-DmAqc_Gx.js";
|
|
9
|
+
import { u as Qe } from "./useReportPermissions-PEzIBX1U.js";
|
|
10
|
+
import { n as Xe, q as Ye, A as Ze, S as et } from "./app-BGzac7xv.js";
|
|
11
|
+
import { r as ae, h as tt, d as at, s as st, g as ge, e as lt } from "./rule-BLG5i_xT.js";
|
|
12
|
+
import { u as rt } from "./restaurant-qoOY3iMJ.js";
|
|
13
|
+
import { u as ot } from "./role-BEbd5Qsi.js";
|
|
14
|
+
function Kt(d) {
|
|
15
15
|
const n = [];
|
|
16
16
|
for (const { restaurantId: m, roleId: a } of d) {
|
|
17
17
|
if (!m) continue;
|
|
@@ -20,7 +20,7 @@ function Tt(d) {
|
|
|
20
20
|
}
|
|
21
21
|
return n;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Tt(d) {
|
|
24
24
|
return d.flatMap(
|
|
25
25
|
(n) => n.restaurantIds.map((m) => ({ restaurantId: m, roleId: n.roleId }))
|
|
26
26
|
);
|
|
@@ -68,7 +68,7 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
|
|
|
68
68
|
}, ht = { class: "flex flex-col gap-8" }, bt = { class: "flex flex-col gap-16 rounded-[16px] border border-fm-color-neutral-gray-200 p-16" }, _t = { class: "flex flex-col gap-8" }, gt = { class: "fm-typo-en-title-sm-600" }, yt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xt = { class: "flex flex-col gap-24" }, Rt = { class: "text-[18px] font-semibold leading-[24px] text-fm-color-typo-primary" }, It = { class: "mt-16 space-y-8" }, Ft = { class: "flex items-center" }, kt = { class: "h-[24px] w-[24px] flex items-center justify-center" }, wt = { class: "h-[24px] w-[24px] flex items-center justify-center" }, Vt = {
|
|
69
69
|
key: 0,
|
|
70
70
|
class: "ml-20 mt-8 flex max-w-[320px] flex-row items-start gap-8"
|
|
71
|
-
},
|
|
71
|
+
}, Ct = { class: "mt-8 whitespace-nowrap" }, Dt = { class: "flex gap-8 items-center justify-start" }, St = "condition-form-select-menu", Xt = /* @__PURE__ */ ze({
|
|
72
72
|
__name: "RoleForm",
|
|
73
73
|
props: {
|
|
74
74
|
id: {
|
|
@@ -88,22 +88,22 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
|
|
|
88
88
|
},
|
|
89
89
|
emits: ["created"],
|
|
90
90
|
setup(d, { expose: n, emit: m }) {
|
|
91
|
-
const { t: a } = Ne(), { breakpoints: u } =
|
|
92
|
-
|
|
91
|
+
const { t: a } = Ne(), { breakpoints: u } = qe(), x = y(() => u.value.xs || u.value.sm), v = rt(), P = y(() => v.restaurants.value), le = D(v.restaurants.value.length === 0);
|
|
92
|
+
T(
|
|
93
93
|
() => v.restaurants.value.length,
|
|
94
94
|
(e) => {
|
|
95
95
|
e > 0 && (le.value = !1);
|
|
96
96
|
}
|
|
97
97
|
);
|
|
98
|
-
const B = ot(), ye =
|
|
98
|
+
const B = ot(), ye = Ke(), xe = He(ye), {
|
|
99
99
|
fetchReportPermissions: re,
|
|
100
100
|
allReportPermissions: Re,
|
|
101
101
|
availableReportKeys: oe,
|
|
102
102
|
customReportKeys: Ie,
|
|
103
103
|
isLoaded: Fe
|
|
104
|
-
} = Qe(), L = d, ke = m, R =
|
|
104
|
+
} = Qe(), L = d, ke = m, R = D(!1), we = () => {
|
|
105
105
|
R.value = !R.value, R.value && fe();
|
|
106
|
-
}, Ve = y(() => L.id ? a("hr.role.form.update") : a("hr.role.form.addTitle")),
|
|
106
|
+
}, Ve = y(() => L.id ? a("hr.role.form.update") : a("hr.role.form.addTitle")), Ce = y(() => L.id ? a("common.update") : a("hr.role.form.add")), G = y(() => {
|
|
107
107
|
const e = Xe.filter(
|
|
108
108
|
(l) => l.subject !== be.F_RULE_SUBJECT.enum.report
|
|
109
109
|
).map((l) => ae(l)), t = Re.value.map((l) => ae(l));
|
|
@@ -113,7 +113,7 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
|
|
|
113
113
|
restaurantIds: [],
|
|
114
114
|
permissions: [],
|
|
115
115
|
maxDiscountPercentage: 100
|
|
116
|
-
}), s =
|
|
116
|
+
}), s = D(N()), J = D([]), q = D([]), ne = D([]), I = D(/* @__PURE__ */ new Map()), U = We(I), H = Ye("report");
|
|
117
117
|
function ue(e) {
|
|
118
118
|
const t = I.value.get(e);
|
|
119
119
|
return !!t && Object.keys(t).length > 0;
|
|
@@ -127,31 +127,31 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
|
|
|
127
127
|
function de(e, t, l) {
|
|
128
128
|
U.setDraft({ subject: e, builderKey: t.builderKey }, { formValue: l });
|
|
129
129
|
}
|
|
130
|
-
const Q =
|
|
130
|
+
const Q = D(null);
|
|
131
131
|
function me(e, t) {
|
|
132
132
|
if (U.getDraftsForSubject(e).size === 0) {
|
|
133
133
|
t == null || t();
|
|
134
134
|
return;
|
|
135
135
|
}
|
|
136
136
|
const p = [];
|
|
137
|
-
for (const
|
|
138
|
-
const
|
|
139
|
-
|
|
137
|
+
for (const C of H) {
|
|
138
|
+
const j = U.getDraft({ subject: e, builderKey: C.builderKey });
|
|
139
|
+
j && p.push({ builder: C, form: j.formValue });
|
|
140
140
|
}
|
|
141
141
|
if (p.length === 0) {
|
|
142
142
|
t == null || t();
|
|
143
143
|
return;
|
|
144
144
|
}
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
p.map(({ builder:
|
|
145
|
+
const E = I.value.get(e), F = et(
|
|
146
|
+
E,
|
|
147
|
+
p.map(({ builder: C, form: j }) => ({ builder: C, formValue: j }))
|
|
148
148
|
), k = new Map(I.value);
|
|
149
149
|
Object.keys(F).length === 0 ? k.delete(e) : k.set(e, F), I.value = k, U.clearDraftsForSubject(e), t == null || t();
|
|
150
150
|
}
|
|
151
151
|
function ce(e) {
|
|
152
152
|
return U.hasDraftsForSubject(e);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
154
|
+
const De = y(() => [
|
|
155
155
|
{
|
|
156
156
|
title: a("hr.role.labels.operation"),
|
|
157
157
|
filter: (e) => e.isOrderOperation
|
|
@@ -191,35 +191,35 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
|
|
|
191
191
|
s.value.restaurantIds = P.value.map((t) => t._id), s.value.permissions = G.value.map((t) => t.value);
|
|
192
192
|
else if (b.value) {
|
|
193
193
|
s.value.restaurantIds = b.value.restaurants.map((F) => F.id);
|
|
194
|
-
const t = new Set(G.value.map((F) => F.value)), { values: l, passthrough: p, dropped:
|
|
194
|
+
const t = new Set(G.value.map((F) => F.value)), { values: l, passthrough: p, dropped: E } = st(
|
|
195
195
|
b.value.permissions,
|
|
196
196
|
t
|
|
197
197
|
);
|
|
198
|
-
J.value = p,
|
|
198
|
+
J.value = p, E.length > 0 && console.warn("Dropping corrupted role permissions (repaired on save):", E), s.value.permissions = X(l), s.value.maxDiscountPercentage = ge(
|
|
199
199
|
b.value.permissions
|
|
200
200
|
);
|
|
201
201
|
for (const F of b.value.permissions) {
|
|
202
|
-
const k = ae(F),
|
|
203
|
-
|
|
202
|
+
const k = ae(F), C = lt(F);
|
|
203
|
+
C && I.value.set(k.value, C);
|
|
204
204
|
}
|
|
205
205
|
} else
|
|
206
206
|
s.value.restaurantIds = [...L.restaurantIds];
|
|
207
|
-
|
|
207
|
+
q.value = [...s.value.permissions], ne.value = [...s.value.restaurantIds];
|
|
208
208
|
}
|
|
209
209
|
Le(async () => {
|
|
210
210
|
await v.readRestaurants(), await re(), R.value || fe();
|
|
211
|
-
}),
|
|
211
|
+
}), T(R, async (e) => {
|
|
212
212
|
e && await re();
|
|
213
|
-
}),
|
|
213
|
+
}), T(oe, () => {
|
|
214
214
|
if (R.value && b.value && !g.value) {
|
|
215
|
-
s.value.permissions = X(s.value.permissions),
|
|
215
|
+
s.value.permissions = X(s.value.permissions), q.value = X(q.value);
|
|
216
216
|
const e = new Map(I.value);
|
|
217
217
|
for (const t of e.keys())
|
|
218
218
|
t.startsWith($) && !s.value.permissions.includes(t) && e.delete(t);
|
|
219
219
|
I.value = e;
|
|
220
220
|
}
|
|
221
221
|
});
|
|
222
|
-
const Se =
|
|
222
|
+
const Se = D(""), Pe = y(() => ({
|
|
223
223
|
restaurantIds: s.value.restaurantIds,
|
|
224
224
|
role: {
|
|
225
225
|
name: s.value.name,
|
|
@@ -251,30 +251,30 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
|
|
|
251
251
|
), R.value = !1;
|
|
252
252
|
}, Y = y(
|
|
253
253
|
() => s.value.restaurantIds.filter((e) => P.value.some((t) => t._id === e))
|
|
254
|
-
), Z = y(() => P.value.length > 0 && P.value.length === Y.value.length),
|
|
254
|
+
), Z = y(() => P.value.length > 0 && P.value.length === Y.value.length), Ee = y(() => Y.value.length > 0 && !Z.value), Me = () => {
|
|
255
255
|
const e = s.value.restaurantIds.filter((t) => !Y.value.includes(t));
|
|
256
256
|
Z.value === !0 ? s.value.restaurantIds = e : s.value.restaurantIds = P.value.map((t) => t._id);
|
|
257
|
-
}, pe = (e) => e.map((l) => l.value).every((l) => s.value.permissions.includes(l)),
|
|
257
|
+
}, pe = (e) => e.map((l) => l.value).every((l) => s.value.permissions.includes(l)), Oe = (e) => {
|
|
258
258
|
const t = e.filter(
|
|
259
259
|
(l) => s.value.permissions.includes(l.value)
|
|
260
260
|
).length;
|
|
261
261
|
return t === 1 ? a("hr.role.form.permissionAllowed") : a("hr.role.form.permissionsAllowed", { count: t });
|
|
262
|
-
},
|
|
262
|
+
}, je = (e) => {
|
|
263
263
|
const t = s.value.permissions.filter(
|
|
264
264
|
(l) => !e.map((p) => p.value).includes(l)
|
|
265
265
|
);
|
|
266
266
|
pe(e) === !0 ? s.value.permissions = t : s.value.permissions = [...t, ...e.map((l) => l.value)];
|
|
267
267
|
};
|
|
268
|
-
|
|
268
|
+
T(
|
|
269
269
|
() => s.value.restaurantIds,
|
|
270
270
|
(e) => {
|
|
271
271
|
e.length > 0 && (Se.value = "");
|
|
272
272
|
}
|
|
273
273
|
);
|
|
274
|
-
const
|
|
274
|
+
const K = Je(
|
|
275
275
|
() => {
|
|
276
276
|
var e, t;
|
|
277
|
-
return !W.isEqual(s.value.name, ((e = b.value) == null ? void 0 : e.name) || N().name) || !W.isEqual(s.value.restaurantIds, ne.value) || !W.isEqual(s.value.permissions,
|
|
277
|
+
return !W.isEqual(s.value.name, ((e = b.value) == null ? void 0 : e.name) || N().name) || !W.isEqual(s.value.restaurantIds, ne.value) || !W.isEqual(s.value.permissions, q.value) || !W.isEqual(
|
|
278
278
|
s.value.maxDiscountPercentage,
|
|
279
279
|
b.value ? ge((t = b.value) == null ? void 0 : t.permissions) : N().maxDiscountPercentage
|
|
280
280
|
);
|
|
@@ -287,44 +287,44 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
|
|
|
287
287
|
show: R,
|
|
288
288
|
trigger: we
|
|
289
289
|
}), (e, t) => {
|
|
290
|
-
const l = w("FmButton"), p = w("FmIcon"),
|
|
291
|
-
return h(),
|
|
290
|
+
const l = w("FmButton"), p = w("FmIcon"), E = w("FmTextField"), F = w("FmCircularProgress"), k = w("FmCheckbox"), C = w("FmFormGroup"), j = w("FmBottomSheet"), Ae = w("FmPopover"), ve = w("fm-button"), Be = w("fm-side-sheet");
|
|
291
|
+
return h(), M(Be, {
|
|
292
292
|
id: "unit-form",
|
|
293
293
|
modelValue: R.value,
|
|
294
294
|
"onUpdate:modelValue": t[5] || (t[5] = (f) => R.value = f),
|
|
295
|
-
"is-container": o(
|
|
295
|
+
"is-container": o(Te).FmForm,
|
|
296
296
|
"is-container-props": {
|
|
297
297
|
onValidationSuccess: Ue,
|
|
298
298
|
blameFormChildOnValidationFailed: !0
|
|
299
299
|
},
|
|
300
300
|
"max-width": 960,
|
|
301
301
|
"close-button": !1,
|
|
302
|
-
"onOn:clickedAway": o(
|
|
302
|
+
"onOn:clickedAway": o(K)
|
|
303
303
|
}, {
|
|
304
304
|
"side-sheet-header": V(() => [
|
|
305
305
|
c("div", ut, [
|
|
306
|
-
d.showBack ? (h(),
|
|
306
|
+
d.showBack ? (h(), M(l, {
|
|
307
307
|
key: 0,
|
|
308
308
|
icon: "arrow_back",
|
|
309
309
|
variant: "tertiary",
|
|
310
310
|
size: "md",
|
|
311
311
|
"text-color": "neutral-gray-500",
|
|
312
312
|
"data-testid": "role-form-back",
|
|
313
|
-
onClick: o(
|
|
313
|
+
onClick: o(K)
|
|
314
314
|
}, null, 8, ["onClick"])) : te("", !0),
|
|
315
|
-
c("p", it,
|
|
315
|
+
c("p", it, O(Ve.value), 1),
|
|
316
316
|
_(p, {
|
|
317
317
|
name: "close",
|
|
318
318
|
size: "md",
|
|
319
319
|
class: "cursor-pointer",
|
|
320
|
-
onClick: o(
|
|
320
|
+
onClick: o(K)
|
|
321
321
|
}, null, 8, ["onClick"])
|
|
322
322
|
])
|
|
323
323
|
]),
|
|
324
324
|
"side-sheet-footer": V(() => [
|
|
325
|
-
c("div",
|
|
325
|
+
c("div", Dt, [
|
|
326
326
|
_(ve, {
|
|
327
|
-
label:
|
|
327
|
+
label: Ce.value,
|
|
328
328
|
size: "md",
|
|
329
329
|
type: "submit",
|
|
330
330
|
variant: "primary",
|
|
@@ -334,15 +334,15 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
|
|
|
334
334
|
label: o(a)("common.cancel"),
|
|
335
335
|
size: "md",
|
|
336
336
|
variant: "tertiary",
|
|
337
|
-
onClick: o(
|
|
337
|
+
onClick: o(K)
|
|
338
338
|
}, null, 8, ["label", "onClick"])
|
|
339
339
|
])
|
|
340
340
|
]),
|
|
341
341
|
default: V(() => [
|
|
342
342
|
c("div", dt, [
|
|
343
343
|
c("section", mt, [
|
|
344
|
-
c("p", ct,
|
|
345
|
-
_(
|
|
344
|
+
c("p", ct, O(o(a)("hr.role.form.roleDetail")), 1),
|
|
345
|
+
_(E, {
|
|
346
346
|
modelValue: s.value.name,
|
|
347
347
|
"onUpdate:modelValue": t[0] || (t[0] = (f) => s.value.name = f),
|
|
348
348
|
autofocus: "",
|
|
@@ -353,10 +353,10 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
|
|
|
353
353
|
}, null, 8, ["modelValue", "rules", "label", "placeholder", "disabled"])
|
|
354
354
|
]),
|
|
355
355
|
c("section", ft, [
|
|
356
|
-
c("p", pt,
|
|
356
|
+
c("p", pt, O(o(a)("hr.role.form.restaurant")), 1),
|
|
357
357
|
le.value ? (h(), S("div", vt, [
|
|
358
358
|
_(F)
|
|
359
|
-
])) : (h(),
|
|
359
|
+
])) : (h(), M(C, {
|
|
360
360
|
key: 1,
|
|
361
361
|
modelValue: s.value.restaurantIds,
|
|
362
362
|
"onUpdate:modelValue": t[2] || (t[2] = (f) => s.value.restaurantIds = f),
|
|
@@ -366,13 +366,13 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
|
|
|
366
366
|
c("div", ht, [
|
|
367
367
|
_(k, {
|
|
368
368
|
"model-value": Z.value,
|
|
369
|
-
indeterminate:
|
|
369
|
+
indeterminate: Ee.value,
|
|
370
370
|
label: o(a)("hr.role.form.all"),
|
|
371
371
|
value: "1",
|
|
372
372
|
disabled: g.value,
|
|
373
|
-
"onUpdate:modelValue":
|
|
373
|
+
"onUpdate:modelValue": Me
|
|
374
374
|
}, null, 8, ["model-value", "indeterminate", "label", "disabled"]),
|
|
375
|
-
(h(!0), S(z, null, ee(P.value, (f) => (h(),
|
|
375
|
+
(h(!0), S(z, null, ee(P.value, (f) => (h(), M(k, {
|
|
376
376
|
key: f._id,
|
|
377
377
|
modelValue: s.value.restaurantIds,
|
|
378
378
|
"onUpdate:modelValue": t[1] || (t[1] = (r) => s.value.restaurantIds = r),
|
|
@@ -387,20 +387,20 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
|
|
|
387
387
|
]),
|
|
388
388
|
c("section", bt, [
|
|
389
389
|
c("div", _t, [
|
|
390
|
-
c("p", gt,
|
|
391
|
-
c("p", yt,
|
|
390
|
+
c("p", gt, O(o(a)("hr.role.form.permissions")), 1),
|
|
391
|
+
c("p", yt, O(o(a)("hr.role.form.permissionsSubtitle")), 1)
|
|
392
392
|
]),
|
|
393
393
|
c("div", xt, [
|
|
394
|
-
(h(!0), S(z, null, ee(
|
|
394
|
+
(h(!0), S(z, null, ee(De.value, (f) => (h(), S("div", {
|
|
395
395
|
key: f.title
|
|
396
396
|
}, [
|
|
397
397
|
_(Ge, {
|
|
398
398
|
layout: "leading",
|
|
399
399
|
"initially-collapsed": "",
|
|
400
|
-
subtitle:
|
|
400
|
+
subtitle: Oe(f.options)
|
|
401
401
|
}, {
|
|
402
402
|
title: V(() => [
|
|
403
|
-
c("p", Rt,
|
|
403
|
+
c("p", Rt, O(f.title), 1)
|
|
404
404
|
]),
|
|
405
405
|
default: V(() => [
|
|
406
406
|
c("div", It, [
|
|
@@ -409,7 +409,7 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
|
|
|
409
409
|
label: o(a)("hr.role.form.all"),
|
|
410
410
|
value: "1",
|
|
411
411
|
disabled: g.value,
|
|
412
|
-
"onUpdate:modelValue": (r) =>
|
|
412
|
+
"onUpdate:modelValue": (r) => je(f.options)
|
|
413
413
|
}, null, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"]),
|
|
414
414
|
t[6] || (t[6] = c("div", { class: "h-px w-full bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
415
415
|
(h(!0), S(z, null, ee(f.options, (r) => (h(), S("div", {
|
|
@@ -426,7 +426,7 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
|
|
|
426
426
|
}, null, 8, ["modelValue", "label", "value", "disabled"]),
|
|
427
427
|
r.value.startsWith("report:") ? (h(), S(z, { key: 0 }, [
|
|
428
428
|
s.value.permissions.includes(r.value) ? (h(), S(z, { key: 0 }, [
|
|
429
|
-
x.value ? (h(),
|
|
429
|
+
x.value ? (h(), M(j, {
|
|
430
430
|
key: 0,
|
|
431
431
|
"model-value": Q.value === r.value,
|
|
432
432
|
header: r.label,
|
|
@@ -461,7 +461,7 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
|
|
|
461
461
|
}, null, 8, ["builders", "form-value-for", "has-changes", "disable", "onUpdateForm", "onApply"])
|
|
462
462
|
]),
|
|
463
463
|
_: 2
|
|
464
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (h(),
|
|
464
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (h(), M(Ae, {
|
|
465
465
|
key: 1,
|
|
466
466
|
disabled: g.value,
|
|
467
467
|
"z-index": 100,
|
|
@@ -496,7 +496,7 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
|
|
|
496
496
|
]),
|
|
497
497
|
_: 2
|
|
498
498
|
}, 1032, ["disabled", "exclude-el-from-click-outside", "onPopoverChanged"]))
|
|
499
|
-
], 64)) : (h(),
|
|
499
|
+
], 64)) : (h(), M(p, {
|
|
500
500
|
key: 1,
|
|
501
501
|
name: "settings",
|
|
502
502
|
size: "sm",
|
|
@@ -505,8 +505,8 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
|
|
|
505
505
|
], 64)) : te("", !0)
|
|
506
506
|
]),
|
|
507
507
|
r.value === "order:discount" && s.value.permissions.includes(r.value) ? (h(), S("div", Vt, [
|
|
508
|
-
c("div",
|
|
509
|
-
_(
|
|
508
|
+
c("div", Ct, O(o(a)("hr.role.form.maxDiscountPercentage")), 1),
|
|
509
|
+
_(E, {
|
|
510
510
|
modelValue: s.value.maxDiscountPercentage,
|
|
511
511
|
"onUpdate:modelValue": t[4] || (t[4] = (i) => s.value.maxDiscountPercentage = i),
|
|
512
512
|
rules: [
|
|
@@ -536,12 +536,12 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
|
|
|
536
536
|
});
|
|
537
537
|
export {
|
|
538
538
|
Xt as _,
|
|
539
|
-
|
|
539
|
+
Tt as a,
|
|
540
540
|
Jt as b,
|
|
541
541
|
Qt as c,
|
|
542
542
|
nt as d,
|
|
543
543
|
Ht as p,
|
|
544
544
|
Gt as r,
|
|
545
545
|
Wt as s,
|
|
546
|
-
|
|
546
|
+
Kt as t
|
|
547
547
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { computed as g, defineComponent as se, ref as U, onMounted as te, resolveComponent as x, createElementBlock as $, openBlock as h, Fragment as A, createBlock as R, createElementVNode as r, createVNode as m, unref as a, withCtx as b, h as u, renderList as ne, toDisplayString as p, createTextVNode as T, resolveDynamicComponent as z, withModifiers as re, nextTick as K } from "vue";
|
|
2
|
-
import { e as d } from "./
|
|
2
|
+
import { e as d } from "./index-CTqdA7gA.js";
|
|
3
3
|
import { useI18n as ae } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as le, useSnackbar as ie, useBreakpoints as ce, components as D, FmButtonColorThemeVariant as me } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ue } from "./app-
|
|
5
|
+
import { _ as ue } from "./app-BGzac7xv.js";
|
|
6
6
|
import { _ as W } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
|
|
7
7
|
import { _ as de } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
8
|
-
import { f as w, r as pe, h as fe } from "./rule-
|
|
9
|
-
import { u as j } from "./restaurant-
|
|
10
|
-
import { u as _e } from "./role-
|
|
11
|
-
import { u as he } from "./useReportPermissions-
|
|
12
|
-
import { _ as ve } from "./RoleForm.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { f as w, r as pe, h as fe } from "./rule-BLG5i_xT.js";
|
|
9
|
+
import { u as j } from "./restaurant-qoOY3iMJ.js";
|
|
10
|
+
import { u as _e } from "./role-BEbd5Qsi.js";
|
|
11
|
+
import { u as he } from "./useReportPermissions-PEzIBX1U.js";
|
|
12
|
+
import { _ as ve } from "./RoleForm.vue_vue_type_script_setup_true_lang-WCNUeA3G.js";
|
|
13
13
|
function ge() {
|
|
14
14
|
const B = j();
|
|
15
15
|
return g(() => {
|
|
@@ -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-CG5Xxj3Q.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-BGzac7xv.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-CG5Xxj3Q.js";
|
|
7
7
|
const te = [
|
|
8
8
|
{ key: "payrates", labelKey: "scheduling.general.payRates" },
|
|
9
9
|
{ key: "overtime", labelKey: "scheduling.general.overtime" },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { onMounted as Re, onBeforeUnmount as $e, ref as S, reactive as T, shallowRef as Ae, watch as Be, computed as Y, defineComponent as xe, createElementBlock as M, openBlock as C, renderSlot as Xe, useAttrs as pa, nextTick as ke, normalizeClass as he, createElementVNode as x, createBlock as ha, mergeProps as va, toDisplayString as z, Teleport as ga, createCommentVNode as G, withDirectives as Da, unref as Ee, vModelText as wa, Fragment as be, renderList as Ha, createTextVNode as Aa, withModifiers as Ea, normalizeStyle as ba } from "vue";
|
|
2
2
|
import { useRoute as Pa, useRouter as Sa } from "vue-router";
|
|
3
3
|
import { useCoreStore as Je, useI18n as ka } from "@feedmepos/mf-common";
|
|
4
|
-
import { u as Ca } from "./restaurant-
|
|
5
|
-
import { g, b as p } from "./app-
|
|
6
|
-
import { E as Ce, u as Ze } from "./employee-
|
|
7
|
-
import { t as Fe,
|
|
4
|
+
import { u as Ca } from "./restaurant-qoOY3iMJ.js";
|
|
5
|
+
import { g, b as p } from "./app-BGzac7xv.js";
|
|
6
|
+
import { E as Ce, u as Ze } from "./employee-D_COMGXq.js";
|
|
7
|
+
import { t as Fe, c as Ma } from "./rule-BLG5i_xT.js";
|
|
8
8
|
function io(e) {
|
|
9
9
|
let a = null;
|
|
10
10
|
function t() {
|