@feedmepos/mf-hrm-portal 2.3.2-dev.17 → 2.3.2-dev.19
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-Bo8IbNxV.js → ApprovalCodeList-CiZcp75s.js} +14 -15
- package/dist/{AuditLogList-C7CjPILA.js → AuditLogList-AVdhUk22.js} +823 -833
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CGsOJ4bA.js +459 -0
- package/dist/EmployeeList-DmB3wCwv.js +896 -0
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-Qsc3hk6l.js +90 -0
- package/dist/{GrantUserList-CXWGr3Wo.js → GrantUserList-CUWnDKaH.js} +15 -16
- package/dist/Main-CbJjQFFR.js +101 -0
- package/dist/{Main-bru10M5U.js → Main-D7CAtkiV.js} +2274 -2280
- package/dist/{Main-DeuWov9n.js → Main-DT4TJPRM.js} +5 -5
- package/dist/MyPosProfile-EWK8IPlZ.js +360 -0
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +126 -0
- package/dist/{PermissionSetList--xt0piQz.js → PermissionSetList-D2HDsSFi.js} +136 -137
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BUSup81G.js +4212 -0
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-B1sb_3ow.js +1797 -0
- package/dist/RoleForm.vue_vue_type_script_setup_true_lang-D-Gve4l8.js +547 -0
- package/dist/RoleList-DRFTQcwP.js +274 -0
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Cqo5kHcF.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-b96QQsiZ.js} +1 -1
- package/dist/{ScheduleGeneralPage-DxhgBLix.js → ScheduleGeneralPage-DO6ZO_7t.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-DGPwmNQb.js → ScheduleModal.vue_vue_type_script_setup_true_lang-BG0-qg1-.js} +187 -186
- package/dist/{SchedulePage-oBdEvGWN.js → SchedulePage-m9fYfgEO.js} +20 -20
- package/dist/{SchedulePositionPage-BZps-kKs.js → SchedulePositionPage-B9M8bgu1.js} +3 -3
- package/dist/{SelectFilter-Bs_LCk3L.js → SelectFilter-qanI8DEh.js} +1 -1
- package/dist/TeamMemberList-D7PIM3xv.js +2082 -0
- package/dist/TimesheetList-C_XQe3jl.js +408 -0
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Dv66Af5C.js → TimesheetList.vue_vue_type_style_index_0_scoped_ffd7f807_lang-D6qTouaS.js} +7 -7
- package/dist/{app-B8xnhtVI.js → app-BuJGxfu4.js} +7973 -4103
- package/dist/app.js +3 -3
- package/dist/{approval-code-B0jU1bvk.js → approval-code-HPeWQne5.js} +1 -1
- package/dist/{dayjs.min-CdpSCqn1.js → dayjs.min-CLUgksBW.js} +34 -34
- package/dist/employee-DrsTtOKq.js +237 -0
- package/dist/{grant-user-C3C6glCk.js → grant-user-J6TSUXHn.js} +1 -1
- package/dist/{iteration-BM0iyDBd.js → index-Dl7XhjSB.js} +573 -558
- package/dist/{lodash-KK9U7NAy.js → lodash-CMqarlaS.js} +1 -1
- package/dist/member-grant-BeNgG3hd.js +54 -0
- package/dist/restaurant-9Y8x8pCL.js +49 -0
- package/dist/role-COuuwMES.js +91 -0
- package/dist/rule-50_hBJQJ.js +845 -0
- 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/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/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/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/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/helpers/staff-invite.d.ts +54 -0
- package/dist/src/helpers/string.d.ts +10 -1
- package/dist/src/router/courtGuard.d.ts +4 -0
- package/dist/src/router/menu-access-guard.d.ts +17 -0
- package/dist/src/router/shared.d.ts +3 -1
- package/dist/src/stores/restaurant.d.ts +7 -7
- package/dist/src/stores/team.d.ts +31 -1
- 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/views/audit-log/locales/index.d.ts +12 -0
- package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +1 -1
- package/dist/src/views/hr/locales/index.d.ts +20 -0
- package/dist/src/views/hr/role/RoleForm.vue.d.ts +29 -2
- package/dist/src/views/hr/timesheet/timesheet-view.d.ts +29 -0
- 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/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-C1lk2Q2j.js → useAppStore-BCvZUxKY.js} +1 -1
- package/dist/{useLoading-CXdGsnHm.js → useLoading-BOt2Is3p.js} +1 -1
- package/dist/useReportPermissions-BVTpovDL.js +80 -0
- package/dist/useSsoProviders-Bec-WHC7.js +41 -0
- package/package.json +2 -2
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C-4BaMN-.js +0 -438
- package/dist/EmployeeList-BOP-gaTp.js +0 -776
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BEOR-8QD.js +0 -45
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
- package/dist/Main-BrP1frfO.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-D5nvRsW3.js +0 -4167
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DiNDrCy0.js +0 -35
- package/dist/RoleList-BEE-8EQK.js +0 -740
- package/dist/TeamMemberList-DCgNcs4P.js +0 -1154
- package/dist/TimesheetList-BW6iCigo.js +0 -402
- package/dist/employee-DlFGiUgI.js +0 -209
- package/dist/restaurant-C7o2Yk6j.js +0 -2688
- package/dist/role-DYCorsOh.js +0 -92
- package/dist/rule-BhGHZqKO.js +0 -783
- package/dist/string-VNuQNweN.js +0 -15
- package/dist/useReportPermissions-D_I4rFVo.js +0 -82
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { createElementBlock as s, openBlock as o, createElementVNode as n, ref as y, computed as h, defineComponent as d, renderSlot as r, createCommentVNode as i, toDisplayString as a, normalizeClass as m, createVNode as _, withCtx as b } from "vue";
|
|
2
|
+
import { a as x } from "./app-BuJGxfu4.js";
|
|
3
|
+
const $ = {};
|
|
4
|
+
function k(e, t) {
|
|
5
|
+
return o(), s("div", null, [...t[0] || (t[0] = [
|
|
6
|
+
n("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)
|
|
7
|
+
])]);
|
|
8
|
+
}
|
|
9
|
+
const E = /* @__PURE__ */ x($, [["render", k]]), H = (e) => {
|
|
10
|
+
const t = y("");
|
|
11
|
+
function l(c) {
|
|
12
|
+
return `${c}`.trim().toLowerCase();
|
|
13
|
+
}
|
|
14
|
+
const u = h(() => l(t.value));
|
|
15
|
+
function f(c) {
|
|
16
|
+
return u.value ? c.some((p) => l(p).includes(u.value)) : !0;
|
|
17
|
+
}
|
|
18
|
+
return { searchKey: t, filter: f };
|
|
19
|
+
}, v = { class: "space-y-8" }, w = { class: "flex items-center justify-between" }, C = { class: "space-y-8" }, S = { class: "fm-typo-en-body-lg-600" }, g = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
22
|
+
}, K = /* @__PURE__ */ d({
|
|
23
|
+
__name: "FormItem",
|
|
24
|
+
props: {
|
|
25
|
+
label: {},
|
|
26
|
+
description: {}
|
|
27
|
+
},
|
|
28
|
+
setup(e) {
|
|
29
|
+
return (t, l) => (o(), s("div", v, [
|
|
30
|
+
n("div", w, [
|
|
31
|
+
n("div", C, [
|
|
32
|
+
n("p", S, a(e.label), 1),
|
|
33
|
+
e.description ? (o(), s("p", g, a(e.description), 1)) : i("", !0)
|
|
34
|
+
]),
|
|
35
|
+
r(t.$slots, "append")
|
|
36
|
+
]),
|
|
37
|
+
r(t.$slots, "default")
|
|
38
|
+
]));
|
|
39
|
+
}
|
|
40
|
+
}), B = /* @__PURE__ */ d({
|
|
41
|
+
__name: "FormColumn",
|
|
42
|
+
props: {
|
|
43
|
+
shrinkable: { type: Boolean }
|
|
44
|
+
},
|
|
45
|
+
setup(e) {
|
|
46
|
+
return (t, l) => (o(), s("div", {
|
|
47
|
+
class: m(["flex-1 flex flex-col space-y-24", { "min-h-0": e.shrinkable }])
|
|
48
|
+
}, [
|
|
49
|
+
r(t.$slots, "default")
|
|
50
|
+
], 2));
|
|
51
|
+
}
|
|
52
|
+
}), V = {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: "flex flex-row justify-between items-center"
|
|
55
|
+
}, F = { class: "space-y-4" }, N = { class: "fm-typo-en-title-sm-600" }, T = {
|
|
56
|
+
key: 0,
|
|
57
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
58
|
+
}, D = /* @__PURE__ */ d({
|
|
59
|
+
__name: "FormSection",
|
|
60
|
+
props: {
|
|
61
|
+
title: {},
|
|
62
|
+
subTitle: {},
|
|
63
|
+
shrinkable: { type: Boolean }
|
|
64
|
+
},
|
|
65
|
+
setup(e) {
|
|
66
|
+
return (t, l) => (o(), s("div", {
|
|
67
|
+
class: m(["flex flex-col space-y-16", { "min-h-0": e.shrinkable }])
|
|
68
|
+
}, [
|
|
69
|
+
e.title ? (o(), s("div", V, [
|
|
70
|
+
n("div", F, [
|
|
71
|
+
n("p", N, a(e.title), 1),
|
|
72
|
+
e.subTitle ? (o(), s("p", T, a(e.subTitle), 1)) : i("", !0)
|
|
73
|
+
]),
|
|
74
|
+
r(t.$slots, "append-title")
|
|
75
|
+
])) : i("", !0),
|
|
76
|
+
_(B, { shrinkable: e.shrinkable }, {
|
|
77
|
+
default: b(() => [
|
|
78
|
+
r(t.$slots, "default")
|
|
79
|
+
]),
|
|
80
|
+
_: 3
|
|
81
|
+
}, 8, ["shrinkable"])
|
|
82
|
+
], 2));
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
export {
|
|
86
|
+
E as H,
|
|
87
|
+
D as _,
|
|
88
|
+
K as a,
|
|
89
|
+
H as u
|
|
90
|
+
};
|
|
@@ -1,16 +1,15 @@
|
|
|
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-CLUgksBW.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 Q, u 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-
|
|
13
|
-
import { _ as Ve } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
5
|
+
import { S as A } from "./SelectFilter-qanI8DEh.js";
|
|
6
|
+
import { _ as he } from "./app-BuJGxfu4.js";
|
|
7
|
+
import { _ as Ue, a as Q, u as xe, H as be } from "./FormSection.vue_vue_type_script_setup_true_lang-Qsc3hk6l.js";
|
|
8
|
+
import { _ as Ve } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
|
+
import { u as te } from "./useLoading-BOt2Is3p.js";
|
|
10
|
+
import { u as ae } from "./grant-user-J6TSUXHn.js";
|
|
11
|
+
import { u as se } from "./restaurant-9Y8x8pCL.js";
|
|
12
|
+
import { u as re } from "./role-COuuwMES.js";
|
|
14
13
|
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({
|
|
15
14
|
__name: "GrantUserForm",
|
|
16
15
|
setup(le, { expose: M }) {
|
|
@@ -88,7 +87,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
88
87
|
]),
|
|
89
88
|
default: g(() => [
|
|
90
89
|
o("div", Fe, [
|
|
91
|
-
l(
|
|
90
|
+
l(Ue, {
|
|
92
91
|
title: s(d)("grantUser.form.section")
|
|
93
92
|
}, {
|
|
94
93
|
default: g(() => [
|
|
@@ -172,7 +171,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
172
171
|
}, Ee = {
|
|
173
172
|
key: 0,
|
|
174
173
|
class: "flex flex-col gap-4"
|
|
175
|
-
},
|
|
174
|
+
}, st = /* @__PURE__ */ X({
|
|
176
175
|
__name: "GrantUserList",
|
|
177
176
|
setup(le, {
|
|
178
177
|
expose: M
|
|
@@ -186,7 +185,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
186
185
|
} = re(), h = f(() => x.grantUsers), {
|
|
187
186
|
searchKey: n,
|
|
188
187
|
filter: B
|
|
189
|
-
} =
|
|
188
|
+
} = xe(), U = f(() => {
|
|
190
189
|
var e;
|
|
191
190
|
return (e = h.value) == null ? void 0 : e.filter((t) => {
|
|
192
191
|
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] || "";
|
|
@@ -395,7 +394,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
395
394
|
"onUpdate:modelValue": t[3] || (t[3] = (r) => H(n) ? n.value = r : null),
|
|
396
395
|
autofocus: "",
|
|
397
396
|
placeholder: s(a)("grantUser.search.placeholder")
|
|
398
|
-
}, null, 8, ["modelValue", "placeholder"])]), l(
|
|
397
|
+
}, null, 8, ["modelValue", "placeholder"])]), l(be), o("div", Re, [l(A, {
|
|
399
398
|
modelValue: y.value,
|
|
400
399
|
"onUpdate:modelValue": t[4] || (t[4] = (r) => y.value = r),
|
|
401
400
|
multiple: "",
|
|
@@ -413,7 +412,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
413
412
|
"selected-prefix": s(a)("grantUser.filter.selected_status_prefix"),
|
|
414
413
|
placeholder: s(a)("grantUser.filter.status_placeholder")
|
|
415
414
|
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])]), l(he, null, {
|
|
416
|
-
default: g(() => [o("div", ze, [l(
|
|
415
|
+
default: g(() => [o("div", ze, [l(Ve, {
|
|
417
416
|
"is-loading": s(x).isLoading,
|
|
418
417
|
"is-empty": U.value.length === 0,
|
|
419
418
|
title: s(a)("grantUser.noData.title"),
|
|
@@ -460,5 +459,5 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
460
459
|
}
|
|
461
460
|
});
|
|
462
461
|
export {
|
|
463
|
-
|
|
462
|
+
st as default
|
|
464
463
|
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { defineComponent as g, ref as R, computed as i, watch as A, resolveComponent as c, createBlock as p, openBlock as d, withCtx as u, createElementVNode as h, createVNode as v, resolveDynamicComponent as k, createCommentVNode as F, createTextVNode as N, toDisplayString as w } from "vue";
|
|
2
|
+
import { useRouter as x, useRoute as I } from "vue-router";
|
|
3
|
+
import { useI18n as O, useCoreStore as $ } from "@feedmepos/mf-common";
|
|
4
|
+
import { _ as q } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
5
|
+
import { _ as D } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
|
+
import { u as P } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-B1sb_3ow.js";
|
|
7
|
+
import { u as U } from "./restaurant-9Y8x8pCL.js";
|
|
8
|
+
import "@feedmepos/ui-library";
|
|
9
|
+
import "./rule-50_hBJQJ.js";
|
|
10
|
+
import "./lodash-CMqarlaS.js";
|
|
11
|
+
import "./index-Dl7XhjSB.js";
|
|
12
|
+
import { u as j, R as B } from "./app-BuJGxfu4.js";
|
|
13
|
+
import "./useAppStore-BCvZUxKY.js";
|
|
14
|
+
import "./member-grant-BeNgG3hd.js";
|
|
15
|
+
import "./role-COuuwMES.js";
|
|
16
|
+
/* empty css */
|
|
17
|
+
import "./useReportPermissions-BVTpovDL.js";
|
|
18
|
+
const z = { class: "space-y-24" }, me = /* @__PURE__ */ g({
|
|
19
|
+
__name: "Main",
|
|
20
|
+
setup(G) {
|
|
21
|
+
const { t: o } = O(), b = x(), T = I(), S = $(), { readRestaurants: V } = U(), { loadProviders: C } = P(), { isFoodCourt: L } = j(), f = R(), _ = R(), s = {
|
|
22
|
+
member: B.TEAM_MEMBER,
|
|
23
|
+
role: B.TEAM_ROLE
|
|
24
|
+
}, a = i({
|
|
25
|
+
get: () => Object.keys(s).find((e) => s[e] === T.name) ?? "member",
|
|
26
|
+
set: (e) => {
|
|
27
|
+
b.push({
|
|
28
|
+
name: s[e],
|
|
29
|
+
query: b.currentRoute.value.query
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
L.value || V(), A(S.currentBusiness, () => C(), { immediate: !0 });
|
|
34
|
+
const r = i(() => l.value.find((e) => e.value === a.value) || l.value[0]), l = i(() => [
|
|
35
|
+
{
|
|
36
|
+
label: o("team.title"),
|
|
37
|
+
subTitle: o("team.subtitle"),
|
|
38
|
+
value: "member",
|
|
39
|
+
createButtonLabel: o("team.actions.addMember"),
|
|
40
|
+
createButtonAction: () => {
|
|
41
|
+
var e;
|
|
42
|
+
(e = f.value) == null || e.create();
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: o("permissionSet.title"),
|
|
47
|
+
value: "role",
|
|
48
|
+
createButtonLabel: o("permissionSet.createButtonLabel"),
|
|
49
|
+
createButtonAction: () => {
|
|
50
|
+
var e;
|
|
51
|
+
(e = _.value) == null || e.create();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
]);
|
|
55
|
+
return (e, n) => {
|
|
56
|
+
const y = c("FmSpacer"), E = c("FmTabs"), M = c("RouterView");
|
|
57
|
+
return d(), p(D, {
|
|
58
|
+
heading: r.value.label
|
|
59
|
+
}, {
|
|
60
|
+
"sub-heading": u(() => [
|
|
61
|
+
N(w(r.value.subTitle), 1)
|
|
62
|
+
]),
|
|
63
|
+
"append-heading": u(() => {
|
|
64
|
+
var t;
|
|
65
|
+
return [
|
|
66
|
+
v(y),
|
|
67
|
+
(t = r.value) != null && t.createButtonLabel ? (d(), p(q, {
|
|
68
|
+
key: 0,
|
|
69
|
+
icon: "add",
|
|
70
|
+
label: r.value.createButtonLabel,
|
|
71
|
+
onClick: n[0] || (n[0] = (m) => r.value.createButtonAction())
|
|
72
|
+
}, null, 8, ["label"])) : F("", !0)
|
|
73
|
+
];
|
|
74
|
+
}),
|
|
75
|
+
default: u(() => [
|
|
76
|
+
h("div", z, [
|
|
77
|
+
v(E, {
|
|
78
|
+
modelValue: a.value,
|
|
79
|
+
"onUpdate:modelValue": n[1] || (n[1] = (t) => a.value = t),
|
|
80
|
+
items: l.value
|
|
81
|
+
}, null, 8, ["modelValue", "items"]),
|
|
82
|
+
v(M, null, {
|
|
83
|
+
default: u(({ Component: t }) => [
|
|
84
|
+
(d(), p(k(t), {
|
|
85
|
+
ref: (m) => {
|
|
86
|
+
a.value === "member" && (f.value = m), a.value === "role" && (_.value = m);
|
|
87
|
+
}
|
|
88
|
+
}, null, 512))
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
})
|
|
92
|
+
])
|
|
93
|
+
]),
|
|
94
|
+
_: 1
|
|
95
|
+
}, 8, ["heading"]);
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
export {
|
|
100
|
+
me as default
|
|
101
|
+
};
|