@feedmepos/mf-hrm-portal 2.3.0-dev.14 → 2.3.0-dev.16
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-C9dauQ81.js → ApprovalCodeList-NeNAiyOr.js} +4 -4
- package/dist/{AuditLogList-zW_N_ECT.js → AuditLogList-Pv9kFjBr.js} +4 -4
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DJuO1qPX.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DWfp8X80.js} +2 -2
- package/dist/{EmployeeList-8jkHTd7q.js → EmployeeList-Bs9lymzV.js} +6 -6
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CJc_g0tW.js → FormItem.vue_vue_type_script_setup_true_lang-Cb22fFWE.js} +1 -1
- package/dist/{GrantUserList-Dj55GA7O.js → GrantUserList-dTWAmoUv.js} +5 -5
- package/dist/{Main-BQNkTyET.js → Main-C_RrWM3c.js} +9 -9
- package/dist/{Main-CuUG6svQ.js → Main-Cp40vaRW.js} +2 -2
- package/dist/{Main-0TfvGJ4N.js → Main-D_iKA3Se.js} +5 -5
- package/dist/{PermissionSetList-BsLi-TOK.js → PermissionSetList-D9uTEllI.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C2l8nWx2.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-vbO5PdcM.js} +1353 -1353
- package/dist/{RoleList-DLDcyVWT.js → RoleList-DyoCd2jX.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CUXUPfRc.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-D0Mg9P_m.js} +111 -111
- package/dist/{ScheduleGeneralPage-BhYI6O9g.js → ScheduleGeneralPage-DyIBUXY1.js} +86 -87
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-BLBLBtNG.js → ScheduleModal.vue_vue_type_script_setup_true_lang-CJMPrPHl.js} +931 -823
- package/dist/SchedulePage-BkvOpOVt.js +18757 -0
- package/dist/{SchedulePositionPage-Byt6nmUj.js → SchedulePositionPage-DE5XxDl2.js} +16 -16
- package/dist/{SelectFilter-1fh00OZW.js → SelectFilter-D27X9BNI.js} +1 -1
- package/dist/{TeamMemberList-CyUX8Afk.js → TeamMemberList-YudsADAP.js} +7 -7
- package/dist/{TimesheetList-Q4FeNgOT.js → TimesheetList-CQXDulxg.js} +6 -6
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C3iU4Zmc.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CWHjolT4.js} +2 -2
- package/dist/{app-TuHQoM7K.js → app-BMVAE__n.js} +1535 -1283
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DXnA8GYn.js → dayjs.min-6iMvK3bi.js} +1 -1
- package/dist/{employee-Ctnil3cD.js → employee-kAmYgyIB.js} +3 -3
- package/dist/{iteration-BxOzv27y.js → iteration-kNseYv0g.js} +1 -1
- package/dist/{lodash-CKT_RxJs.js → lodash-CoGtJ4ls.js} +1 -1
- package/dist/{role-CNEJPyaD.js → role-BvQeAAsI.js} +1 -1
- package/dist/{rule-FbuHv6Gh.js → rule-DkjcuvBR.js} +2 -2
- package/dist/src/views/audit-log/locales/index.d.ts +252 -0
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +1 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +6 -0
- package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +13 -1
- package/dist/src/views/scheduling/composables/schedule-error.d.ts +3 -0
- package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +22 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +5 -2
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +3 -11
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +7 -0
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +45 -1
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +10 -0
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +2 -2
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +14 -6
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +3 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +0 -2
- package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +23 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +160 -3
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +44 -0
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +2 -2
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +22 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +26 -2
- package/dist/src/views/scheduling/country-rules/index.d.ts +8 -3
- package/dist/src/views/scheduling/schedule-store.d.ts +7 -7
- 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-lemBrd1S.js → useReportPermissions-CbnelOLy.js} +3 -3
- package/package.json +3 -3
- package/dist/SchedulePage-DPU4taJt.js +0 -18041
|
@@ -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 "./iteration-
|
|
2
|
+
import { e as D } from "./iteration-kNseYv0g.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-BMVAE__n.js";
|
|
6
6
|
import { _ as $e } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
|
|
7
7
|
import { _ as ns } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
8
|
-
import { r as ie, h as Ae, f as is, s as us, g as Ie, e as cs, a as oe } from "./rule-
|
|
8
|
+
import { r as ie, h as Ae, f as is, s as us, g as Ie, e as cs, a as oe } from "./rule-DkjcuvBR.js";
|
|
9
9
|
import { u as xe } from "./restaurant-BbYRA_IT.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 ms, _ as ds, a as Le } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { u as Oe } from "./role-BvQeAAsI.js";
|
|
11
|
+
import { u as Ne } from "./useReportPermissions-CbnelOLy.js";
|
|
12
|
+
import { l as re } from "./lodash-CoGtJ4ls.js";
|
|
13
|
+
import { u as ms, _ as ds, a as Le } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DWfp8X80.js";
|
|
14
14
|
import { _ as be } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
15
15
|
import { u as ps } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
16
16
|
import { u as fs } from "./useLoading-Ch1AUYT1.js";
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { ref as h, watch as ne, computed as S, reactive as Ie, nextTick as be, defineComponent as Pe, createBlock as Q, openBlock as b, withCtx as C, createElementVNode as n, createVNode as R, toDisplayString as f, unref as q, createElementBlock as N, withDirectives as se, withKeys as we, vModelText as oe, normalizeClass as ie, createTextVNode as M, createCommentVNode as G, Fragment as de, renderList as Ne } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { useI18n as
|
|
2
|
+
import { au as X, p as z, ax as $e, ay as me, az as pe, u as Ce, aA as Se, I as W, e as H, at as Ae, ar as O } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-CJMPrPHl.js";
|
|
3
|
+
import { useI18n as Ee } from "@feedmepos/mf-common";
|
|
4
4
|
function ue() {
|
|
5
5
|
return X.map((e) => ({ id: e.id, name: e.name }));
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function ta(e = {}) {
|
|
8
8
|
const s = h(ue());
|
|
9
9
|
ne(
|
|
10
|
-
() => X.map((
|
|
10
|
+
() => X.map((i) => `${i.id}:${i.name}`).join(" "),
|
|
11
11
|
() => {
|
|
12
12
|
s.value = ue();
|
|
13
13
|
}
|
|
14
14
|
), ne(
|
|
15
15
|
() => {
|
|
16
|
-
var
|
|
17
|
-
return (((
|
|
16
|
+
var i;
|
|
17
|
+
return (((i = z.value) == null ? void 0 : i.positions) ?? []).map((m) => `${m.id}:${m.name}`).join(" ");
|
|
18
18
|
},
|
|
19
19
|
() => {
|
|
20
|
-
var
|
|
21
|
-
s.value = (((
|
|
20
|
+
var i;
|
|
21
|
+
s.value = (((i = z.value) == null ? void 0 : i.positions) ?? []).map((m) => ({ id: m.id, name: m.name }));
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
const g = h(!1), a = h(""), t = h(null), c = h(!1), k = h(null);
|
|
25
|
-
function A(
|
|
25
|
+
function A(i) {
|
|
26
26
|
var m;
|
|
27
27
|
return (((m = z.value) == null ? void 0 : m.employees) ?? []).filter(
|
|
28
28
|
(P) => {
|
|
29
29
|
var I;
|
|
30
|
-
return ((I = P.primaryPosition) == null ? void 0 : I.positionId) ===
|
|
30
|
+
return ((I = P.primaryPosition) == null ? void 0 : I.positionId) === i || P.secondaryPositions.some((V) => V.positionId === i);
|
|
31
31
|
}
|
|
32
32
|
).length;
|
|
33
33
|
}
|
|
34
|
-
function j(
|
|
35
|
-
return s.value.some((m) => m.name.toLowerCase() ===
|
|
34
|
+
function j(i) {
|
|
35
|
+
return s.value.some((m) => m.name.toLowerCase() === i.toLowerCase());
|
|
36
36
|
}
|
|
37
37
|
function F() {
|
|
38
38
|
g.value = !0, a.value = "", t.value = null, k.value = null;
|
|
@@ -42,11 +42,11 @@ function la(e = {}) {
|
|
|
42
42
|
}
|
|
43
43
|
async function D() {
|
|
44
44
|
var m, P;
|
|
45
|
-
const
|
|
46
|
-
if (!(!
|
|
45
|
+
const i = a.value.trim().slice(0, 40);
|
|
46
|
+
if (!(!i || j(i))) {
|
|
47
47
|
c.value = !0, k.value = null;
|
|
48
48
|
try {
|
|
49
|
-
await me({ name:
|
|
49
|
+
await me({ name: i }), g.value = !1, a.value = "", (m = e.notify) == null || m.call(e, "Position added", "success");
|
|
50
50
|
} catch (I) {
|
|
51
51
|
k.value = I instanceof Error ? I.message : "Could not add this position", (P = e.notify) == null || P.call(e, k.value, "error");
|
|
52
52
|
} finally {
|
|
@@ -54,17 +54,17 @@ function la(e = {}) {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
function E(
|
|
58
|
-
t.value =
|
|
57
|
+
function E(i) {
|
|
58
|
+
t.value = i;
|
|
59
59
|
}
|
|
60
60
|
function p() {
|
|
61
61
|
t.value = null;
|
|
62
62
|
}
|
|
63
|
-
async function L(
|
|
63
|
+
async function L(i) {
|
|
64
64
|
var m, P;
|
|
65
65
|
c.value = !0, k.value = null;
|
|
66
66
|
try {
|
|
67
|
-
await $e(
|
|
67
|
+
await $e(i), s.value = s.value.filter((I) => I.id !== i), t.value = null, (m = e.notify) == null || m.call(e, "Position removed", "success");
|
|
68
68
|
} catch (I) {
|
|
69
69
|
k.value = I instanceof Error ? I.message : "Could not delete this position", (P = e.notify) == null || P.call(e, k.value, "error");
|
|
70
70
|
} finally {
|
|
@@ -89,32 +89,29 @@ function la(e = {}) {
|
|
|
89
89
|
confirmDelete: L
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function xe(e) {
|
|
93
93
|
var g;
|
|
94
94
|
const s = e.trim().split(/\s+/).filter(Boolean);
|
|
95
95
|
return s.length ? (s[0][0] + (((g = s[1]) == null ? void 0 : g[0]) ?? "")).toUpperCase() : "??";
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function na(e, s = {}) {
|
|
98
98
|
const g = h(!1), a = h(""), t = h(""), c = Ie({}), k = h(!1), A = h(null), j = h(null), F = h(!1), $ = h(null);
|
|
99
99
|
let D = "", E = /* @__PURE__ */ new Set();
|
|
100
100
|
const p = S(() => {
|
|
101
101
|
var r;
|
|
102
|
-
const l = new Map((((r = z.value) == null ? void 0 : r.employees) ?? []).map((
|
|
103
|
-
return pe.value.map((
|
|
104
|
-
var T
|
|
105
|
-
const
|
|
106
|
-
(T =
|
|
107
|
-
...((
|
|
108
|
-
].filter((
|
|
109
|
-
(v = i == null ? void 0 : i.primaryPosition) == null ? void 0 : v.positionId,
|
|
110
|
-
...((i == null ? void 0 : i.secondaryPositions) ?? []).map((u) => u.positionId)
|
|
111
|
-
].filter((u) => !!u);
|
|
102
|
+
const l = new Map((((r = z.value) == null ? void 0 : r.employees) ?? []).map((v) => [v.employeeId, v]));
|
|
103
|
+
return pe.value.map((v) => {
|
|
104
|
+
var T;
|
|
105
|
+
const d = l.get(v._id), x = [d == null ? void 0 : d.primaryPosition, ...(d == null ? void 0 : d.secondaryPositions) ?? []].map((o) => Ce(o)).filter((o) => !!o), u = [
|
|
106
|
+
(T = d == null ? void 0 : d.primaryPosition) == null ? void 0 : T.positionId,
|
|
107
|
+
...((d == null ? void 0 : d.secondaryPositions) ?? []).map((o) => o.positionId)
|
|
108
|
+
].filter((o) => !!o);
|
|
112
109
|
return {
|
|
113
|
-
employeeId:
|
|
114
|
-
name:
|
|
115
|
-
initials:
|
|
110
|
+
employeeId: v._id,
|
|
111
|
+
name: v.name,
|
|
112
|
+
initials: xe(v.name),
|
|
116
113
|
held: x,
|
|
117
|
-
heldPositionIds:
|
|
114
|
+
heldPositionIds: u
|
|
118
115
|
};
|
|
119
116
|
});
|
|
120
117
|
}), L = S(() => {
|
|
@@ -122,7 +119,7 @@ function ta(e, s = {}) {
|
|
|
122
119
|
return p.value.filter((r) => !l || r.name.toLowerCase().includes(l));
|
|
123
120
|
}), J = S(
|
|
124
121
|
() => p.value.filter((l) => c[l.employeeId]).map((l) => l.employeeId)
|
|
125
|
-
),
|
|
122
|
+
), i = S(
|
|
126
123
|
() => L.value.length > 0 && L.value.every((l) => c[l.employeeId])
|
|
127
124
|
), m = S(() => a.value.trim().slice(0, 40)), P = S(
|
|
128
125
|
() => !!m.value && X.some(
|
|
@@ -137,8 +134,8 @@ function ta(e, s = {}) {
|
|
|
137
134
|
}
|
|
138
135
|
function re(l, r) {
|
|
139
136
|
V(), $.value = l, a.value = r, D = r, E = new Set(
|
|
140
|
-
p.value.filter((
|
|
141
|
-
), E.forEach((
|
|
137
|
+
p.value.filter((v) => v.heldPositionIds.includes(l)).map((v) => v.employeeId)
|
|
138
|
+
), E.forEach((v) => c[v] = !0), g.value = !0;
|
|
142
139
|
}
|
|
143
140
|
function ve() {
|
|
144
141
|
g.value = !1, V();
|
|
@@ -147,77 +144,77 @@ function ta(e, s = {}) {
|
|
|
147
144
|
c[l] = !c[l];
|
|
148
145
|
}
|
|
149
146
|
function fe() {
|
|
150
|
-
if (
|
|
147
|
+
if (i.value) {
|
|
151
148
|
Object.keys(c).forEach((l) => delete c[l]);
|
|
152
149
|
return;
|
|
153
150
|
}
|
|
154
151
|
L.value.forEach((l) => c[l.employeeId] = !0);
|
|
155
152
|
}
|
|
156
153
|
function Y(l, r) {
|
|
157
|
-
const
|
|
158
|
-
positionId:
|
|
159
|
-
positionName:
|
|
160
|
-
})), x =
|
|
154
|
+
const v = !!(l != null && l.primaryPosition), d = ((l == null ? void 0 : l.secondaryPositions) ?? []).map((u) => ({
|
|
155
|
+
positionId: u.positionId,
|
|
156
|
+
positionName: u.positionName
|
|
157
|
+
})), x = v ? [...d, { positionName: r }] : d;
|
|
161
158
|
return {
|
|
162
|
-
...
|
|
163
|
-
secondaryPositions: x.map((
|
|
159
|
+
...v ? {} : { primaryPosition: H(r) },
|
|
160
|
+
secondaryPositions: x.map((u) => H(u.positionName, u.positionId)).filter((u) => !!u)
|
|
164
161
|
};
|
|
165
162
|
}
|
|
166
163
|
async function he() {
|
|
167
164
|
var x;
|
|
168
165
|
const l = m.value;
|
|
169
166
|
await me({ name: l }), await be(), e == null || e(l);
|
|
170
|
-
const r = p.value.filter((
|
|
171
|
-
r.map((
|
|
172
|
-
var
|
|
173
|
-
const T = (
|
|
174
|
-
return W(
|
|
175
|
-
employeeName:
|
|
167
|
+
const r = p.value.filter((u) => c[u.employeeId]), d = (await Promise.allSettled(
|
|
168
|
+
r.map((u) => {
|
|
169
|
+
var o;
|
|
170
|
+
const T = (o = z.value) == null ? void 0 : o.employees.find((y) => y.employeeId === u.employeeId);
|
|
171
|
+
return W(u.employeeId, {
|
|
172
|
+
employeeName: u.name,
|
|
176
173
|
...Y(T, l)
|
|
177
174
|
});
|
|
178
175
|
})
|
|
179
|
-
)).filter((
|
|
180
|
-
return j.value = { name: l, assigned: r.length -
|
|
176
|
+
)).filter((u) => u.status === "rejected").length;
|
|
177
|
+
return j.value = { name: l, assigned: r.length - d, failed: d }, (x = s.notify) == null || x.call(
|
|
181
178
|
s,
|
|
182
|
-
|
|
183
|
-
|
|
179
|
+
d ? `Position added, but ${d} employee assignment${d === 1 ? "" : "s"} failed` : "Position added",
|
|
180
|
+
d ? "error" : "success"
|
|
184
181
|
), !0;
|
|
185
182
|
}
|
|
186
183
|
async function ge(l) {
|
|
187
184
|
var T;
|
|
188
185
|
const r = m.value;
|
|
189
|
-
await
|
|
190
|
-
const
|
|
191
|
-
(
|
|
192
|
-
),
|
|
193
|
-
(
|
|
194
|
-
),
|
|
195
|
-
...
|
|
186
|
+
await Se(l, { name: r }), e == null || e(r);
|
|
187
|
+
const v = p.value.filter(
|
|
188
|
+
(o) => c[o.employeeId] && !E.has(o.employeeId)
|
|
189
|
+
), d = p.value.filter(
|
|
190
|
+
(o) => !c[o.employeeId] && E.has(o.employeeId)
|
|
191
|
+
), u = (await Promise.allSettled([
|
|
192
|
+
...v.map((o) => {
|
|
196
193
|
var K;
|
|
197
|
-
const
|
|
198
|
-
return W(
|
|
199
|
-
employeeName:
|
|
200
|
-
...Y(
|
|
194
|
+
const y = (K = z.value) == null ? void 0 : K.employees.find((U) => U.employeeId === o.employeeId);
|
|
195
|
+
return W(o.employeeId, {
|
|
196
|
+
employeeName: o.name,
|
|
197
|
+
...Y(y, r)
|
|
201
198
|
});
|
|
202
199
|
}),
|
|
203
|
-
...
|
|
200
|
+
...d.map((o) => {
|
|
204
201
|
var ee, ae, le, te;
|
|
205
|
-
const
|
|
202
|
+
const y = (ee = z.value) == null ? void 0 : ee.employees.find((w) => w.employeeId === o.employeeId), K = ((y == null ? void 0 : y.secondaryPositions) ?? []).filter(
|
|
206
203
|
(w) => w.positionId !== l && (w.positionId || w.positionName !== D)
|
|
207
|
-
), U = ((ae =
|
|
208
|
-
return W(
|
|
209
|
-
employeeName:
|
|
204
|
+
), U = ((ae = y == null ? void 0 : y.primaryPosition) == null ? void 0 : ae.positionId) === l || !((le = y == null ? void 0 : y.primaryPosition) != null && le.positionId) && ((te = y == null ? void 0 : y.primaryPosition) == null ? void 0 : te.positionName) === D, B = U ? K.shift() : void 0;
|
|
205
|
+
return W(o.employeeId, {
|
|
206
|
+
employeeName: o.name,
|
|
210
207
|
...U ? {
|
|
211
208
|
primaryPosition: H(B == null ? void 0 : B.positionName, B == null ? void 0 : B.positionId) ?? null
|
|
212
209
|
} : {},
|
|
213
210
|
secondaryPositions: K.map((w) => H(w.positionName, w.positionId)).filter((w) => !!w)
|
|
214
211
|
});
|
|
215
212
|
})
|
|
216
|
-
])).filter((
|
|
217
|
-
return j.value = { name: r, assigned: Math.max(0,
|
|
213
|
+
])).filter((o) => o.status === "rejected").length;
|
|
214
|
+
return j.value = { name: r, assigned: Math.max(0, v.length - u), failed: u }, (T = s.notify) == null || T.call(
|
|
218
215
|
s,
|
|
219
|
-
|
|
220
|
-
|
|
216
|
+
u ? `Position updated, but ${u} employee assignment${u === 1 ? "" : "s"} failed` : "Position updated",
|
|
217
|
+
u ? "error" : "success"
|
|
221
218
|
), !0;
|
|
222
219
|
}
|
|
223
220
|
async function Z() {
|
|
@@ -252,7 +249,7 @@ function ta(e, s = {}) {
|
|
|
252
249
|
people: p,
|
|
253
250
|
visible: L,
|
|
254
251
|
pickedIds: J,
|
|
255
|
-
allPicked:
|
|
252
|
+
allPicked: i,
|
|
256
253
|
nameTaken: P,
|
|
257
254
|
canSave: I,
|
|
258
255
|
editingId: $,
|
|
@@ -266,33 +263,33 @@ function ta(e, s = {}) {
|
|
|
266
263
|
another: _
|
|
267
264
|
};
|
|
268
265
|
}
|
|
269
|
-
const
|
|
266
|
+
const Te = { class: "am-head" }, Me = {
|
|
270
267
|
id: "schedule-position-title",
|
|
271
268
|
class: "am-title"
|
|
272
|
-
},
|
|
269
|
+
}, Oe = { class: "ce-body" }, ze = { key: 0 }, je = { class: "ce-field" }, De = {
|
|
273
270
|
class: "ce-field asg-field",
|
|
274
271
|
style: { "margin-bottom": "0" }
|
|
275
|
-
},
|
|
272
|
+
}, Le = { class: "asg-head" }, Ve = { class: "asg-count" }, Be = { class: "asg-list position-asg-list" }, Fe = ["checked", "onChange"], Ke = { class: "asg-av" }, Re = { class: "asg-id" }, Ue = ["title"], qe = { class: "asg-sub" }, Ge = { key: 1 }, He = {
|
|
276
273
|
key: 0,
|
|
277
274
|
class: "asg-sub",
|
|
278
275
|
style: { padding: "10px" }
|
|
279
|
-
},
|
|
276
|
+
}, Je = { key: 1 }, Qe = { class: "cg-done" }, We = { class: "cg-st-main" }, Xe = {
|
|
280
277
|
key: 0,
|
|
281
278
|
class: "cg-done-also"
|
|
282
|
-
},
|
|
279
|
+
}, Ye = { class: "am-foot" }, Ze = {
|
|
283
280
|
key: 0,
|
|
284
281
|
class: "am-foot-btns"
|
|
285
|
-
},
|
|
282
|
+
}, _e = {
|
|
286
283
|
key: 1,
|
|
287
284
|
class: "am-foot-btns"
|
|
288
|
-
},
|
|
285
|
+
}, sa = /* @__PURE__ */ Pe({
|
|
289
286
|
__name: "ScheduleAddPositionModal",
|
|
290
287
|
props: {
|
|
291
288
|
modal: {}
|
|
292
289
|
},
|
|
293
290
|
setup(e) {
|
|
294
|
-
const { t: s } =
|
|
295
|
-
return (g, a) => (b(), Q(
|
|
291
|
+
const { t: s } = Ee();
|
|
292
|
+
return (g, a) => (b(), Q(Ae, {
|
|
296
293
|
open: e.modal.open.value,
|
|
297
294
|
"panel-class": "ce-modal",
|
|
298
295
|
"panel-style": "width: min(480px, 95vw)",
|
|
@@ -300,8 +297,8 @@ const xe = { class: "am-head" }, Te = {
|
|
|
300
297
|
onClose: a[11] || (a[11] = (t) => e.modal.close())
|
|
301
298
|
}, {
|
|
302
299
|
default: C(() => [
|
|
303
|
-
n("div",
|
|
304
|
-
n("div",
|
|
300
|
+
n("div", Te, [
|
|
301
|
+
n("div", Me, f(e.modal.editingId.value ? q(s)("scheduling.positionModal.editTitle") : q(s)("scheduling.positionModal.addTitle")), 1),
|
|
305
302
|
R(O, {
|
|
306
303
|
hierarchy: "ghost",
|
|
307
304
|
size: "xs",
|
|
@@ -328,21 +325,21 @@ const xe = { class: "am-head" }, Te = {
|
|
|
328
325
|
_: 1
|
|
329
326
|
})
|
|
330
327
|
]),
|
|
331
|
-
n("div",
|
|
332
|
-
e.modal.done.value ? (b(), N("div",
|
|
333
|
-
n("div",
|
|
328
|
+
n("div", Oe, [
|
|
329
|
+
e.modal.done.value ? (b(), N("div", Je, [
|
|
330
|
+
n("div", Qe, [
|
|
334
331
|
a[16] || (a[16] = n("span", {
|
|
335
332
|
class: "cg-done-tick",
|
|
336
333
|
"aria-hidden": "true"
|
|
337
334
|
}, "✓", -1)),
|
|
338
|
-
n("div",
|
|
335
|
+
n("div", We, [
|
|
339
336
|
n("b", null, f(e.modal.done.value.name), 1),
|
|
340
337
|
n("small", null, f(e.modal.editingId.value ? "Position updated" : e.modal.done.value.assigned ? `Added to ${e.modal.done.value.assigned} ${e.modal.done.value.assigned === 1 ? "employee" : "employees"}` : "Position added"), 1)
|
|
341
338
|
])
|
|
342
339
|
]),
|
|
343
|
-
e.modal.done.value.failed ? (b(), N("div",
|
|
344
|
-
])) : (b(), N("div",
|
|
345
|
-
n("div",
|
|
340
|
+
e.modal.done.value.failed ? (b(), N("div", Xe, f(e.modal.done.value.failed) + " " + f(e.modal.done.value.failed === 1 ? "employee" : "employees") + " could not be updated. Add the position to them from their profile. ", 1)) : G("", !0)
|
|
341
|
+
])) : (b(), N("div", ze, [
|
|
342
|
+
n("div", je, [
|
|
346
343
|
a[13] || (a[13] = n("label", {
|
|
347
344
|
class: "ce-label",
|
|
348
345
|
for: "skName"
|
|
@@ -363,8 +360,8 @@ const xe = { class: "am-head" }, Te = {
|
|
|
363
360
|
class: ie(["ce-err", { show: e.modal.nameError.value || e.modal.nameTaken.value }])
|
|
364
361
|
}, f(e.modal.nameTaken.value ? "A position with this name already exists" : "Give the position a name"), 3)
|
|
365
362
|
]),
|
|
366
|
-
n("div",
|
|
367
|
-
n("div",
|
|
363
|
+
n("div", De, [
|
|
364
|
+
n("div", Le, [
|
|
368
365
|
a[14] || (a[14] = n("span", { class: "asg-lbl" }, "Employees with this position", -1)),
|
|
369
366
|
R(O, {
|
|
370
367
|
hierarchy: "ghost",
|
|
@@ -378,7 +375,7 @@ const xe = { class: "am-head" }, Te = {
|
|
|
378
375
|
]),
|
|
379
376
|
_: 1
|
|
380
377
|
}),
|
|
381
|
-
n("span",
|
|
378
|
+
n("span", Ve, f(e.modal.pickedIds.value.length) + " selected", 1)
|
|
382
379
|
]),
|
|
383
380
|
se(n("input", {
|
|
384
381
|
"onUpdate:modelValue": a[5] || (a[5] = (t) => e.modal.search.value = t),
|
|
@@ -388,7 +385,7 @@ const xe = { class: "am-head" }, Te = {
|
|
|
388
385
|
}, null, 512), [
|
|
389
386
|
[oe, e.modal.search.value]
|
|
390
387
|
]),
|
|
391
|
-
n("div",
|
|
388
|
+
n("div", Be, [
|
|
392
389
|
(b(!0), N(de, null, Ne(e.modal.visible.value, (t) => (b(), N("label", {
|
|
393
390
|
key: t.employeeId,
|
|
394
391
|
class: "asg-row"
|
|
@@ -399,18 +396,21 @@ const xe = { class: "am-head" }, Te = {
|
|
|
399
396
|
checked: !!e.modal.picks[t.employeeId],
|
|
400
397
|
onChange: (c) => e.modal.toggle(t.employeeId),
|
|
401
398
|
"data-platform": "desktop"
|
|
402
|
-
}, null, 40,
|
|
403
|
-
n("span",
|
|
404
|
-
n("span",
|
|
405
|
-
n("span",
|
|
406
|
-
|
|
399
|
+
}, null, 40, Fe),
|
|
400
|
+
n("span", Ke, f(t.initials), 1),
|
|
401
|
+
n("span", Re, [
|
|
402
|
+
n("span", {
|
|
403
|
+
class: "asg-nm",
|
|
404
|
+
title: t.name
|
|
405
|
+
}, f(t.name), 9, Ue),
|
|
406
|
+
n("span", qe, [
|
|
407
407
|
t.held.length ? (b(), N(de, { key: 0 }, [
|
|
408
408
|
M(f(t.held.join(", ")), 1)
|
|
409
|
-
], 64)) : (b(), N("i",
|
|
409
|
+
], 64)) : (b(), N("i", Ge, "No positions added"))
|
|
410
410
|
])
|
|
411
411
|
])
|
|
412
412
|
]))), 128)),
|
|
413
|
-
e.modal.visible.value.length ? G("", !0) : (b(), N("div",
|
|
413
|
+
e.modal.visible.value.length ? G("", !0) : (b(), N("div", He, " No one matches. "))
|
|
414
414
|
]),
|
|
415
415
|
a[15] || (a[15] = n("div", { class: "ce-hint" }, "Ticked people can work this position.", -1))
|
|
416
416
|
]),
|
|
@@ -419,9 +419,9 @@ const xe = { class: "am-head" }, Te = {
|
|
|
419
419
|
}, f(e.modal.error.value), 3)
|
|
420
420
|
]))
|
|
421
421
|
]),
|
|
422
|
-
n("div",
|
|
422
|
+
n("div", Ye, [
|
|
423
423
|
a[19] || (a[19] = n("div", { class: "am-cost-preview" }, null, -1)),
|
|
424
|
-
e.modal.done.value ? (b(), N("div",
|
|
424
|
+
e.modal.done.value ? (b(), N("div", _e, [
|
|
425
425
|
e.modal.editingId.value ? G("", !0) : (b(), Q(O, {
|
|
426
426
|
key: 0,
|
|
427
427
|
hierarchy: "secondary",
|
|
@@ -447,7 +447,7 @@ const xe = { class: "am-head" }, Te = {
|
|
|
447
447
|
]),
|
|
448
448
|
_: 1
|
|
449
449
|
})
|
|
450
|
-
])) : (b(), N("div",
|
|
450
|
+
])) : (b(), N("div", Ze, [
|
|
451
451
|
R(O, {
|
|
452
452
|
hierarchy: "secondary",
|
|
453
453
|
size: "sm",
|
|
@@ -495,7 +495,7 @@ const xe = { class: "am-head" }, Te = {
|
|
|
495
495
|
}
|
|
496
496
|
});
|
|
497
497
|
export {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
498
|
+
sa as _,
|
|
499
|
+
na as a,
|
|
500
|
+
ta as u
|
|
501
501
|
};
|