@feedmepos/mf-hrm-portal 2.0.17 → 2.0.18-dev.2
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-D4E8pss5.js +1037 -0
- package/dist/CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js +58 -0
- package/dist/EmployeeList-BfJO89pN.js +827 -0
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-D3MOFOUI.js +45 -0
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
- package/dist/{Main-CCTDT_TG.js → Main-BbOMNP31.js} +758 -761
- package/dist/Main-XmxzThcC.js +86 -0
- package/dist/{Main-C7Q3OELU.js → Main-dqgR1UXY.js} +181 -175
- package/dist/PermissionSetList-DO0PRS6Z.js +347 -0
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DL4_xvBZ.js +3443 -0
- package/dist/RoleList-DB3NfUYF.js +545 -0
- package/dist/TeamMemberList-4hEx6L5r.js +1090 -0
- package/dist/{TimesheetList-DhKfguOb.js → TimesheetList-D29EFj1Q.js} +132 -126
- package/dist/{app--3WguZOC.js → app-SadE2J6-.js} +759 -711
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-RrLy0N6G.js → dayjs.min-DKCxxK08.js} +1 -1
- package/dist/employee-3KJs872J.js +204 -0
- package/dist/{iteration-BQA73VxD.js → iteration-QZxp7XeE.js} +9258 -9213
- package/dist/{lodash-B1ouSWpG.js → lodash-DrksHyHu.js} +1 -1
- package/dist/{rule-BL-miuus.js → rule-CSsgDC6F.js} +263 -265
- package/dist/src/api/audit-log/index.d.ts +9 -0
- package/dist/src/api/restaurant/index.d.ts +5 -0
- package/dist/src/components/CheckboxInput.vue.d.ts +1 -1
- package/dist/src/components/CollapsibleWrapper.vue.d.ts +2 -0
- package/dist/src/components/Skeleton.vue.d.ts +7 -0
- package/dist/src/composables/useBasePermission.d.ts +1 -0
- package/dist/src/composables/useRestaurantMap.d.ts +2 -329
- package/dist/src/stores/restaurant.d.ts +181 -0
- package/dist/src/stores/role.d.ts +7 -7
- package/dist/src/stores/team.d.ts +6 -6
- package/dist/src/types/restaurant.d.ts +11 -0
- package/dist/src/types/team.d.ts +1 -1
- package/dist/src/views/hr/locales/index.d.ts +16 -0
- package/dist/src/views/team/components/BasePermission.vue.d.ts +3 -7
- package/dist/src/views/team/components/PosRolePermission.vue.d.ts +2 -2
- package/dist/src/views/team/locales/index.d.ts +32 -0
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +5 -3
- package/dist/style.css +1 -1
- package/dist/{timesheet-BbtAYZ1B.js → timesheet-sBe_HCZh.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/useAppStore-BDADkWuX.js +171 -0
- package/dist/useDebounce-CWb5QR9G.js +28 -0
- package/dist/useDiscardConfirm-DPhEV6v0.js +157 -0
- package/dist/{useLoading-D7PklYeR.js → useLoading-PTqnaz_W.js} +1 -1
- package/dist/{useReportPermissions-CNcISy8f.js → useReportPermissions-C3Uzu7vB.js} +3 -3
- package/package.json +1 -1
- package/dist/AuditLogList-DwCmJovS.js +0 -980
- package/dist/EmployeeList-8166DlII.js +0 -736
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +0 -71
- package/dist/HorizontalSplitter-o860F4xM.js +0 -12
- package/dist/Main-C4LaqZaa.js +0 -85
- package/dist/PermissionSetList-trnHwNFR.js +0 -341
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bc5nE9NF.js +0 -3480
- package/dist/RoleList-DJtbEUSC.js +0 -530
- package/dist/TeamMemberList-C6qx-yJi.js +0 -1108
- package/dist/employee-DSAStcBv.js +0 -204
- package/dist/useAppStore-BHWapSDk.js +0 -171
- package/dist/useDebounce-B8ZPVS5C.js +0 -15
- package/dist/useDiscardConfirm-BHni0LNu.js +0 -28
- package/dist/useSearch-B6WK1LBB.js +0 -15
|
@@ -1,129 +1,130 @@
|
|
|
1
|
-
import { ref as d, computed as
|
|
2
|
-
import { d as v } from "./dayjs.min-
|
|
3
|
-
import { useI18n as ye
|
|
4
|
-
import { useSnackbar as
|
|
5
|
-
import {
|
|
1
|
+
import { ref as d, computed as g, defineComponent as me, onMounted as pe, watch as Z, resolveComponent as u, createElementBlock as P, openBlock as _, Fragment as ee, createVNode as l, createElementVNode as i, unref as n, withCtx as F, createCommentVNode as ve, toDisplayString as E, createTextVNode as fe, createBlock as N, isRef as he, renderList as ge, nextTick as we } from "vue";
|
|
2
|
+
import { d as v } from "./dayjs.min-DKCxxK08.js";
|
|
3
|
+
import { useI18n as ye } from "@feedmepos/mf-common";
|
|
4
|
+
import { useSnackbar as be, components as _e } from "@feedmepos/ui-library";
|
|
5
|
+
import { S as xe } from "./SelectFilter-DUj7GBtT.js";
|
|
6
|
+
import { _ as De } from "./app-SadE2J6-.js";
|
|
6
7
|
import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
|
-
import { u as ke } from "./useLoading-
|
|
8
|
-
import { c as Ce, s as
|
|
9
|
-
import { f as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
function
|
|
13
|
-
return ["years", "months"].find((
|
|
14
|
-
const
|
|
15
|
-
return x.isSame(
|
|
8
|
+
import { u as ke } from "./useLoading-PTqnaz_W.js";
|
|
9
|
+
import { u as Ve, c as Ce, s as Fe } from "./iteration-QZxp7XeE.js";
|
|
10
|
+
import { f as Ye } from "./utils-BZkjJbju.js";
|
|
11
|
+
import { u as Le } from "./employee-3KJs872J.js";
|
|
12
|
+
import { u as Me } from "./timesheet-sBe_HCZh.js";
|
|
13
|
+
function Te(x, a) {
|
|
14
|
+
return ["years", "months"].find((D) => {
|
|
15
|
+
const S = x.startOf(D), f = x.endOf(D);
|
|
16
|
+
return x.isSame(S, "day") && a.isSame(f, "day");
|
|
16
17
|
}) || "days";
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
+
function Re() {
|
|
19
20
|
const x = {
|
|
20
21
|
startDate: v().format("YYYY-MM-DD"),
|
|
21
22
|
endDate: v().format("YYYY-MM-DD")
|
|
22
|
-
}, a = d(x),
|
|
23
|
+
}, a = d(x), Y = g(() => {
|
|
23
24
|
if (!a.value) return "No dates selected.";
|
|
24
|
-
const f = a.value.startDate ?? "Start",
|
|
25
|
-
return `${f} - ${
|
|
26
|
-
}),
|
|
25
|
+
const f = a.value.startDate ?? "Start", b = a.value.endDate ?? "End";
|
|
26
|
+
return `${f} - ${b}`;
|
|
27
|
+
}), D = g(() => ({
|
|
27
28
|
startDate: new Date(a.value.startDate),
|
|
28
29
|
endDate: new Date(a.value.endDate)
|
|
29
30
|
}));
|
|
30
|
-
function
|
|
31
|
-
const
|
|
31
|
+
function S(f) {
|
|
32
|
+
const b = v(a.value.startDate), c = v(a.value.endDate), h = Te(b, c), k = h === "days" ? c.diff(b, "days") + 1 : 1, V = f === "subtract" ? (C) => C.subtract(k, h) : (C) => C.add(k, h);
|
|
32
33
|
a.value = {
|
|
33
|
-
startDate:
|
|
34
|
-
endDate:
|
|
34
|
+
startDate: V(b).startOf(h).format("YYYY-MM-DD"),
|
|
35
|
+
endDate: V(c).endOf(h).format("YYYY-MM-DD")
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
|
-
return { dateRange: a, parsedDateRange:
|
|
38
|
+
return { dateRange: a, parsedDateRange: D, dateRangeLabel: Y, setRange: S };
|
|
38
39
|
}
|
|
39
|
-
const
|
|
40
|
+
const $e = {
|
|
40
41
|
class: "my-16 flex w-[350px] flex-col gap-40"
|
|
41
42
|
}, Ie = {
|
|
42
43
|
class: "flex gap-16"
|
|
43
|
-
}, Ee = {
|
|
44
|
-
class: "flex flex-col gap-4"
|
|
45
44
|
}, Oe = {
|
|
45
|
+
class: "flex flex-col gap-4"
|
|
46
|
+
}, Ee = {
|
|
46
47
|
class: "fm-typo-body-md-400 text-fm-color-typo-secondary"
|
|
47
|
-
}, $e = {
|
|
48
|
-
class: "fm-typo-body-md-700 text-fm-color-typo-primary"
|
|
49
48
|
}, Ae = {
|
|
50
|
-
class: "
|
|
49
|
+
class: "fm-typo-body-md-700 text-fm-color-typo-primary"
|
|
51
50
|
}, Ke = {
|
|
52
|
-
class: "
|
|
51
|
+
class: "flex flex-col gap-8"
|
|
53
52
|
}, ze = {
|
|
54
|
-
class: "
|
|
53
|
+
class: "fm-typo-body-xl-700"
|
|
55
54
|
}, Ne = {
|
|
56
|
-
class: "flex flex-col gap-
|
|
55
|
+
class: "flex flex-col gap-24"
|
|
57
56
|
}, Ue = {
|
|
58
|
-
class: "
|
|
57
|
+
class: "flex flex-col gap-8"
|
|
59
58
|
}, Be = {
|
|
60
|
-
class: "
|
|
59
|
+
class: "fm-typo-body-xl-700"
|
|
61
60
|
}, Pe = {
|
|
61
|
+
class: "flex flex-col gap-24"
|
|
62
|
+
}, je = {
|
|
62
63
|
key: 0,
|
|
63
64
|
class: "fm-typo-body-sm-400 text-fm-color-typo-error mt-1 flex items-center gap-4"
|
|
64
|
-
}, je = {
|
|
65
|
-
class: "flex items-center justify-start gap-8"
|
|
66
65
|
}, He = {
|
|
67
|
-
class: "
|
|
66
|
+
class: "flex items-center justify-start gap-8"
|
|
68
67
|
}, Ge = {
|
|
69
|
-
class: "
|
|
68
|
+
class: "space-y-8"
|
|
70
69
|
}, qe = {
|
|
70
|
+
class: "flex items-start gap-8 flex-wrap xs:px-16"
|
|
71
|
+
}, Je = {
|
|
71
72
|
class: "flex items-center gap-8"
|
|
72
|
-
},
|
|
73
|
+
}, ut = /* @__PURE__ */ me({
|
|
73
74
|
__name: "TimesheetList",
|
|
74
75
|
setup(x) {
|
|
75
76
|
const {
|
|
76
77
|
t: a
|
|
77
|
-
} = ye(),
|
|
78
|
+
} = ye(), Y = be(), D = ke(Y), S = [{
|
|
78
79
|
label: a("hr.timesheet.listView"),
|
|
79
80
|
value: "listView"
|
|
80
81
|
}, {
|
|
81
82
|
label: a("hr.timesheet.userView"),
|
|
82
83
|
value: "userView"
|
|
83
|
-
}], f = d("listView"),
|
|
84
|
+
}], f = d("listView"), b = g(() => {
|
|
84
85
|
var t;
|
|
85
|
-
return (t =
|
|
86
|
-
}), c = d(""), h = Le(),
|
|
87
|
-
var
|
|
88
|
-
const r = (
|
|
86
|
+
return (t = S.find((e) => e.value === f.value)) == null ? void 0 : t.label;
|
|
87
|
+
}), c = d(""), h = Me(), k = Le(), V = Ve(), C = g(() => k.employees.value), A = g(() => h.timesheets.value.filter((s) => !K.value || K.value.includes(s.restaurantId)).map((s) => {
|
|
88
|
+
var y;
|
|
89
|
+
const r = (y = V.restaurants.value.find((p) => p._id === s.restaurantId)) == null ? void 0 : y.profile.code, w = C.value.find((p) => p._id === s.user.id);
|
|
89
90
|
return {
|
|
90
91
|
...s,
|
|
91
92
|
restaurantCode: r,
|
|
92
93
|
user: {
|
|
93
94
|
...s.user,
|
|
94
|
-
code:
|
|
95
|
+
code: w ? w.code : ""
|
|
95
96
|
}
|
|
96
97
|
};
|
|
97
|
-
})),
|
|
98
|
+
})), j = g(() => A.value.filter((t) => {
|
|
98
99
|
var e, s;
|
|
99
100
|
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()));
|
|
100
|
-
})),
|
|
101
|
-
const t = Ce(
|
|
102
|
-
const
|
|
101
|
+
})), H = g(() => {
|
|
102
|
+
const t = Ce(A.value, (s) => s.user.name), e = Object.entries(t).map(([s, r]) => {
|
|
103
|
+
const w = C.value.find((y) => y._id === r[0].user.id);
|
|
103
104
|
return {
|
|
104
105
|
key: s,
|
|
105
106
|
user: r[0].user.name,
|
|
106
|
-
code:
|
|
107
|
+
code: w ? w.code : "",
|
|
107
108
|
timesheets: r,
|
|
108
|
-
total:
|
|
109
|
+
total: Ye(r.reduce((y, p) => y + p.totalMin, 0))
|
|
109
110
|
};
|
|
110
111
|
});
|
|
111
|
-
return
|
|
112
|
+
return Fe(e, {
|
|
112
113
|
selector: "user"
|
|
113
114
|
});
|
|
114
|
-
}),
|
|
115
|
+
}), G = g(() => H.value.filter((t) => {
|
|
115
116
|
var e;
|
|
116
117
|
return t.user.toLowerCase().includes(c.value.toLowerCase()) || ((e = t.code) == null ? void 0 : e.toLowerCase().includes(c.value.toLowerCase()));
|
|
117
|
-
})), L = d(!1),
|
|
118
|
+
})), L = d(!1), U = async () => {
|
|
118
119
|
const {
|
|
119
120
|
startDate: t,
|
|
120
121
|
endDate: e
|
|
121
122
|
} = M.value;
|
|
122
123
|
L.value = !0;
|
|
123
124
|
try {
|
|
124
|
-
await h.readTimesheet(new Date(t), new Date(e)), await
|
|
125
|
+
await h.readTimesheet(new Date(t), new Date(e)), await we(), B.value = Object.fromEntries(Object.entries(new Array(H.value.length).fill(!0)));
|
|
125
126
|
} catch (s) {
|
|
126
|
-
|
|
127
|
+
Y.open({
|
|
127
128
|
title: s instanceof Error ? s.message : `${s}`,
|
|
128
129
|
type: "error"
|
|
129
130
|
});
|
|
@@ -131,18 +132,21 @@ const Re = {
|
|
|
131
132
|
L.value = !1;
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
pe(async () => {
|
|
136
|
+
await V.readRestaurants(), k.employees.value.length === 0 && await k.readEmployees(), U();
|
|
136
137
|
});
|
|
137
|
-
const
|
|
138
|
+
const K = d(), te = g(() => V.restaurants.value.filter((t) => t.managable).map((t) => ({
|
|
139
|
+
label: `${t.profile.code ? `${t.profile.code} - ` : ""}${t.profile.name}`,
|
|
140
|
+
value: t._id
|
|
141
|
+
}))), {
|
|
138
142
|
dateRange: M,
|
|
139
|
-
dateRangeLabel:
|
|
140
|
-
setRange:
|
|
141
|
-
} =
|
|
142
|
-
|
|
143
|
-
|
|
143
|
+
dateRangeLabel: ae,
|
|
144
|
+
setRange: q
|
|
145
|
+
} = Re();
|
|
146
|
+
Z(M, async () => {
|
|
147
|
+
U();
|
|
144
148
|
});
|
|
145
|
-
const
|
|
149
|
+
const oe = [{
|
|
146
150
|
accessorKey: "user.code",
|
|
147
151
|
size: 100,
|
|
148
152
|
header: () => a("hr.employee.columns.code"),
|
|
@@ -177,7 +181,7 @@ const Re = {
|
|
|
177
181
|
header: () => a("hr.timesheet.columns.duration"),
|
|
178
182
|
cell: (t) => t.row.original.duration || "--",
|
|
179
183
|
enableSorting: !0
|
|
180
|
-
}],
|
|
184
|
+
}], B = d({}), se = [{
|
|
181
185
|
accessorKey: "code",
|
|
182
186
|
size: 100,
|
|
183
187
|
header: () => a("hr.employee.columns.code"),
|
|
@@ -196,7 +200,7 @@ const Re = {
|
|
|
196
200
|
onClick: (r) => {
|
|
197
201
|
r.stopPropagation(), t.row.getToggleExpandedHandler()(r);
|
|
198
202
|
}
|
|
199
|
-
}, [l(
|
|
203
|
+
}, [l(_e.FmButton, {
|
|
200
204
|
variant: "tertiary",
|
|
201
205
|
icon: s ? "keyboard_arrow_up" : "keyboard_arrow_down"
|
|
202
206
|
}, null)]), e.user]);
|
|
@@ -229,146 +233,148 @@ const Re = {
|
|
|
229
233
|
},
|
|
230
234
|
enableSorting: !1
|
|
231
235
|
}], T = d(!1);
|
|
232
|
-
function
|
|
233
|
-
m.value = t, R.value = v(m.value.startedAt).format("YYYY-MM-DD"),
|
|
236
|
+
function J(t) {
|
|
237
|
+
m.value = t, R.value = v(m.value.startedAt).format("YYYY-MM-DD"), I.value = v(m.value.endedAt || m.value.startedAt).format("YYYY-MM-DD"), $.value = v(m.value.startedAt).format("HH:mm"), O.value = v(m.value.endedAt || m.value.startedAt).format("HH:mm"), T.value = !0;
|
|
234
238
|
}
|
|
235
|
-
const R = d(),
|
|
236
|
-
async function
|
|
237
|
-
const t =
|
|
239
|
+
const R = d(), $ = d(), I = d(), O = d(), m = d(), z = d("");
|
|
240
|
+
async function le() {
|
|
241
|
+
const t = Q(R.value, $.value), e = Q(I.value, O.value);
|
|
238
242
|
if (v(t).isAfter(e)) {
|
|
239
|
-
|
|
243
|
+
z.value = a("hr.timesheet.checkOutMustBeforeCheckIn");
|
|
240
244
|
return;
|
|
241
245
|
}
|
|
242
|
-
|
|
246
|
+
D.minor(async () => {
|
|
243
247
|
await h.updateTimesheet(m.value, t, e);
|
|
244
248
|
}, {
|
|
245
249
|
successMessage: a("hr.timesheet.update.successMessage")
|
|
246
|
-
}),
|
|
250
|
+
}), U(), T.value = !1;
|
|
247
251
|
}
|
|
248
|
-
const
|
|
249
|
-
return
|
|
250
|
-
(t || e || s || r) && (
|
|
252
|
+
const Q = (t, e) => v(t).set("h", parseInt(e.split(":")[0])).set("m", parseInt(e.split(":")[1])).toISOString();
|
|
253
|
+
return Z([R, I, $, O], ([t, e, s, r]) => {
|
|
254
|
+
(t || e || s || r) && (z.value = "");
|
|
251
255
|
}), (t, e) => {
|
|
252
|
-
const s = u("FmAvatar"), r = u("FmDatePicker"),
|
|
253
|
-
return
|
|
256
|
+
const s = u("FmAvatar"), r = u("FmDatePicker"), w = u("FmTimePicker"), y = u("FmIcon"), p = u("FmButton"), ne = u("FmSideSheet"), W = u("FmChip"), re = u("FmDateRangePicker"), ie = u("FmMenuItem"), ue = u("FmMenu"), de = u("FmSpacer"), ce = u("FmSearch"), X = u("FmTable");
|
|
257
|
+
return _(), P(ee, null, [l(ne, {
|
|
254
258
|
modelValue: T.value,
|
|
255
259
|
"onUpdate:modelValue": e[5] || (e[5] = (o) => T.value = o),
|
|
256
260
|
"dismiss-away": "",
|
|
257
261
|
header: n(a)("hr.timesheet.update.title")
|
|
258
262
|
}, {
|
|
259
|
-
"side-sheet-footer":
|
|
263
|
+
"side-sheet-footer": F(() => [i("div", He, [l(p, {
|
|
260
264
|
label: n(a)("common.update"),
|
|
261
265
|
size: "md",
|
|
262
266
|
variant: "primary",
|
|
263
|
-
onClick:
|
|
267
|
+
onClick: le
|
|
264
268
|
}, null, 8, ["label"]), l(p, {
|
|
265
269
|
label: n(a)("common.cancel"),
|
|
266
270
|
size: "md",
|
|
267
271
|
variant: "secondary",
|
|
268
272
|
onClick: e[4] || (e[4] = (o) => T.value = !1)
|
|
269
273
|
}, null, 8, ["label"])])]),
|
|
270
|
-
default:
|
|
274
|
+
default: F(() => [i("div", $e, [i("div", Ie, [l(s, {
|
|
271
275
|
initials: m.value.user.name,
|
|
272
276
|
size: "lg"
|
|
273
|
-
}, null, 8, ["initials"]), i("div",
|
|
277
|
+
}, null, 8, ["initials"]), i("div", Oe, [i("div", Ee, E(n(a)("hr.timesheet.employeeName")), 1), i("div", Ae, E(m.value.user.name), 1)])]), i("div", Ke, [i("div", ze, E(n(a)("hr.timesheet.update.checkIn")), 1), i("div", Ne, [l(r, {
|
|
274
278
|
modelValue: R.value,
|
|
275
279
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => R.value = o),
|
|
276
280
|
disabled: !1,
|
|
277
281
|
label: n(a)("hr.timesheet.update.date")
|
|
278
|
-
}, null, 8, ["modelValue", "label"]), l(
|
|
279
|
-
modelValue:
|
|
280
|
-
"onUpdate:modelValue": e[1] || (e[1] = (o) =>
|
|
282
|
+
}, null, 8, ["modelValue", "label"]), l(w, {
|
|
283
|
+
modelValue: $.value,
|
|
284
|
+
"onUpdate:modelValue": e[1] || (e[1] = (o) => $.value = o),
|
|
281
285
|
label: n(a)("hr.timesheet.update.time")
|
|
282
|
-
}, null, 8, ["modelValue", "label"])])]), i("div",
|
|
283
|
-
modelValue:
|
|
284
|
-
"onUpdate:modelValue": e[2] || (e[2] = (o) =>
|
|
286
|
+
}, null, 8, ["modelValue", "label"])])]), i("div", Ue, [i("div", Be, E(n(a)("hr.timesheet.update.checkOut")), 1), i("div", Pe, [l(r, {
|
|
287
|
+
modelValue: I.value,
|
|
288
|
+
"onUpdate:modelValue": e[2] || (e[2] = (o) => I.value = o),
|
|
285
289
|
disabled: !1,
|
|
286
290
|
label: n(a)("hr.timesheet.update.date")
|
|
287
|
-
}, null, 8, ["modelValue", "label"]), l(
|
|
291
|
+
}, null, 8, ["modelValue", "label"]), l(w, {
|
|
288
292
|
modelValue: O.value,
|
|
289
293
|
"onUpdate:modelValue": e[3] || (e[3] = (o) => O.value = o),
|
|
290
294
|
label: n(a)("hr.timesheet.update.time")
|
|
291
|
-
}, null, 8, ["modelValue", "label"])])]),
|
|
295
|
+
}, null, 8, ["modelValue", "label"])])]), z.value ? (_(), P("div", je, [l(y, {
|
|
292
296
|
color: "#FF3B30",
|
|
293
297
|
name: "error",
|
|
294
298
|
size: "sm"
|
|
295
|
-
}),
|
|
299
|
+
}), fe(" " + E(z.value), 1)])) : ve("", !0)])]),
|
|
296
300
|
_: 1
|
|
297
|
-
}, 8, ["modelValue", "header"]), i("div",
|
|
298
|
-
modelValue:
|
|
299
|
-
"onUpdate:modelValue": e[6] || (e[6] = (o) =>
|
|
300
|
-
"managable-only": "",
|
|
301
|
+
}, 8, ["modelValue", "header"]), i("div", Ge, [i("div", qe, [l(xe, {
|
|
302
|
+
modelValue: K.value,
|
|
303
|
+
"onUpdate:modelValue": e[6] || (e[6] = (o) => K.value = o),
|
|
301
304
|
multiple: "",
|
|
305
|
+
items: te.value,
|
|
302
306
|
variant: "dark",
|
|
307
|
+
"selected-prefix": n(a)("hr.role.columns.restaurants"),
|
|
308
|
+
placeholder: n(a)("hr.role.columns.restaurants"),
|
|
303
309
|
class: "!w-auto pt-[3px]"
|
|
304
|
-
}, null, 8, ["modelValue"]), i("div",
|
|
310
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), i("div", Je, [l(re, {
|
|
305
311
|
modelValue: n(M),
|
|
306
|
-
"onUpdate:modelValue": e[7] || (e[7] = (o) =>
|
|
312
|
+
"onUpdate:modelValue": e[7] || (e[7] = (o) => he(M) ? M.value = o : null),
|
|
307
313
|
"show-predefined-range": ""
|
|
308
314
|
}, {
|
|
309
|
-
"trigger-button":
|
|
310
|
-
label: n(
|
|
315
|
+
"trigger-button": F(() => [l(W, {
|
|
316
|
+
label: n(ae)
|
|
311
317
|
}, null, 8, ["label"])]),
|
|
312
318
|
_: 1
|
|
313
319
|
}, 8, ["modelValue"]), l(p, {
|
|
314
320
|
icon: "chevron_left",
|
|
315
321
|
variant: "tertiary",
|
|
316
|
-
onClick: e[8] || (e[8] = (o) => n(
|
|
322
|
+
onClick: e[8] || (e[8] = (o) => n(q)("subtract"))
|
|
317
323
|
}), l(p, {
|
|
318
324
|
icon: "chevron_right",
|
|
319
325
|
variant: "tertiary",
|
|
320
|
-
onClick: e[9] || (e[9] = (o) => n(
|
|
321
|
-
})]), l(
|
|
326
|
+
onClick: e[9] || (e[9] = (o) => n(q)("add"))
|
|
327
|
+
})]), l(ue, {
|
|
322
328
|
class: "pt-[3px]"
|
|
323
329
|
}, {
|
|
324
|
-
"menu-button":
|
|
325
|
-
label:
|
|
330
|
+
"menu-button": F(() => [l(W, {
|
|
331
|
+
label: b.value,
|
|
326
332
|
"right-icon": "keyboard_arrow_down"
|
|
327
333
|
}, null, 8, ["label"])]),
|
|
328
|
-
default:
|
|
334
|
+
default: F(() => [(_(), P(ee, null, ge(S, (o) => l(ie, {
|
|
329
335
|
key: o.value,
|
|
330
336
|
label: o.label,
|
|
331
|
-
onClick: (
|
|
337
|
+
onClick: (Qe) => f.value = o.value
|
|
332
338
|
}, null, 8, ["label", "onClick"])), 64))]),
|
|
333
339
|
_: 1
|
|
334
|
-
}), l(
|
|
340
|
+
}), l(de), l(ce, {
|
|
335
341
|
modelValue: c.value,
|
|
336
342
|
"onUpdate:modelValue": e[10] || (e[10] = (o) => c.value = o),
|
|
337
343
|
class: "w-[320px]",
|
|
338
344
|
placeholder: n(a)("hr.timesheet.search.placeholder")
|
|
339
|
-
}, null, 8, ["modelValue", "placeholder"])]),
|
|
345
|
+
}, null, 8, ["modelValue", "placeholder"])]), A.value.length === 0 && !L.value ? (_(), N(n(Se), {
|
|
340
346
|
key: 0,
|
|
341
347
|
title: n(a)("hr.timesheet.noData.title"),
|
|
342
348
|
subtitle: ""
|
|
343
|
-
}, null, 8, ["title"])) : (
|
|
349
|
+
}, null, 8, ["title"])) : (_(), N(De, {
|
|
344
350
|
key: 1,
|
|
345
351
|
class: "w-full xs:px-16 overflow-auto"
|
|
346
352
|
}, {
|
|
347
|
-
default:
|
|
353
|
+
default: F(() => [f.value === "listView" ? (_(), N(X, {
|
|
348
354
|
key: 0,
|
|
349
355
|
class: "min-w-[640px]",
|
|
350
|
-
"column-defs":
|
|
351
|
-
"row-data":
|
|
352
|
-
"page-size":
|
|
356
|
+
"column-defs": oe,
|
|
357
|
+
"row-data": j.value,
|
|
358
|
+
"page-size": j.value.length,
|
|
353
359
|
loading: L.value,
|
|
354
360
|
"pin-header-row": "",
|
|
355
361
|
"hide-footer": "",
|
|
356
362
|
"shrink-at": !1,
|
|
357
|
-
onRowClick: e[11] || (e[11] = (o) =>
|
|
358
|
-
}, null, 8, ["row-data", "page-size", "loading"])) : (
|
|
363
|
+
onRowClick: e[11] || (e[11] = (o) => J(o.original))
|
|
364
|
+
}, null, 8, ["row-data", "page-size", "loading"])) : (_(), N(X, {
|
|
359
365
|
key: 1,
|
|
360
366
|
class: "min-w-[640px]",
|
|
361
|
-
"column-defs":
|
|
362
|
-
"row-data":
|
|
363
|
-
"page-size":
|
|
367
|
+
"column-defs": se,
|
|
368
|
+
"row-data": G.value,
|
|
369
|
+
"page-size": A.value.length + G.value.length,
|
|
364
370
|
loading: L.value,
|
|
365
371
|
"pin-header-row": "",
|
|
366
372
|
"hide-footer": "",
|
|
367
373
|
"shrink-at": !1,
|
|
368
|
-
"expanded-state":
|
|
374
|
+
"expanded-state": B.value,
|
|
369
375
|
"get-sub-row": (o) => o.timesheets,
|
|
370
|
-
"onUpdate:expandedState": e[12] || (e[12] = (o) =>
|
|
371
|
-
onRowClick: e[13] || (e[13] = (o) =>
|
|
376
|
+
"onUpdate:expandedState": e[12] || (e[12] = (o) => B.value = o),
|
|
377
|
+
onRowClick: e[13] || (e[13] = (o) => J(o.original))
|
|
372
378
|
}, null, 8, ["row-data", "page-size", "loading", "expanded-state", "get-sub-row"]))]),
|
|
373
379
|
_: 1
|
|
374
380
|
}))])], 64);
|
|
@@ -376,5 +382,5 @@ const Re = {
|
|
|
376
382
|
}
|
|
377
383
|
});
|
|
378
384
|
export {
|
|
379
|
-
|
|
385
|
+
ut as default
|
|
380
386
|
};
|