@feedmepos/mf-hrm-portal 2.3.2-dev.2 → 2.3.2-dev.20

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 (82) hide show
  1. package/dist/{ApprovalCodeList-sHnINTik.js → ApprovalCodeList-eCTF8Rwt.js} +7 -7
  2. package/dist/AuditLogList-YzR5ysmN.js +2021 -0
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BbsPesWY.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang--660w-zJ.js} +2 -2
  4. package/dist/{EmployeeList-D4oy5hXz.js → EmployeeList-C2ctTGCo.js} +8 -8
  5. package/dist/{FormSection.vue_vue_type_script_setup_true_lang-Cl053Tg1.js → FormSection.vue_vue_type_script_setup_true_lang-DWvJM14K.js} +1 -1
  6. package/dist/{GrantUserList-LWpqhl-5.js → GrantUserList-BoN1MUkB.js} +8 -8
  7. package/dist/{Main-PBJjfzBg.js → Main-BLmTdeYO.js} +5 -5
  8. package/dist/{Main-BWKb-QIE.js → Main-CIldvI5X.js} +2274 -2280
  9. package/dist/{Main-CVGiOYpC.js → Main-Di-083Pw.js} +29 -29
  10. package/dist/MyPosProfile-CctvT3RF.js +360 -0
  11. package/dist/{PermissionSetList-D2qZVlF4.js → PermissionSetList-BzvVAzwG.js} +126 -126
  12. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JgrJvMly.js +4212 -0
  13. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DRGTxOMW.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BdjAh48A.js} +414 -448
  14. package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-DFDTw0lj.js → RoleForm.vue_vue_type_script_setup_true_lang-WCNUeA3G.js} +74 -74
  15. package/dist/{RoleList-DG0crFzW.js → RoleList-wPupuMBG.js} +7 -7
  16. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Cs0rhCa3.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DcBIt4DL.js} +1 -1
  17. package/dist/{ScheduleGeneralPage-C4J6jYtG.js → ScheduleGeneralPage-NCKqPyt5.js} +2 -2
  18. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-3UqO6uPu.js → ScheduleModal.vue_vue_type_script_setup_true_lang-CG5Xxj3Q.js} +4 -4
  19. package/dist/{SchedulePage-ICzggri0.js → SchedulePage-BZ5bKLly.js} +197 -209
  20. package/dist/{SchedulePositionPage-BshUCd_C.js → SchedulePositionPage-CwHd3rf2.js} +3 -3
  21. package/dist/{SelectFilter-D9T0nFvG.js → SelectFilter-DLZNvKwI.js} +2 -3
  22. package/dist/TeamMemberList-D8uWsS0J.js +2082 -0
  23. package/dist/TimesheetList-K6doo0BX.js +408 -0
  24. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BLqgALLe.js → TimesheetList.vue_vue_type_style_index_0_scoped_ffd7f807_lang-DFoIix3D.js} +7 -7
  25. package/dist/{app-n6d4AmtP.js → app-BGzac7xv.js} +5618 -4632
  26. package/dist/app.js +1 -1
  27. package/dist/{approval-code-1j1OoXt1.js → approval-code-BBNbWSqR.js} +4 -4
  28. package/dist/{dayjs.min-DdNivv4b.js → dayjs.min-ey-9Jb-9.js} +20 -20
  29. package/dist/employee-D_COMGXq.js +237 -0
  30. package/dist/{grant-user-BmTyexk3.js → grant-user-CTTTpewT.js} +2 -2
  31. package/dist/{iteration-y_jodvfN.js → index-CTqdA7gA.js} +573 -558
  32. package/dist/{lodash-B2eWEGH4.js → lodash-DNSDZgnL.js} +1 -1
  33. package/dist/member-grant-5DnD17dB.js +54 -0
  34. package/dist/restaurant-qoOY3iMJ.js +49 -0
  35. package/dist/role-BEbd5Qsi.js +91 -0
  36. package/dist/rule-BLG5i_xT.js +845 -0
  37. package/dist/src/api/audit-log/index.d.ts +2 -0
  38. package/dist/src/api/my-pos-profile/index.d.ts +1 -3
  39. package/dist/src/composables/useTenant.d.ts +11 -0
  40. package/dist/src/helpers/employee-merge.d.ts +33 -0
  41. package/dist/src/helpers/iteration.d.ts +9 -2
  42. package/dist/src/helpers/permission-set.d.ts +1 -102
  43. package/dist/src/helpers/restaurant-lookup.d.ts +19 -0
  44. package/dist/src/helpers/role-merge.d.ts +11 -0
  45. package/dist/src/helpers/rule.d.ts +2 -2
  46. package/dist/src/router/courtGuard.d.ts +4 -0
  47. package/dist/src/stores/approval-code.d.ts +1 -1
  48. package/dist/src/stores/employee.d.ts +2 -2
  49. package/dist/src/stores/grant-user.d.ts +1 -1
  50. package/dist/src/stores/permission-assignment.d.ts +2 -2
  51. package/dist/src/stores/permission-set.d.ts +2 -2
  52. package/dist/src/stores/restaurant.d.ts +2 -2
  53. package/dist/src/stores/role.d.ts +2 -2
  54. package/dist/src/stores/team.d.ts +2 -2
  55. package/dist/src/stores/timesheet.d.ts +2 -2
  56. package/dist/src/types/my-pos-profile.d.ts +2 -3
  57. package/dist/src/views/audit-log/constants.d.ts +1 -1
  58. package/dist/src/views/audit-log/locales/index.d.ts +56 -0
  59. package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +19 -0
  60. package/dist/src/views/hr/locales/index.d.ts +4 -4
  61. package/dist/src/views/hr/timesheet/timesheet-view.d.ts +29 -0
  62. package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +1 -1
  63. package/dist/src/views/my-pos-profile/locales/index.d.ts +40 -4
  64. package/dist/style.css +1 -1
  65. package/dist/tsconfig.app.tsbuildinfo +1 -1
  66. package/dist/{useAppStore-BPARQyvJ.js → useAppStore-BwUs5XGY.js} +1 -1
  67. package/dist/{useLoading-iPESFb6R.js → useLoading-DmAqc_Gx.js} +1 -1
  68. package/dist/useMessage-_ywT_N9X.js +17 -0
  69. package/dist/useReportPermissions-PEzIBX1U.js +80 -0
  70. package/dist/useSsoProviders-CwLbvOdH.js +41 -0
  71. package/package.json +5 -5
  72. package/dist/AuditLogList-C9C2emU9.js +0 -1950
  73. package/dist/MyPosProfile-BQCBFMFw.js +0 -301
  74. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ZSREAS1r.js +0 -4243
  75. package/dist/TeamMemberList-C970Iqlj.js +0 -2086
  76. package/dist/TimesheetList-nxhr0EWj.js +0 -402
  77. package/dist/employee-BlfleiCU.js +0 -210
  78. package/dist/member-grant-CzZUdO_s.js +0 -55
  79. package/dist/restaurant-Dl6yx37M.js +0 -51
  80. package/dist/role-DfZi7Ssk.js +0 -93
  81. package/dist/rule-ChmhcGgA.js +0 -788
  82. package/dist/useReportPermissions-By-BoJZb.js +0 -82
