@feedmepos/mf-hrm-portal 2.0.8-dev.5 → 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.
- package/dist/{AuditLogList-ChmO_lsf.js → AuditLogList-Bi--djNo.js} +29 -29
- package/dist/{EmployeeList-B43c3tSt.js → EmployeeList-DQ34Em1k.js} +5 -5
- package/dist/{Main-eEQq0uiP.js → Main-B6ILrjGv.js} +6 -6
- package/dist/{Main-DKJWXUF1.js → Main-CL5HSLrz.js} +9 -9
- package/dist/{Main--wV8uMFW.js → Main-HFWa8_uW.js} +4 -4
- package/dist/{PermissionSetList-CA7dsUY5.js → PermissionSetList-Ci09rB-p.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DLZyVi00.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cmhe2tvI.js} +583 -583
- package/dist/{RoleList-Nm7T5wl8.js → RoleList-B_zQKYCH.js} +7 -7
- package/dist/{TeamMemberList-BOcKTiHH.js → TeamMemberList-DFCtu_c7.js} +8 -8
- package/dist/{TimesheetList-CoaX44py.js → TimesheetList-DHaqTrL0.js} +7 -7
- package/dist/{app-CgPpZ0md.js → app-2XxqgDvK.js} +597 -493
- package/dist/app.js +2 -2
- package/dist/{dayjs.min-DLZqYqC8.js → dayjs.min-Asc6YM-u.js} +1 -1
- package/dist/{employee-DQIeO3Ta.js → employee-CmfuGEin.js} +4 -4
- package/dist/{index-D5bUBGCO.js → index-3FnU8yA-.js} +18 -18
- package/dist/{index-CxEFSIGE.js → index-DQ49uyb8.js} +1 -1
- package/dist/{iteration-Ceh9Zaed.js → iteration-3TwyQk8f.js} +1 -1
- package/dist/{lodash-MQv9R8bY.js → lodash-BLoODBU6.js} +1 -1
- package/dist/{team-DTdEqDL-.js → team-CMljmy8s.js} +1 -1
- package/dist/{timesheet-Co0CE_kB.js → timesheet-DLuq_W9t.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CNGyVfbo.js → useAppStore-C1nsK_PE.js} +1 -1
- package/dist/{useLoading-GdaFiYX1.js → useLoading-B1KB5VuL.js} +1 -1
- package/dist/{useReportPermissions-Cm6b6zJE.js → useReportPermissions-CkPrwNqW.js} +3 -3
- package/package.json +2 -2
package/dist/app.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as T } from "./dayjs.min-
|
|
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-
|
|
6
|
-
import { t as b, i as S } from "./index-
|
|
7
|
-
import { u as x } from "./useAppStore-
|
|
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-
|
|
2
|
-
import {
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
381
|
-
const e =
|
|
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
|
|
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 ||
|
|
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
|
|
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(
|
|
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 =
|
|
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 =
|
|
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
|
|
890
|
-
const t = q(), s =
|
|
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(
|
|
922
|
+
Object.values(Q)
|
|
923
923
|
), Ne = {
|
|
924
924
|
async readTeamMembers() {
|
|
925
925
|
return b(
|
|
926
926
|
await g().get("/portal-users")
|
|
927
|
-
).map(
|
|
927
|
+
).map(U);
|
|
928
928
|
},
|
|
929
929
|
async createTeamMember(e) {
|
|
930
|
-
return
|
|
930
|
+
return U(
|
|
931
931
|
b(await g().post("/portal-users", e))
|
|
932
932
|
);
|
|
933
933
|
},
|
|
934
934
|
async updateTeamMember(e, t) {
|
|
935
|
-
return
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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,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-
|
|
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-
|
|
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-
|
|
5
|
-
import { i as u, b as g } from "./index-
|
|
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}`));
|