@feedmepos/mf-hrm-portal 2.3.0-dev.5 → 2.3.0-dev.6

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 (37) hide show
  1. package/dist/{ApprovalCodeList-DIqLkR-n.js → ApprovalCodeList-Cf1l-ult.js} +2 -2
  2. package/dist/AuditLogList-D1sMrERs.js +1951 -0
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DtIAcKaZ.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BdbfGDI_.js} +2 -2
  4. package/dist/{EmployeeList-BcommHHe.js → EmployeeList-sc773luN.js} +4 -4
  5. package/dist/{GrantUserList-zYXWPBy8.js → GrantUserList-2XTroUF8.js} +3 -3
  6. package/dist/{Main-D8Uz1Mlf.js → Main-BIo4YcWF.js} +2 -2
  7. package/dist/{Main-BbLYXl-C.js → Main-BNCfG0Sg.js} +5 -5
  8. package/dist/{Main-D1Rc3l1L.js → Main-CCGYrZsD.js} +9 -9
  9. package/dist/{PermissionSetList-DB27fd5Q.js → PermissionSetList-7Ut1F99N.js} +5 -5
  10. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B1l2xUpn.js +4167 -0
  11. package/dist/{RoleList-DqH-J2Di.js → RoleList-DMKdy74J.js} +7 -7
  12. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Dk5KTJmM.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CI94gSkp.js} +1 -1
  13. package/dist/{ScheduleGeneralPage-C6fHvARq.js → ScheduleGeneralPage-DGdnq7oV.js} +4 -4
  14. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-B-rR81nv.js → ScheduleModal.vue_vue_type_script_setup_true_lang-Cq-zMPW_.js} +1 -1
  15. package/dist/{SchedulePage-CqpoSfUn.js → SchedulePage-B7M5fPIA.js} +6 -6
  16. package/dist/{SchedulePositionPage-NMdwzGfm.js → SchedulePositionPage-DeorKiCc.js} +3 -3
  17. package/dist/{TeamMemberList-CX0qHVRT.js → TeamMemberList-CQswHBEk.js} +6 -6
  18. package/dist/{TimesheetList-DUK2sUEN.js → TimesheetList-lWsJuha_.js} +5 -5
  19. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-m8Ml-b47.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CLgmz6LT.js} +2 -2
  20. package/dist/{app-CLTLqZhG.js → app-MTWSOw4U.js} +452 -216
  21. package/dist/app.js +1 -1
  22. package/dist/{dayjs.min-BFtQINpX.js → dayjs.min-9rM_szda.js} +1 -1
  23. package/dist/{employee-CWjZhmcu.js → employee-BvtW9sI6.js} +3 -3
  24. package/dist/{iteration-NQ4DY9De.js → iteration-Byna7hj1.js} +1 -1
  25. package/dist/{lodash-OAOy_WpD.js → lodash-CnwRhwQm.js} +1 -1
  26. package/dist/{role-DSSFv8cl.js → role-N_-ZZfhy.js} +1 -1
  27. package/dist/{rule-DY7yg9_a.js → rule-B9-ryqfq.js} +2 -2
  28. package/dist/src/api/audit-log/index.d.ts +4 -0
  29. package/dist/src/views/audit-log/constants.d.ts +9 -30
  30. package/dist/src/views/audit-log/locales/index.d.ts +236 -0
  31. package/dist/src/views/audit-log/pos-row.d.ts +27 -0
  32. package/dist/style.css +1 -1
  33. package/dist/tsconfig.app.tsbuildinfo +1 -1
  34. package/dist/{useReportPermissions-BRs-yhSQ.js → useReportPermissions-BSOsfpnM.js} +3 -3
  35. package/package.json +1 -1
  36. package/dist/AuditLogList-DOrq5WAM.js +0 -1779
  37. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DtVJW54V.js +0 -4167
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as e, i as r, r as o } from "./app-CLTLqZhG.js";
1
+ import { h as e, i as r, r as o } from "./app-MTWSOw4U.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g as Q, f as K } from "./app-CLTLqZhG.js";
1
+ import { g as Q, f as K } from "./app-MTWSOw4U.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, k) {
@@ -1,10 +1,10 @@
1
- import { d as g } from "./dayjs.min-BFtQINpX.js";
1
+ import { d as g } from "./dayjs.min-9rM_szda.js";
2
2
  import { defineStore as $, storeToRefs as x } from "pinia";
