@feedmepos/mf-hrm-portal 2.3.1 → 2.3.2-dev.10

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 (121) hide show
  1. package/dist/{ApprovalCodeList-CcvVEriB.js → ApprovalCodeList-RKU5B8SO.js} +14 -15
  2. package/dist/{AuditLogList-C61-SnWG.js → AuditLogList-DuDCMjGR.js} +796 -720
  3. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-pL2zRc67.js +459 -0
  4. package/dist/EmployeeList-nrYsS5uz.js +896 -0
  5. package/dist/FormSection.vue_vue_type_script_setup_true_lang-7S2w36aY.js +90 -0
  6. package/dist/{GrantUserList-1ErIV7b7.js → GrantUserList-BSjeC4MC.js} +15 -16
  7. package/dist/{Main-R0qyd8Ea.js → Main-CpuHaXU6.js} +5 -5
  8. package/dist/Main-DbdoVLCE.js +101 -0
  9. package/dist/{Main-CD8OS1rM.js → Main-DtmCBbTR.js} +1005 -999
  10. package/dist/MyPosProfile-CsTCfGNT.js +360 -0
  11. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +126 -0
  12. package/dist/{PermissionSetList-ig3oxdhh.js → PermissionSetList-B1c-uGZO.js} +80 -80
  13. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Toq6qrLx.js +4208 -0
  14. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-D6Z9z_Yt.js +1831 -0
  15. package/dist/RoleForm.vue_vue_type_script_setup_true_lang-TWTVo_9Y.js +547 -0
  16. package/dist/RoleList-CwaGNsFy.js +265 -0
  17. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Dg7S6nFO.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-C2ekVXdR.js} +1 -1
  18. package/dist/{ScheduleGeneralPage-QYijA95u.js → ScheduleGeneralPage-BVtXmxtp.js} +2 -2
  19. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-Bnyqna_E.js → ScheduleModal.vue_vue_type_script_setup_true_lang-DdsQ8v-5.js} +187 -186
  20. package/dist/{SchedulePage-BrBZmuMj.js → SchedulePage-3qksmT2I.js} +193 -205
  21. package/dist/{SchedulePositionPage-NCvNg8v5.js → SchedulePositionPage-DAU20KPZ.js} +3 -3
  22. package/dist/{SelectFilter-r-QOCO99.js → SelectFilter-BpzBwBmQ.js} +2 -3
  23. package/dist/TeamMemberList-Bdpm40i3.js +2087 -0
  24. package/dist/TimesheetList-CL_eJp2h.js +437 -0
  25. package/dist/{app-DKHtjxyC.js → app-DEZT4wdV.js} +7789 -3967
  26. package/dist/app.js +3 -3
  27. package/dist/{approval-code-BIpLingm.js → approval-code-BZTz5OXK.js} +4 -4
  28. package/dist/{dayjs.min-CNNMpacl.js → dayjs.min-B55I-uhI.js} +21 -21
  29. package/dist/employee-C6z5i6O4.js +172 -0
  30. package/dist/{grant-user-uZmvD_bw.js → grant-user-B2rYztyf.js} +2 -2
  31. package/dist/{iteration-DkcNkScw.js → index-Bfdseotz.js} +698 -726
  32. package/dist/iteration-CcXrOMQe.js +30 -0
  33. package/dist/{lodash-g-62RoFP.js → lodash-B8bqa6a9.js} +1 -1
  34. package/dist/member-grant-BIpKkuu8.js +54 -0
  35. package/dist/restaurant-ejyX2jEG.js +52 -0
  36. package/dist/role-C_t3DDlG.js +98 -0
  37. package/dist/rule-Ccopk8R_.js +843 -0
  38. package/dist/src/api/audit-log/index.d.ts +2 -0
  39. package/dist/src/api/employee/index.d.ts +1 -2
  40. package/dist/src/api/my-pos-profile/index.d.ts +3 -0
  41. package/dist/src/api/sso-provider/index.d.ts +5 -0
  42. package/dist/src/api/staff-invite/index.d.ts +16 -0
  43. package/dist/src/api/timesheet/index.d.ts +1 -1
  44. package/dist/src/components/CollapsibleWrapper.vue.d.ts +11 -3
  45. package/dist/src/components/form/SegmentedTabs.vue.d.ts +23 -0
  46. package/dist/src/composables/useMenuAccess.d.ts +56 -0
  47. package/dist/src/composables/useSsoProviders.d.ts +19 -0
  48. package/dist/src/composables/useStaffInviteProviders.d.ts +8 -0
  49. package/dist/src/helpers/member-grant.d.ts +36 -0
  50. package/dist/src/helpers/my-pos-profile.d.ts +37 -0
  51. package/dist/src/helpers/permission-set.d.ts +1 -102
  52. package/dist/src/helpers/pos-assignment-rows.d.ts +28 -0
  53. package/dist/src/helpers/rule.d.ts +2 -2
  54. package/dist/src/helpers/staff-invite.d.ts +54 -0
  55. package/dist/src/helpers/string.d.ts +10 -1
  56. package/dist/src/router/menu-access-guard.d.ts +17 -0
  57. package/dist/src/router/shared.d.ts +3 -1
  58. package/dist/src/stores/approval-code.d.ts +1 -1
  59. package/dist/src/stores/employee.d.ts +3 -9
  60. package/dist/src/stores/grant-user.d.ts +1 -1
  61. package/dist/src/stores/permission-assignment.d.ts +2 -2
  62. package/dist/src/stores/permission-set.d.ts +2 -2
  63. package/dist/src/stores/restaurant.d.ts +70 -10
  64. package/dist/src/stores/role.d.ts +2 -2
  65. package/dist/src/stores/team.d.ts +31 -1
  66. package/dist/src/stores/timesheet.d.ts +68 -53
  67. package/dist/src/types/my-pos-profile.d.ts +24 -0
  68. package/dist/src/types/sso-provider.d.ts +10 -0
  69. package/dist/src/types/staff-invite.d.ts +100 -0
  70. package/dist/src/types/team.d.ts +17 -1
  71. package/dist/src/types/timesheet.d.ts +3 -0
  72. package/dist/src/views/audit-log/locales/index.d.ts +40 -0
  73. package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +19 -0
  74. package/dist/src/views/hr/locales/index.d.ts +24 -4
  75. package/dist/src/views/hr/role/RoleForm.vue.d.ts +29 -2
  76. package/dist/src/views/my-pos-profile/MyPosProfile.vue.d.ts +2 -0
  77. package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +4 -0
  78. package/dist/src/views/my-pos-profile/locales/index.d.ts +236 -0
  79. package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +1 -1
  80. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1 -1
  81. package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +1 -1
  82. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +1 -1
  83. package/dist/src/views/team/components/BasePermission.vue.d.ts +11 -0
  84. package/dist/src/views/team/components/ConditionPermission.vue.d.ts +11 -0
  85. package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +51 -0
  86. package/dist/src/views/team/{member/MemberInfo.vue.d.ts → components/MemberStatusBadge.vue.d.ts} +2 -2
  87. package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +21 -0
  88. package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +44 -0
  89. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +11 -0
  90. package/dist/src/views/team/locales/index.d.ts +716 -0
  91. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +48 -3
  92. package/dist/src/views/team/member/ExistingMemberNotice.vue.d.ts +11 -0
  93. package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +35 -0
  94. package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +19 -0
  95. package/dist/src/views/team/member/TeamMemberList.vue.d.ts +1 -0
  96. package/dist/string-DZQ1uNjn.js +22 -0
  97. package/dist/style.css +1 -1
  98. package/dist/timesheet-CZHcebqS.js +76 -0
  99. package/dist/tsconfig.app.tsbuildinfo +1 -1
  100. package/dist/{useAppStore-Bp0PwbAN.js → useAppStore-DfqsbhT2.js} +1 -1
  101. package/dist/{useLoading-sgL8DRUz.js → useLoading-CQnX5WjI.js} +1 -1
  102. package/dist/useMessage-_ywT_N9X.js +17 -0
  103. package/dist/{useReportPermissions-CcIHwTRI.js → useReportPermissions-kTjftFk7.js} +13 -13
  104. package/package.json +4 -4
  105. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BZ-ZDviW.js +0 -438
  106. package/dist/EmployeeList-Cucr2mxn.js +0 -776
  107. package/dist/FormItem.vue_vue_type_script_setup_true_lang-4XV2qPxn.js +0 -45
  108. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
  109. package/dist/Main-B-F_cdM_.js +0 -96
  110. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +0 -243
  111. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ClG4YhnF.js +0 -4167
  112. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DaAx79pC.js +0 -35
  113. package/dist/RoleList-BqR_Vf8H.js +0 -740
  114. package/dist/TeamMemberList-B6ZnfKV0.js +0 -1154
  115. package/dist/TimesheetList-BvsUk6kd.js +0 -402
  116. package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-D3--3EhR.js +0 -58
  117. package/dist/employee-H2J0xRqJ.js +0 -209
  118. package/dist/restaurant-CHpkjUPy.js +0 -1880
  119. package/dist/role-CkxDtfst.js +0 -92
  120. package/dist/rule-BWvSqhBk.js +0 -783
  121. package/dist/string-VNuQNweN.js +0 -15
