@feedmepos/mf-hrm-portal 2.0.8-dev → 2.0.8-dev.10
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-CNrMFE7u.js +708 -0
- package/dist/{EmployeeList-O6XTYBcz.js → EmployeeList-cOmlbt40.js} +164 -169
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +71 -0
- package/dist/HorizontalSplitter-o860F4xM.js +12 -0
- package/dist/{Main-XEb1ECXG.js → Main-BDXOkOE2.js} +11 -10
- package/dist/Main-BJh3lH16.js +560 -0
- package/dist/{Main--bRTC1IR.js → Main-C3koRp1u.js} +8 -7
- package/dist/PermissionSetList-CLJn0V0J.js +338 -0
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bcr-EX6B.js +3471 -0
- package/dist/{RoleList-BeB1etH6.js → RoleList-Bd3v0EoJ.js} +26 -24
- package/dist/TeamMemberList-CbfbIqYV.js +989 -0
- package/dist/{TimesheetList-DNzuykEu.js → TimesheetList-DkJWAHEN.js} +11 -10
- package/dist/{app-BovCLczm.js → app-CBCdQFuQ.js} +1458 -1005
- package/dist/app.js +2 -2
- package/dist/{dayjs.min-dxVeOXk_.js → dayjs.min-D-dyRkoG.js} +1 -1
- package/dist/{employee-DGiDGhcK.js → employee-BUIgpjQN.js} +21 -20
- package/dist/{index-CQ26ps7Z.js → index-BMJS_Lkf.js} +1 -1
- package/dist/index-CPrEayXj.js +968 -0
- package/dist/{index-C0yiZ_7g.js → iteration-CsLWDBUl.js} +3444 -4352
- package/dist/{lodash-CBlFHm6b.js → lodash-B9IFDgiG.js} +1 -1
- package/dist/src/api/grant-user/index.d.ts +8 -0
- package/dist/src/api/index.d.ts +3 -1
- package/dist/src/composables/useBasePermission.d.ts +37 -0
- package/dist/src/helpers/permission-set.d.ts +26 -4
- package/dist/src/helpers/permission-set.test.d.ts +1 -0
- package/dist/src/helpers/permission-sync.d.ts +12 -0
- package/dist/src/router/shared.d.ts +2 -1
- package/dist/src/stores/grant-user.d.ts +86 -0
- package/dist/src/types/grant-user.d.ts +27 -0
- package/dist/src/views/audit-log/locales/index.d.ts +140 -0
- package/dist/src/views/grant/GrantUserList.vue.d.ts +17 -0
- package/dist/src/views/grant/Main.vue.d.ts +2 -0
- package/dist/src/views/grant/components/GrantUserForm.vue.d.ts +17 -0
- package/dist/src/views/grant/locales/index.d.ts +232 -0
- package/dist/src/views/team/components/BasePermission.vue.d.ts +3 -3
- package/dist/style.css +1 -1
- package/dist/{team-BqxJ-gNb.js → team-6mA14lfK.js} +1 -1
- package/dist/{timesheet-BVR_FxsT.js → timesheet-DG2p1hTy.js} +10 -9
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-gvdZApLV.js → useAppStore-CmUOIsdB.js} +1 -1
- package/dist/{useLoading-CCzb5k4G.js → useLoading-Ct9N6Ir6.js} +1 -1
- package/dist/{useReportPermissions-9TaHhs9I.js → useReportPermissions-D_KEL6RC.js} +12 -11
- package/dist/useRestaurantMap-e9fQJiLC.js +39 -0
- package/package.json +2 -2
- package/dist/AuditLogList-Dp5B1jR-.js +0 -492
- package/dist/PermissionSetList-DAwnZ-Gu.js +0 -327
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bx7A0p-f.js +0 -3333
- package/dist/TeamMemberList-BKCsNEuQ.js +0 -979
- package/dist/useRestaurantMap-D5BNPLKh.js +0 -107
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import * as enUS from './en-US.json';
|
|
2
|
+
export type AppMessagesSchema = typeof enUS;
|
|
3
|
+
export declare const i18nMessages: {
|
|
4
|
+
'en-US': {
|
|
5
|
+
grantUser: {
|
|
6
|
+
title: string;
|
|
7
|
+
actions: {
|
|
8
|
+
create: string;
|
|
9
|
+
revoke: string;
|
|
10
|
+
};
|
|
11
|
+
form: {
|
|
12
|
+
title: string;
|
|
13
|
+
section: string;
|
|
14
|
+
name: string;
|
|
15
|
+
nameRequired: string;
|
|
16
|
+
restaurant: string;
|
|
17
|
+
selectRestaurant: string;
|
|
18
|
+
restaurantRequired: string;
|
|
19
|
+
role: string;
|
|
20
|
+
selectRole: string;
|
|
21
|
+
roleRequired: string;
|
|
22
|
+
};
|
|
23
|
+
columns: {
|
|
24
|
+
passcode: string;
|
|
25
|
+
name: string;
|
|
26
|
+
restaurant: string;
|
|
27
|
+
role: string;
|
|
28
|
+
status: string;
|
|
29
|
+
grantedBy: string;
|
|
30
|
+
createdAt: string;
|
|
31
|
+
};
|
|
32
|
+
status: {
|
|
33
|
+
active: string;
|
|
34
|
+
used: string;
|
|
35
|
+
revoked: string;
|
|
36
|
+
};
|
|
37
|
+
create: {
|
|
38
|
+
successMessage: string;
|
|
39
|
+
};
|
|
40
|
+
revoke: {
|
|
41
|
+
title: string;
|
|
42
|
+
message: string;
|
|
43
|
+
successMessage: string;
|
|
44
|
+
};
|
|
45
|
+
search: {
|
|
46
|
+
placeholder: string;
|
|
47
|
+
};
|
|
48
|
+
filter: {
|
|
49
|
+
selected_status_prefix: string;
|
|
50
|
+
status_placeholder: string;
|
|
51
|
+
};
|
|
52
|
+
noData: {
|
|
53
|
+
title: string;
|
|
54
|
+
subtitle: string;
|
|
55
|
+
};
|
|
56
|
+
passcode: {
|
|
57
|
+
copied: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
'zh-CN': {
|
|
62
|
+
grantUser: {
|
|
63
|
+
title: string;
|
|
64
|
+
actions: {
|
|
65
|
+
create: string;
|
|
66
|
+
revoke: string;
|
|
67
|
+
};
|
|
68
|
+
form: {
|
|
69
|
+
title: string;
|
|
70
|
+
section: string;
|
|
71
|
+
name: string;
|
|
72
|
+
nameRequired: string;
|
|
73
|
+
restaurant: string;
|
|
74
|
+
selectRestaurant: string;
|
|
75
|
+
restaurantRequired: string;
|
|
76
|
+
role: string;
|
|
77
|
+
selectRole: string;
|
|
78
|
+
roleRequired: string;
|
|
79
|
+
};
|
|
80
|
+
columns: {
|
|
81
|
+
passcode: string;
|
|
82
|
+
name: string;
|
|
83
|
+
restaurant: string;
|
|
84
|
+
role: string;
|
|
85
|
+
status: string;
|
|
86
|
+
grantedBy: string;
|
|
87
|
+
createdAt: string;
|
|
88
|
+
};
|
|
89
|
+
status: {
|
|
90
|
+
active: string;
|
|
91
|
+
used: string;
|
|
92
|
+
revoked: string;
|
|
93
|
+
};
|
|
94
|
+
create: {
|
|
95
|
+
successMessage: string;
|
|
96
|
+
};
|
|
97
|
+
revoke: {
|
|
98
|
+
title: string;
|
|
99
|
+
message: string;
|
|
100
|
+
successMessage: string;
|
|
101
|
+
};
|
|
102
|
+
search: {
|
|
103
|
+
placeholder: string;
|
|
104
|
+
};
|
|
105
|
+
filter: {
|
|
106
|
+
selected_status_prefix: string;
|
|
107
|
+
status_placeholder: string;
|
|
108
|
+
};
|
|
109
|
+
noData: {
|
|
110
|
+
title: string;
|
|
111
|
+
subtitle: string;
|
|
112
|
+
};
|
|
113
|
+
passcode: {
|
|
114
|
+
copied: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
'th-TH': {
|
|
119
|
+
grantUser: {
|
|
120
|
+
title: string;
|
|
121
|
+
actions: {
|
|
122
|
+
create: string;
|
|
123
|
+
revoke: string;
|
|
124
|
+
};
|
|
125
|
+
form: {
|
|
126
|
+
title: string;
|
|
127
|
+
section: string;
|
|
128
|
+
name: string;
|
|
129
|
+
nameRequired: string;
|
|
130
|
+
restaurant: string;
|
|
131
|
+
selectRestaurant: string;
|
|
132
|
+
restaurantRequired: string;
|
|
133
|
+
role: string;
|
|
134
|
+
selectRole: string;
|
|
135
|
+
roleRequired: string;
|
|
136
|
+
};
|
|
137
|
+
columns: {
|
|
138
|
+
passcode: string;
|
|
139
|
+
name: string;
|
|
140
|
+
restaurant: string;
|
|
141
|
+
role: string;
|
|
142
|
+
status: string;
|
|
143
|
+
grantedBy: string;
|
|
144
|
+
createdAt: string;
|
|
145
|
+
};
|
|
146
|
+
status: {
|
|
147
|
+
active: string;
|
|
148
|
+
used: string;
|
|
149
|
+
revoked: string;
|
|
150
|
+
};
|
|
151
|
+
create: {
|
|
152
|
+
successMessage: string;
|
|
153
|
+
};
|
|
154
|
+
revoke: {
|
|
155
|
+
title: string;
|
|
156
|
+
message: string;
|
|
157
|
+
successMessage: string;
|
|
158
|
+
};
|
|
159
|
+
search: {
|
|
160
|
+
placeholder: string;
|
|
161
|
+
};
|
|
162
|
+
filter: {
|
|
163
|
+
selected_status_prefix: string;
|
|
164
|
+
status_placeholder: string;
|
|
165
|
+
};
|
|
166
|
+
noData: {
|
|
167
|
+
title: string;
|
|
168
|
+
subtitle: string;
|
|
169
|
+
};
|
|
170
|
+
passcode: {
|
|
171
|
+
copied: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
'zh-Hant': {
|
|
176
|
+
grantUser: {
|
|
177
|
+
title: string;
|
|
178
|
+
actions: {
|
|
179
|
+
create: string;
|
|
180
|
+
revoke: string;
|
|
181
|
+
};
|
|
182
|
+
form: {
|
|
183
|
+
title: string;
|
|
184
|
+
section: string;
|
|
185
|
+
name: string;
|
|
186
|
+
nameRequired: string;
|
|
187
|
+
restaurant: string;
|
|
188
|
+
selectRestaurant: string;
|
|
189
|
+
restaurantRequired: string;
|
|
190
|
+
role: string;
|
|
191
|
+
selectRole: string;
|
|
192
|
+
roleRequired: string;
|
|
193
|
+
};
|
|
194
|
+
columns: {
|
|
195
|
+
passcode: string;
|
|
196
|
+
name: string;
|
|
197
|
+
restaurant: string;
|
|
198
|
+
role: string;
|
|
199
|
+
status: string;
|
|
200
|
+
grantedBy: string;
|
|
201
|
+
createdAt: string;
|
|
202
|
+
};
|
|
203
|
+
status: {
|
|
204
|
+
active: string;
|
|
205
|
+
used: string;
|
|
206
|
+
revoked: string;
|
|
207
|
+
};
|
|
208
|
+
create: {
|
|
209
|
+
successMessage: string;
|
|
210
|
+
};
|
|
211
|
+
revoke: {
|
|
212
|
+
title: string;
|
|
213
|
+
message: string;
|
|
214
|
+
successMessage: string;
|
|
215
|
+
};
|
|
216
|
+
search: {
|
|
217
|
+
placeholder: string;
|
|
218
|
+
};
|
|
219
|
+
filter: {
|
|
220
|
+
selected_status_prefix: string;
|
|
221
|
+
status_placeholder: string;
|
|
222
|
+
};
|
|
223
|
+
noData: {
|
|
224
|
+
title: string;
|
|
225
|
+
subtitle: string;
|
|
226
|
+
};
|
|
227
|
+
passcode: {
|
|
228
|
+
copied: string;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import type { IFdtoPortalPermissionsWithVisibilityCondition } from '@feedmepos/hrm-permission';
|
|
3
3
|
import type { FdoPermissionRule } from '@feedmepos/core/entity';
|
|
4
4
|
declare var __VLS_9: `checkbox-${string}-append`, __VLS_10: {
|
|
5
5
|
option: import("@/components/CheckboxInput.vue").CheckboxOption;
|
|
6
|
-
},
|
|
6
|
+
}, __VLS_37: `checkbox-${string}-append`, __VLS_38: {
|
|
7
7
|
option: {
|
|
8
8
|
label: string;
|
|
9
9
|
value: string;
|
|
@@ -12,7 +12,7 @@ declare var __VLS_9: `checkbox-${string}-append`, __VLS_10: {
|
|
|
12
12
|
type __VLS_Slots = {} & {
|
|
13
13
|
[K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
|
|
14
14
|
} & {
|
|
15
|
-
[K in NonNullable<typeof
|
|
15
|
+
[K in NonNullable<typeof __VLS_37>]?: (props: typeof __VLS_38) => any;
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
18
18
|
modelValue: {
|
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}.audit-log-
|
|
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-action-label{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-action-label::-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}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as d } from "pinia";
|
|
2
2
|
import { ref as s, computed as o } from "vue";
|
|
3
|
-
import { t as f } from "./index-
|
|
3
|
+
import { t as f } from "./index-CPrEayXj.js";
|
|
4
4
|
const I = d("team", () => {
|
|
5
5
|
const r = s([]), a = s(!1), m = o(
|
|
6
6
|
() => Object.fromEntries(r.value.map((e) => [e.doc.userId, e.name]))
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { d as i } from "./dayjs.min-
|
|
1
|
+
import { d as i } from "./dayjs.min-D-dyRkoG.js";
|
|
2
2
|
import { defineStore as p, storeToRefs as T } from "pinia";
|
|
3
3
|
import { ref as l } from "vue";
|
|
4
|
-
import { b as c, g as y,
|
|
4
|
+
import { b as c, g as y, s as S } from "./iteration-CsLWDBUl.js";
|
|
5
|
+
import { i as u, b as g } from "./index-CPrEayXj.js";
|
|
5
6
|
const f = {
|
|
6
7
|
async readTimesheets(t, e) {
|
|
7
8
|
return y(await c().get(`timesheet?start=${t}&end=${e}`));
|
|
@@ -11,17 +12,17 @@ const f = {
|
|
|
11
12
|
}
|
|
12
13
|
};
|
|
13
14
|
function A(t) {
|
|
14
|
-
const e = t.map((
|
|
15
|
-
const { startedAt: s, endedAt: a } =
|
|
15
|
+
const e = t.map((n) => {
|
|
16
|
+
const { startedAt: s, endedAt: a } = n, r = i(u(s)), o = a ? i(u(a)) : null, m = (o == null ? void 0 : o.diff(r, "minute", !1)) || 0, h = o ? g(m) : "", d = "YYYY-MM-DD hh:mm a";
|
|
16
17
|
return {
|
|
17
|
-
...
|
|
18
|
+
...n,
|
|
18
19
|
start: r.format(d),
|
|
19
|
-
end:
|
|
20
|
+
end: o ? o.format(d) : "",
|
|
20
21
|
totalMin: m,
|
|
21
22
|
duration: h
|
|
22
23
|
};
|
|
23
24
|
});
|
|
24
|
-
return
|
|
25
|
+
return S(e, { selector: "start" });
|
|
25
26
|
}
|
|
26
27
|
const D = p("timesheet", () => {
|
|
27
28
|
const t = l([]);
|
|
@@ -32,7 +33,7 @@ const D = p("timesheet", () => {
|
|
|
32
33
|
);
|
|
33
34
|
t.value = A(r);
|
|
34
35
|
}
|
|
35
|
-
async function
|
|
36
|
+
async function n(s, a, r) {
|
|
36
37
|
await f.updateTimesheet(s.restaurantId, {
|
|
37
38
|
id: s._id,
|
|
38
39
|
startAt: a,
|
|
@@ -42,7 +43,7 @@ const D = p("timesheet", () => {
|
|
|
42
43
|
return {
|
|
43
44
|
timesheets: t,
|
|
44
45
|
readTimesheet: e,
|
|
45
|
-
updateTimesheet:
|
|
46
|
+
updateTimesheet: n
|
|
46
47
|
};
|
|
47
48
|
}), M = () => {
|
|
48
49
|
const t = D();
|