@feedmepos/mf-hrm-portal 2.3.2-dev.8 → 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-DIYhVMGW.js → ApprovalCodeList-C9r8CGNH.js} +15 -14
- package/dist/{AuditLogList-DIc3Jgpr.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-8zmzFk9z.js → GrantUserList-Bjhx60M7.js} +16 -15
- package/dist/Main-CJQpjOgY.js +96 -0
- package/dist/{Main-DYzFd_qa.js → Main-DHiTgiDR.js} +5 -5
- package/dist/{Main-gRu17-N6.js → Main-LpfQqR_u.js} +999 -1005
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
- package/dist/{PermissionSetList-CL42jQY4.js → PermissionSetList-C0OZ_dvE.js} +76 -76
- 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-B9NMhw9Z.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CqP-Dn1X.js} +1 -1
- package/dist/{ScheduleGeneralPage-751cEUwS.js → ScheduleGeneralPage-BNHi5jGf.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-CBDNfiIM.js → ScheduleModal.vue_vue_type_script_setup_true_lang-B609MZoP.js} +186 -187
- package/dist/{SchedulePage-C-NcbGIl.js → SchedulePage-CrP5_m3p.js} +13 -13
- package/dist/{SchedulePositionPage-Ba0iiSRg.js → SchedulePositionPage-ei_NKAUw.js} +3 -3
- package/dist/{SelectFilter-Dpsq165k.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-DXkKrcRn.js → app-BzlH-2cN.js} +4015 -7756
- package/dist/app.js +3 -3
- package/dist/{approval-code-D2pGW-sI.js → approval-code-CWq2ce3u.js} +1 -1
- package/dist/{dayjs.min-BAz84JAQ.js → dayjs.min-D6T4JzVv.js} +21 -21
- package/dist/employee-Bw7kRokg.js +209 -0
- package/dist/{grant-user-B95RDjkR.js → grant-user-q_mkj3Vh.js} +1 -1
- package/dist/{index-TrBkLxJe.js → iteration-Dz0e08VH.js} +726 -698
- package/dist/{lodash-DXRsZpTB.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-7O0GMkXY.js → useAppStore-TRX-PQD4.js} +1 -1
- package/dist/{useLoading-BZXydjer.js → useLoading-W3YSF8OB.js} +1 -1
- package/dist/{useReportPermissions-Cn3ntCJ9.js → useReportPermissions-CCkCAaGO.js} +3 -3
- package/package.json +3 -3
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-4YsF7lXu.js +0 -459
- package/dist/EmployeeList-iVg4pI9Y.js +0 -896
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-C9AE0EHw.js +0 -90
- package/dist/Main-ClJox3pV.js +0 -101
- package/dist/MyPosProfile-ARRrolbz.js +0 -290
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +0 -126
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DkA0XbZw.js +0 -4208
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CA87qQ4b.js +0 -1831
- package/dist/RoleForm.vue_vue_type_script_setup_true_lang-B3N3hTcU.js +0 -547
- package/dist/RoleList-F9ZORhgE.js +0 -265
- package/dist/TeamMemberList-DZ0aRbxg.js +0 -2087
- package/dist/TimesheetList-DO5T__dL.js +0 -437
- package/dist/employee-yYhuhc9L.js +0 -172
- package/dist/iteration-CcXrOMQe.js +0 -30
- package/dist/member-grant-ByAQ1Qja.js +0 -54
- package/dist/restaurant-COSpCpTQ.js +0 -52
- package/dist/role-ZmCd2yG4.js +0 -98
- package/dist/rule-Bty9eoI3.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 -196
- 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-CFD6XPiG.js +0 -76
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createElementBlock as r, openBlock as c, createElementVNode as o, ref as m, computed as f, defineComponent as p, renderSlot as l, createCommentVNode as _, toDisplayString as i } from "vue";
|
|
2
|
+
import { a as y } from "./app-BzlH-2cN.js";
|
|
3
|
+
const h = {};
|
|
4
|
+
function v(t, e) {
|
|
5
|
+
return c(), r("div", null, [...e[0] || (e[0] = [
|
|
6
|
+
o("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)
|
|
7
|
+
])]);
|
|
8
|
+
}
|
|
9
|
+
const C = /* @__PURE__ */ y(h, [["render", v]]), V = (t) => {
|
|
10
|
+
const e = m("");
|
|
11
|
+
function s(n) {
|
|
12
|
+
return `${n}`.trim().toLowerCase();
|
|
13
|
+
}
|
|
14
|
+
const a = f(() => s(e.value));
|
|
15
|
+
function d(n) {
|
|
16
|
+
return a.value ? n.some((u) => s(u).includes(a.value)) : !0;
|
|
17
|
+
}
|
|
18
|
+
return { searchKey: e, filter: d };
|
|
19
|
+
}, b = { class: "space-y-8" }, x = { class: "flex items-center justify-between" }, S = { class: "space-y-8" }, g = { class: "fm-typo-en-body-lg-600" }, $ = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
22
|
+
}, B = /* @__PURE__ */ p({
|
|
23
|
+
__name: "FormItem",
|
|
24
|
+
props: {
|
|
25
|
+
label: {},
|
|
26
|
+
description: {}
|
|
27
|
+
},
|
|
28
|
+
setup(t) {
|
|
29
|
+
return (e, s) => (c(), r("div", b, [
|
|
30
|
+
o("div", x, [
|
|
31
|
+
o("div", S, [
|
|
32
|
+
o("p", g, i(t.label), 1),
|
|
33
|
+
t.description ? (c(), r("p", $, i(t.description), 1)) : _("", !0)
|
|
34
|
+
]),
|
|
35
|
+
l(e.$slots, "append")
|
|
36
|
+
]),
|
|
37
|
+
l(e.$slots, "default")
|
|
38
|
+
]));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
C as H,
|
|
43
|
+
B as _,
|
|
44
|
+
V as u
|
|
45
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent as c, createElementBlock as s, openBlock as l, normalizeClass as r, renderSlot as n, createCommentVNode as o, createVNode as d, createElementVNode as a, toDisplayString as i, withCtx as f } from "vue";
|
|
2
|
+
const h = /* @__PURE__ */ c({
|
|
3
|
+
__name: "FormColumn",
|
|
4
|
+
props: {
|
|
5
|
+
shrinkable: { type: Boolean }
|
|
6
|
+
},
|
|
7
|
+
setup(e) {
|
|
8
|
+
return (t, m) => (l(), s("div", {
|
|
9
|
+
class: r(["flex-1 flex flex-col space-y-24", { "min-h-0": e.shrinkable }])
|
|
10
|
+
}, [
|
|
11
|
+
n(t.$slots, "default")
|
|
12
|
+
], 2));
|
|
13
|
+
}
|
|
14
|
+
}), u = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "flex flex-row justify-between items-center"
|
|
17
|
+
}, y = { class: "space-y-4" }, p = { class: "fm-typo-en-title-sm-600" }, b = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
20
|
+
}, x = /* @__PURE__ */ c({
|
|
21
|
+
__name: "FormSection",
|
|
22
|
+
props: {
|
|
23
|
+
title: {},
|
|
24
|
+
subTitle: {},
|
|
25
|
+
shrinkable: { type: Boolean }
|
|
26
|
+
},
|
|
27
|
+
setup(e) {
|
|
28
|
+
return (t, m) => (l(), s("div", {
|
|
29
|
+
class: r(["flex flex-col space-y-16", { "min-h-0": e.shrinkable }])
|
|
30
|
+
}, [
|
|
31
|
+
e.title ? (l(), s("div", u, [
|
|
32
|
+
a("div", y, [
|
|
33
|
+
a("p", p, i(e.title), 1),
|
|
34
|
+
e.subTitle ? (l(), s("p", b, i(e.subTitle), 1)) : o("", !0)
|
|
35
|
+
]),
|
|
36
|
+
n(t.$slots, "append-title")
|
|
37
|
+
])) : o("", !0),
|
|
38
|
+
d(h, { shrinkable: e.shrinkable }, {
|
|
39
|
+
default: f(() => [
|
|
40
|
+
n(t.$slots, "default")
|
|
41
|
+
]),
|
|
42
|
+
_: 3
|
|
43
|
+
}, 8, ["shrinkable"])
|
|
44
|
+
], 2));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
x as _
|
|
49
|
+
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { defineComponent as X, ref as S, computed as f, watch as ue, resolveComponent as v, createElementBlock as D, openBlock as w, Fragment as E, renderSlot as de, createVNode as l, unref as s, withCtx as g, createElementVNode as o, toDisplayString as _, isRef as H, renderList as me, createBlock as pe, createCommentVNode as fe, withModifiers as W, createTextVNode as J, normalizeClass as ve, h as p } from "vue";
|
|
2
|
-
import { d as ge } from "./dayjs.min-
|
|
2
|
+
import { d as ge } from "./dayjs.min-D6T4JzVv.js";
|
|
3
3
|
import { useI18n as Z } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as ee, components as K, useDialog as _e, useBreakpoints as ye, FmButtonVariant as O } from "@feedmepos/ui-library";
|
|
5
|
-
import { S as A } from "./SelectFilter-
|
|
6
|
-
import { _ as he } from "./app-
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { u as te } from "./useLoading-
|
|
10
|
-
import { u as ae } from "./grant-user-
|
|
11
|
-
import { u as se } from "./restaurant-
|
|
12
|
-
import { u as re } from "./role-
|
|
5
|
+
import { S as A } from "./SelectFilter-CEYQ-ViE.js";
|
|
6
|
+
import { _ as he } from "./app-BzlH-2cN.js";
|
|
7
|
+
import { _ as Q, u as Ue, H as xe } from "./FormItem.vue_vue_type_script_setup_true_lang-Be1OU1_r.js";
|
|
8
|
+
import { _ as be } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
|
+
import { u as te } from "./useLoading-W3YSF8OB.js";
|
|
10
|
+
import { u as ae } from "./grant-user-q_mkj3Vh.js";
|
|
11
|
+
import { u as se } from "./restaurant-DJBQY9N5.js";
|
|
12
|
+
import { u as re } from "./role-CiRbkZSm.js";
|
|
13
|
+
import { _ as Ve } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
13
14
|
const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, we = { class: "flex gap-8 items-center justify-start" }, Se = /* @__PURE__ */ X({
|
|
14
15
|
__name: "GrantUserForm",
|
|
15
16
|
setup(le, { expose: M }) {
|
|
@@ -87,7 +88,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
87
88
|
]),
|
|
88
89
|
default: g(() => [
|
|
89
90
|
o("div", Fe, [
|
|
90
|
-
l(
|
|
91
|
+
l(Ve, {
|
|
91
92
|
title: s(d)("grantUser.form.section")
|
|
92
93
|
}, {
|
|
93
94
|
default: g(() => [
|
|
@@ -171,7 +172,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
171
172
|
}, Ee = {
|
|
172
173
|
key: 0,
|
|
173
174
|
class: "flex flex-col gap-4"
|
|
174
|
-
},
|
|
175
|
+
}, rt = /* @__PURE__ */ X({
|
|
175
176
|
__name: "GrantUserList",
|
|
176
177
|
setup(le, {
|
|
177
178
|
expose: M
|
|
@@ -185,7 +186,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
185
186
|
} = re(), h = f(() => x.grantUsers), {
|
|
186
187
|
searchKey: n,
|
|
187
188
|
filter: B
|
|
188
|
-
} =
|
|
189
|
+
} = Ue(), U = f(() => {
|
|
189
190
|
var e;
|
|
190
191
|
return (e = h.value) == null ? void 0 : e.filter((t) => {
|
|
191
192
|
const m = !y.value || y.value.includes(t.restaurantId), G = !k.value || k.value.includes(t.status), L = b.value[t.restaurantId] || "", j = V.value[t.roleId] || "";
|
|
@@ -394,7 +395,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
394
395
|
"onUpdate:modelValue": t[3] || (t[3] = (r) => H(n) ? n.value = r : null),
|
|
395
396
|
autofocus: "",
|
|
396
397
|
placeholder: s(a)("grantUser.search.placeholder")
|
|
397
|
-
}, null, 8, ["modelValue", "placeholder"])]), l(
|
|
398
|
+
}, null, 8, ["modelValue", "placeholder"])]), l(xe), o("div", Re, [l(A, {
|
|
398
399
|
modelValue: y.value,
|
|
399
400
|
"onUpdate:modelValue": t[4] || (t[4] = (r) => y.value = r),
|
|
400
401
|
multiple: "",
|
|
@@ -412,7 +413,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
412
413
|
"selected-prefix": s(a)("grantUser.filter.selected_status_prefix"),
|
|
413
414
|
placeholder: s(a)("grantUser.filter.status_placeholder")
|
|
414
415
|
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])]), l(he, null, {
|
|
415
|
-
default: g(() => [o("div", ze, [l(
|
|
416
|
+
default: g(() => [o("div", ze, [l(be, {
|
|
416
417
|
"is-loading": s(x).isLoading,
|
|
417
418
|
"is-empty": U.value.length === 0,
|
|
418
419
|
title: s(a)("grantUser.noData.title"),
|
|
@@ -459,5 +460,5 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
459
460
|
}
|
|
460
461
|
});
|
|
461
462
|
export {
|
|
462
|
-
|
|
463
|
+
rt as default
|
|
463
464
|
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { defineComponent as M, ref as R, computed as s, resolveComponent as i, createBlock as c, openBlock as p, withCtx as l, createElementVNode as S, createVNode as d, resolveDynamicComponent as g, createCommentVNode as y, createTextVNode as A, toDisplayString as C } from "vue";
|
|
2
|
+
import { useRouter as N, useRoute as h } from "vue-router";
|
|
3
|
+
import { useI18n as k } from "@feedmepos/mf-common";
|
|
4
|
+
import { _ as x } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
5
|
+
import { _ as F } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
|
+
import { u as w } from "./restaurant-DJBQY9N5.js";
|
|
7
|
+
import "@feedmepos/ui-library";
|
|
8
|
+
import "./rule-DMgkHpva.js";
|
|
9
|
+
import "./lodash-DGG_-VgI.js";
|
|
10
|
+
import "./iteration-Dz0e08VH.js";
|
|
11
|
+
import "./useAppStore-TRX-PQD4.js";
|
|
12
|
+
import { R as v } from "./app-BzlH-2cN.js";
|
|
13
|
+
import "./role-CiRbkZSm.js";
|
|
14
|
+
/* empty css */
|
|
15
|
+
import "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-EwU7gHP7.js";
|
|
16
|
+
const $ = { class: "space-y-24" }, Z = /* @__PURE__ */ M({
|
|
17
|
+
__name: "Main",
|
|
18
|
+
setup(q) {
|
|
19
|
+
const { t: o } = k(), b = N(), B = h(), { readRestaurants: T } = w(), _ = R(), f = R(), a = s({
|
|
20
|
+
get: () => B.name === v.TEAM_ROLE ? "role" : "member",
|
|
21
|
+
set: (e) => {
|
|
22
|
+
b.push({
|
|
23
|
+
name: e === "role" ? v.TEAM_ROLE : v.TEAM_MEMBER,
|
|
24
|
+
query: b.currentRoute.value.query
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
T();
|
|
29
|
+
const r = s(() => u.value.find((e) => e.value === a.value) || u.value[0]), u = s(() => [
|
|
30
|
+
{
|
|
31
|
+
label: o("team.title"),
|
|
32
|
+
subTitle: o("team.subtitle"),
|
|
33
|
+
value: "member",
|
|
34
|
+
createButtonLabel: o("team.actions.addMember"),
|
|
35
|
+
createButtonAction: () => {
|
|
36
|
+
var e;
|
|
37
|
+
(e = _.value) == null || e.create();
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: o("permissionSet.title"),
|
|
42
|
+
value: "role",
|
|
43
|
+
createButtonLabel: o("permissionSet.createButtonLabel"),
|
|
44
|
+
createButtonAction: () => {
|
|
45
|
+
var e;
|
|
46
|
+
(e = f.value) == null || e.create();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]);
|
|
50
|
+
return (e, n) => {
|
|
51
|
+
const L = i("FmSpacer"), V = i("FmTabs"), E = i("RouterView");
|
|
52
|
+
return p(), c(F, {
|
|
53
|
+
heading: r.value.label
|
|
54
|
+
}, {
|
|
55
|
+
"sub-heading": l(() => [
|
|
56
|
+
A(C(r.value.subTitle), 1)
|
|
57
|
+
]),
|
|
58
|
+
"append-heading": l(() => {
|
|
59
|
+
var t;
|
|
60
|
+
return [
|
|
61
|
+
d(L),
|
|
62
|
+
(t = r.value) != null && t.createButtonLabel ? (p(), c(x, {
|
|
63
|
+
key: 0,
|
|
64
|
+
icon: "add",
|
|
65
|
+
label: r.value.createButtonLabel,
|
|
66
|
+
onClick: n[0] || (n[0] = (m) => r.value.createButtonAction())
|
|
67
|
+
}, null, 8, ["label"])) : y("", !0)
|
|
68
|
+
];
|
|
69
|
+
}),
|
|
70
|
+
default: l(() => [
|
|
71
|
+
S("div", $, [
|
|
72
|
+
d(V, {
|
|
73
|
+
modelValue: a.value,
|
|
74
|
+
"onUpdate:modelValue": n[1] || (n[1] = (t) => a.value = t),
|
|
75
|
+
items: u.value
|
|
76
|
+
}, null, 8, ["modelValue", "items"]),
|
|
77
|
+
d(E, null, {
|
|
78
|
+
default: l(({ Component: t }) => [
|
|
79
|
+
(p(), c(g(t), {
|
|
80
|
+
ref: (m) => {
|
|
81
|
+
a.value === "member" && (_.value = m), a.value === "role" && (f.value = m);
|
|
82
|
+
}
|
|
83
|
+
}, null, 512))
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
})
|
|
87
|
+
])
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}, 8, ["heading"]);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
export {
|
|
95
|
+
Z as default
|
|
96
|
+
};
|
|
@@ -4,11 +4,11 @@ import { useI18n as E, useCoreStore as $ } from "@feedmepos/mf-common";
|
|
|
4
4
|
import { useSnackbar as I } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as z } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
6
6
|
import { _ as M } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
7
|
-
import { u as j } from "./restaurant-
|
|
8
|
-
import { u as H } from "./role-
|
|
9
|
-
import { u as J } from "./grant-user-
|
|
10
|
-
import { u as K } from "./approval-code-
|
|
11
|
-
import { R as n } from "./app-
|
|
7
|
+
import { u as j } from "./restaurant-DJBQY9N5.js";
|
|
8
|
+
import { u as H } from "./role-CiRbkZSm.js";
|
|
9
|
+
import { u as J } from "./grant-user-q_mkj3Vh.js";
|
|
10
|
+
import { u as K } from "./approval-code-CWq2ce3u.js";
|
|
11
|
+
import { R as n } from "./app-BzlH-2cN.js";
|
|
12
12
|
const Q = { class: "space-y-24" }, ue = /* @__PURE__ */ D({
|
|
13
13
|
__name: "Main",
|
|
14
14
|
setup(W) {
|