@feedmepos/mf-hrm-portal 1.1.6-dev → 2.0.0
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/AuditLogList-Cm3ueTso.js +474 -0
- package/dist/EmployeeList-vMcIqBU_.js +626 -0
- package/dist/{main-C370wsCl.js → Main-CeGYov-a.js} +1502 -1531
- package/dist/Main-gHCENd4i.js +86 -0
- package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-DuwNwJDM.js → PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js} +2 -2
- package/dist/PermissionSetList-Dw69OYF4.js +323 -0
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-bvPOPUhu.js +3092 -0
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js +38 -0
- package/dist/RoleList-D1CrixYc.js +497 -0
- package/dist/{useSearch-C25VELOk.js → SelectFilter-NbXrJ4iH.js} +90 -101
- package/dist/TeamMemberList-M0Q8CP4h.js +973 -0
- package/dist/{TimesheetList-qaolOL4w.js → TimesheetList-BmOfy0pc.js} +31 -29
- package/dist/api/audit-log/index.d.ts +14 -0
- package/dist/api/index.d.ts +5 -0
- package/dist/api/permission-assignment/index.d.ts +10 -0
- package/dist/api/permission-set/index.d.ts +8 -0
- package/dist/api/report-query/index.d.ts +5 -0
- package/dist/api/team/index.d.ts +2 -1
- package/dist/app-RUdgf-7_.js +3286 -0
- package/dist/app.js +1 -1
- package/dist/components/AppForm.vue.d.ts +3 -2
- package/dist/components/CheckboxInput.vue.d.ts +10 -4
- package/dist/components/CollapsibleWrapper.vue.d.ts +3 -2
- package/dist/components/form/SelectFilter.vue.d.ts +3 -2
- package/dist/components/layout/FormColumn.vue.d.ts +6 -3
- package/dist/components/layout/FormItem.vue.d.ts +2 -1
- package/dist/components/layout/FormSection.vue.d.ts +2 -1
- package/dist/components/layout/FullWrapper.vue.d.ts +6 -3
- package/dist/components/layout/PageLayout.vue.d.ts +2 -1
- package/dist/components/menu/BottomSheetMenu.vue.d.ts +2 -1
- package/dist/components/menu/BottomSheetMenuItem.vue.d.ts +6 -3
- package/dist/components/table/EmptyDataTemplate/index.vue.d.ts +6 -3
- package/dist/composables/useAppStore.d.ts +6 -6
- package/dist/composables/useDateRange.d.ts +1 -1
- package/dist/composables/useReportPermissions.d.ts +14 -0
- package/dist/composables/useRestaurantMap.d.ts +4 -8
- package/dist/composables/useSheet.d.ts +1 -1
- package/dist/dayjs.min-D9w2-Exz.js +282 -0
- package/dist/employee-B3jBmvNJ.js +144 -0
- package/dist/helpers/permission-set.d.ts +69 -0
- package/dist/helpers/portal-user.d.ts +8 -0
- package/dist/helpers/rule.d.ts +5 -4
- package/dist/index-BMVQbdBd.js +827 -0
- package/dist/index-BS6B6k7h.js +10340 -0
- package/dist/{empty-placeholder-ey8LJtN1.js → index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js} +43 -2
- package/dist/{lodash-B5BTJU4_.js → lodash-CglPbFKR.js} +326 -343
- package/dist/router/shared.d.ts +4 -1
- package/dist/stores/employee.d.ts +4 -4
- package/dist/stores/permission-assignment.d.ts +277 -0
- package/dist/stores/permission-set.d.ts +265 -0
- package/dist/stores/role.d.ts +4 -4
- package/dist/stores/team.d.ts +300 -0
- package/dist/stores/timesheet.d.ts +19 -19
- package/dist/style.css +1 -1
- package/dist/team-afjBSzOz.js +33 -0
- package/dist/{timesheet-Cy-jSzje.js → timesheet-fOBJOS1i.js} +14 -14
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/types/audit-log.d.ts +1 -0
- package/dist/types/permission-assignment.d.ts +20 -0
- package/dist/types/permission-set.d.ts +24 -0
- package/dist/types/report-query.d.ts +6 -0
- package/dist/types/team.d.ts +13 -3
- package/dist/useAppStore-D-SLROq6.js +168 -0
- package/dist/useLoading-CLQGJW7G.js +99 -0
- package/dist/useReportPermissions-Cx4ghxj6.js +65 -0
- package/dist/{useRestaurantMap-CpS9-OSq.js → useRestaurantMap-D5BNPLKh.js} +7 -7
- package/dist/useSearch-B6WK1LBB.js +15 -0
- package/dist/views/audit-log/locales/index.d.ts +295 -0
- package/dist/views/hr/employee/{components/EmployeeForm.vue.d.ts → EmployeeForm.vue.d.ts} +10 -7
- package/dist/views/team/Main.vue.d.ts +2 -0
- package/dist/views/team/components/BasePermission.vue.d.ts +64 -0
- package/dist/views/team/components/{TeamMemberConditionPermission.vue.d.ts → ConditionPermission.vue.d.ts} +14 -1
- package/dist/views/team/components/InheritPermissionTooltip.vue.d.ts +14 -0
- package/dist/views/team/components/PermissionWithTooltip.vue.d.ts +14 -0
- package/dist/views/team/components/PortalPermissionEditor.vue.d.ts +68 -28
- package/dist/views/team/components/{TeamMemberRolePermission.vue.d.ts → PosRolePermission.vue.d.ts} +14 -1
- package/dist/views/team/locales/index.d.ts +200 -4
- package/dist/views/team/{components → member}/AddMemberForm.vue.d.ts +1 -0
- package/dist/views/team/member/TeamMemberList.vue.d.ts +4 -0
- package/dist/views/team/member/TeamMemberMasterUser.vue.d.ts +55 -0
- package/dist/views/team/permission-set/PermissionSetForm.vue.d.ts +19 -0
- package/dist/views/team/permission-set/PermissionSetList.vue.d.ts +5 -0
- package/package.json +15 -8
- package/dist/EmployeeList-CP42mLpi.js +0 -605
- package/dist/RoleList-CsctaXlu.js +0 -492
- package/dist/TeamMemberList-DtXoUa5K.js +0 -1508
- package/dist/app-G_Dbs0OJ.js +0 -1202
- package/dist/employee-BTWpYxn5.js +0 -449
- package/dist/index-8ift6lz3.js +0 -57
- package/dist/rule-CM7JgjNr.js +0 -142112
- package/dist/types/permission.d.ts +0 -4
- package/dist/useAppStore-zINIo0LR.js +0 -93
- package/dist/useLoading-CWBRIBiy.js +0 -141
- package/dist/views/team/components/TeamMemberBasePermission.vue.d.ts +0 -36
- package/dist/views/team/components/TeamMemberMasterUser.vue.d.ts +0 -718
- /package/dist/views/{hr/main.vue.d.ts → audit-log/AuditLogList.vue.d.ts} +0 -0
- /package/dist/views/{team/TeamMemberList.vue.d.ts → hr/Main.vue.d.ts} +0 -0
- /package/dist/views/team/{components → member}/MemberInfo.vue.d.ts +0 -0
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import type { FTeamMember } from '@/types/team';
|
|
2
|
+
declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
3
|
+
members: import("vue").Ref<{
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
phoneNumber: string;
|
|
7
|
+
email: string;
|
|
8
|
+
restaurants: string[];
|
|
9
|
+
managableRestaurantIds: string[];
|
|
10
|
+
permissions: {
|
|
11
|
+
reason?: string | null | undefined | undefined;
|
|
12
|
+
conditions?: any;
|
|
13
|
+
fields?: string[] | null | undefined | undefined;
|
|
14
|
+
inverted?: boolean | null | undefined | undefined;
|
|
15
|
+
label: string;
|
|
16
|
+
subject: string;
|
|
17
|
+
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
18
|
+
}[];
|
|
19
|
+
permissionLabels: string[];
|
|
20
|
+
doc: {
|
|
21
|
+
id: string;
|
|
22
|
+
posUserId: string;
|
|
23
|
+
isOwner: boolean;
|
|
24
|
+
name: string;
|
|
25
|
+
phoneNumber: string;
|
|
26
|
+
email: string;
|
|
27
|
+
posUser?: {
|
|
28
|
+
code: string;
|
|
29
|
+
name: string;
|
|
30
|
+
passcode: string;
|
|
31
|
+
roles: {
|
|
32
|
+
restaurantId: string;
|
|
33
|
+
roleId: string;
|
|
34
|
+
}[];
|
|
35
|
+
} | undefined;
|
|
36
|
+
businessId: string;
|
|
37
|
+
userId: string;
|
|
38
|
+
permissions: {
|
|
39
|
+
subject: string | string[];
|
|
40
|
+
actions: string | string[];
|
|
41
|
+
fields?: string[] | undefined;
|
|
42
|
+
conditions?: Object | undefined;
|
|
43
|
+
inverted?: boolean | undefined;
|
|
44
|
+
reason?: string | undefined;
|
|
45
|
+
}[];
|
|
46
|
+
permissionSetIds: string[];
|
|
47
|
+
};
|
|
48
|
+
}[], FTeamMember[] | {
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
phoneNumber: string;
|
|
52
|
+
email: string;
|
|
53
|
+
restaurants: string[];
|
|
54
|
+
managableRestaurantIds: string[];
|
|
55
|
+
permissions: {
|
|
56
|
+
reason?: string | null | undefined | undefined;
|
|
57
|
+
conditions?: any;
|
|
58
|
+
fields?: string[] | null | undefined | undefined;
|
|
59
|
+
inverted?: boolean | null | undefined | undefined;
|
|
60
|
+
label: string;
|
|
61
|
+
subject: string;
|
|
62
|
+
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
63
|
+
}[];
|
|
64
|
+
permissionLabels: string[];
|
|
65
|
+
doc: {
|
|
66
|
+
id: string;
|
|
67
|
+
posUserId: string;
|
|
68
|
+
isOwner: boolean;
|
|
69
|
+
name: string;
|
|
70
|
+
phoneNumber: string;
|
|
71
|
+
email: string;
|
|
72
|
+
posUser?: {
|
|
73
|
+
code: string;
|
|
74
|
+
name: string;
|
|
75
|
+
passcode: string;
|
|
76
|
+
roles: {
|
|
77
|
+
restaurantId: string;
|
|
78
|
+
roleId: string;
|
|
79
|
+
}[];
|
|
80
|
+
} | undefined;
|
|
81
|
+
businessId: string;
|
|
82
|
+
userId: string;
|
|
83
|
+
permissions: {
|
|
84
|
+
subject: string | string[];
|
|
85
|
+
actions: string | string[];
|
|
86
|
+
fields?: string[] | undefined;
|
|
87
|
+
conditions?: Object | undefined;
|
|
88
|
+
inverted?: boolean | undefined;
|
|
89
|
+
reason?: string | undefined;
|
|
90
|
+
}[];
|
|
91
|
+
permissionSetIds: string[];
|
|
92
|
+
};
|
|
93
|
+
}[]>;
|
|
94
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
95
|
+
userIdToName: import("vue").ComputedRef<Record<string, string>>;
|
|
96
|
+
userIdToEmail: import("vue").ComputedRef<Record<string, string>>;
|
|
97
|
+
userIdToPhone: import("vue").ComputedRef<Record<string, string>>;
|
|
98
|
+
readTeamMembers: ({ force }?: {
|
|
99
|
+
force?: boolean | undefined;
|
|
100
|
+
}) => Promise<void>;
|
|
101
|
+
}, "isLoading" | "members">, Pick<{
|
|
102
|
+
members: import("vue").Ref<{
|
|
103
|
+
id: string;
|
|
104
|
+
name: string;
|
|
105
|
+
phoneNumber: string;
|
|
106
|
+
email: string;
|
|
107
|
+
restaurants: string[];
|
|
108
|
+
managableRestaurantIds: string[];
|
|
109
|
+
permissions: {
|
|
110
|
+
reason?: string | null | undefined | undefined;
|
|
111
|
+
conditions?: any;
|
|
112
|
+
fields?: string[] | null | undefined | undefined;
|
|
113
|
+
inverted?: boolean | null | undefined | undefined;
|
|
114
|
+
label: string;
|
|
115
|
+
subject: string;
|
|
116
|
+
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
117
|
+
}[];
|
|
118
|
+
permissionLabels: string[];
|
|
119
|
+
doc: {
|
|
120
|
+
id: string;
|
|
121
|
+
posUserId: string;
|
|
122
|
+
isOwner: boolean;
|
|
123
|
+
name: string;
|
|
124
|
+
phoneNumber: string;
|
|
125
|
+
email: string;
|
|
126
|
+
posUser?: {
|
|
127
|
+
code: string;
|
|
128
|
+
name: string;
|
|
129
|
+
passcode: string;
|
|
130
|
+
roles: {
|
|
131
|
+
restaurantId: string;
|
|
132
|
+
roleId: string;
|
|
133
|
+
}[];
|
|
134
|
+
} | undefined;
|
|
135
|
+
businessId: string;
|
|
136
|
+
userId: string;
|
|
137
|
+
permissions: {
|
|
138
|
+
subject: string | string[];
|
|
139
|
+
actions: string | string[];
|
|
140
|
+
fields?: string[] | undefined;
|
|
141
|
+
conditions?: Object | undefined;
|
|
142
|
+
inverted?: boolean | undefined;
|
|
143
|
+
reason?: string | undefined;
|
|
144
|
+
}[];
|
|
145
|
+
permissionSetIds: string[];
|
|
146
|
+
};
|
|
147
|
+
}[], FTeamMember[] | {
|
|
148
|
+
id: string;
|
|
149
|
+
name: string;
|
|
150
|
+
phoneNumber: string;
|
|
151
|
+
email: string;
|
|
152
|
+
restaurants: string[];
|
|
153
|
+
managableRestaurantIds: string[];
|
|
154
|
+
permissions: {
|
|
155
|
+
reason?: string | null | undefined | undefined;
|
|
156
|
+
conditions?: any;
|
|
157
|
+
fields?: string[] | null | undefined | undefined;
|
|
158
|
+
inverted?: boolean | null | undefined | undefined;
|
|
159
|
+
label: string;
|
|
160
|
+
subject: string;
|
|
161
|
+
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
162
|
+
}[];
|
|
163
|
+
permissionLabels: string[];
|
|
164
|
+
doc: {
|
|
165
|
+
id: string;
|
|
166
|
+
posUserId: string;
|
|
167
|
+
isOwner: boolean;
|
|
168
|
+
name: string;
|
|
169
|
+
phoneNumber: string;
|
|
170
|
+
email: string;
|
|
171
|
+
posUser?: {
|
|
172
|
+
code: string;
|
|
173
|
+
name: string;
|
|
174
|
+
passcode: string;
|
|
175
|
+
roles: {
|
|
176
|
+
restaurantId: string;
|
|
177
|
+
roleId: string;
|
|
178
|
+
}[];
|
|
179
|
+
} | undefined;
|
|
180
|
+
businessId: string;
|
|
181
|
+
userId: string;
|
|
182
|
+
permissions: {
|
|
183
|
+
subject: string | string[];
|
|
184
|
+
actions: string | string[];
|
|
185
|
+
fields?: string[] | undefined;
|
|
186
|
+
conditions?: Object | undefined;
|
|
187
|
+
inverted?: boolean | undefined;
|
|
188
|
+
reason?: string | undefined;
|
|
189
|
+
}[];
|
|
190
|
+
permissionSetIds: string[];
|
|
191
|
+
};
|
|
192
|
+
}[]>;
|
|
193
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
194
|
+
userIdToName: import("vue").ComputedRef<Record<string, string>>;
|
|
195
|
+
userIdToEmail: import("vue").ComputedRef<Record<string, string>>;
|
|
196
|
+
userIdToPhone: import("vue").ComputedRef<Record<string, string>>;
|
|
197
|
+
readTeamMembers: ({ force }?: {
|
|
198
|
+
force?: boolean | undefined;
|
|
199
|
+
}) => Promise<void>;
|
|
200
|
+
}, "userIdToName" | "userIdToEmail" | "userIdToPhone">, Pick<{
|
|
201
|
+
members: import("vue").Ref<{
|
|
202
|
+
id: string;
|
|
203
|
+
name: string;
|
|
204
|
+
phoneNumber: string;
|
|
205
|
+
email: string;
|
|
206
|
+
restaurants: string[];
|
|
207
|
+
managableRestaurantIds: string[];
|
|
208
|
+
permissions: {
|
|
209
|
+
reason?: string | null | undefined | undefined;
|
|
210
|
+
conditions?: any;
|
|
211
|
+
fields?: string[] | null | undefined | undefined;
|
|
212
|
+
inverted?: boolean | null | undefined | undefined;
|
|
213
|
+
label: string;
|
|
214
|
+
subject: string;
|
|
215
|
+
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
216
|
+
}[];
|
|
217
|
+
permissionLabels: string[];
|
|
218
|
+
doc: {
|
|
219
|
+
id: string;
|
|
220
|
+
posUserId: string;
|
|
221
|
+
isOwner: boolean;
|
|
222
|
+
name: string;
|
|
223
|
+
phoneNumber: string;
|
|
224
|
+
email: string;
|
|
225
|
+
posUser?: {
|
|
226
|
+
code: string;
|
|
227
|
+
name: string;
|
|
228
|
+
passcode: string;
|
|
229
|
+
roles: {
|
|
230
|
+
restaurantId: string;
|
|
231
|
+
roleId: string;
|
|
232
|
+
}[];
|
|
233
|
+
} | undefined;
|
|
234
|
+
businessId: string;
|
|
235
|
+
userId: string;
|
|
236
|
+
permissions: {
|
|
237
|
+
subject: string | string[];
|
|
238
|
+
actions: string | string[];
|
|
239
|
+
fields?: string[] | undefined;
|
|
240
|
+
conditions?: Object | undefined;
|
|
241
|
+
inverted?: boolean | undefined;
|
|
242
|
+
reason?: string | undefined;
|
|
243
|
+
}[];
|
|
244
|
+
permissionSetIds: string[];
|
|
245
|
+
};
|
|
246
|
+
}[], FTeamMember[] | {
|
|
247
|
+
id: string;
|
|
248
|
+
name: string;
|
|
249
|
+
phoneNumber: string;
|
|
250
|
+
email: string;
|
|
251
|
+
restaurants: string[];
|
|
252
|
+
managableRestaurantIds: string[];
|
|
253
|
+
permissions: {
|
|
254
|
+
reason?: string | null | undefined | undefined;
|
|
255
|
+
conditions?: any;
|
|
256
|
+
fields?: string[] | null | undefined | undefined;
|
|
257
|
+
inverted?: boolean | null | undefined | undefined;
|
|
258
|
+
label: string;
|
|
259
|
+
subject: string;
|
|
260
|
+
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
261
|
+
}[];
|
|
262
|
+
permissionLabels: string[];
|
|
263
|
+
doc: {
|
|
264
|
+
id: string;
|
|
265
|
+
posUserId: string;
|
|
266
|
+
isOwner: boolean;
|
|
267
|
+
name: string;
|
|
268
|
+
phoneNumber: string;
|
|
269
|
+
email: string;
|
|
270
|
+
posUser?: {
|
|
271
|
+
code: string;
|
|
272
|
+
name: string;
|
|
273
|
+
passcode: string;
|
|
274
|
+
roles: {
|
|
275
|
+
restaurantId: string;
|
|
276
|
+
roleId: string;
|
|
277
|
+
}[];
|
|
278
|
+
} | undefined;
|
|
279
|
+
businessId: string;
|
|
280
|
+
userId: string;
|
|
281
|
+
permissions: {
|
|
282
|
+
subject: string | string[];
|
|
283
|
+
actions: string | string[];
|
|
284
|
+
fields?: string[] | undefined;
|
|
285
|
+
conditions?: Object | undefined;
|
|
286
|
+
inverted?: boolean | undefined;
|
|
287
|
+
reason?: string | undefined;
|
|
288
|
+
}[];
|
|
289
|
+
permissionSetIds: string[];
|
|
290
|
+
};
|
|
291
|
+
}[]>;
|
|
292
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
293
|
+
userIdToName: import("vue").ComputedRef<Record<string, string>>;
|
|
294
|
+
userIdToEmail: import("vue").ComputedRef<Record<string, string>>;
|
|
295
|
+
userIdToPhone: import("vue").ComputedRef<Record<string, string>>;
|
|
296
|
+
readTeamMembers: ({ force }?: {
|
|
297
|
+
force?: boolean | undefined;
|
|
298
|
+
}) => Promise<void>;
|
|
299
|
+
}, "readTeamMembers">>;
|
|
300
|
+
export { useTeamStore };
|
|
@@ -7,7 +7,7 @@ export declare const useTimesheetStore: () => {
|
|
|
7
7
|
duration: string;
|
|
8
8
|
restaurantId: string;
|
|
9
9
|
restaurantName: string;
|
|
10
|
-
endedAt?: string | null | undefined;
|
|
10
|
+
endedAt?: string | null | undefined | undefined;
|
|
11
11
|
user: {
|
|
12
12
|
name: string;
|
|
13
13
|
id: string;
|
|
@@ -21,7 +21,7 @@ export declare const useTimesheetStore: () => {
|
|
|
21
21
|
duration: string;
|
|
22
22
|
restaurantId: string;
|
|
23
23
|
restaurantName: string;
|
|
24
|
-
endedAt?: string | null | undefined;
|
|
24
|
+
endedAt?: string | null | undefined | undefined;
|
|
25
25
|
user: {
|
|
26
26
|
name: string;
|
|
27
27
|
id: string;
|
|
@@ -37,7 +37,7 @@ export declare const useTimesheetStore: () => {
|
|
|
37
37
|
duration: string;
|
|
38
38
|
restaurantId: string;
|
|
39
39
|
restaurantName: string;
|
|
40
|
-
endedAt?: string | null | undefined;
|
|
40
|
+
endedAt?: string | null | undefined | undefined;
|
|
41
41
|
user: {
|
|
42
42
|
name: string;
|
|
43
43
|
id: string;
|
|
@@ -53,7 +53,7 @@ export declare const useTimesheetStore: () => {
|
|
|
53
53
|
duration: string;
|
|
54
54
|
restaurantId: string;
|
|
55
55
|
restaurantName: string;
|
|
56
|
-
endedAt?: string | null | undefined;
|
|
56
|
+
endedAt?: string | null | undefined | undefined;
|
|
57
57
|
user: {
|
|
58
58
|
name: string;
|
|
59
59
|
id: string;
|
|
@@ -67,7 +67,7 @@ export declare const useTimesheetStore: () => {
|
|
|
67
67
|
duration: string;
|
|
68
68
|
restaurantId: string;
|
|
69
69
|
restaurantName: string;
|
|
70
|
-
endedAt?: string | null | undefined;
|
|
70
|
+
endedAt?: string | null | undefined | undefined;
|
|
71
71
|
user: {
|
|
72
72
|
name: string;
|
|
73
73
|
id: string;
|
|
@@ -86,7 +86,7 @@ export declare const useTimesheetStore: () => {
|
|
|
86
86
|
duration: string;
|
|
87
87
|
restaurantId: string;
|
|
88
88
|
restaurantName: string;
|
|
89
|
-
endedAt?: string | null | undefined;
|
|
89
|
+
endedAt?: string | null | undefined | undefined;
|
|
90
90
|
user: {
|
|
91
91
|
name: string;
|
|
92
92
|
id: string;
|
|
@@ -103,7 +103,7 @@ export declare const useTimesheetStore: () => {
|
|
|
103
103
|
duration: string;
|
|
104
104
|
restaurantId: string;
|
|
105
105
|
restaurantName: string;
|
|
106
|
-
endedAt?: string | null | undefined;
|
|
106
|
+
endedAt?: string | null | undefined | undefined;
|
|
107
107
|
user: {
|
|
108
108
|
name: string;
|
|
109
109
|
id: string;
|
|
@@ -121,7 +121,7 @@ export declare const useTimesheetStore: () => {
|
|
|
121
121
|
duration: string;
|
|
122
122
|
restaurantId: string;
|
|
123
123
|
restaurantName: string;
|
|
124
|
-
endedAt?: string | null | undefined;
|
|
124
|
+
endedAt?: string | null | undefined | undefined;
|
|
125
125
|
user: {
|
|
126
126
|
name: string;
|
|
127
127
|
id: string;
|
|
@@ -135,7 +135,7 @@ export declare const useTimesheetStore: () => {
|
|
|
135
135
|
duration: string;
|
|
136
136
|
restaurantId: string;
|
|
137
137
|
restaurantName: string;
|
|
138
|
-
endedAt?: string | null | undefined;
|
|
138
|
+
endedAt?: string | null | undefined | undefined;
|
|
139
139
|
user: {
|
|
140
140
|
name: string;
|
|
141
141
|
id: string;
|
|
@@ -145,9 +145,9 @@ export declare const useTimesheetStore: () => {
|
|
|
145
145
|
}[]>;
|
|
146
146
|
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
147
147
|
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
148
|
-
}, "timesheets">>, options?:
|
|
149
|
-
detached?: boolean
|
|
150
|
-
} & import("vue").WatchOptions
|
|
148
|
+
}, "timesheets">>, options?: {
|
|
149
|
+
detached?: boolean;
|
|
150
|
+
} & import("vue").WatchOptions): () => void;
|
|
151
151
|
$onAction(callback: import("pinia").StoreOnActionListener<"timesheet", Pick<{
|
|
152
152
|
timesheets: import("vue").Ref<{
|
|
153
153
|
start: string;
|
|
@@ -156,7 +156,7 @@ export declare const useTimesheetStore: () => {
|
|
|
156
156
|
duration: string;
|
|
157
157
|
restaurantId: string;
|
|
158
158
|
restaurantName: string;
|
|
159
|
-
endedAt?: string | null | undefined;
|
|
159
|
+
endedAt?: string | null | undefined | undefined;
|
|
160
160
|
user: {
|
|
161
161
|
name: string;
|
|
162
162
|
id: string;
|
|
@@ -170,7 +170,7 @@ export declare const useTimesheetStore: () => {
|
|
|
170
170
|
duration: string;
|
|
171
171
|
restaurantId: string;
|
|
172
172
|
restaurantName: string;
|
|
173
|
-
endedAt?: string | null | undefined;
|
|
173
|
+
endedAt?: string | null | undefined | undefined;
|
|
174
174
|
user: {
|
|
175
175
|
name: string;
|
|
176
176
|
id: string;
|
|
@@ -188,7 +188,7 @@ export declare const useTimesheetStore: () => {
|
|
|
188
188
|
duration: string;
|
|
189
189
|
restaurantId: string;
|
|
190
190
|
restaurantName: string;
|
|
191
|
-
endedAt?: string | null | undefined;
|
|
191
|
+
endedAt?: string | null | undefined | undefined;
|
|
192
192
|
user: {
|
|
193
193
|
name: string;
|
|
194
194
|
id: string;
|
|
@@ -202,7 +202,7 @@ export declare const useTimesheetStore: () => {
|
|
|
202
202
|
duration: string;
|
|
203
203
|
restaurantId: string;
|
|
204
204
|
restaurantName: string;
|
|
205
|
-
endedAt?: string | null | undefined;
|
|
205
|
+
endedAt?: string | null | undefined | undefined;
|
|
206
206
|
user: {
|
|
207
207
|
name: string;
|
|
208
208
|
id: string;
|
|
@@ -220,7 +220,7 @@ export declare const useTimesheetStore: () => {
|
|
|
220
220
|
duration: string;
|
|
221
221
|
restaurantId: string;
|
|
222
222
|
restaurantName: string;
|
|
223
|
-
endedAt?: string | null | undefined;
|
|
223
|
+
endedAt?: string | null | undefined | undefined;
|
|
224
224
|
user: {
|
|
225
225
|
name: string;
|
|
226
226
|
id: string;
|
|
@@ -234,7 +234,7 @@ export declare const useTimesheetStore: () => {
|
|
|
234
234
|
duration: string;
|
|
235
235
|
restaurantId: string;
|
|
236
236
|
restaurantName: string;
|
|
237
|
-
endedAt?: string | null | undefined;
|
|
237
|
+
endedAt?: string | null | undefined | undefined;
|
|
238
238
|
user: {
|
|
239
239
|
name: string;
|
|
240
240
|
id: string;
|
|
@@ -244,7 +244,7 @@ export declare const useTimesheetStore: () => {
|
|
|
244
244
|
}[]>;
|
|
245
245
|
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
246
246
|
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
247
|
-
}, "readTimesheet" | "updateTimesheet">>, detached?: boolean
|
|
247
|
+
}, "readTimesheet" | "updateTimesheet">>, detached?: boolean): () => void;
|
|
248
248
|
$dispose(): void;
|
|
249
249
|
$id: "timesheet";
|
|
250
250
|
_customProperties: Set<string>;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.user-info-icon[data-v-c2c7ed35]{flex-shrink:0;cursor:pointer;font-size:.75rem;font-weight:600;line-height:1rem;letter-spacing:.02em;text-decoration-line:none;color:var(--fm-color-neutral-white);display:flex;align-items:center;justify-content:center;background:linear-gradient(201deg,#fc9b40 10.3%,#ff6052 98.36%)}.user-info-icon--md[data-v-c2c7ed35]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-c2c7ed35]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-c2c7ed35]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-c2c7ed35]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(8px * var(--tw-space-x-reverse));margin-left:calc(8px * calc(1 - var(--tw-space-x-reverse)))}.profile-menu--profile[data-v-c2c7ed35]{padding:16px 16px 12px;border-radius:8px;display:flex;align-items:center;border-width:1px;border-color:var(--fm-color-neutral-gray-200)}.profile-menu--profile .profile-displayName[data-v-c2c7ed35]{font-size:1rem;font-weight:400;line-height:1.25rem;letter-spacing:.005em;text-decoration-line:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu--profile .profile-email[data-v-c2c7ed35],.profile-menu--profile .profile-phone[data-v-c2c7ed35]{font-size:.875rem;font-weight:400;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;color:var(--fm-color-neutral-gray-300);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1
|
+
.user-info-icon[data-v-c2c7ed35]{flex-shrink:0;cursor:pointer;font-size:.75rem;font-weight:600;line-height:1rem;letter-spacing:.02em;text-decoration-line:none;color:var(--fm-color-neutral-white);display:flex;align-items:center;justify-content:center;background:linear-gradient(201deg,#fc9b40 10.3%,#ff6052 98.36%)}.user-info-icon--md[data-v-c2c7ed35]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-c2c7ed35]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-c2c7ed35]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-c2c7ed35]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(8px * var(--tw-space-x-reverse));margin-left:calc(8px * calc(1 - var(--tw-space-x-reverse)))}.profile-menu--profile[data-v-c2c7ed35]{padding:16px 16px 12px;border-radius:8px;display:flex;align-items:center;border-width:1px;border-color:var(--fm-color-neutral-gray-200)}.profile-menu--profile .profile-displayName[data-v-c2c7ed35]{font-size:1rem;font-weight:400;line-height:1.25rem;letter-spacing:.005em;text-decoration-line:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu--profile .profile-email[data-v-c2c7ed35],.profile-menu--profile .profile-phone[data-v-c2c7ed35]{font-size:.875rem;font-weight:400;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;color:var(--fm-color-neutral-gray-300);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-log-operation-label-table{display:block;width:100%;max-width:100%;max-height:6.25rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.25rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-operation-label-table::-webkit-scrollbar{display:none}.audit-log-operation-label-detail{max-height:6.875rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.375rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-operation-label-detail::-webkit-scrollbar{display:none}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineStore as d } from "pinia";
|
|
2
|
+
import { ref as s, computed as o } from "vue";
|
|
3
|
+
import { t as f } from "./index-BS6B6k7h.js";
|
|
4
|
+
const I = d("team", () => {
|
|
5
|
+
const r = s([]), a = s(!1), m = o(
|
|
6
|
+
() => Object.fromEntries(r.value.map((e) => [e.doc.userId, e.name]))
|
|
7
|
+
), n = o(
|
|
8
|
+
() => Object.fromEntries(r.value.map((e) => [e.doc.userId, e.email]))
|
|
9
|
+
), u = o(
|
|
10
|
+
() => Object.fromEntries(r.value.map((e) => [e.doc.userId, e.phoneNumber]))
|
|
11
|
+
);
|
|
12
|
+
async function c({ force: e = !1 } = {}) {
|
|
13
|
+
if (!(!e && r.value.length > 0))
|
|
14
|
+
try {
|
|
15
|
+
a.value = !0;
|
|
16
|
+
const i = await f.readTeamMembers();
|
|
17
|
+
r.value = i.sort((t, l) => t.doc.isOwner ? -1 : t.name.localeCompare(l.name));
|
|
18
|
+
} finally {
|
|
19
|
+
a.value = !1;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
members: r,
|
|
24
|
+
isLoading: a,
|
|
25
|
+
userIdToName: m,
|
|
26
|
+
userIdToEmail: n,
|
|
27
|
+
userIdToPhone: u,
|
|
28
|
+
readTeamMembers: c
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
I as u
|
|
33
|
+
};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { d as i } from "./dayjs.min-D9w2-Exz.js";
|
|
2
|
+
import { defineStore as p, storeToRefs as T } from "pinia";
|
|
3
3
|
import { ref as l } from "vue";
|
|
4
|
-
import { b as
|
|
4
|
+
import { b as c, g as y, k as u, j as S, s as g } from "./index-BS6B6k7h.js";
|
|
5
5
|
const f = {
|
|
6
6
|
async readTimesheets(t, e) {
|
|
7
|
-
return y(await
|
|
7
|
+
return y(await c().get(`timesheet?start=${t}&end=${e}`));
|
|
8
8
|
},
|
|
9
9
|
async updateTimesheet(t, e) {
|
|
10
|
-
await
|
|
10
|
+
await c().put(`timesheet/${t}`, e);
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
function
|
|
13
|
+
function A(t) {
|
|
14
14
|
const e = t.map((o) => {
|
|
15
|
-
const { startedAt: s, endedAt: a } = o, r = i(u(s)), n = a ? i(u(a)) : null, m = (n == null ? void 0 : n.diff(r, "minute", !1)) || 0, h = n ?
|
|
15
|
+
const { startedAt: s, endedAt: a } = o, r = i(u(s)), n = a ? i(u(a)) : null, m = (n == null ? void 0 : n.diff(r, "minute", !1)) || 0, h = n ? S(m) : "", d = "YYYY-MM-DD hh:mm a";
|
|
16
16
|
return {
|
|
17
17
|
...o,
|
|
18
|
-
start: r.format(
|
|
19
|
-
end: n ? n.format(
|
|
18
|
+
start: r.format(d),
|
|
19
|
+
end: n ? n.format(d) : "",
|
|
20
20
|
totalMin: m,
|
|
21
21
|
duration: h
|
|
22
22
|
};
|
|
23
23
|
});
|
|
24
|
-
return
|
|
24
|
+
return g(e, { selector: "start" });
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const D = p("timesheet", () => {
|
|
27
27
|
const t = l([]);
|
|
28
28
|
async function e(s, a) {
|
|
29
29
|
const r = await f.readTimesheets(
|
|
30
30
|
i(s).startOf("day").toISOString(),
|
|
31
31
|
i(a).endOf("day").toISOString()
|
|
32
32
|
);
|
|
33
|
-
t.value =
|
|
33
|
+
t.value = A(r);
|
|
34
34
|
}
|
|
35
35
|
async function o(s, a, r) {
|
|
36
36
|
await f.updateTimesheet(s.restaurantId, {
|
|
@@ -45,10 +45,10 @@ const A = T("timesheet", () => {
|
|
|
45
45
|
updateTimesheet: o
|
|
46
46
|
};
|
|
47
47
|
}), M = () => {
|
|
48
|
-
const t =
|
|
48
|
+
const t = D();
|
|
49
49
|
return {
|
|
50
50
|
...t,
|
|
51
|
-
...
|
|
51
|
+
...T(t)
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
export {
|