@feedmepos/mf-hrm-portal 2.0.24-dev.10 → 2.0.24-dev.12
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.
- package/dist/AuditLogList-_OSOwJVi.js +1132 -0
- package/dist/{EmployeeList-DieXbCR4.js → EmployeeList-DrBO8Kk6.js} +6 -6
- package/dist/{Main-8fURDx0W.js → Main-3j9ReeYP.js} +9 -9
- package/dist/{Main-BjzCTw3C.js → Main-CB8WXm4L.js} +4 -4
- package/dist/{Main-BxX0lnL5.js → Main-CuFC87ma.js} +6 -6
- package/dist/{PermissionSetList-CqM4La6P.js → PermissionSetList-DRyugr1w.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C6uznL8r.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BpI_IJIp.js} +735 -735
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-CSxT3KNJ.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-Dj0pRX1U.js} +1 -1
- package/dist/{RoleList-CEgNBw-4.js → RoleList-B7kXklX5.js} +51 -49
- package/dist/{TeamMemberList-DoLkDpoB.js → TeamMemberList-CbqkMiT6.js} +56 -56
- package/dist/{TimesheetList-DqGEKlEL.js → TimesheetList-Cr74-E32.js} +6 -6
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-BdCL8SB4.js → TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-Cdd6GpKp.js} +2 -2
- package/dist/{app-L0IWvTST.js → app-Bn7c7G7J.js} +114 -99
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-COxuf_H8.js → dayjs.min-D9tKWmYV.js} +1 -1
- package/dist/{employee-DRnkg7jL.js → employee-VNw8J2OI.js} +3 -3
- package/dist/{iteration-V9rH_pC3.js → iteration-xEBe_nnw.js} +1 -1
- package/dist/{lodash-DoaaH6eb.js → lodash-BSzlmur1.js} +1 -1
- package/dist/{rule-BI1ycxfM.js → rule-DUXHgPce.js} +25 -25
- package/dist/src/api/audit-log/index.d.ts +17 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-a32PT_PC.js → useAppStore-Cj44joeR.js} +1 -1
- package/dist/{useLoading-BxqU47eu.js → useLoading-DCVDPJRt.js} +1 -1
- package/dist/{useReportPermissions-BIbz17zb.js → useReportPermissions-DUDF9brn.js} +3 -3
- package/package.json +2 -2
- package/dist/AuditLogList-DIyduqwa.js +0 -1054
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as b, b as v, q as L, u as H, s as
|
|
2
|
-
import { e as R,
|
|
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-xEBe_nnw.js";
|
|
2
|
+
import { e as R, P as x, b as F, l as j, k as Z, d as J } from "./app-Bn7c7G7J.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
|
|
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
|
-
|
|
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),
|
|
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,
|
|
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
|
-
|
|
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,
|
|
762
|
+
$.value === o && (w.value = !1, N.value && (N.value = !1, await s()));
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
|
-
const t =
|
|
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:
|
|
789
|
-
isLoaded:
|
|
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
|
-
|
|
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:
|
|
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) =>
|
|
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
|
|
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) =>
|
|
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
|
|
917
|
+
function Ne(e) {
|
|
918
918
|
return (e == null ? void 0 : e.some((s) => s.subject === "all")) ?? !1;
|
|
919
919
|
}
|
|
920
|
-
function
|
|
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
|
|
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),
|
|
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
|
|
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
|
-
|
|
976
|
+
Ce as f,
|
|
977
977
|
Ee as g,
|
|
978
|
-
|
|
978
|
+
Ne as h,
|
|
979
979
|
te as i,
|
|
980
|
-
|
|
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
|
-
|
|
988
|
+
T as r,
|
|
989
989
|
Ie as s,
|
|
990
990
|
Oe as t,
|
|
991
991
|
se as u,
|
|
@@ -8,6 +8,7 @@ declare const AuditLogAPI: {
|
|
|
8
8
|
subjectPrefixes?: string[];
|
|
9
9
|
actions?: string[];
|
|
10
10
|
outcomes?: string[];
|
|
11
|
+
feedmeAdminActors?: boolean;
|
|
11
12
|
}): Promise<number>;
|
|
12
13
|
read(params?: {
|
|
13
14
|
limit?: number;
|
|
@@ -19,6 +20,22 @@ declare const AuditLogAPI: {
|
|
|
19
20
|
subjectPrefixes?: string[];
|
|
20
21
|
actions?: string[];
|
|
21
22
|
outcomes?: string[];
|
|
23
|
+
feedmeAdminActors?: boolean;
|
|
22
24
|
}): Promise<AuditLogEntry[]>;
|
|
25
|
+
/**
|
|
26
|
+
* FeedMe-admin options for the User filter. `actors` is the named admin list (internal
|
|
27
|
+
* viewers only; empty for merchants). `showFeedmeAdminFilter` indicates whether to offer
|
|
28
|
+
* the "FeedMe Admin" catch-all (only when the business has relevant admin activity).
|
|
29
|
+
*/
|
|
30
|
+
getFeedmeAdminFilter(params?: {
|
|
31
|
+
from?: string;
|
|
32
|
+
to?: string;
|
|
33
|
+
}): Promise<{
|
|
34
|
+
actors: {
|
|
35
|
+
userId: string;
|
|
36
|
+
name: string;
|
|
37
|
+
}[];
|
|
38
|
+
showFeedmeAdminFilter: boolean;
|
|
39
|
+
}>;
|
|
23
40
|
};
|
|
24
41
|
export default AuditLogAPI;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-b6a77eea] [class~=gap-24]>div:first-child{display:none}.audit-log-action-label[data-v-b6a77eea]{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-b6a77eea]::-webkit-scrollbar{display:none}.audit-log-operation-label-detail[data-v-b6a77eea]{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-b6a77eea]::-webkit-scrollbar{display:none}
|