@@ -39,7 +39,7 @@ export declare function useScheduleShiftPopover(board: ScheduleBoardApi, demand:
39
39
  positionId: import("vue").Ref<string | undefined, string | undefined>;
40
40
  required: import("vue").Ref<number, number>;
41
41
  sen: import("vue").Ref<"" | "senior" | "junior", "" | "senior" | "junior">;
42
- empType: import("vue").Ref<"" | "full" | "part", "" | "full" | "part">;
42
+ empType: import("vue").Ref<"" | "part" | "full", "" | "part" | "full">;
43
43
  roles: import("vue").Ref<{
44
44
  position: string;
45
45
  count: number;
@@ -40,6 +40,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
40
40
  type: PropType<IFdtoPortalPermissionsWithVisibilityCondition[]>;
41
41
  default: () => never[];
42
42
  };
43
+ /** 'leading': the member sheet's layout, collapsed with the count under each category. */
44
+ layout: {
45
+ type: PropType<"trailing" | "leading">;
46
+ default: string;
47
+ };
43
48
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
44
49
  "update:model-value": (subject: {
45
50
  reason?: string | null | undefined;
@@ -67,6 +72,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
67
72
  type: PropType<IFdtoPortalPermissionsWithVisibilityCondition[]>;
68
73
  default: () => never[];
69
74
  };
75
+ /** 'leading': the member sheet's layout, collapsed with the count under each category. */
76
+ layout: {
77
+ type: PropType<"trailing" | "leading">;
78
+ default: string;
79
+ };
70
80
  }>> & Readonly<{
71
81
  "onUpdate:model-value"?: ((subject: {
72
82
  reason?: string | null | undefined;
@@ -78,6 +88,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
78
88
  actions: ("update" | "create" | "read" | "delete" | "manage")[];
79
89
  }[]) => any) | undefined;
80
90
  }>, {
91
+ layout: "trailing" | "leading";
81
92
  disable: boolean;
82
93
  additionalPermissions: IFdtoPortalPermissionsWithVisibilityCondition[];
83
94
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -26,6 +26,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
26
26
  type: StringConstructor;
27
27
  required: true;
28
28
  };
29
+ /** 'leading': the member sheet's layout, with the chosen names under the title. */
30
+ layout: {
31
+ type: PropType<"trailing" | "leading">;
32
+ default: string;
33
+ };
29
34
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
35
  "update:model-value": (...args: any[]) => void;
31
36
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -48,10 +53,16 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
48
53
  type: StringConstructor;
49
54
  required: true;
50
55
  };
