@feedmepos/mf-hrm-portal 2.0.8-dev.19 → 2.0.8-dev.20

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 (26) hide show
  1. package/dist/{AuditLogList-BwXO87D4.js → AuditLogList-BfcV3GuV.js} +209 -199
  2. package/dist/{EmployeeList-memPGU-S.js → EmployeeList-CSGpTtj-.js} +5 -5
  3. package/dist/{Main-DSMAqUau.js → Main-5iSh8AOp.js} +9 -9
  4. package/dist/{Main-N6Q7Gmy_.js → Main-BttHvrfX.js} +4 -4
  5. package/dist/{Main-q_gT3UIr.js → Main-C6_hymuD.js} +6 -6
  6. package/dist/{PermissionSetList-Bh0FqlHT.js → PermissionSetList-D-qEchys.js} +33 -33
  7. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B3f06Kpx.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JoFnQhkL.js} +765 -765
  8. package/dist/{RoleList-FhNAXjI9.js → RoleList-DMC1MFbx.js} +7 -7
  9. package/dist/{TeamMemberList-kQy-NgkT.js → TeamMemberList-CFGAYF8K.js} +45 -45
  10. package/dist/{TimesheetList-BrQUH58D.js → TimesheetList-BYT7Nmjf.js} +7 -7
  11. package/dist/{app-DG3qS1TM.js → app-D8vTftyA.js} +1962 -1232
  12. package/dist/app.js +1 -1
  13. package/dist/{dayjs.min-IQNr_jJN.js → dayjs.min-B5H5x-Tu.js} +1 -1
  14. package/dist/{employee-AAKiSW7R.js → employee-BE5Sm7cX.js} +4 -4
  15. package/dist/{index-FoKQ8_0w.js → index-D0zaceK9.js} +12 -12
  16. package/dist/{index-CRKGw084.js → index-DNLkGHeZ.js} +1 -1
  17. package/dist/{iteration-D1Az4IpE.js → iteration-AxipbNoR.js} +1 -1
  18. package/dist/{lodash-BPJz-8Ja.js → lodash-B4DK5U2H.js} +1 -1
  19. package/dist/src/views/audit-log/constants.d.ts +30 -0
  20. package/dist/{team-BNIF9jOa.js → team-BY_49uIG.js} +1 -1
  21. package/dist/{timesheet-eFbQwdWG.js → timesheet-Bq9nINdL.js} +3 -3
  22. package/dist/tsconfig.app.tsbuildinfo +1 -1
  23. package/dist/{useAppStore-Bepv1nhX.js → useAppStore-ByKKnIVk.js} +1 -1
  24. package/dist/{useLoading-C7ZhUGJ-.js → useLoading-pWhsmlRR.js} +1 -1
  25. package/dist/{useReportPermissions-ia-Cp_6x.js → useReportPermissions-CIMFHvmS.js} +3 -3
  26. package/package.json +3 -3
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as e, i as r, r as o } from "./app-DG3qS1TM.js";
1
+ import { d as e, a as r, r as o } from "./app-D8vTftyA.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g as Q, c as K } from "./app-DG3qS1TM.js";
1
+ import { g as Q, c as K } from "./app-D8vTftyA.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, k) {
@@ -1,10 +1,10 @@
1
- import { d as T } from "./dayjs.min-IQNr_jJN.js";
1
+ import { d as T } from "./dayjs.min-B5H5x-Tu.js";
2
2
  import { defineStore as _, storeToRefs as U } from "pinia";
3
3
  import { ref as I } from "vue";
4
4
  import { useCoreStore as $ } from "@feedmepos/mf-common";
