@feedmepos/mf-hrm-portal 2.0.14 → 2.0.15-dev

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-n6b4-GzJ.js → AuditLogList-DBIsI4YF.js} +4 -4
  2. package/dist/{EmployeeList-B7cemoN0.js → EmployeeList-BOSxLZbY.js} +5 -5
  3. package/dist/{Main-Dn71WvVQ.js → Main-B3YiMuFq.js} +9 -9
  4. package/dist/{Main-79eUPL7p.js → Main-BAZAQTWi.js} +4 -4
  5. package/dist/{Main-Cw4gYTr3.js → Main-D7yzD5SW.js} +5 -5
  6. package/dist/{PermissionSetList-BNNwLjXj.js → PermissionSetList-DBT9LtfT.js} +15 -15
  7. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BYyT6oya.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BfqnjeTK.js} +793 -793
  8. package/dist/{RoleList-DY8Za0dd.js → RoleList-DeE5tN-5.js} +7 -7
  9. package/dist/{TeamMemberList-DSHrsX5J.js → TeamMemberList-BCv5Vixx.js} +65 -65
  10. package/dist/{TimesheetList-CXPqOjdC.js → TimesheetList-DpMBgVtY.js} +7 -7
  11. package/dist/{app-DPZbZJCq.js → app-pvHHFjbx.js} +283 -242
  12. package/dist/app.js +2 -2
  13. package/dist/{dayjs.min-DW1WmkoA.js → dayjs.min-BK_bM9xY.js} +1 -1
  14. package/dist/{employee-Kw8TDet-.js → employee-DhkixwiI.js} +4 -4
  15. package/dist/{index-nwRgIeL9.js → index-Bckj5jnu.js} +17 -17
  16. package/dist/{index-CQ9ZArJF.js → index-DK4fVbTF.js} +1 -1
  17. package/dist/{iteration-BFQu0b3r.js → iteration-Bk3cnP07.js} +2 -2
  18. package/dist/{lodash-Dsav6UyM.js → lodash-TrOlqj07.js} +1 -1
  19. package/dist/{timesheet-ZmSkwQIE.js → timesheet-DSQeCVfL.js} +3 -3
  20. package/dist/tsconfig.app.tsbuildinfo +1 -1
  21. package/dist/{useAppStore-CKbtSJIP.js → useAppStore-DwfwjZpc.js} +1 -1
  22. package/dist/{useLoading-C0ICgchk.js → useLoading-fEAOlgoV.js} +1 -1
  23. package/dist/{useReportPermissions-lRru0ii7.js → useReportPermissions-CkOk_2tl.js} +3 -3
  24. package/package.json +1 -1
package/dist/app.js CHANGED
@@ -1,6 +1,6 @@
1
- import { d as e, i as r, r as o } from "./app-DPZbZJCq.js";
1
+ import { f as a, e as r, r as o } from "./app-pvHHFjbx.js";
2
2
  export {
3
- e as FmApp,
3
+ a as FmApp,
4
4
  r as i18nMessages,
5
5
  o as routes
6
6
  };
@@ -1,4 +1,4 @@
1
- import { g as Q, c as K } from "./app-DPZbZJCq.js";
1
+ import { g as Q, c as K } from "./app-pvHHFjbx.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, k) {
@@ -1,10 +1,10 @@
1
- import { d as M } from "./dayjs.min-DW1WmkoA.js";
1
+ import { d as M } from "./dayjs.min-BK_bM9xY.js";
2
2
  import { defineStore as S, storeToRefs as $ } from "pinia";
3
3
  import { ref as u } from "vue";
4
4
  import { useCoreStore as w } from "@feedmepos/mf-common";
