@feedmepos/mf-hrm-portal 2.0.14 → 2.0.15-dev
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-n6b4-GzJ.js → AuditLogList-DBIsI4YF.js} +4 -4
- package/dist/{EmployeeList-B7cemoN0.js → EmployeeList-BOSxLZbY.js} +5 -5
- package/dist/{Main-Dn71WvVQ.js → Main-B3YiMuFq.js} +9 -9
- package/dist/{Main-79eUPL7p.js → Main-BAZAQTWi.js} +4 -4
- package/dist/{Main-Cw4gYTr3.js → Main-D7yzD5SW.js} +5 -5
- package/dist/{PermissionSetList-BNNwLjXj.js → PermissionSetList-DBT9LtfT.js} +15 -15
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BYyT6oya.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BfqnjeTK.js} +793 -793
- package/dist/{RoleList-DY8Za0dd.js → RoleList-DeE5tN-5.js} +7 -7
- package/dist/{TeamMemberList-DSHrsX5J.js → TeamMemberList-BCv5Vixx.js} +65 -65
- package/dist/{TimesheetList-CXPqOjdC.js → TimesheetList-DpMBgVtY.js} +7 -7
- package/dist/{app-DPZbZJCq.js → app-pvHHFjbx.js} +283 -242
- package/dist/app.js +2 -2
- package/dist/{dayjs.min-DW1WmkoA.js → dayjs.min-BK_bM9xY.js} +1 -1
- package/dist/{employee-Kw8TDet-.js → employee-DhkixwiI.js} +4 -4
- package/dist/{index-nwRgIeL9.js → index-Bckj5jnu.js} +17 -17
- package/dist/{index-CQ9ZArJF.js → index-DK4fVbTF.js} +1 -1
- package/dist/{iteration-BFQu0b3r.js → iteration-Bk3cnP07.js} +2 -2
- package/dist/{lodash-Dsav6UyM.js → lodash-TrOlqj07.js} +1 -1
- package/dist/{timesheet-ZmSkwQIE.js → timesheet-DSQeCVfL.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CKbtSJIP.js → useAppStore-DwfwjZpc.js} +1 -1
- package/dist/{useLoading-C0ICgchk.js → useLoading-fEAOlgoV.js} +1 -1
- package/dist/{useReportPermissions-lRru0ii7.js → useReportPermissions-CkOk_2tl.js} +3 -3
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as M } from "./dayjs.min-
|
|
1
|
+
import { d as M } from "./dayjs.min-BK_bM9xY.js";
|
|
2
2
|
import { defineStore as S, storeToRefs as $ } from "pinia";
|
|
3
3
|
import { ref as u } from "vue";
|
|
4
4
|
import { useCoreStore as w } from "@feedmepos/mf-common";
|
|
5
|
-
import { b as l, g as f, s as E } from "./iteration-
|
|
6
|
-
import { t as b, i as v } from "./index-
|
|
7
|
-
import { u as _ } from "./useAppStore-
|
|
5
|
+
import { b as l, g as f, s as E } from "./iteration-Bk3cnP07.js";
|
|
6
|
+
import { t as b, i as v } from "./index-Bckj5jnu.js";
|
|
7
|
+
import { u as _ } from "./useAppStore-DwfwjZpc.js";
|
|
8
8
|
const n = {
|
|
9
9
|
async readEmployees() {
|
|
10
10
|
return f(await l().get("/pos-users"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as b, b as g, d as Q, e as j, s as L, q as M } from "./iteration-
|
|
2
|
-
import {
|
|
1
|
+
import { g as b, b as g, d as Q, e as j, s as L, q as M } from "./iteration-Bk3cnP07.js";
|
|
2
|
+
import { i as J, u as A, A as F, d as D, y as S, C as Z } from "./app-pvHHFjbx.js";
|
|
3
3
|
import { defineStore as x, storeToRefs as k } from "pinia";
|
|
4
|
-
import { ref as y, computed as
|
|
4
|
+
import { ref as y, computed as N } from "vue";
|
|
5
5
|
import { useCoreStore as W } from "@feedmepos/mf-common";
|
|
6
6
|
const U = [
|
|
7
7
|
{
|
|
@@ -400,10 +400,10 @@ function he(e, t, s) {
|
|
|
400
400
|
if (e.some((a) => a.subject === "all")) return "All";
|
|
401
401
|
const o = (s ?? U).filter(
|
|
402
402
|
(a) => a.subject === t
|
|
403
|
-
), r = new Set(o.map((a) =>
|
|
403
|
+
), r = new Set(o.map((a) => C(a).value)), n = e.filter((a) => a.subject === t).filter((a) => r.has(C(a).value));
|
|
404
404
|
return n.length === o.length ? "All" : n.length === 0 ? "-" : `${n.length} permission allow`;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function C(e) {
|
|
407
407
|
const t = Q(e), s = t.subject;
|
|
408
408
|
return {
|
|
409
409
|
...t,
|
|
@@ -433,7 +433,7 @@ function N(e) {
|
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
435
|
function ye(e) {
|
|
436
|
-
const t = e.map((s) =>
|
|
436
|
+
const t = e.map((s) => C(s)).find((s) => s.isDiscountOperation);
|
|
437
437
|
return t ? parseInt((t.conditions.adjustment.$lte * 100).toFixed(0)) : 100;
|
|
438
438
|
}
|
|
439
439
|
function q(e) {
|
|
@@ -477,7 +477,7 @@ function ee(e) {
|
|
|
477
477
|
conditions: { name: s },
|
|
478
478
|
inverted: !1,
|
|
479
479
|
reason: ""
|
|
480
|
-
})) : o = U.find((r) => r.subject === t),
|
|
480
|
+
})) : o = U.find((r) => r.subject === t), C(o || { subject: j.F_RULE_SUBJECT.enum.order, actions: [], label: "" });
|
|
481
481
|
}
|
|
482
482
|
function te(e, t = []) {
|
|
483
483
|
return L(
|
|
@@ -511,14 +511,14 @@ function z(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 T(e, t) {
|
|
515
515
|
return `${e}::${[...t].sort().join(",")}`;
|
|
516
516
|
}
|
|
517
517
|
function V(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 = A(i.subject);
|
|
521
|
-
o.add(
|
|
521
|
+
o.add(T(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 V(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 = A(p.subject), f =
|
|
532
|
+
const m = A(p.subject), f = T(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 V(e, t) {
|
|
|
543
543
|
}));
|
|
544
544
|
}
|
|
545
545
|
for (const p of u.permissionSets ?? []) {
|
|
546
|
-
const m = A(p), f =
|
|
546
|
+
const m = A(p), f = T(m, ["manage"]), v = {
|
|
547
547
|
subject: m,
|
|
548
548
|
actions: ["manage"],
|
|
549
549
|
source: {
|
|
@@ -860,7 +860,7 @@ function de() {
|
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
|
-
const s =
|
|
863
|
+
const s = N(() => _.value.map(
|
|
864
864
|
(o) => o.isDefault ? {
|
|
865
865
|
label: o.name,
|
|
866
866
|
subject: `business::report::reports::${o.permissionKey}`,
|
|
@@ -882,8 +882,8 @@ function de() {
|
|
|
882
882
|
return {
|
|
883
883
|
fetchCustomReportPermissions: t,
|
|
884
884
|
customReportPermissions: s,
|
|
885
|
-
isLoading:
|
|
886
|
-
isLoaded:
|
|
885
|
+
isLoading: N(() => w.value),
|
|
886
|
+
isLoaded: N(() => E.value)
|
|
887
887
|
};
|
|
888
888
|
}
|
|
889
889
|
function R(e) {
|
|
@@ -920,7 +920,7 @@ function R(e) {
|
|
|
920
920
|
}
|
|
921
921
|
const me = Object.freeze(
|
|
922
922
|
Object.values(Z)
|
|
923
|
-
),
|
|
923
|
+
), Ce = {
|
|
924
924
|
async readTeamMembers() {
|
|
925
925
|
return b(
|
|
926
926
|
await g().get("/portal-users")
|
|
@@ -986,9 +986,9 @@ export {
|
|
|
986
986
|
Ee as o,
|
|
987
987
|
me as p,
|
|
988
988
|
Ie as q,
|
|
989
|
-
|
|
989
|
+
C as r,
|
|
990
990
|
Oe as s,
|
|
991
|
-
|
|
991
|
+
Ce as t,
|
|
992
992
|
H as u,
|
|
993
993
|
ue as v,
|
|
994
994
|
te as w,
|
|
@@ -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-pvHHFjbx.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-pvHHFjbx.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) {
|
|
@@ -9468,7 +9468,7 @@ const cc = (e) => (n) => {
|
|
|
9468
9468
|
throw new Error("Invalid business");
|
|
9469
9469
|
}, Bc = () => {
|
|
9470
9470
|
var a;
|
|
9471
|
-
const n = (a = To().currentCountry.value) == null ? void 0 : a.toLowerCase(), i = "
|
|
9471
|
+
const n = (a = To().currentCountry.value) == null ? void 0 : a.toLowerCase(), i = "feedmeapidev.com", o = !n || n === "my" ? `https://query-engine.${i}` : `https://query-engine.${n}.${i}`;
|
|
9472
9472
|
return cc(o)("");
|
|
9473
9473
|
}, Nc = () => jr("user/bypass/validate/");
|
|
9474
9474
|
function jc(e) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as i } from "./dayjs.min-
|
|
1
|
+
import { d as i } from "./dayjs.min-BK_bM9xY.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-Bk3cnP07.js";
|
|
5
|
+
import { i as u, b as g } from "./index-Bckj5jnu.js";
|
|
6
6
|
const f = {
|
|
7
7
|
async readTimesheets(t, e) {
|
|
8
8
|
return y(await c().get(`timesheet?start=${t}&end=${e}`));
|