@feedmepos/mf-hrm-portal 2.2.5-dev.8 → 2.2.5-dev.9
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-BzL73nqc.js → ApprovalCodeList-D5l9vIsE.js} +2 -2
- package/dist/{AuditLogList-BEZoHLsX.js → AuditLogList-ByTa5UJY.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DDrP7ywR.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-mNdn1TYV.js} +2 -2
- package/dist/{EmployeeList-s4FYw1ZF.js → EmployeeList-Bv6ANk-P.js} +8 -9
- package/dist/{GrantUserList-Ci_ElhHZ.js → GrantUserList-Bt8w3p4j.js} +3 -3
- package/dist/{Main-BojQuzZI.js → Main-DHJcgePj.js} +5 -5
- package/dist/{Main-N1CNGDAy.js → Main-DkP8dWgn.js} +9 -9
- package/dist/{Main-CKr3RGvf.js → Main-DqiGpT4v.js} +2 -2
- package/dist/{PermissionSetList-DLknSOzA.js → PermissionSetList-BIGv1u67.js} +10 -11
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DK2Bx8Aw.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-niywl_DX.js} +892 -893
- package/dist/{RoleList-Cm7_q5l9.js → RoleList-CH6NDKPU.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DrJ1vA88.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-T1ACkX_6.js} +39 -39
- package/dist/ScheduleButton.vue_vue_type_script_setup_true_lang-BzQuLLf5.js +690 -0
- package/dist/{ScheduleGeneralPage-CmR4BZAp.js → ScheduleGeneralPage-DJPENJZ2.js} +96 -99
- package/dist/SchedulePage-C1egcbIC.js +14421 -0
- package/dist/{SchedulePositionPage-Bv3zraaF.js → SchedulePositionPage-OhL_hsqG.js} +10 -10
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-B8W4sTsA.js +242 -0
- package/dist/{TeamMemberList-D2OfkfJP.js → TeamMemberList-BwfG3go2.js} +8 -9
- package/dist/{TimesheetList-DEdLpYuM.js → TimesheetList-DcoqzbLO.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BfMkNvCz.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RyhiKTSd.js} +2 -2
- package/dist/{app-Dmmpy4k-.js → app-BcZ6C8M8.js} +8 -8
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DcfKURXN.js → dayjs.min-Ch0iysTG.js} +1 -1
- package/dist/employee-DwYHFacQ.js +204 -0
- package/dist/{index-BxkisKEs.js → iteration-D1uWLp0V.js} +726 -698
- package/dist/{lodash-p40sRkqQ.js → lodash-DErxm7xf.js} +1 -1
- package/dist/{role-CM1urkJZ.js → role-B9VanAny.js} +3 -4
- package/dist/{rule-BPApyMJY.js → rule-C4f_Ilzr.js} +36 -37
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +5 -1
- package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +18 -2
- package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +4 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +4 -0
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +2 -2
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +4 -0
- package/dist/src/views/scheduling/composables/scheduleAutoSolver.d.ts +21 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +10 -11
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +5 -3
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +7 -1
- package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +11 -2
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +4 -1
- package/dist/src/views/scheduling/schedule-store.d.ts +25 -0
- package/dist/src/views/scheduling/types.d.ts +5 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-5EhPvVT9.js → useReportPermissions-CTr56kBo.js} +3 -3
- package/package.json +1 -1
- package/dist/ScheduleButton.vue_vue_type_script_setup_true_lang-DX5JR7bi.js +0 -600
- package/dist/SchedulePage-CN3ZsQ9E.js +0 -13905
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-Buu8NEQf.js +0 -221
- package/dist/employee-D3ZpYH4j.js +0 -139
- package/dist/index-D-VlxJu9.js +0 -70
- package/dist/iteration-CcXrOMQe.js +0 -30
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { computed as y, defineComponent as Pe, ref as V, watch as le, onMounted as Me, resolveComponent as F, createBlock as M, openBlock as v, unref as o, withCtx as g, createElementVNode as u, createVNode as c, createElementBlock as R, Fragment as P, createCommentVNode as _e, renderList as ne, normalizeClass as Ue, toDisplayString as $, h as A, createTextVNode as ge, resolveDynamicComponent as Ee, withModifiers as Ze, nextTick as De } from "vue";
|
|
2
|
-
import { e as D } from "./
|
|
2
|
+
import { e as D } from "./iteration-D1uWLp0V.js";
|
|
3
3
|
import { useI18n as Te } from "@feedmepos/mf-common";
|
|
4
4
|
import { useBreakpoints as Be, useSnackbar as je, components as ye, useDialog as es, FmButtonColorThemeVariant as ss } from "@feedmepos/ui-library";
|
|
5
|
-
import { D as ts, k as as, A as ls, S as os, _ as rs } from "./app-
|
|
5
|
+
import { D as ts, k as as, A as ls, S as os, _ as rs } from "./app-BcZ6C8M8.js";
|
|
6
6
|
import { u as ns, _ as $e } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
7
7
|
import { _ as is } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
8
|
-
import { r as ie, h as Ae, f as us, s as cs, g as Ie, e as ms, a as oe } from "./rule-
|
|
8
|
+
import { r as ie, h as Ae, f as us, s as cs, g as Ie, e as ms, a as oe } from "./rule-C4f_Ilzr.js";
|
|
9
9
|
import { u as xe } from "./restaurant-BTpBmfBV.js";
|
|
10
|
-
import { u as Oe } from "./role-
|
|
11
|
-
import { u as Ne } from "./useReportPermissions-
|
|
12
|
-
import { l as re } from "./lodash-
|
|
13
|
-
import { u as ds, _ as ps, a as Le } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { u as Oe } from "./role-B9VanAny.js";
|
|
11
|
+
import { u as Ne } from "./useReportPermissions-CTr56kBo.js";
|
|
12
|
+
import { l as re } from "./lodash-DErxm7xf.js";
|
|
13
|
+
import { u as ds, _ as ps, a as Le } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-mNdn1TYV.js";
|
|
14
14
|
import { _ as be } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
15
15
|
import { u as fs } from "./useLoading-CXzTpIVv.js";
|
|
16
16
|
function vs() {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ref as d, watch as ee, computed as C, reactive as ae, nextTick as le, defineComponent as te, createElementBlock as f, createCommentVNode as U, openBlock as y, withModifiers as ne, createElementVNode as t, createVNode as N, withCtx as $, withDirectives as H, withKeys as se, vModelText as
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
1
|
+
import { ref as d, watch as ee, computed as C, reactive as ae, nextTick as le, defineComponent as te, createElementBlock as f, createCommentVNode as U, openBlock as y, withModifiers as ne, createElementVNode as t, createVNode as N, withCtx as $, withDirectives as H, withKeys as se, vModelText as X, normalizeClass as Y, toDisplayString as m, createTextVNode as x, Fragment as Z, renderList as oe } from "vue";
|
|
2
|
+
import { X as R, a as ie, Y as de, Z as ue, $ as _, e as J, a0 as re, j as me, p as Q, _ as S } from "./ScheduleButton.vue_vue_type_script_setup_true_lang-BzQuLLf5.js";
|
|
3
|
+
function W() {
|
|
4
4
|
return R.map((a) => ({ id: a.id, name: a.name }));
|
|
5
5
|
}
|
|
6
6
|
function je() {
|
|
7
|
-
const a = d(
|
|
7
|
+
const a = d(W());
|
|
8
8
|
ee(
|
|
9
9
|
() => R.map((s) => `${s.id}:${s.name}`).join(" "),
|
|
10
10
|
() => {
|
|
11
|
-
a.value =
|
|
11
|
+
a.value = W();
|
|
12
12
|
}
|
|
13
13
|
);
|
|
14
14
|
const h = C(() => ie()), e = d(!1), l = d(""), i = d(null), g = d(""), c = d(null), v = d(!1), u = d(null);
|
|
@@ -39,11 +39,11 @@ function je() {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function L(s) {
|
|
43
43
|
const o = a.value.find((k) => k.id === s);
|
|
44
44
|
o && (i.value = s, g.value = o.name, e.value = !1, c.value = null, u.value = null);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function O() {
|
|
47
47
|
i.value = null, g.value = "";
|
|
48
48
|
}
|
|
49
49
|
async function z(s) {
|
|
@@ -65,7 +65,7 @@ function je() {
|
|
|
65
65
|
function B() {
|
|
66
66
|
c.value = null;
|
|
67
67
|
}
|
|
68
|
-
async function
|
|
68
|
+
async function F(s) {
|
|
69
69
|
v.value = !0, u.value = null;
|
|
70
70
|
try {
|
|
71
71
|
await de(s), c.value = null;
|
|
@@ -75,10 +75,10 @@ function je() {
|
|
|
75
75
|
v.value = !1;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
const
|
|
78
|
+
const K = C(() => a.value.length);
|
|
79
79
|
return {
|
|
80
80
|
positions: a,
|
|
81
|
-
count:
|
|
81
|
+
count: K,
|
|
82
82
|
isAdding: e,
|
|
83
83
|
newName: l,
|
|
84
84
|
editingId: i,
|
|
@@ -90,12 +90,12 @@ function je() {
|
|
|
90
90
|
startAdd: V,
|
|
91
91
|
cancelAdd: D,
|
|
92
92
|
confirmAdd: I,
|
|
93
|
-
startEdit:
|
|
94
|
-
cancelEdit:
|
|
93
|
+
startEdit: L,
|
|
94
|
+
cancelEdit: O,
|
|
95
95
|
saveEdit: z,
|
|
96
96
|
askDelete: j,
|
|
97
97
|
cancelDelete: B,
|
|
98
|
-
confirmDelete:
|
|
98
|
+
confirmDelete: F
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
function ce(a) {
|
|
@@ -106,7 +106,7 @@ function ce(a) {
|
|
|
106
106
|
function Be(a) {
|
|
107
107
|
const h = d(!1), e = d(""), l = d(""), i = ae({}), g = d(!1), c = d(null), v = d(null), u = d(!1), M = C(() => {
|
|
108
108
|
var r;
|
|
109
|
-
const n = new Map((((r =
|
|
109
|
+
const n = new Map((((r = J.value) == null ? void 0 : r.employees) ?? []).map((P) => [P.employeeId, P]));
|
|
110
110
|
return re.value.map((P) => {
|
|
111
111
|
var w;
|
|
112
112
|
const b = n.get(P._id), p = [
|
|
@@ -122,9 +122,9 @@ function Be(a) {
|
|
|
122
122
|
() => M.value.filter((n) => i[n.employeeId]).map((n) => n.employeeId)
|
|
123
123
|
), D = C(
|
|
124
124
|
() => E.value.length > 0 && E.value.every((n) => i[n.employeeId])
|
|
125
|
-
), I = C(() => e.value.trim().slice(0, 40)),
|
|
125
|
+
), I = C(() => e.value.trim().slice(0, 40)), L = C(
|
|
126
126
|
() => !!I.value && R.some((n) => n.name.toLowerCase() === I.value.toLowerCase())
|
|
127
|
-
),
|
|
127
|
+
), O = C(() => !!I.value && !L.value && !g.value);
|
|
128
128
|
function z() {
|
|
129
129
|
e.value = "", l.value = "", Object.keys(i).forEach((n) => delete i[n]), c.value = null, u.value = !1, v.value = null;
|
|
130
130
|
}
|
|
@@ -134,17 +134,17 @@ function Be(a) {
|
|
|
134
134
|
function B() {
|
|
135
135
|
h.value = !1, z();
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function F(n) {
|
|
138
138
|
i[n] = !i[n];
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function K() {
|
|
141
141
|
const n = !D.value;
|
|
142
142
|
E.value.forEach((r) => i[r.employeeId] = n);
|
|
143
143
|
}
|
|
144
144
|
async function s() {
|
|
145
145
|
if (!I.value)
|
|
146
146
|
return u.value = !0, !1;
|
|
147
|
-
if (!
|
|
147
|
+
if (!O.value) return !1;
|
|
148
148
|
g.value = !0, c.value = null;
|
|
149
149
|
const n = I.value;
|
|
150
150
|
try {
|
|
@@ -152,11 +152,11 @@ function Be(a) {
|
|
|
152
152
|
const r = M.value.filter((p) => i[p.employeeId]), b = (await Promise.allSettled(
|
|
153
153
|
r.map((p) => {
|
|
154
154
|
var G;
|
|
155
|
-
const w = (G =
|
|
155
|
+
const w = (G = J.value) == null ? void 0 : G.employees.find((A) => A.employeeId === p.employeeId), T = !!(w != null && w.primaryPosition), q = ((w == null ? void 0 : w.secondaryPositions) ?? []).map((A) => A.positionName);
|
|
156
156
|
return me(p.employeeId, {
|
|
157
157
|
employeeName: p.name,
|
|
158
|
-
...T ? {} : { primaryPosition:
|
|
159
|
-
secondaryPositions: (T ? [...q, n] : q).map((A) =>
|
|
158
|
+
...T ? {} : { primaryPosition: Q(n) },
|
|
159
|
+
secondaryPositions: (T ? [...q, n] : q).map((A) => Q(A)).filter((A) => !!A)
|
|
160
160
|
});
|
|
161
161
|
})
|
|
162
162
|
)).filter((p) => p.status === "rejected").length;
|
|
@@ -186,12 +186,12 @@ function Be(a) {
|
|
|
186
186
|
visible: E,
|
|
187
187
|
pickedIds: V,
|
|
188
188
|
allPicked: D,
|
|
189
|
-
nameTaken:
|
|
190
|
-
canSave:
|
|
189
|
+
nameTaken: L,
|
|
190
|
+
canSave: O,
|
|
191
191
|
openNew: j,
|
|
192
192
|
close: B,
|
|
193
|
-
toggle:
|
|
194
|
-
toggleAll:
|
|
193
|
+
toggle: F,
|
|
194
|
+
toggleAll: K,
|
|
195
195
|
save: s,
|
|
196
196
|
saveAndAnother: k,
|
|
197
197
|
another: o
|
|
@@ -213,10 +213,10 @@ const ve = {
|
|
|
213
213
|
}, ze = { class: "am-foot" }, De = {
|
|
214
214
|
key: 0,
|
|
215
215
|
class: "am-foot-btns"
|
|
216
|
-
},
|
|
216
|
+
}, Le = {
|
|
217
217
|
key: 1,
|
|
218
218
|
class: "am-foot-btns"
|
|
219
|
-
},
|
|
219
|
+
}, Fe = /* @__PURE__ */ te({
|
|
220
220
|
__name: "ScheduleAddPositionModal",
|
|
221
221
|
props: {
|
|
222
222
|
modal: {}
|
|
@@ -278,17 +278,17 @@ const ve = {
|
|
|
278
278
|
H(t("input", {
|
|
279
279
|
id: "skName",
|
|
280
280
|
"onUpdate:modelValue": e[1] || (e[1] = (l) => a.modal.name.value = l),
|
|
281
|
-
class: "
|
|
281
|
+
class: "sch-input ce-input",
|
|
282
282
|
maxlength: "40",
|
|
283
283
|
placeholder: "e.g. FOH, Kitchen, Manager, Cashier…",
|
|
284
284
|
autocomplete: "off",
|
|
285
285
|
onInput: e[2] || (e[2] = (l) => a.modal.nameError.value = !1),
|
|
286
286
|
onKeyup: e[3] || (e[3] = se((l) => a.modal.save(), ["enter"]))
|
|
287
287
|
}, null, 544), [
|
|
288
|
-
[
|
|
288
|
+
[X, a.modal.name.value]
|
|
289
289
|
]),
|
|
290
290
|
t("div", {
|
|
291
|
-
class:
|
|
291
|
+
class: Y(["ce-err", { show: a.modal.nameError.value || a.modal.nameTaken.value }])
|
|
292
292
|
}, m(a.modal.nameTaken.value ? "A position with this name already exists" : "Give the position a name"), 3)
|
|
293
293
|
]),
|
|
294
294
|
t("div", ke, [
|
|
@@ -310,20 +310,20 @@ const ve = {
|
|
|
310
310
|
]),
|
|
311
311
|
H(t("input", {
|
|
312
312
|
"onUpdate:modelValue": e[5] || (e[5] = (l) => a.modal.search.value = l),
|
|
313
|
-
class: "
|
|
313
|
+
class: "sch-input ce-input asg-search",
|
|
314
314
|
placeholder: "Search team…",
|
|
315
315
|
autocomplete: "off"
|
|
316
316
|
}, null, 512), [
|
|
317
|
-
[
|
|
317
|
+
[X, a.modal.search.value]
|
|
318
318
|
]),
|
|
319
319
|
t("div", we, [
|
|
320
|
-
(y(!0), f(
|
|
320
|
+
(y(!0), f(Z, null, oe(a.modal.visible.value, (l) => (y(), f("label", {
|
|
321
321
|
key: l.employeeId,
|
|
322
322
|
class: "asg-row"
|
|
323
323
|
}, [
|
|
324
324
|
t("input", {
|
|
325
325
|
type: "checkbox",
|
|
326
|
-
class: "
|
|
326
|
+
class: "sch-checkbox asg-check",
|
|
327
327
|
checked: !!a.modal.picks[l.employeeId],
|
|
328
328
|
onChange: (i) => a.modal.toggle(l.employeeId),
|
|
329
329
|
"data-platform": "desktop"
|
|
@@ -332,7 +332,7 @@ const ve = {
|
|
|
332
332
|
t("span", Ee, [
|
|
333
333
|
t("span", Ie, m(l.name), 1),
|
|
334
334
|
t("span", Ae, [
|
|
335
|
-
l.held.length ? (y(), f(
|
|
335
|
+
l.held.length ? (y(), f(Z, { key: 0 }, [
|
|
336
336
|
x(m(l.held.join(", ")), 1)
|
|
337
337
|
], 64)) : (y(), f("i", Ne, "No positions added"))
|
|
338
338
|
])
|
|
@@ -343,13 +343,13 @@ const ve = {
|
|
|
343
343
|
e[16] || (e[16] = t("div", { class: "ce-hint" }, "Ticked people can work this position.", -1))
|
|
344
344
|
]),
|
|
345
345
|
t("div", {
|
|
346
|
-
class:
|
|
346
|
+
class: Y(["ce-err", { show: !!a.modal.error.value }])
|
|
347
347
|
}, m(a.modal.error.value), 3)
|
|
348
348
|
]))
|
|
349
349
|
]),
|
|
350
350
|
t("div", ze, [
|
|
351
351
|
e[22] || (e[22] = t("div", { class: "am-cost-preview" }, null, -1)),
|
|
352
|
-
a.modal.done.value ? (y(), f("div",
|
|
352
|
+
a.modal.done.value ? (y(), f("div", Le, [
|
|
353
353
|
N(S, {
|
|
354
354
|
hierarchy: "secondary",
|
|
355
355
|
size: "sm",
|
|
@@ -420,7 +420,7 @@ const ve = {
|
|
|
420
420
|
}
|
|
421
421
|
});
|
|
422
422
|
export {
|
|
423
|
-
|
|
423
|
+
Fe as _,
|
|
424
424
|
Be as a,
|
|
425
425
|
je as u
|
|
426
426
|
};
|