5
- import { b as l, g as f, s as E } from "./iteration-BFQu0b3r.js";
6
- import { t as b, i as v } from "./index-nwRgIeL9.js";
7
- import { u as _ } from "./useAppStore-CKbtSJIP.js";
5
+ import { b as l, g as f, s as E } from "./iteration-Bk3cnP07.js";
6
+ import { t as b, i as v } from "./index-Bckj5jnu.js";
7
+ import { u as _ } from "./useAppStore-DwfwjZpc.js";
8
8
  const n = {
9
9
  async readEmployees() {
10
10
  return f(await l().get("/pos-users"));
@@ -1,7 +1,7 @@
1
- import { g as b, b as g, d as Q, e as j, s as L, q as M } from "./iteration-BFQu0b3r.js";
2
- import { u as J, b as A, A as F, p as D, e as S, k as Z } from "./app-DPZbZJCq.js";
1
+ import { g as b, b as g, d as Q, e as j, s as L, q as M } from "./iteration-Bk3cnP07.js";
2
+ import { i as J, u as A, A as F, d as D, y as S, C as Z } from "./app-pvHHFjbx.js";
3
3
  import { defineStore as x, storeToRefs as k } from "pinia";
4
- import { ref as y, computed as T } from "vue";
4
+ import { ref as y, computed as N } from "vue";
5
5
  import { useCoreStore as W } from "@feedmepos/mf-common";
6
6
  const U = [
7
7
  {
@@ -400,10 +400,10 @@ function he(e, t, s) {
400
400
  if (e.some((a) => a.subject === "all")) return "All";
401
401
  const o = (s ?? U).filter(
402
402
  (a) => a.subject === t
403
- ), r = new Set(o.map((a) => N(a).value)), n = e.filter((a) => a.subject === t).filter((a) => r.has(N(a).value));
403
+ ), r = new Set(o.map((a) => C(a).value)), n = e.filter((a) => a.subject === t).filter((a) => r.has(C(a).value));
404
404
  return n.length === o.length ? "All" : n.length === 0 ? "-" : `${n.length} permission allow`;
405
405
  }
406
- function N(e) {
406
+ function C(e) {
407
407
  const t = Q(e), s = t.subject;
408
408
  return {
409
409
  ...t,
@@ -433,7 +433,7 @@ function N(e) {
433
433
  };
434
434
  }
435
435
  function ye(e) {
436
- const t = e.map((s) => N(s)).find((s) => s.isDiscountOperation);
436
+ const t = e.map((s) => C(s)).find((s) => s.isDiscountOperation);
437
437
  return t ? parseInt((t.conditions.adjustment.$lte * 100).toFixed(0)) : 100;
438
438
  }
439
439
  function q(e) {
@@ -477,7 +477,7 @@ function ee(e) {
477
477
  conditions: { name: s },
478
478
  inverted: !1,
479
479
  reason: ""
480
- })) : o = U.find((r) => r.subject === t), N(o || { subject: j.F_RULE_SUBJECT.enum.order, actions: [], label: "" });
480
+ })) : o = U.find((r) => r.subject === t), C(o || { subject: j.F_RULE_SUBJECT.enum.order, actions: [], label: "" });
481
481
  }
