@feedmepos/mf-hrm-portal 1.1.2-dev → 1.1.4-dev.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/dist/{EmployeeList-CKHgrdAO.js → EmployeeList-D3a7ngdE.js} +16 -18
- package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js → PageLayout.vue_vue_type_script_setup_true_lang-DuwNwJDM.js} +2 -2
- package/dist/{RoleList-Bef-7IhW.js → RoleList-CsxyMZW0.js} +53 -57
- package/dist/TeamMemberList-ZkrdrTlL.js +1508 -0
- package/dist/{TimesheetList-DVIk0Tis.js → TimesheetList-BwiUzcJ-.js} +41 -42
- package/dist/api/team/index.d.ts +1 -5
- package/dist/app-CrML_LtM.js +1202 -0
- package/dist/app.js +4 -4
- package/dist/components/AppForm.vue.d.ts +2 -3
- package/dist/components/CheckboxInput.vue.d.ts +4 -10
- package/dist/components/CollapsibleWrapper.vue.d.ts +2 -3
- package/dist/components/form/SelectFilter.vue.d.ts +2 -3
- package/dist/components/layout/FormColumn.vue.d.ts +3 -6
- package/dist/components/layout/FormItem.vue.d.ts +1 -2
- package/dist/components/layout/FormSection.vue.d.ts +1 -2
- package/dist/components/layout/FullWrapper.vue.d.ts +3 -6
- package/dist/components/layout/PageLayout.vue.d.ts +1 -2
- package/dist/components/menu/BottomSheetMenu.vue.d.ts +1 -2
- package/dist/components/menu/BottomSheetMenuItem.vue.d.ts +3 -6
- package/dist/components/table/EmptyDataTemplate/index.vue.d.ts +3 -6
- package/dist/composables/useAppStore.d.ts +6 -6
- package/dist/composables/useDateRange.d.ts +1 -1
- package/dist/composables/useRestaurantMap.d.ts +8 -4
- package/dist/composables/useSheet.d.ts +1 -1
- package/dist/employee-DSGaYrd4.js +449 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js → empty-placeholder-ey8LJtN1.js} +2 -43
- package/dist/helpers/rule.d.ts +3 -4
- package/dist/index-CIaav54n.js +57 -0
- package/dist/{lodash-DpoPPi_j.js → lodash-dGfuW9fw.js} +343 -326
- package/dist/{Main-YQ5f-v03.js → main-CUI7RdvY.js} +1531 -1501
- package/dist/router/shared.d.ts +1 -4
- package/dist/{index-CicR1-Jp.js → rule-BLgeh_ly.js} +2672 -2721
- package/dist/stores/employee.d.ts +4 -4
- package/dist/stores/role.d.ts +4 -4
- package/dist/stores/timesheet.d.ts +19 -19
- package/dist/{timesheet-BRQvljNj.js → timesheet-BFrZzS2q.js} +14 -14
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/types/permission.d.ts +4 -1
- package/dist/types/team.d.ts +3 -13
- package/dist/useAppStore-DViQe2C8.js +93 -0
- package/dist/useLoading-DAoKseT-.js +141 -0
- package/dist/{useRestaurantMap-D5BNPLKh.js → useRestaurantMap-CpS9-OSq.js} +7 -7
- package/dist/{SelectFilter-NbXrJ4iH.js → useSearch-C25VELOk.js} +101 -90
- package/dist/views/hr/employee/{EmployeeForm.vue.d.ts → components/EmployeeForm.vue.d.ts} +7 -10
- package/dist/views/team/{member → components}/AddMemberForm.vue.d.ts +0 -1
- package/dist/views/team/components/PortalPermissionEditor.vue.d.ts +28 -68
- package/dist/views/team/components/TeamMemberBasePermission.vue.d.ts +36 -0
- package/dist/views/team/components/{ConditionPermission.vue.d.ts → TeamMemberConditionPermission.vue.d.ts} +1 -14
- package/dist/views/team/components/TeamMemberMasterUser.vue.d.ts +718 -0
- package/dist/views/team/components/{PosRolePermission.vue.d.ts → TeamMemberRolePermission.vue.d.ts} +1 -14
- package/dist/views/team/locales/index.d.ts +4 -176
- package/package.json +8 -13
- package/dist/AuditLogList-CjrocQS2.js +0 -316
- package/dist/Main-HzplGv-e.js +0 -85
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-xQ4fjIxa.js +0 -3050
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js +0 -38
- package/dist/RolePermissionList-BzwpQFeO.js +0 -285
- package/dist/TeamMemberList-D2Xey_w9.js +0 -949
- package/dist/api/audit-log/index.d.ts +0 -10
- package/dist/api/permission-assignment/index.d.ts +0 -10
- package/dist/api/permission-set/index.d.ts +0 -8
- package/dist/app-DUs516v0.js +0 -2592
- package/dist/dayjs.min-DVb8OkTL.js +0 -282
- package/dist/employee-jH7EJnhi.js +0 -172
- package/dist/helpers/permission-set.d.ts +0 -32
- package/dist/helpers/portal-user.d.ts +0 -8
- package/dist/stores/permission-assignment.d.ts +0 -277
- package/dist/stores/permission-set.d.ts +0 -250
- package/dist/stores/team.d.ts +0 -288
- package/dist/team-CiZSNUQW.js +0 -26
- package/dist/types/audit-log.d.ts +0 -19
- package/dist/types/permission-assignment.d.ts +0 -20
- package/dist/types/permission-set.d.ts +0 -20
- package/dist/useAppStore-RzLLN5d9.js +0 -180
- package/dist/useLoading-1OqFn86y.js +0 -99
- package/dist/useSearch-B6WK1LBB.js +0 -15
- package/dist/views/audit-log/locales/index.d.ts +0 -211
- package/dist/views/team/Main.vue.d.ts +0 -2
- package/dist/views/team/components/BasePermission.vue.d.ts +0 -64
- package/dist/views/team/components/InheritPermissionTooltip.vue.d.ts +0 -14
- package/dist/views/team/components/PermissionWithTooltip.vue.d.ts +0 -14
- package/dist/views/team/member/TeamMemberList.vue.d.ts +0 -4
- package/dist/views/team/member/TeamMemberMasterUser.vue.d.ts +0 -55
- package/dist/views/team/role/RolePermissionForm.vue.d.ts +0 -19
- package/dist/views/team/role/RolePermissionList.vue.d.ts +0 -5
- /package/dist/views/{audit-log/AuditLogList.vue.d.ts → hr/main.vue.d.ts} +0 -0
- /package/dist/views/{hr/Main.vue.d.ts → team/TeamMemberList.vue.d.ts} +0 -0
- /package/dist/views/team/{member → components}/MemberInfo.vue.d.ts +0 -0
|
@@ -336,9 +336,9 @@ export declare const useEmployeeStore: () => {
|
|
|
336
336
|
migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
337
337
|
readTeamMemberPosUserIds: () => Promise<void>;
|
|
338
338
|
syncUsersMeta: () => Promise<void>;
|
|
339
|
-
}, "isLoading" | "employees" | "restrictEmployeeIds">>, options?: {
|
|
340
|
-
detached?: boolean;
|
|
341
|
-
} & import("vue").WatchOptions): () => void;
|
|
339
|
+
}, "isLoading" | "employees" | "restrictEmployeeIds">>, options?: ({
|
|
340
|
+
detached?: boolean | undefined;
|
|
341
|
+
} & import("vue").WatchOptions<boolean>) | undefined): () => void;
|
|
342
342
|
$onAction(callback: import("pinia").StoreOnActionListener<"employee", Pick<{
|
|
343
343
|
employees: import("vue").Ref<({
|
|
344
344
|
faceId?: unknown;
|
|
@@ -573,7 +573,7 @@ export declare const useEmployeeStore: () => {
|
|
|
573
573
|
migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
574
574
|
readTeamMemberPosUserIds: () => Promise<void>;
|
|
575
575
|
syncUsersMeta: () => Promise<void>;
|
|
576
|
-
}, "readEmployees" | "createEmployee" | "updateEmployee" | "deleteEmployee" | "createMasterEmployee" | "updateMasterEmployee" | "deleteMasterEmployee" | "migrateToMasterUser" | "readTeamMemberPosUserIds" | "syncUsersMeta">>, detached?: boolean): () => void;
|
|
576
|
+
}, "readEmployees" | "createEmployee" | "updateEmployee" | "deleteEmployee" | "createMasterEmployee" | "updateMasterEmployee" | "deleteMasterEmployee" | "migrateToMasterUser" | "readTeamMemberPosUserIds" | "syncUsersMeta">>, detached?: boolean | undefined): () => void;
|
|
577
577
|
$dispose(): void;
|
|
578
578
|
$id: "employee";
|
|
579
579
|
_customProperties: Set<string>;
|
package/dist/stores/role.d.ts
CHANGED
|
@@ -119,9 +119,9 @@ export declare const useRoleStore: () => {
|
|
|
119
119
|
createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
120
120
|
updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
121
121
|
deleteRole: (role: Role) => Promise<void>;
|
|
122
|
-
}, "roles" | "isLoading">>, options?: {
|
|
123
|
-
detached?: boolean;
|
|
124
|
-
} & import("vue").WatchOptions): () => void;
|
|
122
|
+
}, "roles" | "isLoading">>, options?: ({
|
|
123
|
+
detached?: boolean | undefined;
|
|
124
|
+
} & import("vue").WatchOptions<boolean>) | undefined): () => void;
|
|
125
125
|
$onAction(callback: import("pinia").StoreOnActionListener<"role", Pick<{
|
|
126
126
|
roles: import("vue").Ref<{
|
|
127
127
|
restaurants: {
|
|
@@ -203,7 +203,7 @@ export declare const useRoleStore: () => {
|
|
|
203
203
|
createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
204
204
|
updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
205
205
|
deleteRole: (role: Role) => Promise<void>;
|
|
206
|
-
}, "readRoles" | "createRole" | "updateRole" | "deleteRole">>, detached?: boolean): () => void;
|
|
206
|
+
}, "readRoles" | "createRole" | "updateRole" | "deleteRole">>, detached?: boolean | undefined): () => void;
|
|
207
207
|
$dispose(): void;
|
|
208
208
|
$id: "role";
|
|
209
209
|
_customProperties: Set<string>;
|
|
@@ -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;
|
|
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;
|
|
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;
|
|
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;
|
|
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;
|
|
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;
|
|
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;
|
|
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;
|
|
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;
|
|
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): () => void;
|
|
148
|
+
}, "timesheets">>, options?: ({
|
|
149
|
+
detached?: boolean | undefined;
|
|
150
|
+
} & import("vue").WatchOptions<boolean>) | undefined): () => 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;
|
|
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;
|
|
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;
|
|
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;
|
|
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;
|
|
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;
|
|
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): () => void;
|
|
247
|
+
}, "readTimesheet" | "updateTimesheet">>, detached?: boolean | undefined): () => void;
|
|
248
248
|
$dispose(): void;
|
|
249
249
|
$id: "timesheet";
|
|
250
250
|
_customProperties: Set<string>;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { D as i } from "./employee-DSGaYrd4.js";
|
|
2
|
+
import { storeToRefs as p, defineStore as T } from "pinia";
|
|
3
3
|
import { ref as l } from "vue";
|
|
4
|
-
import { b as
|
|
4
|
+
import { b as d, g as y, p as u, o as D, s as S } from "./rule-BLgeh_ly.js";
|
|
5
5
|
const f = {
|
|
6
6
|
async readTimesheets(t, e) {
|
|
7
|
-
return y(await
|
|
7
|
+
return y(await d().get(`timesheet?start=${t}&end=${e}`));
|
|
8
8
|
},
|
|
9
9
|
async updateTimesheet(t, e) {
|
|
10
|
-
await
|
|
10
|
+
await d().put(`timesheet/${t}`, e);
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
function
|
|
13
|
+
function g(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 ? D(m) : "", c = "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(c),
|
|
19
|
+
end: n ? n.format(c) : "",
|
|
20
20
|
totalMin: m,
|
|
21
21
|
duration: h
|
|
22
22
|
};
|
|
23
23
|
});
|
|
24
|
-
return
|
|
24
|
+
return S(e, { selector: "start" });
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const A = T("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 = g(r);
|
|
34
34
|
}
|
|
35
35
|
async function o(s, a, r) {
|
|
36
36
|
await f.updateTimesheet(s.restaurantId, {
|
|
@@ -45,10 +45,10 @@ const D = p("timesheet", () => {
|
|
|
45
45
|
updateTimesheet: o
|
|
46
46
|
};
|
|
47
47
|
}), M = () => {
|
|
48
|
-
const t =
|
|
48
|
+
const t = A();
|
|
49
49
|
return {
|
|
50
50
|
...t,
|
|
51
|
-
...
|
|
51
|
+
...p(t)
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
export {
|