@@ -0,0 +1,29 @@
1
+ import type { Employee } from '@/types/employee';
2
+ import type { HrmRestaurant } from '@/types/restaurant';
3
+ import type { Timesheet } from '@/types/timesheet';
4
+ /** A list-view row: the timesheet with its outlet code and the employee's code. */
5
+ export type TimesheetRow = Timesheet & {
6
+ restaurantCode?: string;
7
+ user: Timesheet['user'] & {
8
+ code?: string;
9
+ };
10
+ };
11
+ /** A user-view row: one employee name with their timesheets and the total time. */
12
+ export interface TimesheetGroup {
13
+ key: string;
14
+ user: string;
15
+ code: string | undefined;
16
+ timesheets: TimesheetRow[];
17
+ total: string;
18
+ }
19
+ /**
20
+ * Timesheets in the selected outlets (a falsy selection means all) with the outlet code and
21
+ * the employee code attached. Both lookups are built once per call instead of scanning every
22
+ * outlet and every employee per timesheet.
23
+ */
24
+ export declare function attachTimesheetCodes(timesheets: readonly Timesheet[], restaurants: readonly HrmRestaurant[], employees: readonly Employee[], selectedRestaurantIds: readonly string[] | null | undefined): TimesheetRow[];
25
+ /**
26
+ * Rows grouped by employee name and sorted by it. A group's code is its first timesheet's
27
+ * employee code (or the row's own code when that employee is gone).
28
+ */
29
+ export declare function groupTimesheetsByUser(rows: readonly TimesheetRow[], employees: readonly Employee[]): TimesheetGroup[];
@@ -1,4 +1,4 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
- open: (code: string) => void;
2
+ open: (code: string, as?: "changed" | "generated") => void;
3
3
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
4
  export default _default;
