@feedmepos/mf-hrm-portal 2.2.4 → 2.2.5-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/{ApprovalCodeList-ChGQwko6.js → ApprovalCodeList-DgcWZ3SZ.js} +5 -5
- package/dist/{AuditLogList-Cpj8O5qS.js → AuditLogList-vWKMMGvd.js} +235 -233
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CNmbZlVZ.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DuhXogXK.js} +2 -2
- package/dist/EmployeeList-Cu4RxVQX.js +889 -0
- package/dist/{GrantUserList-CAXJmQ4i.js → GrantUserList-BAW0C1bA.js} +6 -6
- package/dist/{Main-7yT_w5vt.js → Main-B7Nn8CLQ.js} +11 -11
- package/dist/{Main-Ada9K_jO.js → Main-NzpdRNB3.js} +8 -8
- package/dist/{Main-T9-30vq8.js → Main-Wr6cTqfM.js} +5 -5
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-BUI0Xsgc.js +85 -0
- package/dist/{PermissionSetList-CkWYPmT2.js → PermissionSetList-D6AFOleD.js} +7 -7
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CCLLrSyq.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bzq2_BMn.js} +874 -881
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-Z-DH7ouY.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js} +1 -1
- package/dist/{RoleList-Do36AmlU.js → RoleList-BuqpmXn_.js} +9 -9
- package/dist/TeamMemberList-M6HA9BWu.js +1248 -0
- package/dist/{TimesheetList-DboJ2_89.js → TimesheetList-B5FyVyCz.js} +92 -90
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-C4g8wRjv.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C99Jr6Ax.js} +3 -3
- package/dist/{app-CcCcPbyB.js → app-8samJY5z.js} +214 -190
- package/dist/app.js +1 -1
- package/dist/{approval-code-BRClD2HN.js → approval-code-jIjkeVEb.js} +1 -1
- package/dist/{dayjs.min-lvkj1Rwa.js → dayjs.min-Ba4X_9nY.js} +1 -1
- package/dist/employee-BcFgm8Rt.js +204 -0
- package/dist/{grant-user-Dhi3ilC_.js → grant-user-SNiDV22U.js} +1 -1
- package/dist/{iteration-LZbo-knt.js → iteration-Dhdew1jW.js} +1 -1
- package/dist/{lodash-CKzaMa7f.js → lodash-CJ3mHku0.js} +1 -1
- package/dist/{restaurant-DiYb0pCm.js → restaurant-BTpBmfBV.js} +2 -2
- package/dist/{role-BZr8zzeq.js → role-BViYS7RK.js} +2 -2
- package/dist/{rule-DNaqlUUB.js → rule-Dxt1ZSQS.js} +48 -40
- package/dist/src/api/employee/index.d.ts +5 -1
- package/dist/src/api/team/index.d.ts +3 -0
- package/dist/src/components/form/PasscodeGenerateButton.vue.d.ts +15 -0
- package/dist/src/components/form/PasscodePinField.vue.d.ts +18 -0
- package/dist/src/helpers/string.d.ts +2 -1
- package/dist/src/views/audit-log/locales/index.d.ts +4 -0
- package/dist/src/views/hr/locales/index.d.ts +8 -0
- package/dist/src/views/team/locales/index.d.ts +12 -0
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +1 -0
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +9 -0
- package/dist/string-VNuQNweN.js +15 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BGhlB1_1.js → useAppStore-DCwd8GWN.js} +1 -1
- package/dist/{useLoading-CvgqVDbF.js → useLoading-CXzTpIVv.js} +1 -1
- package/dist/{useReportPermissions-Buzv6pkY.js → useReportPermissions-BiyAfGvZ.js} +3 -3
- package/package.json +1 -1
- package/dist/EmployeeList-PdGzSCP-.js +0 -887
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +0 -16
- package/dist/TeamMemberList-CVVNnz0R.js +0 -1216
- package/dist/employee-CLgrXpmZ.js +0 -201
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { ref as d, computed as g, defineComponent as pe, onMounted as fe, watch as Z, resolveComponent as u, createElementBlock as P, openBlock as E, Fragment as ee, createVNode as l, createElementVNode as i, unref as
|
|
2
|
-
import { d as v } from "./dayjs.min-
|
|
1
|
+
import { ref as d, computed as g, defineComponent as pe, onMounted as fe, watch as Z, resolveComponent as u, createElementBlock as P, openBlock as E, Fragment as ee, createVNode as l, createElementVNode as i, unref as n, withCtx as b, createCommentVNode as ve, toDisplayString as O, createTextVNode as he, isRef as ge, renderList as we, createBlock as te, nextTick as ye } from "vue";
|
|
2
|
+
import { d as v } from "./dayjs.min-Ba4X_9nY.js";
|
|
3
3
|
import { useI18n as _e } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as be, components as xe } from "@feedmepos/ui-library";
|
|
5
5
|
import { S as De, _ as Se } from "./SelectFilter-ATOm0hdn.js";
|
|
6
|
-
import { _ as Ve } from "./app-
|
|
6
|
+
import { _ as Ve } from "./app-8samJY5z.js";
|
|
7
7
|
import { _ as ke } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
8
|
-
import { u as Ce } from "./useLoading-
|
|
9
|
-
import { g as Fe, s as Ye } from "./iteration-
|
|
8
|
+
import { u as Ce } from "./useLoading-CXzTpIVv.js";
|
|
9
|
+
import { g as Fe, s as Ye } from "./iteration-Dhdew1jW.js";
|
|
10
10
|
import { f as Le } from "./utils-BZkjJbju.js";
|
|
11
|
-
import {
|
|
12
|
-
import { u as Te } from "./
|
|
13
|
-
import { u as
|
|
14
|
-
|
|
11
|
+
import { n as Me } from "./string-VNuQNweN.js";
|
|
12
|
+
import { u as Te } from "./employee-BcFgm8Rt.js";
|
|
13
|
+
import { u as Ie } from "./restaurant-BTpBmfBV.js";
|
|
14
|
+
import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C99Jr6Ax.js";
|
|
15
|
+
function $e(x, a) {
|
|
15
16
|
return ["years", "months"].find((S) => {
|
|
16
|
-
const V = x.startOf(S),
|
|
17
|
-
return x.isSame(V, "day") && a.isSame(
|
|
17
|
+
const V = x.startOf(S), p = x.endOf(S);
|
|
18
|
+
return x.isSame(V, "day") && a.isSame(p, "day");
|
|
18
19
|
}) || "days";
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
+
function Ee() {
|
|
21
22
|
const x = {
|
|
22
23
|
startDate: v().format("YYYY-MM-DD"),
|
|
23
24
|
endDate: v().format("YYYY-MM-DD")
|
|
24
25
|
}, a = d(x), D = g(() => {
|
|
25
26
|
if (!a.value) return "No dates selected.";
|
|
26
|
-
const
|
|
27
|
-
return `${
|
|
27
|
+
const p = a.value.startDate ?? "Start", _ = a.value.endDate ?? "End";
|
|
28
|
+
return `${p} - ${_}`;
|
|
28
29
|
}), S = g(() => ({
|
|
29
30
|
startDate: new Date(a.value.startDate),
|
|
30
31
|
endDate: new Date(a.value.endDate)
|
|
31
32
|
}));
|
|
32
|
-
function V(
|
|
33
|
-
const _ = v(a.value.startDate), c = v(a.value.endDate), h =
|
|
33
|
+
function V(p) {
|
|
34
|
+
const _ = v(a.value.startDate), c = v(a.value.endDate), h = $e(_, c), k = h === "days" ? c.diff(_, "days") + 1 : 1, C = p === "subtract" ? (F) => F.subtract(k, h) : (F) => F.add(k, h);
|
|
34
35
|
a.value = {
|
|
35
36
|
startDate: C(_).startOf(h).format("YYYY-MM-DD"),
|
|
36
37
|
endDate: C(c).endOf(h).format("YYYY-MM-DD")
|
|
@@ -38,42 +39,42 @@ function $e() {
|
|
|
38
39
|
}
|
|
39
40
|
return { dateRange: a, parsedDateRange: S, dateRangeLabel: D, setRange: V };
|
|
40
41
|
}
|
|
41
|
-
const
|
|
42
|
+
const Oe = {
|
|
42
43
|
class: "my-16 flex w-[350px] flex-col gap-40"
|
|
43
|
-
}, Oe = {
|
|
44
|
-
class: "flex gap-16"
|
|
45
44
|
}, Ae = {
|
|
46
|
-
class: "flex
|
|
45
|
+
class: "flex gap-16"
|
|
47
46
|
}, Ke = {
|
|
48
|
-
class: "
|
|
47
|
+
class: "flex flex-col gap-4"
|
|
49
48
|
}, ze = {
|
|
50
|
-
class: "fm-typo-body-md-
|
|
49
|
+
class: "fm-typo-body-md-400 text-fm-color-typo-secondary"
|
|
51
50
|
}, Ne = {
|
|
52
|
-
class: "
|
|
51
|
+
class: "fm-typo-body-md-700 text-fm-color-typo-primary"
|
|
53
52
|
}, Ue = {
|
|
54
|
-
class: "
|
|
53
|
+
class: "flex flex-col gap-8"
|
|
55
54
|
}, Be = {
|
|
56
|
-
class: "
|
|
55
|
+
class: "fm-typo-body-xl-700"
|
|
57
56
|
}, Pe = {
|
|
58
|
-
class: "flex flex-col gap-
|
|
57
|
+
class: "flex flex-col gap-24"
|
|
59
58
|
}, je = {
|
|
60
|
-
class: "
|
|
59
|
+
class: "flex flex-col gap-8"
|
|
61
60
|
}, He = {
|
|
62
|
-
class: "
|
|
61
|
+
class: "fm-typo-body-xl-700"
|
|
63
62
|
}, Ge = {
|
|
63
|
+
class: "flex flex-col gap-24"
|
|
64
|
+
}, qe = {
|
|
64
65
|
key: 0,
|
|
65
66
|
class: "fm-typo-body-sm-400 text-fm-color-typo-error mt-1 flex items-center gap-4"
|
|
66
|
-
}, qe = {
|
|
67
|
-
class: "flex items-center justify-start gap-8"
|
|
68
67
|
}, Je = {
|
|
69
|
-
class: "
|
|
68
|
+
class: "flex items-center justify-start gap-8"
|
|
70
69
|
}, Qe = {
|
|
71
|
-
class: "
|
|
70
|
+
class: "space-y-8"
|
|
72
71
|
}, We = {
|
|
73
|
-
class: "flex items-
|
|
72
|
+
class: "flex items-start gap-8 flex-wrap xs:px-16"
|
|
74
73
|
}, Xe = {
|
|
74
|
+
class: "flex items-center gap-8"
|
|
75
|
+
}, Ze = {
|
|
75
76
|
class: "flex h-full flex-col overflow-auto"
|
|
76
|
-
},
|
|
77
|
+
}, et = /* @__PURE__ */ pe({
|
|
77
78
|
__name: "TimesheetList",
|
|
78
79
|
setup(x) {
|
|
79
80
|
const {
|
|
@@ -84,15 +85,15 @@ const Ee = {
|
|
|
84
85
|
}, {
|
|
85
86
|
label: a("hr.timesheet.userView"),
|
|
86
87
|
value: "userView"
|
|
87
|
-
}],
|
|
88
|
+
}], p = d("listView"), _ = g(() => {
|
|
88
89
|
var t;
|
|
89
|
-
return (t = V.find((e) => e.value ===
|
|
90
|
-
}), c = d(""), h = Re(), k =
|
|
90
|
+
return (t = V.find((e) => e.value === p.value)) == null ? void 0 : t.label;
|
|
91
|
+
}), c = d(""), h = Re(), k = Te(), C = Ie(), F = g(() => k.employees.value), j = g(() => h.timesheets.value.filter((s) => !A.value || A.value.includes(s.restaurantId)).map((s) => {
|
|
91
92
|
var y;
|
|
92
|
-
const
|
|
93
|
+
const r = (y = C.restaurants.value.find((f) => f._id === s.restaurantId)) == null ? void 0 : y.profile.code, w = F.value.find((f) => f._id === s.user.id);
|
|
93
94
|
return {
|
|
94
95
|
...s,
|
|
95
|
-
restaurantCode:
|
|
96
|
+
restaurantCode: r,
|
|
96
97
|
user: {
|
|
97
98
|
...s.user,
|
|
98
99
|
code: w ? w.code : ""
|
|
@@ -102,14 +103,14 @@ const Ee = {
|
|
|
102
103
|
var e, s;
|
|
103
104
|
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()));
|
|
104
105
|
})), H = g(() => {
|
|
105
|
-
const t = Fe(j.value, (s) => s.user.name), e = Object.entries(t).map(([s,
|
|
106
|
-
const w = F.value.find((y) => y._id ===
|
|
106
|
+
const t = Fe(j.value, (s) => s.user.name), e = Object.entries(t).map(([s, r]) => {
|
|
107
|
+
const w = F.value.find((y) => y._id === r[0].user.id);
|
|
107
108
|
return {
|
|
108
109
|
key: s,
|
|
109
|
-
user:
|
|
110
|
-
code: w ? w.code :
|
|
111
|
-
timesheets:
|
|
112
|
-
total: Le(
|
|
110
|
+
user: r[0].user.name,
|
|
111
|
+
code: w ? w.code : r[0].user.code || "",
|
|
112
|
+
timesheets: r,
|
|
113
|
+
total: Le(r.reduce((y, f) => y + f.totalMin, 0))
|
|
113
114
|
};
|
|
114
115
|
});
|
|
115
116
|
return Ye(e, {
|
|
@@ -153,7 +154,7 @@ const Ee = {
|
|
|
153
154
|
dateRange: L,
|
|
154
155
|
dateRangeLabel: oe,
|
|
155
156
|
setRange: G
|
|
156
|
-
} =
|
|
157
|
+
} = Ee();
|
|
157
158
|
Z(L, async () => {
|
|
158
159
|
U();
|
|
159
160
|
});
|
|
@@ -208,8 +209,8 @@ const Ee = {
|
|
|
208
209
|
return l("div", {
|
|
209
210
|
class: "flex items-center gap-8"
|
|
210
211
|
}, [l("div", {
|
|
211
|
-
onClick: (
|
|
212
|
-
|
|
212
|
+
onClick: (r) => {
|
|
213
|
+
r.stopPropagation(), t.row.getToggleExpandedHandler()(r);
|
|
213
214
|
}
|
|
214
215
|
}, [l(xe.FmButton, {
|
|
215
216
|
variant: "tertiary",
|
|
@@ -245,96 +246,97 @@ const Ee = {
|
|
|
245
246
|
enableSorting: !1
|
|
246
247
|
}], M = d(!1);
|
|
247
248
|
function q(t) {
|
|
248
|
-
|
|
249
|
+
m.value = t, T.value = v(m.value.startedAt).format("YYYY-MM-DD"), R.value = v(m.value.endedAt || m.value.startedAt).format("YYYY-MM-DD"), I.value = v(m.value.startedAt).format("HH:mm"), $.value = v(m.value.endedAt || m.value.startedAt).format("HH:mm"), M.value = !0;
|
|
249
250
|
}
|
|
250
|
-
const T = d(),
|
|
251
|
-
async function
|
|
252
|
-
const t = J(T.value,
|
|
251
|
+
const T = d(), I = d(), R = d(), $ = d(), m = d(), K = d("");
|
|
252
|
+
async function ne() {
|
|
253
|
+
const t = J(T.value, I.value), e = J(R.value, $.value);
|
|
253
254
|
if (v(t).isAfter(e)) {
|
|
254
255
|
K.value = a("hr.timesheet.checkOutMustBeforeCheckIn");
|
|
255
256
|
return;
|
|
256
257
|
}
|
|
257
258
|
S.minor(async () => {
|
|
258
|
-
await h.updateTimesheet(
|
|
259
|
+
await h.updateTimesheet(m.value, t, e);
|
|
259
260
|
}, {
|
|
260
261
|
successMessage: a("hr.timesheet.update.successMessage")
|
|
261
262
|
}), U(), M.value = !1;
|
|
262
263
|
}
|
|
263
264
|
const J = (t, e) => v(t).set("h", parseInt(e.split(":")[0])).set("m", parseInt(e.split(":")[1])).toISOString();
|
|
264
|
-
return Z([T,
|
|
265
|
-
(t || e || s ||
|
|
265
|
+
return Z([T, R, I, $], ([t, e, s, r]) => {
|
|
266
|
+
(t || e || s || r) && (K.value = "");
|
|
266
267
|
}), (t, e) => {
|
|
267
|
-
const s = u("FmAvatar"),
|
|
268
|
-
return E(), P(ee, null, [l(
|
|
268
|
+
const s = u("FmAvatar"), r = u("FmDatePicker"), w = u("FmTimePicker"), y = u("FmIcon"), f = u("FmButton"), re = u("FmSideSheet"), Q = u("FmChip"), ie = u("FmDateRangePicker"), ue = u("FmMenuItem"), de = u("FmMenu"), ce = u("FmSpacer"), me = u("FmSearch"), W = u("FmTable");
|
|
269
|
+
return E(), P(ee, null, [l(re, {
|
|
269
270
|
modelValue: M.value,
|
|
270
271
|
"onUpdate:modelValue": e[5] || (e[5] = (o) => M.value = o),
|
|
271
272
|
"dismiss-away": "",
|
|
272
|
-
header:
|
|
273
|
+
header: n(a)("hr.timesheet.update.title")
|
|
273
274
|
}, {
|
|
274
|
-
"side-sheet-footer": b(() => [i("div",
|
|
275
|
-
label:
|
|
275
|
+
"side-sheet-footer": b(() => [i("div", Je, [l(f, {
|
|
276
|
+
label: n(a)("common.update"),
|
|
276
277
|
size: "md",
|
|
277
278
|
variant: "primary",
|
|
278
|
-
onClick:
|
|
279
|
+
onClick: ne
|
|
279
280
|
}, null, 8, ["label"]), l(f, {
|
|
280
|
-
label:
|
|
281
|
+
label: n(a)("common.cancel"),
|
|
281
282
|
size: "md",
|
|
282
283
|
variant: "secondary",
|
|
283
284
|
onClick: e[4] || (e[4] = (o) => M.value = !1)
|
|
284
285
|
}, null, 8, ["label"])])]),
|
|
285
|
-
default: b(() => [i("div",
|
|
286
|
-
name:
|
|
286
|
+
default: b(() => [i("div", Oe, [i("div", Ae, [l(s, {
|
|
287
|
+
name: m.value.user.name,
|
|
288
|
+
initials: n(Me)(m.value.user.name),
|
|
287
289
|
size: "lg"
|
|
288
|
-
}, null, 8, ["name"]), i("div",
|
|
290
|
+
}, null, 8, ["name", "initials"]), i("div", Ke, [i("div", ze, O(n(a)("hr.timesheet.employeeName")), 1), i("div", Ne, O(m.value.user.name), 1)])]), i("div", Ue, [i("div", Be, O(n(a)("hr.timesheet.update.checkIn")), 1), i("div", Pe, [l(r, {
|
|
289
291
|
modelValue: T.value,
|
|
290
292
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => T.value = o),
|
|
291
293
|
disabled: !1,
|
|
292
|
-
label:
|
|
294
|
+
label: n(a)("hr.timesheet.update.date")
|
|
293
295
|
}, null, 8, ["modelValue", "label"]), l(w, {
|
|
294
|
-
modelValue: R.value,
|
|
295
|
-
"onUpdate:modelValue": e[1] || (e[1] = (o) => R.value = o),
|
|
296
|
-
label: r(a)("hr.timesheet.update.time")
|
|
297
|
-
}, null, 8, ["modelValue", "label"])])]), i("div", Pe, [i("div", je, O(r(a)("hr.timesheet.update.checkOut")), 1), i("div", He, [l(n, {
|
|
298
296
|
modelValue: I.value,
|
|
299
|
-
"onUpdate:modelValue": e[
|
|
297
|
+
"onUpdate:modelValue": e[1] || (e[1] = (o) => I.value = o),
|
|
298
|
+
label: n(a)("hr.timesheet.update.time")
|
|
299
|
+
}, null, 8, ["modelValue", "label"])])]), i("div", je, [i("div", He, O(n(a)("hr.timesheet.update.checkOut")), 1), i("div", Ge, [l(r, {
|
|
300
|
+
modelValue: R.value,
|
|
301
|
+
"onUpdate:modelValue": e[2] || (e[2] = (o) => R.value = o),
|
|
300
302
|
disabled: !1,
|
|
301
|
-
label:
|
|
303
|
+
label: n(a)("hr.timesheet.update.date")
|
|
302
304
|
}, null, 8, ["modelValue", "label"]), l(w, {
|
|
303
305
|
modelValue: $.value,
|
|
304
306
|
"onUpdate:modelValue": e[3] || (e[3] = (o) => $.value = o),
|
|
305
|
-
label:
|
|
306
|
-
}, null, 8, ["modelValue", "label"])])]), K.value ? (E(), P("div",
|
|
307
|
+
label: n(a)("hr.timesheet.update.time")
|
|
308
|
+
}, null, 8, ["modelValue", "label"])])]), K.value ? (E(), P("div", qe, [l(y, {
|
|
307
309
|
color: "#FF3B30",
|
|
308
310
|
name: "error",
|
|
309
311
|
size: "sm"
|
|
310
312
|
}), he(" " + O(K.value), 1)])) : ve("", !0)])]),
|
|
311
313
|
_: 1
|
|
312
|
-
}, 8, ["modelValue", "header"]), i("div",
|
|
314
|
+
}, 8, ["modelValue", "header"]), i("div", Qe, [i("div", We, [l(De, {
|
|
313
315
|
modelValue: A.value,
|
|
314
316
|
"onUpdate:modelValue": e[6] || (e[6] = (o) => A.value = o),
|
|
315
317
|
multiple: "",
|
|
316
318
|
items: ae.value,
|
|
317
319
|
variant: "dark",
|
|
318
|
-
"selected-prefix":
|
|
319
|
-
placeholder:
|
|
320
|
+
"selected-prefix": n(a)("hr.role.columns.restaurants"),
|
|
321
|
+
placeholder: n(a)("hr.role.columns.restaurants"),
|
|
320
322
|
class: "!w-auto pt-[3px]"
|
|
321
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), i("div",
|
|
322
|
-
modelValue:
|
|
323
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), i("div", Xe, [l(ie, {
|
|
324
|
+
modelValue: n(L),
|
|
323
325
|
"onUpdate:modelValue": e[7] || (e[7] = (o) => ge(L) ? L.value = o : null),
|
|
324
326
|
"show-predefined-range": ""
|
|
325
327
|
}, {
|
|
326
328
|
"trigger-button": b(() => [l(Q, {
|
|
327
|
-
label:
|
|
329
|
+
label: n(oe)
|
|
328
330
|
}, null, 8, ["label"])]),
|
|
329
331
|
_: 1
|
|
330
332
|
}, 8, ["modelValue"]), l(f, {
|
|
331
333
|
icon: "chevron_left",
|
|
332
334
|
variant: "tertiary",
|
|
333
|
-
onClick: e[8] || (e[8] = (o) =>
|
|
335
|
+
onClick: e[8] || (e[8] = (o) => n(G)("subtract"))
|
|
334
336
|
}), l(f, {
|
|
335
337
|
icon: "chevron_right",
|
|
336
338
|
variant: "tertiary",
|
|
337
|
-
onClick: e[9] || (e[9] = (o) =>
|
|
339
|
+
onClick: e[9] || (e[9] = (o) => n(G)("add"))
|
|
338
340
|
})]), l(de, {
|
|
339
341
|
class: "pt-[3px]"
|
|
340
342
|
}, {
|
|
@@ -345,25 +347,25 @@ const Ee = {
|
|
|
345
347
|
default: b(() => [(E(), P(ee, null, we(V, (o) => l(ue, {
|
|
346
348
|
key: o.value,
|
|
347
349
|
label: o.label,
|
|
348
|
-
onClick: (X) =>
|
|
350
|
+
onClick: (X) => p.value = o.value
|
|
349
351
|
}, null, 8, ["label", "onClick"])), 64))]),
|
|
350
352
|
_: 1
|
|
351
353
|
}), l(ce), l(me, {
|
|
352
354
|
modelValue: c.value,
|
|
353
355
|
"onUpdate:modelValue": e[10] || (e[10] = (o) => c.value = o),
|
|
354
356
|
class: "w-[320px]",
|
|
355
|
-
placeholder:
|
|
357
|
+
placeholder: n(a)("hr.timesheet.search.placeholder")
|
|
356
358
|
}, null, 8, ["modelValue", "placeholder"])]), l(Ve, {
|
|
357
359
|
class: "w-full xs:px-16"
|
|
358
360
|
}, {
|
|
359
|
-
default: b(() => [i("div",
|
|
361
|
+
default: b(() => [i("div", Ze, [l(ke, {
|
|
360
362
|
"is-loading": Y.value,
|
|
361
|
-
"is-empty":
|
|
363
|
+
"is-empty": p.value === "listView" ? z.value.length === 0 : N.value.length === 0,
|
|
362
364
|
"collapse-at": !1,
|
|
363
|
-
title:
|
|
365
|
+
title: n(a)("hr.timesheet.noData.title"),
|
|
364
366
|
subtitle: ""
|
|
365
367
|
}, {
|
|
366
|
-
default: b(() => [
|
|
368
|
+
default: b(() => [p.value === "listView" ? (E(), te(W, {
|
|
367
369
|
key: 0,
|
|
368
370
|
class: "min-w-[640px]",
|
|
369
371
|
"column-defs": se,
|
|
@@ -394,7 +396,7 @@ const Ee = {
|
|
|
394
396
|
})])], 64);
|
|
395
397
|
};
|
|
396
398
|
}
|
|
397
|
-
}),
|
|
399
|
+
}), vt = /* @__PURE__ */ Se(et, [["__scopeId", "data-v-63294af2"]]);
|
|
398
400
|
export {
|
|
399
|
-
|
|
401
|
+
vt as default
|
|
400
402
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as i } from "./dayjs.min-
|
|
1
|
+
import { d as i } from "./dayjs.min-Ba4X_9nY.js";
|
|
2
2
|
import { defineStore as p, storeToRefs as T } from "pinia";
|
|
3
3
|
import { ref as l } from "vue";
|
|
4
|
-
import { b as c, g as y } from "./restaurant-
|
|
5
|
-
import { s as S } from "./iteration-
|
|
4
|
+
import { b as c, g as y } from "./restaurant-BTpBmfBV.js";
|
|
5
|
+
import { s as S } from "./iteration-Dhdew1jW.js";
|
|
6
6
|
import { i as f, f as g } from "./utils-BZkjJbju.js";
|
|
7
7
|
const u = {
|
|
8
8
|
async readTimesheets(t, e) {
|