@feedmepos/mf-hrm-portal 2.3.0-dev.13 → 2.3.0-dev.14
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-D3egZFML.js → ApprovalCodeList-C9dauQ81.js} +4 -4
- package/dist/{AuditLogList-BzbaEsSj.js → AuditLogList-zW_N_ECT.js} +17 -18
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Do52KbKm.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DJuO1qPX.js} +2 -2
- package/dist/{EmployeeList-BiM8dRwZ.js → EmployeeList-8jkHTd7q.js} +255 -267
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js → FormItem.vue_vue_type_script_setup_true_lang-CJc_g0tW.js} +6 -6
- package/dist/{GrantUserList-Dj2ms20E.js → GrantUserList-Dj55GA7O.js} +5 -5
- package/dist/{Main-C2z7Jf9A.js → Main-0TfvGJ4N.js} +5 -5
- package/dist/{Main-DmpwTPaI.js → Main-BQNkTyET.js} +9 -9
- package/dist/{Main-DklZWoKj.js → Main-CuUG6svQ.js} +2 -2
- package/dist/{PermissionSetList-C-qgCcRO.js → PermissionSetList-BsLi-TOK.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ggZB5zWW.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C2l8nWx2.js} +1014 -1014
- package/dist/{RoleList-ohfin77B.js → RoleList-DLDcyVWT.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-diuWysro.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CUXUPfRc.js} +190 -181
- package/dist/{ScheduleGeneralPage-aCljFf21.js → ScheduleGeneralPage-BhYI6O9g.js} +132 -133
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-x_-BYkcc.js → ScheduleModal.vue_vue_type_script_setup_true_lang-BLBLBtNG.js} +669 -646
- package/dist/{SchedulePage-DdMHF6kX.js → SchedulePage-DPU4taJt.js} +7407 -7359
- package/dist/{SchedulePositionPage-CID91orD.js → SchedulePositionPage-Byt6nmUj.js} +82 -84
- package/dist/{SelectFilter-CG13h83-.js → SelectFilter-1fh00OZW.js} +1 -1
- package/dist/{TeamMemberList-DJIKL4dE.js → TeamMemberList-CyUX8Afk.js} +35 -36
- package/dist/{TimesheetList-BPXWPNfT.js → TimesheetList-Q4FeNgOT.js} +52 -53
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DVcV0knM.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C3iU4Zmc.js} +2 -2
- package/dist/{app-Bz8568j8.js → app-TuHQoM7K.js} +676 -666
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DhSRKSu4.js → dayjs.min-DXnA8GYn.js} +1 -1
- package/dist/{employee-BM44u8b-.js → employee-Ctnil3cD.js} +3 -3
- package/dist/{iteration-BHDxs89d.js → iteration-BxOzv27y.js} +1 -1
- package/dist/{lodash-DgSYLwYD.js → lodash-CKT_RxJs.js} +1 -1
- package/dist/object-Dwyg2LgX.js +16 -0
- package/dist/{role-BMJ7LEHN.js → role-CNEJPyaD.js} +1 -1
- package/dist/{rule-CCo7_ckA.js → rule-FbuHv6Gh.js} +2 -2
- package/dist/src/views/scheduling/composables/onboarding-types.d.ts +2 -1
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +3 -1
- package/dist/src/views/scheduling/data.d.ts +17 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-C_Cd__n1.js → useReportPermissions-lemBrd1S.js} +3 -3
- package/package.json +1 -1
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
|
@@ -1,18 +1,17 @@
|
|
|
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-DXnA8GYn.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
|
-
import { S as De } from "./SelectFilter-
|
|
6
|
-
import { _ as Se } from "./app-
|
|
7
|
-
import { _ as
|
|
8
|
-
import { u as
|
|
9
|
-
import { g as
|
|
10
|
-
import { f as
|
|
11
|
-
import { n as
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
import { S as De } from "./SelectFilter-1fh00OZW.js";
|
|
6
|
+
import { _ as Se, a as Ve } from "./app-TuHQoM7K.js";
|
|
7
|
+
import { _ as ke } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
8
|
+
import { u as Ce } from "./useLoading-Ch1AUYT1.js";
|
|
9
|
+
import { g as Fe, s as Ye } from "./iteration-BxOzv27y.js";
|
|
10
|
+
import { f as Le } from "./utils-BZkjJbju.js";
|
|
11
|
+
import { n as Me } from "./string-VNuQNweN.js";
|
|
12
|
+
import { u as Te } from "./employee-Ctnil3cD.js";
|
|
13
|
+
import { u as Ie } from "./restaurant-BbYRA_IT.js";
|
|
14
|
+
import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C3iU4Zmc.js";
|
|
16
15
|
function $e(x, a) {
|
|
17
16
|
return ["years", "months"].find((S) => {
|
|
18
17
|
const V = x.startOf(S), p = x.endOf(S);
|
|
@@ -80,7 +79,7 @@ const Oe = {
|
|
|
80
79
|
setup(x) {
|
|
81
80
|
const {
|
|
82
81
|
t: a
|
|
83
|
-
} = _e(), D = be(), S =
|
|
82
|
+
} = _e(), D = be(), S = Ce(D), V = [{
|
|
84
83
|
label: a("hr.timesheet.listView"),
|
|
85
84
|
value: "listView"
|
|
86
85
|
}, {
|
|
@@ -89,12 +88,12 @@ const Oe = {
|
|
|
89
88
|
}], p = d("listView"), _ = g(() => {
|
|
90
89
|
var t;
|
|
91
90
|
return (t = V.find((e) => e.value === p.value)) == null ? void 0 : t.label;
|
|
92
|
-
}), c = d(""), h =
|
|
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) => {
|
|
93
92
|
var y;
|
|
94
|
-
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);
|
|
95
94
|
return {
|
|
96
95
|
...s,
|
|
97
|
-
restaurantCode:
|
|
96
|
+
restaurantCode: r,
|
|
98
97
|
user: {
|
|
99
98
|
...s.user,
|
|
100
99
|
code: w ? w.code : ""
|
|
@@ -104,17 +103,17 @@ const Oe = {
|
|
|
104
103
|
var e, s;
|
|
105
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()));
|
|
106
105
|
})), H = g(() => {
|
|
107
|
-
const t =
|
|
108
|
-
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);
|
|
109
108
|
return {
|
|
110
109
|
key: s,
|
|
111
|
-
user:
|
|
112
|
-
code: w ? w.code :
|
|
113
|
-
timesheets:
|
|
114
|
-
total:
|
|
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))
|
|
115
114
|
};
|
|
116
115
|
});
|
|
117
|
-
return
|
|
116
|
+
return Ye(e, {
|
|
118
117
|
selector: "user"
|
|
119
118
|
});
|
|
120
119
|
}), N = g(() => H.value.filter((t) => {
|
|
@@ -210,8 +209,8 @@ const Oe = {
|
|
|
210
209
|
return l("div", {
|
|
211
210
|
class: "flex items-center gap-8"
|
|
212
211
|
}, [l("div", {
|
|
213
|
-
onClick: (
|
|
214
|
-
|
|
212
|
+
onClick: (r) => {
|
|
213
|
+
r.stopPropagation(), t.row.getToggleExpandedHandler()(r);
|
|
215
214
|
}
|
|
216
215
|
}, [l(xe.FmButton, {
|
|
217
216
|
variant: "tertiary",
|
|
@@ -250,7 +249,7 @@ const Oe = {
|
|
|
250
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;
|
|
251
250
|
}
|
|
252
251
|
const T = d(), I = d(), R = d(), $ = d(), m = d(), K = d("");
|
|
253
|
-
async function
|
|
252
|
+
async function ne() {
|
|
254
253
|
const t = J(T.value, I.value), e = J(R.value, $.value);
|
|
255
254
|
if (v(t).isAfter(e)) {
|
|
256
255
|
K.value = a("hr.timesheet.checkOutMustBeforeCheckIn");
|
|
@@ -263,49 +262,49 @@ const Oe = {
|
|
|
263
262
|
}), U(), M.value = !1;
|
|
264
263
|
}
|
|
265
264
|
const J = (t, e) => v(t).set("h", parseInt(e.split(":")[0])).set("m", parseInt(e.split(":")[1])).toISOString();
|
|
266
|
-
return Z([T, R, I, $], ([t, e, s,
|
|
267
|
-
(t || e || s ||
|
|
265
|
+
return Z([T, R, I, $], ([t, e, s, r]) => {
|
|
266
|
+
(t || e || s || r) && (K.value = "");
|
|
268
267
|
}), (t, e) => {
|
|
269
|
-
const s = u("FmAvatar"),
|
|
270
|
-
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, {
|
|
271
270
|
modelValue: M.value,
|
|
272
271
|
"onUpdate:modelValue": e[5] || (e[5] = (o) => M.value = o),
|
|
273
272
|
"dismiss-away": "",
|
|
274
|
-
header:
|
|
273
|
+
header: n(a)("hr.timesheet.update.title")
|
|
275
274
|
}, {
|
|
276
275
|
"side-sheet-footer": b(() => [i("div", Je, [l(f, {
|
|
277
|
-
label:
|
|
276
|
+
label: n(a)("common.update"),
|
|
278
277
|
size: "md",
|
|
279
278
|
variant: "primary",
|
|
280
|
-
onClick:
|
|
279
|
+
onClick: ne
|
|
281
280
|
}, null, 8, ["label"]), l(f, {
|
|
282
|
-
label:
|
|
281
|
+
label: n(a)("common.cancel"),
|
|
283
282
|
size: "md",
|
|
284
283
|
variant: "secondary",
|
|
285
284
|
onClick: e[4] || (e[4] = (o) => M.value = !1)
|
|
286
285
|
}, null, 8, ["label"])])]),
|
|
287
286
|
default: b(() => [i("div", Oe, [i("div", Ae, [l(s, {
|
|
288
287
|
name: m.value.user.name,
|
|
289
|
-
initials:
|
|
288
|
+
initials: n(Me)(m.value.user.name),
|
|
290
289
|
size: "lg"
|
|
291
|
-
}, null, 8, ["name", "initials"]), i("div", Ke, [i("div", ze, O(
|
|
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, {
|
|
292
291
|
modelValue: T.value,
|
|
293
292
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => T.value = o),
|
|
294
293
|
disabled: !1,
|
|
295
|
-
label:
|
|
294
|
+
label: n(a)("hr.timesheet.update.date")
|
|
296
295
|
}, null, 8, ["modelValue", "label"]), l(w, {
|
|
297
296
|
modelValue: I.value,
|
|
298
297
|
"onUpdate:modelValue": e[1] || (e[1] = (o) => I.value = o),
|
|
299
|
-
label:
|
|
300
|
-
}, null, 8, ["modelValue", "label"])])]), i("div", je, [i("div", He, 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, {
|
|
301
300
|
modelValue: R.value,
|
|
302
301
|
"onUpdate:modelValue": e[2] || (e[2] = (o) => R.value = o),
|
|
303
302
|
disabled: !1,
|
|
304
|
-
label:
|
|
303
|
+
label: n(a)("hr.timesheet.update.date")
|
|
305
304
|
}, null, 8, ["modelValue", "label"]), l(w, {
|
|
306
305
|
modelValue: $.value,
|
|
307
306
|
"onUpdate:modelValue": e[3] || (e[3] = (o) => $.value = o),
|
|
308
|
-
label:
|
|
307
|
+
label: n(a)("hr.timesheet.update.time")
|
|
309
308
|
}, null, 8, ["modelValue", "label"])])]), K.value ? (E(), P("div", qe, [l(y, {
|
|
310
309
|
color: "#FF3B30",
|
|
311
310
|
name: "error",
|
|
@@ -318,26 +317,26 @@ const Oe = {
|
|
|
318
317
|
multiple: "",
|
|
319
318
|
items: ae.value,
|
|
320
319
|
variant: "dark",
|
|
321
|
-
"selected-prefix":
|
|
322
|
-
placeholder:
|
|
320
|
+
"selected-prefix": n(a)("hr.role.columns.restaurants"),
|
|
321
|
+
placeholder: n(a)("hr.role.columns.restaurants"),
|
|
323
322
|
class: "!w-auto pt-[3px]"
|
|
324
323
|
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), i("div", Xe, [l(ie, {
|
|
325
|
-
modelValue:
|
|
324
|
+
modelValue: n(L),
|
|
326
325
|
"onUpdate:modelValue": e[7] || (e[7] = (o) => ge(L) ? L.value = o : null),
|
|
327
326
|
"show-predefined-range": ""
|
|
328
327
|
}, {
|
|
329
328
|
"trigger-button": b(() => [l(Q, {
|
|
330
|
-
label:
|
|
329
|
+
label: n(oe)
|
|
331
330
|
}, null, 8, ["label"])]),
|
|
332
331
|
_: 1
|
|
333
332
|
}, 8, ["modelValue"]), l(f, {
|
|
334
333
|
icon: "chevron_left",
|
|
335
334
|
variant: "tertiary",
|
|
336
|
-
onClick: e[8] || (e[8] = (o) =>
|
|
335
|
+
onClick: e[8] || (e[8] = (o) => n(G)("subtract"))
|
|
337
336
|
}), l(f, {
|
|
338
337
|
icon: "chevron_right",
|
|
339
338
|
variant: "tertiary",
|
|
340
|
-
onClick: e[9] || (e[9] = (o) =>
|
|
339
|
+
onClick: e[9] || (e[9] = (o) => n(G)("add"))
|
|
341
340
|
})]), l(de, {
|
|
342
341
|
class: "pt-[3px]"
|
|
343
342
|
}, {
|
|
@@ -355,15 +354,15 @@ const Oe = {
|
|
|
355
354
|
modelValue: c.value,
|
|
356
355
|
"onUpdate:modelValue": e[10] || (e[10] = (o) => c.value = o),
|
|
357
356
|
class: "w-[320px]",
|
|
358
|
-
placeholder:
|
|
357
|
+
placeholder: n(a)("hr.timesheet.search.placeholder")
|
|
359
358
|
}, null, 8, ["modelValue", "placeholder"])]), l(Se, {
|
|
360
359
|
class: "w-full xs:px-16"
|
|
361
360
|
}, {
|
|
362
|
-
default: b(() => [i("div", Ze, [l(
|
|
361
|
+
default: b(() => [i("div", Ze, [l(ke, {
|
|
363
362
|
"is-loading": Y.value,
|
|
364
363
|
"is-empty": p.value === "listView" ? z.value.length === 0 : N.value.length === 0,
|
|
365
364
|
"collapse-at": !1,
|
|
366
|
-
title:
|
|
365
|
+
title: n(a)("hr.timesheet.noData.title"),
|
|
367
366
|
subtitle: ""
|
|
368
367
|
}, {
|
|
369
368
|
default: b(() => [p.value === "listView" ? (E(), te(W, {
|
|
@@ -397,7 +396,7 @@ const Oe = {
|
|
|
397
396
|
})])], 64);
|
|
398
397
|
};
|
|
399
398
|
}
|
|
400
|
-
}),
|
|
399
|
+
}), vt = /* @__PURE__ */ Ve(et, [["__scopeId", "data-v-63294af2"]]);
|
|
401
400
|
export {
|
|
402
|
-
|
|
401
|
+
vt as default
|
|
403
402
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as i } from "./dayjs.min-
|
|
1
|
+
import { d as i } from "./dayjs.min-DXnA8GYn.js";
|
|
2
2
|
import { defineStore as p, storeToRefs as T } from "pinia";
|
|
3
3
|
import { ref as l } from "vue";
|
|
4
4
|
import { b as c, g as y } from "./restaurant-BbYRA_IT.js";
|
|
5
|
-
import { s as S } from "./iteration-
|
|
5
|
+
import { s as S } from "./iteration-BxOzv27y.js";
|
|
6
6
|
import { i as f, f as g } from "./utils-BZkjJbju.js";
|
|
7
7
|
const u = {
|
|
8
8
|
async readTimesheets(t, e) {
|