@feedmepos/mf-hrm-portal 2.0.8-dev.1 → 2.0.8-dev.3
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-YGP3G14A.js → AuditLogList-DU9bvapH.js} +5 -5
- package/dist/{EmployeeList-DuRlCrqN.js → EmployeeList-C0Kt6J2s.js} +5 -5
- package/dist/{Main-BfDH3uAt.js → Main-CGoSOSHf.js} +9 -9
- package/dist/{Main-D4ueBOl0.js → Main-YgAJrDXR.js} +6 -6
- package/dist/{Main-QpKV1hdj.js → Main-wneSr3Yj.js} +4 -4
- package/dist/{PermissionSetList-DfAZmUkI.js → PermissionSetList-BG5FcHDo.js} +5 -5
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Dfey316Z.js +3471 -0
- package/dist/{RoleList-D4mup6LW.js → RoleList-D6aapDtQ.js} +7 -7
- package/dist/{TeamMemberList-D9rTKS5N.js → TeamMemberList-BQ3xq4Q2.js} +8 -8
- package/dist/{TimesheetList-CBudjg1y.js → TimesheetList-DqEtBC_2.js} +7 -7
- package/dist/{app-BO9lM0sJ.js → app-efNRBiJB.js} +255 -226
- package/dist/app.js +2 -2
- package/dist/{dayjs.min-lY-LRZuh.js → dayjs.min-O2mY8Dsx.js} +1 -1
- package/dist/{employee-DXp_u8jd.js → employee-Cr5TX4u1.js} +4 -4
- package/dist/{index-BigKo-lS.js → index-CMFJQ1p8.js} +1 -1
- package/dist/{index-DAuOIotV.js → index-DPcm9B8U.js} +2 -2
- package/dist/{iteration-DgaP-HFg.js → iteration-BzPWNf3I.js} +1 -1
- package/dist/{lodash-Mhrrz947.js → lodash-rnloBy2O.js} +1 -1
- package/dist/src/composables/useBasePermission.d.ts +37 -0
- package/dist/src/helpers/permission-sync.d.ts +12 -0
- package/dist/src/views/team/components/BasePermission.vue.d.ts +1 -1
- package/dist/{team-oeTIbsa-.js → team-CJ3xjFT7.js} +1 -1
- package/dist/{timesheet-B4XO3Kjx.js → timesheet-BABSsqqp.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-Cu5QCTlx.js → useAppStore-DxEeYbWz.js} +1 -1
- package/dist/{useLoading-DKnxkHGF.js → useLoading-zLCQaKfz.js} +1 -1
- package/dist/{useReportPermissions-B_w5FiAK.js → useReportPermissions-BB-vWjkE.js} +3 -3
- package/package.json +1 -1
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DokyDyxJ.js +0 -3432
package/dist/app.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as T } from "./dayjs.min-
|
|
1
|
+
import { d as T } from "./dayjs.min-O2mY8Dsx.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, s as v } from "./iteration-
|
|
6
|
-
import { t as b, i as S } from "./index-
|
|
7
|
-
import { u as x } from "./useAppStore-
|
|
5
|
+
import { b as r, g as o, s as v } from "./iteration-BzPWNf3I.js";
|
|
6
|
+
import { t as b, i as S } from "./index-DPcm9B8U.js";
|
|
7
|
+
import { u as x } from "./useAppStore-DxEeYbWz.js";
|
|
8
8
|
const n = {
|
|
9
9
|
async readEmployees() {
|
|
10
10
|
return o(await r().get("/pos-users"));
|
|
@@ -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-
|
|
5
|
+
import { c as st } from "./app-efNRBiJB.js";
|
|
6
6
|
var Pt = { exports: {} };
|
|
7
7
|
(function(_, h) {
|
|
8
8
|
(function(y, p) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as b, b as g, d as X, e as j, s as L, q as M } from "./iteration-
|
|
2
|
-
import { d as J,
|
|
1
|
+
import { g as b, b as g, d as X, e as j, s as L, q as M } from "./iteration-BzPWNf3I.js";
|
|
2
|
+
import { d as J, f as R, a as F, h as D, y as S, N as Q } from "./app-efNRBiJB.js";
|
|
3
3
|
import { defineStore as x, storeToRefs as k } from "pinia";
|
|
4
4
|
import { ref as h, computed as N } from "vue";
|
|
5
5
|
import { useCoreStore as q } from "@feedmepos/mf-common";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as U } from "./app-
|
|
1
|
+
import { c as U } from "./app-efNRBiJB.js";
|
|
2
2
|
import { useCoreStore as To, baseClientInstance as jr, FeedMeAuth as Zs } from "@feedmepos/mf-common";
|
|
3
3
|
var Ys = {}, _n = {}, _ = {}, zo = {}, $i = {}, eo = {}, ui = {};
|
|
4
4
|
(function(e) {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type ComputedRef, type Ref } from 'vue';
|
|
2
|
+
import { type IFdtoPortalPermissionsWithVisibilityCondition } from '@feedmepos/hrm-permission';
|
|
3
|
+
import type { FdoPermissionRule } from '@feedmepos/core/entity';
|
|
4
|
+
export type CategoryGroup = {
|
|
5
|
+
category: string;
|
|
6
|
+
options: {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}[];
|
|
10
|
+
selectedSubjects: string[];
|
|
11
|
+
isMultiAction: boolean;
|
|
12
|
+
actionColumns: string[];
|
|
13
|
+
permissionActionsMap: Map<string, string[]>;
|
|
14
|
+
selectedActionsMap: Map<string, Set<string>>;
|
|
15
|
+
coverSubject: string | null;
|
|
16
|
+
coverSelectedActions: Set<string>;
|
|
17
|
+
coverCoversAll: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare function useBasePermission(modelValue: Readonly<Ref<FdoPermissionRule[]>>, allPermissions: ComputedRef<IFdtoPortalPermissionsWithVisibilityCondition[]>, excludedSubjects: Readonly<Ref<string[]>>, emit: (event: 'update:model-value', value: FdoPermissionRule[]) => void): {
|
|
20
|
+
categoryGroups: ComputedRef<CategoryGroup[]>;
|
|
21
|
+
toggleCategory: (category: string, subjects: unknown[]) => void;
|
|
22
|
+
isAllManageChecked: (group: CategoryGroup) => boolean;
|
|
23
|
+
toggleAllManage: (group: CategoryGroup) => void;
|
|
24
|
+
isManageChecked: (group: CategoryGroup, subject: string) => boolean;
|
|
25
|
+
isManageIndeterminate: (group: CategoryGroup, subject: string) => boolean;
|
|
26
|
+
toggleManage: (_group: CategoryGroup, subject: string, checked: boolean) => void;
|
|
27
|
+
hasNonManageActions: (group: CategoryGroup, subject: string) => boolean;
|
|
28
|
+
isActionChecked: (group: CategoryGroup, subject: string, action: string) => boolean;
|
|
29
|
+
isRowFullyCoveredByCover: (group: CategoryGroup, subject: string) => boolean;
|
|
30
|
+
isActionCoveredByCover: (group: CategoryGroup, subject: string, action: string) => boolean;
|
|
31
|
+
permissionDefinesAction: (group: CategoryGroup, subject: string, action: string) => boolean;
|
|
32
|
+
toggleAction: (subject: string, action: string, checked: boolean) => void;
|
|
33
|
+
isAllActionChecked: (group: CategoryGroup, action: string) => boolean;
|
|
34
|
+
isAllActionIndeterminate: (group: CategoryGroup, action: string) => boolean;
|
|
35
|
+
toggleAllAction: (group: CategoryGroup, action: string, checked: boolean) => void;
|
|
36
|
+
actionLabel: (action: string) => string;
|
|
37
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FdoPermissionRule } from '@feedmepos/core/entity';
|
|
2
|
+
/**
|
|
3
|
+
* Keeps the `manage` action in sync with non-manage actions for a given subject.
|
|
4
|
+
*
|
|
5
|
+
* - Adds `manage` when every non-manage action in `definedActions` is selected.
|
|
6
|
+
* - Removes `manage` (and splices the rule if it becomes empty) when any
|
|
7
|
+
* non-manage action is unselected.
|
|
8
|
+
* - No-op when the subject defines only `manage` (or no non-manage actions).
|
|
9
|
+
*
|
|
10
|
+
* Mutates `newRules` in place.
|
|
11
|
+
*/
|
|
12
|
+
export declare function applyManageSync(newRules: FdoPermissionRule[], subject: string, definedActions: string[]): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import type { IFdtoPortalPermissionsWithVisibilityCondition } from '@feedmepos/hrm-permission';
|
|
3
3
|
import type { FdoPermissionRule } from '@feedmepos/core/entity';
|
|
4
4
|
declare var __VLS_9: `checkbox-${string}-append`, __VLS_10: {
|
|
5
5
|
option: import("@/components/CheckboxInput.vue").CheckboxOption;
|
|
@@ -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-
|
|
3
|
+
import { t as f } from "./index-DPcm9B8U.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,8 +1,8 @@
|
|
|
1
|
-
import { d as i } from "./dayjs.min-
|
|
1
|
+
import { d as i } from "./dayjs.min-O2mY8Dsx.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, s as S } from "./iteration-
|
|
5
|
-
import { i as u, b as g } from "./index-
|
|
4
|
+
import { b as c, g as y, s as S } from "./iteration-BzPWNf3I.js";
|
|
5
|
+
import { i as u, b as g } from "./index-DPcm9B8U.js";
|
|
6
6
|
const f = {
|
|
7
7
|
async readTimesheets(t, e) {
|
|
8
8
|
return y(await c().get(`timesheet?start=${t}&end=${e}`));
|