@feedmepos/mf-hrm-portal 1.1.1-dev → 1.1.3-dev
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-DNQh1rE9.js +316 -0
- package/dist/{EmployeeList-CMUbRS7j.js → EmployeeList-zU7fmC4c.js} +9 -8
- package/dist/{Main-BbZ-t-pu.js → Main-BqhrqOzx.js} +4 -4
- package/dist/{Main-un3v_g6p.js → Main-DGymQNz9.js} +9 -8
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BvjXcknf.js +3050 -0
- package/dist/{RoleList-mlTepnhN.js → RoleList-jbZqer7A.js} +5 -5
- package/dist/{RolePermissionList-tR-Kmlu7.js → RolePermissionList-Dd8ks5i7.js} +3 -3
- package/dist/{useSearch-C6gRA62e.js → SelectFilter-NbXrJ4iH.js} +90 -101
- package/dist/{TeamMemberList-BkRQl6x8.js → TeamMemberList-uamoOFIV.js} +40 -39
- package/dist/{TimesheetList-i5yaAzhB.js → TimesheetList-hgT9DrHd.js} +21 -20
- package/dist/api/team/index.d.ts +4 -1
- package/dist/{app-4LaGLcWC.js → app-CcbYGJ22.js} +757 -464
- package/dist/app.js +4 -4
- package/dist/dayjs.min-CgN1oBQf.js +282 -0
- package/dist/employee-khk560IC.js +172 -0
- package/dist/{index-BsEM84j5.js → index-D5sdamN5.js} +1154 -1183
- package/dist/{lodash-DYaYvsmp.js → lodash-7Am6_Zd3.js} +1 -1
- package/dist/{team-eo_yQh1g.js → team-CFyc6tnm.js} +1 -1
- package/dist/{timesheet-CfPIK52Q.js → timesheet-DKhEeLe7.js} +12 -12
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/types/audit-log.d.ts +1 -0
- package/dist/types/permission.d.ts +1 -5
- package/dist/{useAppStore-D0F-tWJO.js → useAppStore-DOSLuH24.js} +1 -1
- package/dist/{useLoading-DpbOtToC.js → useLoading-BA-GSZ3R.js} +1 -1
- package/dist/useSearch-B6WK1LBB.js +15 -0
- package/dist/views/audit-log/locales/index.d.ts +211 -0
- package/dist/views/team/components/BasePermission.vue.d.ts +0 -12
- package/package.json +2 -2
- package/dist/AuditLogList-D62QRWN-.js +0 -232
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CZKBfM_R.js +0 -3119
- package/dist/employee-BZTntAR0.js +0 -450
- /package/dist/views/{hr/audit-log → audit-log}/AuditLogList.vue.d.ts +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
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 V, createCommentVNode as pe, toDisplayString as $, createTextVNode as ve, createBlock as z, isRef as fe, renderList as he, nextTick as ge } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { useSnackbar as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as
|
|
8
|
-
import { i as
|
|
9
|
-
import { u as
|
|
2
|
+
import { d as v } from "./dayjs.min-CgN1oBQf.js";
|
|
3
|
+
import { useI18n as we, useCoreStore as ye, RestaurantSelector as be } from "@feedmepos/mf-common";
|
|
4
|
+
import { useSnackbar as _e, components as De } from "@feedmepos/ui-library";
|
|
5
|
+
import { _ as xe } from "./app-CcbYGJ22.js";
|
|
6
|
+
import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
|
+
import { u as ke } from "./useLoading-BA-GSZ3R.js";
|
|
8
|
+
import { i as Ve, j as Ce, s as Fe } from "./index-D5sdamN5.js";
|
|
9
|
+
import { u as Ye } from "./employee-khk560IC.js";
|
|
10
|
+
import { u as Le } from "./timesheet-DKhEeLe7.js";
|
|
10
11
|
function Me(x, a) {
|
|
11
12
|
return ["years", "months"].find((S) => {
|
|
12
13
|
const k = x.startOf(S), f = x.endOf(S);
|
|
@@ -67,12 +68,12 @@ const Re = {
|
|
|
67
68
|
class: "flex items-start gap-8 flex-wrap xs:px-16"
|
|
68
69
|
}, qe = {
|
|
69
70
|
class: "flex items-center gap-8"
|
|
70
|
-
},
|
|
71
|
+
}, nt = /* @__PURE__ */ ce({
|
|
71
72
|
__name: "TimesheetList",
|
|
72
73
|
setup(x) {
|
|
73
74
|
const {
|
|
74
75
|
t: a
|
|
75
|
-
} =
|
|
76
|
+
} = we(), C = _e(), S = ke(C), k = [{
|
|
76
77
|
label: a("hr.timesheet.listView"),
|
|
77
78
|
value: "listView"
|
|
78
79
|
}, {
|
|
@@ -81,7 +82,7 @@ const Re = {
|
|
|
81
82
|
}], f = d("listView"), _ = b(() => {
|
|
82
83
|
var t;
|
|
83
84
|
return (t = k.find((e) => e.value === f.value)) == null ? void 0 : t.label;
|
|
84
|
-
}), c = d(""), h = Le(), A =
|
|
85
|
+
}), c = d(""), h = Le(), A = Ye(), F = b(() => A.employees.value), g = b(() => h.timesheets.value.filter((s) => !E.value || E.value.includes(s.restaurantId)).map((s) => {
|
|
85
86
|
var y;
|
|
86
87
|
const r = (y = ee.restaurants.value.find((p) => p._id === s.restaurantId)) == null ? void 0 : y.profile.code, w = F.value.find((p) => p._id === s.user.id);
|
|
87
88
|
return {
|
|
@@ -96,17 +97,17 @@ const Re = {
|
|
|
96
97
|
var e, s;
|
|
97
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()));
|
|
98
99
|
})), j = b(() => {
|
|
99
|
-
const t =
|
|
100
|
+
const t = Ve(g.value, (s) => s.user.name), e = Object.entries(t).map(([s, r]) => {
|
|
100
101
|
const w = F.value.find((y) => y._id === r[0].user.id);
|
|
101
102
|
return {
|
|
102
103
|
key: s,
|
|
103
104
|
user: r[0].user.name,
|
|
104
105
|
code: w ? w.code : "",
|
|
105
106
|
timesheets: r,
|
|
106
|
-
total:
|
|
107
|
+
total: Ce(r.reduce((y, p) => y + p.totalMin, 0))
|
|
107
108
|
};
|
|
108
109
|
});
|
|
109
|
-
return
|
|
110
|
+
return Fe(e, {
|
|
110
111
|
selector: "user"
|
|
111
112
|
});
|
|
112
113
|
}), H = b(() => j.value.filter((t) => {
|
|
@@ -132,7 +133,7 @@ const Re = {
|
|
|
132
133
|
me(() => {
|
|
133
134
|
N();
|
|
134
135
|
});
|
|
135
|
-
const ee =
|
|
136
|
+
const ee = ye(), E = d(), {
|
|
136
137
|
dateRange: L,
|
|
137
138
|
dateRangeLabel: te,
|
|
138
139
|
setRange: G
|
|
@@ -190,7 +191,7 @@ const Re = {
|
|
|
190
191
|
const s = t.row.getIsExpanded();
|
|
191
192
|
return l("div", {
|
|
192
193
|
class: "flex items-center gap-8"
|
|
193
|
-
}, [l(
|
|
194
|
+
}, [l(De.FmButton, {
|
|
194
195
|
variant: "tertiary",
|
|
195
196
|
icon: s ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
196
197
|
"on-click": (r) => {
|
|
@@ -291,7 +292,7 @@ const Re = {
|
|
|
291
292
|
size: "sm"
|
|
292
293
|
}), ve(" " + $(K.value), 1)])) : pe("", !0)])]),
|
|
293
294
|
_: 1
|
|
294
|
-
}, 8, ["modelValue", "header"]), u("div", He, [u("div", Ge, [l(n(
|
|
295
|
+
}, 8, ["modelValue", "header"]), u("div", He, [u("div", Ge, [l(n(be), {
|
|
295
296
|
modelValue: E.value,
|
|
296
297
|
"onUpdate:modelValue": e[6] || (e[6] = (o) => E.value = o),
|
|
297
298
|
"managable-only": "",
|
|
@@ -333,11 +334,11 @@ const Re = {
|
|
|
333
334
|
"onUpdate:modelValue": e[10] || (e[10] = (o) => c.value = o),
|
|
334
335
|
class: "w-[320px]",
|
|
335
336
|
placeholder: n(a)("hr.timesheet.search.placeholder")
|
|
336
|
-
}, null, 8, ["modelValue", "placeholder"])]), g.value.length === 0 && !Y.value ? (D(), z(n(
|
|
337
|
+
}, null, 8, ["modelValue", "placeholder"])]), g.value.length === 0 && !Y.value ? (D(), z(n(Se), {
|
|
337
338
|
key: 0,
|
|
338
339
|
title: n(a)("hr.timesheet.noData.title"),
|
|
339
340
|
subtitle: ""
|
|
340
|
-
}, null, 8, ["title"])) : (D(), z(
|
|
341
|
+
}, null, 8, ["title"])) : (D(), z(xe, {
|
|
341
342
|
key: 1,
|
|
342
343
|
class: "w-full xs:px-16 overflow-auto"
|
|
343
344
|
}, {
|
|
@@ -373,5 +374,5 @@ const Re = {
|
|
|
373
374
|
}
|
|
374
375
|
});
|
|
375
376
|
export {
|
|
376
|
-
|
|
377
|
+
nt as default
|
|
377
378
|
};
|
package/dist/api/team/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { type IFdtoPortalPermission } from '@/types/permission';
|
|
2
2
|
import type { FTeamMember, IFdtoCreatePortalUserReq, IFdtoUpdatePortalUserReq } from '@/types/team';
|
|
3
|
-
export
|
|
3
|
+
export type IFdtoPortalPermissionWithCategory = IFdtoPortalPermission & {
|
|
4
|
+
category: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const portalTeamPermissions: IFdtoPortalPermissionWithCategory[];
|
|
4
7
|
export declare const teamApi: {
|
|
5
8
|
readTeamMembers(): Promise<FTeamMember[]>;
|
|
6
9
|
createTeamMember(req: IFdtoCreatePortalUserReq): Promise<FTeamMember>;
|