@feedmepos/mf-hrm-portal 2.2.1-dev.4 → 2.2.1

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 (51) hide show
  1. package/dist/{ApprovalCodeList-CJpbX8H_.js → ApprovalCodeList-BWQBJGCZ.js} +5 -5
  2. package/dist/AuditLogList-CymSyHag.js +1149 -0
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BWNAtv1G.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BDOdtKwI.js} +2 -2
  4. package/dist/{EmployeeList-Gh8aU7BY.js → EmployeeList-BZ6fxRCN.js} +71 -71
  5. package/dist/{GrantUserList-vpaCAv1u.js → GrantUserList-CaVpRVzA.js} +6 -6
  6. package/dist/{Main-38YNSkW6.js → Main-CEKiyT80.js} +11 -11
  7. package/dist/{Main-GwRBJ3al.js → Main-CQpEciKH.js} +5 -5
  8. package/dist/{Main-CXjbH7aE.js → Main-DrfRLxA5.js} +8 -8
  9. package/dist/{PermissionSetList-CuzFQm7J.js → PermissionSetList-BgOSJy4y.js} +78 -77
  10. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B2SX3ZoV.js +4174 -0
  11. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-Z-DH7ouY.js} +1 -1
  12. package/dist/RoleList-C2PrTc1f.js +739 -0
  13. package/dist/{TeamMemberList-ChrUNLsA.js → TeamMemberList-BXk_pXjc.js} +312 -313
  14. package/dist/{TimesheetList-Dqx3RZ4c.js → TimesheetList-DgaZmgug.js} +7 -7
  15. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-rtbLyLSE.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-B_Lc8Xmy.js} +3 -3
  16. package/dist/{app-CPByRtdD.js → app-DzagkC6l.js} +513 -809
  17. package/dist/app.js +1 -1
  18. package/dist/{approval-code-jIjkeVEb.js → approval-code-BRClD2HN.js} +1 -1
  19. package/dist/{dayjs.min-DeAdykwc.js → dayjs.min-CqJsImsm.js} +1 -1
  20. package/dist/{employee-dFHap_s3.js → employee-CXBuv0Bx.js} +4 -4
  21. package/dist/{grant-user-SNiDV22U.js → grant-user-Dhi3ilC_.js} +1 -1
  22. package/dist/{iteration-B_EcCwqv.js → iteration-BCfwR_XH.js} +1 -1
  23. package/dist/{lodash-C5UxxqU2.js → lodash-BJl3phr9.js} +1 -1
  24. package/dist/{restaurant-BTpBmfBV.js → restaurant-DiYb0pCm.js} +2 -2
  25. package/dist/{role-8ZQb8Cap.js → role-BfCNRnuy.js} +2 -2
  26. package/dist/{rule-DJZO_Kev.js → rule-B3Eg-J8O.js} +279 -259
  27. package/dist/src/api/audit-log/index.d.ts +0 -6
  28. package/dist/src/api/user/index.d.ts +2 -2
  29. package/dist/src/composables/useReportPermissions.d.ts +1 -0
  30. package/dist/src/helpers/rule.d.ts +2 -0
  31. package/dist/src/types/audit-log.d.ts +1 -1
  32. package/dist/src/types/role.d.ts +1 -0
  33. package/dist/src/views/audit-log/locales/index.d.ts +0 -300
  34. package/dist/src/views/hr/locales/index.d.ts +4 -0
  35. package/dist/style.css +1 -1
  36. package/dist/tsconfig.app.tsbuildinfo +1 -1
  37. package/dist/{useAppStore-DCwd8GWN.js → useAppStore-BGhlB1_1.js} +1 -1
  38. package/dist/useDebounce-CWb5QR9G.js +28 -0
  39. package/dist/{useLoading-CXzTpIVv.js → useLoading-CvgqVDbF.js} +1 -1
  40. package/dist/useReportPermissions-CXXq725N.js +82 -0
  41. package/package.json +1 -1
  42. package/dist/AuditLogList-A1217xlw.js +0 -1722
  43. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C9bkMb41.js +0 -4169
  44. package/dist/RoleList-C5VZbU3f.js +0 -725
  45. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +0 -16
  46. package/dist/src/views/audit-log/change-nodes.d.ts +0 -14
  47. package/dist/src/views/audit-log/event-line.d.ts +0 -13
  48. package/dist/src/views/audit-log/operation-status.d.ts +0 -2
  49. package/dist/src/views/audit-log/snapshot-diff.d.ts +0 -11
  50. package/dist/useDebounce-B8ZPVS5C.js +0 -15
  51. package/dist/useReportPermissions-Phq7vqLK.js +0 -71
