@feedmepos/mf-hrm-portal 2.0.6-dev → 2.0.7-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 (34) hide show
  1. package/dist/{AuditLogList-BxigxQv3.js → AuditLogList-COq6WH3T.js} +12 -12
  2. package/dist/{EmployeeList-DyvqwZtw.js → EmployeeList-CtosIPFL.js} +5 -5
  3. package/dist/{Main-CtH5MCty.js → Main-B4YdcrGe.js} +5 -5
  4. package/dist/{Main-B8tSMq-U.js → Main-CdsqeB2G.js} +8 -8
  5. package/dist/PermissionSetList-BUORArci.js +327 -0
  6. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ChqCTn1L.js +3333 -0
  7. package/dist/{RoleList-jykDD_zm.js → RoleList-D1NGE2IC.js} +6 -6
  8. package/dist/TeamMemberList-auSjZRNz.js +979 -0
  9. package/dist/{TimesheetList-Bk1XF9xy.js → TimesheetList-B8yCkaxb.js} +6 -6
  10. package/dist/{app-BPlaahxK.js → app-CB3ye-CT.js} +785 -688
  11. package/dist/app.js +1 -1
  12. package/dist/{dayjs.min-LweNOSZ_.js → dayjs.min-DOxEzdpe.js} +1 -1
  13. package/dist/{employee-DPfiL6rd.js → employee-G0pQg8_6.js} +3 -3
  14. package/dist/{index-CBxn7cxI.js → index-Beu6IuhT.js} +1803 -1735
  15. package/dist/{index-BAhsHYNv.js → index-DQArLkVB.js} +1 -1
  16. package/dist/{lodash-D1uG3PY3.js → lodash-COjtwv4w.js} +1 -1
  17. package/dist/src/api/permission-assignment/index.d.ts +3 -0
  18. package/dist/src/api/report-query/index.d.ts +1 -0
  19. package/dist/src/composables/useCustomReportPermissions.d.ts +7 -0
  20. package/dist/src/helpers/permission-set.d.ts +9 -0
  21. package/dist/src/helpers/rule.d.ts +4 -1
  22. package/dist/src/types/report-query.d.ts +1 -0
  23. package/dist/src/views/team/components/BasePermission.vue.d.ts +17 -0
  24. package/dist/{team-B1osnB4U.js → team-CEtKQK6n.js} +1 -1
  25. package/dist/{timesheet-rte2utJf.js → timesheet-DZF9D3QQ.js} +2 -2
  26. package/dist/tsconfig.app.tsbuildinfo +1 -1
  27. package/dist/{useAppStore-CqrjwnF_.js → useAppStore-9lbKMy_9.js} +1 -1
  28. package/dist/{useLoading-B5IjfVEP.js → useLoading-BIIvuJcM.js} +1 -1
  29. package/dist/useReportPermissions-BXQ0-WwK.js +59 -0
  30. package/package.json +1 -1
  31. package/dist/PermissionSetList-DCONmOgn.js +0 -323
  32. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-07Dsea27.js +0 -3092
  33. package/dist/TeamMemberList-DMrPgF1l.js +0 -973
  34. package/dist/useReportPermissions-C4Q29AQJ.js +0 -65
@@ -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-BPlaahxK.js";
5
+ import { c as st } from "./app-CB3ye-CT.js";
6
6
  var Pt = { exports: {} };
