@feedmepos/mf-hrm-portal 2.4.2-dev.2 → 2.4.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-b8usXKo8.js → ApprovalCodeList-DGLPcQcv.js} +15 -14
- package/dist/{AuditLogList-DqbgzFAs.js → AuditLogList-ahJwTF7N.js} +12 -12
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-IPkyxwIF.js +438 -0
- package/dist/EmployeeList-B18mlY4V.js +776 -0
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-Dvo9AiKf.js +45 -0
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
- package/dist/{GrantUserList-B-p8Qghu.js → GrantUserList-C8BbP99C.js} +16 -15
- package/dist/{Main-D_EXStcl.js → Main-BA29_N_p.js} +2280 -2274
- package/dist/{Main-x6An4Vlq.js → Main-BN3b_yie.js} +5 -5
- package/dist/Main-Clux_qKN.js +96 -0
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
- package/dist/{PermissionSetList-D4Vdbk10.js → PermissionSetList-BSOJ8ftd.js} +108 -107
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Hz_rFmbH.js +4181 -0
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BwuBk683.js +35 -0
- package/dist/RoleList-EnfxydGa.js +740 -0
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DiWJzXvb.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-yIdd8r7y.js} +1 -1
- package/dist/{ScheduleGeneralPage-O7ohVH-K.js → ScheduleGeneralPage-CFUqm5-r.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-DOkdX3vt.js → ScheduleModal.vue_vue_type_script_setup_true_lang-BmPrGRG2.js} +186 -187
- package/dist/{SchedulePage-WT_Ttars.js → SchedulePage-DEFQwipO.js} +16 -16
- package/dist/{SchedulePositionPage-13qwxMn2.js → SchedulePositionPage-CM5NS5-F.js} +3 -3
- package/dist/{SelectFilter-DbE6YV-6.js → SelectFilter-DgjR5o5E.js} +1 -1
- package/dist/TeamMemberList-BKvhHLNG.js +1150 -0
- package/dist/TimesheetList-EQRMimP7.js +402 -0
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_ffd7f807_lang-_tXql6vR.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BumkwWvb.js} +7 -7
- package/dist/{app-D-6Rxcbg.js → app-Bkc0pF3P.js} +3929 -7722
- package/dist/app.js +3 -3
- package/dist/{approval-code-Ba9JpPf4.js → approval-code-BKMu1GDn.js} +1 -1
- package/dist/{dayjs.min-dCnie4oC.js → dayjs.min-CkI2q2aC.js} +24 -24
- package/dist/employee-BfkxCdPL.js +209 -0
- package/dist/{grant-user-Dpla60s_.js → grant-user-ClN_vTOv.js} +1 -1
- package/dist/{index-D8G0ElDc.js → iteration-CsNIceUp.js} +558 -573
- package/dist/{lodash-CucBZWOa.js → lodash-BgraJgCc.js} +1 -1
- package/dist/restaurant-CRNgiIa4.js +2685 -0
- package/dist/role-CZYSdVn2.js +91 -0
- package/dist/rule-_4roLZrG.js +780 -0
- package/dist/src/components/CollapsibleWrapper.vue.d.ts +3 -11
- package/dist/src/helpers/iteration.d.ts +2 -9
- 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/restaurant.d.ts +7 -7
- package/dist/src/stores/team.d.ts +0 -30
- package/dist/src/types/team.d.ts +1 -17
- package/dist/src/views/audit-log/locales/index.d.ts +0 -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-C_LStOtj.js → useAppStore-DYmF1kgk.js} +1 -1
- package/dist/{useLoading-CJ-DUrnR.js → useLoading-C2UKuAxD.js} +1 -1
- package/dist/{useReportPermissions-C7TLMKuR.js → useReportPermissions-BiaXRc0p.js} +22 -22
- package/package.json +1 -1
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-WeFI9muF.js +0 -459
- package/dist/EmployeeList-NM0guUbU.js +0 -896
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BCNKeDZY.js +0 -90
- package/dist/Main-BrhCJsik.js +0 -101
- package/dist/MyPosProfile-CG1PZ5p4.js +0 -360
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +0 -126
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CFyGZpKr.js +0 -4212
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CTxqUf16.js +0 -1797
- package/dist/RoleForm.vue_vue_type_script_setup_true_lang-DUhqZaQv.js +0 -547
- package/dist/RoleList-DFcy90mE.js +0 -274
- package/dist/TeamMemberList-CWfXQcO3.js +0 -2082
- package/dist/TimesheetList-Bp2hRf7V.js +0 -408
- package/dist/employee-B5qCkaCi.js +0 -237
- package/dist/member-grant-CZILo1nC.js +0 -54
- package/dist/restaurant-CD6RZ8XG.js +0 -49
- package/dist/role-54DbS-Cy.js +0 -91
- package/dist/rule-DzTp1Kjh.js +0 -845
- 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/employee-merge.d.ts +0 -33
- 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/restaurant-lookup.d.ts +0 -19
- package/dist/src/helpers/role-merge.d.ts +0 -11
- 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/hr/timesheet/timesheet-view.d.ts +0 -29
- 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 -236
- 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/useSsoProviders-DhmUc7LW.js +0 -41
|
@@ -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-CRNgiIa4.js";
|
|
8
|
+
import { u as H } from "./role-CZYSdVn2.js";
|
|
9
|
+
import { u as J } from "./grant-user-ClN_vTOv.js";
|
|
10
|
+
import { u as K } from "./approval-code-BKMu1GDn.js";
|
|
11
|
+
import { R as n } from "./app-Bkc0pF3P.js";
|
|
12
12
|
const Q = { class: "space-y-24" }, ue = /* @__PURE__ */ D({
|
|
13
13
|
__name: "Main",
|
|
14
14
|
setup(W) {
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { defineComponent as C, ref as R, computed as s, resolveComponent as i, createBlock as c, openBlock as p, withCtx as u, createElementVNode as S, createVNode as d, resolveDynamicComponent as g, createCommentVNode as y, createTextVNode as A, toDisplayString as F } 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 w } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
|
+
import { u as $ } from "./restaurant-CRNgiIa4.js";
|
|
7
|
+
import "@feedmepos/ui-library";
|
|
8
|
+
import "./rule-_4roLZrG.js";
|
|
9
|
+
import "./lodash-BgraJgCc.js";
|
|
10
|
+
import "./iteration-CsNIceUp.js";
|
|
11
|
+
import { u as q, R as v } from "./app-Bkc0pF3P.js";
|
|
12
|
+
import "./useAppStore-DYmF1kgk.js";
|
|
13
|
+
import "./role-CZYSdVn2.js";
|
|
14
|
+
/* empty css */
|
|
15
|
+
import "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BwuBk683.js";
|
|
16
|
+
const D = { class: "space-y-24" }, te = /* @__PURE__ */ C({
|
|
17
|
+
__name: "Main",
|
|
18
|
+
setup(I) {
|
|
19
|
+
const { t: o } = k(), b = N(), B = h(), { readRestaurants: T } = $(), { isFoodCourt: L } = q(), _ = 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
|
+
L.value || T();
|
|
29
|
+
const r = s(() => l.value.find((e) => e.value === a.value) || l.value[0]), l = 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 V = i("FmSpacer"), E = i("FmTabs"), M = i("RouterView");
|
|
52
|
+
return p(), c(w, {
|
|
53
|
+
heading: r.value.label
|
|
54
|
+
}, {
|
|
55
|
+
"sub-heading": u(() => [
|
|
56
|
+
A(F(r.value.subTitle), 1)
|
|
57
|
+
]),
|
|
58
|
+
"append-heading": u(() => {
|
|
59
|
+
var t;
|
|
60
|
+
return [
|
|
61
|
+
d(V),
|
|
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: u(() => [
|
|
71
|
+
S("div", D, [
|
|
72
|
+
d(E, {
|
|
73
|
+
modelValue: a.value,
|
|
74
|
+
"onUpdate:modelValue": n[1] || (n[1] = (t) => a.value = t),
|
|
75
|
+
items: l.value
|
|
76
|
+
}, null, 8, ["modelValue", "items"]),
|
|
77
|
+
d(M, null, {
|
|
78
|
+
default: u(({ 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
|
+
te as default
|
|
96
|
+
};
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { defineComponent as I, createElementBlock as u, openBlock as m, normalizeStyle as P, computed as x, resolveComponent as k, createElementVNode as r, createVNode as p, toDisplayString as _, Fragment as L, renderList as S, createCommentVNode as $, withKeys as F, withModifiers as V, normalizeClass as j } from "vue";
|
|
2
|
+
const ee = /* @__PURE__ */ I({
|
|
3
|
+
__name: "Skeleton",
|
|
4
|
+
props: {
|
|
5
|
+
width: { default: "160px" }
|
|
6
|
+
},
|
|
7
|
+
setup(e) {
|
|
8
|
+
return (a, t) => (m(), u("div", {
|
|
9
|
+
class: "h-16 animate-pulse rounded bg-fm-color-neutral-gray-200",
|
|
10
|
+
style: P({ width: e.width })
|
|
11
|
+
}, null, 4));
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
function B(e) {
|
|
15
|
+
return e.map((a) => a.restaurantId).filter(Boolean);
|
|
16
|
+
}
|
|
17
|
+
function w(e, a, t) {
|
|
18
|
+
const o = B(a);
|
|
19
|
+
return e.filter((l) => l.managable || l._id === t).map((l) => ({
|
|
20
|
+
label: `${l.profile.code ? `${l.profile.code} - ` : ""}${l.profile.name}`,
|
|
21
|
+
value: l._id,
|
|
22
|
+
disabled: o.includes(l._id) && l._id !== t
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
function C(e, a, t, o) {
|
|
26
|
+
return a ? e.filter((l) => l.restaurants.some((s) => s.id == a)).map((l) => ({
|
|
27
|
+
label: l.name,
|
|
28
|
+
value: l._id,
|
|
29
|
+
disabled: !o.isRoleUsable(l, a) && l._id !== t
|
|
30
|
+
})) : [];
|
|
31
|
+
}
|
|
32
|
+
function K(e, a, t, o) {
|
|
33
|
+
var s, c;
|
|
34
|
+
const l = C(e, a, t, o);
|
|
35
|
+
return ((s = l.find((n) => n.value === t && !n.disabled)) == null ? void 0 : s.value) ?? ((c = l.find((n) => !n.disabled)) == null ? void 0 : c.value) ?? "";
|
|
36
|
+
}
|
|
37
|
+
function N(e, a) {
|
|
38
|
+
const t = B(a), o = e.some(
|
|
39
|
+
(s) => s.managable && !t.includes(s._id)
|
|
40
|
+
), l = a.every((s) => s.restaurantId && s.roleId);
|
|
41
|
+
return o && l;
|
|
42
|
+
}
|
|
43
|
+
function E(e, a, t, o) {
|
|
44
|
+
var s;
|
|
45
|
+
const l = ((s = e[a]) == null ? void 0 : s.restaurantId) ?? "";
|
|
46
|
+
return o.isRestaurantLocked(l) ? e : e.length === 1 ? [t()] : e.filter((c, n) => n !== a);
|
|
47
|
+
}
|
|
48
|
+
const M = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 space-y-16" }, D = { class: "fm-typo-en-title-sm-600" }, G = { class: "space-y-16" }, q = { class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] gap-16" }, H = { class: "text-sm font-semibold text-fm-color-typo-primary" }, J = { class: "text-sm font-semibold text-fm-color-typo-primary" }, Q = { class: "flex justify-self-end" }, T = ["tabindex", "aria-disabled", "aria-label", "onClick", "onKeydown"], te = /* @__PURE__ */ I({
|
|
49
|
+
__name: "OutletRoleAssignment",
|
|
50
|
+
props: {
|
|
51
|
+
modelValue: {},
|
|
52
|
+
restaurants: {},
|
|
53
|
+
roles: {},
|
|
54
|
+
isRoleUsable: {},
|
|
55
|
+
isRestaurantLocked: { type: Function, default: () => !1 },
|
|
56
|
+
createRow: {},
|
|
57
|
+
title: {},
|
|
58
|
+
restaurantLabel: {},
|
|
59
|
+
roleLabel: {},
|
|
60
|
+
addLabel: {},
|
|
61
|
+
removeLabel: {}
|
|
62
|
+
},
|
|
63
|
+
emits: ["update:modelValue"],
|
|
64
|
+
setup(e, { emit: a }) {
|
|
65
|
+
const t = e, o = a, l = x(() => ({
|
|
66
|
+
isRoleUsable: t.isRoleUsable,
|
|
67
|
+
isRestaurantLocked: t.isRestaurantLocked
|
|
68
|
+
}));
|
|
69
|
+
function s(d) {
|
|
70
|
+
return w(t.restaurants, t.modelValue, d);
|
|
71
|
+
}
|
|
72
|
+
function c(d) {
|
|
73
|
+
return C(t.roles, d.restaurantId, d.roleId, l.value);
|
|
74
|
+
}
|
|
75
|
+
function n(d) {
|
|
76
|
+
return t.isRestaurantLocked(d);
|
|
77
|
+
}
|
|
78
|
+
function U(d, f) {
|
|
79
|
+
const b = t.modelValue[d], v = K(t.roles, f, b.roleId, l.value), h = [...t.modelValue];
|
|
80
|
+
h[d] = { ...b, restaurantId: f, roleId: v }, o("update:modelValue", h);
|
|
81
|
+
}
|
|
82
|
+
function z(d, f) {
|
|
83
|
+
const b = t.modelValue[d], v = [...t.modelValue];
|
|
84
|
+
v[d] = { ...b, roleId: f }, o("update:modelValue", v);
|
|
85
|
+
}
|
|
86
|
+
function O() {
|
|
87
|
+
o("update:modelValue", [...t.modelValue, t.createRow()]);
|
|
88
|
+
}
|
|
89
|
+
function R(d) {
|
|
90
|
+
o(
|
|
91
|
+
"update:modelValue",
|
|
92
|
+
E(t.modelValue, d, t.createRow, l.value)
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
const A = x(() => N(t.restaurants, t.modelValue));
|
|
96
|
+
return (d, f) => {
|
|
97
|
+
const b = k("FmSelect"), v = k("FmIcon"), h = k("FmButton");
|
|
98
|
+
return m(), u("div", M, [
|
|
99
|
+
r("div", D, _(e.title), 1),
|
|
100
|
+
r("div", G, [
|
|
101
|
+
r("div", q, [
|
|
102
|
+
r("div", H, _(e.restaurantLabel), 1),
|
|
103
|
+
r("div", J, _(e.roleLabel), 1),
|
|
104
|
+
f[0] || (f[0] = r("div", null, null, -1))
|
|
105
|
+
]),
|
|
106
|
+
(m(!0), u(L, null, S(e.modelValue, (i, y) => (m(), u("div", {
|
|
107
|
+
key: `${i.restaurantId || "new"}-${y}`,
|
|
108
|
+
class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] items-center gap-16"
|
|
109
|
+
}, [
|
|
110
|
+
p(b, {
|
|
111
|
+
class: "min-w-0",
|
|
112
|
+
"model-value": i.restaurantId,
|
|
113
|
+
items: s(i.restaurantId),
|
|
114
|
+
multiselect: !1,
|
|
115
|
+
searchable: "",
|
|
116
|
+
"search-debounce": 300,
|
|
117
|
+
placeholder: e.restaurantLabel,
|
|
118
|
+
disabled: n(i.restaurantId),
|
|
119
|
+
"onUpdate:modelValue": (g) => U(y, g)
|
|
120
|
+
}, null, 8, ["model-value", "items", "placeholder", "disabled", "onUpdate:modelValue"]),
|
|
121
|
+
p(b, {
|
|
122
|
+
class: "min-w-0",
|
|
123
|
+
"model-value": i.roleId,
|
|
124
|
+
items: c(i),
|
|
125
|
+
multiselect: !1,
|
|
126
|
+
placeholder: e.roleLabel,
|
|
127
|
+
disabled: !i.restaurantId || n(i.restaurantId),
|
|
128
|
+
"onUpdate:modelValue": (g) => z(y, g)
|
|
129
|
+
}, null, 8, ["model-value", "items", "placeholder", "disabled", "onUpdate:modelValue"]),
|
|
130
|
+
r("div", Q, [
|
|
131
|
+
e.modelValue.length > 1 ? (m(), u("div", {
|
|
132
|
+
key: 0,
|
|
133
|
+
role: "button",
|
|
134
|
+
tabindex: n(i.restaurantId) ? -1 : 0,
|
|
135
|
+
"aria-disabled": n(i.restaurantId),
|
|
136
|
+
class: j(["inline-flex h-40 w-40 shrink-0 items-center justify-center rounded-lg text-fm-color-neutral-gray-400 transition-colors hover:bg-fm-color-neutral-gray-100 focus:outline-none focus:ring-2 focus:ring-fm-color-primary disabled:cursor-not-allowed disabled:text-fm-color-neutral-gray-200 disabled:hover:bg-transparent", {
|
|
137
|
+
"cursor-pointer": !n(i.restaurantId),
|
|
138
|
+
"pointer-events-none": n(i.restaurantId)
|
|
139
|
+
}]),
|
|
140
|
+
"aria-label": e.removeLabel,
|
|
141
|
+
onClick: V((g) => R(y), ["stop"]),
|
|
142
|
+
onKeydown: [
|
|
143
|
+
F(V((g) => R(y), ["prevent", "stop"]), ["enter"]),
|
|
144
|
+
F(V((g) => R(y), ["prevent", "stop"]), ["space"])
|
|
145
|
+
]
|
|
146
|
+
}, [
|
|
147
|
+
p(v, {
|
|
148
|
+
name: "delete",
|
|
149
|
+
size: "md"
|
|
150
|
+
})
|
|
151
|
+
], 42, T)) : $("", !0)
|
|
152
|
+
])
|
|
153
|
+
]))), 128))
|
|
154
|
+
]),
|
|
155
|
+
p(h, {
|
|
156
|
+
type: "button",
|
|
157
|
+
variant: "secondary",
|
|
158
|
+
"text-color": "primary",
|
|
159
|
+
"border-color": "primary",
|
|
160
|
+
"prepend-icon": "add",
|
|
161
|
+
label: e.addLabel,
|
|
162
|
+
size: "md",
|
|
163
|
+
disabled: !A.value,
|
|
164
|
+
onClick: V(O, ["stop"])
|
|
165
|
+
}, null, 8, ["label", "disabled"])
|
|
166
|
+
]);
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
}), W = {
|
|
170
|
+
key: 0,
|
|
171
|
+
class: "fm-typo-body-sm-400 text-fm-color-typo-secondary"
|
|
172
|
+
}, le = /* @__PURE__ */ I({
|
|
173
|
+
__name: "PasscodeGenerateButton",
|
|
174
|
+
props: {
|
|
175
|
+
label: {},
|
|
176
|
+
hint: {},
|
|
177
|
+
disabled: { type: Boolean, default: !1 },
|
|
178
|
+
loading: { type: Boolean, default: !1 }
|
|
179
|
+
},
|
|
180
|
+
emits: ["click"],
|
|
181
|
+
setup(e) {
|
|
182
|
+
return (a, t) => {
|
|
183
|
+
const o = k("FmButton");
|
|
184
|
+
return m(), u(L, null, [
|
|
185
|
+
p(o, {
|
|
186
|
+
variant: "secondary",
|
|
187
|
+
"text-color": "primary",
|
|
188
|
+
"border-color": "primary",
|
|
189
|
+
label: e.label,
|
|
190
|
+
size: "md",
|
|
191
|
+
loading: e.loading,
|
|
192
|
+
disabled: e.disabled,
|
|
193
|
+
onClick: t[0] || (t[0] = (l) => a.$emit("click"))
|
|
194
|
+
}, null, 8, ["label", "loading", "disabled"]),
|
|
195
|
+
e.disabled ? (m(), u("div", W, _(e.hint), 1)) : $("", !0)
|
|
196
|
+
], 64);
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
}), X = { class: "flex items-center gap-8" }, Y = ["aria-label"], ae = /* @__PURE__ */ I({
|
|
200
|
+
__name: "PasscodePinField",
|
|
201
|
+
props: {
|
|
202
|
+
modelValue: {},
|
|
203
|
+
masked: { type: Boolean },
|
|
204
|
+
length: { default: 4 },
|
|
205
|
+
toggleLabel: {}
|
|
206
|
+
},
|
|
207
|
+
emits: ["update:modelValue", "update:masked", "complete"],
|
|
208
|
+
setup(e, { emit: a }) {
|
|
209
|
+
const t = a;
|
|
210
|
+
return (o, l) => {
|
|
211
|
+
const s = k("FmPinField"), c = k("FmIcon");
|
|
212
|
+
return m(), u("div", X, [
|
|
213
|
+
p(s, {
|
|
214
|
+
"model-value": e.modelValue,
|
|
215
|
+
length: e.length,
|
|
216
|
+
masked: e.masked,
|
|
217
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => t("update:modelValue", n)),
|
|
218
|
+
onComplete: l[1] || (l[1] = (n) => t("complete", n)),
|
|
219
|
+
onFocus: l[2] || (l[2] = (n) => t("update:masked", !1))
|
|
220
|
+
}, null, 8, ["model-value", "length", "masked"]),
|
|
221
|
+
r("button", {
|
|
222
|
+
type: "button",
|
|
223
|
+
class: "flex items-center justify-center rounded-full p-4 hover:bg-fm-color-neutral-gray-100",
|
|
224
|
+
"aria-label": e.toggleLabel,
|
|
225
|
+
onClick: l[3] || (l[3] = (n) => t("update:masked", !e.masked))
|
|
226
|
+
}, [
|
|
227
|
+
p(c, {
|
|
228
|
+
name: e.masked ? "visibility" : "visibility_off",
|
|
229
|
+
size: "md",
|
|
230
|
+
class: "text-fm-color-neutral-gray-300"
|
|
231
|
+
}, null, 8, ["name"])
|
|
232
|
+
], 8, Y)
|
|
233
|
+
]);
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
export {
|
|
238
|
+
ae as _,
|
|
239
|
+
le as a,
|
|
240
|
+
te as b,
|
|
241
|
+
ee as c,
|
|
242
|
+
B as s
|
|
243
|
+
};
|