@feedmepos/mf-hrm-portal 2.3.0-dev.14 → 2.3.0-dev.15

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.
Files changed (60) hide show
  1. package/dist/{ApprovalCodeList-C9dauQ81.js → ApprovalCodeList-CY0ox1dX.js} +4 -4
  2. package/dist/{AuditLogList-zW_N_ECT.js → AuditLogList-CBkA-KQT.js} +4 -4
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DJuO1qPX.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-B8cb8yqV.js} +2 -2
  4. package/dist/{EmployeeList-8jkHTd7q.js → EmployeeList-0PrcuHPJ.js} +6 -6
  5. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CJc_g0tW.js → FormItem.vue_vue_type_script_setup_true_lang-rjDE1B4E.js} +1 -1
  6. package/dist/{GrantUserList-Dj55GA7O.js → GrantUserList-Dw923P2j.js} +5 -5
  7. package/dist/{Main-BQNkTyET.js → Main-BqX7n1ik.js} +9 -9
  8. package/dist/{Main-0TfvGJ4N.js → Main-C0bcn2NY.js} +5 -5
  9. package/dist/{Main-CuUG6svQ.js → Main-Dpf2KdSH.js} +2 -2
  10. package/dist/{PermissionSetList-BsLi-TOK.js → PermissionSetList-xrI130SW.js} +5 -5
  11. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C2l8nWx2.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-3_8qycrF.js} +1087 -1087
  12. package/dist/{RoleList-DLDcyVWT.js → RoleList-DPkG5dg9.js} +7 -7
  13. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CUXUPfRc.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DYLLW46A.js} +111 -111
  14. package/dist/{ScheduleGeneralPage-BhYI6O9g.js → ScheduleGeneralPage-CISbuAff.js} +86 -87
  15. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-BLBLBtNG.js → ScheduleModal.vue_vue_type_script_setup_true_lang-BeTuMw3f.js} +931 -823
  16. package/dist/SchedulePage-Dn6_TiBS.js +18757 -0
  17. package/dist/{SchedulePositionPage-Byt6nmUj.js → SchedulePositionPage-Cu3WRfH-.js} +16 -16
  18. package/dist/{SelectFilter-1fh00OZW.js → SelectFilter-ssnRUIN6.js} +1 -1
  19. package/dist/{TeamMemberList-CyUX8Afk.js → TeamMemberList-DTqNCDJb.js} +7 -7
  20. package/dist/{TimesheetList-Q4FeNgOT.js → TimesheetList-CA19TmKm.js} +6 -6
  21. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C3iU4Zmc.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-B1jnsZpD.js} +2 -2
  22. package/dist/{app-TuHQoM7K.js → app-3xGY2Rn0.js} +1535 -1283
  23. package/dist/app.js +1 -1
  24. package/dist/{dayjs.min-DXnA8GYn.js → dayjs.min-C_c8OoEU.js} +1 -1
  25. package/dist/{employee-Ctnil3cD.js → employee-Dt0y51t3.js} +3 -3
  26. package/dist/{iteration-BxOzv27y.js → iteration-C4YvbrCe.js} +1 -1
  27. package/dist/{lodash-CKT_RxJs.js → lodash-huRs3Cbj.js} +1 -1
  28. package/dist/{role-CNEJPyaD.js → role-fM58UmtC.js} +1 -1
  29. package/dist/{rule-FbuHv6Gh.js → rule-CCN0QCPF.js} +2 -2
  30. package/dist/src/views/audit-log/locales/index.d.ts +252 -0
  31. package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +2 -0
  32. package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +1 -0
  33. package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +6 -0
  34. package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +13 -1
  35. package/dist/src/views/scheduling/composables/schedule-error.d.ts +3 -0
  36. package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +22 -0
  37. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +5 -2
  38. package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +3 -11
  39. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +7 -0
  40. package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +45 -1
  41. package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +10 -0
  42. package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +2 -2
  43. package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +1 -0
  44. package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +14 -6
  45. package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +3 -0
  46. package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +0 -2
  47. package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +23 -0
  48. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +160 -3
  49. package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +44 -0
  50. package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +2 -2
  51. package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +22 -0
  52. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +26 -2
  53. package/dist/src/views/scheduling/country-rules/index.d.ts +8 -3
  54. package/dist/src/views/scheduling/schedule-store.d.ts +7 -7
  55. package/dist/src/views/scheduling/types.d.ts +5 -0
  56. package/dist/style.css +1 -1
  57. package/dist/tsconfig.app.tsbuildinfo +1 -1
  58. package/dist/{useReportPermissions-lemBrd1S.js → useReportPermissions-BlX_Mk5f.js} +3 -3
  59. package/package.json +1 -1
  60. 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-BxOzv27y.js";
