@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.
Files changed (46) hide show
  1. package/dist/{ApprovalCodeList-BvS5dgU3.js → ApprovalCodeList-D62tXKEd.js} +7 -7
  2. package/dist/{AuditLogList-CpX_suVp.js → AuditLogList-DQOdhFJm.js} +825 -835
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BT4DaSaO.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BDT1AfXa.js} +2 -2
  4. package/dist/{EmployeeList-CVsnidNV.js → EmployeeList-Bd211chl.js} +8 -8
  5. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-h8toO2k-.js → FormItem.vue_vue_type_script_setup_true_lang-CUBQnkkY.js} +1 -1
  6. package/dist/{GrantUserList-Dyh5kllB.js → GrantUserList-DaUUILOT.js} +8 -8
  7. package/dist/{Main-aoY6s0QA.js → Main-B95BdgQd.js} +5 -5
  8. package/dist/{Main-CRU4YEdj.js → Main-CvGjvEQL.js} +28 -28
  9. package/dist/{Main-OmCnufx6.js → Main-Dh3E2cEf.js} +11 -11
  10. package/dist/{PermissionSetList-B7B3vnRf.js → PermissionSetList-BIzlo_EV.js} +90 -90
  11. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BYYiW77c.js +4181 -0
  12. 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
  13. package/dist/{RoleList-B7jLSn2l.js → RoleList-QJV3cGvV.js} +33 -33
  14. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BG5gE0iX.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DsKfRa5Z.js} +1 -1
  15. package/dist/{ScheduleGeneralPage-DK2hKCWE.js → ScheduleGeneralPage-D6NPsdrU.js} +2 -2
  16. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-mMjDR4Nz.js → ScheduleModal.vue_vue_type_script_setup_true_lang-kYGNELLb.js} +3 -3
  17. package/dist/{SchedulePage-Dn4joe9m.js → SchedulePage-CO_ZP2QD.js} +13 -13
  18. package/dist/{SchedulePositionPage-D7u4QBug.js → SchedulePositionPage-DFjWfRwI.js} +3 -3
  19. package/dist/{SelectFilter-BbTj7kMh.js → SelectFilter-B94Z_Fat.js} +1 -1
  20. package/dist/TeamMemberList-BbGMw0jg.js +1150 -0
  21. package/dist/{TimesheetList-B6TIgZba.js → TimesheetList-DiTCj2H7.js} +8 -8
  22. 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
  23. package/dist/{app-Cfzysb_Z.js → app-BRlNuQIz.js} +2465 -2387
  24. package/dist/app.js +1 -1
  25. package/dist/{approval-code-CWq2ce3u.js → approval-code-D6eLRwC7.js} +1 -1
  26. package/dist/{dayjs.min-NoTESZyy.js → dayjs.min-BaLuYA95.js} +1 -1
  27. package/dist/{employee-BzUt7_wz.js → employee-DF_QGtpu.js} +4 -4
  28. package/dist/{grant-user-q_mkj3Vh.js → grant-user-CdkuTYlZ.js} +1 -1
  29. package/dist/{iteration-DmbHO_Rl.js → iteration-t4kb_i13.js} +1 -1
  30. package/dist/{lodash-DqvpfdBt.js → lodash-Dv0NUeUP.js} +1 -1
  31. package/dist/{restaurant-DJBQY9N5.js → restaurant-D2q9eNtu.js} +578 -581
  32. package/dist/{role-Crd3XL59.js → role-y253W1Ep.js} +19 -20
  33. package/dist/{rule-B1ck-XG6.js → rule-DaFOMP6z.js} +150 -153
  34. package/dist/src/composables/useTenant.d.ts +11 -0
  35. package/dist/src/router/courtGuard.d.ts +4 -0
  36. package/dist/src/stores/team.d.ts +1 -1
  37. package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +1 -1
  38. package/dist/style.css +1 -1
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/{useAppStore-TRX-PQD4.js → useAppStore-CIPpnfP7.js} +1 -1
  41. package/dist/{useLoading-W3YSF8OB.js → useLoading-BRCeBVXP.js} +1 -1
  42. package/dist/useReportPermissions-Bveud3kc.js +80 -0
  43. package/package.json +3 -3
  44. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BVOwDcXo.js +0 -4167
  45. package/dist/TeamMemberList-C0nZBhqp.js +0 -1154
  46. package/dist/useReportPermissions-DmMlLiQP.js +0 -82
@@ -1,82 +0,0 @@
1
- import { computed as r, ref as n } from "vue";
2
- import { e as d } from "./iteration-DmbHO_Rl.js";
3
- import { useCoreStore as h } from "@feedmepos/mf-common";
4
- import { R as K } from "./rule-B1ck-XG6.js";
5
- import { D as g } from "./app-Cfzysb_Z.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 K.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 = g.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
- };