@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.
Files changed (57) hide show
  1. package/dist/{ApprovalCodeList-BzL73nqc.js → ApprovalCodeList-D5l9vIsE.js} +2 -2
  2. package/dist/{AuditLogList-BEZoHLsX.js → AuditLogList-ByTa5UJY.js} +3 -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
  4. package/dist/{EmployeeList-s4FYw1ZF.js → EmployeeList-Bv6ANk-P.js} +8 -9
  5. package/dist/{GrantUserList-Ci_ElhHZ.js → GrantUserList-Bt8w3p4j.js} +3 -3
  6. package/dist/{Main-BojQuzZI.js → Main-DHJcgePj.js} +5 -5
  7. package/dist/{Main-N1CNGDAy.js → Main-DkP8dWgn.js} +9 -9
  8. package/dist/{Main-CKr3RGvf.js → Main-DqiGpT4v.js} +2 -2
  9. package/dist/{PermissionSetList-DLknSOzA.js → PermissionSetList-BIGv1u67.js} +10 -11
  10. 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
  11. package/dist/{RoleList-Cm7_q5l9.js → RoleList-CH6NDKPU.js} +7 -7
  12. 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
  13. package/dist/ScheduleButton.vue_vue_type_script_setup_true_lang-BzQuLLf5.js +690 -0
  14. package/dist/{ScheduleGeneralPage-CmR4BZAp.js → ScheduleGeneralPage-DJPENJZ2.js} +96 -99
  15. package/dist/SchedulePage-C1egcbIC.js +14421 -0
  16. package/dist/{SchedulePositionPage-Bv3zraaF.js → SchedulePositionPage-OhL_hsqG.js} +10 -10
  17. package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-B8W4sTsA.js +242 -0
  18. package/dist/{TeamMemberList-D2OfkfJP.js → TeamMemberList-BwfG3go2.js} +8 -9
  19. package/dist/{TimesheetList-DEdLpYuM.js → TimesheetList-DcoqzbLO.js} +5 -5
  20. 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
  21. package/dist/{app-Dmmpy4k-.js → app-BcZ6C8M8.js} +8 -8
  22. package/dist/app.js +1 -1
  23. package/dist/{dayjs.min-DcfKURXN.js → dayjs.min-Ch0iysTG.js} +1 -1
  24. package/dist/employee-DwYHFacQ.js +204 -0
  25. package/dist/{index-BxkisKEs.js → iteration-D1uWLp0V.js} +726 -698
  26. package/dist/{lodash-p40sRkqQ.js → lodash-DErxm7xf.js} +1 -1
  27. package/dist/{role-CM1urkJZ.js → role-B9VanAny.js} +3 -4
  28. package/dist/{rule-BPApyMJY.js → rule-C4f_Ilzr.js} +36 -37
  29. package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +5 -1
  30. package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +2 -0
  31. package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +18 -2
  32. package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +4 -0
  33. package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +4 -0
  34. package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +2 -2
  35. package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +4 -0
  36. package/dist/src/views/scheduling/composables/scheduleAutoSolver.d.ts +21 -0
  37. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +11 -0
  38. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +10 -11
  39. package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +5 -3
  40. package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +7 -1
  41. package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +11 -2
  42. package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +2 -0
  43. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +11 -0
  44. package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +1 -0
  45. package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +4 -1
  46. package/dist/src/views/scheduling/schedule-store.d.ts +25 -0
  47. package/dist/src/views/scheduling/types.d.ts +5 -0
  48. package/dist/style.css +1 -1
  49. package/dist/tsconfig.app.tsbuildinfo +1 -1
  50. package/dist/{useReportPermissions-5EhPvVT9.js → useReportPermissions-CTr56kBo.js} +3 -3
  51. package/package.json +1 -1
  52. package/dist/ScheduleButton.vue_vue_type_script_setup_true_lang-DX5JR7bi.js +0 -600
  53. package/dist/SchedulePage-CN3ZsQ9E.js +0 -13905
  54. package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-Buu8NEQf.js +0 -221
  55. package/dist/employee-D3ZpYH4j.js +0 -139
  56. package/dist/index-D-VlxJu9.js +0 -70
  57. 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 "./index-BxkisKEs.js";
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-Dmmpy4k-.js";
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-BPApyMJY.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-C4f_Ilzr.js";
9
9
  import { u as xe } from "./restaurant-BTpBmfBV.js";
10
- import { u as Oe } from "./role-CM1urkJZ.js";
11
- import { u as Ne } from "./useReportPermissions-5EhPvVT9.js";
12
- import { l as re } from "./lodash-p40sRkqQ.js";
13
- import { u as ds, _ as ps, a as Le } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DDrP7ywR.js";
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 J, normalizeClass as Q, toDisplayString as m, createTextVNode as x, Fragment as W, renderList as oe } from "vue";
2
- import { J as R, a as ie, K as de, M as ue, N as _, e as X, O as re, j as me, p as Y, _ as S } from "./ScheduleButton.vue_vue_type_script_setup_true_lang-DX5JR7bi.js";
3
- function Z() {
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(Z());
7
+ const a = d(W());
8
8
  ee(
9
9
  () => R.map((s) => `${s.id}:${s.name}`).join(" "),
10
10
  () => {
11
- a.value = Z();
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 O(s) {
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 L() {
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 K(s) {
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 F = C(() => a.value.length);
78
+ const K = C(() => a.value.length);
79
79
  return {
80
80
  positions: a,
81
- count: F,
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: O,
94
- cancelEdit: L,
93
+ startEdit: L,
94
+ cancelEdit: O,
95
95
  saveEdit: z,
96
96
  askDelete: j,
97
97
  cancelDelete: B,
98
- confirmDelete: K
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 = X.value) == null ? void 0 : r.employees) ?? []).map((P) => [P.employeeId, P]));
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)), O = C(
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
- ), L = C(() => !!I.value && !O.value && !g.value);
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 K(n) {
137
+ function F(n) {
138
138
  i[n] = !i[n];
139
139
  }
140
- function F() {
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 (!L.value) return !1;
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 = X.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);
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: Y(n) },
159
- secondaryPositions: (T ? [...q, n] : q).map((A) => Y(A)).filter((A) => !!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: O,
190
- canSave: L,
189
+ nameTaken: L,
190
+ canSave: O,
191
191
  openNew: j,
192
192
  close: B,
193
- toggle: K,
194
- toggleAll: F,
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
- }, Oe = {
216
+ }, Le = {
217
217
  key: 1,
218
218
  class: "am-foot-btns"
219
- }, Ke = /* @__PURE__ */ te({
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: "rebus-input ce-input",
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
- [J, a.modal.name.value]
288
+ [X, a.modal.name.value]
289
289
  ]),
290
290
  t("div", {
291
- class: Q(["ce-err", { show: a.modal.nameError.value || a.modal.nameTaken.value }])
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: "rebus-input ce-input asg-search",
313
+ class: "sch-input ce-input asg-search",
314
314
  placeholder: "Search team…",
315
315
  autocomplete: "off"
316
316
  }, null, 512), [
317
- [J, a.modal.search.value]
317
+ [X, a.modal.search.value]
318
318
  ]),
319
319
  t("div", we, [
320
- (y(!0), f(W, null, oe(a.modal.visible.value, (l) => (y(), f("label", {
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: "rebus-checkbox asg-check",
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(W, { key: 0 }, [
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: Q(["ce-err", { show: !!a.modal.error.value }])
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", Oe, [
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
- Ke as _,
423
+ Fe as _,
424
424
  Be as a,
425
425
  je as u
426
426
  };