@feedmepos/mf-hrm-portal 2.0.24-dev.1 → 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 (28) hide show
  1. package/dist/AuditLogList-D13Tma55.js +1054 -0
  2. package/dist/{EmployeeList-B-XHFRU-.js → EmployeeList-CmU-WKPT.js} +76 -76
  3. package/dist/{Main-0k0WaemL.js → Main-Bb7KhUuL.js} +6 -6
  4. package/dist/{Main-CjfEUkuJ.js → Main-Br31SktO.js} +9 -9
  5. package/dist/{Main-2OGCqAeO.js → Main-CMv3GJZK.js} +4 -4
  6. package/dist/{PermissionSetList-Cl5Zkj0c.js → PermissionSetList-C6nSv0Em.js} +6 -6
  7. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DhsRoS9v.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-NFr_QRGO.js} +681 -681
  8. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-DREzWx0l.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-BypKOLqT.js} +1 -1
  9. package/dist/{RoleList-CqxTqm13.js → RoleList-VS11Dt8v.js} +51 -49
  10. package/dist/{TeamMemberList-BVWthOPA.js → TeamMemberList-BZv00x4B.js} +59 -59
  11. package/dist/{TimesheetList-Bh9v_qYt.js → TimesheetList-DFbVpInY.js} +9 -9
  12. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_d7ed31d7_lang-CLPUVVhu.js → TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-u6mJw-wq.js} +2 -2
  13. package/dist/{app-CMYV9sz0.js → app-DPuGdUoR.js} +136 -113
  14. package/dist/app.js +1 -1
  15. package/dist/{dayjs.min-DlsortAX.js → dayjs.min-BhwkmEiy.js} +1 -1
  16. package/dist/{employee-walWoaes.js → employee-CUQGn4B5.js} +3 -3
  17. package/dist/{iteration-CzhHoG_z.js → iteration-C2RViFQ4.js} +1 -1
  18. package/dist/{lodash-DLFCPgMt.js → lodash-DQoFrc1P.js} +1 -1
  19. package/dist/{rule-BqeyTmLz.js → rule-DRvM4HKU.js} +25 -25
  20. package/dist/src/stores/team.d.ts +4 -1
  21. package/dist/src/views/audit-log/locales/index.d.ts +16 -8
  22. package/dist/style.css +1 -1
  23. package/dist/tsconfig.app.tsbuildinfo +1 -1
  24. package/dist/{useAppStore-BX_L8TWU.js → useAppStore-DqX0G_6s.js} +1 -1
  25. package/dist/{useLoading-BlNSXpjY.js → useLoading-Dx1S3DeY.js} +1 -1
  26. package/dist/{useReportPermissions-DiF4euxe.js → useReportPermissions-DH4hhuYf.js} +3 -3
  27. package/package.json +2 -2
  28. package/dist/AuditLogList-BetvGaDX.js +0 -1060
@@ -1,9 +1,9 @@
1
- import { d as g } from "./dayjs.min-DlsortAX.js";
1
+ import { d as g } from "./dayjs.min-BhwkmEiy.js";
2
2
  import { defineStore as $, storeToRefs as T } from "pinia";
3
3
  import { ref as m } from "vue";
4
- import { b as l, g as f, u as w, s as E } from "./iteration-CzhHoG_z.js";
4
+ import { b as l, g as f, u as w, s as E } from "./iteration-C2RViFQ4.js";
5
5
  import { i as v } from "./utils-BZkjJbju.js";
6
- import { u as _ } from "./useAppStore-BX_L8TWU.js";
6
+ import { u as _ } from "./useAppStore-DqX0G_6s.js";
7
7
  const o = {
8
8
  async readEmployees() {
9
9
  return f(await l().get("/pos-users"));
@@ -1,7 +1,7 @@
1
1
  import { defineStore as Gs, storeToRefs as Hs } from "pinia";
2
2
  import { ref as eo } from "vue";
3
3
  import { useCoreStore as ui, baseClientInstance as Dr, FeedMeAuth as qs } from "@feedmepos/mf-common";
4
- import { c as U } from "./app-CMYV9sz0.js";
4
+ import { c as U } from "./app-DPuGdUoR.js";
5
5
  function Ur(e, n) {
6
6
  return function() {
7
7
  return e.apply(n, arguments);
@@ -1,4 +1,4 @@
1
- import { c as jt } from "./app-CMYV9sz0.js";
1
+ import { c as jt } from "./app-DPuGdUoR.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -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-CzhHoG_z.js";
2
- import { e as R, h as k, b as F, l as j, C as Z, d as J } from "./app-CMYV9sz0.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,
@@ -94,13 +94,14 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
94
94
  };
95
95
  }[]>;
96
96
  isLoading: import("vue").Ref<boolean, boolean>;
97
+ hasLoaded: import("vue").Ref<boolean, boolean>;
97
98
  userIdToName: import("vue").ComputedRef<Record<string, string>>;
98
99
  userIdToEmail: import("vue").ComputedRef<Record<string, string>>;
99
100
  userIdToPhone: import("vue").ComputedRef<Record<string, string>>;
100
101
  readTeamMembers: ({ force }?: {
101
102
  force?: boolean | undefined;
102
103
  }) => Promise<void>;
103
- }, "isLoading" | "members">, Pick<{
104
+ }, "isLoading" | "members" | "hasLoaded">, Pick<{
104
105
  members: import("vue").Ref<{
105
106
  id: string;
106
107
  name: string;
@@ -195,6 +196,7 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
195
196
  };
196
197
  }[]>;
197
198
  isLoading: import("vue").Ref<boolean, boolean>;
199
+ hasLoaded: import("vue").Ref<boolean, boolean>;
198
200
  userIdToName: import("vue").ComputedRef<Record<string, string>>;
199
201
  userIdToEmail: import("vue").ComputedRef<Record<string, string>>;
200
202
  userIdToPhone: import("vue").ComputedRef<Record<string, string>>;
@@ -296,6 +298,7 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
296
298
  };
