@feedmepos/mf-hrm-portal 2.3.0-dev.32 → 2.3.0-dev.34

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 (34) hide show
  1. package/dist/{ApprovalCodeList-B01Tfz9v.js → ApprovalCodeList-BPQdxZry.js} +4 -4
  2. package/dist/{AuditLogList-B0Tgyx4F.js → AuditLogList-CTlSkE_K.js} +4 -4
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-D_0cGcsc.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BJMOEvOt.js} +2 -2
  4. package/dist/{EmployeeList-sIo_pCHg.js → EmployeeList-DZ7B6zZt.js} +6 -6
  5. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CzjVyymC.js → FormItem.vue_vue_type_script_setup_true_lang-Cg3xP7e0.js} +1 -1
  6. package/dist/{GrantUserList-DffzvEFk.js → GrantUserList-Be674W20.js} +5 -5
  7. package/dist/{Main-k-6giYiC.js → Main-B4-PXvSJ.js} +2 -2
  8. package/dist/{Main-Dn5lY4bl.js → Main-BA5eOkcv.js} +5 -5
  9. package/dist/{Main-BL-89Tnx.js → Main-DHNKcNNN.js} +9 -9
  10. package/dist/{PermissionSetList-jL4vatxE.js → PermissionSetList-CeATUMKY.js} +5 -5
  11. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-LIrdGS6j.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BXHsXA6u.js} +997 -997
  12. package/dist/{RoleList-CTxZqplQ.js → RoleList-ibV0W4RI.js} +7 -7
  13. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CR1DP73z.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-uyqp1Mq8.js} +23 -23
  14. package/dist/{ScheduleGeneralPage-HTJDzDQA.js → ScheduleGeneralPage-DywV5Plk.js} +2 -2
  15. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-B7FAnNJn.js → ScheduleModal.vue_vue_type_script_setup_true_lang-B6c5-lUO.js} +9 -9
  16. package/dist/{SchedulePage-DLG-3exQ.js → SchedulePage-DPNL_KaV.js} +6979 -6896
  17. package/dist/{SchedulePositionPage-DNi6OVBn.js → SchedulePositionPage-CUNO6DSz.js} +3 -3
  18. package/dist/{SelectFilter-CciZcuqp.js → SelectFilter-dBqYceve.js} +1 -1
  19. package/dist/{TeamMemberList-BhOUP_eV.js → TeamMemberList-BBp6s_Um.js} +7 -7
  20. package/dist/{TimesheetList-LBXzpZ6A.js → TimesheetList-CD1Kvu6F.js} +6 -6
  21. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-8VCtmmRW.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BjjuaSfV.js} +2 -2
  22. package/dist/{app-H-8QaXK-.js → app-CDilMLOR.js} +8 -8
  23. package/dist/app.js +1 -1
  24. package/dist/{dayjs.min-CFZAuAao.js → dayjs.min-Ce7CTioa.js} +1 -1
  25. package/dist/{employee-DJ7095AK.js → employee-DpM_edbe.js} +3 -3
  26. package/dist/{iteration-5-jumCls.js → iteration-CRJ7AeTP.js} +1 -1
  27. package/dist/{lodash-Cn6YxOg-.js → lodash-CLZtrX-I.js} +1 -1
  28. package/dist/{role-Ckz-rdpa.js → role-GSbiX80b.js} +1 -1
  29. package/dist/{rule-IY-CjBrh.js → rule-BU6ftNiS.js} +2 -2
  30. package/dist/src/views/scheduling/composables/schedule-leave-split.d.ts +5 -0
  31. package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +3 -1
  32. package/dist/tsconfig.app.tsbuildinfo +1 -1
  33. package/dist/{useReportPermissions-BQHuM6zE.js → useReportPermissions-VtirXp7p.js} +3 -3
  34. package/package.json +1 -1
@@ -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-5-jumCls.js";
2
+ import { e as D } from "./iteration-CRJ7AeTP.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-H-8QaXK-.js";
5
+ import { D as ts, k as as, A as ls, S as os, _ as rs } from "./app-CDilMLOR.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-IY-CjBrh.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-BU6ftNiS.js";
9
9
  import { u as xe } from "./restaurant-D2mfKHaH.js";
