@feedmepos/mf-hrm-portal 2.2.1-dev.3 → 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 (48) hide show
  1. package/dist/{ApprovalCodeList-rL8dh-6s.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-BJgpH-kw.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BDOdtKwI.js} +2 -2
  4. package/dist/{EmployeeList-C3VvVY6A.js → EmployeeList-BZ6fxRCN.js} +71 -71
  5. package/dist/{GrantUserList-DjZ4O0VB.js → GrantUserList-CaVpRVzA.js} +6 -6
  6. package/dist/{Main-DVTx58X9.js → Main-CEKiyT80.js} +11 -11
  7. package/dist/{Main-LaAbAOfs.js → Main-CQpEciKH.js} +5 -5
  8. package/dist/{Main-ByWrRV70.js → Main-DrfRLxA5.js} +8 -8
  9. package/dist/{PermissionSetList-DD45SSY3.js → PermissionSetList-BgOSJy4y.js} +78 -77
  10. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-yDPvNHiW.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B2SX3ZoV.js} +1383 -1378
  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-DrLbMN34.js → TeamMemberList-BXk_pXjc.js} +312 -313
  14. package/dist/{TimesheetList-CdaxlO97.js → TimesheetList-DgaZmgug.js} +7 -7
  15. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-ogjfztLs.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-B_Lc8Xmy.js} +3 -3
  16. package/dist/{app-B8eo04d6.js → app-DzagkC6l.js} +513 -805
  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-DZEHW2QB.js → dayjs.min-CqJsImsm.js} +1 -1
  20. package/dist/{employee-DX0CZF-B.js → employee-CXBuv0Bx.js} +4 -4
  21. package/dist/{grant-user-SNiDV22U.js → grant-user-Dhi3ilC_.js} +1 -1
  22. package/dist/{iteration-yBS4dpFh.js → iteration-BCfwR_XH.js} +1 -1
  23. package/dist/{lodash-344d5Ope.js → lodash-BJl3phr9.js} +1 -1
  24. package/dist/{restaurant-BTpBmfBV.js → restaurant-DiYb0pCm.js} +2 -2
  25. package/dist/{role-BXBuBxs5.js → role-BfCNRnuy.js} +2 -2
  26. package/dist/{rule-DWlFon04.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 -296
  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-NvISIfUq.js +0 -1611
  43. package/dist/RoleList-BDxgwmAV.js +0 -725
  44. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +0 -16
  45. package/dist/src/views/audit-log/event-line.d.ts +0 -13
  46. package/dist/src/views/audit-log/snapshot-diff.d.ts +0 -11
  47. package/dist/useDebounce-B8ZPVS5C.js +0 -15
  48. package/dist/useReportPermissions-C0exkIxU.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,77 +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
- sheetHeader: string;
146
- entity: string;
147
- duration: string;
148
- durationValue: string;
149
- error: string;
150
- changes: string;
151
- showData: string;
152
- added: string;
153
- removed: string;
154
- updated: string;
155
- before: string;
156
- after: string;
157
- noChanges: string;
158
- wholeValue: string;
159
- };
160
- event: {
161
- sentence: {
162
- "audit-log": {
163
- view: string;
164
- };
165
- restaurant: {
166
- list: string;
167
- };
168
- "permission-assignment": {
169
- manage: string;
170
- list: string;
171
- view: string;
172
- };
173
- "permission-set": {
174
- manage: string;
175
- list: string;
176
- view: string;
177
- };
178
- "portal-user": {
179
- list: string;
180
- "list-page": string;
181
- view: string;
182
- create: string;
183
- update: string;
184
- delete: string;
185
- };
186
- "pos-user": {
187
- list: string;
188
- "list-page": string;
189
- create: string;
190
- "sync-meta": string;
191
- update: string;
192
- migrate: string;
193
- "generate-passcode": string;
194
- };
195
- "pos-master-user": {
196
- create: string;
197
- update: string;
198
- delete: string;
199
- };
200
- "pos-role": {
201
- list: string;
202
- create: string;
203
- update: string;
204
- };
205
- timesheet: {
206
- view: string;
207
- update: string;
208
- };
209
- };
210
- };
211
137
  };
212
138
  };
213
139
  'zh-CN': {
@@ -228,9 +154,6 @@ export declare const i18nMessages: {
228
154
  dateRange: {
229
155
  placeholder: string;
230
156
  };
231
- search: {
232
- placeholder: string;
233
- };
234
157
  user: {
235
158
  feedmeAdmin: string;
236
159
  };
@@ -347,77 +270,6 @@ export declare const i18nMessages: {
347
270
  requestPath: string;
348
271
  requestBody: string;
349
272
  };
350
- operation: {
351
- toggle: string;
352
- rowHint: string;
353
- unlabeled: string;
354
- badge: string;
355
- sheetHeader: string;
356
- entity: string;
357
- duration: string;
358
- durationValue: string;
359
- error: string;
360
- changes: string;
361
- showData: string;
362
- added: string;
363
- removed: string;
364
- updated: string;
365
- before: string;
366
- after: string;
367
- noChanges: string;
368
- wholeValue: string;
369
- };
370
- event: {
371
- sentence: {
372
- "audit-log": {
373
- view: string;
374
- };
375
- restaurant: {
376
- list: string;
377
- };
378
- "permission-assignment": {
379
- manage: string;
380
- list: string;
381
- view: string;
382
- };
383
- "permission-set": {
384
- manage: string;
385
- list: string;
386
- view: string;
387
- };
388
- "portal-user": {
389
- list: string;
390
- "list-page": string;
391
- view: string;
392
- create: string;
393
- update: string;
394
- delete: string;
395
- };
396
- "pos-user": {
397
- list: string;
398
- "list-page": string;
399
- create: string;
400
- "sync-meta": string;
401
- update: string;
402
- migrate: string;
403
- "generate-passcode": string;
404
- };
405
- "pos-master-user": {
406
- create: string;
407
- update: string;
408
- delete: string;
409
- };
410
- "pos-role": {
411
- list: string;
412
- create: string;
413
- update: string;
414
- };
415
- timesheet: {
416
- view: string;
417
- update: string;
418
- };
419
- };
420
- };
421
273
  };
422
274
  };