56
+ /** 'leading': the member sheet's layout, with the chosen names under the title. */
57
+ layout: {
58
+ type: PropType<"trailing" | "leading">;
59
+ default: string;
60
+ };
51
61
  }>> & Readonly<{
52
62
  "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
53
63
  }>, {
54
64
  modelValue: string[] | null;
65
+ layout: "trailing" | "leading";
55
66
  disable: boolean;
56
67
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
57
68
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -0,0 +1,51 @@
1
+ import type { RawRule } from '@casl/ability';
2
+ import { type PropType } from 'vue';
3
+ import { FdoPermissionRule } from '@feedmepos/core/entity';
4
+ import { type MemberGrantPayload } from '@/helpers/member-grant';
5
+ import { type IFdtoPermissionPosUser } from '@/types/team';
6
+ /** The saved grant being edited. A new `id` resets the form. */
7
+ export interface MemberGrantInitialValue {
8
+ id: string;
9
+ isOwner?: boolean;
10
+ name: string;
11
+ permissions: RawRule[] | FdoPermissionRule[];
12
+ permissionSetIds: string[];
13
+ posUser?: IFdtoPermissionPosUser;
14
+ posUserId?: string;
15
+ }
16
+ declare function isModified(): boolean;
17
+ declare function readGrantData(): MemberGrantPayload;
18
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
19
+ initialValue: {
20
+ type: PropType<MemberGrantInitialValue | null>;
21
+ };
22
+ /** Name to fall back on when neither the saved grant nor the POS user has one. */
23
+ fallbackName: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ loading: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ }>, {
32
+ readGrantData: typeof readGrantData;
33
+ isModified: typeof isModified;
34
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
35
+ initialValue: {
36
+ type: PropType<MemberGrantInitialValue | null>;
37
+ };
38
+ /** Name to fall back on when neither the saved grant nor the POS user has one. */
39
+ fallbackName: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ loading: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ }>> & Readonly<{}>, {
48
+ loading: boolean;
49
+ fallbackName: string;
50
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
51
+ export default _default;
@@ -1,6 +1,6 @@
1
- import { type TeamDialogData } from './AddMemberForm.vue';
1
+ import type { TeamMemberStatus } from '@/types/team';
2
2
  type __VLS_Props = {
3
- data: TeamDialogData;
3
+ status: TeamMemberStatus;
4
4
  };
5
5
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
6
  export default _default;
@@ -9,6 +9,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
9
9
  type: PropType<Array<IFdtoPermissionSet>>;
10
10
  default: () => never[];
11
11
  };
