@feedmepos/mf-hrm-portal 2.0.17-dev.3 → 2.0.17-dev.5
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-Dl3Nmf00.js +1011 -0
- package/dist/EmployeeList-DBd_rVW2.js +831 -0
- package/dist/{Main-Dkr5lzbv.js → Main-CQ3KwxDY.js} +1368 -1371
- package/dist/{Main--tejoyEP.js → Main-pTgqNncY.js} +125 -125
- package/dist/{Main-BNXKItvX.js → Main-w0XUUaBp.js} +6 -6
- package/dist/PermissionSetList-B8qNOWH6.js +347 -0
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BBsaxaXu.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C9VUjAu_.js} +1064 -1060
- package/dist/{RoleList-SZCgvYvC.js → RoleList-DMFJsUZv.js} +202 -200
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +16 -0
- package/dist/TeamMemberList-BLRTfKLz.js +1031 -0
- package/dist/{TimesheetList-D-3k0Uad.js → TimesheetList-Bwp9_xHe.js} +6 -6
- package/dist/{app-BjXuSCis.js → app-COJbSNM4.js} +1975 -1440
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-z-vrgFCL.js → dayjs.min-CcBi6N-K.js} +1 -1
- package/dist/{employee-DAqAMupR.js → employee-xiV0LfnL.js} +3 -3
- package/dist/{iteration-Cp1eSTJA.js → iteration-JOKbtlLf.js} +1 -1
- package/dist/{lodash-CXLZQQp8.js → lodash-D5xlVzib.js} +1 -1
- package/dist/rule-3sXHiW0y.js +994 -0
- package/dist/src/api/audit-log/index.d.ts +9 -0
- package/dist/src/api/report-query/index.d.ts +2 -2
- package/dist/src/components/Skeleton.vue.d.ts +7 -0
- package/dist/src/composables/useBasePermission.d.ts +1 -0
- package/dist/src/stores/team.d.ts +6 -6
- package/dist/src/types/team.d.ts +1 -1
- package/dist/src/views/hr/locales/index.d.ts +172 -0
- package/dist/src/views/team/components/BasePermission.vue.d.ts +1 -1
- package/dist/src/views/team/locales/index.d.ts +312 -0
- package/dist/style.css +1 -1
- package/dist/{team-CnQ_rIx2.js → team-CyNektSD.js} +1 -1
- package/dist/{timesheet-BlPhOifI.js → timesheet-DkD3AysG.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BVnrWyPF.js → useAppStore-CvmsaYSG.js} +1 -1
- package/dist/{useLoading-7ia-Bps7.js → useLoading-4TNmhm5N.js} +1 -1
- package/dist/useReportPermissions-CWMFFb8E.js +70 -0
- package/package.json +2 -2
- package/dist/AuditLogList-C6qAeY5g.js +0 -954
- package/dist/EmployeeList-COtXtTqG.js +0 -827
- package/dist/PermissionSetList-B_Sdvbu7.js +0 -340
- package/dist/TeamMemberList-Dk5HeFfQ.js +0 -1008
- package/dist/rule-vBxopbM_.js +0 -990
- package/dist/useReportPermissions-C8HMek35.js +0 -60
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { computed as u, ref as r } from "vue";
|
|
2
|
-
import { e as l } from "./iteration-Cp1eSTJA.js";
|
|
3
|
-
import { useCoreStore as y } from "@feedmepos/mf-common";
|
|
4
|
-
import { e as R, R as h } from "./rule-vBxopbM_.js";
|
|
5
|
-
import "./app-BjXuSCis.js";
|
|
6
|
-
const n = r([]), c = r(!1), t = r(!1), m = r(null);
|
|
7
|
-
function L() {
|
|
8
|
-
const d = y();
|
|
9
|
-
async function f() {
|
|
10
|
-
var o;
|
|
11
|
-
const s = (o = d.currentBusiness.value) == null ? void 0 : o.id;
|
|
12
|
-
if (s && (m.value !== s && (n.value = [], c.value = !1, t.value = !1, m.value = s), !(c.value || t.value))) {
|
|
13
|
-
t.value = !0;
|
|
14
|
-
try {
|
|
15
|
-
n.value = await h.fetchReportPermissions(s), c.value = !0;
|
|
16
|
-
} catch (e) {
|
|
17
|
-
console.warn("Failed to fetch dynamic report permissions, using hardcoded only:", e), n.value = [];
|
|
18
|
-
} finally {
|
|
19
|
-
t.value = !1;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
const i = R.filter(
|
|
24
|
-
(s) => s.subject === l.F_RULE_SUBJECT.enum.report && s.conditions
|
|
25
|
-
), p = u(() => {
|
|
26
|
-
const s = new Set(
|
|
27
|
-
i.map((e) => {
|
|
28
|
-
const a = typeof e.conditions == "string" ? JSON.parse(e.conditions) : e.conditions;
|
|
29
|
-
return a == null ? void 0 : a.name;
|
|
30
|
-
})
|
|
31
|
-
), o = n.value.filter((e) => !s.has(e.permissionKey)).map((e) => ({
|
|
32
|
-
label: e.name,
|
|
33
|
-
subject: l.F_RULE_SUBJECT.enum.report,
|
|
34
|
-
actions: ["read"],
|
|
35
|
-
conditions: { name: e.permissionKey },
|
|
36
|
-
inverted: !1,
|
|
37
|
-
reason: ""
|
|
38
|
-
}));
|
|
39
|
-
return [...i, ...o];
|
|
40
|
-
}), v = u(() => {
|
|
41
|
-
const s = new Set(
|
|
42
|
-
i.map((o) => {
|
|
43
|
-
const e = typeof o.conditions == "string" ? JSON.parse(o.conditions) : o.conditions;
|
|
44
|
-
return e == null ? void 0 : e.name;
|
|
45
|
-
})
|
|
46
|
-
);
|
|
47
|
-
for (const o of n.value)
|
|
48
|
-
s.add(o.permissionKey);
|
|
49
|
-
return s;
|
|
50
|
-
});
|
|
51
|
-
return {
|
|
52
|
-
fetchReportPermissions: f,
|
|
53
|
-
allReportPermissions: p,
|
|
54
|
-
availableReportKeys: v,
|
|
55
|
-
isLoading: u(() => t.value)
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
export {
|
|
59
|
-
L as u
|
|
60
|
-
};
|