423
275
  'th-TH': {
@@ -438,9 +290,6 @@ export declare const i18nMessages: {
438
290
  dateRange: {
439
291
  placeholder: string;
440
292
  };
441
- search: {
442
- placeholder: string;
443
- };
444
293
  user: {
445
294
  feedmeAdmin: string;
446
295
  };
@@ -557,77 +406,6 @@ export declare const i18nMessages: {
557
406
  requestPath: string;
558
407
  requestBody: string;
559
408
  };
560
- operation: {
561
- toggle: string;
562
- rowHint: string;
563
- unlabeled: string;
564
- badge: string;
565
- sheetHeader: string;
566
- entity: string;
567
- duration: string;
568
- durationValue: string;
569
- error: string;
570
- changes: string;
571
- showData: string;
572
- added: string;
573
- removed: string;
574
- updated: string;
575
- before: string;
576
- after: string;
577
- noChanges: string;
578
- wholeValue: string;
579
- };
580
- event: {
581
- sentence: {
582
- "audit-log": {
583
- view: string;
584
- };
585
- restaurant: {
586
- list: string;
587
- };
588
- "permission-assignment": {
589
- manage: string;
590
- list: string;
591
- view: string;
592
- };
593
- "permission-set": {
594
- manage: string;
595
- list: string;
596
- view: string;
597
- };
598
- "portal-user": {
599
- list: string;
600
- "list-page": string;
601
- view: string;
602
- create: string;
603
- update: string;
604
- delete: string;
605
- };
606
- "pos-user": {
607
- list: string;
608
- "list-page": string;
609
- create: string;
610
- "sync-meta": string;
611
- update: string;
612
- migrate: string;
613
- "generate-passcode": string;
614
- };
615
- "pos-master-user": {
616
- create: string;
617
- update: string;
618
- delete: string;
619
- };
620
- "pos-role": {
621
- list: string;
622
- create: string;
623
- update: string;
624
- };
625
- timesheet: {
626
- view: string;
627
- update: string;
628
- };
629
- };
630
- };
631
409
  };
632
410
  };
633
411
  'zh-Hant': {
@@ -648,9 +426,6 @@ export declare const i18nMessages: {
648
426
  dateRange: {
649
427
  placeholder: string;
650
428
  };
651
- search: {
652
- placeholder: string;
653
- };
654
429
  user: {
655
430
  feedmeAdmin: string;
656
431
  };
@@ -767,77 +542,6 @@ export declare const i18nMessages: {
767
542
  requestPath: string;
768
543
  requestBody: string;
769
544
  };
770
- operation: {
771
- toggle: string;
772
- rowHint: string;
773
- unlabeled: string;
774
- badge: string;
775
- sheetHeader: string;
776
- entity: string;
777
- duration: string;
778
- durationValue: string;
779
- error: string;
780
- changes: string;
781
- showData: string;
782
- added: string;
783
- removed: string;
784
- updated: string;
785
- before: string;
786
- after: string;
787
- noChanges: string;
788
- wholeValue: string;
789
- };
790
- event: {
791
- sentence: {
792
- "audit-log": {
793
- view: string;
794
- };
795
- restaurant: {
796
- list: string;
797
- };
798
- "permission-assignment": {
799
- manage: string;
800
- list: string;
801
- view: string;
802
- };
803
- "permission-set": {
804
- manage: string;
805
- list: string;
806
- view: string;
807
- };
808
- "portal-user": {
809
- list: string;
810
- "list-page": string;
811
- view: string;
812
- create: string;
813
- update: string;
814
- delete: string;
815
- };
816
- "pos-user": {
817
- list: string;
818
- "list-page": string;
819
- create: string;
820
- "sync-meta": string;
821
- update: string;
822
- migrate: string;
823
- "generate-passcode": string;
824
- };
825
- "pos-master-user": {
826
- create: string;
827
- update: string;
828
- delete: string;
829
- };
830
- "pos-role": {
831
- list: string;
832
- create: string;
833
- update: string;
834
- };
835
- timesheet: {
836
- view: string;
837
- update: string;
838
- };
839
- };
840
- };
841
545
  };
842
546
  };
843
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-5b055e3b] [class~=gap-24]>div:first-child{display:none}.audit-log-list-table[data-v-5b055e3b] 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-5b055e3b] tr:has(.audit-op-marker):hover{background-color:#e8e8ed}.audit-log-action-label[data-v-5b055e3b]{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-5b055e3b]::-webkit-scrollbar{display:none}.audit-log-operation-label-detail[data-v-5b055e3b]{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-5b055e3b]::-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}