12
+ /**
13
+ * 'all': every section in its own box (permission roles page).
14
+ * 'workplace': only manageable restaurant / warehouse / usable POS roles ("Where they work").
15
+ * 'portal': only the portal permission categories ("Portal access").
16
+ * The member sheet renders the two parts in separate cards over the same rules.
17
+ */
18
+ part: {
19
+ type: PropType<"all" | "workplace" | "portal">;
20
+ default: string;
21
+ };
12
22
  modelValue: {
13
23
  type: PropType<{
14
24
  reason?: string | null | undefined;
@@ -49,6 +59,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
49
59
  type: PropType<Array<IFdtoPermissionSet>>;
50
60
  default: () => never[];
51
61
  };
62
+ /**
63
+ * 'all': every section in its own box (permission roles page).
64
+ * 'workplace': only manageable restaurant / warehouse / usable POS roles ("Where they work").
65
+ * 'portal': only the portal permission categories ("Portal access").
66
+ * The member sheet renders the two parts in separate cards over the same rules.
67
+ */
68
+ part: {
69
+ type: PropType<"all" | "workplace" | "portal">;
70
+ default: string;
71
+ };
52
72
  modelValue: {
53
73
  type: PropType<{
54
74
  reason?: string | null | undefined;
@@ -82,5 +102,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
82
102
  }>, {
83
103
  disable: boolean;
84
104
  inheritPermissions: IFdtoPermissionSet[];
105
+ part: "portal" | "all" | "workplace";
85
106
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
86
107
  export default _default;
@@ -0,0 +1,44 @@
1
+ import { type PropType } from 'vue';
2
+ import type { HrmRestaurant } from '@/types/restaurant';
3
+ import type { Role } from '@/types/role';
4
+ import type { IFdtoPermissionPosUserRole } from '@/types/team';
5
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ modelValue: {
7
+ type: PropType<IFdtoPermissionPosUserRole[]>;
8
+ required: true;
9
+ };
10
+ restaurants: {
11
+ type: PropType<HrmRestaurant[]>;
12
+ required: true;
13
+ };
14
+ roles: {
15
+ type: PropType<Role[]>;
16
+ required: true;
17
+ };
18
+ isRoleUsable: {
19
+ type: PropType<(role: Role) => boolean>;
20
+ required: true;
21
+ };
22
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
23
+ "update:modelValue": (roles: IFdtoPermissionPosUserRole[]) => any;
24
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
+ modelValue: {
26
+ type: PropType<IFdtoPermissionPosUserRole[]>;
27
+ required: true;
28
+ };
29
+ restaurants: {
30
+ type: PropType<HrmRestaurant[]>;
31
+ required: true;
32
+ };
33
+ roles: {
34
+ type: PropType<Role[]>;
35
+ required: true;
36
+ };
37
+ isRoleUsable: {
38
+ type: PropType<(role: Role) => boolean>;
39
+ required: true;
40
+ };
41
+ }>> & Readonly<{
42
+ "onUpdate:modelValue"?: ((roles: IFdtoPermissionPosUserRole[]) => any) | undefined;
43
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
44
+ export default _default;
@@ -24,6 +24,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
24
24
  type: BooleanConstructor;
25
25
  default: boolean;
26
26
  };
27
+ /** 'leading': the member sheet's layout, with the chosen roles under the title. */
28
+ layout: {
29
+ type: PropType<"trailing" | "leading">;
30
+ default: string;
31
+ };
27
32
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
28
33
  "update:model-value": (restaurants: string[] | null) => any;
29
34
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -43,11 +48,17 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
43
48
  type: BooleanConstructor;
44
49
  default: boolean;
45
50
  };
51
+ /** 'leading': the member sheet's layout, with the chosen roles under the title. */
52
+ layout: {
53
+ type: PropType<"trailing" | "leading">;
54
+ default: string;
55
+ };
46
56
  }>> & Readonly<{
47
57
  "onUpdate:model-value"?: ((restaurants: string[] | null) => any) | undefined;
48
58
  }>, {
49
59
  modelValue: string[] | null;
50
60
  restaurantIds: string[] | null;
61
+ layout: "trailing" | "leading";
51
62
  disable: boolean;
52
63
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
53
64
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;