10
- import { u as Oe } from "./role-Ckz-rdpa.js";
11
- import { u as Ne } from "./useReportPermissions-BQHuM6zE.js";
12
- import { l as re } from "./lodash-Cn6YxOg-.js";
13
- import { u as ms, _ as ds, a as Le } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-D_0cGcsc.js";
10
+ import { u as Oe } from "./role-GSbiX80b.js";
11
+ import { u as Ne } from "./useReportPermissions-VtirXp7p.js";
12
+ import { l as re } from "./lodash-CLZtrX-I.js";
13
+ import { u as ms, _ as ds, a as Le } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BJMOEvOt.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-Nygx2zn8.js";
@@ -1,6 +1,6 @@
1
1
  import { ref as I, watch as ce, computed as O, reactive as we, nextTick as Pe, defineComponent as pe, createBlock as te, openBlock as k, withCtx as M, createElementVNode as s, createVNode as q, toDisplayString as g, unref as X, createElementBlock as C, withDirectives as ve, withKeys as Ne, vModelText as fe, normalizeClass as ye, createTextVNode as B, createCommentVNode as Y, Fragment as he, renderList as $e } from "vue";
2
- import { av as se, p as z, ay as ge, az as ne, aA as ke, u as Se, aB as Ce, I as le, e as Z, au as Ae, as as V } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-B7FAnNJn.js";
3
- import { useI18n as xe } from "@feedmepos/mf-common";
2
+ import { av as se, p as z, ay as ge, az as ne, aA as ke, x as Se, aB as Ce, I as le, e as Z, au as xe, as as V } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-B6c5-lUO.js";
3
+ import { useI18n as Ae } from "@feedmepos/mf-common";
4
4
  function Ie() {
5
5
  return se.map((e) => ({ id: e.id, name: e.name }));
6
6
  }
@@ -23,7 +23,7 @@ function la(e = {}) {
23
23
  }
24
24
  );
25
25
  const r = I(!1), P = I(""), w = I(null), p = I(!1), b = I(null);