3
3
  import { ref as m } from "vue";
4
- import { s as E } from "./iteration-NQ4DY9De.js";
4
+ import { s as E } from "./iteration-Byna7hj1.js";
5
5
  import { b as l, g as f, u as I } from "./restaurant-D7PEQjPY.js";
6
6
  import { i as v } from "./utils-BZkjJbju.js";
7
- import { u as P } from "./role-DSSFv8cl.js";
7
+ import { u as P } from "./role-N_-ZZfhy.js";
8
8
  const o = {
9
9
  async readEmployees() {
10
10
  return f(await l().get("/pos-users"));
@@ -1,4 +1,4 @@
1
- import { f as B } from "./app-CLTLqZhG.js";
1
+ import { f as B } from "./app-MTWSOw4U.js";
2
2
  var ma = {}, Zt = {}, l = {}, ji = {}, Ei = {}, Ii = {}, Dn = {};
3
3
  (function(e) {
4
4
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getParsedType = e.ZodParsedType = e.util = void 0;
@@ -1,4 +1,4 @@
1
- import { f as jt } from "./app-CLTLqZhG.js";
1
+ import { f as jt } from "./app-MTWSOw4U.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -1,7 +1,7 @@
1
1
  import { defineStore as x, storeToRefs as b } from "pinia";
2
2
  import { ref as w } from "vue";
3
3
  import { useCoreStore as B } from "@feedmepos/mf-common";
4
- import { s as v } from "./iteration-NQ4DY9De.js";
4
+ import { s as v } from "./iteration-Byna7hj1.js";
5
5
  import { g as f, b as p, u as I } from "./restaurant-D7PEQjPY.js";
6
6
  const R = {
7
7
  async readRoles() {
@@ -1,5 +1,5 @@
1
- import { s as W, c as q, e as y } from "./iteration-NQ4DY9De.js";
2
- import { e as O, b as V, c as _, v as F, n as h, O as ee, D as M } from "./app-CLTLqZhG.js";
1
+ import { s as W, c as q, e as y } from "./iteration-Byna7hj1.js";
2
+ import { e as O, b as V, c as _, v as F, n as h, O as ee, D as M } from "./app-MTWSOw4U.js";
3
3
  import { s as se } from "./utils-BZkjJbju.js";
4
4
  import { g, b as v, q as x, u as te } from "./restaurant-D7PEQjPY.js";
5
5
  import { defineStore as z, storeToRefs as K } from "pinia";
@@ -12,6 +12,8 @@ declare const AuditLogAPI: {
12
12
  search?: string;
13
13
  searchUserIds?: string[];
14
14
  searchSubjects?: string[];
15
+ sources?: string[];
16
+ restaurantIds?: string[];
15
17
  }): Promise<number>;
16
18
  read(params?: {
17
19
  limit?: number;
@@ -27,6 +29,8 @@ declare const AuditLogAPI: {
27
29
  search?: string;
28
30
  searchUserIds?: string[];
29
31
  searchSubjects?: string[];
32
+ sources?: string[];
33
+ restaurantIds?: string[];
30
34
  }): Promise<AuditLogEntry[]>;
31
35
  /**
32
36
  * FeedMe-admin options for the User filter. `actors` is the named admin list (internal
@@ -1,30 +1,9 @@
1
- export declare const AUDIT_LOG_MODULE_TABS: readonly [{
2
- readonly key: "all";
3
- readonly label: "All";
4
- readonly subjectPrefixes: string[];
5
- }, {
6
- readonly key: "inventory";
7
- readonly label: "Inventory";
8
- readonly subjectPrefixes: readonly ["business::inventory", "inventory"];
9
- }, {
10
- readonly key: "report";
11
- readonly label: "Report";
12
- readonly subjectPrefixes: readonly ["business::report", "report"];
13
- }, {
14
- readonly key: "hrm";
15
- readonly label: "HRM";
16
- readonly subjectPrefixes: readonly ["business::hrm", "hrm"];
17
- }, {
18
- readonly key: "payment";
19
- readonly label: "Payment";
20
- readonly subjectPrefixes: readonly ["business::payment", "payment"];
21
- }, {
22
- readonly key: "menu";
23
- readonly label: "Menu";
24
- readonly subjectPrefixes: readonly ["business::menu", "menu"];
25
- }, {
26
- readonly key: "crm";
27
- readonly label: "CRM";
28
- readonly subjectPrefixes: readonly ["business::crm", "crm"];
29
- }];
30
- export type AuditLogModuleTab = (typeof AUDIT_LOG_MODULE_TABS)[number];
1
+ export interface AuditLogModuleTab {
2
+ key: 'all' | 'inventory' | 'report' | 'hrm' | 'payment' | 'menu' | 'crm' | 'pos';
3
+ label: string;
4
+ /** Portal modules filter by subject namespace. */
5
+ subjectPrefixes: string[];
6
+ /** Row origins the tab selects; the POS tab filters by origin instead of subject. */
7
+ sources?: string[];
8
+ }
9
+ export declare const AUDIT_LOG_MODULE_TABS: readonly AuditLogModuleTab[];
@@ -36,6 +36,8 @@ export declare const i18nMessages: {
36
36
  selected_status_prefix: string;
37
37
  outcome_placeholder: string;
38
38
  selected_outcome_prefix: string;
39
+ restaurant_placeholder: string;
40
+ selected_restaurant_prefix: string;
39
41
  };
40
42
  action: {
41
43
  manage: string;
@@ -52,6 +54,7 @@ export declare const i18nMessages: {
52
54
  payment: string;
53
55
  menu: string;
54
56
  crm: string;
57
+ pos: string;
55
58
  other: string;
56
59
  more: string;
57
60
  };
@@ -62,6 +65,28 @@ export declare const i18nMessages: {
62
65
  action: string;
63
66
  operation: string;
64
67
  outcome: string;
68
+ restaurant: string;
69
+ device: string;
70
+ approver: string;
71
+ };
72
+ pos: {
73
+ unverified: string;
74
+ approverInline: string;
75
+ viaCode: string;
76
+ details: {
77
+ eventKey: string;
78
+ appVersion: string;
79
+ clock: string;
80
+ clamped: string;
81
+ params: string;
82
+ };
83
+ device: {
84
+ posV7: string;
85
+ };
86
+ mode: {
87
+ main: string;
88
+ sub: string;
89
+ };
65
90
  };
66
91
  outcome: {
67
92
  success: string;
@@ -189,6 +214,40 @@ export declare const i18nMessages: {
189
214
  "approval-code": {
190
215
  create: string;
191
216
  revoke: string;
217
+ use: string;
218
+ };
219
+ counter: {
220
+ open: string;
221
+ close: string;
222
+ };
223
+ counterRecord: {
224
+ manage: string;
225
+ };
226
+ order: {
227
+ void: string;
228
+ discount: string;
229
+ urgent: string;
230
+ resend: string;
231
+ changePrice: string;
232
+ changePaymentType: string;
233
+ payment: string;
234
+ claimDeposit: string;
235
+ waiveServiceCharge: string;
236
+ update: string;
237
+ };
238
+ refund: {
239
+ create: string;
240
+ manage: string;
241
+ };
242
+ drawer: {
243
+ open: string;
244
+ manage: string;
245
+ };
246
+ paymentType: {
247
+ manage: string;
248
+ };
249
+ report: {
250
+ read: string;
192
251
  };
193
252
  "portal-user": {
194
253
  list: string;
@@ -261,6 +320,8 @@ export declare const i18nMessages: {
261
320
  selected_status_prefix: string;
262
321
  outcome_placeholder: string;
263
322
  selected_outcome_prefix: string;
323
+ restaurant_placeholder: string;
324
+ selected_restaurant_prefix: string;
264
325
  };
265
326
  action: {
266
327
  manage: string;
@@ -277,6 +338,7 @@ export declare const i18nMessages: {
277
338
  payment: string;
278
339
  menu: string;
279
340
  crm: string;
341
+ pos: string;
280
342
  other: string;
281
343
  more: string;
282
344
  };
@@ -287,6 +349,28 @@ export declare const i18nMessages: {
287
349
  action: string;
288
350
  operation: string;
289
351
  outcome: string;
352
+ restaurant: string;
353
+ device: string;
354
+ approver: string;
355
+ };
356
+ pos: {
357
+ unverified: string;
358
+ approverInline: string;
359
+ viaCode: string;
360
+ details: {
361
+ eventKey: string;
362
+ appVersion: string;
363
+ clock: string;
364
+ clamped: string;
365
+ params: string;
366
+ };
367
+ device: {
368
+ posV7: string;
369
+ };
370
+ mode: {
371
+ main: string;
372
+ sub: string;
373
+ };
290
374
  };
291
375
  outcome: {
292
376
  success: string;
@@ -415,6 +499,40 @@ export declare const i18nMessages: {
415
499
  "approval-code": {
416
500
  create: string;
417
501
  revoke: string;
502
+ use: string;
503
+ };
504
+ counter: {
505
+ open: string;
506
+ close: string;
507
+ };
508
+ counterRecord: {
509
+ manage: string;
510
+ };
511
+ order: {
512
+ void: string;
513
+ discount: string;
514
+ urgent: string;
515
+ resend: string;
516
+ changePrice: string;
517
+ changePaymentType: string;
518
+ payment: string;
519
+ claimDeposit: string;
520
+ waiveServiceCharge: string;
521
+ update: string;
522
+ };
523
+ refund: {
524
+ create: string;
525
+ manage: string;
526
+ };
527
+ drawer: {
528
+ open: string;
529
+ manage: string;
530
+ };
531
+ paymentType: {
532
+ manage: string;
533
+ };
534
+ report: {
535
+ read: string;
418
536
  };
419
537
  "portal-user": {
420
538
  list: string;
@@ -487,6 +605,8 @@ export declare const i18nMessages: {
487
605
  selected_status_prefix: string;
488
606
  outcome_placeholder: string;
489
607
  selected_outcome_prefix: string;
608
+ restaurant_placeholder: string;
609
+ selected_restaurant_prefix: string;
490
610
  };
491
611
  action: {
492
612
  manage: string;
@@ -503,6 +623,7 @@ export declare const i18nMessages: {
503
623
  payment: string;
504
624
  menu: string;
505
625
  crm: string;
626
+ pos: string;
506
627
  other: string;
507
628
  more: string;
508
629
  };
@@ -513,6 +634,28 @@ export declare const i18nMessages: {
513
634
  action: string;
514
635
  operation: string;
515
636
  outcome: string;
637
+ restaurant: string;
638
+ device: string;
639
+ approver: string;
640
+ };
641
+ pos: {
642
+ unverified: string;
643
+ approverInline: string;
644
+ viaCode: string;
645
+ details: {
646
+ eventKey: string;
647
+ appVersion: string;
648
+ clock: string;
649
+ clamped: string;
650
+ params: string;
651
+ };
652
+ device: {
653
+ posV7: string;
654
+ };
655
+ mode: {
656
+ main: string;
657
+ sub: string;
658
+ };
516
659
  };
517
660
  outcome: {
518
661
  success: string;
@@ -641,6 +784,40 @@ export declare const i18nMessages: {
641
784
  "approval-code": {
642
785
  create: string;
643
786
  revoke: string;
787
+ use: string;
788
+ };
789
+ counter: {
790
+ open: string;
791
+ close: string;
792
+ };
793
+ counterRecord: {
794
+ manage: string;
795
+ };
796
+ order: {
797
+ void: string;
798
+ discount: string;
799
+ urgent: string;
800
+ resend: string;
801
+ changePrice: string;
802
+ changePaymentType: string;
803
+ payment: string;
804
+ claimDeposit: string;
805
+ waiveServiceCharge: string;
806
+ update: string;
807
+ };
808
+ refund: {
809
+ create: string;
810
+ manage: string;
811
+ };
812
+ drawer: {
813
+ open: string;
814
+ manage: string;
815
+ };
816
+ paymentType: {
817
+ manage: string;
818
+ };
819
+ report: {
820
+ read: string;
644
821
  };
645
822
  "portal-user": {
646
823
  list: string;
@@ -713,6 +890,8 @@ export declare const i18nMessages: {
713
890
  selected_status_prefix: string;
714
891
  outcome_placeholder: string;
715
892
  selected_outcome_prefix: string;
893
+ restaurant_placeholder: string;
894
+ selected_restaurant_prefix: string;
716
895
  };
717
896
  action: {
718
897
  manage: string;
@@ -729,6 +908,7 @@ export declare const i18nMessages: {
729
908
  payment: string;
730
909
  menu: string;
731
910
  crm: string;
911
+ pos: string;
732
912
  other: string;
733
913
  more: string;
734
914
  };
@@ -739,6 +919,28 @@ export declare const i18nMessages: {
739
919
  action: string;
740
920
  operation: string;
741
921
  outcome: string;
922
+ restaurant: string;
923
+ device: string;
924
+ approver: string;
925
+ };
926
+ pos: {
927
+ unverified: string;
928
+ approverInline: string;
929
+ viaCode: string;
930
+ details: {
931
+ eventKey: string;
932
+ appVersion: string;
933
+ clock: string;
934
+ clamped: string;
935
+ params: string;
936
+ };
937
+ device: {
938
+ posV7: string;
939
+ };
940
+ mode: {
941
+ main: string;
942
+ sub: string;
943
+ };
742
944
  };
743
945
  outcome: {
744
946
  success: string;
@@ -867,6 +1069,40 @@ export declare const i18nMessages: {
867
1069
  "approval-code": {
868
1070
  create: string;
869
1071
  revoke: string;
1072
+ use: string;
1073
+ };
1074
+ counter: {
1075
+ open: string;
1076
+ close: string;
1077
+ };
1078
+ counterRecord: {
1079
+ manage: string;
1080
+ };
1081
+ order: {
1082
+ void: string;
1083
+ discount: string;
1084
+ urgent: string;
1085
+ resend: string;
1086
+ changePrice: string;
1087
+ changePaymentType: string;
1088
+ payment: string;
1089
+ claimDeposit: string;
1090
+ waiveServiceCharge: string;
1091
+ update: string;
1092
+ };
1093
+ refund: {
1094
+ create: string;
1095
+ manage: string;
1096
+ };
1097
+ drawer: {
1098
+ open: string;
1099
+ manage: string;
1100
+ };
1101
+ paymentType: {
1102
+ manage: string;
1103
+ };
1104
+ report: {
1105
+ read: string;
870
1106
  };
871
1107
  "portal-user": {
872
1108
  list: string;
@@ -0,0 +1,27 @@
1
+ import type { AuditLogEntry } from '@/types/audit-log';
2
+ export declare const POS_SOURCES: readonly ["pos-v8", "hrm-validate"];
3
+ type T = (key: string, params?: Record<string, unknown>) => string;
4
+ export declare function isPosEntry(entry: AuditLogEntry): boolean;
5
+ export declare function posDeviceLabel(entry: AuditLogEntry, t: T): string;
6
+ /** The executor: actorName/userId, marked when the writer could not find the id among the restaurant's employees. */
7
+ export declare function posActorLabel(entry: AuditLogEntry, t: T): string;
8
+ /** The passcode holder; '-' on session checks, which have no approver. For an
9
+ * approval-code row the approver is the portal user who issued the code and
10
+ * may not have been present, so the label says so. Any hrm-validate row with no
11
+ * approver name/id — a legacy code without a grantor, regardless of whether
12
+ * approverKnown is false or simply unset — still reads as an approval-code use,
13
+ * so the viaCode marker renders alone instead of falling through to '-'. */
14
+ export declare function posApproverLabel(entry: AuditLogEntry, t: T): string;
15
+ /** " · approver: Mei" for portal tabs, which have no Approver column; empty when the row has no approver. */
16
+ export declare function posApproverSuffix(entry: AuditLogEntry, t: T): string;
17
+ export interface UserFilter {
18
+ userIds: string[];
19
+ feedmeAdminActors: boolean;
20
+ }
21
+ /**
22
+ * Splits the User filter selection into real user ids and the "FeedMe Admin"
23
+ * catch-all flag. The POS tab hides the User control, so it never filters by
24
+ * user: a selection left over from another tab must not apply there unseen.
25
+ */
26
+ export declare function resolveUserFilter(selected: readonly string[] | undefined, isPosTab: boolean, feedmeAdminValue: string): UserFilter;
27
+ export {};