@@ -9,9 +9,6 @@ declare const AuditLogAPI: {
9
9
  actions?: string[];
10
10
  outcomes?: string[];
11
11
  feedmeAdminActors?: boolean;
12
- search?: string;
13
- searchUserIds?: string[];
14
- searchSubjects?: string[];
15
12
  }): Promise<number>;
16
13
  read(params?: {
17
14
  limit?: number;
@@ -24,9 +21,6 @@ declare const AuditLogAPI: {
24
21
  actions?: string[];
25
22
  outcomes?: string[];
26
23
  feedmeAdminActors?: boolean;
27
- search?: string;
28
- searchUserIds?: string[];
29
- searchSubjects?: string[];
30
24
  }): Promise<AuditLogEntry[]>;
31
25
  /**
32
26
  * FeedMe-admin options for the User filter. `actors` is the named admin list (internal
@@ -1,6 +1,6 @@
1
1
  import type { FdoUser } from '@feedmepos/core/entity';
2
2
  export declare const userApi: {
3
- readPermissionUserByPhoneNo(phoneNo: string): Promise<FdoUser>;
4
- readPermissionUserByEmail(email: string): Promise<FdoUser>;
3
+ readPermissionUserByPhoneNo(phoneNo: string): Promise<FdoUser | null>;
4
+ readPermissionUserByEmail(email: string): Promise<FdoUser | null>;
5
5
  };
6
6
  export default userApi;
@@ -10,6 +10,7 @@ export declare function useReportPermissions(): {
10
10
  actions: ("update" | "create" | "read" | "delete" | "manage")[];
11
11
  }[]>;
12
12
  availableReportKeys: import("vue").ComputedRef<Set<string>>;
13
+ customReportKeys: import("vue").ComputedRef<Set<string>>;
13
14
  isLoading: import("vue").ComputedRef<boolean>;
14
15
  isLoaded: import("vue").ComputedRef<boolean>;
15
16
  };
@@ -7,6 +7,8 @@ export declare function ruleExtension(rule: FdoPermissionRule): {
7
7
  isDiscountOperation: boolean;
8
8
  isOrderOperation: boolean;
9
9
  isReportPermission: boolean;
10
+ isResolvable: boolean;
11
+ discriminator: string | undefined;
10
12
  formatted: string;
11
13
  label: string;
12
14
  value: string;
@@ -1 +1 @@
1
- export type { AuditLogEntry, AuditLogMetadata, AuditLogOperation, AuditLogOutcome, AuditLogResolvedFrom, } from '@feedmepos/hrm-permission';
1
+ export type { AuditLogEntry, AuditLogMetadata, AuditLogOutcome, AuditLogResolvedFrom } from '@feedmepos/hrm-permission';
@@ -32,6 +32,7 @@ export interface Rule extends FdoPermissionRule {
32
32
  isDiscountOperation: boolean;
33
33
  isOrderOperation: boolean;
34
34
  isReportPermission: boolean;
35
+ isResolvable: boolean;
35
36
  label: string;
36
37
  value: string;
37
38
  }
@@ -19,9 +19,6 @@ export declare const i18nMessages: {
19
19
  dateRange: {
20
20
  placeholder: string;
21
21
  };
22
- search: {
23
- placeholder: string;
24
- };
25
22
  user: {
26
23
  feedmeAdmin: string;
27
24
  };
@@ -137,78 +134,6 @@ export declare const i18nMessages: {
137
134
  requestPath: string;
138
135
  requestBody: string;
139
136
  };
140
- operation: {
141
- toggle: string;
142
- rowHint: string;
143
- unlabeled: string;
144
- badge: string;
145
- partialFailure: string;
146
- sheetHeader: string;
147
- entity: string;
148
- duration: string;
149
- durationValue: string;
150
- error: string;
151
- changes: string;
152
- showData: string;
153
- added: string;
154
- removed: string;
155
- updated: string;
156
- before: string;
157
- after: string;
158
- noChanges: string;
159
- wholeValue: string;
160
- };
161
- event: {
162
- sentence: {
163
- "audit-log": {
164
- view: string;
165
- };
166
- restaurant: {
167
- list: string;
168
- };
169
- "permission-assignment": {
170
- manage: string;
171
- list: string;
172
- view: string;
173
- };
174
- "permission-set": {
175
- manage: string;
176
- list: string;
177
- view: string;
178
- };
179
- "portal-user": {
180
- list: string;
181
- "list-page": string;
182
- view: string;
183
- create: string;
184
- update: string;
185
- delete: string;
186
- };
187
- "pos-user": {
188
- list: string;
189
- "list-page": string;
190
- create: string;
191
- "sync-meta": string;
192
- update: string;
193
- migrate: string;
194
- "generate-passcode": string;
195
- };
196
- "pos-master-user": {
197
- create: string;
198
- update: string;
199
- delete: string;
200
- };
201
- "pos-role": {
202
- list: string;
203
- create: string;
204
- update: string;
205
- };
206
- timesheet: {
207
- view: string;
208
- update: string;
209
- };
210
- };
211
- };
212
137
  };
213
138
  };
214
139
  'zh-CN': {
@@ -229,9 +154,6 @@ export declare const i18nMessages: {
229
154
  dateRange: {
230
155
  placeholder: string;
231
156
  };
232
- search: {
233
- placeholder: string;
234
- };
235
157
  user: {
236
158
  feedmeAdmin: string;
237
159
  };
@@ -348,78 +270,6 @@ export declare const i18nMessages: {
348
270
  requestPath: string;
349
271
  requestBody: string;
350
272
  };
351
- operation: {
352
- toggle: string;
353
- rowHint: string;
354
- unlabeled: string;
355
- badge: string;
356
- partialFailure: string;
357
- sheetHeader: string;
358
- entity: string;
359
- duration: string;
360
- durationValue: string;
361
- error: string;
362
- changes: string;
363
- showData: string;
364
- added: string;
365
- removed: string;
366
- updated: string;
367
- before: string;
368
- after: string;
369
- noChanges: string;
370
- wholeValue: string;
371
- };
372
- event: {
373
- sentence: {
374
- "audit-log": {
375
- view: string;
376
- };
377
- restaurant: {
378
- list: string;
379
- };
380
- "permission-assignment": {
381
- manage: string;
382
- list: string;
383
- view: string;
384
- };
385
- "permission-set": {
386
- manage: string;
387
- list: string;
388
- view: string;
389
- };
390
- "portal-user": {
391
- list: string;
392
- "list-page": string;
393
- view: string;
394
- create: string;
395
- update: string;
396
- delete: string;
397
- };
398
- "pos-user": {
399
- list: string;
400
- "list-page": string;
401
- create: string;
402
- "sync-meta": string;
403
- update: string;
404
- migrate: string;
405
- "generate-passcode": string;
406
- };
407
- "pos-master-user": {
408
- create: string;
409
- update: string;
410
- delete: string;
411
- };
412
- "pos-role": {
413
- list: string;
414
- create: string;
415
- update: string;
416
- };
417
- timesheet: {
418
- view: string;
419
- update: string;
420
- };
421
- };
422
- };
423
273
  };
424
274
  };
425
275
  'th-TH': {
@@ -440,9 +290,6 @@ export declare const i18nMessages: {
440
290
  dateRange: {
441
291
  placeholder: string;
442
292
  };
443
- search: {
444
- placeholder: string;
445
- };
446
293
  user: {
447
294
  feedmeAdmin: string;
448
295
  };
@@ -559,78 +406,6 @@ export declare const i18nMessages: {
559
406
  requestPath: string;
560
407
  requestBody: string;
561
408
  };
562
- operation: {
563
- toggle: string;
564
- rowHint: string;
565
- unlabeled: string;
566
- badge: string;
567
- partialFailure: string;
568
- sheetHeader: string;
569
- entity: string;
570
- duration: string;
571
- durationValue: string;
572
- error: string;
573
- changes: string;
574
- showData: string;
575
- added: string;
576
- removed: string;
577
- updated: string;
578
- before: string;
579
- after: string;
580
- noChanges: string;
581
- wholeValue: string;
582
- };
583
- event: {
584
- sentence: {
585
- "audit-log": {
586
- view: string;
587
- };
588
- restaurant: {
589
- list: string;
590
- };
591
- "permission-assignment": {
592
- manage: string;
593
- list: string;
594
- view: string;
595
- };
596
- "permission-set": {
597
- manage: string;
598
- list: string;
599
- view: string;
600
- };
601
- "portal-user": {
602
- list: string;
603
- "list-page": string;
604
- view: string;
605
- create: string;
606
- update: string;
607
- delete: string;
608
- };
609
- "pos-user": {
610
- list: string;
611
- "list-page": string;
612
- create: string;
613
- "sync-meta": string;
614
- update: string;
615
- migrate: string;
616
- "generate-passcode": string;
617
- };
618
- "pos-master-user": {
619
- create: string;
620
- update: string;
621
- delete: string;
622
- };
623
- "pos-role": {
624
- list: string;
625
- create: string;
626
- update: string;
627
- };
628
- timesheet: {
629
- view: string;
630
- update: string;
631
- };
632
- };
633
- };
634
409
  };
635
410
  };
636
411
  'zh-Hant': {
@@ -651,9 +426,6 @@ export declare const i18nMessages: {
651
426
  dateRange: {
652
427
  placeholder: string;
653
428
  };
654
- search: {
655
- placeholder: string;
656
- };
657
429
  user: {
658
430
  feedmeAdmin: string;
659
431
  };
@@ -770,78 +542,6 @@ export declare const i18nMessages: {
770
542
  requestPath: string;
771
543
  requestBody: string;
772
544
  };
773
- operation: {
774
- toggle: string;
775
- rowHint: string;
776
- unlabeled: string;
777
- badge: string;
778
- partialFailure: string;
779
- sheetHeader: string;
780
- entity: string;
781
- duration: string;
782
- durationValue: string;
783
- error: string;
784
- changes: string;
785
- showData: string;
786
- added: string;
787
- removed: string;
788
- updated: string;
789
- before: string;
790
- after: string;
791
- noChanges: string;
792
- wholeValue: string;
793
- };
794
- event: {
795
- sentence: {
796
- "audit-log": {
797
- view: string;
798
- };
799
- restaurant: {
800
- list: string;
801
- };
802
- "permission-assignment": {
803
- manage: string;
804
- list: string;
805
- view: string;
806
- };
807
- "permission-set": {
808
- manage: string;
809
- list: string;
810
- view: string;
811
- };
812
- "portal-user": {
813
- list: string;
814
- "list-page": string;
815
- view: string;
816
- create: string;
817
- update: string;
818
- delete: string;
819
- };
820
- "pos-user": {
821
- list: string;
822
- "list-page": string;
823
- create: string;
824
- "sync-meta": string;
825
- update: string;
826
- migrate: string;
827
- "generate-passcode": string;
828
- };
829
- "pos-master-user": {
830
- create: string;
831
- update: string;
832
- delete: string;
833
- };
834
- "pos-role": {
835
- list: string;
836
- create: string;
837
- update: string;
838
- };
839
- timesheet: {
840
- view: string;
841
- update: string;
842
- };
843
- };
844
- };
845
545
  };
846
546
  };
847
547
  };
@@ -113,6 +113,7 @@ export declare const i18nMessages: {
113
113
  maxValueIs: string;
114
114
  minValueIs: string;
115
115
  restaurant: string;
116
+ v8OnlyReportTag: string;
116
117
  permissionLabels: {
117
118
  "order:discount": string;
118
119
  "order:changePrice": string;
@@ -318,6 +319,7 @@ export declare const i18nMessages: {
318
319
  maxValueIs: string;
319
320
  minValueIs: string;
320
321
  restaurant: string;
322
+ v8OnlyReportTag: string;
321
323
  permissionLabels: {
322
324
  "order:discount": string;
323
325
  "order:changePrice": string;
@@ -523,6 +525,7 @@ export declare const i18nMessages: {
523
525
  maxValueIs: string;
524
526
  minValueIs: string;
525
527
  restaurant: string;
528
+ v8OnlyReportTag: string;
526
529
  permissionLabels: {
527
530
  "order:discount": string;
528
531
  "order:changePrice": string;
@@ -727,6 +730,7 @@ export declare const i18nMessages: {
727
730
  maxValueIs: string;
728
731
  minValueIs: string;
729
732
  restaurant: string;
733
+ v8OnlyReportTag: string;
730
734
  permissionLabels: {
731
735
  "order:discount": string;
732
736
  "order:changePrice": string;
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .employee-list-table[data-v-9cf34375] [class~=gap-24]>div:first-child{display:none}.timesheet-user-view[data-v-2c7a177a] .basis-72{display:none}.user-info-icon[data-v-827dfd60]{flex-shrink:0;cursor:pointer;font-size:.75rem;font-weight:600;line-height:1rem;letter-spacing:.02em;text-decoration-line:none;color:var(--fm-color-neutral-white);display:flex;align-items:center;justify-content:center;background:linear-gradient(201deg,#fc9b40 10.3%,#ff6052 98.36%)}.user-info-icon--md[data-v-827dfd60]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-827dfd60]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-827dfd60]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-827dfd60]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(8px * var(--tw-space-x-reverse));margin-left:calc(8px * calc(1 - var(--tw-space-x-reverse)))}.profile-menu--profile[data-v-827dfd60]{padding:16px 16px 12px;border-radius:8px;display:flex;align-items:center;border-width:1px;border-color:var(--fm-color-neutral-gray-200)}.profile-menu--profile .profile-displayName[data-v-827dfd60]{font-size:1rem;font-weight:400;line-height:1.25rem;letter-spacing:.005em;text-decoration-line:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu--profile .profile-email[data-v-827dfd60],.profile-menu--profile .profile-phone[data-v-827dfd60]{font-size:.875rem;font-weight:400;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;color:var(--fm-color-neutral-gray-300);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-log-list-table[data-v-9d69ce94] [class~=gap-24]>div:first-child{display:none}.audit-log-list-table[data-v-9d69ce94] tr:has(.audit-op-marker){background-color:var(--fm-color-neutral-gray-100);border-top:1px solid var(--fm-color-neutral-gray-200)}.audit-log-list-table[data-v-9d69ce94] tr:has(.audit-op-marker):hover{background-color:#e8e8ed}.audit-log-action-label[data-v-9d69ce94]{display:block;width:100%;max-width:100%;max-height:6.25rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.25rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-action-label[data-v-9d69ce94]::-webkit-scrollbar{display:none}.audit-log-operation-label-detail[data-v-9d69ce94]{max-height:6.875rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.375rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-operation-label-detail[data-v-9d69ce94]::-webkit-scrollbar{display:none}
1
+ .employee-list-table[data-v-9cf34375] [class~=gap-24]>div:first-child{display:none}.timesheet-user-view[data-v-2c7a177a] .basis-72{display:none}.user-info-icon[data-v-827dfd60]{flex-shrink:0;cursor:pointer;font-size:.75rem;font-weight:600;line-height:1rem;letter-spacing:.02em;text-decoration-line:none;color:var(--fm-color-neutral-white);display:flex;align-items:center;justify-content:center;background:linear-gradient(201deg,#fc9b40 10.3%,#ff6052 98.36%)}.user-info-icon--md[data-v-827dfd60]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-827dfd60]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-827dfd60]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-827dfd60]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(8px * var(--tw-space-x-reverse));margin-left:calc(8px * calc(1 - var(--tw-space-x-reverse)))}.profile-menu--profile[data-v-827dfd60]{padding:16px 16px 12px;border-radius:8px;display:flex;align-items:center;border-width:1px;border-color:var(--fm-color-neutral-gray-200)}.profile-menu--profile .profile-displayName[data-v-827dfd60]{font-size:1rem;font-weight:400;line-height:1.25rem;letter-spacing:.005em;text-decoration-line:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu--profile .profile-email[data-v-827dfd60],.profile-menu--profile .profile-phone[data-v-827dfd60]{font-size:.875rem;font-weight:400;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;color:var(--fm-color-neutral-gray-300);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-log-list-table[data-v-ab237027] [class~=gap-24]>div:first-child{display:none}.audit-log-action-label[data-v-ab237027]{display:block;width:100%;max-width:100%;max-height:6.25rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.25rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-action-label[data-v-ab237027]::-webkit-scrollbar{display:none}.audit-log-operation-label-detail[data-v-ab237027]{max-height:6.875rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.375rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-operation-label-detail[data-v-ab237027]::-webkit-scrollbar{display:none}