26
- function A(l) {
26
+ function x(l) {
27
27
  var y, $;
28
28
  const c = new Set(ke.value.map((T) => T._id)), N = /* @__PURE__ */ new Set();
29
29
  for (const T of ((y = z.value) == null ? void 0 : y.employees) ?? [])
@@ -36,7 +36,7 @@ function la(e = {}) {
36
36
  function D() {
37
37
  r.value = !0, P.value = "", w.value = null, b.value = null;
38
38
  }
39
- function x() {
39
+ function A() {
40
40
  r.value = !1, P.value = "";
41
41
  }
42
42
  async function F() {
@@ -106,9 +106,9 @@ function la(e = {}) {
106
106
  pendingDeleteId: w,
107
107
  saving: p,
108
108
  error: b,
109
- usageCountFor: A,
109
+ usageCountFor: x,
110
110
  startAdd: D,
111
- cancelAdd: x,
111
+ cancelAdd: A,
112
112
  confirmAdd: F,
113
113
  askDelete: _,
114
114
  cancelDelete: G,
@@ -124,9 +124,9 @@ function Ee(e) {
124
124
  return n.length ? (n[0][0] + (((f = n[1]) == null ? void 0 : f[0]) ?? "")).toUpperCase() : "??";
125
125
  }
126
126
  function na(e, n = {}) {
127
- const f = I(!1), a = I(""), i = I(""), r = we({}), P = I(!1), w = I(null), p = I(null), b = I(!1), A = I(null);
127
+ const f = I(!1), a = I(""), i = I(""), r = we({}), P = I(!1), w = I(null), p = I(null), b = I(!1), x = I(null);
128
128
  let W = "", D = /* @__PURE__ */ new Set();
129
- const x = O(() => {
129
+ const A = O(() => {
130
130
  var m;
131
131
  const t = new Map((((m = z.value) == null ? void 0 : m.employees) ?? []).map((v) => [v.employeeId, v]));
132
132
  return ke.value.map((v) => {
@@ -145,25 +145,25 @@ function na(e, n = {}) {
145
145
  });
146
146
  }), F = O(() => {
147
147
  const t = i.value.trim().toLowerCase();
148
- return x.value.filter((m) => !t || m.name.toLowerCase().includes(t));
148
+ return A.value.filter((m) => !t || m.name.toLowerCase().includes(t));
149
149
  }), _ = O(
150
- () => x.value.filter((t) => r[t.employeeId]).map((t) => t.employeeId)
150
+ () => A.value.filter((t) => r[t.employeeId]).map((t) => t.employeeId)
151
151
  ), G = O(
152
152
  () => F.value.length > 0 && F.value.every((t) => r[t.employeeId])
153
153
  ), E = O(() => a.value.trim().slice(0, 40)), H = O(
154
154
  () => !!E.value && se.some(
155
- (t) => t.id !== A.value && t.name.toLowerCase() === E.value.toLowerCase()
155
+ (t) => t.id !== x.value && t.name.toLowerCase() === E.value.toLowerCase()
156
156
  )
157
157
  ), J = O(() => !!E.value && !H.value && !P.value);
158
158
  function K() {
159
- a.value = "", i.value = "", Object.keys(r).forEach((t) => delete r[t]), w.value = null, b.value = !1, p.value = null, A.value = null, W = "", D = /* @__PURE__ */ new Set();
159
+ a.value = "", i.value = "", Object.keys(r).forEach((t) => delete r[t]), w.value = null, b.value = !1, p.value = null, x.value = null, W = "", D = /* @__PURE__ */ new Set();
160
160
  }
161
161
  function ee() {
162
162
  K(), f.value = !0;
163
163
  }
164
164
  function l(t, m) {
165
- K(), A.value = t, a.value = m, W = m, D = new Set(
166
- x.value.filter((v) => v.heldPositionIds.includes(t)).map((v) => v.employeeId)
165
+ K(), x.value = t, a.value = m, W = m, D = new Set(
166
+ A.value.filter((v) => v.heldPositionIds.includes(t)).map((v) => v.employeeId)
167
167
  ), D.forEach((v) => r[v] = !0), f.value = !0;
168
168
  }
169
169
  function c() {
@@ -193,7 +193,7 @@ function na(e, n = {}) {
193
193
  var j;
194
194
  const t = E.value;
195
195
  await ne({ name: t }), await Pe(), e == null || e(t);
196
- const m = x.value.filter((u) => r[u.employeeId]), d = (await Promise.allSettled(
196
+ const m = A.value.filter((u) => r[u.employeeId]), d = (await Promise.allSettled(
197
197
  m.map((u) => {
198
198
  var o;
199
199
  const L = (o = z.value) == null ? void 0 : o.employees.find((h) => h.employeeId === u.employeeId);
@@ -213,9 +213,9 @@ function na(e, n = {}) {
213
213
  var L;
214
214
  const m = E.value;
215
215
  await Ce(t, { name: m }), e == null || e(m);
216
- const v = x.value.filter(
216
+ const v = A.value.filter(
217
217
  (o) => r[o.employeeId] && !D.has(o.employeeId)
218
- ), d = x.value.filter(
218
+ ), d = A.value.filter(
219
219
  (o) => !r[o.employeeId] && D.has(o.employeeId)
220
220
  ), u = (await Promise.allSettled([
221
221
  ...v.map((o) => {
@@ -253,9 +253,9 @@ function na(e, n = {}) {
253
253
  if (!J.value) return !1;
254
254
  P.value = !0, w.value = null;
255
255
  try {
256
- return await (A.value ? ae(A.value) : T());
256
+ return await (x.value ? ae(x.value) : T());
257
257
  } catch (m) {
258
- return w.value = m instanceof Error ? m.message : `Could not ${A.value ? "save" : "add"} this position`, (t = n.notify) == null || t.call(n, w.value, "error"), !1;
258
+ return w.value = m instanceof Error ? m.message : `Could not ${x.value ? "save" : "add"} this position`, (t = n.notify) == null || t.call(n, w.value, "error"), !1;
259
259
  } finally {
260
260
  P.value = !1;
261
261
  }
@@ -275,13 +275,13 @@ function na(e, n = {}) {
275
275
  error: w,
276
276
  done: p,
277
277
  nameError: b,
278
- people: x,
278
+ people: A,
279
279
  visible: F,
280
280
  pickedIds: _,
281
281
  allPicked: G,
282
282
  nameTaken: H,
283
283
  canSave: J,
284
- editingId: A,
284
+ editingId: x,
285
285
  openNew: ee,
286
286
  openEdit: l,
287
287
  close: c,
@@ -317,8 +317,8 @@ const Te = { class: "am-head" }, Me = {
317
317
  modal: {}
318
318
  },
319
319
  setup(e) {
320
- const { t: n } = xe();
321
- return (f, a) => (k(), te(Ae, {
320
+ const { t: n } = Ae();
321
+ return (f, a) => (k(), te(xe, {
322
322
  open: e.modal.open.value,
323
323
  "panel-class": "ce-modal",
324
324
  "panel-style": "width: min(480px, 95vw)",
@@ -1,8 +1,8 @@
1
1
  import { ref as w, reactive as B, computed as E, defineComponent as V, createBlock as A, openBlock as p, withCtx as b, createElementVNode as e, createVNode as k, createElementBlock as v, Fragment as L, createTextVNode as H, toDisplayString as g, withDirectives as f, vModelText as h, createCommentVNode as T, renderList as z, onMounted as Y, createStaticVNode as q, unref as r, normalizeClass as I } from "vue";
2
2
  import { useRouter as F } from "vue-router";
3
3
  import { useSnackbar as G } from "@feedmepos/ui-library";
4
- import { R as j } from "./app-H-8QaXK-.js";
5
- import { b as m, o as M, g as U, Q as J, $ as W, p as N, au as Q, as as C, aw as K, ax as X, ag as Z, at as _ } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-B7FAnNJn.js";
4
+ import { R as j } from "./app-CDilMLOR.js";
5
+ import { b as m, o as M, g as U, Q as J, $ as W, p as N, au as Q, as as C, aw as K, ax as X, ag as Z, at as _ } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-B6c5-lUO.js";
6
6
  import { useCoreStore as ee } from "@feedmepos/mf-common";
7
7
  const se = [
8
8
  { key: "payrates", label: "Pay rates" },
@@ -2,8 +2,8 @@ import { onMounted as Ie, onBeforeUnmount as Te, ref as P, reactive as I, shallo
2
2
  import { useRoute as wa, useRouter as Ha } from "vue-router";
3
3
  import { useCoreStore as Ge } from "@feedmepos/mf-common";
4
4
  import { g as D, b as f, u as Aa } from "./restaurant-D2mfKHaH.js";
5
- import { E as Ne, u as je } from "./employee-DJ7095AK.js";
6
- import { t as $e, q as Ea } from "./rule-IY-CjBrh.js";
5
+ import { E as Ne, u as je } from "./employee-DpM_edbe.js";
6
+ import { t as $e, q as Ea } from "./rule-BU6ftNiS.js";
7
7
  function Qn(e) {
8
8
  let a = null;
9
9
  function t() {
@@ -428,7 +428,7 @@ function ea() {
428
428
  !he.value && r.value && r.value.demands.length > 0 && r.value.assignments.length > 0 && (he.value = !0);
429
429
  }
430
430
  async function Ra(e, a) {
431
- const t = z.value.find((o) => o.employeeId === e), n = (t == null ? void 0 : t.displayOrder) ?? (z.value.some((o) => o.displayOrder !== null) ? Math.max(
431
+ const t = z.value.find((o) => o.employeeId === e), n = (t == null ? void 0 : t.displayOrder) ?? (a && z.value.some((o) => o.displayOrder !== null) ? Math.max(
432
432
  0,
433
433
  ...z.value.filter(
434
434
  (o) => o.displayOrder !== null
@@ -2364,9 +2364,9 @@ const Mn = ["data-hierarchy", "data-size", "data-icon"], Ko = /* @__PURE__ */ Oe
2364
2364
  export {
2365
2365
  H as $,
2366
2366
  To as A,
2367
- Jn as B,
2367
+ Fo as B,
2368
2368
  ao as C,
2369
- se as D,
2369
+ Jn as D,
2370
2370
  Qe as E,
2371
2371
  ke as F,
2372
2372
  Na as G,
@@ -2448,10 +2448,10 @@ export {
2448
2448
  co as r,
2449
2449
  ba as s,
2450
2450
  so as t,
2451
- $o as u,
2451
+ se as u,
2452
2452
  Se as v,
2453
2453
  oo as w,
2454
- hn as x,
2455
- qn as y,
2456
- Fo as z
2454
+ $o as x,
2455
+ hn as y,
2456
+ qn as z
2457
2457
  };