@@ -20,7 +20,9 @@ export declare const i18nMessages: {
20
20
  show: string;
21
21
  hide: string;
22
22
  change: string;
23
- revealFailed: string;
23
+ empty: string;
24
+ emptyHint: string;
25
+ generate: string;
24
26
  };
25
27
  change: {
26
28
  title: string;
@@ -30,11 +32,18 @@ export declare const i18nMessages: {
30
32
  inProgress: string;
31
33
  incomplete: string;
32
34
  };
35
+ generate: {
36
+ failed: string;
37
+ };
33
38
  changed: {
34
39
  title: string;
35
40
  message: string;
36
41
  done: string;
37
42
  };
43
+ generated: {
44
+ title: string;
45
+ message: string;
46
+ };
38
47
  manageAccount: {
39
48
  message: string;
40
49
  link: string;
@@ -69,7 +78,9 @@ export declare const i18nMessages: {
69
78
  show: string;
70
79
  hide: string;
71
80
  change: string;
72
- revealFailed: string;
81
+ empty: string;
82
+ emptyHint: string;
83
+ generate: string;
73
84
  };
74
85
  change: {
75
86
  title: string;
@@ -79,11 +90,18 @@ export declare const i18nMessages: {
79
90
  inProgress: string;
80
91
  incomplete: string;
81
92
  };
93
+ generate: {
94
+ failed: string;
95
+ };
82
96
  changed: {
83
97
  title: string;
84
98
  message: string;
85
99
  done: string;
86
100
  };
101
+ generated: {
102
+ title: string;
103
+ message: string;
104
+ };
87
105
  manageAccount: {
88
106
  message: string;
89
107
  link: string;
@@ -118,7 +136,9 @@ export declare const i18nMessages: {
118
136
  show: string;
119
137
  hide: string;
120
138
  change: string;
121
- revealFailed: string;
139
+ empty: string;
140
+ emptyHint: string;
141
+ generate: string;
122
142
  };
123
143
  change: {
124
144
  title: string;
@@ -128,11 +148,18 @@ export declare const i18nMessages: {
128
148
  inProgress: string;
129
149
  incomplete: string;
130
150
  };
151
+ generate: {
152
+ failed: string;
153
+ };
131
154
  changed: {
132
155
  title: string;
133
156
  message: string;
134
157
  done: string;
135
158
  };
159
+ generated: {
160
+ title: string;
161
+ message: string;
162
+ };
136
163
  manageAccount: {
137
164
  message: string;
138
165
  link: string;
@@ -167,7 +194,9 @@ export declare const i18nMessages: {
167
194
  show: string;
168
195
  hide: string;
169
196
  change: string;
170
- revealFailed: string;
197
+ empty: string;
198
+ emptyHint: string;
199
+ generate: string;
171
200
  };
172
201
  change: {
173
202
  title: string;
@@ -177,11 +206,18 @@ export declare const i18nMessages: {
177
206
  inProgress: string;
178
207
  incomplete: string;
179
208
  };
209
+ generate: {
210
+ failed: string;
211
+ };
180
212
  changed: {
181
213
  title: string;
182
214
  message: string;
183
215
  done: string;
184
216
  };
217
+ generated: {
218
+ title: string;
219
+ message: string;
220
+ };
185
221
  manageAccount: {
186
222
  message: string;
187
223
  link: string;