5
- import { b as r, g as o, s as v } from "./iteration-D1Az4IpE.js";
6
- import { t as b, i as S } from "./index-FoKQ8_0w.js";
7
- import { u as x } from "./useAppStore-Bepv1nhX.js";
5
+ import { b as r, g as o, s as v } from "./iteration-AxipbNoR.js";
6
+ import { t as b, i as S } from "./index-D0zaceK9.js";
7
+ import { u as x } from "./useAppStore-ByKKnIVk.js";
8
8
  const n = {
9
9
  async readEmployees() {
10
10
  return o(await r().get("/pos-users"));
@@ -1,7 +1,7 @@
1
- import { g as b, b as g, d as X, e as j, s as L, q as M } from "./iteration-D1Az4IpE.js";
2
- import { b as J, e as R, d as F, a as D, y as S, N as Q } from "./app-DG3qS1TM.js";
1
+ import { g as b, b as g, d as X, e as j, s as L, q as M } from "./iteration-AxipbNoR.js";
2
+ import { u as J, b as R, A as F, p as D, e as S, C as Q } from "./app-D8vTftyA.js";
3
3
  import { defineStore as x, storeToRefs as k } from "pinia";
4
- import { ref as h, computed as N } from "vue";
4
+ import { ref as h, computed as C } from "vue";
5
5
  import { useCoreStore as q } from "@feedmepos/mf-common";
6
6
  const T = [
7
7
  {
@@ -511,14 +511,14 @@ function W(e) {
511
511
  t(s.inverted ? o : n, s, a);
512
512
  return [...Array.from(n.values()), ...Array.from(o.values())];
513
513
  }
514
- function C(e, n) {
514
+ function N(e, n) {
515
515
  return `${e}::${[...n].sort().join(",")}`;
516
516
  }
517
517
  function z(e, n) {
518
518
  const o = [...e], t = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
519
519
  for (const i of e) {
520
520
  const c = R(i.subject);
521
- t.add(C(c, i.actions)), i.inverted && i.actions.includes("manage") && a.add(`set_${c}`), !i.inverted && i.actions.includes("manage") && s.add(c);
521
+ t.add(N(c, i.actions)), i.inverted && i.actions.includes("manage") && a.add(`set_${c}`), !i.inverted && i.actions.includes("manage") && s.add(c);
522
522
  }
523
523
  const r = [...e];
524
524
  for (; r.length > 0; ) {
@@ -529,7 +529,7 @@ function z(e, n) {
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 = R(p.subject), f = C(m, p.actions);
532
+ const m = R(p.subject), f = N(m, p.actions);
533
533
  t.has(f) || s.has(m) || (t.add(f), o.push({
534
534
  ...p,
535
535
  // FdoPermissionRule.fields is string[] | null; RawRule expects string[] | undefined
@@ -543,7 +543,7 @@ function z(e, n) {
543
543
  }));
544
544
  }
545
545
  for (const p of u.permissionSets ?? []) {
546
- const m = R(p), f = C(m, ["manage"]), v = {
546
+ const m = R(p), f = N(m, ["manage"]), v = {
547
547
  subject: m,
548
548
  actions: ["manage"],
549
549
  source: {
@@ -853,7 +853,7 @@ function de() {
853
853
  }
854
854
  }
855
855
  }
856
- const o = N(() => O.value.map(
856
+ const o = C(() => O.value.map(
857
857
  (t) => t.isDefault ? {
858
858
  label: t.name,
859
859
  subject: `business::report::reports::${t.permissionKey}`,
@@ -875,8 +875,8 @@ function de() {
875
875
  return {
876
876
  fetchCustomReportPermissions: n,
877
877
  customReportPermissions: o,
878
- isLoading: N(() => w.value),
879
- isLoaded: N(() => _.value)
878
+ isLoading: C(() => w.value),
879
+ isLoaded: C(() => _.value)
880
880
  };
881
881
  }
882
882
  function U(e) {
@@ -913,7 +913,7 @@ function U(e) {
913
913
  }
914
914
  const me = Object.freeze(
915
915
  Object.values(Q)
916
- ), Ne = {
916
+ ), Ce = {
917
917
  async readTeamMembers() {
918
918
  return b(
919
919
  await g().get("/portal-users")
@@ -958,7 +958,7 @@ export {
958
958
  Ie as q,
959
959
  E as r,
960
960
  Oe as s,
961
- Ne as t,
961
+ Ce as t,
962
962
  G as u,
963
963
  ue as v,
964
964
  ne 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-DG3qS1TM.js";
5
+ import { c as st } from "./app-D8vTftyA.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-DG3qS1TM.js";
1
+ import { c as U } from "./app-D8vTftyA.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) {
@@ -1,4 +1,4 @@
1
- import { c as jt } from "./app-DG3qS1TM.js";
1
+ import { c as jt } from "./app-D8vTftyA.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -0,0 +1,30 @@
1
+ export declare const AUDIT_LOG_MODULE_TABS: readonly [{
2
+ readonly key: "all";
3
+ readonly label: "All";
4
+ readonly subjectPrefixes: string[];
5
+ }, {
6
+ readonly key: "inventory";
7
+ readonly label: "Inventory";
8
+ readonly subjectPrefixes: readonly ["business::inventory", "inventory"];
9
+ }, {
10
+ readonly key: "report";
11
+ readonly label: "Report";
12
+ readonly subjectPrefixes: readonly ["business::report", "report"];
13
+ }, {
14
+ readonly key: "hrm";
15
+ readonly label: "HRM";
16
+ readonly subjectPrefixes: readonly ["business::hrm", "hrm"];
17
+ }, {
18
+ readonly key: "payment";
19
+ readonly label: "Payment";
20
+ readonly subjectPrefixes: readonly ["business::payment", "payment"];
21
+ }, {
22
+ readonly key: "menu";
23
+ readonly label: "Menu";
24
+ readonly subjectPrefixes: readonly ["business::menu", "menu"];
25
+ }, {
26
+ readonly key: "crm";
27
+ readonly label: "CRM";
28
+ readonly subjectPrefixes: readonly ["business::crm", "crm"];
29
+ }];
30
+ export type AuditLogModuleTab = (typeof AUDIT_LOG_MODULE_TABS)[number];
@@ -1,6 +1,6 @@
1
1
  import { defineStore as d } from "pinia";
2
2
  import { ref as s, computed as o } from "vue";
3
- import { t as f } from "./index-FoKQ8_0w.js";
3
+ import { t as f } from "./index-D0zaceK9.js";
4
4
  const I = d("team", () => {
5
5
  const r = s([]), a = s(!1), m = o(
6
6
  () => Object.fromEntries(r.value.map((e) => [e.doc.userId, e.name]))
@@ -1,8 +1,8 @@
1
- import { d as i } from "./dayjs.min-IQNr_jJN.js";
1
+ import { d as i } from "./dayjs.min-B5H5x-Tu.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-D1Az4IpE.js";
5
- import { i as u, b as g } from "./index-FoKQ8_0w.js";
4
+ import { b as c, g as y, s as S } from "./iteration-AxipbNoR.js";
5
+ import { i as u, b as g } from "./index-D0zaceK9.js";
6
6
  const f = {
7
7
  async readTimesheets(t, e) {
8
8
  return y(await c().get(`timesheet?start=${t}&end=${e}`));