@feedmepos/mf-hrm-portal 2.0.23 → 2.0.24-dev.3
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.
- package/dist/AuditLogList-Czy2T2Rx.js +1056 -0
- package/dist/{EmployeeList-DV6b-sUl.js → EmployeeList-DXTIVdNQ.js} +8 -8
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-D3MOFOUI.js → FormItem.vue_vue_type_script_setup_true_lang-S4Mh4MvG.js} +1 -1
- package/dist/{Main-ikZ4GbMs.js → Main-BBGd8ZTL.js} +6 -6
- package/dist/{Main-brGoD5LT.js → Main-DndCDnpH.js} +6 -6
- package/dist/{Main--_6xW_6T.js → Main-lGjnpbfI.js} +9 -9
- package/dist/{PermissionSetList-Ba_OoTIV.js → PermissionSetList-ENyBOnPF.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DE6kAP4K.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BWBZROlT.js} +464 -464
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-Dgiy6--r.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-CDtl09zY.js} +1 -1
- package/dist/{RoleList-hbFtGRXp.js → RoleList-BX_2VJZ6.js} +7 -7
- package/dist/SelectFilter-C61IZSID.js +269 -0
- package/dist/{TeamMemberList-CLQB9CrO.js → TeamMemberList-D5dwxHbo.js} +57 -57
- package/dist/{TimesheetList-DGLg16vD.js → TimesheetList-B92TB91G.js} +7 -7
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_d7ed31d7_lang-DAq_QztI.js → TimesheetList.vue_vue_type_style_index_0_scoped_d7ed31d7_lang-fZeEZTuq.js} +2 -2
- package/dist/{app-BvSnSbKt.js → app-KE1Um386.js} +27 -46
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-0cwnJZKr.js → dayjs.min-1lGJFcPX.js} +1 -1
- package/dist/{employee-BI_kMMXy.js → employee-BqMV_HCx.js} +3 -3
- package/dist/{iteration-BWe1Eiu-.js → iteration-DlBvbGKr.js} +3 -3
- package/dist/{lodash-D89ipwrs.js → lodash-aPPIHJY6.js} +1 -1
- package/dist/{rule-CwMu9Wr3.js → rule-BxTkC7Lz.js} +25 -25
- package/dist/src/components/form/SelectFilter.vue.d.ts +3 -0
- package/dist/src/views/audit-log/locales/index.d.ts +8 -12
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BFSRwyzx.js → useAppStore-DT7SMn0u.js} +1 -1
- package/dist/{useLoading-8AI-5_oV.js → useLoading-DogwStiv.js} +1 -1
- package/dist/{useReportPermissions-CwaUFfn0.js → useReportPermissions-CsXjuESs.js} +3 -3
- package/package.json +2 -2
- package/dist/AuditLogList-D5ptt1oj.js +0 -1037
- package/dist/SelectFilter-DUj7GBtT.js +0 -251
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as b, b as v, q as L, u as H, s as
|
|
2
|
-
import { e as R,
|
|
1
|
+
import { g as b, b as v, q as L, u as H, s as x, d as Y, e as h } from "./iteration-DlBvbGKr.js";
|
|
2
|
+
import { e as R, h as k, b as F, l as j, C as Z, d as J } from "./app-KE1Um386.js";
|
|
3
3
|
import { s as q } from "./utils-BZkjJbju.js";
|
|
4
4
|
import { defineStore as W, storeToRefs as V } from "pinia";
|
|
5
|
-
import { ref as S, computed as
|
|
5
|
+
import { ref as S, computed as T } from "vue";
|
|
6
6
|
import { useCoreStore as z } from "@feedmepos/mf-common";
|
|
7
7
|
const B = [
|
|
8
8
|
{
|
|
@@ -564,7 +564,7 @@ function $e(e, s) {
|
|
|
564
564
|
function Ie(e) {
|
|
565
565
|
const s = X(
|
|
566
566
|
e,
|
|
567
|
-
|
|
567
|
+
k
|
|
568
568
|
), t = new Set(
|
|
569
569
|
s.filter((i) => {
|
|
570
570
|
var n;
|
|
@@ -737,7 +737,7 @@ const y = "/permission-assignments", P = {
|
|
|
737
737
|
await L().get(`/report-query/hrm/${e}/reports`, { params: t })
|
|
738
738
|
);
|
|
739
739
|
}
|
|
740
|
-
}, _ = S([]), E = S(!1), w = S(!1), $ = S(null), D = S(null),
|
|
740
|
+
}, _ = S([]), E = S(!1), w = S(!1), $ = S(null), D = S(null), C = S(!1);
|
|
741
741
|
function de() {
|
|
742
742
|
const e = z();
|
|
743
743
|
async function s() {
|
|
@@ -745,9 +745,9 @@ function de() {
|
|
|
745
745
|
const o = (n = e.currentBusiness.value) == null ? void 0 : n.id;
|
|
746
746
|
if (!o) return;
|
|
747
747
|
const i = localStorage.getItem("locale");
|
|
748
|
-
if ($.value !== o && (_.value = [], E.value = !1, w.value = !1, $.value = o,
|
|
748
|
+
if ($.value !== o && (_.value = [], E.value = !1, w.value = !1, $.value = o, C.value = !1), !(E.value && D.value === i)) {
|
|
749
749
|
if (w.value) {
|
|
750
|
-
|
|
750
|
+
C.value = !0;
|
|
751
751
|
return;
|
|
752
752
|
}
|
|
753
753
|
w.value = !0;
|
|
@@ -759,11 +759,11 @@ function de() {
|
|
|
759
759
|
if ($.value !== o) return;
|
|
760
760
|
console.warn("Failed to fetch custom report permissions:", c), _.value = [];
|
|
761
761
|
} finally {
|
|
762
|
-
$.value === o && (w.value = !1,
|
|
762
|
+
$.value === o && (w.value = !1, C.value && (C.value = !1, await s()));
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
|
-
const t =
|
|
766
|
+
const t = T(() => _.value.map(
|
|
767
767
|
(o) => o.isDefault ? {
|
|
768
768
|
label: o.name,
|
|
769
769
|
subject: `business::report::reports::${o.permissionKey}`,
|
|
@@ -785,8 +785,8 @@ function de() {
|
|
|
785
785
|
return {
|
|
786
786
|
fetchCustomReportPermissions: s,
|
|
787
787
|
customReportPermissions: t,
|
|
788
|
-
isLoading:
|
|
789
|
-
isLoaded:
|
|
788
|
+
isLoading: T(() => w.value),
|
|
789
|
+
isLoaded: T(() => E.value)
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
792
|
function I(e) {
|
|
@@ -800,7 +800,7 @@ function I(e) {
|
|
|
800
800
|
subject: R(f.subject)
|
|
801
801
|
})), l = M(r, u), d = X(
|
|
802
802
|
ae(r, u),
|
|
803
|
-
|
|
803
|
+
k
|
|
804
804
|
).filter((f) => !f.inverted), p = fe(d), m = p ?? o.value.map((f) => f._id);
|
|
805
805
|
return {
|
|
806
806
|
doc: e,
|
|
@@ -808,7 +808,7 @@ function I(e) {
|
|
|
808
808
|
name: e.name && e.name !== e.email && e.name !== e.phoneNumber ? e.name : "-",
|
|
809
809
|
phoneNumber: e.phoneNumber,
|
|
810
810
|
email: e.email,
|
|
811
|
-
restaurants:
|
|
811
|
+
restaurants: x(
|
|
812
812
|
m.map((f) => {
|
|
813
813
|
var g;
|
|
814
814
|
return ((g = o.value.find((G) => G._id === f)) == null ? void 0 : g.profile.name) ?? "";
|
|
@@ -872,10 +872,10 @@ function _e(e, s, t) {
|
|
|
872
872
|
if (e.some((c) => c.subject === "all")) return "All";
|
|
873
873
|
const o = (t ?? B).filter(
|
|
874
874
|
(c) => c.subject === s
|
|
875
|
-
), i = new Set(o.map((c) =>
|
|
875
|
+
), i = new Set(o.map((c) => N(c).value)), n = e.filter((c) => c.subject === s).filter((c) => i.has(N(c).value));
|
|
876
876
|
return n.length === o.length ? "All" : n.length === 0 ? "-" : `${n.length} permission allow`;
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function N(e) {
|
|
879
879
|
const s = Y(e), t = s.subject;
|
|
880
880
|
return {
|
|
881
881
|
...s,
|
|
@@ -905,7 +905,7 @@ function T(e) {
|
|
|
905
905
|
};
|
|
906
906
|
}
|
|
907
907
|
function Ee(e) {
|
|
908
|
-
const s = e.map((t) =>
|
|
908
|
+
const s = e.map((t) => N(t)).find((t) => t.isDiscountOperation);
|
|
909
909
|
return s ? parseInt((s.conditions.adjustment.$lte * 100).toFixed(0)) : 100;
|
|
910
910
|
}
|
|
911
911
|
function fe(e) {
|
|
@@ -914,14 +914,14 @@ function fe(e) {
|
|
|
914
914
|
);
|
|
915
915
|
return s ? s.conditions ? JSON.parse(s.conditions).restaurantId.$in : null : [];
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function Ce(e) {
|
|
918
918
|
return (e == null ? void 0 : e.some((s) => s.subject === "all")) ?? !1;
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function Ne(e) {
|
|
921
921
|
const s = e.find((t) => t.subject === J.Subject.Business.role);
|
|
922
922
|
return s ? s.conditions ? JSON.parse(s.conditions).roleId.$in : null : [];
|
|
923
923
|
}
|
|
924
|
-
function
|
|
924
|
+
function Te(e, s) {
|
|
925
925
|
return e.map((t) => {
|
|
926
926
|
const o = pe(t);
|
|
927
927
|
return {
|
|
@@ -949,10 +949,10 @@ function pe(e) {
|
|
|
949
949
|
conditions: { name: t },
|
|
950
950
|
inverted: !1,
|
|
951
951
|
reason: ""
|
|
952
|
-
})) : o = B.find((i) => i.subject === s),
|
|
952
|
+
})) : o = B.find((i) => i.subject === s), N(o || { subject: h.F_RULE_SUBJECT.enum.order, actions: [], label: "" });
|
|
953
953
|
}
|
|
954
954
|
function be(e, s = []) {
|
|
955
|
-
return
|
|
955
|
+
return x(
|
|
956
956
|
e.reduce((t, o) => {
|
|
957
957
|
const i = me.find(
|
|
958
958
|
(n) => n.subject === o.subject && o.actions.includes("manage")
|
|
@@ -973,11 +973,11 @@ export {
|
|
|
973
973
|
Q as c,
|
|
974
974
|
de as d,
|
|
975
975
|
B as e,
|
|
976
|
-
|
|
976
|
+
Te as f,
|
|
977
977
|
Ee as g,
|
|
978
|
-
|
|
978
|
+
Ce as h,
|
|
979
979
|
te as i,
|
|
980
|
-
|
|
980
|
+
Ne as j,
|
|
981
981
|
fe as k,
|
|
982
982
|
Re as l,
|
|
983
983
|
Pe as m,
|
|
@@ -985,7 +985,7 @@ export {
|
|
|
985
985
|
$e as o,
|
|
986
986
|
me as p,
|
|
987
987
|
ue as q,
|
|
988
|
-
|
|
988
|
+
N as r,
|
|
989
989
|
Ie as s,
|
|
990
990
|
Oe as t,
|
|
991
991
|
se as u,
|
|
@@ -4,6 +4,9 @@ export interface BaseOption {
|
|
|
4
4
|
export interface SelectFilterOption {
|
|
5
5
|
label: string;
|
|
6
6
|
value: any;
|
|
7
|
+
/** Optional group/section label. When any option has a `group`, the menu renders
|
|
8
|
+
* section headers with per-group counts. Order groups by ordering `items`. */
|
|
9
|
+
group?: string;
|
|
7
10
|
[key: string]: any;
|
|
8
11
|
}
|
|
9
12
|
export interface Props {
|
|
@@ -46,12 +46,12 @@ export declare const i18nMessages: {
|
|
|
46
46
|
payment: string;
|
|
47
47
|
menu: string;
|
|
48
48
|
crm: string;
|
|
49
|
+
other: string;
|
|
49
50
|
more: string;
|
|
50
51
|
};
|
|
51
52
|
columns: {
|
|
52
53
|
timestamp: string;
|
|
53
54
|
user: string;
|
|
54
|
-
role: string;
|
|
55
55
|
subject: string;
|
|
56
56
|
action: string;
|
|
57
57
|
operation: string;
|
|
@@ -104,14 +104,13 @@ export declare const i18nMessages: {
|
|
|
104
104
|
email: string;
|
|
105
105
|
action: string;
|
|
106
106
|
operation: string;
|
|
107
|
-
role: string;
|
|
108
107
|
subject: string;
|
|
109
108
|
field: string;
|
|
110
109
|
outcome: string;
|
|
111
110
|
business: string;
|
|
112
111
|
restaurant: string;
|
|
113
112
|
changeDetails: string;
|
|
114
|
-
|
|
113
|
+
actionDescription: string;
|
|
115
114
|
metadata: string;
|
|
116
115
|
reason: string;
|
|
117
116
|
resolvedFrom: string;
|
|
@@ -179,12 +178,12 @@ export declare const i18nMessages: {
|
|
|
179
178
|
payment: string;
|
|
180
179
|
menu: string;
|
|
181
180
|
crm: string;
|
|
181
|
+
other: string;
|
|
182
182
|
more: string;
|
|
183
183
|
};
|
|
184
184
|
columns: {
|
|
185
185
|
timestamp: string;
|
|
186
186
|
user: string;
|
|
187
|
-
role: string;
|
|
188
187
|
subject: string;
|
|
189
188
|
action: string;
|
|
190
189
|
operation: string;
|
|
@@ -237,14 +236,13 @@ export declare const i18nMessages: {
|
|
|
237
236
|
email: string;
|
|
238
237
|
action: string;
|
|
239
238
|
operation: string;
|
|
240
|
-
role: string;
|
|
241
239
|
subject: string;
|
|
242
240
|
field: string;
|
|
243
241
|
outcome: string;
|
|
244
242
|
business: string;
|
|
245
243
|
restaurant: string;
|
|
246
244
|
changeDetails: string;
|
|
247
|
-
|
|
245
|
+
actionDescription: string;
|
|
248
246
|
metadata: string;
|
|
249
247
|
reason: string;
|
|
250
248
|
resolvedFrom: string;
|
|
@@ -313,12 +311,12 @@ export declare const i18nMessages: {
|
|
|
313
311
|
payment: string;
|
|
314
312
|
menu: string;
|
|
315
313
|
crm: string;
|
|
314
|
+
other: string;
|
|
316
315
|
more: string;
|
|
317
316
|
};
|
|
318
317
|
columns: {
|
|
319
318
|
timestamp: string;
|
|
320
319
|
user: string;
|
|
321
|
-
role: string;
|
|
322
320
|
subject: string;
|
|
323
321
|
action: string;
|
|
324
322
|
operation: string;
|
|
@@ -371,14 +369,13 @@ export declare const i18nMessages: {
|
|
|
371
369
|
email: string;
|
|
372
370
|
action: string;
|
|
373
371
|
operation: string;
|
|
374
|
-
role: string;
|
|
375
372
|
subject: string;
|
|
376
373
|
field: string;
|
|
377
374
|
outcome: string;
|
|
378
375
|
business: string;
|
|
379
376
|
restaurant: string;
|
|
380
377
|
changeDetails: string;
|
|
381
|
-
|
|
378
|
+
actionDescription: string;
|
|
382
379
|
metadata: string;
|
|
383
380
|
reason: string;
|
|
384
381
|
resolvedFrom: string;
|
|
@@ -447,12 +444,12 @@ export declare const i18nMessages: {
|
|
|
447
444
|
payment: string;
|
|
448
445
|
menu: string;
|
|
449
446
|
crm: string;
|
|
447
|
+
other: string;
|
|
450
448
|
more: string;
|
|
451
449
|
};
|
|
452
450
|
columns: {
|
|
453
451
|
timestamp: string;
|
|
454
452
|
user: string;
|
|
455
|
-
role: string;
|
|
456
453
|
subject: string;
|
|
457
454
|
action: string;
|
|
458
455
|
operation: string;
|
|
@@ -505,14 +502,13 @@ export declare const i18nMessages: {
|
|
|
505
502
|
email: string;
|
|
506
503
|
action: string;
|
|
507
504
|
operation: string;
|
|
508
|
-
role: string;
|
|
509
505
|
subject: string;
|
|
510
506
|
field: string;
|
|
511
507
|
outcome: string;
|
|
512
508
|
business: string;
|
|
513
509
|
restaurant: string;
|
|
514
510
|
changeDetails: string;
|
|
515
|
-
|
|
511
|
+
actionDescription: string;
|
|
516
512
|
metadata: string;
|
|
517
513
|
reason: string;
|
|
518
514
|
resolvedFrom: string;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.employee-list-table[data-v-cefb09f9] [class~=gap-24]>div:first-child{display:none}.timesheet-user-view[data-v-d7ed31d7] .basis-72{display:none}.user-info-icon[data-v-a439fdd8]{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-a439fdd8]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-a439fdd8]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-a439fdd8]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-a439fdd8]>: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-a439fdd8]{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-a439fdd8]{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-a439fdd8],.profile-menu--profile .profile-phone[data-v-a439fdd8]{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-
|
|
1
|
+
.employee-list-table[data-v-cefb09f9] [class~=gap-24]>div:first-child{display:none}.timesheet-user-view[data-v-d7ed31d7] .basis-72{display:none}.user-info-icon[data-v-a439fdd8]{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-a439fdd8]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-a439fdd8]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-a439fdd8]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-a439fdd8]>: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-a439fdd8]{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-a439fdd8]{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-a439fdd8],.profile-menu--profile .profile-phone[data-v-a439fdd8]{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-4fe10597] [class~=gap-24]>div:first-child{display:none}.audit-log-action-label[data-v-4fe10597]{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-4fe10597]::-webkit-scrollbar{display:none}.audit-log-operation-label-detail[data-v-4fe10597]{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-4fe10597]::-webkit-scrollbar{display:none}
|