297
299
  }[]>;
298
300
  isLoading: import("vue").Ref<boolean, boolean>;
301
+ hasLoaded: import("vue").Ref<boolean, boolean>;
299
302
  userIdToName: import("vue").ComputedRef<Record<string, string>>;
300
303
  userIdToEmail: import("vue").ComputedRef<Record<string, string>>;
301
304
  userIdToPhone: import("vue").ComputedRef<Record<string, string>>;
@@ -19,6 +19,9 @@ export declare const i18nMessages: {
19
19
  dateRange: {
20
20
  placeholder: string;
21
21
  };
22
+ user: {
23
+ feedmeAdmin: string;
24
+ };
22
25
  filter: {
23
26
  user_placeholder: string;
24
27
  selected_user_prefix: string;
@@ -104,13 +107,12 @@ export declare const i18nMessages: {
104
107
  email: string;
105
108
  action: string;
106
109
  operation: string;
107
- role: string;
108
110
  subject: string;
109
111
  field: string;
110
112
  outcome: string;
111
113
  business: string;
112
114
  restaurant: string;
113
- changeDetails: string;
115
+ eventDetails: string;
114
116
  actionDescription: string;
115
117
  metadata: string;
116
118
  reason: string;
@@ -152,6 +154,9 @@ export declare const i18nMessages: {
152
154
  dateRange: {
153
155
  placeholder: string;
154
156
  };
157
+ user: {
158
+ feedmeAdmin: string;
159
+ };
155
160
  filter: {
156
161
  user_placeholder: string;
157
162
  selected_user_prefix: string;
@@ -237,13 +242,12 @@ export declare const i18nMessages: {
237
242
  email: string;
238
243
  action: string;
239
244
  operation: string;
240
- role: string;
241
245
  subject: string;
242
246
  field: string;
243
247
  outcome: string;
244
248
  business: string;
245
249
  restaurant: string;
246
- changeDetails: string;
250
+ eventDetails: string;
247
251
  actionDescription: string;
248
252
  metadata: string;
249
253
  reason: string;
@@ -286,6 +290,9 @@ export declare const i18nMessages: {
286
290
  dateRange: {
287
291
  placeholder: string;
288
292
  };
293
+ user: {
294
+ feedmeAdmin: string;
295
+ };
289
296
  filter: {
290
297
  user_placeholder: string;
291
298
  selected_user_prefix: string;
@@ -371,13 +378,12 @@ export declare const i18nMessages: {
371
378
  email: string;
372
379
  action: string;
373
380
  operation: string;
374
- role: string;
375
381
  subject: string;
376
382
  field: string;
377
383
  outcome: string;
378
384
  business: string;
379
385
  restaurant: string;
380
- changeDetails: string;
386
+ eventDetails: string;
381
387
  actionDescription: string;
382
388
  metadata: string;
383
389
  reason: string;
@@ -420,6 +426,9 @@ export declare const i18nMessages: {
420
426
  dateRange: {
421
427
  placeholder: string;
422
428
  };
429
+ user: {
430
+ feedmeAdmin: string;
431
+ };
423
432
  filter: {
424
433
  user_placeholder: string;
425
434
  selected_user_prefix: string;
@@ -505,13 +514,12 @@ export declare const i18nMessages: {
505
514
  email: string;
506
515
  action: string;
507
516
  operation: string;
508
- role: string;
509
517
  subject: string;
510
518
  field: string;
511
519
  outcome: string;
512
520
  business: string;
513
521
  restaurant: string;
514
- changeDetails: string;
522
+ eventDetails: string;
515
523
  actionDescription: string;
516
524
  metadata: string;
517
525
  reason: string;
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .employee-list-table[data-v-cefb09f9] [class~=gap-24]>div:first-child{display:none}.timesheet-user-view[data-v-d7ed31d7] .basis-72{display:none}.user-info-icon[data-v-a439fdd8]{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-a439fdd8]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-a439fdd8]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-a439fdd8]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-a439fdd8]>: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-a439fdd8]{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-a439fdd8]{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-a439fdd8],.profile-menu--profile .profile-phone[data-v-a439fdd8]{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-aca72ec9] [class~=gap-24]>div:first-child{display:none}.audit-log-action-label[data-v-aca72ec9]{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-aca72ec9]::-webkit-scrollbar{display:none}.audit-log-operation-label-detail[data-v-aca72ec9]{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-aca72ec9]::-webkit-scrollbar{display:none}
1
+ .employee-list-table[data-v-202bbc71] [class~=gap-24]>div:first-child{display:none}.timesheet-user-view[data-v-91afda4e] .basis-72{display:none}.user-info-icon[data-v-a439fdd8]{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-a439fdd8]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-a439fdd8]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-a439fdd8]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-a439fdd8]>: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-a439fdd8]{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-a439fdd8]{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-a439fdd8],.profile-menu--profile .profile-phone[data-v-a439fdd8]{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-cf386576] [class~=gap-24]>div:first-child{display:none}.audit-log-action-label[data-v-cf386576]{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-cf386576]::-webkit-scrollbar{display:none}.audit-log-operation-label-detail[data-v-cf386576]{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-cf386576]::-webkit-scrollbar{display:none}