@feedmepos/mf-hrm-portal 2.2.1-dev → 2.2.1-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.
Files changed (43) hide show
  1. package/dist/{ApprovalCodeList-BgPrC2H1.js → ApprovalCodeList-rL8dh-6s.js} +5 -5
  2. package/dist/{AuditLogList-B9k56ux1.js → AuditLogList-NvISIfUq.js} +4 -4
  3. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BJgpH-kw.js +438 -0
  4. package/dist/{EmployeeList-f05XEwMS.js → EmployeeList-C3VvVY6A.js} +6 -6
  5. package/dist/{GrantUserList-Db4_e87R.js → GrantUserList-DjZ4O0VB.js} +6 -6
  6. package/dist/{Main-DPmBwatV.js → Main-ByWrRV70.js} +8 -8
  7. package/dist/{Main-C83-6ZYQ.js → Main-DVTx58X9.js} +11 -11
  8. package/dist/{Main-CZoUt9IM.js → Main-LaAbAOfs.js} +5 -5
  9. package/dist/{PermissionSetList-CqcbzdXp.js → PermissionSetList-DD45SSY3.js} +19 -19
  10. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-yDPvNHiW.js +4169 -0
  11. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DVVSBIx2.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js} +1 -1
  12. package/dist/RoleList-BDxgwmAV.js +725 -0
  13. package/dist/{TeamMemberList-DuP1QWAS.js → TeamMemberList-DrLbMN34.js} +9 -9
  14. package/dist/{TimesheetList-D_Xq4ESR.js → TimesheetList-CdaxlO97.js} +7 -7
  15. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-O2_M0Ktw.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-ogjfztLs.js} +3 -3
  16. package/dist/{app-3bHRu-TD.js → app-B8eo04d6.js} +169 -158
  17. package/dist/app.js +1 -1
  18. package/dist/{approval-code-Q4666xp5.js → approval-code-jIjkeVEb.js} +1 -1
  19. package/dist/{dayjs.min-BjrK6J3b.js → dayjs.min-DZEHW2QB.js} +1 -1
  20. package/dist/{employee-Ck_DJyl9.js → employee-DX0CZF-B.js} +4 -4
  21. package/dist/{grant-user-CQZaTzVt.js → grant-user-SNiDV22U.js} +1 -1
  22. package/dist/{iteration-Bl07BT2c.js → iteration-yBS4dpFh.js} +1 -1
  23. package/dist/{lodash-CwAowwGK.js → lodash-344d5Ope.js} +1 -1
  24. package/dist/{restaurant-YOVMuuFY.js → restaurant-BTpBmfBV.js} +12 -14
  25. package/dist/role-BXBuBxs5.js +92 -0
  26. package/dist/rule-DWlFon04.js +1094 -0
  27. package/dist/src/composables/useReportPermissions.d.ts +1 -0
  28. package/dist/src/helpers/rule.d.ts +10 -1
  29. package/dist/src/stores/role.d.ts +6 -6
  30. package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +44 -0
  31. package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +39 -0
  32. package/dist/src/views/team/locales/index.d.ts +4 -0
  33. package/dist/tsconfig.app.tsbuildinfo +1 -1
  34. package/dist/{useAppStore-DNTlIeMv.js → useAppStore-DCwd8GWN.js} +1 -1
  35. package/dist/{useLoading-BH02lYns.js → useLoading-CXzTpIVv.js} +1 -1
  36. package/dist/useReportPermissions-C0exkIxU.js +71 -0
  37. package/package.json +2 -2
  38. package/dist/ConditionFormHost.vue_vue_type_script_setup_true_lang-BKxQPhjZ.js +0 -387
  39. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DMS04nsd.js +0 -4122
  40. package/dist/RoleList-DsINcxpz.js +0 -685
  41. package/dist/role-Z1BT4HFT.js +0 -82
  42. package/dist/rule-DYmHm3nE.js +0 -1066
  43. package/dist/useReportPermissions-DCF1U1Us.js +0 -70
@@ -11,4 +11,5 @@ export declare function useReportPermissions(): {
11
11
  }[]>;
12
12
  availableReportKeys: import("vue").ComputedRef<Set<string>>;
13
13
  isLoading: import("vue").ComputedRef<boolean>;
14
+ isLoaded: import("vue").ComputedRef<boolean>;
14
15
  };
