@feedmepos/mf-hrm-portal 1.0.3-dev → 1.0.3
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/{EmployeeList-BIUZbCOe.js → EmployeeList-D3a7ngdE.js} +1 -1
- package/dist/{RoleList-C8JHuEt2.js → RoleList-CsxyMZW0.js} +1 -1
- package/dist/{TeamMemberList-BWh_NlX0.js → TeamMemberList-ZkrdrTlL.js} +1 -1
- package/dist/{TimesheetList-D8vjMGnq.js → TimesheetList-BwiUzcJ-.js} +22 -21
- package/dist/{app-klMkC8Nt.js → app-CrML_LtM.js} +3 -3
- package/dist/app.js +1 -1
- package/dist/{main-CLRNm2II.js → main-CUI7RdvY.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { openBlock as h, createElementBlock as $, createElementVNode as c, toRaw
|
|
|
2
2
|
import { useCoreStore as be, useI18n as Ve, RestaurantSelector as me } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Fe, components as xe, useDialog as Le, useBreakpoints as Be, FmButtonVariant as De } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as Ne, u as we, S as ce } from "./useSearch-C25VELOk.js";
|
|
5
|
-
import { _ as Pe } from "./app-
|
|
5
|
+
import { _ as Pe } from "./app-CrML_LtM.js";
|
|
6
6
|
import { u as Te, _ as ze } from "./useLoading-DAoKseT-.js";
|
|
7
7
|
import { u as ke, E as Ae } from "./employee-DSGaYrd4.js";
|
|
8
8
|
import { l as je } from "./lodash-dGfuW9fw.js";
|
|
@@ -2,7 +2,7 @@ import { defineComponent as ce, ref as T, computed as _, onMounted as pe, watch
|
|
|
2
2
|
import { u as ve, f as Ce, e as E, r as K, h as le, j as Re, k as de, l as J } from "./rule-BLgeh_ly.js";
|
|
3
3
|
import { useI18n as fe, useCoreStore as _e } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as he, components as W, useDialog as Ve, useBreakpoints as we, FmButtonColorThemeVariant as me, FmButtonVariant as ke } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as Ie } from "./app-
|
|
5
|
+
import { _ as Ie } from "./app-CrML_LtM.js";
|
|
6
6
|
import { u as Le, _ as Ue } from "./useLoading-DAoKseT-.js";
|
|
7
7
|
import { u as Se, _ as se, a as $e, b as Ee } from "./useRestaurantMap-CpS9-OSq.js";
|
|
8
8
|
import { l as z } from "./lodash-dGfuW9fw.js";
|
|
@@ -2,7 +2,7 @@ import { defineComponent as z, ref as j, resolveComponent as M, openBlock as m,
|
|
|
2
2
|
import { useI18n as ee, Permission as G, useCoreStore as re, fullPermission as ce, baseClientInstance as Fe, RestaurantSelector as $e } from "@feedmepos/mf-common";
|
|
3
3
|
import { useBreakpoints as Be, useSnackbar as we, useDialog as qe, components as Ee } from "@feedmepos/ui-library";
|
|
4
4
|
import { u as je, _ as Le, S as Ue } from "./useSearch-C25VELOk.js";
|
|
5
|
-
import { _ as Te } from "./app-
|
|
5
|
+
import { _ as Te } from "./app-CrML_LtM.js";
|
|
6
6
|
import { _ as ze } from "./PageLayout.vue_vue_type_script_setup_true_lang-DuwNwJDM.js";
|
|
7
7
|
import { E as We } from "./empty-placeholder-ey8LJtN1.js";
|
|
8
8
|
import { c as Z, i as ke, g as ge, b as Ke, u as Oe, a as Ge, d as Se } from "./rule-BLgeh_ly.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as d, computed as b, defineComponent as ce, onMounted as me, watch as X, resolveComponent as i, openBlock as D, createElementBlock as B, Fragment as Z, createVNode as l, unref as n, withCtx as
|
|
1
|
+
import { ref as d, computed as b, defineComponent as ce, onMounted as me, watch as X, resolveComponent as i, openBlock as D, createElementBlock as B, Fragment as Z, createVNode as l, unref as n, withCtx as C, createElementVNode as u, toDisplayString as $, createTextVNode as pe, createCommentVNode as ve, isRef as fe, renderList as he, createBlock as z, nextTick as ge } from "vue";
|
|
2
2
|
import { D as v, u as we } from "./employee-DSGaYrd4.js";
|
|
3
3
|
import { useI18n as ye, useCoreStore as be, RestaurantSelector as _e } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as De, components as xe } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as Se } from "./app-
|
|
6
|
-
import { u as ke, _ as
|
|
7
|
-
import { n as
|
|
5
|
+
import { _ as Se } from "./app-CrML_LtM.js";
|
|
6
|
+
import { u as ke, _ as Ce } from "./useLoading-DAoKseT-.js";
|
|
7
|
+
import { n as Ve, o as Fe, s as Ye } from "./rule-BLgeh_ly.js";
|
|
8
8
|
import { u as Le } from "./timesheet-BFrZzS2q.js";
|
|
9
9
|
function Me(x, a) {
|
|
10
10
|
return ["years", "months"].find((S) => {
|
|
@@ -16,7 +16,7 @@ function Te() {
|
|
|
16
16
|
const x = {
|
|
17
17
|
startDate: v().format("YYYY-MM-DD"),
|
|
18
18
|
endDate: v().format("YYYY-MM-DD")
|
|
19
|
-
}, a = d(x),
|
|
19
|
+
}, a = d(x), V = b(() => {
|
|
20
20
|
if (!a.value) return "No dates selected.";
|
|
21
21
|
const f = a.value.startDate ?? "Start", _ = a.value.endDate ?? "End";
|
|
22
22
|
return `${f} - ${_}`;
|
|
@@ -31,7 +31,7 @@ function Te() {
|
|
|
31
31
|
endDate: F(c).endOf(h).format("YYYY-MM-DD")
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
return { dateRange: a, parsedDateRange: S, dateRangeLabel:
|
|
34
|
+
return { dateRange: a, parsedDateRange: S, dateRangeLabel: V, setRange: k };
|
|
35
35
|
}
|
|
36
36
|
const Re = {
|
|
37
37
|
class: "my-16 flex w-[350px] flex-col gap-40"
|
|
@@ -71,7 +71,7 @@ const Re = {
|
|
|
71
71
|
setup(x) {
|
|
72
72
|
const {
|
|
73
73
|
t: a
|
|
74
|
-
} = ye(),
|
|
74
|
+
} = ye(), V = De(), S = ke(V), k = [{
|
|
75
75
|
label: a("hr.timesheet.listView"),
|
|
76
76
|
value: "listView"
|
|
77
77
|
}, {
|
|
@@ -95,7 +95,7 @@ const Re = {
|
|
|
95
95
|
var e, s;
|
|
96
96
|
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()));
|
|
97
97
|
})), H = b(() => {
|
|
98
|
-
const t =
|
|
98
|
+
const t = Ve(g.value, (s) => s.user.name), e = Object.entries(t).map(([s, r]) => {
|
|
99
99
|
const w = F.value.find((y) => y._id === r[0].user.id);
|
|
100
100
|
return {
|
|
101
101
|
key: s,
|
|
@@ -120,7 +120,7 @@ const Re = {
|
|
|
120
120
|
try {
|
|
121
121
|
await h.readTimesheet(new Date(t), new Date(e)), await ge(), U.value = Object.fromEntries(Object.entries(new Array(H.value.length).fill(!0)));
|
|
122
122
|
} catch (s) {
|
|
123
|
-
|
|
123
|
+
V.open({
|
|
124
124
|
title: s instanceof Error ? s.message : `${s}`,
|
|
125
125
|
type: "error"
|
|
126
126
|
});
|
|
@@ -189,13 +189,14 @@ const Re = {
|
|
|
189
189
|
const s = t.row.getIsExpanded();
|
|
190
190
|
return l("div", {
|
|
191
191
|
class: "flex items-center gap-8"
|
|
192
|
-
}, [l(
|
|
193
|
-
|
|
194
|
-
icon: s ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
195
|
-
"on-click": (r) => {
|
|
192
|
+
}, [l("div", {
|
|
193
|
+
onClick: (r) => {
|
|
196
194
|
r.stopPropagation(), t.row.getToggleExpandedHandler()(r);
|
|
197
195
|
}
|
|
198
|
-
},
|
|
196
|
+
}, [l(xe.FmButton, {
|
|
197
|
+
variant: "tertiary",
|
|
198
|
+
icon: s ? "keyboard_arrow_up" : "keyboard_arrow_down"
|
|
199
|
+
}, null)]), e.user]);
|
|
199
200
|
}
|
|
200
201
|
},
|
|
201
202
|
enableSorting: !1
|
|
@@ -252,7 +253,7 @@ const Re = {
|
|
|
252
253
|
"dismiss-away": "",
|
|
253
254
|
header: n(a)("hr.timesheet.update.title")
|
|
254
255
|
}, {
|
|
255
|
-
"side-sheet-footer":
|
|
256
|
+
"side-sheet-footer": C(() => [u("div", He, [l(p, {
|
|
256
257
|
label: n(a)("common.update"),
|
|
257
258
|
size: "md",
|
|
258
259
|
variant: "primary",
|
|
@@ -263,7 +264,7 @@ const Re = {
|
|
|
263
264
|
variant: "secondary",
|
|
264
265
|
onClick: e[4] || (e[4] = (o) => M.value = !1)
|
|
265
266
|
}, null, 8, ["label"])])]),
|
|
266
|
-
default:
|
|
267
|
+
default: C(() => [u("div", Re, [u("div", Ie, [l(s, {
|
|
267
268
|
initials: m.value.user.name,
|
|
268
269
|
size: "lg"
|
|
269
270
|
}, null, 8, ["initials"]), u("div", Oe, [u("div", $e, $(n(a)("hr.timesheet.employeeName")), 1), u("div", Ae, $(m.value.user.name), 1)])]), u("div", Ee, [u("div", Ke, $(n(a)("hr.timesheet.update.checkIn")), 1), u("div", ze, [l(r, {
|
|
@@ -302,7 +303,7 @@ const Re = {
|
|
|
302
303
|
"onUpdate:modelValue": e[7] || (e[7] = (o) => fe(L) ? L.value = o : null),
|
|
303
304
|
"show-predefined-range": ""
|
|
304
305
|
}, {
|
|
305
|
-
"trigger-button":
|
|
306
|
+
"trigger-button": C(() => [l(Q, {
|
|
306
307
|
label: n(te)
|
|
307
308
|
}, null, 8, ["label"])]),
|
|
308
309
|
_: 1
|
|
@@ -317,11 +318,11 @@ const Re = {
|
|
|
317
318
|
})]), l(ue, {
|
|
318
319
|
class: "pt-[3px]"
|
|
319
320
|
}, {
|
|
320
|
-
"menu-button":
|
|
321
|
+
"menu-button": C(() => [l(Q, {
|
|
321
322
|
label: _.value,
|
|
322
323
|
"right-icon": "keyboard_arrow_down"
|
|
323
324
|
}, null, 8, ["label"])]),
|
|
324
|
-
default:
|
|
325
|
+
default: C(() => [(D(), B(Z, null, he(k, (o) => l(re, {
|
|
325
326
|
key: o.value,
|
|
326
327
|
label: o.label,
|
|
327
328
|
onClick: (Je) => f.value = o.value
|
|
@@ -332,7 +333,7 @@ const Re = {
|
|
|
332
333
|
"onUpdate:modelValue": e[10] || (e[10] = (o) => c.value = o),
|
|
333
334
|
class: "w-[320px]",
|
|
334
335
|
placeholder: n(a)("hr.timesheet.search.placeholder")
|
|
335
|
-
}, null, 8, ["modelValue", "placeholder"])]), g.value.length === 0 && !Y.value ? (D(), z(n(
|
|
336
|
+
}, null, 8, ["modelValue", "placeholder"])]), g.value.length === 0 && !Y.value ? (D(), z(n(Ce), {
|
|
336
337
|
key: 0,
|
|
337
338
|
title: n(a)("hr.timesheet.noData.title"),
|
|
338
339
|
subtitle: ""
|
|
@@ -340,7 +341,7 @@ const Re = {
|
|
|
340
341
|
key: 1,
|
|
341
342
|
class: "w-full xs:px-16 overflow-auto"
|
|
342
343
|
}, {
|
|
343
|
-
default:
|
|
344
|
+
default: C(() => [f.value === "listView" ? (D(), z(W, {
|
|
344
345
|
key: 0,
|
|
345
346
|
class: "min-w-[640px]",
|
|
346
347
|
"column-defs": ae,
|
|
@@ -1081,9 +1081,9 @@ const y = (e) => ({
|
|
|
1081
1081
|
}
|
|
1082
1082
|
]
|
|
1083
1083
|
}
|
|
1084
|
-
}), he = S(c(() => import("./main-
|
|
1085
|
-
c(() => import("./TeamMemberList-
|
|
1086
|
-
), Me = c(() => import("./EmployeeList-
|
|
1084
|
+
}), he = S(c(() => import("./main-CUI7RdvY.js"))), be = S(
|
|
1085
|
+
c(() => import("./TeamMemberList-ZkrdrTlL.js"))
|
|
1086
|
+
), Me = c(() => import("./EmployeeList-D3a7ngdE.js")), ge = c(() => import("./RoleList-CsxyMZW0.js")), fe = c(() => import("./TimesheetList-BwiUzcJ-.js")), Oe = [
|
|
1087
1087
|
{
|
|
1088
1088
|
path: "/",
|
|
1089
1089
|
name: "home",
|
package/dist/app.js
CHANGED
|
@@ -9,7 +9,7 @@ import { u as _f } from "./employee-DSGaYrd4.js";
|
|
|
9
9
|
import "./lodash-dGfuW9fw.js";
|
|
10
10
|
import "./useAppStore-DViQe2C8.js";
|
|
11
11
|
import "./timesheet-BFrZzS2q.js";
|
|
12
|
-
import { R as pt } from "./app-
|
|
12
|
+
import { R as pt } from "./app-CrML_LtM.js";
|
|
13
13
|
var In = {};
|
|
14
14
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
15
15
|
var Zt = {};
|