@feedmepos/mf-hrm-portal 1.1.3-dev.1 → 1.1.3-dev.2
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-kZBi77lv.js +435 -0
- package/dist/{EmployeeList-BWDsSFoY.js → EmployeeList-Cg-mhdLv.js} +5 -5
- package/dist/{Main-VjhiuuHr.js → Main-BHF7vXlD.js} +28 -27
- package/dist/{Main-D5YEKOpl.js → Main-CC9_bKTG.js} +7 -7
- package/dist/PermissionSetList-C0FOYrQ6.js +283 -0
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CS4B-7AU.js +3084 -0
- package/dist/{RoleList-CfPD_Gk_.js → RoleList-D2NTVZa_.js} +5 -5
- package/dist/{TeamMemberList-DEYo6_pS.js → TeamMemberList-DC0Gxjin.js} +325 -322
- package/dist/{TimesheetList-BTTBjTrO.js → TimesheetList-CksRCsTc.js} +6 -6
- package/dist/api/index.d.ts +4 -0
- package/dist/api/team/index.d.ts +2 -2
- package/dist/{app-CfIHEA52.js → app-kKq54h9D.js} +606 -504
- package/dist/app.js +3 -3
- package/dist/{dayjs.min-C8cBXLt-.js → dayjs.min-CGTR0SS0.js} +1 -1
- package/dist/{employee-ChJpkvUF.js → employee-CRKx3zN0.js} +3 -3
- package/dist/helpers/permission-set.d.ts +15 -0
- package/dist/{index-CgbDOn3W.js → index-DRoNwfyW.js} +2153 -2053
- package/dist/index-TP4vQCyq.js +827 -0
- package/dist/{lodash-0EOIqOEG.js → lodash-CeWi5dyp.js} +1 -1
- package/dist/stores/team.d.ts +4 -1
- package/dist/team-CuLNHjGN.js +29 -0
- package/dist/{timesheet-DTI6G4DD.js → timesheet-V636ISlI.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DCpMNDxE.js → useAppStore-DoX0IUFz.js} +1 -1
- package/dist/{useLoading-ChLCiMQj.js → useLoading-1yy1KHsE.js} +1 -1
- package/dist/views/audit-log/locales/index.d.ts +40 -8
- package/dist/views/team/locales/index.d.ts +12 -8
- package/package.json +3 -2
- package/dist/AuditLogList-qGKeg-cd.js +0 -384
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-yghfcQRF.js +0 -3050
- package/dist/RolePermissionList-Cu1KTuuI.js +0 -285
- package/dist/team-C2muObo8.js +0 -26
- package/dist/types/permission.d.ts +0 -1
- /package/dist/views/team/{role/RolePermissionForm.vue.d.ts → permission-set/PermissionSetForm.vue.d.ts} +0 -0
- /package/dist/views/team/{role/RolePermissionList.vue.d.ts → permission-set/PermissionSetList.vue.d.ts} +0 -0
package/dist/app.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as v } from "./dayjs.min-
|
|
1
|
+
import { d as v } from "./dayjs.min-CGTR0SS0.js";
|
|
2
2
|
import { defineStore as T, storeToRefs as _ } from "pinia";
|
|
3
3
|
import { ref as h } from "vue";
|
|
4
4
|
import { useCoreStore as U } from "@feedmepos/mf-common";
|
|
5
|
-
import { b as o, g as n, t as $, k as b, s as I } from "./index-
|
|
6
|
-
import { u as S } from "./useAppStore-
|
|
5
|
+
import { b as o, g as n, t as $, k as b, s as I } from "./index-DRoNwfyW.js";
|
|
6
|
+
import { u as S } from "./useAppStore-DoX0IUFz.js";
|
|
7
7
|
const c = {
|
|
8
8
|
async readEmployees() {
|
|
9
9
|
return n(await o().get("/pos-users"));
|
|
@@ -23,6 +23,7 @@ export declare function transformByCollection(permissionSets: IFdtoPermissionSet
|
|
|
23
23
|
* - If user has conditions and base doesn't, return user's rule (user added)
|
|
24
24
|
*/
|
|
25
25
|
export declare function getOverridePermissions(basePermissions: FdoPermissionRule[], overridePermissions: FdoPermissionRule[]): FdoPermissionRule[];
|
|
26
|
+
export declare function materializeSystemPermissionSetOverrides(overridePermissions: FdoPermissionRule[]): FdoPermissionRule[];
|
|
26
27
|
/**
|
|
27
28
|
* Combine base permissions with override permissions to get effective permissions
|
|
28
29
|
* @param basePermissions - Base permissions from permission sets
|
|
@@ -30,3 +31,17 @@ export declare function getOverridePermissions(basePermissions: FdoPermissionRul
|
|
|
30
31
|
* @returns - Combined effective permissions
|
|
31
32
|
*/
|
|
32
33
|
export declare function getEffectivePermissions(basePermissions: FdoPermissionRule[], overridePermissions: FdoPermissionRule[]): FdoPermissionRule[];
|
|
34
|
+
/**
|
|
35
|
+
* Compute the initial permissions for the permission editor.
|
|
36
|
+
*
|
|
37
|
+
* Like `getEffectivePermissions`, but also preserves "orphaned" inverted rules — denials whose
|
|
38
|
+
* subject is NOT present in any base permission set (i.e. they target system-expanded subjects,
|
|
39
|
+
* not permission-set-inherited subjects). These denials seed `visitedSetIds` in
|
|
40
|
+
* `expandWithSystemPermissionSets` to block runtime re-expansion of system sets that the user
|
|
41
|
+
* explicitly unchecked. Without them the editor would initialise without the denial guard and
|
|
42
|
+
* those subjects would reappear as checked the next time the form opens.
|
|
43
|
+
*
|
|
44
|
+
* Inverted rules whose subject IS in base are handled correctly by `getEffectivePermissions`
|
|
45
|
+
* already (they cancel the inherited grant) and do not need special treatment here.
|
|
46
|
+
*/
|
|
47
|
+
export declare function getEditorPermissions(basePermissions: FdoPermissionRule[], customPermissions: FdoPermissionRule[]): FdoPermissionRule[];
|