@feedmepos/mf-hrm-portal 1.1.3-dev.4 → 1.1.3-dev.7
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-BeigpKv1.js → AuditLogList-n6xAYZGv.js} +127 -139
- package/dist/EmployeeList-D9rLxXo5.js +626 -0
- package/dist/{Main-iC9TGp41.js → Main-BCa8A1rV.js} +5 -5
- package/dist/{Main-DWnVJGpe.js → Main-zQF3GD9j.js} +10 -9
- package/dist/PermissionSetList-EsoA_anf.js +338 -0
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DqWrIJPe.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BA1LS-wd.js} +454 -447
- package/dist/RoleList-Cfv9wKaN.js +494 -0
- package/dist/TeamMemberList-HkvCqzPj.js +945 -0
- package/dist/{TimesheetList-C4_i17S7.js → TimesheetList-B0e-Muws.js} +25 -24
- package/dist/api/index.d.ts +1 -0
- package/dist/api/report-query/index.d.ts +5 -0
- package/dist/{app-BRpUSeEf.js → app-DKSPx49S.js} +1449 -867
- package/dist/app.js +1 -1
- package/dist/composables/useReportPermissions.d.ts +14 -0
- package/dist/{dayjs.min-Dfq8fN9X.js → dayjs.min-DZJQ_JpV.js} +1 -1
- package/dist/employee-DKRqMph9.js +144 -0
- package/dist/helpers/permission-set.d.ts +22 -0
- package/dist/helpers/rule.d.ts +1 -1
- package/dist/{index-CvpJyEnB.js → index-BwyUbhZj.js} +1 -1
- package/dist/{index-nVxD4_on.js → index-D09s817L.js} +5017 -3187
- package/dist/{lodash-Cbt71kLf.js → lodash-CL6AaeJB.js} +1 -1
- package/dist/stores/permission-set.d.ts +15 -0
- package/dist/{team-CZZo-waE.js → team-DEjtUFVl.js} +1 -1
- package/dist/{timesheet-DuYLbiJ_.js → timesheet-B0usAfjL.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/types/permission-set.d.ts +4 -0
- package/dist/types/report-query.d.ts +6 -0
- package/dist/{useAppStore-Dt1nUJ4t.js → useAppStore-DfaKfSuR.js} +34 -46
- package/dist/{useLoading-CjyXOp7A.js → useLoading-D2AX24ph.js} +1 -1
- package/dist/useReportPermissions-CwsHq61C.js +65 -0
- package/dist/views/team/locales/index.d.ts +12 -0
- package/package.json +2 -2
- package/dist/EmployeeList-pCs8sKuU.js +0 -607
- package/dist/PermissionSetList-BLmeu-lo.js +0 -283
- package/dist/RoleList-DyOF2uRf.js +0 -496
- package/dist/TeamMemberList-Ck2gpjCC.js +0 -952
- package/dist/employee-BZxYvY4n.js +0 -172
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ref as d, computed as b, defineComponent as ce, onMounted as me, watch as X, resolveComponent as i, createElementBlock as B, openBlock as D, Fragment as Z, createVNode as l, createElementVNode as u, unref as n, withCtx as
|
|
2
|
-
import { d as v } from "./dayjs.min-
|
|
1
|
+
import { ref as d, computed as b, defineComponent as ce, onMounted as me, watch as X, resolveComponent as i, createElementBlock as B, openBlock as D, Fragment as Z, createVNode as l, createElementVNode as u, unref as n, withCtx as C, createCommentVNode as pe, toDisplayString as $, createTextVNode as ve, createBlock as z, isRef as fe, renderList as he, nextTick as ge } from "vue";
|
|
2
|
+
import { d as v } from "./dayjs.min-DZJQ_JpV.js";
|
|
3
3
|
import { useI18n as we, useCoreStore as ye, RestaurantSelector as be } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as _e, components as De } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as xe } from "./app-
|
|
5
|
+
import { _ as xe } from "./app-DKSPx49S.js";
|
|
6
6
|
import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
|
-
import { u as ke } from "./useLoading-
|
|
8
|
-
import { i as
|
|
9
|
-
import { u as Ye } from "./employee-
|
|
10
|
-
import { u as Le } from "./timesheet-
|
|
7
|
+
import { u as ke } from "./useLoading-D2AX24ph.js";
|
|
8
|
+
import { i as Ce, j as Ve, s as Fe } from "./index-D09s817L.js";
|
|
9
|
+
import { u as Ye } from "./employee-DKRqMph9.js";
|
|
10
|
+
import { u as Le } from "./timesheet-B0usAfjL.js";
|
|
11
11
|
function Me(x, a) {
|
|
12
12
|
return ["years", "months"].find((S) => {
|
|
13
13
|
const k = x.startOf(S), f = x.endOf(S);
|
|
@@ -18,7 +18,7 @@ function Te() {
|
|
|
18
18
|
const x = {
|
|
19
19
|
startDate: v().format("YYYY-MM-DD"),
|
|
20
20
|
endDate: v().format("YYYY-MM-DD")
|
|
21
|
-
}, a = d(x),
|
|
21
|
+
}, a = d(x), V = b(() => {
|
|
22
22
|
if (!a.value) return "No dates selected.";
|
|
23
23
|
const f = a.value.startDate ?? "Start", _ = a.value.endDate ?? "End";
|
|
24
24
|
return `${f} - ${_}`;
|
|
@@ -33,7 +33,7 @@ function Te() {
|
|
|
33
33
|
endDate: F(c).endOf(h).format("YYYY-MM-DD")
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
return { dateRange: a, parsedDateRange: S, dateRangeLabel:
|
|
36
|
+
return { dateRange: a, parsedDateRange: S, dateRangeLabel: V, setRange: k };
|
|
37
37
|
}
|
|
38
38
|
const Re = {
|
|
39
39
|
class: "my-16 flex w-[350px] flex-col gap-40"
|
|
@@ -73,7 +73,7 @@ const Re = {
|
|
|
73
73
|
setup(x) {
|
|
74
74
|
const {
|
|
75
75
|
t: a
|
|
76
|
-
} = we(),
|
|
76
|
+
} = we(), V = _e(), S = ke(V), k = [{
|
|
77
77
|
label: a("hr.timesheet.listView"),
|
|
78
78
|
value: "listView"
|
|
79
79
|
}, {
|
|
@@ -97,14 +97,14 @@ const Re = {
|
|
|
97
97
|
var e, s;
|
|
98
98
|
return t.user.name.toLowerCase().includes(c.value.toLowerCase()) || t.restaurantName.toLowerCase().includes(c.value.toLowerCase()) || ((e = t.restaurantCode) == null ? void 0 : e.toLowerCase().includes(c.value.toLowerCase())) || ((s = t.user.code) == null ? void 0 : s.toLowerCase().includes(c.value.toLowerCase()));
|
|
99
99
|
})), j = b(() => {
|
|
100
|
-
const t =
|
|
100
|
+
const t = Ce(g.value, (s) => s.user.name), e = Object.entries(t).map(([s, r]) => {
|
|
101
101
|
const w = F.value.find((y) => y._id === r[0].user.id);
|
|
102
102
|
return {
|
|
103
103
|
key: s,
|
|
104
104
|
user: r[0].user.name,
|
|
105
105
|
code: w ? w.code : "",
|
|
106
106
|
timesheets: r,
|
|
107
|
-
total:
|
|
107
|
+
total: Ve(r.reduce((y, p) => y + p.totalMin, 0))
|
|
108
108
|
};
|
|
109
109
|
});
|
|
110
110
|
return Fe(e, {
|
|
@@ -122,7 +122,7 @@ const Re = {
|
|
|
122
122
|
try {
|
|
123
123
|
await h.readTimesheet(new Date(t), new Date(e)), await ge(), U.value = Object.fromEntries(Object.entries(new Array(j.value.length).fill(!0)));
|
|
124
124
|
} catch (s) {
|
|
125
|
-
|
|
125
|
+
V.open({
|
|
126
126
|
title: s instanceof Error ? s.message : `${s}`,
|
|
127
127
|
type: "error"
|
|
128
128
|
});
|
|
@@ -191,13 +191,14 @@ const Re = {
|
|
|
191
191
|
const s = t.row.getIsExpanded();
|
|
192
192
|
return l("div", {
|
|
193
193
|
class: "flex items-center gap-8"
|
|
194
|
-
}, [l(
|
|
195
|
-
|
|
196
|
-
icon: s ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
197
|
-
"on-click": (r) => {
|
|
194
|
+
}, [l("div", {
|
|
195
|
+
onClick: (r) => {
|
|
198
196
|
r.stopPropagation(), t.row.getToggleExpandedHandler()(r);
|
|
199
197
|
}
|
|
200
|
-
},
|
|
198
|
+
}, [l(De.FmButton, {
|
|
199
|
+
variant: "tertiary",
|
|
200
|
+
icon: s ? "keyboard_arrow_up" : "keyboard_arrow_down"
|
|
201
|
+
}, null)]), e.user]);
|
|
201
202
|
}
|
|
202
203
|
},
|
|
203
204
|
enableSorting: !1
|
|
@@ -254,7 +255,7 @@ const Re = {
|
|
|
254
255
|
"dismiss-away": "",
|
|
255
256
|
header: n(a)("hr.timesheet.update.title")
|
|
256
257
|
}, {
|
|
257
|
-
"side-sheet-footer":
|
|
258
|
+
"side-sheet-footer": C(() => [u("div", je, [l(p, {
|
|
258
259
|
label: n(a)("common.update"),
|
|
259
260
|
size: "md",
|
|
260
261
|
variant: "primary",
|
|
@@ -265,7 +266,7 @@ const Re = {
|
|
|
265
266
|
variant: "secondary",
|
|
266
267
|
onClick: e[4] || (e[4] = (o) => M.value = !1)
|
|
267
268
|
}, null, 8, ["label"])])]),
|
|
268
|
-
default:
|
|
269
|
+
default: C(() => [u("div", Re, [u("div", Ie, [l(s, {
|
|
269
270
|
initials: m.value.user.name,
|
|
270
271
|
size: "lg"
|
|
271
272
|
}, null, 8, ["initials"]), u("div", Oe, [u("div", $e, $(n(a)("hr.timesheet.employeeName")), 1), u("div", Ae, $(m.value.user.name), 1)])]), u("div", Ee, [u("div", Ke, $(n(a)("hr.timesheet.update.checkIn")), 1), u("div", ze, [l(r, {
|
|
@@ -304,7 +305,7 @@ const Re = {
|
|
|
304
305
|
"onUpdate:modelValue": e[7] || (e[7] = (o) => fe(L) ? L.value = o : null),
|
|
305
306
|
"show-predefined-range": ""
|
|
306
307
|
}, {
|
|
307
|
-
"trigger-button":
|
|
308
|
+
"trigger-button": C(() => [l(Q, {
|
|
308
309
|
label: n(te)
|
|
309
310
|
}, null, 8, ["label"])]),
|
|
310
311
|
_: 1
|
|
@@ -319,11 +320,11 @@ const Re = {
|
|
|
319
320
|
})]), l(ue, {
|
|
320
321
|
class: "pt-[3px]"
|
|
321
322
|
}, {
|
|
322
|
-
"menu-button":
|
|
323
|
+
"menu-button": C(() => [l(Q, {
|
|
323
324
|
label: _.value,
|
|
324
325
|
"right-icon": "keyboard_arrow_down"
|
|
325
326
|
}, null, 8, ["label"])]),
|
|
326
|
-
default:
|
|
327
|
+
default: C(() => [(D(), B(Z, null, he(k, (o) => l(re, {
|
|
327
328
|
key: o.value,
|
|
328
329
|
label: o.label,
|
|
329
330
|
onClick: (Je) => f.value = o.value
|
|
@@ -342,7 +343,7 @@ const Re = {
|
|
|
342
343
|
key: 1,
|
|
343
344
|
class: "w-full xs:px-16 overflow-auto"
|
|
344
345
|
}, {
|
|
345
|
-
default:
|
|
346
|
+
default: C(() => [f.value === "listView" ? (D(), z(W, {
|
|
346
347
|
key: 0,
|
|
347
348
|
class: "min-w-[640px]",
|
|
348
349
|
"column-defs": ae,
|
package/dist/api/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ export declare class ApiError extends Error {
|
|
|
4
4
|
constructor(message: string, status: number);
|
|
5
5
|
}
|
|
6
6
|
export declare const businessClientInstance: () => AxiosInstance;
|
|
7
|
+
export declare const queryEngineClientInstance: () => AxiosInstance;
|
|
7
8
|
export declare function getAxiosData<T>(response: AxiosResponse<T>): T;
|