@feedmepos/mf-hrm-portal 2.0.20-dev.1 → 2.0.20-dev.2
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-Bsj-qg8n.js → AuditLogList-ChxAzO74.js} +4 -4
- package/dist/EmployeeList-Cs-Mn6UA.js +843 -0
- package/dist/{Main-BGc6kNaR.js → Main-B9_TyRDo.js} +2008 -2001
- package/dist/Main-CdHW4UkN.js +90 -0
- package/dist/{Main-CSMAtoMj.js → Main-DcvmP7s-.js} +184 -176
- package/dist/PermissionSetList-VFVS0g0v.js +347 -0
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CdWgTjZw.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Dr3R9JjS.js} +771 -770
- package/dist/{RoleList-e0WUqt4Y.js → RoleList-BZ6RZvm2.js} +199 -188
- package/dist/TeamMemberList-C-zhFauD.js +1115 -0
- package/dist/{TimesheetList-tFjvFHqH.js → TimesheetList-CZex54an.js} +61 -53
- package/dist/{app-CL7rUfL3.js → app-CLL3p27X.js} +191 -193
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-ChdFPuFV.js → dayjs.min-CDt1i9vl.js} +1 -1
- package/dist/employee-BpRvjWNh.js +200 -0
- package/dist/{iteration-BbD0nOgO.js → iteration-BVjUzYL5.js} +173 -175
- package/dist/{lodash-CDf3aG6G.js → lodash-CrwgACp2.js} +1 -1
- package/dist/{rule-BJ-y3Sp8.js → rule-BlQ5YZ9Z.js} +27 -26
- package/dist/src/types/team.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{timesheet-BmV02Rkz.js → timesheet-jFs4GTAL.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-D8QAGZ02.js → useAppStore-DMAL8VFY.js} +36 -38
- package/dist/{useLoading-KpcQw0p4.js → useLoading-AFTjRLyO.js} +1 -1
- package/dist/{useReportPermissions-CmGJAz_N.js → useReportPermissions-hODG0Xx3.js} +3 -3
- package/package.json +1 -1
- package/dist/EmployeeList-Cy2ayCko.js +0 -824
- package/dist/Main-D7bV8EuC.js +0 -86
- package/dist/PermissionSetList-CuHhDqWl.js +0 -347
- package/dist/TeamMemberList-CpPa1KyV.js +0 -1097
- package/dist/employee-kKV7UnHU.js +0 -204
|
@@ -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-
|
|
2
|
-
import { e as
|
|
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-BVjUzYL5.js";
|
|
2
|
+
import { e as R, h as k, b as F, l as j, C as Z, d as J } from "./app-CLL3p27X.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 =
|
|
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_${
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
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(
|
|
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(
|
|
845
|
+
items: s.items.map(I),
|
|
845
846
|
total: s.total
|
|
846
847
|
};
|
|
847
848
|
},
|
|
848
849
|
async readTeamMember(e) {
|
|
849
|
-
return
|
|
850
|
+
return I(
|
|
850
851
|
b(await v().get(`/portal-users/${e}`))
|
|
851
852
|
);
|
|
852
853
|
},
|
|
853
854
|
async createTeamMember(e) {
|
|
854
|
-
return
|
|
855
|
+
return I(
|
|
855
856
|
b(await v().post("/portal-users", e))
|
|
856
857
|
);
|
|
857
858
|
},
|
|
858
859
|
async updateTeamMember(e, s) {
|
|
859
|
-
return
|
|
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
|
-
|
|
981
|
-
|
|
981
|
+
fe as k,
|
|
982
|
+
Re as l,
|
|
982
983
|
Pe as m,
|
|
983
|
-
|
|
984
|
-
|
|
984
|
+
Ae as n,
|
|
985
|
+
$e as o,
|
|
985
986
|
me as p,
|
|
986
|
-
|
|
987
|
+
ue as q,
|
|
987
988
|
N as r,
|
|
988
|
-
|
|
989
|
+
Ie as s,
|
|
989
990
|
Oe as t,
|
|
990
991
|
se as u,
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
992
|
+
be as v,
|
|
993
|
+
K as w,
|
|
994
|
+
we as x
|
|
994
995
|
};
|
package/dist/src/types/team.d.ts
CHANGED
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.employee-list-table[data-v-
|
|
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-
|
|
1
|
+
import { d as i } from "./dayjs.min-CDt1i9vl.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-
|
|
4
|
+
import { b as c, g as y, s as S } from "./iteration-BVjUzYL5.js";
|
|
5
5
|
import { i as f, f as g } from "./utils-BZkjJbju.js";
|
|
6
6
|
const u = {
|
|
7
7
|
async readTimesheets(t, e) {
|