@feedmepos/mf-hrm-portal 2.0.24-dev.10 → 2.0.24-dev.11

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 (24) hide show
  1. package/dist/{AuditLogList-DIyduqwa.js → AuditLogList-D13Tma55.js} +4 -4
  2. package/dist/{EmployeeList-DieXbCR4.js → EmployeeList-CmU-WKPT.js} +6 -6
  3. package/dist/{Main-BxX0lnL5.js → Main-Bb7KhUuL.js} +6 -6
  4. package/dist/{Main-8fURDx0W.js → Main-Br31SktO.js} +9 -9
  5. package/dist/{Main-BjzCTw3C.js → Main-CMv3GJZK.js} +4 -4
  6. package/dist/{PermissionSetList-CqM4La6P.js → PermissionSetList-C6nSv0Em.js} +6 -6
  7. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C6uznL8r.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-NFr_QRGO.js} +466 -466
  8. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-CSxT3KNJ.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-BypKOLqT.js} +1 -1
  9. package/dist/{RoleList-CEgNBw-4.js → RoleList-VS11Dt8v.js} +51 -49
  10. package/dist/{TeamMemberList-DoLkDpoB.js → TeamMemberList-BZv00x4B.js} +56 -56
  11. package/dist/{TimesheetList-DqGEKlEL.js → TimesheetList-DFbVpInY.js} +6 -6
  12. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-BdCL8SB4.js → TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-u6mJw-wq.js} +2 -2
  13. package/dist/{app-L0IWvTST.js → app-DPuGdUoR.js} +114 -99
  14. package/dist/app.js +1 -1
  15. package/dist/{dayjs.min-COxuf_H8.js → dayjs.min-BhwkmEiy.js} +1 -1
  16. package/dist/{employee-DRnkg7jL.js → employee-CUQGn4B5.js} +3 -3
  17. package/dist/{iteration-V9rH_pC3.js → iteration-C2RViFQ4.js} +1 -1
  18. package/dist/{lodash-DoaaH6eb.js → lodash-DQoFrc1P.js} +1 -1
  19. package/dist/{rule-BI1ycxfM.js → rule-DRvM4HKU.js} +25 -25
  20. package/dist/tsconfig.app.tsbuildinfo +1 -1
  21. package/dist/{useAppStore-a32PT_PC.js → useAppStore-DqX0G_6s.js} +1 -1
  22. package/dist/{useLoading-BxqU47eu.js → useLoading-Dx1S3DeY.js} +1 -1
  23. package/dist/{useReportPermissions-BIbz17zb.js → useReportPermissions-DH4hhuYf.js} +3 -3
  24. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
- import { g as b, b as v, q as L, u as H, s as x, d as Y, e as h } from "./iteration-V9rH_pC3.js";
2
- import { e as R, h as k, b as F, l as j, C as Z, d as J } from "./app-L0IWvTST.js";
1
+ import { g as b, b as v, q as L, u as H, s as k, d as Y, e as h } from "./iteration-C2RViFQ4.js";
2
+ import { e as R, P as x, b as F, l as j, k as Z, d as J } from "./app-DPuGdUoR.js";
3
3
  import { s as q } from "./utils-BZkjJbju.js";
4
4
  import { defineStore as W, storeToRefs as V } from "pinia";
5
- import { ref as S, computed as T } from "vue";
5
+ import { ref as S, computed as C } from "vue";
6
6
  import { useCoreStore as z } from "@feedmepos/mf-common";
