@feedmepos/mf-hrm-portal 2.0.20-dev.1 → 2.0.20-dev.3

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 (31) hide show
  1. package/dist/{AuditLogList-Bsj-qg8n.js → AuditLogList-7E8iWQWx.js} +4 -4
  2. package/dist/EmployeeList-DyNW3cUo.js +851 -0
  3. package/dist/{Main-CSMAtoMj.js → Main-BLJyOcEv.js} +184 -176
  4. package/dist/{Main-BGc6kNaR.js → Main-BZjZxFHp.js} +2008 -2001
  5. package/dist/Main-C9lMH4EN.js +90 -0
  6. package/dist/PermissionSetList-BuCp14Os.js +355 -0
  7. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CdWgTjZw.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BQSDnH-Z.js} +675 -661
  8. package/dist/RoleList-L8L1xmJ2.js +564 -0
  9. package/dist/TeamMemberList-DEN9rHqb.js +1124 -0
  10. package/dist/{TimesheetList-tFjvFHqH.js → TimesheetList-D88u0GFn.js} +61 -53
  11. package/dist/{app-CL7rUfL3.js → app-g_SrJtfC.js} +191 -193
  12. package/dist/app.js +1 -1
  13. package/dist/{dayjs.min-ChdFPuFV.js → dayjs.min-BGHzwXCt.js} +1 -1
  14. package/dist/employee-Dep-q_aU.js +200 -0
  15. package/dist/{iteration-BbD0nOgO.js → iteration-Dc-Bz5bA.js} +173 -175
  16. package/dist/{lodash-CDf3aG6G.js → lodash-Cxw1GZ6L.js} +1 -1
  17. package/dist/{rule-BJ-y3Sp8.js → rule-ClRtpdqO.js} +27 -26
  18. package/dist/src/types/team.d.ts +1 -0
  19. package/dist/style.css +1 -1
  20. package/dist/{timesheet-BmV02Rkz.js → timesheet-CZoSvFYT.js} +2 -2
  21. package/dist/tsconfig.app.tsbuildinfo +1 -1
  22. package/dist/{useAppStore-D8QAGZ02.js → useAppStore-CTBRpqmO.js} +36 -38
  23. package/dist/{useLoading-KpcQw0p4.js → useLoading-XvrLj1VM.js} +1 -1
  24. package/dist/{useReportPermissions-CmGJAz_N.js → useReportPermissions-nivbQm9V.js} +3 -3
  25. package/package.json +1 -1
  26. package/dist/EmployeeList-Cy2ayCko.js +0 -824
  27. package/dist/Main-D7bV8EuC.js +0 -86
  28. package/dist/PermissionSetList-CuHhDqWl.js +0 -347
  29. package/dist/RoleList-e0WUqt4Y.js +0 -545
  30. package/dist/TeamMemberList-CpPa1KyV.js +0 -1097
  31. package/dist/employee-kKV7UnHU.js +0 -204
@@ -1,4 +1,4 @@
1
- import { c as jt } from "./app-CL7rUfL3.js";
1
+ import { c as jt } from "./app-g_SrJtfC.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -1,5 +1,5 @@
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-BbD0nOgO.js";
2
- import { e as I, h as k, b as F, l as j, C as Z, d as J } from "./app-CL7rUfL3.js";
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-Dc-Bz5bA.js";
2
+ import { e as R, h as k, b as F, l as j, C as Z, d as J } from "./app-g_SrJtfC.js";
3
3
  import { s as q } from "./utils-BZkjJbju.js";
4
4
  import { defineStore as W, storeToRefs as V } from "pinia";
5
5
  import { ref as S, computed as T } from "vue";