@@ -26,7 +26,16 @@ export declare function fromValue(values: string[], maxDiscountPercentage: numbe
26
26
  actions: ("delete" | "create" | "update" | "read" | "manage")[];
27
27
  conditions: object;
28
28
  }[];
29
- export declare function toRule(v: string): Rule;
29
+ export declare function toRule(v: string): Rule | undefined;
30
+ export interface RoleFormPermissionSplit {
31
+ /** Checkbox value strings the role form can render and round-trip. */
32
+ values: string[];
33
+ /** Valid rules the form has no checkbox for — must be saved back verbatim. */
34
+ passthrough: FdoPermissionRule[];
35
+ /** Corrupted rules (no subject / empty actions) — omitted on save to repair the doc. */
36
+ dropped: FdoPermissionRule[];
37
+ }
38
+ export declare function splitRoleFormPermissions(permissions: FdoPermissionRule[], knownValues: Set<string>): RoleFormPermissionSplit;
30
39
  export declare function mapAndSortPermissions(permissions: Array<FdoPermissionRule | RawRule>, additionalPermissions?: ReadonlyArray<{
31
40
  subject: string | string[];
32
41
  label: string;
@@ -58,7 +58,7 @@ export declare const useRoleStore: () => {
58
58
  permissions: Record<string, any>[];
59
59
  }[]>;
60
60
  isLoading: import("vue").Ref<boolean, boolean>;
61
- readRoles: () => Promise<void>;
61
+ readRoles: (force?: boolean) => Promise<void>;
62
62
  createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
63
63
  updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
64
64
  deleteRole: (role: Role) => Promise<void>;
@@ -115,7 +115,7 @@ export declare const useRoleStore: () => {
115
115
  permissions: Record<string, any>[];
116
116
  }[]>;
117
117
  isLoading: import("vue").Ref<boolean, boolean>;
118
- readRoles: () => Promise<void>;
118
+ readRoles: (force?: boolean) => Promise<void>;
119
119
  createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
120
120
  updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
121
121
  deleteRole: (role: Role) => Promise<void>;
@@ -145,7 +145,7 @@ export declare const useRoleStore: () => {
145
145
  permissions: Record<string, any>[];
146
146
  }[]>;
147
147
  isLoading: import("vue").Ref<boolean, boolean>;
148
- readRoles: () => Promise<void>;
148
+ readRoles: (force?: boolean) => Promise<void>;
149
149
  createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
150
150
  updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
151
151
  deleteRole: (role: Role) => Promise<void>;
@@ -172,7 +172,7 @@ export declare const useRoleStore: () => {
172
172
  permissions: Record<string, any>[];
173
173
  }[]>;
174
174
  isLoading: import("vue").Ref<boolean, boolean>;
175
- readRoles: () => Promise<void>;
175
+ readRoles: (force?: boolean) => Promise<void>;
176
176
  createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
177
177
  updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
178
178
  deleteRole: (role: Role) => Promise<void>;
@@ -199,7 +199,7 @@ export declare const useRoleStore: () => {
199
199
  permissions: Record<string, any>[];
200
200
  }[]>;
201
201
  isLoading: import("vue").Ref<boolean, boolean>;
202
- readRoles: () => Promise<void>;
202
+ readRoles: (force?: boolean) => Promise<void>;
203
203
  createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
204
204
  updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
205
205
  deleteRole: (role: Role) => Promise<void>;
@@ -207,7 +207,7 @@ export declare const useRoleStore: () => {
207
207
  $dispose(): void;
208
208
  $id: "role";
209
209
  _customProperties: Set<string>;
210
- readRoles: () => Promise<void>;
210
+ readRoles: (force?: boolean) => Promise<void>;
211
211
  createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
212
212
  updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
213
213
  deleteRole: (role: Role) => Promise<void>;
@@ -0,0 +1,44 @@
1
+ import type { ConditionBuilder } from '@feedmepos/hrm-permission/condition-builder';
2
+ import type { CoverConditionEntry, useCoverConditionOverride } from '@/composables/useCoverConditionOverride';
3
+ type __VLS_Props = {
4
+ entry: CoverConditionEntry;
5
+ builders: ConditionBuilder[];
6
+ subject: string;
7
+ timeZone: string;
8
+ coverOverride: ReturnType<typeof useCoverConditionOverride>;
9
+ inheritModeFor: (builder: ConditionBuilder) => 'inherit' | 'custom';
10
+ formValueFor: (builder: ConditionBuilder) => unknown;
11
+ hasChanges: boolean;
12
+ disable?: boolean;
13
+ fullWidth?: boolean;
14
+ /** Forwarded to ConditionBuilderForm's own title. Leave unset when the
15
+ * caller already renders this same string as its own header (e.g. a
16
+ * bottom sheet), so it isn't shown twice. */
17
+ title?: string;
18
+ };
19
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
20
+ apply: () => any;
21
+ "update-form": (payload: {
22
+ builder: ConditionBuilder;
23
+ form: unknown;
24
+ }) => any;
25
+ "update-inherit-mode": (payload: {
26
+ builder: ConditionBuilder;
27
+ mode: "inherit" | "custom";
28
+ }) => any;
29
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
30
+ onApply?: (() => any) | undefined;
31
+ "onUpdate-form"?: ((payload: {
32
+ builder: ConditionBuilder;
33
+ form: unknown;
34
+ }) => any) | undefined;
35
+ "onUpdate-inherit-mode"?: ((payload: {
36
+ builder: ConditionBuilder;
37
+ mode: "inherit" | "custom";
38
+ }) => any) | undefined;
39
+ }>, {
40
+ title: string;
41
+ disable: boolean;
42
+ fullWidth: boolean;
43
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
+ export default _default;
@@ -0,0 +1,39 @@
1
+ import type { ConditionBuilder } from '@feedmepos/hrm-permission/condition-builder';
2
+ type __VLS_Props = {
3
+ builders: ConditionBuilder[];
4
+ formValueFor: (builder: ConditionBuilder) => unknown;
5
+ hasChanges: boolean;
6
+ title?: string;
7
+ disable?: boolean;
8
+ fullWidth?: boolean;
9
+ };
10
+ declare var __VLS_1: {
11
+ builder: ConditionBuilder<unknown, unknown, Record<string, unknown>>;
12
+ };
13
+ type __VLS_Slots = {} & {
14
+ section?: (props: typeof __VLS_1) => any;
15
+ };
16
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
17
+ apply: () => any;
18
+ "update-form": (payload: {
19
+ builder: ConditionBuilder;
20
+ form: unknown;
21
+ }) => any;
22
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
+ onApply?: (() => any) | undefined;
24
+ "onUpdate-form"?: ((payload: {
25
+ builder: ConditionBuilder;
26
+ form: unknown;
27
+ }) => any) | undefined;
28
+ }>, {
29
+ title: string;
30
+ disable: boolean;
31
+ fullWidth: boolean;
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
34
+ export default _default;
35
+ type __VLS_WithSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -237,6 +237,7 @@ export declare const i18nMessages: {
237
237
  "business::hrm::employee": string;
238
238
  "business::hrm::auditLog": string;
239
239
  "business::report::createReport": string;
240
+ "business::report::accessOsDashboard": string;
240
241
  "business::report::accessOverview": string;
241
242
  "business::report::accessInsight": string;
242
243
  "business::report::accessSetting": string;
@@ -488,6 +489,7 @@ export declare const i18nMessages: {
488
489
  "business::hrm::employee": string;
489
490
  "business::hrm::auditLog": string;
490
491
  "business::report::createReport": string;
492
+ "business::report::accessOsDashboard": string;
491
493
  "business::report::accessOverview": string;
492
494
  "business::report::accessInsight": string;
493
495
  "business::report::accessSetting": string;
@@ -739,6 +741,7 @@ export declare const i18nMessages: {
739
741
  "business::hrm::employee": string;
740
742
  "business::hrm::auditLog": string;
741
743
  "business::report::createReport": string;
744
+ "business::report::accessOsDashboard": string;
742
745
  "business::report::accessOverview": string;
743
746
  "business::report::accessInsight": string;
744
747
  "business::report::accessSetting": string;
@@ -997,6 +1000,7 @@ export declare const i18nMessages: {
997
1000
  "business::hrm::employee": string;
998
1001
  "business::hrm::auditLog": string;
999
1002
  "business::report::createReport": string;
1003
+ "business::report::accessOsDashboard": string;
1000
1004
  "business::report::accessOverview": string;
1001
1005
  "business::report::accessInsight": string;
1002
1006
  "business::report::accessSetting": string;