@feedmepos/mf-hrm-portal 2.0.21 → 2.0.22
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-COhT1PFG.js → AuditLogList-DE6rCmIF.js} +4 -4
- package/dist/{EmployeeList-CBfr6g9t.js → EmployeeList-Bo2kxYfU.js} +6 -6
- package/dist/{Main-D1dN1FTE.js → Main--J60Ewhg.js} +9 -9
- package/dist/{Main-BEfbP-bs.js → Main-Jr4wJkSF.js} +6 -6
- package/dist/{Main-gByKBqZC.js → Main-o7e2diY4.js} +4 -4
- package/dist/{PermissionSetList-CHLm6ueB.js → PermissionSetList-Dqgg3uI_.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BRb3aRsV.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C-r6P1cf.js} +477 -477
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-BW8o67ka.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-Dw51spR4.js} +1 -1
- package/dist/{RoleList-mgMUDQa_.js → RoleList-CEAYXKJn.js} +7 -7
- package/dist/{TeamMemberList-Bdtm1lLi.js → TeamMemberList-CkT3zwyz.js} +8 -8
- package/dist/{TimesheetList-BdO8bRzv.js → TimesheetList-D-cVL3h4.js} +79 -80
- package/dist/{timesheet-q4UbovJv.js → TimesheetList.vue_vue_type_style_index_0_scoped_d7ed31d7_lang-CwxHuU0g.js} +2 -2
- package/dist/{app-DdGJIhvX.js → app-DLNoD3Bw.js} +4 -4
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-Dn0iKqwG.js → dayjs.min-CjAlDyAV.js} +1 -1
- package/dist/{employee-rjbsWBRt.js → employee-BVrl60M4.js} +3 -3
- package/dist/{iteration-iN8h5bwW.js → iteration-CMArgFW3.js} +1 -1
- package/dist/{lodash-BX4i2dq_.js → lodash-vv7bFEHI.js} +1 -1
- package/dist/{rule-CBauoBQ2.js → rule-B9c3wxZ3.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DPDMpfh5.js → useAppStore-BfCbhoXq.js} +1 -1
- package/dist/{useLoading-DLMKZcST.js → useLoading-CwApBgYk.js} +1 -1
- package/dist/{useReportPermissions-DjUtbNV6.js → useReportPermissions-DfQTDuU2.js} +3 -3
- package/package.json +1 -1
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { ref as d, computed as g, defineComponent as pe, onMounted as
|
|
2
|
-
import { d as
|
|
1
|
+
import { ref as d, computed as g, defineComponent as pe, onMounted as ve, watch as ee, resolveComponent as u, createElementBlock as P, openBlock as _, Fragment as te, createVNode as l, createElementVNode as i, unref as r, withCtx as Y, createCommentVNode as fe, toDisplayString as O, createTextVNode as he, createBlock as z, isRef as ge, renderList as we, nextTick as ye } from "vue";
|
|
2
|
+
import { d as v } from "./dayjs.min-CjAlDyAV.js";
|
|
3
3
|
import { useI18n as be } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as _e, components as xe } from "@feedmepos/ui-library";
|
|
5
|
-
import { S as De } from "./SelectFilter-DUj7GBtT.js";
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { f as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
function
|
|
5
|
+
import { S as De, _ as Se } from "./SelectFilter-DUj7GBtT.js";
|
|
6
|
+
import { _ as ke } from "./app-DLNoD3Bw.js";
|
|
7
|
+
import { _ as Ve } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
8
|
+
import { u as Ce } from "./useLoading-CwApBgYk.js";
|
|
9
|
+
import { u as Fe, c as Ye, s as Le } from "./iteration-CMArgFW3.js";
|
|
10
|
+
import { f as Me } from "./utils-BZkjJbju.js";
|
|
11
|
+
import { u as Te } from "./employee-BVrl60M4.js";
|
|
12
|
+
import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_d7ed31d7_lang-CwxHuU0g.js";
|
|
13
|
+
function Ie(x, a) {
|
|
14
14
|
return ["years", "months"].find((S) => {
|
|
15
|
-
const k = x.startOf(S),
|
|
16
|
-
return x.isSame(k, "day") && a.isSame(
|
|
15
|
+
const k = x.startOf(S), f = x.endOf(S);
|
|
16
|
+
return x.isSame(k, "day") && a.isSame(f, "day");
|
|
17
17
|
}) || "days";
|
|
18
18
|
}
|
|
19
19
|
function $e() {
|
|
20
20
|
const x = {
|
|
21
|
-
startDate:
|
|
22
|
-
endDate:
|
|
21
|
+
startDate: v().format("YYYY-MM-DD"),
|
|
22
|
+
endDate: v().format("YYYY-MM-DD")
|
|
23
23
|
}, a = d(x), D = g(() => {
|
|
24
24
|
if (!a.value) return "No dates selected.";
|
|
25
|
-
const
|
|
26
|
-
return `${
|
|
25
|
+
const f = a.value.startDate ?? "Start", b = a.value.endDate ?? "End";
|
|
26
|
+
return `${f} - ${b}`;
|
|
27
27
|
}), S = g(() => ({
|
|
28
28
|
startDate: new Date(a.value.startDate),
|
|
29
29
|
endDate: new Date(a.value.endDate)
|
|
30
30
|
}));
|
|
31
|
-
function k(
|
|
32
|
-
const b =
|
|
31
|
+
function k(f) {
|
|
32
|
+
const b = v(a.value.startDate), c = v(a.value.endDate), h = Ie(b, c), V = h === "days" ? c.diff(b, "days") + 1 : 1, C = f === "subtract" ? (F) => F.subtract(V, h) : (F) => F.add(V, h);
|
|
33
33
|
a.value = {
|
|
34
34
|
startDate: C(b).startOf(h).format("YYYY-MM-DD"),
|
|
35
35
|
endDate: C(c).endOf(h).format("YYYY-MM-DD")
|
|
@@ -37,79 +37,79 @@ function $e() {
|
|
|
37
37
|
}
|
|
38
38
|
return { dateRange: a, parsedDateRange: S, dateRangeLabel: D, setRange: k };
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const Ee = {
|
|
41
41
|
class: "my-16 flex w-[350px] flex-col gap-40"
|
|
42
|
-
}, Ee = {
|
|
43
|
-
class: "flex gap-16"
|
|
44
42
|
}, Oe = {
|
|
45
|
-
class: "flex
|
|
43
|
+
class: "flex gap-16"
|
|
46
44
|
}, Ae = {
|
|
47
|
-
class: "
|
|
45
|
+
class: "flex flex-col gap-4"
|
|
48
46
|
}, Ke = {
|
|
49
|
-
class: "fm-typo-body-md-
|
|
47
|
+
class: "fm-typo-body-md-400 text-fm-color-typo-secondary"
|
|
50
48
|
}, ze = {
|
|
51
|
-
class: "
|
|
49
|
+
class: "fm-typo-body-md-700 text-fm-color-typo-primary"
|
|
52
50
|
}, Ne = {
|
|
53
|
-
class: "
|
|
51
|
+
class: "flex flex-col gap-8"
|
|
54
52
|
}, Ue = {
|
|
55
|
-
class: "
|
|
53
|
+
class: "fm-typo-body-xl-700"
|
|
56
54
|
}, Be = {
|
|
57
|
-
class: "flex flex-col gap-
|
|
55
|
+
class: "flex flex-col gap-24"
|
|
58
56
|
}, Pe = {
|
|
59
|
-
class: "
|
|
57
|
+
class: "flex flex-col gap-8"
|
|
60
58
|
}, je = {
|
|
61
|
-
class: "
|
|
59
|
+
class: "fm-typo-body-xl-700"
|
|
62
60
|
}, He = {
|
|
61
|
+
class: "flex flex-col gap-24"
|
|
62
|
+
}, Ge = {
|
|
63
63
|
key: 0,
|
|
64
64
|
class: "fm-typo-body-sm-400 text-fm-color-typo-error mt-1 flex items-center gap-4"
|
|
65
|
-
}, Ge = {
|
|
66
|
-
class: "flex items-center justify-start gap-8"
|
|
67
65
|
}, qe = {
|
|
68
|
-
class: "
|
|
66
|
+
class: "flex items-center justify-start gap-8"
|
|
69
67
|
}, Je = {
|
|
70
|
-
class: "
|
|
68
|
+
class: "space-y-8"
|
|
71
69
|
}, Qe = {
|
|
70
|
+
class: "flex items-start gap-8 flex-wrap xs:px-16"
|
|
71
|
+
}, We = {
|
|
72
72
|
class: "flex items-center gap-8"
|
|
73
|
-
},
|
|
73
|
+
}, Xe = /* @__PURE__ */ pe({
|
|
74
74
|
__name: "TimesheetList",
|
|
75
75
|
setup(x) {
|
|
76
76
|
const {
|
|
77
77
|
t: a
|
|
78
|
-
} = be(), D = _e(), S =
|
|
78
|
+
} = be(), D = _e(), S = Ce(D), k = [{
|
|
79
79
|
label: a("hr.timesheet.listView"),
|
|
80
80
|
value: "listView"
|
|
81
81
|
}, {
|
|
82
82
|
label: a("hr.timesheet.userView"),
|
|
83
83
|
value: "userView"
|
|
84
|
-
}],
|
|
84
|
+
}], f = d("listView"), b = g(() => {
|
|
85
85
|
var t;
|
|
86
|
-
return (t = k.find((e) => e.value ===
|
|
87
|
-
}), c = d(""), h =
|
|
88
|
-
var
|
|
89
|
-
const n = (
|
|
86
|
+
return (t = k.find((e) => e.value === f.value)) == null ? void 0 : t.label;
|
|
87
|
+
}), c = d(""), h = Re(), V = Te(), C = Fe(), F = g(() => V.employees.value), N = g(() => h.timesheets.value.filter((s) => !A.value || A.value.includes(s.restaurantId)).map((s) => {
|
|
88
|
+
var y;
|
|
89
|
+
const n = (y = C.restaurants.value.find((p) => p._id === s.restaurantId)) == null ? void 0 : y.profile.code, w = F.value.find((p) => p._id === s.user.id);
|
|
90
90
|
return {
|
|
91
91
|
...s,
|
|
92
92
|
restaurantCode: n,
|
|
93
93
|
user: {
|
|
94
94
|
...s.user,
|
|
95
|
-
code:
|
|
95
|
+
code: w ? w.code : ""
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
98
|
})), j = g(() => N.value.filter((t) => {
|
|
99
99
|
var e, s;
|
|
100
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()));
|
|
101
101
|
})), H = g(() => {
|
|
102
|
-
const t =
|
|
103
|
-
const
|
|
102
|
+
const t = Ye(N.value, (s) => s.user.name), e = Object.entries(t).map(([s, n]) => {
|
|
103
|
+
const w = F.value.find((y) => y._id === n[0].user.id);
|
|
104
104
|
return {
|
|
105
105
|
key: s,
|
|
106
106
|
user: n[0].user.name,
|
|
107
|
-
code:
|
|
107
|
+
code: w ? w.code : n[0].user.code || "",
|
|
108
108
|
timesheets: n,
|
|
109
|
-
total:
|
|
109
|
+
total: Me(n.reduce((y, p) => y + p.totalMin, 0))
|
|
110
110
|
};
|
|
111
111
|
});
|
|
112
|
-
return
|
|
112
|
+
return Le(e, {
|
|
113
113
|
selector: "user"
|
|
114
114
|
});
|
|
115
115
|
}), G = g(() => H.value.filter((t) => {
|
|
@@ -122,7 +122,7 @@ const Ie = {
|
|
|
122
122
|
} = M.value;
|
|
123
123
|
L.value = !0;
|
|
124
124
|
try {
|
|
125
|
-
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)));
|
|
126
126
|
} catch (s) {
|
|
127
127
|
D.open({
|
|
128
128
|
title: s instanceof Error ? s.message : `${s}`,
|
|
@@ -132,7 +132,7 @@ const Ie = {
|
|
|
132
132
|
L.value = !1;
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
|
-
|
|
135
|
+
ve(async () => {
|
|
136
136
|
try {
|
|
137
137
|
await C.readRestaurants(), V.employees.value.length === 0 && await V.readEmployees();
|
|
138
138
|
} catch (t) {
|
|
@@ -242,12 +242,12 @@ const Ie = {
|
|
|
242
242
|
enableSorting: !1
|
|
243
243
|
}], T = d(!1);
|
|
244
244
|
function J(t) {
|
|
245
|
-
m.value = t, R.value =
|
|
245
|
+
m.value = t, R.value = v(m.value.startedAt).format("YYYY-MM-DD"), $.value = v(m.value.endedAt || m.value.startedAt).format("YYYY-MM-DD"), I.value = v(m.value.startedAt).format("HH:mm"), E.value = v(m.value.endedAt || m.value.startedAt).format("HH:mm"), T.value = !0;
|
|
246
246
|
}
|
|
247
|
-
const R = d(),
|
|
247
|
+
const R = d(), I = d(), $ = d(), E = d(), m = d(), K = d("");
|
|
248
248
|
async function re() {
|
|
249
|
-
const t = Q(R.value,
|
|
250
|
-
if (
|
|
249
|
+
const t = Q(R.value, I.value), e = Q($.value, E.value);
|
|
250
|
+
if (v(t).isAfter(e)) {
|
|
251
251
|
K.value = a("hr.timesheet.checkOutMustBeforeCheckIn");
|
|
252
252
|
return;
|
|
253
253
|
}
|
|
@@ -257,18 +257,18 @@ const Ie = {
|
|
|
257
257
|
successMessage: a("hr.timesheet.update.successMessage")
|
|
258
258
|
}), U(), T.value = !1;
|
|
259
259
|
}
|
|
260
|
-
const Q = (t, e) =>
|
|
261
|
-
return ee([R, I,
|
|
260
|
+
const Q = (t, e) => v(t).set("h", parseInt(e.split(":")[0])).set("m", parseInt(e.split(":")[1])).toISOString();
|
|
261
|
+
return ee([R, $, I, E], ([t, e, s, n]) => {
|
|
262
262
|
(t || e || s || n) && (K.value = "");
|
|
263
263
|
}), (t, e) => {
|
|
264
|
-
const s = u("FmAvatar"), n = u("FmDatePicker"),
|
|
264
|
+
const s = u("FmAvatar"), n = u("FmDatePicker"), w = u("FmTimePicker"), y = u("FmIcon"), p = u("FmButton"), ne = u("FmSideSheet"), W = u("FmChip"), ie = u("FmDateRangePicker"), ue = u("FmMenuItem"), de = u("FmMenu"), ce = u("FmSpacer"), me = u("FmSearch"), X = u("FmTable");
|
|
265
265
|
return _(), P(te, null, [l(ne, {
|
|
266
266
|
modelValue: T.value,
|
|
267
267
|
"onUpdate:modelValue": e[5] || (e[5] = (o) => T.value = o),
|
|
268
268
|
"dismiss-away": "",
|
|
269
269
|
header: r(a)("hr.timesheet.update.title")
|
|
270
270
|
}, {
|
|
271
|
-
"side-sheet-footer": Y(() => [i("div",
|
|
271
|
+
"side-sheet-footer": Y(() => [i("div", qe, [l(p, {
|
|
272
272
|
label: r(a)("common.update"),
|
|
273
273
|
size: "md",
|
|
274
274
|
variant: "primary",
|
|
@@ -279,34 +279,34 @@ const Ie = {
|
|
|
279
279
|
variant: "secondary",
|
|
280
280
|
onClick: e[4] || (e[4] = (o) => T.value = !1)
|
|
281
281
|
}, null, 8, ["label"])])]),
|
|
282
|
-
default: Y(() => [i("div",
|
|
282
|
+
default: Y(() => [i("div", Ee, [i("div", Oe, [l(s, {
|
|
283
283
|
initials: m.value.user.name,
|
|
284
284
|
size: "lg"
|
|
285
|
-
}, null, 8, ["initials"]), i("div",
|
|
285
|
+
}, null, 8, ["initials"]), i("div", Ae, [i("div", Ke, O(r(a)("hr.timesheet.employeeName")), 1), i("div", ze, O(m.value.user.name), 1)])]), i("div", Ne, [i("div", Ue, O(r(a)("hr.timesheet.update.checkIn")), 1), i("div", Be, [l(n, {
|
|
286
286
|
modelValue: R.value,
|
|
287
287
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => R.value = o),
|
|
288
288
|
disabled: !1,
|
|
289
289
|
label: r(a)("hr.timesheet.update.date")
|
|
290
|
-
}, null, 8, ["modelValue", "label"]), l(
|
|
291
|
-
modelValue: $.value,
|
|
292
|
-
"onUpdate:modelValue": e[1] || (e[1] = (o) => $.value = o),
|
|
293
|
-
label: r(a)("hr.timesheet.update.time")
|
|
294
|
-
}, null, 8, ["modelValue", "label"])])]), i("div", Be, [i("div", Pe, O(r(a)("hr.timesheet.update.checkOut")), 1), i("div", je, [l(n, {
|
|
290
|
+
}, null, 8, ["modelValue", "label"]), l(w, {
|
|
295
291
|
modelValue: I.value,
|
|
296
|
-
"onUpdate:modelValue": e[
|
|
292
|
+
"onUpdate:modelValue": e[1] || (e[1] = (o) => I.value = o),
|
|
293
|
+
label: r(a)("hr.timesheet.update.time")
|
|
294
|
+
}, null, 8, ["modelValue", "label"])])]), i("div", Pe, [i("div", je, O(r(a)("hr.timesheet.update.checkOut")), 1), i("div", He, [l(n, {
|
|
295
|
+
modelValue: $.value,
|
|
296
|
+
"onUpdate:modelValue": e[2] || (e[2] = (o) => $.value = o),
|
|
297
297
|
disabled: !1,
|
|
298
298
|
label: r(a)("hr.timesheet.update.date")
|
|
299
|
-
}, null, 8, ["modelValue", "label"]), l(
|
|
299
|
+
}, null, 8, ["modelValue", "label"]), l(w, {
|
|
300
300
|
modelValue: E.value,
|
|
301
301
|
"onUpdate:modelValue": e[3] || (e[3] = (o) => E.value = o),
|
|
302
302
|
label: r(a)("hr.timesheet.update.time")
|
|
303
|
-
}, null, 8, ["modelValue", "label"])])]), K.value ? (_(), P("div",
|
|
303
|
+
}, null, 8, ["modelValue", "label"])])]), K.value ? (_(), P("div", Ge, [l(y, {
|
|
304
304
|
color: "#FF3B30",
|
|
305
305
|
name: "error",
|
|
306
306
|
size: "sm"
|
|
307
|
-
}), he(" " + O(K.value), 1)])) :
|
|
307
|
+
}), he(" " + O(K.value), 1)])) : fe("", !0)])]),
|
|
308
308
|
_: 1
|
|
309
|
-
}, 8, ["modelValue", "header"]), i("div",
|
|
309
|
+
}, 8, ["modelValue", "header"]), i("div", Je, [i("div", Qe, [l(De, {
|
|
310
310
|
modelValue: A.value,
|
|
311
311
|
"onUpdate:modelValue": e[6] || (e[6] = (o) => A.value = o),
|
|
312
312
|
multiple: "",
|
|
@@ -315,7 +315,7 @@ const Ie = {
|
|
|
315
315
|
"selected-prefix": r(a)("hr.role.columns.restaurants"),
|
|
316
316
|
placeholder: r(a)("hr.role.columns.restaurants"),
|
|
317
317
|
class: "!w-auto pt-[3px]"
|
|
318
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), i("div",
|
|
318
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), i("div", We, [l(ie, {
|
|
319
319
|
modelValue: r(M),
|
|
320
320
|
"onUpdate:modelValue": e[7] || (e[7] = (o) => ge(M) ? M.value = o : null),
|
|
321
321
|
"show-predefined-range": ""
|
|
@@ -339,10 +339,10 @@ const Ie = {
|
|
|
339
339
|
label: b.value,
|
|
340
340
|
"right-icon": "keyboard_arrow_down"
|
|
341
341
|
}, null, 8, ["label"])]),
|
|
342
|
-
default: Y(() => [(_(), P(te, null,
|
|
342
|
+
default: Y(() => [(_(), P(te, null, we(k, (o) => l(ue, {
|
|
343
343
|
key: o.value,
|
|
344
344
|
label: o.label,
|
|
345
|
-
onClick: (Z) =>
|
|
345
|
+
onClick: (Z) => f.value = o.value
|
|
346
346
|
}, null, 8, ["label", "onClick"])), 64))]),
|
|
347
347
|
_: 1
|
|
348
348
|
}), l(ce), l(me, {
|
|
@@ -350,15 +350,15 @@ const Ie = {
|
|
|
350
350
|
"onUpdate:modelValue": e[10] || (e[10] = (o) => c.value = o),
|
|
351
351
|
class: "w-[320px]",
|
|
352
352
|
placeholder: r(a)("hr.timesheet.search.placeholder")
|
|
353
|
-
}, null, 8, ["modelValue", "placeholder"])]), N.value.length === 0 && !L.value ? (_(), z(r(
|
|
353
|
+
}, null, 8, ["modelValue", "placeholder"])]), N.value.length === 0 && !L.value ? (_(), z(r(Ve), {
|
|
354
354
|
key: 0,
|
|
355
355
|
title: r(a)("hr.timesheet.noData.title"),
|
|
356
356
|
subtitle: ""
|
|
357
|
-
}, null, 8, ["title"])) : (_(), z(
|
|
357
|
+
}, null, 8, ["title"])) : (_(), z(ke, {
|
|
358
358
|
key: 1,
|
|
359
359
|
class: "w-full xs:px-16 overflow-auto"
|
|
360
360
|
}, {
|
|
361
|
-
default: Y(() => [
|
|
361
|
+
default: Y(() => [f.value === "listView" ? (_(), z(X, {
|
|
362
362
|
key: 0,
|
|
363
363
|
class: "min-w-[640px]",
|
|
364
364
|
"column-defs": se,
|
|
@@ -371,13 +371,12 @@ const Ie = {
|
|
|
371
371
|
onRowClick: e[11] || (e[11] = (o) => J(o.original))
|
|
372
372
|
}, null, 8, ["row-data", "page-size", "loading"])) : (_(), z(X, {
|
|
373
373
|
key: 1,
|
|
374
|
-
class: "min-w-[640px]",
|
|
374
|
+
class: "min-w-[640px] timesheet-user-view",
|
|
375
375
|
"column-defs": le,
|
|
376
376
|
"row-data": G.value,
|
|
377
377
|
"page-size": G.value.reduce((o, Z) => o + 1 + Z.timesheets.length, 0),
|
|
378
378
|
loading: L.value,
|
|
379
379
|
"pin-header-row": "",
|
|
380
|
-
"hide-footer": "",
|
|
381
380
|
"shrink-at": !1,
|
|
382
381
|
"expanded-state": B.value,
|
|
383
382
|
"get-sub-row": (o) => o.timesheets,
|
|
@@ -388,7 +387,7 @@ const Ie = {
|
|
|
388
387
|
}))])], 64);
|
|
389
388
|
};
|
|
390
389
|
}
|
|
391
|
-
});
|
|
390
|
+
}), ct = /* @__PURE__ */ Se(Xe, [["__scopeId", "data-v-d7ed31d7"]]);
|
|
392
391
|
export {
|
|
393
|
-
|
|
392
|
+
ct as default
|
|
394
393
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as i } from "./dayjs.min-
|
|
1
|
+
import { d as i } from "./dayjs.min-CjAlDyAV.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, s as S } from "./iteration-
|
|
4
|
+
import { b as c, g as y, s as S } from "./iteration-CMArgFW3.js";
|
|
5
5
|
import { i as f, f as g } from "./utils-BZkjJbju.js";
|
|
6
6
|
const u = {
|
|
7
7
|
async readTimesheets(t, e) {
|
|
@@ -5158,10 +5158,10 @@ const ht = (e) => ({
|
|
|
5158
5158
|
}
|
|
5159
5159
|
]
|
|
5160
5160
|
}
|
|
5161
|
-
}), xa = Ke(be(() => import("./Main
|
|
5162
|
-
be(() => import("./AuditLogList-
|
|
5163
|
-
), Fa = Ke(be(() => import("./Main-
|
|
5164
|
-
() => import("./PermissionSetList-
|
|
5161
|
+
}), xa = Ke(be(() => import("./Main--J60Ewhg.js"))), Va = Ke(be(() => import("./Main-Jr4wJkSF.js"))), Pa = Ke(
|
|
5162
|
+
be(() => import("./AuditLogList-DE6rCmIF.js"))
|
|
5163
|
+
), Fa = Ke(be(() => import("./Main-o7e2diY4.js"))), Oa = be(() => import("./EmployeeList-Bo2kxYfU.js")), qa = be(() => import("./RoleList-CEAYXKJn.js")), Ha = be(() => import("./TimesheetList-D-cVL3h4.js")), Xa = be(() => import("./TeamMemberList-CkT3zwyz.js")), Qa = be(
|
|
5164
|
+
() => import("./PermissionSetList-Dqgg3uI_.js")
|
|
5165
5165
|
), eo = [
|
|
5166
5166
|
{
|
|
5167
5167
|
path: "/",
|
package/dist/app.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as g } from "./dayjs.min-
|
|
1
|
+
import { d as g } from "./dayjs.min-CjAlDyAV.js";
|
|
2
2
|
import { defineStore as $, storeToRefs as T } from "pinia";
|
|
3
3
|
import { ref as m } from "vue";
|
|
4
|
-
import { b as l, g as f, u as w, s as E } from "./iteration-
|
|
4
|
+
import { b as l, g as f, u as w, s as E } from "./iteration-CMArgFW3.js";
|
|
5
5
|
import { i as v } from "./utils-BZkjJbju.js";
|
|
6
|
-
import { u as _ } from "./useAppStore-
|
|
6
|
+
import { u as _ } from "./useAppStore-BfCbhoXq.js";
|
|
7
7
|
const o = {
|
|
8
8
|
async readEmployees() {
|
|
9
9
|
return f(await l().get("/pos-users"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as Gs, storeToRefs as Hs } from "pinia";
|
|
2
2
|
import { ref as eo } from "vue";
|
|
3
3
|
import { useCoreStore as ui, baseClientInstance as Dr, FeedMeAuth as qs } from "@feedmepos/mf-common";
|
|
4
|
-
import { c as U } from "./app-
|
|
4
|
+
import { c as U } from "./app-DLNoD3Bw.js";
|
|
5
5
|
function Ur(e, n) {
|
|
6
6
|
return function() {
|
|
7
7
|
return e.apply(n, arguments);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as b, b as v, q as L, u as H, s as x, d as Y, e as h } from "./iteration-
|
|
2
|
-
import { e as R, h as k, b as F, l as j, C as Z, d as J } from "./app-
|
|
1
|
+
import { g as b, b as v, q as L, u as H, s as x, d as Y, e as h } from "./iteration-CMArgFW3.js";
|
|
2
|
+
import { e as R, h as k, b as F, l as j, C as Z, d as J } from "./app-DLNoD3Bw.js";
|
|
3
3
|
import { s as q } from "./utils-BZkjJbju.js";
|
|
4
4
|
import { defineStore as W, storeToRefs as V } from "pinia";
|
|
5
5
|
import { ref as S, computed as T } from "vue";
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.employee-list-table[data-v-cefb09f9] [class~=gap-24]>div:first-child{display:none}.user-info-icon[data-v-a439fdd8]{flex-shrink:0;cursor:pointer;font-size:.75rem;font-weight:600;line-height:1rem;letter-spacing:.02em;text-decoration-line:none;color:var(--fm-color-neutral-white);display:flex;align-items:center;justify-content:center;background:linear-gradient(201deg,#fc9b40 10.3%,#ff6052 98.36%)}.user-info-icon--md[data-v-a439fdd8]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-a439fdd8]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-a439fdd8]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-a439fdd8]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(8px * var(--tw-space-x-reverse));margin-left:calc(8px * calc(1 - var(--tw-space-x-reverse)))}.profile-menu--profile[data-v-a439fdd8]{padding:16px 16px 12px;border-radius:8px;display:flex;align-items:center;border-width:1px;border-color:var(--fm-color-neutral-gray-200)}.profile-menu--profile .profile-displayName[data-v-a439fdd8]{font-size:1rem;font-weight:400;line-height:1.25rem;letter-spacing:.005em;text-decoration-line:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu--profile .profile-email[data-v-a439fdd8],.profile-menu--profile .profile-phone[data-v-a439fdd8]{font-size:.875rem;font-weight:400;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;color:var(--fm-color-neutral-gray-300);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-log-list-table[data-v-5566060e] [class~=gap-24]>div:first-child{display:none}.audit-log-action-label[data-v-5566060e]{display:block;width:100%;max-width:100%;max-height:6.25rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.25rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-action-label[data-v-5566060e]::-webkit-scrollbar{display:none}.audit-log-operation-label-detail[data-v-5566060e]{max-height:6.875rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.375rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-operation-label-detail[data-v-5566060e]::-webkit-scrollbar{display:none}
|
|
1
|
+
.employee-list-table[data-v-cefb09f9] [class~=gap-24]>div:first-child{display:none}.timesheet-user-view[data-v-d7ed31d7] .basis-72{display:none}.user-info-icon[data-v-a439fdd8]{flex-shrink:0;cursor:pointer;font-size:.75rem;font-weight:600;line-height:1rem;letter-spacing:.02em;text-decoration-line:none;color:var(--fm-color-neutral-white);display:flex;align-items:center;justify-content:center;background:linear-gradient(201deg,#fc9b40 10.3%,#ff6052 98.36%)}.user-info-icon--md[data-v-a439fdd8]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-a439fdd8]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-a439fdd8]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-a439fdd8]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(8px * var(--tw-space-x-reverse));margin-left:calc(8px * calc(1 - var(--tw-space-x-reverse)))}.profile-menu--profile[data-v-a439fdd8]{padding:16px 16px 12px;border-radius:8px;display:flex;align-items:center;border-width:1px;border-color:var(--fm-color-neutral-gray-200)}.profile-menu--profile .profile-displayName[data-v-a439fdd8]{font-size:1rem;font-weight:400;line-height:1.25rem;letter-spacing:.005em;text-decoration-line:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu--profile .profile-email[data-v-a439fdd8],.profile-menu--profile .profile-phone[data-v-a439fdd8]{font-size:.875rem;font-weight:400;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;color:var(--fm-color-neutral-gray-300);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-log-list-table[data-v-5566060e] [class~=gap-24]>div:first-child{display:none}.audit-log-action-label[data-v-5566060e]{display:block;width:100%;max-width:100%;max-height:6.25rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.25rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-action-label[data-v-5566060e]::-webkit-scrollbar{display:none}.audit-log-operation-label-detail[data-v-5566060e]{max-height:6.875rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.375rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-operation-label-detail[data-v-5566060e]::-webkit-scrollbar{display:none}
|