@feedmepos/mf-hrm-portal 2.0.8-dev.4 → 2.0.8-dev.6

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 (25) hide show
  1. package/dist/{AuditLogList-BscTDw7f.js → AuditLogList-Bi--djNo.js} +22 -22
  2. package/dist/{EmployeeList-QpIB0AXS.js → EmployeeList-DQ34Em1k.js} +5 -5
  3. package/dist/{Main-BSj43Pdc.js → Main-B6ILrjGv.js} +6 -6
  4. package/dist/{Main-Bl0VGnn1.js → Main-CL5HSLrz.js} +9 -9
  5. package/dist/{Main-sDQg3824.js → Main-HFWa8_uW.js} +4 -4
  6. package/dist/{PermissionSetList-Bkux87LR.js → PermissionSetList-Ci09rB-p.js} +5 -5
  7. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B4BhprVe.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cmhe2tvI.js} +611 -611
  8. package/dist/{RoleList-BRxUhBXh.js → RoleList-B_zQKYCH.js} +7 -7
  9. package/dist/{TeamMemberList-D3puvcA9.js → TeamMemberList-DFCtu_c7.js} +8 -8
  10. package/dist/{TimesheetList-CjE8XfWJ.js → TimesheetList-DHaqTrL0.js} +7 -7
  11. package/dist/{app-C9HyG-zy.js → app-2XxqgDvK.js} +1024 -842
  12. package/dist/app.js +1 -1
  13. package/dist/{dayjs.min-DNbUZdFy.js → dayjs.min-Asc6YM-u.js} +1 -1
  14. package/dist/{employee-DvQdratV.js → employee-CmfuGEin.js} +4 -4
  15. package/dist/{index-BRx9j4oZ.js → index-3FnU8yA-.js} +18 -18
  16. package/dist/{index-C8moNYeC.js → index-DQ49uyb8.js} +1 -1
  17. package/dist/{iteration-KLUms7Qj.js → iteration-3TwyQk8f.js} +1 -1
  18. package/dist/{lodash-DCsXdK6o.js → lodash-BLoODBU6.js} +1 -1
  19. package/dist/{team-Cguxd_q3.js → team-CMljmy8s.js} +1 -1
  20. package/dist/{timesheet-Bg3eBf_0.js → timesheet-DLuq_W9t.js} +3 -3
  21. package/dist/tsconfig.app.tsbuildinfo +1 -1
  22. package/dist/{useAppStore-5IngCVkm.js → useAppStore-C1nsK_PE.js} +1 -1
  23. package/dist/{useLoading-CpcZUx9R.js → useLoading-B1KB5VuL.js} +1 -1
  24. package/dist/{useReportPermissions-CzW7GcK3.js → useReportPermissions-CkPrwNqW.js} +3 -3
  25. package/package.json +2 -2
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, i as r, r as o } from "./app-C9HyG-zy.js";
1
+ import { a as e, i as r, r as o } from "./app-2XxqgDvK.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-C9HyG-zy.js";
1
+ import { g as Q, c as K } from "./app-2XxqgDvK.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-DNbUZdFy.js";
1
+ import { d as T } from "./dayjs.min-Asc6YM-u.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-KLUms7Qj.js";
6
- import { t as b, i as S } from "./index-BRx9j4oZ.js";
7
- import { u as x } from "./useAppStore-5IngCVkm.js";
5
+ import { b as r, g as o, s as v } from "./iteration-3TwyQk8f.js";
6
+ import { t as b, i as S } from "./index-3FnU8yA-.js";
7
+ import { u as x } from "./useAppStore-C1nsK_PE.js";
8
8
  const n = {
9
9
  async readEmployees() {
10
10
  return o(await r().get("/pos-users"));
@@ -1,5 +1,5 @@
1
- import { g as b, b as g, d as X, e as j, s as L, q as M } from "./iteration-KLUms7Qj.js";
2
- import { d as J, f as R, U as F, h as D, y as S, H } from "./app-C9HyG-zy.js";
1
+ import { g as b, b as g, d as X, e as j, s as L, q as M } from "./iteration-3TwyQk8f.js";
2
+ import { h as J, b as R, I as F, u as D, e as S, $ as Q } from "./app-2XxqgDvK.js";
3
3
  import { defineStore as x, storeToRefs as k } from "pinia";
4
4
  import { ref as h, computed as N } from "vue";
5
5
  import { useCoreStore as q } from "@feedmepos/mf-common";
@@ -350,7 +350,7 @@ const T = [
350
350
  async delete(e) {
351
351
  return b(await g().delete(`${A}/${e}`));
352
352
  }
353
- }, Q = x("permissionSet", () => {
353
+ }, Z = x("permissionSet", () => {
354
354
  const e = h([]);
355
355
  async function t() {
356
356
  const a = await I.read();
@@ -377,8 +377,8 @@ const T = [
377
377
  updatePermissionSet: o,
378
378
  deletePermissionSet: r
379
379
  };
380
- }), Z = () => {
381
- const e = Q();
380
+ }), G = () => {
381
+ const e = Z();
382
382
  return {
383
383
  ...e,
384
384
  ...k(e)
@@ -392,7 +392,7 @@ function je(e) {
392
392
  const t = Math.floor(e / 60), s = e % 60;
393
393
  return `${t}h ${s.toString().padStart(2, "0")}m`;
394
394
  }
395
- function G(e) {
395
+ function H(e) {
396
396
  const t = e.replace(/([A-Z])/g, " $1");
397
397
  return t.charAt(0).toUpperCase() + t.slice(1);
398
398
  }
@@ -425,7 +425,7 @@ function E(e) {
425
425
  return this.isOrderOperation ? o(this.conditions.operation) : this.isReportPermission ? o(this.conditions.name) : s.toString();
426
426
  },
427
427
  get label() {
428
- return t.label || G(this.formatted);
428
+ return t.label || H(this.formatted);
429
429
  },
430
430
  get value() {
431
431
  return this.isOrderOperation ? `${s}:${this.conditions.operation}` : this.isReportPermission ? `${s}:${this.conditions.name}` : s.toString();
@@ -511,14 +511,14 @@ function W(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 U(e, t) {
514
+ function C(e, t) {
515
515
  return `${e}::${[...t].sort().join(",")}`;
516
516
  }
517
517
  function z(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 = R(i.subject);
521
- o.add(U(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(C(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 z(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 = R(p.subject), f = U(m, p.actions);
532
+ const m = R(p.subject), f = C(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 z(e, t) {
543
543
  }));
544
544
  }
545
545
  for (const p of u.permissionSets ?? []) {
546
- const m = R(p), f = U(m, ["manage"]), v = {
546
+ const m = R(p), f = C(m, ["manage"]), v = {
547
547
  subject: m,
548
548
  actions: ["manage"],
549
549
  source: {
@@ -886,8 +886,8 @@ function de() {
886
886
  isLoaded: N(() => _.value)
887
887
  };
888
888
  }
889
- function C(e) {
890
- const t = q(), s = Z(), o = ue(), r = t.restaurants, { customReportPermissions: n } = de(), a = o.getPermissionAssignmentByUserId(e.id), i = V(
889
+ function U(e) {
890
+ const t = q(), s = G(), o = ue(), r = t.restaurants, { customReportPermissions: n } = de(), a = o.getPermissionAssignmentByUserId(e.id), i = V(
891
891
  (a == null ? void 0 : a.permissionSetIds) ?? [],
892
892
  s.permissionSets.value
893
893
  ), c = W(i).map(
@@ -919,20 +919,20 @@ function C(e) {
919
919
  };
920
920
  }
921
921
  const me = Object.freeze(
922
- Object.values(H)
922
+ Object.values(Q)
923
923
  ), Ne = {
924
924
  async readTeamMembers() {
925
925
  return b(
926
926
  await g().get("/portal-users")
927
- ).map(C);
927
+ ).map(U);
928
928
  },
929
929
  async createTeamMember(e) {
930
- return C(
930
+ return U(
931
931
  b(await g().post("/portal-users", e))
932
932
  );
933
933
  },
934
934
  async updateTeamMember(e, t) {
935
- return C(
935
+ return U(
936
936
  b(await g().put(`/portal-users/${e}`, t))
937
937
  );
938
938
  },
@@ -966,7 +966,7 @@ export {
966
966
  E as r,
967
967
  Oe as s,
968
968
  Ne as t,
969
- Z as u,
969
+ G as u,
970
970
  ue as v,
971
971
  ne as w,
972
972
  W as x,
@@ -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-C9HyG-zy.js";
5
+ import { c as st } from "./app-2XxqgDvK.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-C9HyG-zy.js";
1
+ import { c as U } from "./app-2XxqgDvK.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-C9HyG-zy.js";
1
+ import { c as jt } from "./app-2XxqgDvK.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -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-BRx9j4oZ.js";
3
+ import { t as f } from "./index-3FnU8yA-.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-DNbUZdFy.js";
1
+ import { d as i } from "./dayjs.min-Asc6YM-u.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-KLUms7Qj.js";
5
- import { i as u, b as g } from "./index-BRx9j4oZ.js";
4
+ import { b as c, g as y, s as S } from "./iteration-3TwyQk8f.js";
5
+ import { i as u, b as g } from "./index-3FnU8yA-.js";
6
6
  const f = {
7
7
  async readTimesheets(t, e) {
8
8
  return y(await c().get(`timesheet?start=${t}&end=${e}`));