@feedmepos/mf-hrm-portal 2.3.2-dev.3 → 2.3.2-dev.5
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-D3U4nvlF.js → ApprovalCodeList-NYJNwdDZ.js} +14 -15
- package/dist/{AuditLogList-qGCW7tf0.js → AuditLogList-Ghn4aBnn.js} +12 -12
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BxZ9t3MZ.js +459 -0
- package/dist/EmployeeList-jc8LTznV.js +896 -0
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DLgm6oCz.js +90 -0
- package/dist/{GrantUserList-C71pal0N.js → GrantUserList-BtPTpypR.js} +15 -16
- package/dist/Main-BF8hlYeV.js +101 -0
- package/dist/{Main-CCdTWngg.js → Main-BizCV-_x.js} +11 -11
- package/dist/{Main-BWJPyEU1.js → Main-McMZU_cR.js} +5 -5
- package/dist/MyPosProfile-BjeCnBvL.js +290 -0
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +126 -0
- package/dist/{PermissionSetList-BS-oBunI.js → PermissionSetList-NWLoqFHC.js} +45 -46
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-UPcpeVD5.js +4243 -0
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-nwpdr7T7.js +1831 -0
- package/dist/RoleForm.vue_vue_type_script_setup_true_lang-eT-dPsOX.js +547 -0
- package/dist/RoleList-CIfN10zu.js +274 -0
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BXihM4sl.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CMTXC_UR.js} +1 -1
- package/dist/{ScheduleGeneralPage-DpNvWNGs.js → ScheduleGeneralPage-8vS1DUrk.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-DIYLOF9N.js → ScheduleModal.vue_vue_type_script_setup_true_lang-Br4AcF1g.js} +187 -186
- package/dist/{SchedulePage-QW-cYvu2.js → SchedulePage-DqbE1PoV.js} +13 -13
- package/dist/{SchedulePositionPage-BtFfVo2N.js → SchedulePositionPage-DUnkT0Tp.js} +3 -3
- package/dist/{SelectFilter-BXeVKgHN.js → SelectFilter-voMj4_j1.js} +1 -1
- package/dist/TeamMemberList-DoEOWNDC.js +2086 -0
- package/dist/{TimesheetList-D-bESKe5.js → TimesheetList-BBv2SV96.js} +9 -9
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-D0zAVqCa.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-h-bWBmpI.js} +3 -3
- package/dist/{app-D-MUq9Ab.js → app-CDCO87ji.js} +6389 -3455
- package/dist/app.js +3 -3
- package/dist/{approval-code-BXUiojPH.js → approval-code-CLE9s5dL.js} +1 -1
- package/dist/{dayjs.min-BZ1pM-6M.js → dayjs.min-BW6-XAUB.js} +21 -21
- package/dist/{employee-HQEU8fjb.js → employee-BaCU-FLC.js} +48 -47
- package/dist/{grant-user-CBJ3gEgW.js → grant-user-DMtilLJx.js} +1 -1
- package/dist/{iteration-ogxW2-Tv.js → iteration-CPLGGFBb.js} +1 -1
- package/dist/{lodash-Def4gaas.js → lodash-snXoiw60.js} +1 -1
- package/dist/member-grant-CJyOr-q0.js +55 -0
- package/dist/restaurant-BMlLIUqe.js +51 -0
- package/dist/{role-JDoDFVd9.js → role-DqcBOWHL.js} +5 -4
- package/dist/{rule-DPtqlnz-.js → rule-B5YNhGJ4.js} +105 -100
- 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/helpers/member-grant.d.ts +36 -0
- package/dist/src/helpers/my-pos-profile.d.ts +37 -0
- package/dist/src/helpers/pos-assignment-rows.d.ts +28 -0
- package/dist/src/helpers/staff-invite.d.ts +54 -0
- package/dist/src/helpers/string.d.ts +10 -1
- package/dist/src/router/menu-access-guard.d.ts +17 -0
- package/dist/src/router/shared.d.ts +3 -1
- package/dist/src/stores/restaurant.d.ts +7 -7
- package/dist/src/stores/team.d.ts +30 -0
- 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/hr/locales/index.d.ts +20 -0
- package/dist/src/views/hr/role/RoleForm.vue.d.ts +29 -2
- package/dist/src/views/my-pos-profile/MyPosProfile.vue.d.ts +2 -0
- package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +4 -0
- package/dist/src/views/my-pos-profile/locales/index.d.ts +196 -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-DZCdxlCd.js → useAppStore-pKAGQL6q.js} +1 -1
- package/dist/{useLoading-Nygx2zn8.js → useLoading-D67DIqfk.js} +1 -1
- package/dist/{useReportPermissions-CxV7Dz1B.js → useReportPermissions-CfgnE0NY.js} +5 -5
- package/package.json +1 -1
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-B0VcRYUg.js +0 -438
- package/dist/EmployeeList-Bd73xDCX.js +0 -776
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-cLEnrtC6.js +0 -45
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
- package/dist/Main-DGf0bQvy.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-CkOAT-oX.js +0 -4167
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js +0 -35
- package/dist/RoleList-B_7UnVNb.js +0 -740
- package/dist/TeamMemberList-DoisBYnk.js +0 -1154
- package/dist/restaurant-D2mfKHaH.js +0 -1880
- package/dist/string-VNuQNweN.js +0 -15
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import * as enUS from './en-US.json';
|
|
2
|
+
export type AppMessagesSchema = typeof enUS;
|
|
3
|
+
export declare const i18nMessages: {
|
|
4
|
+
'en-US': {
|
|
5
|
+
myPosProfile: {
|
|
6
|
+
title: string;
|
|
7
|
+
subtitle: string;
|
|
8
|
+
table: {
|
|
9
|
+
columns: {
|
|
10
|
+
name: string;
|
|
11
|
+
contact: string;
|
|
12
|
+
restaurant: string;
|
|
13
|
+
role: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
passcode: {
|
|
17
|
+
title: string;
|
|
18
|
+
updated: string;
|
|
19
|
+
updatedJustNow: string;
|
|
20
|
+
show: string;
|
|
21
|
+
hide: string;
|
|
22
|
+
change: string;
|
|
23
|
+
};
|
|
24
|
+
change: {
|
|
25
|
+
title: string;
|
|
26
|
+
message: string;
|
|
27
|
+
failed: string;
|
|
28
|
+
exhausted: string;
|
|
29
|
+
inProgress: string;
|
|
30
|
+
incomplete: string;
|
|
31
|
+
};
|
|
32
|
+
changed: {
|
|
33
|
+
title: string;
|
|
34
|
+
message: string;
|
|
35
|
+
done: string;
|
|
36
|
+
};
|
|
37
|
+
manageAccount: {
|
|
38
|
+
message: string;
|
|
39
|
+
link: string;
|
|
40
|
+
failed: string;
|
|
41
|
+
};
|
|
42
|
+
noPosUser: {
|
|
43
|
+
title: string;
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
loadFailed: string;
|
|
47
|
+
shared: {
|
|
48
|
+
message: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
'zh-CN': {
|
|
53
|
+
myPosProfile: {
|
|
54
|
+
title: string;
|
|
55
|
+
subtitle: string;
|
|
56
|
+
table: {
|
|
57
|
+
columns: {
|
|
58
|
+
name: string;
|
|
59
|
+
contact: string;
|
|
60
|
+
restaurant: string;
|
|
61
|
+
role: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
passcode: {
|
|
65
|
+
title: string;
|
|
66
|
+
updated: string;
|
|
67
|
+
updatedJustNow: string;
|
|
68
|
+
show: string;
|
|
69
|
+
hide: string;
|
|
70
|
+
change: string;
|
|
71
|
+
};
|
|
72
|
+
change: {
|
|
73
|
+
title: string;
|
|
74
|
+
message: string;
|
|
75
|
+
failed: string;
|
|
76
|
+
exhausted: string;
|
|
77
|
+
inProgress: string;
|
|
78
|
+
incomplete: string;
|
|
79
|
+
};
|
|
80
|
+
changed: {
|
|
81
|
+
title: string;
|
|
82
|
+
message: string;
|
|
83
|
+
done: string;
|
|
84
|
+
};
|
|
85
|
+
manageAccount: {
|
|
86
|
+
message: string;
|
|
87
|
+
link: string;
|
|
88
|
+
failed: string;
|
|
89
|
+
};
|
|
90
|
+
noPosUser: {
|
|
91
|
+
title: string;
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
loadFailed: string;
|
|
95
|
+
shared: {
|
|
96
|
+
message: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
'th-TH': {
|
|
101
|
+
myPosProfile: {
|
|
102
|
+
title: string;
|
|
103
|
+
subtitle: string;
|
|
104
|
+
table: {
|
|
105
|
+
columns: {
|
|
106
|
+
name: string;
|
|
107
|
+
contact: string;
|
|
108
|
+
restaurant: string;
|
|
109
|
+
role: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
passcode: {
|
|
113
|
+
title: string;
|
|
114
|
+
updated: string;
|
|
115
|
+
updatedJustNow: string;
|
|
116
|
+
show: string;
|
|
117
|
+
hide: string;
|
|
118
|
+
change: string;
|
|
119
|
+
};
|
|
120
|
+
change: {
|
|
121
|
+
title: string;
|
|
122
|
+
message: string;
|
|
123
|
+
failed: string;
|
|
124
|
+
exhausted: string;
|
|
125
|
+
inProgress: string;
|
|
126
|
+
incomplete: string;
|
|
127
|
+
};
|
|
128
|
+
changed: {
|
|
129
|
+
title: string;
|
|
130
|
+
message: string;
|
|
131
|
+
done: string;
|
|
132
|
+
};
|
|
133
|
+
manageAccount: {
|
|
134
|
+
message: string;
|
|
135
|
+
link: string;
|
|
136
|
+
failed: string;
|
|
137
|
+
};
|
|
138
|
+
noPosUser: {
|
|
139
|
+
title: string;
|
|
140
|
+
description: string;
|
|
141
|
+
};
|
|
142
|
+
loadFailed: string;
|
|
143
|
+
shared: {
|
|
144
|
+
message: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
'zh-Hant': {
|
|
149
|
+
myPosProfile: {
|
|
150
|
+
title: string;
|
|
151
|
+
subtitle: string;
|
|
152
|
+
table: {
|
|
153
|
+
columns: {
|
|
154
|
+
name: string;
|
|
155
|
+
contact: string;
|
|
156
|
+
restaurant: string;
|
|
157
|
+
role: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
passcode: {
|
|
161
|
+
title: string;
|
|
162
|
+
updated: string;
|
|
163
|
+
updatedJustNow: string;
|
|
164
|
+
show: string;
|
|
165
|
+
hide: string;
|
|
166
|
+
change: string;
|
|
167
|
+
};
|
|
168
|
+
change: {
|
|
169
|
+
title: string;
|
|
170
|
+
message: string;
|
|
171
|
+
failed: string;
|
|
172
|
+
exhausted: string;
|
|
173
|
+
inProgress: string;
|
|
174
|
+
incomplete: string;
|
|
175
|
+
};
|
|
176
|
+
changed: {
|
|
177
|
+
title: string;
|
|
178
|
+
message: string;
|
|
179
|
+
done: string;
|
|
180
|
+
};
|
|
181
|
+
manageAccount: {
|
|
182
|
+
message: string;
|
|
183
|
+
link: string;
|
|
184
|
+
failed: string;
|
|
185
|
+
};
|
|
186
|
+
noPosUser: {
|
|
187
|
+
title: string;
|
|
188
|
+
description: string;
|
|
189
|
+
};
|
|
190
|
+
loadFailed: string;
|
|
191
|
+
shared: {
|
|
192
|
+
message: string;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
@@ -21,7 +21,7 @@ export interface ScheduleOnboardingAvailabilityOptions {
|
|
|
21
21
|
}
|
|
22
22
|
export declare function useScheduleOnboardingAvailability(options: ScheduleOnboardingAvailabilityOptions): {
|
|
23
23
|
avail: Record<number, AvailRow>;
|
|
24
|
-
avTab: import("vue").Ref<"
|
|
24
|
+
avTab: import("vue").Ref<"part" | "full", "part" | "full">;
|
|
25
25
|
avPicked: Record<number, boolean>;
|
|
26
26
|
avVary: Record<number, boolean>;
|
|
27
27
|
avBulkOpen: import("vue").Ref<boolean, boolean>;
|
|
@@ -726,7 +726,7 @@ export declare function useScheduleOnboardingWizard(board: ScheduleBoardApi, add
|
|
|
726
726
|
reviewRows: import("vue").ComputedRef<ReviewRow[]>;
|
|
727
727
|
goTo: (target: ScheduleOnboardingStep) => void;
|
|
728
728
|
avail: Record<number, import("./onboarding-types").AvailRow>;
|
|
729
|
-
avTab: import("vue").Ref<"
|
|
729
|
+
avTab: import("vue").Ref<"part" | "full", "part" | "full">;
|
|
730
730
|
avPicked: Record<number, boolean>;
|
|
731
731
|
avBulkOpen: import("vue").Ref<boolean, boolean>;
|
|
732
732
|
avBulk: {
|
|
@@ -28,7 +28,7 @@ export declare function useScheduleShiftDraft(): {
|
|
|
28
28
|
positionId: import("vue").Ref<string | undefined, string | undefined>;
|
|
29
29
|
required: import("vue").Ref<number, number>;
|
|
30
30
|
sen: import("vue").Ref<"" | "senior" | "junior", "" | "senior" | "junior">;
|
|
31
|
-
empType: import("vue").Ref<"" | "
|
|
31
|
+
empType: import("vue").Ref<"" | "part" | "full", "" | "part" | "full">;
|
|
32
32
|
roles: import("vue").Ref<{
|
|
33
33
|
position: string;
|
|
34
34
|
count: number;
|
|
@@ -39,7 +39,7 @@ export declare function useScheduleShiftPopover(board: ScheduleBoardApi, demand:
|
|
|
39
39
|
positionId: import("vue").Ref<string | undefined, string | undefined>;
|
|
40
40
|
required: import("vue").Ref<number, number>;
|
|
41
41
|
sen: import("vue").Ref<"" | "senior" | "junior", "" | "senior" | "junior">;
|
|
42
|
-
empType: import("vue").Ref<"" | "
|
|
42
|
+
empType: import("vue").Ref<"" | "part" | "full", "" | "part" | "full">;
|
|
43
43
|
roles: import("vue").Ref<{
|
|
44
44
|
position: string;
|
|
45
45
|
count: number;
|
|
@@ -40,6 +40,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
40
40
|
type: PropType<IFdtoPortalPermissionsWithVisibilityCondition[]>;
|
|
41
41
|
default: () => never[];
|
|
42
42
|
};
|
|
43
|
+
/** 'leading': the member sheet's layout, collapsed with the count under each category. */
|
|
44
|
+
layout: {
|
|
45
|
+
type: PropType<"trailing" | "leading">;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
43
48
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
44
49
|
"update:model-value": (subject: {
|
|
45
50
|
reason?: string | null | undefined;
|
|
@@ -67,6 +72,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
67
72
|
type: PropType<IFdtoPortalPermissionsWithVisibilityCondition[]>;
|
|
68
73
|
default: () => never[];
|
|
69
74
|
};
|
|
75
|
+
/** 'leading': the member sheet's layout, collapsed with the count under each category. */
|
|
76
|
+
layout: {
|
|
77
|
+
type: PropType<"trailing" | "leading">;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
70
80
|
}>> & Readonly<{
|
|
71
81
|
"onUpdate:model-value"?: ((subject: {
|
|
72
82
|
reason?: string | null | undefined;
|
|
@@ -78,6 +88,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
78
88
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
79
89
|
}[]) => any) | undefined;
|
|
80
90
|
}>, {
|
|
91
|
+
layout: "trailing" | "leading";
|
|
81
92
|
disable: boolean;
|
|
82
93
|
additionalPermissions: IFdtoPortalPermissionsWithVisibilityCondition[];
|
|
83
94
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -26,6 +26,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
26
26
|
type: StringConstructor;
|
|
27
27
|
required: true;
|
|
28
28
|
};
|
|
29
|
+
/** 'leading': the member sheet's layout, with the chosen names under the title. */
|
|
30
|
+
layout: {
|
|
31
|
+
type: PropType<"trailing" | "leading">;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
29
34
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
35
|
"update:model-value": (...args: any[]) => void;
|
|
31
36
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -48,10 +53,16 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
48
53
|
type: StringConstructor;
|
|
49
54
|
required: true;
|
|
50
55
|
};
|
|
56
|
+
/** 'leading': the member sheet's layout, with the chosen names under the title. */
|
|
57
|
+
layout: {
|
|
58
|
+
type: PropType<"trailing" | "leading">;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
51
61
|
}>> & Readonly<{
|
|
52
62
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
53
63
|
}>, {
|
|
54
64
|
modelValue: string[] | null;
|
|
65
|
+
layout: "trailing" | "leading";
|
|
55
66
|
disable: boolean;
|
|
56
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
57
68
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { RawRule } from '@casl/ability';
|
|
2
|
+
import { type PropType } from 'vue';
|
|
3
|
+
import { FdoPermissionRule } from '@feedmepos/core/entity';
|
|
4
|
+
import { type MemberGrantPayload } from '@/helpers/member-grant';
|
|
5
|
+
import { type IFdtoPermissionPosUser } from '@/types/team';
|
|
6
|
+
/** The saved grant being edited. A new `id` resets the form. */
|
|
7
|
+
export interface MemberGrantInitialValue {
|
|
8
|
+
id: string;
|
|
9
|
+
isOwner?: boolean;
|
|
10
|
+
name: string;
|
|
11
|
+
permissions: RawRule[] | FdoPermissionRule[];
|
|
12
|
+
permissionSetIds: string[];
|
|
13
|
+
posUser?: IFdtoPermissionPosUser;
|
|
14
|
+
posUserId?: string;
|
|
15
|
+
}
|
|
16
|
+
declare function isModified(): boolean;
|
|
17
|
+
declare function readGrantData(): MemberGrantPayload;
|
|
18
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
19
|
+
initialValue: {
|
|
20
|
+
type: PropType<MemberGrantInitialValue | null>;
|
|
21
|
+
};
|
|
22
|
+
/** Name to fall back on when neither the saved grant nor the POS user has one. */
|
|
23
|
+
fallbackName: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
loading: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
}>, {
|
|
32
|
+
readGrantData: typeof readGrantData;
|
|
33
|
+
isModified: typeof isModified;
|
|
34
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
initialValue: {
|
|
36
|
+
type: PropType<MemberGrantInitialValue | null>;
|
|
37
|
+
};
|
|
38
|
+
/** Name to fall back on when neither the saved grant nor the POS user has one. */
|
|
39
|
+
fallbackName: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
loading: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
}>> & Readonly<{}>, {
|
|
48
|
+
loading: boolean;
|
|
49
|
+
fallbackName: string;
|
|
50
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
51
|
+
export default _default;
|
package/dist/src/views/team/{member/MemberInfo.vue.d.ts → components/MemberStatusBadge.vue.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TeamMemberStatus } from '@/types/team';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
|
|
3
|
+
status: TeamMemberStatus;
|
|
4
4
|
};
|
|
5
5
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
6
|
export default _default;
|
|
@@ -9,6 +9,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
9
9
|
type: PropType<Array<IFdtoPermissionSet>>;
|
|
10
10
|
default: () => never[];
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* 'all': every section in its own box (permission roles page).
|
|
14
|
+
* 'workplace': only manageable restaurant / warehouse / usable POS roles ("Where they work").
|
|
15
|
+
* 'portal': only the portal permission categories ("Portal access").
|
|
16
|
+
* The member sheet renders the two parts in separate cards over the same rules.
|
|
17
|
+
*/
|
|
18
|
+
part: {
|
|
19
|
+
type: PropType<"all" | "workplace" | "portal">;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
12
22
|
modelValue: {
|
|
13
23
|
type: PropType<{
|
|
14
24
|
reason?: string | null | undefined;
|
|
@@ -49,6 +59,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
49
59
|
type: PropType<Array<IFdtoPermissionSet>>;
|
|
50
60
|
default: () => never[];
|
|
51
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* 'all': every section in its own box (permission roles page).
|
|
64
|
+
* 'workplace': only manageable restaurant / warehouse / usable POS roles ("Where they work").
|
|
65
|
+
* 'portal': only the portal permission categories ("Portal access").
|
|
66
|
+
* The member sheet renders the two parts in separate cards over the same rules.
|
|
67
|
+
*/
|
|
68
|
+
part: {
|
|
69
|
+
type: PropType<"all" | "workplace" | "portal">;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
52
72
|
modelValue: {
|
|
53
73
|
type: PropType<{
|
|
54
74
|
reason?: string | null | undefined;
|
|
@@ -82,5 +102,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
82
102
|
}>, {
|
|
83
103
|
disable: boolean;
|
|
84
104
|
inheritPermissions: IFdtoPermissionSet[];
|
|
105
|
+
part: "portal" | "all" | "workplace";
|
|
85
106
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
86
107
|
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { HrmRestaurant } from '@/types/restaurant';
|
|
3
|
+
import type { Role } from '@/types/role';
|
|
4
|
+
import type { IFdtoPermissionPosUserRole } from '@/types/team';
|
|
5
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: PropType<IFdtoPermissionPosUserRole[]>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
restaurants: {
|
|
11
|
+
type: PropType<HrmRestaurant[]>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
roles: {
|
|
15
|
+
type: PropType<Role[]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
isRoleUsable: {
|
|
19
|
+
type: PropType<(role: Role) => boolean>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
23
|
+
"update:modelValue": (roles: IFdtoPermissionPosUserRole[]) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
modelValue: {
|
|
26
|
+
type: PropType<IFdtoPermissionPosUserRole[]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
restaurants: {
|
|
30
|
+
type: PropType<HrmRestaurant[]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
roles: {
|
|
34
|
+
type: PropType<Role[]>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
isRoleUsable: {
|
|
38
|
+
type: PropType<(role: Role) => boolean>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
}>> & Readonly<{
|
|
42
|
+
"onUpdate:modelValue"?: ((roles: IFdtoPermissionPosUserRole[]) => any) | undefined;
|
|
43
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
44
|
+
export default _default;
|
|
@@ -24,6 +24,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
24
24
|
type: BooleanConstructor;
|
|
25
25
|
default: boolean;
|
|
26
26
|
};
|
|
27
|
+
/** 'leading': the member sheet's layout, with the chosen roles under the title. */
|
|
28
|
+
layout: {
|
|
29
|
+
type: PropType<"trailing" | "leading">;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
27
32
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
28
33
|
"update:model-value": (restaurants: string[] | null) => any;
|
|
29
34
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -43,11 +48,17 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
43
48
|
type: BooleanConstructor;
|
|
44
49
|
default: boolean;
|
|
45
50
|
};
|
|
51
|
+
/** 'leading': the member sheet's layout, with the chosen roles under the title. */
|
|
52
|
+
layout: {
|
|
53
|
+
type: PropType<"trailing" | "leading">;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
46
56
|
}>> & Readonly<{
|
|
47
57
|
"onUpdate:model-value"?: ((restaurants: string[] | null) => any) | undefined;
|
|
48
58
|
}>, {
|
|
49
59
|
modelValue: string[] | null;
|
|
50
60
|
restaurantIds: string[] | null;
|
|
61
|
+
layout: "trailing" | "leading";
|
|
51
62
|
disable: boolean;
|
|
52
63
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
53
64
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|