@feedmepos/mf-hrm-portal 2.0.19 → 2.0.20-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-ChxAzO74.js +1037 -0
- package/dist/CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js +58 -0
- package/dist/EmployeeList-Cs-Mn6UA.js +843 -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-BPM7QyFL.js → Main-B9_TyRDo.js} +2009 -2005
- package/dist/Main-CdHW4UkN.js +90 -0
- package/dist/Main-DcvmP7s-.js +574 -0
- package/dist/PermissionSetList-VFVS0g0v.js +347 -0
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Dr3R9JjS.js +3444 -0
- package/dist/RoleList-BZ6RZvm2.js +556 -0
- package/dist/TeamMemberList-C-zhFauD.js +1115 -0
- package/dist/{TimesheetList-CdWXksIf.js → TimesheetList-CZex54an.js} +129 -115
- package/dist/{app-D6OxaCEx.js → app-CLL3p27X.js} +699 -653
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-C0I-OiL6.js → dayjs.min-CDt1i9vl.js} +1 -1
- package/dist/employee-BpRvjWNh.js +200 -0
- package/dist/{iteration-CcZFMm5X.js → iteration-BVjUzYL5.js} +9314 -9272
- package/dist/{lodash-CW7MBjcM.js → lodash-CrwgACp2.js} +1 -1
- package/dist/{rule-6Lg9M_3I.js → rule-BlQ5YZ9Z.js} +274 -275
- package/dist/src/api/audit-log/index.d.ts +9 -0
- package/dist/src/api/index.d.ts +0 -1
- 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 +2 -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/src/views/team/member/TeamMemberMasterUser.vue.d.ts +3 -3
- package/dist/style.css +1 -1
- package/dist/{timesheet-CaSIm-Rv.js → timesheet-jFs4GTAL.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/useAppStore-DMAL8VFY.js +169 -0
- package/dist/useDebounce-CWb5QR9G.js +28 -0
- package/dist/useDiscardConfirm-DPhEV6v0.js +157 -0
- package/dist/{useLoading-cnpr1-pP.js → useLoading-AFTjRLyO.js} +1 -1
- package/dist/{useReportPermissions-CNr0AdOf.js → useReportPermissions-hODG0Xx3.js} +3 -3
- package/package.json +1 -1
- package/dist/AuditLogList-Bw3sRBhW.js +0 -980
- package/dist/EmployeeList-C4tVWPJE.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-BC20s7cs.js +0 -560
- package/dist/Main-eN8MDWpv.js +0 -85
- package/dist/PermissionSetList-CPSRrCsu.js +0 -341
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CXt721Zo.js +0 -3480
- package/dist/RoleList-tRu19xyl.js +0 -530
- package/dist/TeamMemberList-CvitYIKw.js +0 -1114
- package/dist/TeamMemberList.vue_vue_type_style_index_0_scoped_473cbd86_lang-BDjrD45a.js +0 -34
- package/dist/employee-yT17VCCS.js +0 -204
- package/dist/src/api/account/index.d.ts +0 -4
- package/dist/src/composables/useSupportedCountries.d.ts +0 -5
- package/dist/useAppStore-CONZvtGc.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,42 +1,43 @@
|
|
|
1
|
-
import { ref as d, computed as
|
|
2
|
-
import { d as v } from "./dayjs.min-
|
|
3
|
-
import { useI18n as
|
|
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 Y, createCommentVNode as ve, toDisplayString as O, createTextVNode as fe, createBlock as N, isRef as he, renderList as ge, nextTick as ye } from "vue";
|
|
2
|
+
import { d as v } from "./dayjs.min-CDt1i9vl.js";
|
|
3
|
+
import { useI18n as we } 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-CLL3p27X.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
|
|
8
|
+
import { u as ke } from "./useLoading-AFTjRLyO.js";
|
|
9
|
+
import { u as Ve, c as Ce, s as Fe } from "./iteration-BVjUzYL5.js";
|
|
10
|
+
import { f as Ye } from "./utils-BZkjJbju.js";
|
|
11
|
+
import { u as Le } from "./employee-BpRvjWNh.js";
|
|
12
|
+
import { u as Me } from "./timesheet-jFs4GTAL.js";
|
|
13
|
+
function Te(x, a) {
|
|
13
14
|
return ["years", "months"].find((S) => {
|
|
14
15
|
const k = x.startOf(S), f = x.endOf(S);
|
|
15
16
|
return x.isSame(k, "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), D = g(() => {
|
|
23
24
|
if (!a.value) return "No dates selected.";
|
|
24
|
-
const f = a.value.startDate ?? "Start",
|
|
25
|
-
return `${f} - ${
|
|
26
|
-
}), S =
|
|
25
|
+
const f = a.value.startDate ?? "Start", b = a.value.endDate ?? "End";
|
|
26
|
+
return `${f} - ${b}`;
|
|
27
|
+
}), S = g(() => ({
|
|
27
28
|
startDate: new Date(a.value.startDate),
|
|
28
29
|
endDate: new Date(a.value.endDate)
|
|
29
30
|
}));
|
|
30
31
|
function k(f) {
|
|
31
|
-
const
|
|
32
|
+
const b = v(a.value.startDate), c = v(a.value.endDate), h = Te(b, c), V = h === "days" ? c.diff(b, "days") + 1 : 1, C = f === "subtract" ? (F) => F.subtract(V, h) : (F) => F.add(V, h);
|
|
32
33
|
a.value = {
|
|
33
|
-
startDate:
|
|
34
|
-
endDate:
|
|
34
|
+
startDate: C(b).startOf(h).format("YYYY-MM-DD"),
|
|
35
|
+
endDate: C(c).endOf(h).format("YYYY-MM-DD")
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
|
-
return { dateRange: a, parsedDateRange: S, dateRangeLabel:
|
|
38
|
+
return { dateRange: a, parsedDateRange: S, dateRangeLabel: D, setRange: k };
|
|
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"
|
|
@@ -44,48 +45,48 @@ const Re = {
|
|
|
44
45
|
class: "flex flex-col gap-4"
|
|
45
46
|
}, Oe = {
|
|
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
|
-
} =
|
|
78
|
+
} = we(), D = be(), S = ke(D), k = [{
|
|
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
86
|
return (t = k.find((e) => e.value === f.value)) == null ? void 0 : t.label;
|
|
86
|
-
}), c = d(""), h = Le(), C =
|
|
87
|
+
}), c = d(""), h = Me(), V = Le(), C = Ve(), F = g(() => V.employees.value), A = g(() => h.timesheets.value.filter((s) => !K.value || K.value.includes(s.restaurantId)).map((s) => {
|
|
87
88
|
var w;
|
|
88
|
-
const r = (w =
|
|
89
|
+
const r = (w = C.restaurants.value.find((p) => p._id === s.restaurantId)) == null ? void 0 : w.profile.code, y = F.value.find((p) => p._id === s.user.id);
|
|
89
90
|
return {
|
|
90
91
|
...s,
|
|
91
92
|
restaurantCode: r,
|
|
@@ -94,36 +95,36 @@ const Re = {
|
|
|
94
95
|
code: y ? y.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 y =
|
|
101
|
+
})), H = g(() => {
|
|
102
|
+
const t = Ce(A.value, (s) => s.user.name), e = Object.entries(t).map(([s, r]) => {
|
|
103
|
+
const y = F.value.find((w) => w._id === r[0].user.id);
|
|
103
104
|
return {
|
|
104
105
|
key: s,
|
|
105
106
|
user: r[0].user.name,
|
|
106
107
|
code: y ? y.code : "",
|
|
107
108
|
timesheets: r,
|
|
108
|
-
total:
|
|
109
|
+
total: Ye(r.reduce((w, p) => w + 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 ye(), B.value = Object.fromEntries(Object.entries(new Array(H.value.length).fill(!0)));
|
|
125
126
|
} catch (s) {
|
|
126
|
-
|
|
127
|
+
D.open({
|
|
127
128
|
title: s instanceof Error ? s.message : `${s}`,
|
|
128
129
|
type: "error"
|
|
129
130
|
});
|
|
@@ -131,18 +132,29 @@ const Re = {
|
|
|
131
132
|
L.value = !1;
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
pe(async () => {
|
|
136
|
+
try {
|
|
137
|
+
await C.readRestaurants(), V.employees.value.length === 0 && await V.readEmployees();
|
|
138
|
+
} catch (t) {
|
|
139
|
+
console.error("Failed to load timesheet dependencies:", t), D.open({
|
|
140
|
+
message: t instanceof Error ? t.message : String(t),
|
|
141
|
+
type: "error"
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
U();
|
|
136
145
|
});
|
|
137
|
-
const
|
|
146
|
+
const K = d(), te = g(() => C.restaurants.value.filter((t) => t.managable).map((t) => ({
|
|
147
|
+
label: `${t.profile.code ? `${t.profile.code} - ` : ""}${t.profile.name}`,
|
|
148
|
+
value: t._id
|
|
149
|
+
}))), {
|
|
138
150
|
dateRange: M,
|
|
139
|
-
dateRangeLabel:
|
|
140
|
-
setRange:
|
|
141
|
-
} =
|
|
142
|
-
|
|
143
|
-
|
|
151
|
+
dateRangeLabel: ae,
|
|
152
|
+
setRange: q
|
|
153
|
+
} = Re();
|
|
154
|
+
Z(M, async () => {
|
|
155
|
+
U();
|
|
144
156
|
});
|
|
145
|
-
const
|
|
157
|
+
const oe = [{
|
|
146
158
|
accessorKey: "user.code",
|
|
147
159
|
size: 100,
|
|
148
160
|
header: () => a("hr.employee.columns.code"),
|
|
@@ -177,7 +189,7 @@ const Re = {
|
|
|
177
189
|
header: () => a("hr.timesheet.columns.duration"),
|
|
178
190
|
cell: (t) => t.row.original.duration || "--",
|
|
179
191
|
enableSorting: !0
|
|
180
|
-
}],
|
|
192
|
+
}], B = d({}), se = [{
|
|
181
193
|
accessorKey: "code",
|
|
182
194
|
size: 100,
|
|
183
195
|
header: () => a("hr.employee.columns.code"),
|
|
@@ -196,7 +208,7 @@ const Re = {
|
|
|
196
208
|
onClick: (r) => {
|
|
197
209
|
r.stopPropagation(), t.row.getToggleExpandedHandler()(r);
|
|
198
210
|
}
|
|
199
|
-
}, [l(
|
|
211
|
+
}, [l(_e.FmButton, {
|
|
200
212
|
variant: "tertiary",
|
|
201
213
|
icon: s ? "keyboard_arrow_up" : "keyboard_arrow_down"
|
|
202
214
|
}, null)]), e.user]);
|
|
@@ -229,146 +241,148 @@ const Re = {
|
|
|
229
241
|
},
|
|
230
242
|
enableSorting: !1
|
|
231
243
|
}], T = d(!1);
|
|
232
|
-
function
|
|
233
|
-
m.value = t, R.value = v(m.value.startedAt).format("YYYY-MM-DD"),
|
|
244
|
+
function J(t) {
|
|
245
|
+
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"), E.value = v(m.value.endedAt || m.value.startedAt).format("HH:mm"), T.value = !0;
|
|
234
246
|
}
|
|
235
|
-
const R = d(),
|
|
236
|
-
async function
|
|
237
|
-
const t =
|
|
247
|
+
const R = d(), $ = d(), I = d(), E = d(), m = d(), z = d("");
|
|
248
|
+
async function le() {
|
|
249
|
+
const t = Q(R.value, $.value), e = Q(I.value, E.value);
|
|
238
250
|
if (v(t).isAfter(e)) {
|
|
239
|
-
|
|
251
|
+
z.value = a("hr.timesheet.checkOutMustBeforeCheckIn");
|
|
240
252
|
return;
|
|
241
253
|
}
|
|
242
254
|
S.minor(async () => {
|
|
243
255
|
await h.updateTimesheet(m.value, t, e);
|
|
244
256
|
}, {
|
|
245
257
|
successMessage: a("hr.timesheet.update.successMessage")
|
|
246
|
-
}),
|
|
258
|
+
}), U(), T.value = !1;
|
|
247
259
|
}
|
|
248
|
-
const
|
|
249
|
-
return
|
|
250
|
-
(t || e || s || r) && (
|
|
260
|
+
const Q = (t, e) => v(t).set("h", parseInt(e.split(":")[0])).set("m", parseInt(e.split(":")[1])).toISOString();
|
|
261
|
+
return Z([R, I, $, E], ([t, e, s, r]) => {
|
|
262
|
+
(t || e || s || r) && (z.value = "");
|
|
251
263
|
}), (t, e) => {
|
|
252
|
-
const s = u("FmAvatar"), r = u("FmDatePicker"), y = u("FmTimePicker"), w = u("FmIcon"), p = u("FmButton"),
|
|
253
|
-
return
|
|
264
|
+
const s = u("FmAvatar"), r = u("FmDatePicker"), y = u("FmTimePicker"), w = 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");
|
|
265
|
+
return _(), P(ee, null, [l(ne, {
|
|
254
266
|
modelValue: T.value,
|
|
255
267
|
"onUpdate:modelValue": e[5] || (e[5] = (o) => T.value = o),
|
|
256
268
|
"dismiss-away": "",
|
|
257
269
|
header: n(a)("hr.timesheet.update.title")
|
|
258
270
|
}, {
|
|
259
|
-
"side-sheet-footer":
|
|
271
|
+
"side-sheet-footer": Y(() => [i("div", He, [l(p, {
|
|
260
272
|
label: n(a)("common.update"),
|
|
261
273
|
size: "md",
|
|
262
274
|
variant: "primary",
|
|
263
|
-
onClick:
|
|
275
|
+
onClick: le
|
|
264
276
|
}, null, 8, ["label"]), l(p, {
|
|
265
277
|
label: n(a)("common.cancel"),
|
|
266
278
|
size: "md",
|
|
267
279
|
variant: "secondary",
|
|
268
280
|
onClick: e[4] || (e[4] = (o) => T.value = !1)
|
|
269
281
|
}, null, 8, ["label"])])]),
|
|
270
|
-
default:
|
|
282
|
+
default: Y(() => [i("div", $e, [i("div", Ie, [l(s, {
|
|
271
283
|
initials: m.value.user.name,
|
|
272
284
|
size: "lg"
|
|
273
|
-
}, null, 8, ["initials"]), i("div", Ee, [i("div", Oe,
|
|
285
|
+
}, null, 8, ["initials"]), i("div", Ee, [i("div", Oe, O(n(a)("hr.timesheet.employeeName")), 1), i("div", Ae, O(m.value.user.name), 1)])]), i("div", Ke, [i("div", ze, O(n(a)("hr.timesheet.update.checkIn")), 1), i("div", Ne, [l(r, {
|
|
274
286
|
modelValue: R.value,
|
|
275
287
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => R.value = o),
|
|
276
288
|
disabled: !1,
|
|
277
289
|
label: n(a)("hr.timesheet.update.date")
|
|
278
290
|
}, null, 8, ["modelValue", "label"]), l(y, {
|
|
279
|
-
modelValue:
|
|
280
|
-
"onUpdate:modelValue": e[1] || (e[1] = (o) =>
|
|
291
|
+
modelValue: $.value,
|
|
292
|
+
"onUpdate:modelValue": e[1] || (e[1] = (o) => $.value = o),
|
|
281
293
|
label: n(a)("hr.timesheet.update.time")
|
|
282
|
-
}, null, 8, ["modelValue", "label"])])]), i("div",
|
|
283
|
-
modelValue:
|
|
284
|
-
"onUpdate:modelValue": e[2] || (e[2] = (o) =>
|
|
294
|
+
}, null, 8, ["modelValue", "label"])])]), i("div", Ue, [i("div", Be, O(n(a)("hr.timesheet.update.checkOut")), 1), i("div", Pe, [l(r, {
|
|
295
|
+
modelValue: I.value,
|
|
296
|
+
"onUpdate:modelValue": e[2] || (e[2] = (o) => I.value = o),
|
|
285
297
|
disabled: !1,
|
|
286
298
|
label: n(a)("hr.timesheet.update.date")
|
|
287
299
|
}, null, 8, ["modelValue", "label"]), l(y, {
|
|
288
|
-
modelValue:
|
|
289
|
-
"onUpdate:modelValue": e[3] || (e[3] = (o) =>
|
|
300
|
+
modelValue: E.value,
|
|
301
|
+
"onUpdate:modelValue": e[3] || (e[3] = (o) => E.value = o),
|
|
290
302
|
label: n(a)("hr.timesheet.update.time")
|
|
291
|
-
}, null, 8, ["modelValue", "label"])])]),
|
|
303
|
+
}, null, 8, ["modelValue", "label"])])]), z.value ? (_(), P("div", je, [l(w, {
|
|
292
304
|
color: "#FF3B30",
|
|
293
305
|
name: "error",
|
|
294
306
|
size: "sm"
|
|
295
|
-
}),
|
|
307
|
+
}), fe(" " + O(z.value), 1)])) : ve("", !0)])]),
|
|
296
308
|
_: 1
|
|
297
|
-
}, 8, ["modelValue", "header"]), i("div",
|
|
298
|
-
modelValue:
|
|
299
|
-
"onUpdate:modelValue": e[6] || (e[6] = (o) =>
|
|
300
|
-
"managable-only": "",
|
|
309
|
+
}, 8, ["modelValue", "header"]), i("div", Ge, [i("div", qe, [l(xe, {
|
|
310
|
+
modelValue: K.value,
|
|
311
|
+
"onUpdate:modelValue": e[6] || (e[6] = (o) => K.value = o),
|
|
301
312
|
multiple: "",
|
|
313
|
+
items: te.value,
|
|
302
314
|
variant: "dark",
|
|
315
|
+
"selected-prefix": n(a)("hr.role.columns.restaurants"),
|
|
316
|
+
placeholder: n(a)("hr.role.columns.restaurants"),
|
|
303
317
|
class: "!w-auto pt-[3px]"
|
|
304
|
-
}, null, 8, ["modelValue"]), i("div",
|
|
318
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), i("div", Je, [l(re, {
|
|
305
319
|
modelValue: n(M),
|
|
306
|
-
"onUpdate:modelValue": e[7] || (e[7] = (o) =>
|
|
320
|
+
"onUpdate:modelValue": e[7] || (e[7] = (o) => he(M) ? M.value = o : null),
|
|
307
321
|
"show-predefined-range": ""
|
|
308
322
|
}, {
|
|
309
|
-
"trigger-button":
|
|
310
|
-
label: n(
|
|
323
|
+
"trigger-button": Y(() => [l(W, {
|
|
324
|
+
label: n(ae)
|
|
311
325
|
}, null, 8, ["label"])]),
|
|
312
326
|
_: 1
|
|
313
327
|
}, 8, ["modelValue"]), l(p, {
|
|
314
328
|
icon: "chevron_left",
|
|
315
329
|
variant: "tertiary",
|
|
316
|
-
onClick: e[8] || (e[8] = (o) => n(
|
|
330
|
+
onClick: e[8] || (e[8] = (o) => n(q)("subtract"))
|
|
317
331
|
}), l(p, {
|
|
318
332
|
icon: "chevron_right",
|
|
319
333
|
variant: "tertiary",
|
|
320
|
-
onClick: e[9] || (e[9] = (o) => n(
|
|
321
|
-
})]), l(
|
|
334
|
+
onClick: e[9] || (e[9] = (o) => n(q)("add"))
|
|
335
|
+
})]), l(ue, {
|
|
322
336
|
class: "pt-[3px]"
|
|
323
337
|
}, {
|
|
324
|
-
"menu-button":
|
|
325
|
-
label:
|
|
338
|
+
"menu-button": Y(() => [l(W, {
|
|
339
|
+
label: b.value,
|
|
326
340
|
"right-icon": "keyboard_arrow_down"
|
|
327
341
|
}, null, 8, ["label"])]),
|
|
328
|
-
default:
|
|
342
|
+
default: Y(() => [(_(), P(ee, null, ge(k, (o) => l(ie, {
|
|
329
343
|
key: o.value,
|
|
330
344
|
label: o.label,
|
|
331
|
-
onClick: (
|
|
345
|
+
onClick: (Qe) => f.value = o.value
|
|
332
346
|
}, null, 8, ["label", "onClick"])), 64))]),
|
|
333
347
|
_: 1
|
|
334
|
-
}), l(
|
|
348
|
+
}), l(de), l(ce, {
|
|
335
349
|
modelValue: c.value,
|
|
336
350
|
"onUpdate:modelValue": e[10] || (e[10] = (o) => c.value = o),
|
|
337
351
|
class: "w-[320px]",
|
|
338
352
|
placeholder: n(a)("hr.timesheet.search.placeholder")
|
|
339
|
-
}, null, 8, ["modelValue", "placeholder"])]),
|
|
353
|
+
}, null, 8, ["modelValue", "placeholder"])]), A.value.length === 0 && !L.value ? (_(), N(n(Se), {
|
|
340
354
|
key: 0,
|
|
341
355
|
title: n(a)("hr.timesheet.noData.title"),
|
|
342
356
|
subtitle: ""
|
|
343
|
-
}, null, 8, ["title"])) : (
|
|
357
|
+
}, null, 8, ["title"])) : (_(), N(De, {
|
|
344
358
|
key: 1,
|
|
345
359
|
class: "w-full xs:px-16 overflow-auto"
|
|
346
360
|
}, {
|
|
347
|
-
default:
|
|
361
|
+
default: Y(() => [f.value === "listView" ? (_(), N(X, {
|
|
348
362
|
key: 0,
|
|
349
363
|
class: "min-w-[640px]",
|
|
350
|
-
"column-defs":
|
|
351
|
-
"row-data":
|
|
352
|
-
"page-size":
|
|
364
|
+
"column-defs": oe,
|
|
365
|
+
"row-data": j.value,
|
|
366
|
+
"page-size": j.value.length,
|
|
353
367
|
loading: L.value,
|
|
354
368
|
"pin-header-row": "",
|
|
355
369
|
"hide-footer": "",
|
|
356
370
|
"shrink-at": !1,
|
|
357
|
-
onRowClick: e[11] || (e[11] = (o) =>
|
|
358
|
-
}, null, 8, ["row-data", "page-size", "loading"])) : (
|
|
371
|
+
onRowClick: e[11] || (e[11] = (o) => J(o.original))
|
|
372
|
+
}, null, 8, ["row-data", "page-size", "loading"])) : (_(), N(X, {
|
|
359
373
|
key: 1,
|
|
360
374
|
class: "min-w-[640px]",
|
|
361
|
-
"column-defs":
|
|
362
|
-
"row-data":
|
|
363
|
-
"page-size":
|
|
375
|
+
"column-defs": se,
|
|
376
|
+
"row-data": G.value,
|
|
377
|
+
"page-size": A.value.length + G.value.length,
|
|
364
378
|
loading: L.value,
|
|
365
379
|
"pin-header-row": "",
|
|
366
380
|
"hide-footer": "",
|
|
367
381
|
"shrink-at": !1,
|
|
368
|
-
"expanded-state":
|
|
382
|
+
"expanded-state": B.value,
|
|
369
383
|
"get-sub-row": (o) => o.timesheets,
|
|
370
|
-
"onUpdate:expandedState": e[12] || (e[12] = (o) =>
|
|
371
|
-
onRowClick: e[13] || (e[13] = (o) =>
|
|
384
|
+
"onUpdate:expandedState": e[12] || (e[12] = (o) => B.value = o),
|
|
385
|
+
onRowClick: e[13] || (e[13] = (o) => J(o.original))
|
|
372
386
|
}, null, 8, ["row-data", "page-size", "loading", "expanded-state", "get-sub-row"]))]),
|
|
373
387
|
_: 1
|
|
374
388
|
}))])], 64);
|
|
@@ -376,5 +390,5 @@ const Re = {
|
|
|
376
390
|
}
|
|
377
391
|
});
|
|
378
392
|
export {
|
|
379
|
-
|
|
393
|
+
ut as default
|
|
380
394
|
};
|