@feedmepos/mf-hrm-portal 2.3.3 → 2.4.0
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-BvS5dgU3.js → ApprovalCodeList-D62tXKEd.js} +7 -7
- package/dist/{AuditLogList-CpX_suVp.js → AuditLogList-DQOdhFJm.js} +825 -835
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BT4DaSaO.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BDT1AfXa.js} +2 -2
- package/dist/{EmployeeList-CVsnidNV.js → EmployeeList-Bd211chl.js} +8 -8
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-h8toO2k-.js → FormItem.vue_vue_type_script_setup_true_lang-CUBQnkkY.js} +1 -1
- package/dist/{GrantUserList-Dyh5kllB.js → GrantUserList-DaUUILOT.js} +8 -8
- package/dist/{Main-aoY6s0QA.js → Main-B95BdgQd.js} +5 -5
- package/dist/{Main-CRU4YEdj.js → Main-CvGjvEQL.js} +28 -28
- package/dist/{Main-OmCnufx6.js → Main-Dh3E2cEf.js} +11 -11
- package/dist/{PermissionSetList-B7B3vnRf.js → PermissionSetList-BIzlo_EV.js} +90 -90
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BYYiW77c.js +4181 -0
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-EwU7gHP7.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CSYNrTGr.js} +1 -1
- package/dist/{RoleList-B7jLSn2l.js → RoleList-QJV3cGvV.js} +33 -33
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BG5gE0iX.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DsKfRa5Z.js} +1 -1
- package/dist/{ScheduleGeneralPage-DK2hKCWE.js → ScheduleGeneralPage-D6NPsdrU.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-mMjDR4Nz.js → ScheduleModal.vue_vue_type_script_setup_true_lang-kYGNELLb.js} +3 -3
- package/dist/{SchedulePage-Dn4joe9m.js → SchedulePage-CO_ZP2QD.js} +13 -13
- package/dist/{SchedulePositionPage-D7u4QBug.js → SchedulePositionPage-DFjWfRwI.js} +3 -3
- package/dist/{SelectFilter-BbTj7kMh.js → SelectFilter-B94Z_Fat.js} +1 -1
- package/dist/TeamMemberList-BbGMw0jg.js +1150 -0
- package/dist/{TimesheetList-B6TIgZba.js → TimesheetList-DiTCj2H7.js} +8 -8
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CF1cWXsG.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-B97k3KNz.js} +3 -3
- package/dist/{app-Cfzysb_Z.js → app-BRlNuQIz.js} +2465 -2387
- package/dist/app.js +1 -1
- package/dist/{approval-code-CWq2ce3u.js → approval-code-D6eLRwC7.js} +1 -1
- package/dist/{dayjs.min-NoTESZyy.js → dayjs.min-BaLuYA95.js} +1 -1
- package/dist/{employee-BzUt7_wz.js → employee-DF_QGtpu.js} +4 -4
- package/dist/{grant-user-q_mkj3Vh.js → grant-user-CdkuTYlZ.js} +1 -1
- package/dist/{iteration-DmbHO_Rl.js → iteration-t4kb_i13.js} +1 -1
- package/dist/{lodash-DqvpfdBt.js → lodash-Dv0NUeUP.js} +1 -1
- package/dist/{restaurant-DJBQY9N5.js → restaurant-D2q9eNtu.js} +578 -581
- package/dist/{role-Crd3XL59.js → role-y253W1Ep.js} +19 -20
- package/dist/{rule-B1ck-XG6.js → rule-DaFOMP6z.js} +150 -153
- package/dist/src/composables/useTenant.d.ts +11 -0
- package/dist/src/router/courtGuard.d.ts +4 -0
- package/dist/src/stores/team.d.ts +1 -1
- package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-TRX-PQD4.js → useAppStore-CIPpnfP7.js} +1 -1
- package/dist/{useLoading-W3YSF8OB.js → useLoading-BRCeBVXP.js} +1 -1
- package/dist/useReportPermissions-Bveud3kc.js +80 -0
- package/package.json +3 -3
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BVOwDcXo.js +0 -4167
- package/dist/TeamMemberList-C0nZBhqp.js +0 -1154
- package/dist/useReportPermissions-DmMlLiQP.js +0 -82
|
@@ -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-CIPpnfP7.js";
|
|
4
4
|
const E = (r) => {
|
|
5
5
|
async function d(u, e) {
|
|
6
6
|
var l, a;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { computed as a, ref as o } from "vue";
|
|
2
|
+
import { e as d } from "./iteration-t4kb_i13.js";
|
|
3
|
+
import { u as K, L } from "./app-BRlNuQIz.js";
|
|
4
|
+
import { R as S } from "./rule-DaFOMP6z.js";
|
|
5
|
+
const i = o([]), r = o(!1), l = o(!1), f = o(null), p = o(null), u = o(!1);
|
|
6
|
+
function J() {
|
|
7
|
+
const v = K();
|
|
8
|
+
async function m() {
|
|
9
|
+
const s = v.id.value;
|
|
10
|
+
if (!s) return;
|
|
11
|
+
f.value !== s && (i.value = [], r.value = !1, l.value = !1, f.value = s, u.value = !1);
|
|
12
|
+
const t = localStorage.getItem("locale");
|
|
13
|
+
if (!(r.value && p.value === t)) {
|
|
14
|
+
if (l.value) {
|
|
15
|
+
u.value = !0;
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
l.value = !0;
|
|
19
|
+
try {
|
|
20
|
+
i.value = await S.fetchReportPermissions(
|
|
21
|
+
s,
|
|
22
|
+
t
|
|
23
|
+
), r.value = !0, p.value = t;
|
|
24
|
+
} catch (e) {
|
|
25
|
+
console.warn("Failed to fetch dynamic report permissions, keeping last known list:", e), r.value = !1;
|
|
26
|
+
} finally {
|
|
27
|
+
l.value = !1, u.value && (u.value = !1, await m());
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const c = L.filter(
|
|
32
|
+
(s) => s.subject === d.F_RULE_SUBJECT.enum.report && s.conditions
|
|
33
|
+
), y = a(() => {
|
|
34
|
+
const s = new Set(
|
|
35
|
+
c.map((e) => {
|
|
36
|
+
const n = typeof e.conditions == "string" ? JSON.parse(e.conditions) : e.conditions;
|
|
37
|
+
return n == null ? void 0 : n.name;
|
|
38
|
+
})
|
|
39
|
+
), t = i.value.filter((e) => !s.has(e.permissionKey)).map((e) => ({
|
|
40
|
+
label: e.name,
|
|
41
|
+
subject: d.F_RULE_SUBJECT.enum.report,
|
|
42
|
+
actions: ["read"],
|
|
43
|
+
conditions: { name: e.permissionKey },
|
|
44
|
+
inverted: !1,
|
|
45
|
+
reason: ""
|
|
46
|
+
}));
|
|
47
|
+
return [...c, ...t];
|
|
48
|
+
}), R = a(() => {
|
|
49
|
+
const s = new Set(
|
|
50
|
+
c.map((t) => {
|
|
51
|
+
const e = typeof t.conditions == "string" ? JSON.parse(t.conditions) : t.conditions;
|
|
52
|
+
return e == null ? void 0 : e.name;
|
|
53
|
+
})
|
|
54
|
+
);
|
|
55
|
+
for (const t of i.value)
|
|
56
|
+
s.add(t.permissionKey);
|
|
57
|
+
return s;
|
|
58
|
+
}), h = a(() => {
|
|
59
|
+
const s = new Set(
|
|
60
|
+
c.map((e) => {
|
|
61
|
+
const n = typeof e.conditions == "string" ? JSON.parse(e.conditions) : e.conditions;
|
|
62
|
+
return n == null ? void 0 : n.name;
|
|
63
|
+
})
|
|
64
|
+
), t = /* @__PURE__ */ new Set();
|
|
65
|
+
for (const e of i.value)
|
|
66
|
+
s.has(e.permissionKey) || t.add(e.permissionKey);
|
|
67
|
+
return t;
|
|
68
|
+
});
|
|
69
|
+
return {
|
|
70
|
+
fetchReportPermissions: m,
|
|
71
|
+
allReportPermissions: y,
|
|
72
|
+
availableReportKeys: R,
|
|
73
|
+
customReportKeys: h,
|
|
74
|
+
isLoading: a(() => l.value),
|
|
75
|
+
isLoaded: a(() => r.value)
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
export {
|
|
79
|
+
J as u
|
|
80
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-hrm-portal",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@feedmepos/auth": "^1.6.4",
|
|
18
18
|
"@feedmepos/core": "^2.14.36",
|
|
19
|
-
"@feedmepos/mf-common": "
|
|
19
|
+
"@feedmepos/mf-common": "1.29.36",
|
|
20
20
|
"@feedmepos/mf-remy-panel": "0.15.0",
|
|
21
21
|
"@feedmepos/ui-library": "^1.10.13",
|
|
22
22
|
"@feedmepos/feature-flag": "^0.0.15",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"vue-router": "^4.3.2",
|
|
31
31
|
"vue3-lottie": "^3.3.0",
|
|
32
32
|
"xlsx": "^0.18.5",
|
|
33
|
-
"@feedmepos/hrm-permission": "1.2.
|
|
33
|
+
"@feedmepos/hrm-permission": "1.2.4",
|
|
34
34
|
"@feedmepos/hrm-schedule-contract": "1.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|