2
+ import { e as D } from "./iteration-C4YvbrCe.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-TuHQoM7K.js";
5
+ import { D as ts, k as as, A as ls, S as os, _ as rs } from "./app-3xGY2Rn0.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-FbuHv6Gh.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-CCN0QCPF.js";
9
9
  import { u as xe } from "./restaurant-BbYRA_IT.js";
10
- import { u as Oe } from "./role-CNEJPyaD.js";
11
- import { u as Ne } from "./useReportPermissions-lemBrd1S.js";
12
- import { l as re } from "./lodash-CKT_RxJs.js";
13
- import { u as ms, _ as ds, a as Le } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DJuO1qPX.js";
10
+ import { u as Oe } from "./role-fM58UmtC.js";
11
+ import { u as Ne } from "./useReportPermissions-BlX_Mk5f.js";
12
+ import { l as re } from "./lodash-huRs3Cbj.js";
13
+ import { u as ms, _ as ds, a as Le } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-B8cb8yqV.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 { at as X, f as z, aw as $e, ax as me, ay as pe, az as Ce, G as W, p as H, as as Se, aq as O } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-BLBLBtNG.js";
3
- import { useI18n as Ae } from "@feedmepos/mf-common";
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-BeTuMw3f.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 la(e = {}) {
7
+ function ta(e = {}) {
8
8
  const s = h(ue());
9
9
  ne(
10
- () => X.map((o) => `${o.id}:${o.name}`).join(" "),
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 o;
17
- return (((o = z.value) == null ? void 0 : o.positions) ?? []).map((m) => `${m.id}:${m.name}`).join(" ");
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 o;
21
- s.value = (((o = z.value) == null ? void 0 : o.positions) ?? []).map((m) => ({ id: m.id, name: m.name }));
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(o) {
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) === o || P.secondaryPositions.some((V) => V.positionId === o);
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(o) {
35
- return s.value.some((m) => m.name.toLowerCase() === o.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 o = a.value.trim().slice(0, 40);
46
- if (!(!o || j(o))) {
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: o }), g.value = !1, a.value = "", (m = e.notify) == null || m.call(e, "Position added", "success");
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(o) {
58
- t.value = o;
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(o) {
63
+ async function L(i) {
64
64
  var m, P;
65
65
  c.value = !0, k.value = null;
66
66
  try {
67
- await $e(o), s.value = s.value.filter((I) => I.id !== o), t.value = null, (m = e.notify) == null || m.call(e, "Position removed", "success");
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 Ee(e) {
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 ta(e, s = {}) {
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((y) => [y.employeeId, y]));
103
- return pe.value.map((y) => {
104
- var T, v;
105
- const i = l.get(y._id), x = [
106
- (T = i == null ? void 0 : i.primaryPosition) == null ? void 0 : T.positionName,
107
- ...((i == null ? void 0 : i.secondaryPositions) ?? []).map((u) => u.positionName)
108
- ].filter((u) => !!u), d = [
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: y._id,
114
- name: y.name,
115
- initials: Ee(y.name),
110
+ employeeId: v._id,
111
+ name: v.name,
112
+ initials: xe(v.name),
116
113
  held: x,
117
- heldPositionIds: d
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
- ), o = S(
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((y) => y.heldPositionIds.includes(l)).map((y) => y.employeeId)
141
- ), E.forEach((y) => c[y] = !0), g.value = !0;
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 (o.value) {
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 y = !!(l != null && l.primaryPosition), i = ((l == null ? void 0 : l.secondaryPositions) ?? []).map((d) => ({
158
- positionId: d.positionId,
159
- positionName: d.positionName
160
- })), x = y ? [...i, { positionName: r }] : i;
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
- ...y ? {} : { primaryPosition: H(r) },
163
- secondaryPositions: x.map((d) => H(d.positionName, d.positionId)).filter((d) => !!d)
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((d) => c[d.employeeId]), i = (await Promise.allSettled(
171
- r.map((d) => {
172
- var v;
173
- const T = (v = z.value) == null ? void 0 : v.employees.find((u) => u.employeeId === d.employeeId);
174
- return W(d.employeeId, {
175
- employeeName: d.name,
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((d) => d.status === "rejected").length;
180
- return j.value = { name: l, assigned: r.length - i, failed: i }, (x = s.notify) == null || x.call(
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
- i ? `Position added, but ${i} employee assignment${i === 1 ? "" : "s"} failed` : "Position added",
183
- i ? "error" : "success"
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 Ce(l, { name: r }), e == null || e(r);
190
- const y = p.value.filter(
191
- (v) => c[v.employeeId] && !E.has(v.employeeId)
192
- ), i = p.value.filter(
193
- (v) => !c[v.employeeId] && E.has(v.employeeId)
194
- ), d = (await Promise.allSettled([
195
- ...y.map((v) => {
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 u = (K = z.value) == null ? void 0 : K.employees.find((U) => U.employeeId === v.employeeId);
198
- return W(v.employeeId, {
199
- employeeName: v.name,
200
- ...Y(u, r)
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
- ...i.map((v) => {
200
+ ...d.map((o) => {
204
201
  var ee, ae, le, te;
205
- const u = (ee = z.value) == null ? void 0 : ee.employees.find((w) => w.employeeId === v.employeeId), K = ((u == null ? void 0 : u.secondaryPositions) ?? []).filter(
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 = u == null ? void 0 : u.primaryPosition) == null ? void 0 : ae.positionId) === l || !((le = u == null ? void 0 : u.primaryPosition) != null && le.positionId) && ((te = u == null ? void 0 : u.primaryPosition) == null ? void 0 : te.positionName) === D, B = U ? K.shift() : void 0;
208
- return W(v.employeeId, {
209
- employeeName: v.name,
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((v) => v.status === "rejected").length;
217
- return j.value = { name: r, assigned: Math.max(0, y.length - d), failed: d }, (T = s.notify) == null || T.call(
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
- d ? `Position updated, but ${d} employee assignment${d === 1 ? "" : "s"} failed` : "Position updated",
220
- d ? "error" : "success"
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: o,
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 xe = { class: "am-head" }, Te = {
266
+ const Te = { class: "am-head" }, Me = {
270
267
  id: "schedule-position-title",
271
268
  class: "am-title"
272
- }, Me = { class: "ce-body" }, Oe = { key: 0 }, ze = { class: "ce-field" }, je = {
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
- }, De = { class: "asg-head" }, Le = { class: "asg-count" }, Ve = { class: "asg-list" }, Be = ["checked", "onChange"], Fe = { class: "asg-av" }, Ke = { class: "asg-id" }, Re = { class: "asg-nm" }, Ue = { class: "asg-sub" }, qe = { key: 1 }, Ge = {
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
- }, He = { key: 1 }, Je = { class: "cg-done" }, Qe = { class: "cg-st-main" }, We = {
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
- }, Xe = { class: "am-foot" }, Ye = {
279
+ }, Ye = { class: "am-foot" }, Ze = {
283
280
  key: 0,
284
281
  class: "am-foot-btns"
285
- }, Ze = {
282
+ }, _e = {
286
283
  key: 1,
287
284
  class: "am-foot-btns"
288
- }, na = /* @__PURE__ */ Pe({
285
+ }, sa = /* @__PURE__ */ Pe({
289
286
  __name: "ScheduleAddPositionModal",
290
287
  props: {
291
288
  modal: {}
292
289
  },
293
290
  setup(e) {
294
- const { t: s } = Ae();
295
- return (g, a) => (b(), Q(Se, {
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", xe, [
304
- n("div", Te, f(e.modal.editingId.value ? q(s)("scheduling.positionModal.editTitle") : q(s)("scheduling.positionModal.addTitle")), 1),
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", Me, [
332
- e.modal.done.value ? (b(), N("div", He, [
333
- n("div", Je, [
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", Qe, [
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", We, 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)
344
- ])) : (b(), N("div", Oe, [
345
- n("div", ze, [
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", je, [
367
- n("div", De, [
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", Le, f(e.modal.pickedIds.value.length) + " selected", 1)
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", Ve, [
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, Be),
403
- n("span", Fe, f(t.initials), 1),
404
- n("span", Ke, [
405
- n("span", Re, f(t.name), 1),
406
- n("span", Ue, [
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", qe, "No positions added"))
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", Ge, " No one matches. "))
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", Xe, [
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", Ze, [
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", Ye, [
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
- na as _,
499
- ta as a,
500
- la as u
498
+ sa as _,
499
+ na as a,
500
+ ta as u
501
501
  };