@@ -414,19 +414,19 @@ function U(e, s) {
414
414
  function X(e, s) {
415
415
  const t = [...e], o = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
416
416
  for (const r of e) {
417
- const a = I(r.subject);
417
+ const a = R(r.subject);
418
418
  o.add(U(a, r.actions)), r.inverted && r.actions.includes("manage") && i.add(`set_${a}`), !r.inverted && r.actions.includes("manage") && n.add(a);
419
419
  }
420
420
  const c = [...e];
421
421
  for (; c.length > 0; ) {
422
- const r = c.shift(), a = `set_${I(r.subject)}`, u = s[a];
422
+ const r = c.shift(), a = `set_${R(r.subject)}`, u = s[a];
423
423
  if (!u || i.has(a) || !r.actions.includes("manage") || r.inverted) continue;
424
424
  i.add(a);
425
425
  const l = ne(r);
426
426
  r.source && !r.source.trace && (r.source = { ...r.source, trace: l });
427
427
  const d = [...l, `${u.name} (system)`];
428
428
  for (const p of u.permissions ?? []) {
429
- const m = I(p.subject), f = U(m, p.actions);
429
+ const m = R(p.subject), f = U(m, p.actions);
430
430
  o.has(f) || n.has(m) || (o.add(f), t.push({
431
431
  ...p,
432
432
  // FdoPermissionRule.fields is string[] | null; RawRule expects string[] | undefined
@@ -440,7 +440,7 @@ function X(e, s) {
440
440
  }));
441
441
  }
442
442
  for (const p of u.permissionSets ?? []) {
443
- const m = I(p), f = U(m, ["manage"]), g = {
443
+ const m = R(p), f = U(m, ["manage"]), g = {
444
444
  subject: m,
445
445
  actions: ["manage"],
446
446
  source: {
@@ -561,7 +561,7 @@ function $e(e, s) {
561
561
  }
562
562
  return n;
563
563
  }
564
- function Re(e) {
564
+ function Ie(e) {
565
565
  const s = X(
566
566
  e,
567
567
  k
@@ -581,7 +581,7 @@ function Re(e) {
581
581
  return e.filter((i) => i.inverted ? !(t.has(i.subject) && !o.has(i.subject)) : !t.has(i.subject));
582
582
  }
583
583
  const te = "business::report::";
584
- function Ie(e, s) {
584
+ function Re(e, s) {
585
585
  const t = [], o = e.filter((i) => {
586
586
  const n = i.subject;
587
587
  return !n.startsWith(te) || s.has(n) ? !0 : (t.push(n), !1);
@@ -789,7 +789,7 @@ function de() {
789
789
  isLoaded: T(() => E.value)
790
790
  };
791
791
  }
792
- function R(e) {
792
+ function I(e) {
793
793
  const s = se(), t = ue(), o = H().restaurants, { customReportPermissions: i } = de(), n = t.getPermissionAssignmentByUserId(e.id), c = Q(
794
794
  (n == null ? void 0 : n.permissionSetIds) ?? [],
795
795
  s.permissionSets.value
@@ -797,7 +797,7 @@ function R(e) {
797
797
  ({ setNames: f, ...g }) => g
798
798
  ), a = n == null ? void 0 : n.customPermissions, u = a ?? e.permissions.map((f) => ({
799
799
  ...f,
800
- subject: I(f.subject)
800
+ subject: R(f.subject)
801
801
  })), l = M(r, u), d = X(
802
802
  ae(r, u),
803
803
  k
@@ -825,10 +825,10 @@ const me = Object.freeze(
825
825
  async readTeamMembers() {
826
826
  return b(
827
827
  await v().get("/portal-users")
828
- ).map(R);
828
+ ).map(I);
829
829
  },
830
830
  async readTeamMembersPage(e) {
831
- var t, o;
831
+ var t, o, i;
832
832
  const s = b(
833
833
  await v().get("/portal-users/paged", {
834
834
  params: {
@@ -836,27 +836,28 @@ const me = Object.freeze(
836
836
  offset: e.offset,
837
837
  search: e.search,
838
838
  restaurantIds: (t = e.restaurantIds) != null && t.length ? e.restaurantIds : void 0,
839
- permissionSubjects: (o = e.permissionSubjects) != null && o.length ? e.permissionSubjects : void 0
839
+ permissionSubjects: (o = e.permissionSubjects) != null && o.length ? e.permissionSubjects : void 0,
840
+ permissionSetIds: (i = e.permissionSetIds) != null && i.length ? e.permissionSetIds : void 0
840
841
  }
841
842
  })
842
843
  );
843
844
  return {
844
- items: s.items.map(R),
845
+ items: s.items.map(I),
845
846
  total: s.total
846
847
  };
847
848
  },
848
849
  async readTeamMember(e) {
849
- return R(
850
+ return I(
850
851
  b(await v().get(`/portal-users/${e}`))
851
852
  );
852
853
  },
853
854
  async createTeamMember(e) {
854
- return R(
855
+ return I(
855
856
  b(await v().post("/portal-users", e))
856
857
  );
857
858
  },
858
859
  async updateTeamMember(e, s) {
859
- return R(
860
+ return I(
860
861
  b(await v().put(`/portal-users/${e}`, s))
861
862
  );
862
863
  },
@@ -977,18 +978,18 @@ export {
977
978
  Ce as h,
978
979
  te as i,
979
980
  Ne as j,
980
- Ie as k,
981
- Ae as l,
981
+ fe as k,
982
+ Re as l,
982
983
  Pe as m,
983
- $e as n,
984
- ue as o,
984
+ Ae as n,
985
+ $e as o,
985
986
  me as p,
986
- be as q,
987
+ ue as q,
987
988
  N as r,
988
- Re as s,
989
+ Ie as s,
989
990
  Oe as t,
990
991
  se as u,
991
- K as v,
992
- we as w,
993
- fe as x
992
+ be as v,
993
+ K as w,
994
+ we as x
994
995
  };
@@ -68,6 +68,7 @@ export interface IReadTeamMembersPageReq {
68
68
  search?: string;
69
69
  restaurantIds?: string[];
70
70
  permissionSubjects?: string[];
71
+ permissionSetIds?: string[];
71
72
  }
72
73
  export interface IFdtoTeamMemberPage {
73
74
  items: FTeamMember[];
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .employee-list-table[data-v-0b79e256] [class~=gap-24]>div:first-child{display:none}.user-info-icon[data-v-c2c7ed35]{flex-shrink:0;cursor:pointer;font-size:.75rem;font-weight:600;line-height:1rem;letter-spacing:.02em;text-decoration-line:none;color:var(--fm-color-neutral-white);display:flex;align-items:center;justify-content:center;background:linear-gradient(201deg,#fc9b40 10.3%,#ff6052 98.36%)}.user-info-icon--md[data-v-c2c7ed35]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-c2c7ed35]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-c2c7ed35]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-c2c7ed35]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(8px * var(--tw-space-x-reverse));margin-left:calc(8px * calc(1 - var(--tw-space-x-reverse)))}.profile-menu--profile[data-v-c2c7ed35]{padding:16px 16px 12px;border-radius:8px;display:flex;align-items:center;border-width:1px;border-color:var(--fm-color-neutral-gray-200)}.profile-menu--profile .profile-displayName[data-v-c2c7ed35]{font-size:1rem;font-weight:400;line-height:1.25rem;letter-spacing:.005em;text-decoration-line:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu--profile .profile-email[data-v-c2c7ed35],.profile-menu--profile .profile-phone[data-v-c2c7ed35]{font-size:.875rem;font-weight:400;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;color:var(--fm-color-neutral-gray-300);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-log-list-table[data-v-5566060e] [class~=gap-24]>div:first-child{display:none}.audit-log-action-label[data-v-5566060e]{display:block;width:100%;max-width:100%;max-height:6.25rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.25rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-action-label[data-v-5566060e]::-webkit-scrollbar{display:none}.audit-log-operation-label-detail[data-v-5566060e]{max-height:6.875rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.375rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-operation-label-detail[data-v-5566060e]::-webkit-scrollbar{display:none}
1
+ .employee-list-table[data-v-cefb09f9] [class~=gap-24]>div:first-child{display:none}.user-info-icon[data-v-c2c7ed35]{flex-shrink:0;cursor:pointer;font-size:.75rem;font-weight:600;line-height:1rem;letter-spacing:.02em;text-decoration-line:none;color:var(--fm-color-neutral-white);display:flex;align-items:center;justify-content:center;background:linear-gradient(201deg,#fc9b40 10.3%,#ff6052 98.36%)}.user-info-icon--md[data-v-c2c7ed35]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-c2c7ed35]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-c2c7ed35]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-c2c7ed35]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(8px * var(--tw-space-x-reverse));margin-left:calc(8px * calc(1 - var(--tw-space-x-reverse)))}.profile-menu--profile[data-v-c2c7ed35]{padding:16px 16px 12px;border-radius:8px;display:flex;align-items:center;border-width:1px;border-color:var(--fm-color-neutral-gray-200)}.profile-menu--profile .profile-displayName[data-v-c2c7ed35]{font-size:1rem;font-weight:400;line-height:1.25rem;letter-spacing:.005em;text-decoration-line:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu--profile .profile-email[data-v-c2c7ed35],.profile-menu--profile .profile-phone[data-v-c2c7ed35]{font-size:.875rem;font-weight:400;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;color:var(--fm-color-neutral-gray-300);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-log-list-table[data-v-5566060e] [class~=gap-24]>div:first-child{display:none}.audit-log-action-label[data-v-5566060e]{display:block;width:100%;max-width:100%;max-height:6.25rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.25rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-action-label[data-v-5566060e]::-webkit-scrollbar{display:none}.audit-log-operation-label-detail[data-v-5566060e]{max-height:6.875rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.375rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-operation-label-detail[data-v-5566060e]::-webkit-scrollbar{display:none}
@@ -1,7 +1,7 @@
1
- import { d as i } from "./dayjs.min-ChdFPuFV.js";
1
+ import { d as i } from "./dayjs.min-BGHzwXCt.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-BbD0nOgO.js";
4
+ import { b as c, g as y, s as S } from "./iteration-Dc-Bz5bA.js";
5
5
  import { i as f, f as g } from "./utils-BZkjJbju.js";
6
6
  const u = {
7
7
  async readTimesheets(t, e) {