@feedmepos/mf-hrm-portal 2.0.2-dev → 2.0.3-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.
Files changed (31) hide show
  1. package/dist/{AuditLogList-DIhc0l6X.js → AuditLogList-wzVOem7J.js} +12 -12
  2. package/dist/{EmployeeList-BeEKR289.js → EmployeeList-D5IfP20e.js} +5 -5
  3. package/dist/{Main-VBmK1-KC.js → Main-hADhiwrp.js} +5 -5
  4. package/dist/{Main-C0GZCILF.js → Main-mvm27j-a.js} +8 -8
  5. package/dist/PermissionSetList-DgaTwV_y.js +327 -0
  6. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BzA__vQJ.js +3287 -0
  7. package/dist/{RoleList-CV0gVc3E.js → RoleList-C0gK0AMO.js} +6 -6
  8. package/dist/TeamMemberList-BVAbjvKZ.js +979 -0
  9. package/dist/{TimesheetList-BwEfqBTT.js → TimesheetList-C3jduNcK.js} +6 -6
  10. package/dist/{app-aTcgEcFN.js → app-CXscIHdd.js} +897 -803
  11. package/dist/app.js +1 -1
  12. package/dist/composables/useCustomReportPermissions.d.ts +7 -0
  13. package/dist/{dayjs.min-B9nj2sbB.js → dayjs.min-Bc0i83P9.js} +1 -1
  14. package/dist/{employee-Cb9Bw-C0.js → employee-Se3Yks-o.js} +3 -3
  15. package/dist/helpers/permission-set.d.ts +9 -0
  16. package/dist/helpers/rule.d.ts +4 -1
  17. package/dist/{index-BFELrt2A.js → index-D35d9iES.js} +1 -1
  18. package/dist/{index-CUpeDutG.js → index-DOp84DcN.js} +1539 -1491
  19. package/dist/{lodash-ByTVC-hr.js → lodash-DuiYjdnV.js} +1 -1
  20. package/dist/{team-DRrXMlSc.js → team-CT4SDg-h.js} +1 -1
  21. package/dist/{timesheet-B3eCp8WW.js → timesheet-D0SI4Zli.js} +2 -2
  22. package/dist/tsconfig.app.tsbuildinfo +1 -1
  23. package/dist/{useAppStore-Yt4HqLKz.js → useAppStore-TCd8aSgi.js} +1 -1
  24. package/dist/{useLoading-BVU_m_hz.js → useLoading-CwO9YfJb.js} +1 -1
  25. package/dist/useReportPermissions-CmtxmL3h.js +59 -0
  26. package/dist/views/team/components/BasePermission.vue.d.ts +17 -0
  27. package/package.json +2 -2
  28. package/dist/PermissionSetList-C0lRNtWq.js +0 -323
  29. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DOBslfDb.js +0 -3092
  30. package/dist/TeamMemberList-BXMfJK16.js +0 -973
  31. package/dist/useReportPermissions-Bchec8_9.js +0 -65
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as e, i as r, r as o } from "./app-aTcgEcFN.js";
1
+ import { b as e, i as r, r as o } from "./app-CXscIHdd.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -0,0 +1,7 @@
1
+ import { type IFdtoPortalPermissionsWithVisibilityCondition } from '@feedmepos/hrm-permission';
2
+ export declare function useCustomReportPermissions(): {
3
+ fetchCustomReportPermissions: () => Promise<void>;
4
+ customReportPermissions: import("vue").ComputedRef<IFdtoPortalPermissionsWithVisibilityCondition[]>;
5
+ isLoading: import("vue").ComputedRef<boolean>;
6
+ isLoaded: import("vue").ComputedRef<boolean>;
7
+ };
@@ -1,4 +1,4 @@
1
- import { g as Q, c as K } from "./app-aTcgEcFN.js";
1
+ import { g as Q, c as K } from "./app-CXscIHdd.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, k) {
@@ -1,9 +1,9 @@
1
- import { d as T } from "./dayjs.min-B9nj2sbB.js";
1
+ import { d as T } from "./dayjs.min-Bc0i83P9.js";
2
2
  import { defineStore as _, storeToRefs as U } from "pinia";
3
3
  import { ref as I } from "vue";
4
4
  import { useCoreStore as $ } from "@feedmepos/mf-common";
5
- import { b as r, g as o, t as b, k as S, s as v } from "./index-CUpeDutG.js";
6
- import { u as x } from "./useAppStore-Yt4HqLKz.js";
5
+ import { b as r, g as o, t as b, k as S, s as v } from "./index-DOp84DcN.js";
6
+ import { u as x } from "./useAppStore-TCd8aSgi.js";
7
7
  const n = {
8
8
  async readEmployees() {
9
9
  return o(await r().get("/pos-users"));
@@ -46,6 +46,15 @@ export declare function materializeSystemPermissionSetOverrides(overridePermissi
46
46
  * Inverted rules (explicit user denials) are always preserved.
47
47
  */
48
48
  export declare function stripSystemExpandedPositives(permissions: FdoPermissionRule[]): FdoPermissionRule[];
49
+ /**
50
+ * Filter out permissions whose subject no longer exists in the known permission definitions.
51
+ * Removes both positive and inverted rules for stale subjects.
52
+ *
53
+ * This handles:
54
+ * - Deprecated/renamed subjects (e.g. `business::report::closeup` → `business::report::reports::closeup`)
55
+ * - Deleted dynamic reports that no longer exist
56
+ */
57
+ export declare function filterStalePermissions(permissions: FdoPermissionRule[], knownSubjects: Set<string>): FdoPermissionRule[];
49
58
  /**
50
59
  * Combine base permissions with override permissions to get effective permissions
51
60
  * @param basePermissions - Base permissions from permission sets
@@ -26,4 +26,7 @@ export declare function fromValue(values: string[], maxDiscountPercentage: numbe
26
26
  conditions: object;
27
27
  }[];
28
28
  export declare function toRule(v: string): Rule;
29
- export declare function mapAndSortPermissions(permissions: Array<FdoPermissionRule | RawRule>): string[];
29
+ export declare function mapAndSortPermissions(permissions: Array<FdoPermissionRule | RawRule>, additionalPermissions?: ReadonlyArray<{
30
+ subject: string | string[];
31
+ label: string;
32
+ }>): string[];
@@ -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-aTcgEcFN.js";
5
+ import { c as st } from "./app-CXscIHdd.js";
6
6
  var Pt = { exports: {} };
7
7
  (function(_, h) {
8
8
  (function(y, p) {