@feedmepos/mf-hrm-portal 0.0.1-alpha.1 → 0.0.1
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/package.json +1 -1
- package/dist/App.vue.d.ts +0 -2
- package/dist/EmployeeList-BU6n0y6w.js +0 -604
- package/dist/Entry.vue.d.ts +0 -2
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js +0 -37
- package/dist/RoleList-kE8O8wyy.js +0 -492
- package/dist/TeamMemberList-BBl8auxB.js +0 -1447
- package/dist/TimesheetList-QmuwWz31.js +0 -395
- package/dist/api/employee/index.d.ts +0 -15
- package/dist/api/index.d.ts +0 -3
- package/dist/api/inventory/index.d.ts +0 -5
- package/dist/api/role/index.d.ts +0 -9
- package/dist/api/team/index.d.ts +0 -10
- package/dist/api/timesheet/index.d.ts +0 -6
- package/dist/api/user/index.d.ts +0 -6
- package/dist/app-DWSjl6MP.js +0 -1170
- package/dist/app-DXlbstZu.js +0 -2282
- package/dist/app.d.ts +0 -3
- package/dist/app.js +0 -6
- package/dist/components/AppForm.vue.d.ts +0 -45
- package/dist/components/CheckboxInput.vue.d.ts +0 -155
- package/dist/components/Navigator.vue.d.ts +0 -6
- package/dist/components/Splash.vue.d.ts +0 -2
- package/dist/composables/message.d.ts +0 -4
- package/dist/composables/restaurant.d.ts +0 -329
- package/dist/employee-C-ICOGva.js +0 -449
- package/dist/favicon.ico +0 -0
- package/dist/helpers/component.d.ts +0 -12
- package/dist/helpers/iteration.d.ts +0 -10
- package/dist/helpers/rule.d.ts +0 -28
- package/dist/helpers/utils.d.ts +0 -3
- package/dist/index-COaCoGwy.js +0 -57
- package/dist/loading-31nfQqf0.js +0 -140
- package/dist/lodash-P5mhhlxp.js +0 -3676
- package/dist/main-DlJuqlgg.js +0 -15636
- package/dist/main.d.ts +0 -1
- package/dist/restaurant-D5BNPLKh.js +0 -107
- package/dist/router/index.d.ts +0 -2
- package/dist/router/shared.d.ts +0 -10
- package/dist/rule-DjIknogy.js +0 -8229
- package/dist/search-Dh3HG-_h.js +0 -258
- package/dist/shared/api/index.d.ts +0 -3
- package/dist/shared/api/public.d.ts +0 -5
- package/dist/shared/components/button/ResponsiveFabButton.vue.d.ts +0 -3
- package/dist/shared/components/form/SelectFilter.vue.d.ts +0 -86
- package/dist/shared/components/layout/FormColumn.vue.d.ts +0 -12
- package/dist/shared/components/layout/FormItem.vue.d.ts +0 -17
- package/dist/shared/components/layout/FormSection.vue.d.ts +0 -18
- package/dist/shared/components/layout/FullWrapper.vue.d.ts +0 -9
- package/dist/shared/components/layout/HorizontalSplitter.vue.d.ts +0 -2
- package/dist/shared/components/layout/LottieAnimation.vue.d.ts +0 -39
- package/dist/shared/components/layout/PageLayout.vue.d.ts +0 -20
- package/dist/shared/components/loading/AppLoading.vue.d.ts +0 -20
- package/dist/shared/components/loading/PageLoading.vue.d.ts +0 -2
- package/dist/shared/components/loading/index.d.ts +0 -1
- package/dist/shared/components/menu/BottomSheetMenu.vue.d.ts +0 -13
- package/dist/shared/components/menu/BottomSheetMenuItem.vue.d.ts +0 -15
- package/dist/shared/components/menu/ResponsiveContextMenu.vue.d.ts +0 -13
- package/dist/shared/components/table/EmptyDataTemplate/Icon.vue.d.ts +0 -2
- package/dist/shared/components/table/EmptyDataTemplate/index.d.ts +0 -1
- package/dist/shared/components/table/EmptyDataTemplate/index.vue.d.ts +0 -18
- package/dist/shared/composable/dateRange.d.ts +0 -18
- package/dist/shared/composable/discardConfirm.d.ts +0 -1
- package/dist/shared/composable/elementPosition.d.ts +0 -17
- package/dist/shared/composable/filterSelector.d.ts +0 -12
- package/dist/shared/composable/loading.d.ts +0 -29
- package/dist/shared/composable/search.d.ts +0 -5
- package/dist/shared/composable/sheet.d.ts +0 -17
- package/dist/shared/helpers/createComponent.d.ts +0 -7
- package/dist/shared/helpers/iteration.d.ts +0 -11
- package/dist/shared/helpers/object.d.ts +0 -6
- package/dist/shared/helpers/string.d.ts +0 -12
- package/dist/shared/permission/posPermission.d.ts +0 -6
- package/dist/shared/stores/app.d.ts +0 -217
- package/dist/stores/employee.d.ts +0 -590
- package/dist/stores/role.d.ts +0 -214
- package/dist/stores/timesheet.d.ts +0 -253
- package/dist/style.css +0 -1
- package/dist/timesheet-Jwqi_LdM.js +0 -56
- package/dist/tsconfig.app.tsbuildinfo +0 -1
- package/dist/types/employee.d.ts +0 -30
- package/dist/types/permission.d.ts +0 -2
- package/dist/types/restaurant.d.ts +0 -18
- package/dist/types/role.d.ts +0 -37
- package/dist/types/team.d.ts +0 -49
- package/dist/types/timesheet.d.ts +0 -16
- package/dist/views/hr/locales/index.d.ts +0 -602
- package/dist/views/hr/views/employee/Employee.vue.d.ts +0 -2
- package/dist/views/hr/views/employee/EmployeeList.vue.d.ts +0 -38
- package/dist/views/hr/views/employee/components/EmployeeForm.vue.d.ts +0 -27
- package/dist/views/hr/views/main.vue.d.ts +0 -2
- package/dist/views/hr/views/role/RoleForm.vue.d.ts +0 -17
- package/dist/views/hr/views/role/RoleList.vue.d.ts +0 -5
- package/dist/views/hr/views/timesheet/TimesheetList.vue.d.ts +0 -2
- package/dist/views/team/locales/index.d.ts +0 -348
- package/dist/views/team/views/team/TeamMemberList.vue.d.ts +0 -2
- package/dist/views/team/views/team/components/AddMemberForm.vue.d.ts +0 -37
- package/dist/views/team/views/team/components/MemberInfo.vue.d.ts +0 -6
- package/dist/views/team/views/team/components/PortalPermissionEditor.vue.d.ts +0 -46
- package/dist/views/team/views/team/components/PortalUserSearcher.vue.d.ts +0 -40
- package/dist/views/team/views/team/components/TeamMemberBasePermission.vue.d.ts +0 -36
- package/dist/views/team/views/team/components/TeamMemberConditionPermission.vue.d.ts +0 -50
- package/dist/views/team/views/team/components/TeamMemberMasterUser.vue.d.ts +0 -710
- package/dist/views/team/views/team/components/TeamMemberRolePermission.vue.d.ts +0 -46
package/dist/stores/role.d.ts
DELETED
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import type { Role, IFdtoUpdateRoleReq } from '@/types/role';
|
|
2
|
-
export declare const useRoleStore: () => {
|
|
3
|
-
roles: import("vue").Ref<{
|
|
4
|
-
restaurants: {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
}[];
|
|
8
|
-
restaurantId: string;
|
|
9
|
-
isUsable: boolean;
|
|
10
|
-
name: string;
|
|
11
|
-
_id: string;
|
|
12
|
-
permissions: Record<string, any>[];
|
|
13
|
-
}[], Role[] | {
|
|
14
|
-
restaurants: {
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
}[];
|
|
18
|
-
restaurantId: string;
|
|
19
|
-
isUsable: boolean;
|
|
20
|
-
name: string;
|
|
21
|
-
_id: string;
|
|
22
|
-
permissions: Record<string, any>[];
|
|
23
|
-
}[]>;
|
|
24
|
-
isLoading: import("vue").Ref<boolean, boolean>;
|
|
25
|
-
$state: {
|
|
26
|
-
roles: {
|
|
27
|
-
restaurants: {
|
|
28
|
-
id: string;
|
|
29
|
-
name: string;
|
|
30
|
-
}[];
|
|
31
|
-
restaurantId: string;
|
|
32
|
-
isUsable: boolean;
|
|
33
|
-
name: string;
|
|
34
|
-
_id: string;
|
|
35
|
-
permissions: Record<string, any>[];
|
|
36
|
-
}[];
|
|
37
|
-
isLoading: boolean;
|
|
38
|
-
} & import("pinia").PiniaCustomStateProperties<Pick<{
|
|
39
|
-
roles: import("vue").Ref<{
|
|
40
|
-
restaurants: {
|
|
41
|
-
id: string;
|
|
42
|
-
name: string;
|
|
43
|
-
}[];
|
|
44
|
-
restaurantId: string;
|
|
45
|
-
isUsable: boolean;
|
|
46
|
-
name: string;
|
|
47
|
-
_id: string;
|
|
48
|
-
permissions: Record<string, any>[];
|
|
49
|
-
}[], Role[] | {
|
|
50
|
-
restaurants: {
|
|
51
|
-
id: string;
|
|
52
|
-
name: string;
|
|
53
|
-
}[];
|
|
54
|
-
restaurantId: string;
|
|
55
|
-
isUsable: boolean;
|
|
56
|
-
name: string;
|
|
57
|
-
_id: string;
|
|
58
|
-
permissions: Record<string, any>[];
|
|
59
|
-
}[]>;
|
|
60
|
-
isLoading: import("vue").Ref<boolean, boolean>;
|
|
61
|
-
readRoles: () => Promise<void>;
|
|
62
|
-
createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
63
|
-
updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
64
|
-
deleteRole: (role: Role) => Promise<void>;
|
|
65
|
-
}, "roles" | "isLoading">>;
|
|
66
|
-
$patch(partialState: import("pinia")._DeepPartial<{
|
|
67
|
-
roles: {
|
|
68
|
-
restaurants: {
|
|
69
|
-
id: string;
|
|
70
|
-
name: string;
|
|
71
|
-
}[];
|
|
72
|
-
restaurantId: string;
|
|
73
|
-
isUsable: boolean;
|
|
74
|
-
name: string;
|
|
75
|
-
_id: string;
|
|
76
|
-
permissions: Record<string, any>[];
|
|
77
|
-
}[];
|
|
78
|
-
isLoading: boolean;
|
|
79
|
-
}>): void;
|
|
80
|
-
$patch<F extends (state: {
|
|
81
|
-
roles: {
|
|
82
|
-
restaurants: {
|
|
83
|
-
id: string;
|
|
84
|
-
name: string;
|
|
85
|
-
}[];
|
|
86
|
-
restaurantId: string;
|
|
87
|
-
isUsable: boolean;
|
|
88
|
-
name: string;
|
|
89
|
-
_id: string;
|
|
90
|
-
permissions: Record<string, any>[];
|
|
91
|
-
}[];
|
|
92
|
-
isLoading: boolean;
|
|
93
|
-
}) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
|
|
94
|
-
$reset(): void;
|
|
95
|
-
$subscribe(callback: import("pinia").SubscriptionCallback<Pick<{
|
|
96
|
-
roles: import("vue").Ref<{
|
|
97
|
-
restaurants: {
|
|
98
|
-
id: string;
|
|
99
|
-
name: string;
|
|
100
|
-
}[];
|
|
101
|
-
restaurantId: string;
|
|
102
|
-
isUsable: boolean;
|
|
103
|
-
name: string;
|
|
104
|
-
_id: string;
|
|
105
|
-
permissions: Record<string, any>[];
|
|
106
|
-
}[], Role[] | {
|
|
107
|
-
restaurants: {
|
|
108
|
-
id: string;
|
|
109
|
-
name: string;
|
|
110
|
-
}[];
|
|
111
|
-
restaurantId: string;
|
|
112
|
-
isUsable: boolean;
|
|
113
|
-
name: string;
|
|
114
|
-
_id: string;
|
|
115
|
-
permissions: Record<string, any>[];
|
|
116
|
-
}[]>;
|
|
117
|
-
isLoading: import("vue").Ref<boolean, boolean>;
|
|
118
|
-
readRoles: () => Promise<void>;
|
|
119
|
-
createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
120
|
-
updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
121
|
-
deleteRole: (role: Role) => Promise<void>;
|
|
122
|
-
}, "roles" | "isLoading">>, options?: ({
|
|
123
|
-
detached?: boolean | undefined;
|
|
124
|
-
} & import("vue").WatchOptions<boolean>) | undefined): () => void;
|
|
125
|
-
$onAction(callback: import("pinia").StoreOnActionListener<"role", Pick<{
|
|
126
|
-
roles: import("vue").Ref<{
|
|
127
|
-
restaurants: {
|
|
128
|
-
id: string;
|
|
129
|
-
name: string;
|
|
130
|
-
}[];
|
|
131
|
-
restaurantId: string;
|
|
132
|
-
isUsable: boolean;
|
|
133
|
-
name: string;
|
|
134
|
-
_id: string;
|
|
135
|
-
permissions: Record<string, any>[];
|
|
136
|
-
}[], Role[] | {
|
|
137
|
-
restaurants: {
|
|
138
|
-
id: string;
|
|
139
|
-
name: string;
|
|
140
|
-
}[];
|
|
141
|
-
restaurantId: string;
|
|
142
|
-
isUsable: boolean;
|
|
143
|
-
name: string;
|
|
144
|
-
_id: string;
|
|
145
|
-
permissions: Record<string, any>[];
|
|
146
|
-
}[]>;
|
|
147
|
-
isLoading: import("vue").Ref<boolean, boolean>;
|
|
148
|
-
readRoles: () => Promise<void>;
|
|
149
|
-
createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
150
|
-
updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
151
|
-
deleteRole: (role: Role) => Promise<void>;
|
|
152
|
-
}, "roles" | "isLoading">, Pick<{
|
|
153
|
-
roles: import("vue").Ref<{
|
|
154
|
-
restaurants: {
|
|
155
|
-
id: string;
|
|
156
|
-
name: string;
|
|
157
|
-
}[];
|
|
158
|
-
restaurantId: string;
|
|
159
|
-
isUsable: boolean;
|
|
160
|
-
name: string;
|
|
161
|
-
_id: string;
|
|
162
|
-
permissions: Record<string, any>[];
|
|
163
|
-
}[], Role[] | {
|
|
164
|
-
restaurants: {
|
|
165
|
-
id: string;
|
|
166
|
-
name: string;
|
|
167
|
-
}[];
|
|
168
|
-
restaurantId: string;
|
|
169
|
-
isUsable: boolean;
|
|
170
|
-
name: string;
|
|
171
|
-
_id: string;
|
|
172
|
-
permissions: Record<string, any>[];
|
|
173
|
-
}[]>;
|
|
174
|
-
isLoading: import("vue").Ref<boolean, boolean>;
|
|
175
|
-
readRoles: () => Promise<void>;
|
|
176
|
-
createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
177
|
-
updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
178
|
-
deleteRole: (role: Role) => Promise<void>;
|
|
179
|
-
}, never>, Pick<{
|
|
180
|
-
roles: import("vue").Ref<{
|
|
181
|
-
restaurants: {
|
|
182
|
-
id: string;
|
|
183
|
-
name: string;
|
|
184
|
-
}[];
|
|
185
|
-
restaurantId: string;
|
|
186
|
-
isUsable: boolean;
|
|
187
|
-
name: string;
|
|
188
|
-
_id: string;
|
|
189
|
-
permissions: Record<string, any>[];
|
|
190
|
-
}[], Role[] | {
|
|
191
|
-
restaurants: {
|
|
192
|
-
id: string;
|
|
193
|
-
name: string;
|
|
194
|
-
}[];
|
|
195
|
-
restaurantId: string;
|
|
196
|
-
isUsable: boolean;
|
|
197
|
-
name: string;
|
|
198
|
-
_id: string;
|
|
199
|
-
permissions: Record<string, any>[];
|
|
200
|
-
}[]>;
|
|
201
|
-
isLoading: import("vue").Ref<boolean, boolean>;
|
|
202
|
-
readRoles: () => Promise<void>;
|
|
203
|
-
createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
204
|
-
updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
205
|
-
deleteRole: (role: Role) => Promise<void>;
|
|
206
|
-
}, "readRoles" | "createRole" | "updateRole" | "deleteRole">>, detached?: boolean | undefined): () => void;
|
|
207
|
-
$dispose(): void;
|
|
208
|
-
$id: "role";
|
|
209
|
-
_customProperties: Set<string>;
|
|
210
|
-
readRoles: () => Promise<void>;
|
|
211
|
-
createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
212
|
-
updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
213
|
-
deleteRole: (role: Role) => Promise<void>;
|
|
214
|
-
};
|
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import type { IFdtoTimesheet, Timesheet } from '../types/timesheet';
|
|
2
|
-
export declare const useTimesheetStore: () => {
|
|
3
|
-
timesheets: import("vue").Ref<{
|
|
4
|
-
start: string;
|
|
5
|
-
end: string;
|
|
6
|
-
totalMin: number;
|
|
7
|
-
duration: string;
|
|
8
|
-
restaurantId: string;
|
|
9
|
-
restaurantName: string;
|
|
10
|
-
endedAt?: string | null | undefined;
|
|
11
|
-
user: {
|
|
12
|
-
name: string;
|
|
13
|
-
id: string;
|
|
14
|
-
};
|
|
15
|
-
_id: string;
|
|
16
|
-
startedAt: string;
|
|
17
|
-
}[], Timesheet[] | {
|
|
18
|
-
start: string;
|
|
19
|
-
end: string;
|
|
20
|
-
totalMin: number;
|
|
21
|
-
duration: string;
|
|
22
|
-
restaurantId: string;
|
|
23
|
-
restaurantName: string;
|
|
24
|
-
endedAt?: string | null | undefined;
|
|
25
|
-
user: {
|
|
26
|
-
name: string;
|
|
27
|
-
id: string;
|
|
28
|
-
};
|
|
29
|
-
_id: string;
|
|
30
|
-
startedAt: string;
|
|
31
|
-
}[]>;
|
|
32
|
-
$state: {
|
|
33
|
-
timesheets: {
|
|
34
|
-
start: string;
|
|
35
|
-
end: string;
|
|
36
|
-
totalMin: number;
|
|
37
|
-
duration: string;
|
|
38
|
-
restaurantId: string;
|
|
39
|
-
restaurantName: string;
|
|
40
|
-
endedAt?: string | null | undefined;
|
|
41
|
-
user: {
|
|
42
|
-
name: string;
|
|
43
|
-
id: string;
|
|
44
|
-
};
|
|
45
|
-
_id: string;
|
|
46
|
-
startedAt: string;
|
|
47
|
-
}[];
|
|
48
|
-
} & import("pinia").PiniaCustomStateProperties<Pick<{
|
|
49
|
-
timesheets: import("vue").Ref<{
|
|
50
|
-
start: string;
|
|
51
|
-
end: string;
|
|
52
|
-
totalMin: number;
|
|
53
|
-
duration: string;
|
|
54
|
-
restaurantId: string;
|
|
55
|
-
restaurantName: string;
|
|
56
|
-
endedAt?: string | null | undefined;
|
|
57
|
-
user: {
|
|
58
|
-
name: string;
|
|
59
|
-
id: string;
|
|
60
|
-
};
|
|
61
|
-
_id: string;
|
|
62
|
-
startedAt: string;
|
|
63
|
-
}[], Timesheet[] | {
|
|
64
|
-
start: string;
|
|
65
|
-
end: string;
|
|
66
|
-
totalMin: number;
|
|
67
|
-
duration: string;
|
|
68
|
-
restaurantId: string;
|
|
69
|
-
restaurantName: string;
|
|
70
|
-
endedAt?: string | null | undefined;
|
|
71
|
-
user: {
|
|
72
|
-
name: string;
|
|
73
|
-
id: string;
|
|
74
|
-
};
|
|
75
|
-
_id: string;
|
|
76
|
-
startedAt: string;
|
|
77
|
-
}[]>;
|
|
78
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
79
|
-
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
80
|
-
}, "timesheets">>;
|
|
81
|
-
$patch(partialState: import("pinia")._DeepPartial<{
|
|
82
|
-
timesheets: {
|
|
83
|
-
start: string;
|
|
84
|
-
end: string;
|
|
85
|
-
totalMin: number;
|
|
86
|
-
duration: string;
|
|
87
|
-
restaurantId: string;
|
|
88
|
-
restaurantName: string;
|
|
89
|
-
endedAt?: string | null | undefined;
|
|
90
|
-
user: {
|
|
91
|
-
name: string;
|
|
92
|
-
id: string;
|
|
93
|
-
};
|
|
94
|
-
_id: string;
|
|
95
|
-
startedAt: string;
|
|
96
|
-
}[];
|
|
97
|
-
}>): void;
|
|
98
|
-
$patch<F extends (state: {
|
|
99
|
-
timesheets: {
|
|
100
|
-
start: string;
|
|
101
|
-
end: string;
|
|
102
|
-
totalMin: number;
|
|
103
|
-
duration: string;
|
|
104
|
-
restaurantId: string;
|
|
105
|
-
restaurantName: string;
|
|
106
|
-
endedAt?: string | null | undefined;
|
|
107
|
-
user: {
|
|
108
|
-
name: string;
|
|
109
|
-
id: string;
|
|
110
|
-
};
|
|
111
|
-
_id: string;
|
|
112
|
-
startedAt: string;
|
|
113
|
-
}[];
|
|
114
|
-
}) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
|
|
115
|
-
$reset(): void;
|
|
116
|
-
$subscribe(callback: import("pinia").SubscriptionCallback<Pick<{
|
|
117
|
-
timesheets: import("vue").Ref<{
|
|
118
|
-
start: string;
|
|
119
|
-
end: string;
|
|
120
|
-
totalMin: number;
|
|
121
|
-
duration: string;
|
|
122
|
-
restaurantId: string;
|
|
123
|
-
restaurantName: string;
|
|
124
|
-
endedAt?: string | null | undefined;
|
|
125
|
-
user: {
|
|
126
|
-
name: string;
|
|
127
|
-
id: string;
|
|
128
|
-
};
|
|
129
|
-
_id: string;
|
|
130
|
-
startedAt: string;
|
|
131
|
-
}[], Timesheet[] | {
|
|
132
|
-
start: string;
|
|
133
|
-
end: string;
|
|
134
|
-
totalMin: number;
|
|
135
|
-
duration: string;
|
|
136
|
-
restaurantId: string;
|
|
137
|
-
restaurantName: string;
|
|
138
|
-
endedAt?: string | null | undefined;
|
|
139
|
-
user: {
|
|
140
|
-
name: string;
|
|
141
|
-
id: string;
|
|
142
|
-
};
|
|
143
|
-
_id: string;
|
|
144
|
-
startedAt: string;
|
|
145
|
-
}[]>;
|
|
146
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
147
|
-
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
148
|
-
}, "timesheets">>, options?: ({
|
|
149
|
-
detached?: boolean | undefined;
|
|
150
|
-
} & import("vue").WatchOptions<boolean>) | undefined): () => void;
|
|
151
|
-
$onAction(callback: import("pinia").StoreOnActionListener<"timesheet", Pick<{
|
|
152
|
-
timesheets: import("vue").Ref<{
|
|
153
|
-
start: string;
|
|
154
|
-
end: string;
|
|
155
|
-
totalMin: number;
|
|
156
|
-
duration: string;
|
|
157
|
-
restaurantId: string;
|
|
158
|
-
restaurantName: string;
|
|
159
|
-
endedAt?: string | null | undefined;
|
|
160
|
-
user: {
|
|
161
|
-
name: string;
|
|
162
|
-
id: string;
|
|
163
|
-
};
|
|
164
|
-
_id: string;
|
|
165
|
-
startedAt: string;
|
|
166
|
-
}[], Timesheet[] | {
|
|
167
|
-
start: string;
|
|
168
|
-
end: string;
|
|
169
|
-
totalMin: number;
|
|
170
|
-
duration: string;
|
|
171
|
-
restaurantId: string;
|
|
172
|
-
restaurantName: string;
|
|
173
|
-
endedAt?: string | null | undefined;
|
|
174
|
-
user: {
|
|
175
|
-
name: string;
|
|
176
|
-
id: string;
|
|
177
|
-
};
|
|
178
|
-
_id: string;
|
|
179
|
-
startedAt: string;
|
|
180
|
-
}[]>;
|
|
181
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
182
|
-
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
183
|
-
}, "timesheets">, Pick<{
|
|
184
|
-
timesheets: import("vue").Ref<{
|
|
185
|
-
start: string;
|
|
186
|
-
end: string;
|
|
187
|
-
totalMin: number;
|
|
188
|
-
duration: string;
|
|
189
|
-
restaurantId: string;
|
|
190
|
-
restaurantName: string;
|
|
191
|
-
endedAt?: string | null | undefined;
|
|
192
|
-
user: {
|
|
193
|
-
name: string;
|
|
194
|
-
id: string;
|
|
195
|
-
};
|
|
196
|
-
_id: string;
|
|
197
|
-
startedAt: string;
|
|
198
|
-
}[], Timesheet[] | {
|
|
199
|
-
start: string;
|
|
200
|
-
end: string;
|
|
201
|
-
totalMin: number;
|
|
202
|
-
duration: string;
|
|
203
|
-
restaurantId: string;
|
|
204
|
-
restaurantName: string;
|
|
205
|
-
endedAt?: string | null | undefined;
|
|
206
|
-
user: {
|
|
207
|
-
name: string;
|
|
208
|
-
id: string;
|
|
209
|
-
};
|
|
210
|
-
_id: string;
|
|
211
|
-
startedAt: string;
|
|
212
|
-
}[]>;
|
|
213
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
214
|
-
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
215
|
-
}, never>, Pick<{
|
|
216
|
-
timesheets: import("vue").Ref<{
|
|
217
|
-
start: string;
|
|
218
|
-
end: string;
|
|
219
|
-
totalMin: number;
|
|
220
|
-
duration: string;
|
|
221
|
-
restaurantId: string;
|
|
222
|
-
restaurantName: string;
|
|
223
|
-
endedAt?: string | null | undefined;
|
|
224
|
-
user: {
|
|
225
|
-
name: string;
|
|
226
|
-
id: string;
|
|
227
|
-
};
|
|
228
|
-
_id: string;
|
|
229
|
-
startedAt: string;
|
|
230
|
-
}[], Timesheet[] | {
|
|
231
|
-
start: string;
|
|
232
|
-
end: string;
|
|
233
|
-
totalMin: number;
|
|
234
|
-
duration: string;
|
|
235
|
-
restaurantId: string;
|
|
236
|
-
restaurantName: string;
|
|
237
|
-
endedAt?: string | null | undefined;
|
|
238
|
-
user: {
|
|
239
|
-
name: string;
|
|
240
|
-
id: string;
|
|
241
|
-
};
|
|
242
|
-
_id: string;
|
|
243
|
-
startedAt: string;
|
|
244
|
-
}[]>;
|
|
245
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
246
|
-
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
247
|
-
}, "readTimesheet" | "updateTimesheet">>, detached?: boolean | undefined): () => void;
|
|
248
|
-
$dispose(): void;
|
|
249
|
-
$id: "timesheet";
|
|
250
|
-
_customProperties: Set<string>;
|
|
251
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
252
|
-
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
253
|
-
};
|
package/dist/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.user-info-icon[data-v-fdc0d65d]{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-fdc0d65d]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-fdc0d65d]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-fdc0d65d]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-fdc0d65d]>: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-fdc0d65d]{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-fdc0d65d]{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-fdc0d65d],.profile-menu--profile .profile-phone[data-v-fdc0d65d]{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,56 +0,0 @@
|
|
|
1
|
-
import { D as i } from "./employee-C-ICOGva.js";
|
|
2
|
-
import { defineStore as p, storeToRefs as T } from "pinia";
|
|
3
|
-
import { ref as l } from "vue";
|
|
4
|
-
import { b as d, g as y, o as u, n as D, s as S } from "./rule-DjIknogy.js";
|
|
5
|
-
const f = {
|
|
6
|
-
async readTimesheets(t, e) {
|
|
7
|
-
return y(await d().get(`timesheet?start=${t}&end=${e}`));
|
|
8
|
-
},
|
|
9
|
-
async updateTimesheet(t, e) {
|
|
10
|
-
await d().put(`timesheet/${t}`, e);
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
function g(t) {
|
|
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 ? D(m) : "", c = "YYYY-MM-DD hh:mm a";
|
|
16
|
-
return {
|
|
17
|
-
...o,
|
|
18
|
-
start: r.format(c),
|
|
19
|
-
end: n ? n.format(c) : "",
|
|
20
|
-
totalMin: m,
|
|
21
|
-
duration: h
|
|
22
|
-
};
|
|
23
|
-
});
|
|
24
|
-
return S(e, { selector: "start" });
|
|
25
|
-
}
|
|
26
|
-
const A = p("timesheet", () => {
|
|
27
|
-
const t = l([]);
|
|
28
|
-
async function e(s, a) {
|
|
29
|
-
const r = await f.readTimesheets(
|
|
30
|
-
i(s).startOf("day").toISOString(),
|
|
31
|
-
i(a).endOf("day").toISOString()
|
|
32
|
-
);
|
|
33
|
-
t.value = g(r);
|
|
34
|
-
}
|
|
35
|
-
async function o(s, a, r) {
|
|
36
|
-
await f.updateTimesheet(s.restaurantId, {
|
|
37
|
-
id: s._id,
|
|
38
|
-
startAt: a,
|
|
39
|
-
endAt: r
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
timesheets: t,
|
|
44
|
-
readTimesheet: e,
|
|
45
|
-
updateTimesheet: o
|
|
46
|
-
};
|
|
47
|
-
}), M = () => {
|
|
48
|
-
const t = A();
|
|
49
|
-
return {
|
|
50
|
-
...t,
|
|
51
|
-
...T(t)
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
export {
|
|
55
|
-
M as u
|
|
56
|
-
};
|