7
7
  const B = [
8
8
  {
@@ -564,7 +564,7 @@ function $e(e, s) {
564
564
  function Ie(e) {
565
565
  const s = X(
566
566
  e,
567
- k
567
+ x
568
568
  ), t = new Set(
569
569
  s.filter((i) => {
570
570
  var n;
@@ -737,7 +737,7 @@ const y = "/permission-assignments", P = {
737
737
  await L().get(`/report-query/hrm/${e}/reports`, { params: t })
738
738
  );
739
739
  }
740
- }, _ = S([]), E = S(!1), w = S(!1), $ = S(null), D = S(null), C = S(!1);
740
+ }, _ = S([]), E = S(!1), w = S(!1), $ = S(null), D = S(null), N = S(!1);
741
741
  function de() {
742
742
  const e = z();
743
743
  async function s() {
@@ -745,9 +745,9 @@ function de() {
745
745
  const o = (n = e.currentBusiness.value) == null ? void 0 : n.id;
746
746
  if (!o) return;
747
747
  const i = localStorage.getItem("locale");
748
- if ($.value !== o && (_.value = [], E.value = !1, w.value = !1, $.value = o, C.value = !1), !(E.value && D.value === i)) {
748
+ if ($.value !== o && (_.value = [], E.value = !1, w.value = !1, $.value = o, N.value = !1), !(E.value && D.value === i)) {
749
749
  if (w.value) {
750
- C.value = !0;
750
+ N.value = !0;
751
751
  return;
752
752
  }
753
753
  w.value = !0;
@@ -759,11 +759,11 @@ function de() {
759
759
  if ($.value !== o) return;
760
760
  console.warn("Failed to fetch custom report permissions:", c), _.value = [];
761
761
  } finally {
762
- $.value === o && (w.value = !1, C.value && (C.value = !1, await s()));
762
+ $.value === o && (w.value = !1, N.value && (N.value = !1, await s()));
763
763
  }
764
764
  }
765
765
  }
766
- const t = T(() => _.value.map(
766
+ const t = C(() => _.value.map(
767
767
  (o) => o.isDefault ? {
768
768
  label: o.name,
769
769
  subject: `business::report::reports::${o.permissionKey}`,
@@ -785,8 +785,8 @@ function de() {
785
785
  return {
786
786
  fetchCustomReportPermissions: s,
787
787
  customReportPermissions: t,
788
- isLoading: T(() => w.value),
789
- isLoaded: T(() => E.value)
788
+ isLoading: C(() => w.value),
789
+ isLoaded: C(() => E.value)
790
790
  };
791
791
  }
792
792
  function I(e) {
@@ -800,7 +800,7 @@ function I(e) {
800
800
  subject: R(f.subject)
801
801
  })), l = M(r, u), d = X(
802
802
  ae(r, u),
803
- k
803
+ x
804
804
  ).filter((f) => !f.inverted), p = fe(d), m = p ?? o.value.map((f) => f._id);
805
805
  return {
806
806
  doc: e,
@@ -808,7 +808,7 @@ function I(e) {
808
808
  name: e.name && e.name !== e.email && e.name !== e.phoneNumber ? e.name : "-",
809
809
  phoneNumber: e.phoneNumber,
810
810
  email: e.email,
811
- restaurants: x(
811
+ restaurants: k(
812
812
  m.map((f) => {
813
813
  var g;
814
814
  return ((g = o.value.find((G) => G._id === f)) == null ? void 0 : g.profile.name) ?? "";
@@ -872,10 +872,10 @@ function _e(e, s, t) {
872
872
  if (e.some((c) => c.subject === "all")) return "All";
873
873
  const o = (t ?? B).filter(
874
874
  (c) => c.subject === s
875
- ), i = new Set(o.map((c) => N(c).value)), n = e.filter((c) => c.subject === s).filter((c) => i.has(N(c).value));
875
+ ), i = new Set(o.map((c) => T(c).value)), n = e.filter((c) => c.subject === s).filter((c) => i.has(T(c).value));
876
876
  return n.length === o.length ? "All" : n.length === 0 ? "-" : `${n.length} permission allow`;
877
877
  }
878
- function N(e) {
878
+ function T(e) {
879
879
  const s = Y(e), t = s.subject;
880
880
  return {
881
881
  ...s,
@@ -905,7 +905,7 @@ function N(e) {
905
905
  };
906
906
  }
907
907
  function Ee(e) {
908
- const s = e.map((t) => N(t)).find((t) => t.isDiscountOperation);
908
+ const s = e.map((t) => T(t)).find((t) => t.isDiscountOperation);
909
909
  return s ? parseInt((s.conditions.adjustment.$lte * 100).toFixed(0)) : 100;
910
910
  }
911
911
  function fe(e) {
@@ -914,14 +914,14 @@ function fe(e) {
914
914
  );
915
915
  return s ? s.conditions ? JSON.parse(s.conditions).restaurantId.$in : null : [];
916
916
  }
917
- function Ce(e) {
917
+ function Ne(e) {
918
918
  return (e == null ? void 0 : e.some((s) => s.subject === "all")) ?? !1;
919
919
  }
920
- function Ne(e) {
920
+ function Te(e) {
921
921
  const s = e.find((t) => t.subject === J.Subject.Business.role);
922
922
  return s ? s.conditions ? JSON.parse(s.conditions).roleId.$in : null : [];
923
923
  }
924
- function Te(e, s) {
924
+ function Ce(e, s) {
925
925
  return e.map((t) => {
926
926
  const o = pe(t);
927
927
  return {
@@ -949,10 +949,10 @@ function pe(e) {
949
949
  conditions: { name: t },
950
950
  inverted: !1,
951
951
  reason: ""
952
- })) : o = B.find((i) => i.subject === s), N(o || { subject: h.F_RULE_SUBJECT.enum.order, actions: [], label: "" });
952
+ })) : o = B.find((i) => i.subject === s), T(o || { subject: h.F_RULE_SUBJECT.enum.order, actions: [], label: "" });
953
953
  }
954
954
  function be(e, s = []) {
955
- return x(
955
+ return k(
956
956
  e.reduce((t, o) => {
957
957
  const i = me.find(
958
958
  (n) => n.subject === o.subject && o.actions.includes("manage")
@@ -973,11 +973,11 @@ export {
973
973
  Q as c,
974
974
  de as d,
975
975
  B as e,
976
- Te as f,
976
+ Ce as f,
977
977
  Ee as g,
978
- Ce as h,
978
+ Ne as h,
979
979
  te as i,
980
- Ne as j,
980
+ Te as j,
981
981
  fe as k,
982
982
  Re as l,
983
983
  Pe as m,
@@ -985,7 +985,7 @@ export {
985
985
  $e as o,
986
986
  me as p,
987
987
  ue as q,
988
- N as r,
988
+ T as r,
989
989
  Ie as s,
990
990
  Oe as t,
991
991
  se as u,