7
7
  (function(_, h) {
8
8
  (function(y, p) {
@@ -1,4 +1,4 @@
1
- import { c as jt } from "./app-BPlaahxK.js";
1
+ import { c as jt } from "./app-CB3ye-CT.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -6,5 +6,8 @@ declare const PermissionAssignmentAPI: {
6
6
  create(dto: IFdtoCreatePermissionAssignmentReq): Promise<IFdtoPermissionAssignment>;
7
7
  update(id: string, dto: IFdtoUpdatePermissionAssignmentReq): Promise<IFdtoPermissionAssignment>;
8
8
  delete(id: string): Promise<boolean>;
9
+ addReportManagePermission(permissionKey: string): Promise<{
10
+ success: boolean;
11
+ }>;
9
12
  };
10
13
  export default PermissionAssignmentAPI;
@@ -1,5 +1,6 @@
1
1
  import type { ReportPermissionItem } from '@/types/report-query';
2
2
  declare const ReportQueryAPI: {
3
3
  fetchReportPermissions(businessId: string): Promise<ReportPermissionItem[]>;
4
+ fetchReportPermissionsForPortal(businessId: string): Promise<ReportPermissionItem[]>;
4
5
  };
5
6
  export default ReportQueryAPI;
@@ -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
+ };
@@ -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[];
@@ -3,4 +3,5 @@ export interface ReportPermissionItem {
3
3
  permissionKey: string;
4
4
  category: string;
5
5
  categoryName: string;
6
+ isDefault: boolean;
6
7
  }
@@ -1,10 +1,18 @@
1
1
  import { type PropType } from 'vue';
2
+ import { type IFdtoPortalPermissionsWithVisibilityCondition } from '@feedmepos/hrm-permission';
2
3
  import type { FdoPermissionRule } from '@feedmepos/core/entity';
3
4
  declare var __VLS_9: `checkbox-${string}-append`, __VLS_10: {
4
5
  option: import("@/components/CheckboxInput.vue").CheckboxOption;
6
+ }, __VLS_29: `checkbox-${string}-append`, __VLS_30: {
7
+ option: {
8
+ label: string;
9
+ value: string;
10
+ };
5
11
  };
6
12
  type __VLS_Slots = {} & {
7
13
  [K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
14
+ } & {
15
+ [K in NonNullable<typeof __VLS_29>]?: (props: typeof __VLS_30) => any;
8
16
  };
9
17
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
18
  modelValue: {
@@ -19,6 +27,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
19
27
  type: PropType<string[]>;
20
28
  required: true;
21
29
  };
30
+ additionalPermissions: {
31
+ type: PropType<IFdtoPortalPermissionsWithVisibilityCondition[]>;
32
+ default: () => never[];
33
+ };
22
34
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
23
35
  "update:model-value": (subject: {
24
36
  reason?: string | null | undefined;
@@ -42,6 +54,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
42
54
  type: PropType<string[]>;
43
55
  required: true;
44
56
  };
57
+ additionalPermissions: {
58
+ type: PropType<IFdtoPortalPermissionsWithVisibilityCondition[]>;
59
+ default: () => never[];
60
+ };
45
61
  }>> & Readonly<{
46
62
  "onUpdate:model-value"?: ((subject: {
47
63
  reason?: string | null | undefined;
@@ -54,6 +70,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
54
70
  }[]) => any) | undefined;
55
71
  }>, {
56
72
  disable: boolean;
73
+ additionalPermissions: IFdtoPortalPermissionsWithVisibilityCondition[];
57
74
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
58
75
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
59
76
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { defineStore as d } from "pinia";
2
2
  import { ref as s, computed as o } from "vue";
3
- import { t as f } from "./index-CBxn7cxI.js";
3
+ import { t as f } from "./index-Beu6IuhT.js";
4
4
  const I = d("team", () => {
5
5
  const r = s([]), a = s(!1), m = o(
6
6
  () => Object.fromEntries(r.value.map((e) => [e.doc.userId, e.name]))
@@ -1,7 +1,7 @@
1
- import { d as i } from "./dayjs.min-LweNOSZ_.js";
1
+ import { d as i } from "./dayjs.min-DOxEzdpe.js";
2
2
  import { defineStore as p, storeToRefs as T } from "pinia";
3
3
  import { ref as l } from "vue";
4
- import { b as c, g as y, k as u, j as S, s as g } from "./index-CBxn7cxI.js";
4
+ import { b as c, g as y, k as u, j as S, s as g } from "./index-Beu6IuhT.js";
5
5
  const f = {
6
6
  async readTimesheets(t, e) {
7
7
  return y(await c().get(`timesheet?start=${t}&end=${e}`));