482
482
  function te(e, t = []) {
483
483
  return L(
@@ -511,14 +511,14 @@ function z(e) {
511
511
  o(n.inverted ? s : t, n, r);
512
512
  return [...Array.from(t.values()), ...Array.from(s.values())];
513
513
  }
514
- function C(e, t) {
514
+ function T(e, t) {
515
515
  return `${e}::${[...t].sort().join(",")}`;
516
516
  }
517
517
  function V(e, t) {
518
518
  const s = [...e], o = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
519
519
  for (const i of e) {
520
520
  const c = A(i.subject);
521
- o.add(C(c, i.actions)), i.inverted && i.actions.includes("manage") && r.add(`set_${c}`), !i.inverted && i.actions.includes("manage") && n.add(c);
521
+ o.add(T(c, i.actions)), i.inverted && i.actions.includes("manage") && r.add(`set_${c}`), !i.inverted && i.actions.includes("manage") && n.add(c);
522
522
  }
523
523
  const a = [...e];
524
524
  for (; a.length > 0; ) {
@@ -529,7 +529,7 @@ function V(e, t) {
529
529
  i.source && !i.source.trace && (i.source = { ...i.source, trace: l });
530
530
  const d = [...l, `${u.name} (system)`];
531
531
  for (const p of u.permissions ?? []) {
532
- const m = A(p.subject), f = C(m, p.actions);
532
+ const m = A(p.subject), f = T(m, p.actions);
533
533
  o.has(f) || n.has(m) || (o.add(f), s.push({
534
534
  ...p,
535
535
  // FdoPermissionRule.fields is string[] | null; RawRule expects string[] | undefined
@@ -543,7 +543,7 @@ function V(e, t) {
543
543
  }));
544
544
  }
545
545
  for (const p of u.permissionSets ?? []) {
546
- const m = A(p), f = C(m, ["manage"]), v = {
546
+ const m = A(p), f = T(m, ["manage"]), v = {
547
547
  subject: m,
548
548
  actions: ["manage"],
549
549
  source: {
@@ -860,7 +860,7 @@ function de() {
860
860
  }
861
861
  }
862
862
  }
863
- const s = T(() => _.value.map(
863
+ const s = N(() => _.value.map(
864
864
  (o) => o.isDefault ? {
865
865
  label: o.name,
866
866
  subject: `business::report::reports::${o.permissionKey}`,
@@ -882,8 +882,8 @@ function de() {
882
882
  return {
883
883
  fetchCustomReportPermissions: t,
884
884
  customReportPermissions: s,
885
- isLoading: T(() => w.value),
886
- isLoaded: T(() => E.value)
885
+ isLoading: N(() => w.value),
886
+ isLoaded: N(() => E.value)
887
887
  };
888
888
  }
889
889
  function R(e) {
@@ -920,7 +920,7 @@ function R(e) {
920
920
  }
921
921
  const me = Object.freeze(
922
922
  Object.values(Z)
923
- ), Ne = {
923
+ ), Ce = {
924
924
  async readTeamMembers() {
925
925
  return b(
926
926
  await g().get("/portal-users")
@@ -986,9 +986,9 @@ export {
986
986
  Ee as o,
987
987
  me as p,
988
988
  Ie as q,
989
- N as r,
989
+ C as r,
990
990
  Oe as s,
991
- Ne as t,
991
+ Ce as t,
992
992
  H as u,
993
993
  ue as v,
994
994
  te as w,
@@ -2,7 +2,7 @@ var oe = Object.defineProperty;
2
2
  var se = (_, h, y) => h in _ ? oe(_, h, { enumerable: !0, configurable: !0, writable: !0, value: y }) : _[h] = y;
3
3
  var ot = (_, h, y) => se(_, typeof h != "symbol" ? h + "" : h, y);
4
4
  import { readonly as Nt, ref as Rt } from "vue";
5
- import { c as st } from "./app-DPZbZJCq.js";
5
+ import { c as st } from "./app-pvHHFjbx.js";
6
6
  var Pt = { exports: {} };
7
7
  (function(_, h) {
8
8
  (function(y, p) {
@@ -1,4 +1,4 @@
1
- import { c as U } from "./app-DPZbZJCq.js";
1
+ import { c as U } from "./app-pvHHFjbx.js";
2
2
  import { useCoreStore as To, baseClientInstance as jr, FeedMeAuth as Zs } from "@feedmepos/mf-common";
3
3
  var Ys = {}, _n = {}, _ = {}, zo = {}, $i = {}, eo = {}, ui = {};
4
4
  (function(e) {
@@ -9468,7 +9468,7 @@ const cc = (e) => (n) => {
9468
9468
  throw new Error("Invalid business");
9469
9469
  }, Bc = () => {
9470
9470
  var a;
9471
- const n = (a = To().currentCountry.value) == null ? void 0 : a.toLowerCase(), i = "feedmeapi.com", o = !n || n === "my" ? `https://query-engine.${i}` : `https://query-engine.${n}.${i}`;
9471
+ const n = (a = To().currentCountry.value) == null ? void 0 : a.toLowerCase(), i = "feedmeapidev.com", o = !n || n === "my" ? `https://query-engine.${i}` : `https://query-engine.${n}.${i}`;
9472
9472
  return cc(o)("");
9473
9473
  }, Nc = () => jr("user/bypass/validate/");
9474
9474
  function jc(e) {
@@ -1,4 +1,4 @@
1
- import { c as jt } from "./app-DPZbZJCq.js";
1
+ import { c as jt } from "./app-pvHHFjbx.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -1,8 +1,8 @@
1
- import { d as i } from "./dayjs.min-DW1WmkoA.js";
1
+ import { d as i } from "./dayjs.min-BK_bM9xY.js";
2
2
  import { defineStore as p, storeToRefs as T } from "pinia";
3
3
  import { ref as l } from "vue";
4
- import { b as c, g as y, s as S } from "./iteration-BFQu0b3r.js";
5
- import { i as u, b as g } from "./index-nwRgIeL9.js";
4
+ import { b as c, g as y, s as S } from "./iteration-Bk3cnP07.js";
5
+ import { i as u, b as g } from "./index-Bckj5jnu.js";
6
6
  const f = {
7
7
  async readTimesheets(t, e) {
8
8
  return y(await c().get(`timesheet?start=${t}&end=${e}`));