@feedmepos/mf-hrm-portal 2.3.2-dev.6 → 2.3.2-dev.7
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-ix9OeJEQ.js → ApprovalCodeList-Bw0E-hZl.js} +7 -7
- package/dist/{AuditLogList-D5H_O9Q0.js → AuditLogList-CA-_t77n.js} +5 -5
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CuELLYY4.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-LtjNCAFN.js} +2 -2
- package/dist/{EmployeeList-DICzZjVM.js → EmployeeList-D_bX0EhQ.js} +8 -8
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-BQzSWAqC.js → FormSection.vue_vue_type_script_setup_true_lang-CyZxQa-b.js} +1 -1
- package/dist/{GrantUserList-DoMN7Eks.js → GrantUserList-Cg7ITk_M.js} +8 -8
- package/dist/{Main-CQ42sYi9.js → Main-BaB4vgI5.js} +11 -11
- package/dist/{Main-CHIExpOV.js → Main-Bl-Ocx1G.js} +5 -5
- package/dist/{Main-DwYh9cxQ.js → Main-D5wi42fp.js} +10 -10
- package/dist/{MyPosProfile-DaUdREQX.js → MyPosProfile-CUG_201f.js} +1 -1
- package/dist/{PermissionSetList-B7WM9N-p.js → PermissionSetList-kgG9H3DX.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BSVtyLlL.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-y1YcZpGA.js} +755 -755
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-C7fnnbme.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fQyCtDXM.js} +1 -1
- package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-AbQIllkX.js → RoleForm.vue_vue_type_script_setup_true_lang-3Q8udk43.js} +9 -9
- package/dist/{RoleList-vQsHxlNc.js → RoleList-Cmz97HHP.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-D52LhvGG.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CggEy3OI.js} +1 -1
- package/dist/{ScheduleGeneralPage-BLqh7jH6.js → ScheduleGeneralPage-B39k3SQH.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-C9doSgov.js → ScheduleModal.vue_vue_type_script_setup_true_lang-C5j3D4eF.js} +4 -4
- package/dist/{SchedulePage-YADV_6w9.js → SchedulePage-AVmRkFi1.js} +9 -9
- package/dist/{SchedulePositionPage-BowDQMG_.js → SchedulePositionPage-3rE-O8CG.js} +3 -3
- package/dist/{SelectFilter-CBp1qxLd.js → SelectFilter-R7ry_GEg.js} +1 -1
- package/dist/{TeamMemberList-BoJ87moU.js → TeamMemberList-CvDnIILn.js} +12 -12
- package/dist/{TimesheetList-BULw75oo.js → TimesheetList-DYoglTi8.js} +62 -62
- package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_d0c6fd51_lang-DBpzyQ17.js +63 -0
- package/dist/{app-DOFDND9j.js → app-DKUCzcrc.js} +10 -10
- package/dist/app.js +1 -1
- package/dist/{approval-code-Dgj6S82q.js → approval-code-nsETgIry.js} +1 -1
- package/dist/{dayjs.min-AoirQCgL.js → dayjs.min-CtULWW1N.js} +1 -1
- package/dist/{employee-VB6YmuSS.js → employee-DlsSqR3i.js} +5 -5
- package/dist/{grant-user-C-ptrq7l.js → grant-user-Dpa_Rl6j.js} +1 -1
- package/dist/{iteration-DmuDXP8U.js → iteration-DpHBtiyr.js} +1 -1
- package/dist/{lodash-CBFO-xTu.js → lodash-YaHCUo_F.js} +1 -1
- package/dist/{member-grant-CHOB8eQ_.js → member-grant-CEokFI3_.js} +2 -2
- package/dist/{restaurant-DH2Fxzi7.js → restaurant-CDFKqEFm.js} +1 -1
- package/dist/{role-DUpHwRiY.js → role-DyBVVlEA.js} +3 -3
- package/dist/{rule-aUPH1VOW.js → rule-xErZqYmH.js} +3 -3
- package/dist/src/api/timesheet/index.d.ts +1 -1
- package/dist/src/stores/timesheet.d.ts +6 -6
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DwmJbpf-.js → useAppStore-BqsvPsPB.js} +1 -1
- package/dist/{useLoading-Dmlm4oSU.js → useLoading-BS1bnZg1.js} +1 -1
- package/dist/{useReportPermissions-XPn-p57R.js → useReportPermissions-DJEhkyGc.js} +3 -3
- package/package.json +1 -1
- package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_c98b0b84_lang-VlnjH9aQ.js +0 -58
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as T, ref as x } from "vue";
|
|
2
2
|
import { useCoreStore as N0 } from "@feedmepos/mf-common";
|
|
3
|
-
import { g as C0, b as G0, T as B0, m as d0, l as k0, h as j0 } from "./app-
|
|
3
|
+
import { g as C0, b as G0, T as B0, m as d0, l as k0, h as j0 } from "./app-DKUCzcrc.js";
|
|
4
4
|
const U0 = {
|
|
5
5
|
async readProviders() {
|
|
6
6
|
return C0(await G0("sso-providers").get(""));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as ze, computed as y, ref as D, watch as q, onMounted as Le, resolveComponent as w, createBlock as E, openBlock as h, unref as o, withCtx as V, createElementVNode as c, createVNode as _, toDisplayString as M, createElementBlock as S, Fragment as z, renderList as ee, createCommentVNode as te, normalizeClass as he } from "vue";
|
|
2
|
-
import { l as W } from "./lodash-
|
|
3
|
-
import { e as be } from "./iteration-
|
|
2
|
+
import { l as W } from "./lodash-YaHCUo_F.js";
|
|
3
|
+
import { e as be } from "./iteration-DpHBtiyr.js";
|
|
4
4
|
import { useI18n as Ne } from "@feedmepos/mf-common";
|
|
5
5
|
import { useBreakpoints as Ke, useSnackbar as Te, components as qe } from "@feedmepos/ui-library";
|
|
6
|
-
import { u as We, _ as Ge, a as _e } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { u as We, _ as Ge, a as _e } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-LtjNCAFN.js";
|
|
7
7
|
import { u as Je } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
8
|
-
import { u as He } from "./useLoading-
|
|
9
|
-
import { u as Qe } from "./useReportPermissions-
|
|
10
|
-
import { s as Xe, j as Ye, A as Ze, S as et } from "./app-
|
|
11
|
-
import { r as ae, h as tt, d as at, s as st, g as ge, e as lt } from "./rule-
|
|
12
|
-
import { u as rt } from "./restaurant-
|
|
13
|
-
import { u as ot } from "./role-
|
|
8
|
+
import { u as He } from "./useLoading-BS1bnZg1.js";
|
|
9
|
+
import { u as Qe } from "./useReportPermissions-DJEhkyGc.js";
|
|
10
|
+
import { s as Xe, j as Ye, A as Ze, S as et } from "./app-DKUCzcrc.js";
|
|
11
|
+
import { r as ae, h as tt, d as at, s as st, g as ge, e as lt } from "./rule-xErZqYmH.js";
|
|
12
|
+
import { u as rt } from "./restaurant-CDFKqEFm.js";
|
|
13
|
+
import { u as ot } from "./role-DyBVVlEA.js";
|
|
14
14
|
function Tt(d) {
|
|
15
15
|
const n = [];
|
|
16
16
|
for (const { restaurantId: m, roleId: a } of d) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as Z, computed as y, ref as S, onMounted as ee, resolveComponent as C, createElementBlock as $, openBlock as _, Fragment as A, createBlock as x, createElementVNode as r, createVNode as m, unref as a, withCtx as R, h as u, renderList as oe, toDisplayString as p, createTextVNode as T, resolveDynamicComponent as M, withModifiers as se, nextTick as z } from "vue";
|
|
2
|
-
import { e as d } from "./iteration-
|
|
2
|
+
import { e as d } from "./iteration-DpHBtiyr.js";
|
|
3
3
|
import { useI18n as te } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as ne, useSnackbar as re, useBreakpoints as ae, components as K, FmButtonColorThemeVariant as le } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ie } from "./app-
|
|
5
|
+
import { _ as ie } from "./app-DKUCzcrc.js";
|
|
6
6
|
import { _ as D } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
|
|
7
7
|
import { _ as ce } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
8
|
-
import { f as b, r as me, h as ue } from "./rule-
|
|
9
|
-
import { u as de } from "./restaurant-
|
|
10
|
-
import { u as pe } from "./role-
|
|
11
|
-
import { u as fe } from "./useReportPermissions-
|
|
12
|
-
import { _ as _e } from "./RoleForm.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { f as b, r as me, h as ue } from "./rule-xErZqYmH.js";
|
|
9
|
+
import { u as de } from "./restaurant-CDFKqEFm.js";
|
|
10
|
+
import { u as pe } from "./role-DyBVVlEA.js";
|
|
11
|
+
import { u as fe } from "./useReportPermissions-DJEhkyGc.js";
|
|
12
|
+
import { _ as _e } from "./RoleForm.vue_vue_type_script_setup_true_lang-3Q8udk43.js";
|
|
13
13
|
const he = {
|
|
14
14
|
class: "space-y-8"
|
|
15
15
|
}, ve = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as k, watch as he, computed as z, reactive as Pe, nextTick as we, defineComponent as Ne, createBlock as ne, openBlock as b, withCtx as T, createElementVNode as i, createVNode as H, toDisplayString as v, unref as o, createElementBlock as E, withDirectives as fe, withKeys as Ce, vModelText as ye, normalizeClass as ge, createTextVNode as V, createCommentVNode as Z, Fragment as Ie, renderList as Se } from "vue";
|
|
2
2
|
import { useI18n as ie } from "@feedmepos/mf-common";
|
|
3
|
-
import { az as oe, p as D, aD as ke, aE as se, aF as pe, y as Ee, aG as $e, K as te, e as _, ay as xe, av as W } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { az as oe, p as D, aD as ke, aE as se, aF as pe, y as Ee, aG as $e, K as te, e as _, ay as xe, av as W } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-C5j3D4eF.js";
|
|
4
4
|
function be() {
|
|
5
5
|
return oe.map((e) => ({ id: e.id, name: e.name }));
|
|
6
6
|
}
|
|
@@ -2,8 +2,8 @@ import { ref as b, reactive as Y, computed as L, defineComponent as N, createBlo
|
|
|
2
2
|
import { useRouter as K } from "vue-router";
|
|
3
3
|
import { useSnackbar as j } from "@feedmepos/ui-library";
|
|
4
4
|
import { useCoreStore as F, useI18n as E } from "@feedmepos/mf-common";
|
|
5
|
-
import { R as G } from "./app-
|
|
6
|
-
import { b as g, o as A, g as V, V as J, a1 as z, p as U, ay as Q, av as C, aA as X, aB as Z, ai as ee, ax as se } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { R as G } from "./app-DKUCzcrc.js";
|
|
6
|
+
import { b as g, o as A, g as V, V as J, a1 as z, p as U, ay as Q, av as C, aA as X, aB as Z, ai as ee, ax as se } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-C5j3D4eF.js";
|
|
7
7
|
const te = [
|
|
8
8
|
{ key: "payrates", labelKey: "scheduling.general.payRates" },
|
|
9
9
|
{ key: "overtime", labelKey: "scheduling.general.overtime" },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { onMounted as Re, onBeforeUnmount as $e, ref as S, reactive as T, shallowRef as Ae, watch as Be, computed as Y, defineComponent as xe, createElementBlock as M, openBlock as C, renderSlot as Xe, useAttrs as pa, nextTick as ke, normalizeClass as he, createElementVNode as x, createBlock as ha, mergeProps as va, toDisplayString as z, Teleport as ga, createCommentVNode as G, withDirectives as Da, unref as Ee, vModelText as wa, Fragment as be, renderList as Ha, createTextVNode as Aa, withModifiers as Ea, normalizeStyle as ba } from "vue";
|
|
2
2
|
import { useRoute as Pa, useRouter as Sa } from "vue-router";
|
|
3
3
|
import { useCoreStore as Je, useI18n as ka } from "@feedmepos/mf-common";
|
|
4
|
-
import { u as Ca } from "./restaurant-
|
|
5
|
-
import { g, b as p } from "./app-
|
|
6
|
-
import { E as Ce, u as Ze } from "./employee-
|
|
7
|
-
import { t as Fe, c as Ma } from "./rule-
|
|
4
|
+
import { u as Ca } from "./restaurant-CDFKqEFm.js";
|
|
5
|
+
import { g, b as p } from "./app-DKUCzcrc.js";
|
|
6
|
+
import { E as Ce, u as Ze } from "./employee-DlsSqR3i.js";
|
|
7
|
+
import { t as Fe, c as Ma } from "./rule-xErZqYmH.js";
|
|
8
8
|
function io(e) {
|
|
9
9
|
let a = null;
|
|
10
10
|
function t() {
|
|
@@ -2,18 +2,18 @@ import { reactive as Xe, watch as Ct, computed as L, ref as Y, onUnmounted as To
|
|
|
2
2
|
import { useRouter as Ma, onBeforeRouteLeave as Qs } from "vue-router";
|
|
3
3
|
import { useSnackbar as bn, SnackbarPosition as jo, components as Zs } from "@feedmepos/ui-library";
|
|
4
4
|
import { useCoreStore as Oo, useI18n as me } from "@feedmepos/mf-common";
|
|
5
|
-
import { d as Ln, p as Dt, w as Ta, o as Nt, i as Sn, c as _s, a as Oa, P as rn, R as In, b as Me, s as Et, e as on, f as el, h as tl, g as Aa, j as Ra, r as en, k as zt, l as so, m as La, n as nl, q as It, S as ol, t as qn, u as al, v as fo, x as kt, y as qo, z as mn, A as Qn, U as Ia, C as sl, W as Ge, B as Hn, D as ll, E as il, F as pn, G as Ao, H as an, I as qe, J as En, K as Ha, L as Ut, M as Lt, N as lo, O as io, Q as Yo, T as Yn, V as rl, X as yo, Y as dl, Z as Gn, _ as bo, $ as ro, a0 as ko, a1 as Na, a2 as Ko, a3 as Go, a4 as xn, a5 as Jo, a6 as Xo, a7 as Fa, a8 as wo, a9 as ul, aa as Ba, ab as cl, ac as vn, ad as hl, ae as ml, af as vl, ag as pl, ah as Ua, ai as Jn, aj as gl, ak as _t, al as Xn, am as Qo, an as Ro, ao as Lo, ap as $o, aq as fl, ar as Io, as as yl, at as bl, au as kl, av as re, aw as wl, ax as wt, ay as Pn, az as Wa, aA as $l, aB as Sl, aC as Zo } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import "./iteration-
|
|
7
|
-
import { t as So, b as xo } from "./rule-
|
|
8
|
-
import { E as Va, u as xl } from "./employee-
|
|
5
|
+
import { d as Ln, p as Dt, w as Ta, o as Nt, i as Sn, c as _s, a as Oa, P as rn, R as In, b as Me, s as Et, e as on, f as el, h as tl, g as Aa, j as Ra, r as en, k as zt, l as so, m as La, n as nl, q as It, S as ol, t as qn, u as al, v as fo, x as kt, y as qo, z as mn, A as Qn, U as Ia, C as sl, W as Ge, B as Hn, D as ll, E as il, F as pn, G as Ao, H as an, I as qe, J as En, K as Ha, L as Ut, M as Lt, N as lo, O as io, Q as Yo, T as Yn, V as rl, X as yo, Y as dl, Z as Gn, _ as bo, $ as ro, a0 as ko, a1 as Na, a2 as Ko, a3 as Go, a4 as xn, a5 as Jo, a6 as Xo, a7 as Fa, a8 as wo, a9 as ul, aa as Ba, ab as cl, ac as vn, ad as hl, ae as ml, af as vl, ag as pl, ah as Ua, ai as Jn, aj as gl, ak as _t, al as Xn, am as Qo, an as Ro, ao as Lo, ap as $o, aq as fl, ar as Io, as as yl, at as bl, au as kl, av as re, aw as wl, ax as wt, ay as Pn, az as Wa, aA as $l, aB as Sl, aC as Zo } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-C5j3D4eF.js";
|
|
6
|
+
import "./iteration-DpHBtiyr.js";
|
|
7
|
+
import { t as So, b as xo } from "./rule-xErZqYmH.js";
|
|
8
|
+
import { E as Va, u as xl } from "./employee-DlsSqR3i.js";
|
|
9
9
|
import { c as Cl } from "./object-Dwyg2LgX.js";
|
|
10
|
-
import { R as ja, n as El, a as Un } from "./app-
|
|
10
|
+
import { R as ja, n as El, a as Un } from "./app-DKUCzcrc.js";
|
|
11
11
|
import { u as Dl } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
12
|
-
import { u as Co } from "./role-
|
|
13
|
-
import { u as Pl } from "./restaurant-
|
|
14
|
-
import { u as zl } from "./useLoading-
|
|
12
|
+
import { u as Co } from "./role-DyBVVlEA.js";
|
|
13
|
+
import { u as Pl } from "./restaurant-CDFKqEFm.js";
|
|
14
|
+
import { u as zl } from "./useLoading-BS1bnZg1.js";
|
|
15
15
|
import { useAppStore as Ml } from "@feedmepos/mf-remy-panel";
|
|
16
|
-
import { u as Tl, _ as Ol, a as Al } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-
|
|
16
|
+
import { u as Tl, _ as Ol, a as Al } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CggEy3OI.js";
|
|
17
17
|
function Rl(e) {
|
|
18
18
|
return {
|
|
19
19
|
employees: Oa(e),
|
|
@@ -2,9 +2,9 @@ import { defineComponent as S, ref as x, onMounted as N, computed as z, createEl
|
|
|
2
2
|
import { useRouter as B } from "vue-router";
|
|
3
3
|
import { useSnackbar as I } from "@feedmepos/ui-library";
|
|
4
4
|
import { useI18n as O } from "@feedmepos/mf-common";
|
|
5
|
-
import { R as L, a as T } from "./app-
|
|
6
|
-
import { aA as U, aB as H, ai as R, av as h, ax as j } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { u as K, a as q, _ as Q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { R as L, a as T } from "./app-DKUCzcrc.js";
|
|
6
|
+
import { aA as U, aB as H, ai as R, av as h, ax as j } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-C5j3D4eF.js";
|
|
7
|
+
import { u as K, a as q, _ as Q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CggEy3OI.js";
|
|
8
8
|
const W = { class: "main" }, G = {
|
|
9
9
|
id: "viewPositions",
|
|
10
10
|
class: "view"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as $, computed as v, defineComponent as X, watch as Y, nextTick as Z, resolveComponent as F, createElementBlock as d, openBlock as c, createElementVNode as A, createVNode as b, renderSlot as z, withCtx as O, createCommentVNode as x, normalizeStyle as ee, Fragment as S, createBlock as T, unref as k, renderList as R, toDisplayString as N, normalizeClass as le, withModifiers as te } from "vue";
|
|
2
2
|
import "@feedmepos/ui-library";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { a as ae } from "./app-
|
|
4
|
+
import { a as ae } from "./app-DKUCzcrc.js";
|
|
5
5
|
function ue(r, u, _ = r) {
|
|
6
6
|
const t = $(!0), C = v(() => {
|
|
7
7
|
if (!t.value && !u.value)
|
|
@@ -2,23 +2,23 @@ import { defineComponent as oe, mergeModels as Qt, useModel as es, createElement
|
|
|
2
2
|
import { useI18n as ce, useCoreStore as Xe } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as ot, useDialog as Rt, useBreakpoints as $t, components as Qe, SnackbarPosition as et } from "@feedmepos/ui-library";
|
|
4
4
|
import { u as ls } from "./useDebounce-B8ZPVS5C.js";
|
|
5
|
-
import { S as ie } from "./SelectFilter-
|
|
6
|
-
import { g as be, b as ye, a as Ct, v as ft, k as os, _ as rs, c as ns } from "./app-
|
|
5
|
+
import { S as ie } from "./SelectFilter-R7ry_GEg.js";
|
|
6
|
+
import { g as be, b as ye, a as Ct, v as ft, k as os, _ as rs, c as ns } from "./app-DKUCzcrc.js";
|
|
7
7
|
import { _ as bt } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
|
|
8
8
|
import { _ as is } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
9
|
import { s as us, _ as ms, d as ds, e as cs } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js";
|
|
10
|
-
import { u as Dt } from "./useLoading-
|
|
10
|
+
import { u as Dt } from "./useLoading-BS1bnZg1.js";
|
|
11
11
|
import { u as ps } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
12
|
-
import { w as vs, h as fs, b as bs, E as ys, t as gs } from "./member-grant-
|
|
13
|
-
import { a as Ye, i as rt, t as Me, b as He, D as Nt, E as Et, h as Te, u as hs, s as yt, c as ze, d as xs, e as gt } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-
|
|
12
|
+
import { w as vs, h as fs, b as bs, E as ys, t as gs } from "./member-grant-CEokFI3_.js";
|
|
13
|
+
import { a as Ye, i as rt, t as Me, b as He, D as Nt, E as Et, h as Te, u as hs, s as yt, c as ze, d as xs, e as gt } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fQyCtDXM.js";
|
|
14
14
|
import { n as nt } from "./string-DZQ1uNjn.js";
|
|
15
|
-
import { c as Ve } from "./iteration-
|
|
16
|
-
import { l as Le } from "./lodash-
|
|
17
|
-
import { _ as ht } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { t as Pe, u as At, y as tt, q as xt, P as st, a as Ot, p as _t, E as _s, b as Ut, c as Us } from "./rule-
|
|
19
|
-
import { t as Is, s as ws, a as It, c as ks, r as Ss, b as Vs, d as wt, _ as Ps, p as Ms } from "./RoleForm.vue_vue_type_script_setup_true_lang-
|
|
20
|
-
import { u as Lt } from "./restaurant-
|
|
21
|
-
import { u as Tt } from "./role-
|
|
15
|
+
import { c as Ve } from "./iteration-DpHBtiyr.js";
|
|
16
|
+
import { l as Le } from "./lodash-YaHCUo_F.js";
|
|
17
|
+
import { _ as ht } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-y1YcZpGA.js";
|
|
18
|
+
import { t as Pe, u as At, y as tt, q as xt, P as st, a as Ot, p as _t, E as _s, b as Ut, c as Us } from "./rule-xErZqYmH.js";
|
|
19
|
+
import { t as Is, s as ws, a as It, c as ks, r as Ss, b as Vs, d as wt, _ as Ps, p as Ms } from "./RoleForm.vue_vue_type_script_setup_true_lang-3Q8udk43.js";
|
|
20
|
+
import { u as Lt } from "./restaurant-CDFKqEFm.js";
|
|
21
|
+
import { u as Tt } from "./role-DyBVVlEA.js";
|
|
22
22
|
var Ee = /* @__PURE__ */ ((l) => (l.Update = "Update", l.Remove = "Remove", l))(Ee || {});
|
|
23
23
|
const Be = "__unassigned__";
|
|
24
24
|
function kt(l) {
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ref as d, computed as p, defineComponent as fe, onMounted as he, watch as Z, resolveComponent as u, createElementBlock as P, openBlock as E, Fragment as ee, createVNode as
|
|
2
|
-
import { d as f } from "./dayjs.min-
|
|
1
|
+
import { ref as d, computed as p, defineComponent as fe, onMounted as he, watch as Z, resolveComponent as u, createElementBlock as P, openBlock as E, Fragment as ee, createVNode as s, createElementVNode as i, unref as n, withCtx as y, createCommentVNode as ge, toDisplayString as O, createTextVNode as we, isRef as ye, renderList as _e, createBlock as te, nextTick as be } from "vue";
|
|
2
|
+
import { d as f } from "./dayjs.min-CtULWW1N.js";
|
|
3
3
|
import { useI18n as xe } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as De, components as Se } from "@feedmepos/ui-library";
|
|
5
|
-
import { S as Ve } from "./SelectFilter-
|
|
6
|
-
import { _ as Ce, a as ke } from "./app-
|
|
5
|
+
import { S as Ve } from "./SelectFilter-R7ry_GEg.js";
|
|
6
|
+
import { _ as Ce, a as ke } from "./app-DKUCzcrc.js";
|
|
7
7
|
import { _ as Fe } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
8
|
-
import { u as Me } from "./useLoading-
|
|
9
|
-
import { g as Ye, s as Le } from "./iteration-
|
|
8
|
+
import { u as Me } from "./useLoading-BS1bnZg1.js";
|
|
9
|
+
import { g as Ye, s as Le } from "./iteration-DpHBtiyr.js";
|
|
10
10
|
import { f as Te } from "./utils-BZkjJbju.js";
|
|
11
11
|
import { n as Ie } from "./string-DZQ1uNjn.js";
|
|
12
|
-
import { u as Re } from "./employee-
|
|
13
|
-
import { u as $e } from "./restaurant-
|
|
14
|
-
import { u as Ee } from "./TimesheetList.
|
|
15
|
-
function Oe(
|
|
12
|
+
import { u as Re } from "./employee-DlsSqR3i.js";
|
|
13
|
+
import { u as $e } from "./restaurant-CDFKqEFm.js";
|
|
14
|
+
import { u as Ee } from "./TimesheetList.vue_vue_type_style_index_0_scoped_d0c6fd51_lang-DBpzyQ17.js";
|
|
15
|
+
function Oe(_, a) {
|
|
16
16
|
return ["years", "months"].find((x) => {
|
|
17
|
-
const D =
|
|
18
|
-
return
|
|
17
|
+
const D = _.startOf(x), v = _.endOf(x);
|
|
18
|
+
return _.isSame(D, "day") && a.isSame(v, "day");
|
|
19
19
|
}) || "days";
|
|
20
20
|
}
|
|
21
21
|
function Ae() {
|
|
22
|
-
const
|
|
22
|
+
const _ = {
|
|
23
23
|
startDate: f().format("YYYY-MM-DD"),
|
|
24
24
|
endDate: f().format("YYYY-MM-DD")
|
|
25
|
-
}, a = d(
|
|
25
|
+
}, a = d(_), b = p(() => {
|
|
26
26
|
if (!a.value) return "No dates selected.";
|
|
27
27
|
const v = a.value.startDate ?? "Start", w = a.value.endDate ?? "End";
|
|
28
28
|
return `${v} - ${w}`;
|
|
@@ -37,7 +37,7 @@ function Ae() {
|
|
|
37
37
|
endDate: V(c).endOf(h).format("YYYY-MM-DD")
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
return { dateRange: a, parsedDateRange: x, dateRangeLabel:
|
|
40
|
+
return { dateRange: a, parsedDateRange: x, dateRangeLabel: b, setRange: D };
|
|
41
41
|
}
|
|
42
42
|
const Ke = {
|
|
43
43
|
class: "my-16 flex w-[350px] flex-col gap-40"
|
|
@@ -76,10 +76,10 @@ const Ke = {
|
|
|
76
76
|
class: "flex h-full flex-col overflow-auto"
|
|
77
77
|
}, at = /* @__PURE__ */ fe({
|
|
78
78
|
__name: "TimesheetList",
|
|
79
|
-
setup(
|
|
79
|
+
setup(_) {
|
|
80
80
|
const {
|
|
81
81
|
t: a
|
|
82
|
-
} = xe(),
|
|
82
|
+
} = xe(), b = De(), x = Me(b), D = [{
|
|
83
83
|
label: a("hr.timesheet.listView"),
|
|
84
84
|
value: "listView"
|
|
85
85
|
}, {
|
|
@@ -88,24 +88,24 @@ const Ke = {
|
|
|
88
88
|
}], v = d("listView"), w = p(() => {
|
|
89
89
|
var e;
|
|
90
90
|
return (e = D.find((t) => t.value === v.value)) == null ? void 0 : e.label;
|
|
91
|
-
}), c = d(""), h = Ee(), S = Re(), V = $e(), C = p(() => S.employees.value), ae = p(() => new Map(C.value.map((e) => [e._id, e]))), oe = p(() => new Map(V.restaurants.value.map((e) => [e._id, e.profile.code]))), j = p(() => h.timesheets.value.
|
|
92
|
-
const r = oe.value.get(
|
|
91
|
+
}), c = d(""), h = Ee(), S = Re(), V = $e(), C = p(() => S.employees.value), ae = p(() => new Map(C.value.map((e) => [e._id, e]))), oe = p(() => new Map(V.restaurants.value.map((e) => [e._id, e.profile.code]))), j = p(() => h.timesheets.value.map((l) => {
|
|
92
|
+
const r = oe.value.get(l.restaurantId), g = ae.value.get(l.user.id);
|
|
93
93
|
return {
|
|
94
|
-
...
|
|
94
|
+
...l,
|
|
95
95
|
restaurantCode: r,
|
|
96
96
|
user: {
|
|
97
|
-
...
|
|
97
|
+
...l.user,
|
|
98
98
|
code: g ? g.code : ""
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
})), z = p(() => j.value.filter((e) => {
|
|
102
|
-
var t,
|
|
103
|
-
return e.user.name.toLowerCase().includes(c.value.toLowerCase()) || e.restaurantName.toLowerCase().includes(c.value.toLowerCase()) || ((t = e.restaurantCode) == null ? void 0 : t.toLowerCase().includes(c.value.toLowerCase())) || ((
|
|
102
|
+
var t, l;
|
|
103
|
+
return e.user.name.toLowerCase().includes(c.value.toLowerCase()) || e.restaurantName.toLowerCase().includes(c.value.toLowerCase()) || ((t = e.restaurantCode) == null ? void 0 : t.toLowerCase().includes(c.value.toLowerCase())) || ((l = e.user.code) == null ? void 0 : l.toLowerCase().includes(c.value.toLowerCase()));
|
|
104
104
|
})), H = p(() => {
|
|
105
|
-
const e = Ye(j.value, (
|
|
105
|
+
const e = Ye(j.value, (l) => l.user.name), t = Object.entries(e).map(([l, r]) => {
|
|
106
106
|
const g = C.value.find(($) => $._id === r[0].user.id);
|
|
107
107
|
return {
|
|
108
|
-
key:
|
|
108
|
+
key: l,
|
|
109
109
|
user: r[0].user.name,
|
|
110
110
|
code: g ? g.code : r[0].user.code || "",
|
|
111
111
|
timesheets: r,
|
|
@@ -125,10 +125,10 @@ const Ke = {
|
|
|
125
125
|
} = M.value;
|
|
126
126
|
F.value = !0;
|
|
127
127
|
try {
|
|
128
|
-
await h.readTimesheet(new Date(e), new Date(t)), await
|
|
129
|
-
} catch (
|
|
130
|
-
|
|
131
|
-
title:
|
|
128
|
+
await h.readTimesheet(new Date(e), new Date(t), A.value), await be(), U.value = Object.fromEntries(Object.entries(new Array(H.value.length).fill(!0)));
|
|
129
|
+
} catch (l) {
|
|
130
|
+
b.open({
|
|
131
|
+
title: l instanceof Error ? l.message : `${l}`,
|
|
132
132
|
type: "error"
|
|
133
133
|
});
|
|
134
134
|
} finally {
|
|
@@ -140,7 +140,7 @@ const Ke = {
|
|
|
140
140
|
try {
|
|
141
141
|
await V.readRestaurants(), S.employees.value.length === 0 && await S.readEmployees();
|
|
142
142
|
} catch (e) {
|
|
143
|
-
console.error("Failed to load timesheet dependencies:", e),
|
|
143
|
+
console.error("Failed to load timesheet dependencies:", e), b.open({
|
|
144
144
|
message: e instanceof Error ? e.message : String(e),
|
|
145
145
|
type: "error"
|
|
146
146
|
});
|
|
@@ -154,7 +154,7 @@ const Ke = {
|
|
|
154
154
|
dateRangeLabel: le,
|
|
155
155
|
setRange: G
|
|
156
156
|
} = Ae();
|
|
157
|
-
Z(M, async () => {
|
|
157
|
+
Z([M, A], async () => {
|
|
158
158
|
N();
|
|
159
159
|
});
|
|
160
160
|
const ne = [{
|
|
@@ -172,8 +172,8 @@ const Ke = {
|
|
|
172
172
|
accessorKey: "restaurantName",
|
|
173
173
|
header: () => a("hr.timesheet.columns.restaurant"),
|
|
174
174
|
cell: (e) => {
|
|
175
|
-
const t = e.row.original.restaurantCode,
|
|
176
|
-
return `${t ? t + " - " : ""}${
|
|
175
|
+
const t = e.row.original.restaurantCode, l = e.row.original.restaurantName;
|
|
176
|
+
return `${t ? t + " - " : ""}${l}`;
|
|
177
177
|
},
|
|
178
178
|
enableSorting: !0
|
|
179
179
|
}, {
|
|
@@ -204,16 +204,16 @@ const Ke = {
|
|
|
204
204
|
cell: (e) => {
|
|
205
205
|
const t = e.row.original;
|
|
206
206
|
if (typeof t.user == "string") {
|
|
207
|
-
const
|
|
208
|
-
return
|
|
207
|
+
const l = e.row.getIsExpanded();
|
|
208
|
+
return s("div", {
|
|
209
209
|
class: "flex items-center gap-8"
|
|
210
|
-
}, [
|
|
210
|
+
}, [s("div", {
|
|
211
211
|
onClick: (r) => {
|
|
212
212
|
r.stopPropagation(), e.row.getToggleExpandedHandler()(r);
|
|
213
213
|
}
|
|
214
|
-
}, [
|
|
214
|
+
}, [s(Se.FmButton, {
|
|
215
215
|
variant: "tertiary",
|
|
216
|
-
icon:
|
|
216
|
+
icon: l ? "keyboard_arrow_up" : "keyboard_arrow_down"
|
|
217
217
|
}, null)]), t.user]);
|
|
218
218
|
}
|
|
219
219
|
},
|
|
@@ -261,56 +261,56 @@ const Ke = {
|
|
|
261
261
|
}), N(), Y.value = !1;
|
|
262
262
|
}
|
|
263
263
|
const J = (e, t) => f(e).set("h", parseInt(t.split(":")[0])).set("m", parseInt(t.split(":")[1])).toISOString();
|
|
264
|
-
return Z([L, I, T, R], ([e, t,
|
|
265
|
-
(e || t ||
|
|
264
|
+
return Z([L, I, T, R], ([e, t, l, r]) => {
|
|
265
|
+
(e || t || l || r) && (K.value = "");
|
|
266
266
|
}), (e, t) => {
|
|
267
|
-
const
|
|
268
|
-
return E(), P(ee, null, [
|
|
267
|
+
const l = u("FmAvatar"), r = u("FmDatePicker"), g = u("FmTimePicker"), $ = u("FmIcon"), k = u("FmButton"), ue = u("FmSideSheet"), Q = u("FmChip"), de = u("FmDateRangePicker"), ce = u("FmMenuItem"), me = u("FmMenu"), pe = u("FmSpacer"), ve = u("FmSearch"), W = u("FmTable");
|
|
268
|
+
return E(), P(ee, null, [s(ue, {
|
|
269
269
|
modelValue: Y.value,
|
|
270
270
|
"onUpdate:modelValue": t[5] || (t[5] = (o) => Y.value = o),
|
|
271
271
|
"dismiss-away": "",
|
|
272
272
|
header: n(a)("hr.timesheet.update.title")
|
|
273
273
|
}, {
|
|
274
|
-
"side-sheet-footer": y(() => [i("div", We, [
|
|
274
|
+
"side-sheet-footer": y(() => [i("div", We, [s(k, {
|
|
275
275
|
label: n(a)("common.update"),
|
|
276
276
|
size: "md",
|
|
277
277
|
variant: "primary",
|
|
278
278
|
onClick: ie
|
|
279
|
-
}, null, 8, ["label"]),
|
|
279
|
+
}, null, 8, ["label"]), s(k, {
|
|
280
280
|
label: n(a)("common.cancel"),
|
|
281
281
|
size: "md",
|
|
282
282
|
variant: "secondary",
|
|
283
283
|
onClick: t[4] || (t[4] = (o) => Y.value = !1)
|
|
284
284
|
}, null, 8, ["label"])])]),
|
|
285
|
-
default: y(() => [i("div", Ke, [i("div", ze, [l
|
|
285
|
+
default: y(() => [i("div", Ke, [i("div", ze, [s(l, {
|
|
286
286
|
name: m.value.user.name,
|
|
287
287
|
initials: n(Ie)(m.value.user.name),
|
|
288
288
|
size: "lg"
|
|
289
|
-
}, null, 8, ["name", "initials"]), i("div", Be, [i("div", Ne, O(n(a)("hr.timesheet.employeeName")), 1), i("div", Ue, O(m.value.user.name), 1)])]), i("div", Pe, [i("div", je, O(n(a)("hr.timesheet.update.checkIn")), 1), i("div", He, [
|
|
289
|
+
}, null, 8, ["name", "initials"]), i("div", Be, [i("div", Ne, O(n(a)("hr.timesheet.employeeName")), 1), i("div", Ue, O(m.value.user.name), 1)])]), i("div", Pe, [i("div", je, O(n(a)("hr.timesheet.update.checkIn")), 1), i("div", He, [s(r, {
|
|
290
290
|
modelValue: L.value,
|
|
291
291
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => L.value = o),
|
|
292
292
|
disabled: !1,
|
|
293
293
|
label: n(a)("hr.timesheet.update.date")
|
|
294
|
-
}, null, 8, ["modelValue", "label"]),
|
|
294
|
+
}, null, 8, ["modelValue", "label"]), s(g, {
|
|
295
295
|
modelValue: T.value,
|
|
296
296
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => T.value = o),
|
|
297
297
|
label: n(a)("hr.timesheet.update.time")
|
|
298
|
-
}, null, 8, ["modelValue", "label"])])]), i("div", Ge, [i("div", qe, O(n(a)("hr.timesheet.update.checkOut")), 1), i("div", Je, [
|
|
298
|
+
}, null, 8, ["modelValue", "label"])])]), i("div", Ge, [i("div", qe, O(n(a)("hr.timesheet.update.checkOut")), 1), i("div", Je, [s(r, {
|
|
299
299
|
modelValue: I.value,
|
|
300
300
|
"onUpdate:modelValue": t[2] || (t[2] = (o) => I.value = o),
|
|
301
301
|
disabled: !1,
|
|
302
302
|
label: n(a)("hr.timesheet.update.date")
|
|
303
|
-
}, null, 8, ["modelValue", "label"]),
|
|
303
|
+
}, null, 8, ["modelValue", "label"]), s(g, {
|
|
304
304
|
modelValue: R.value,
|
|
305
305
|
"onUpdate:modelValue": t[3] || (t[3] = (o) => R.value = o),
|
|
306
306
|
label: n(a)("hr.timesheet.update.time")
|
|
307
|
-
}, null, 8, ["modelValue", "label"])])]), K.value ? (E(), P("div", Qe, [
|
|
307
|
+
}, null, 8, ["modelValue", "label"])])]), K.value ? (E(), P("div", Qe, [s($, {
|
|
308
308
|
color: "#FF3B30",
|
|
309
309
|
name: "error",
|
|
310
310
|
size: "sm"
|
|
311
311
|
}), we(" " + O(K.value), 1)])) : ge("", !0)])]),
|
|
312
312
|
_: 1
|
|
313
|
-
}, 8, ["modelValue", "header"]), i("div", Xe, [i("div", Ze, [
|
|
313
|
+
}, 8, ["modelValue", "header"]), i("div", Xe, [i("div", Ze, [s(Ve, {
|
|
314
314
|
modelValue: A.value,
|
|
315
315
|
"onUpdate:modelValue": t[6] || (t[6] = (o) => A.value = o),
|
|
316
316
|
multiple: "",
|
|
@@ -319,45 +319,45 @@ const Ke = {
|
|
|
319
319
|
"selected-prefix": n(a)("hr.role.columns.restaurants"),
|
|
320
320
|
placeholder: n(a)("hr.role.columns.restaurants"),
|
|
321
321
|
class: "!w-auto pt-[3px]"
|
|
322
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), i("div", et, [
|
|
322
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), i("div", et, [s(de, {
|
|
323
323
|
modelValue: n(M),
|
|
324
324
|
"onUpdate:modelValue": t[7] || (t[7] = (o) => ye(M) ? M.value = o : null),
|
|
325
325
|
"show-predefined-range": ""
|
|
326
326
|
}, {
|
|
327
|
-
"trigger-button": y(() => [
|
|
327
|
+
"trigger-button": y(() => [s(Q, {
|
|
328
328
|
label: n(le)
|
|
329
329
|
}, null, 8, ["label"])]),
|
|
330
330
|
_: 1
|
|
331
|
-
}, 8, ["modelValue"]),
|
|
331
|
+
}, 8, ["modelValue"]), s(k, {
|
|
332
332
|
icon: "chevron_left",
|
|
333
333
|
variant: "tertiary",
|
|
334
334
|
onClick: t[8] || (t[8] = (o) => n(G)("subtract"))
|
|
335
|
-
}),
|
|
335
|
+
}), s(k, {
|
|
336
336
|
icon: "chevron_right",
|
|
337
337
|
variant: "tertiary",
|
|
338
338
|
onClick: t[9] || (t[9] = (o) => n(G)("add"))
|
|
339
|
-
})]),
|
|
339
|
+
})]), s(me, {
|
|
340
340
|
class: "pt-[3px]"
|
|
341
341
|
}, {
|
|
342
|
-
"menu-button": y(() => [
|
|
342
|
+
"menu-button": y(() => [s(Q, {
|
|
343
343
|
label: w.value,
|
|
344
344
|
"right-icon": "keyboard_arrow_down"
|
|
345
345
|
}, null, 8, ["label"])]),
|
|
346
|
-
default: y(() => [(E(), P(ee, null,
|
|
346
|
+
default: y(() => [(E(), P(ee, null, _e(D, (o) => s(ce, {
|
|
347
347
|
key: o.value,
|
|
348
348
|
label: o.label,
|
|
349
349
|
onClick: (X) => v.value = o.value
|
|
350
350
|
}, null, 8, ["label", "onClick"])), 64))]),
|
|
351
351
|
_: 1
|
|
352
|
-
}),
|
|
352
|
+
}), s(pe), s(ve, {
|
|
353
353
|
modelValue: c.value,
|
|
354
354
|
"onUpdate:modelValue": t[10] || (t[10] = (o) => c.value = o),
|
|
355
355
|
class: "w-[320px]",
|
|
356
356
|
placeholder: n(a)("hr.timesheet.search.placeholder")
|
|
357
|
-
}, null, 8, ["modelValue", "placeholder"])]),
|
|
357
|
+
}, null, 8, ["modelValue", "placeholder"])]), s(Ce, {
|
|
358
358
|
class: "w-full xs:px-16"
|
|
359
359
|
}, {
|
|
360
|
-
default: y(() => [i("div", tt, [
|
|
360
|
+
default: y(() => [i("div", tt, [s(Fe, {
|
|
361
361
|
"is-loading": F.value,
|
|
362
362
|
"is-empty": v.value === "listView" ? z.value.length === 0 : B.value.length === 0,
|
|
363
363
|
"collapse-at": !1,
|
|
@@ -395,7 +395,7 @@ const Ke = {
|
|
|
395
395
|
})])], 64);
|
|
396
396
|
};
|
|
397
397
|
}
|
|
398
|
-
}), gt = /* @__PURE__ */ ke(at, [["__scopeId", "data-v-
|
|
398
|
+
}), gt = /* @__PURE__ */ ke(at, [["__scopeId", "data-v-d0c6fd51"]]);
|
|
399
399
|
export {
|
|
400
400
|
gt as default
|
|
401
401
|
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { d as i } from "./dayjs.min-CtULWW1N.js";
|
|
2
|
+
import { defineStore as p, storeToRefs as T } from "pinia";
|
|
3
|
+
import { ref as l } from "vue";
|
|
4
|
+
import { b as c, g as y } from "./app-DKUCzcrc.js";
|
|
5
|
+
import { s as S } from "./iteration-DpHBtiyr.js";
|
|
6
|
+
import { i as f, f as g } from "./utils-BZkjJbju.js";
|
|
7
|
+
const u = {
|
|
8
|
+
async readTimesheets(t, s, r) {
|
|
9
|
+
return y(
|
|
10
|
+
await c().get("timesheet", {
|
|
11
|
+
params: { start: t, end: s, restaurantIds: r }
|
|
12
|
+
})
|
|
13
|
+
);
|
|
14
|
+
},
|
|
15
|
+
async updateTimesheet(t, s) {
|
|
16
|
+
await c().put(`timesheet/${t}`, s);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
function A(t) {
|
|
20
|
+
const s = t.map((r) => {
|
|
21
|
+
const { startedAt: a, endedAt: o } = r, n = i(f(a)), e = o ? i(f(o)) : null, m = (e == null ? void 0 : e.diff(n, "minute", !1)) || 0, h = e ? g(m) : "", d = "YYYY-MM-DD hh:mm a";
|
|
22
|
+
return {
|
|
23
|
+
...r,
|
|
24
|
+
start: n.format(d),
|
|
25
|
+
end: e ? e.format(d) : "",
|
|
26
|
+
totalMin: m,
|
|
27
|
+
duration: h
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
return S(s, { selector: "start" });
|
|
31
|
+
}
|
|
32
|
+
const D = p("timesheet", () => {
|
|
33
|
+
const t = l([]);
|
|
34
|
+
async function s(a, o, n) {
|
|
35
|
+
const e = await u.readTimesheets(
|
|
36
|
+
i(a).startOf("day").toISOString(),
|
|
37
|
+
i(o).endOf("day").toISOString(),
|
|
38
|
+
n
|
|
39
|
+
);
|
|
40
|
+
t.value = A(e);
|
|
41
|
+
}
|
|
42
|
+
async function r(a, o, n) {
|
|
43
|
+
await u.updateTimesheet(a.restaurantId, {
|
|
44
|
+
id: a._id,
|
|
45
|
+
startAt: o,
|
|
46
|
+
endAt: n
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
timesheets: t,
|
|
51
|
+
readTimesheet: s,
|
|
52
|
+
updateTimesheet: r
|
|
53
|
+
};
|
|
54
|
+
}), x = () => {
|
|
55
|
+
const t = D();
|
|
56
|
+
return {
|
|
57
|
+
...t,
|
|
58
|
+
...T(t)
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
x as u
|
|
63
|
+
};
|
|
@@ -20430,20 +20430,20 @@ const wt = (e) => ({
|
|
|
20430
20430
|
}
|
|
20431
20431
|
]
|
|
20432
20432
|
}
|
|
20433
|
-
}), Sh = zt(Nt(je(() => import("./Main-
|
|
20434
|
-
Nt(je(() => import("./AuditLogList-
|
|
20433
|
+
}), Sh = zt(Nt(je(() => import("./Main-BaB4vgI5.js")))), Ph = zt(Nt(je(() => import("./Main-D5wi42fp.js")))), Dh = zt(
|
|
20434
|
+
Nt(je(() => import("./AuditLogList-CA-_t77n.js")))
|
|
20435
20435
|
), Oh = zt(
|
|
20436
|
-
Nt(je(() => import("./Main-
|
|
20436
|
+
Nt(je(() => import("./Main-Bl-Ocx1G.js")))
|
|
20437
20437
|
), Mh = zt(
|
|
20438
|
-
je(() => import("./MyPosProfile-
|
|
20439
|
-
), kh = je(() => import("./ApprovalCodeList-
|
|
20440
|
-
() => import("./PermissionSetList-
|
|
20438
|
+
je(() => import("./MyPosProfile-CUG_201f.js"))
|
|
20439
|
+
), kh = je(() => import("./ApprovalCodeList-Bw0E-hZl.js")), Bh = je(() => import("./GrantUserList-Cg7ITk_M.js")), Th = je(() => import("./EmployeeList-D_bX0EhQ.js")), Eh = je(() => import("./RoleList-Cmz97HHP.js")), xh = je(() => import("./TimesheetList-DYoglTi8.js")), Rh = je(() => import("./TeamMemberList-CvDnIILn.js")), Nh = je(
|
|
20440
|
+
() => import("./PermissionSetList-kgG9H3DX.js")
|
|
20441
20441
|
), Fh = so(
|
|
20442
|
-
Nt(je(() => import("./SchedulePage-
|
|
20442
|
+
Nt(je(() => import("./SchedulePage-AVmRkFi1.js")))
|
|
20443
20443
|
), jh = so(
|
|
20444
|
-
Nt(je(() => import("./SchedulePositionPage-
|
|
20444
|
+
Nt(je(() => import("./SchedulePositionPage-3rE-O8CG.js")))
|
|
20445
20445
|
), Hh = so(
|
|
20446
|
-
Nt(je(() => import("./ScheduleGeneralPage-
|
|
20446
|
+
Nt(je(() => import("./ScheduleGeneralPage-B39k3SQH.js")))
|
|
20447
20447
|
), Gy = [
|
|
20448
20448
|
// Landing: waits for menu access, then opens the first page the user can open.
|
|
20449
20449
|
// Declared before the Employee parent (same path) so it wins the exact '/' match.
|
|
@@ -21554,7 +21554,7 @@ const Vy = /* @__PURE__ */ dt({
|
|
|
21554
21554
|
};
|
|
21555
21555
|
}
|
|
21556
21556
|
});
|
|
21557
|
-
var ks = { name: "@feedmepos/mf-hrm-portal", version: "2.3.2-dev.
|
|
21557
|
+
var ks = { name: "@feedmepos/mf-hrm-portal", version: "2.3.2-dev.7", mode: "fmmf" };
|
|
21558
21558
|
console.log(
|
|
21559
21559
|
`%c${ks.name}%c v${ks.version} %c${ks.mode}`,
|
|
21560
21560
|
"background:#1f1f1f;color:#fff;padding:2px 6px;border-radius:3px 0 0 3px",
|
package/dist/app.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as C } from "pinia";
|
|
2
2
|
import { ref as l } from "vue";
|
|
3
|
-
import { g as p, b as s } from "./app-
|
|
3
|
+
import { g as p, b as s } from "./app-DKUCzcrc.js";
|
|
4
4
|
const n = {
|
|
5
5
|
async getApprovalCodes() {
|
|
6
6
|
return p(await s("approval-codes").get(""));
|