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