@feedmepos/mf-hrm-portal 2.2.2-dev → 2.2.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/{ApprovalCodeList-B9O8QzzI.js → ApprovalCodeList-Dpg-lwZA.js} +5 -5
- package/dist/AuditLogList-B8lU5FU1.js +1149 -0
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C9MYbxum.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Di-1ZwEW.js} +2 -2
- package/dist/{EmployeeList-BFxMwFJq.js → EmployeeList-ByeniR1c.js} +71 -71
- package/dist/{GrantUserList-CZtmMRoS.js → GrantUserList-D0YIdpMH.js} +6 -6
- package/dist/{Main-on0TXkQt.js → Main-Bg0Najd8.js} +8 -8
- package/dist/{Main-B622Z4q4.js → Main-C9-EztWV.js} +11 -11
- package/dist/{Main-DD6IthCS.js → Main-CTsTrR0m.js} +5 -5
- package/dist/{PermissionSetList-FCX3TBoi.js → PermissionSetList-CqVP3iB8.js} +78 -77
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cl_YNh0k.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CXNhJDfA.js} +569 -564
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-Z-DH7ouY.js} +1 -1
- package/dist/RoleList-CQuV9O_f.js +739 -0
- package/dist/{TeamMemberList-BAU7Y3jh.js → TeamMemberList-DNitiMN5.js} +312 -313
- package/dist/{TimesheetList-DtFBWhma.js → TimesheetList-DYJsjODe.js} +7 -7
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-Tatn3jUv.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-DWKJIq76.js} +3 -3
- package/dist/{app-Bbf6hEPt.js → app-BJKd6Faz.js} +521 -817
- package/dist/app.js +1 -1
- package/dist/{approval-code-jIjkeVEb.js → approval-code-BRClD2HN.js} +1 -1
- package/dist/{dayjs.min-BAnGg8q2.js → dayjs.min-D8ClaZcZ.js} +1 -1
- package/dist/{employee-DVSD3L51.js → employee-C9VVckRM.js} +4 -4
- package/dist/{grant-user-SNiDV22U.js → grant-user-Dhi3ilC_.js} +1 -1
- package/dist/{iteration-BTZViJtd.js → iteration-CMXHdaKL.js} +1 -1
- package/dist/{lodash-Cgdk4_YL.js → lodash-0-Y1xSyQ.js} +1 -1
- package/dist/{restaurant-BTpBmfBV.js → restaurant-DiYb0pCm.js} +2 -2
- package/dist/{role-CXVpO6fB.js → role-B-Y4JezP.js} +2 -2
- package/dist/{rule-TR3MVo-b.js → rule-raGIIqlH.js} +288 -261
- package/dist/src/api/audit-log/index.d.ts +0 -6
- package/dist/src/api/user/index.d.ts +2 -2
- package/dist/src/composables/useReportPermissions.d.ts +1 -0
- package/dist/src/helpers/rule.d.ts +2 -0
- package/dist/src/types/audit-log.d.ts +1 -1
- package/dist/src/types/role.d.ts +1 -0
- package/dist/src/views/audit-log/locales/index.d.ts +0 -300
- package/dist/src/views/hr/locales/index.d.ts +12 -8
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DCwd8GWN.js → useAppStore-BGhlB1_1.js} +1 -1
- package/dist/useDebounce-CWb5QR9G.js +28 -0
- package/dist/{useLoading-CXzTpIVv.js → useLoading-CvgqVDbF.js} +1 -1
- package/dist/useReportPermissions-C5_EivtU.js +82 -0
- package/package.json +2 -2
- package/dist/AuditLogList-CtFEXKWZ.js +0 -1722
- package/dist/RoleList-p_9KHzqF.js +0 -725
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +0 -16
- package/dist/src/views/audit-log/change-nodes.d.ts +0 -14
- package/dist/src/views/audit-log/event-line.d.ts +0 -13
- package/dist/src/views/audit-log/operation-status.d.ts +0 -2
- package/dist/src/views/audit-log/snapshot-diff.d.ts +0 -11
- package/dist/useDebounce-B8ZPVS5C.js +0 -15
- package/dist/useReportPermissions-BpAFyO17.js +0 -71
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as a, createElementBlock as i, openBlock as l, normalizeStyle as s, watch as u } from "vue";
|
|
2
|
+
const d = /* @__PURE__ */ a({
|
|
3
|
+
__name: "Skeleton",
|
|
4
|
+
props: {
|
|
5
|
+
width: { default: "160px" }
|
|
6
|
+
},
|
|
7
|
+
setup(t) {
|
|
8
|
+
return (o, n) => (l(), i("div", {
|
|
9
|
+
class: "h-16 animate-pulse rounded bg-fm-color-neutral-gray-200",
|
|
10
|
+
style: s({ width: t.width })
|
|
11
|
+
}, null, 4));
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
function f(t, o, n = 300) {
|
|
15
|
+
let e;
|
|
16
|
+
const c = u(t, (r) => {
|
|
17
|
+
e && clearTimeout(e), e = setTimeout(() => {
|
|
18
|
+
o(r);
|
|
19
|
+
}, n);
|
|
20
|
+
});
|
|
21
|
+
return () => {
|
|
22
|
+
c(), e && (clearTimeout(e), e = void 0);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
d as _,
|
|
27
|
+
f as u
|
|
28
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as I, isRef as L, watch as M } from "vue";
|
|
2
2
|
import { SnackbarPosition as y } from "@feedmepos/ui-library";
|
|
3
|
-
import { u as w, v } from "./useAppStore-
|
|
3
|
+
import { u as w, v } from "./useAppStore-BGhlB1_1.js";
|
|
4
4
|
const E = (r) => {
|
|
5
5
|
async function d(u, e) {
|
|
6
6
|
var l, a;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { computed as r, ref as n } from "vue";
|
|
2
|
+
import { e as d } from "./iteration-CMXHdaKL.js";
|
|
3
|
+
import { useCoreStore as h } from "@feedmepos/mf-common";
|
|
4
|
+
import { e as K, R as g } from "./rule-raGIIqlH.js";
|
|
5
|
+
import "./app-BJKd6Faz.js";
|
|
6
|
+
const a = n([]), i = n(!1), l = n(!1), f = n(null), p = n(null), u = n(!1);
|
|
7
|
+
function B() {
|
|
8
|
+
const v = h();
|
|
9
|
+
async function m() {
|
|
10
|
+
var e;
|
|
11
|
+
const s = (e = v.currentBusiness.value) == null ? void 0 : e.id;
|
|
12
|
+
if (!s) return;
|
|
13
|
+
f.value !== s && (a.value = [], i.value = !1, l.value = !1, f.value = s, u.value = !1);
|
|
14
|
+
const o = localStorage.getItem("locale");
|
|
15
|
+
if (!(i.value && p.value === o)) {
|
|
16
|
+
if (l.value) {
|
|
17
|
+
u.value = !0;
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
l.value = !0;
|
|
21
|
+
try {
|
|
22
|
+
a.value = await g.fetchReportPermissions(
|
|
23
|
+
s,
|
|
24
|
+
o
|
|
25
|
+
), i.value = !0, p.value = o;
|
|
26
|
+
} catch (t) {
|
|
27
|
+
console.warn("Failed to fetch dynamic report permissions, keeping last known list:", t), i.value = !1;
|
|
28
|
+
} finally {
|
|
29
|
+
l.value = !1, u.value && (u.value = !1, await m());
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const c = K.filter(
|
|
34
|
+
(s) => s.subject === d.F_RULE_SUBJECT.enum.report && s.conditions
|
|
35
|
+
), y = r(() => {
|
|
36
|
+
const s = new Set(
|
|
37
|
+
c.map((e) => {
|
|
38
|
+
const t = typeof e.conditions == "string" ? JSON.parse(e.conditions) : e.conditions;
|
|
39
|
+
return t == null ? void 0 : t.name;
|
|
40
|
+
})
|
|
41
|
+
), o = a.value.filter((e) => !s.has(e.permissionKey)).map((e) => ({
|
|
42
|
+
label: e.name,
|
|
43
|
+
subject: d.F_RULE_SUBJECT.enum.report,
|
|
44
|
+
actions: ["read"],
|
|
45
|
+
conditions: { name: e.permissionKey },
|
|
46
|
+
inverted: !1,
|
|
47
|
+
reason: ""
|
|
48
|
+
}));
|
|
49
|
+
return [...c, ...o];
|
|
50
|
+
}), R = r(() => {
|
|
51
|
+
const s = new Set(
|
|
52
|
+
c.map((o) => {
|
|
53
|
+
const e = typeof o.conditions == "string" ? JSON.parse(o.conditions) : o.conditions;
|
|
54
|
+
return e == null ? void 0 : e.name;
|
|
55
|
+
})
|
|
56
|
+
);
|
|
57
|
+
for (const o of a.value)
|
|
58
|
+
s.add(o.permissionKey);
|
|
59
|
+
return s;
|
|
60
|
+
}), S = r(() => {
|
|
61
|
+
const s = new Set(
|
|
62
|
+
c.map((e) => {
|
|
63
|
+
const t = typeof e.conditions == "string" ? JSON.parse(e.conditions) : e.conditions;
|
|
64
|
+
return t == null ? void 0 : t.name;
|
|
65
|
+
})
|
|
66
|
+
), o = /* @__PURE__ */ new Set();
|
|
67
|
+
for (const e of a.value)
|
|
68
|
+
s.has(e.permissionKey) || o.add(e.permissionKey);
|
|
69
|
+
return o;
|
|
70
|
+
});
|
|
71
|
+
return {
|
|
72
|
+
fetchReportPermissions: m,
|
|
73
|
+
allReportPermissions: y,
|
|
74
|
+
availableReportKeys: R,
|
|
75
|
+
customReportKeys: S,
|
|
76
|
+
isLoading: r(() => l.value),
|
|
77
|
+
isLoaded: r(() => i.value)
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export {
|
|
81
|
+
B as u
|
|
82
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-hrm-portal",
|
|
3
|
-
"version": "2.2.2
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"vue-router": "^4.3.2",
|
|
30
30
|
"vue3-lottie": "^3.3.0",
|
|
31
31
|
"xlsx": "^0.18.5",
|
|
32
|
-
"@feedmepos/hrm-permission": "1.1.
|
|
32
|
+
"@feedmepos/hrm-permission": "1.1.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@casl/ability": "^3.4.0",
|