@feedmepos/mf-hrm-portal 2.0.23-dev → 2.0.24-dev.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.
- package/dist/AuditLogList-BetvGaDX.js +1060 -0
- package/dist/{EmployeeList-CLyzXVHu.js → EmployeeList-B-XHFRU-.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-DECstpL4.js → Main-0k0WaemL.js} +6 -6
- package/dist/{Main-B2a73bxV.js → Main-2OGCqAeO.js} +6 -6
- package/dist/{Main-miavlomK.js → Main-CjfEUkuJ.js} +9 -9
- package/dist/{PermissionSetList-Bwm1kvTZ.js → PermissionSetList-Cl5Zkj0c.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CXlFv5XV.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DhsRoS9v.js} +944 -944
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-AvJQ8FF0.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-DREzWx0l.js} +1 -1
- package/dist/{RoleList-DKSkfV3M.js → RoleList-CqxTqm13.js} +7 -7
- package/dist/SelectFilter-C61IZSID.js +269 -0
- package/dist/{TeamMemberList-BwGAzb5q.js → TeamMemberList-BVWthOPA.js} +57 -57
- package/dist/{TimesheetList-DWgsblFA.js → TimesheetList-Bh9v_qYt.js} +7 -7
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_d7ed31d7_lang-DIlDcQ8K.js → TimesheetList.vue_vue_type_style_index_0_scoped_d7ed31d7_lang-CLPUVVhu.js} +2 -2
- package/dist/{app-BjVOqAt4.js → app-CMYV9sz0.js} +27 -42
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-Cs7Dz0qO.js → dayjs.min-DlsortAX.js} +1 -1
- package/dist/{employee-BZNHhwz-.js → employee-walWoaes.js} +3 -3
- package/dist/{iteration-dOodV1U7.js → iteration-CzhHoG_z.js} +1 -1
- package/dist/{lodash-DcnVzoh_.js → lodash-DLFCPgMt.js} +1 -1
- package/dist/{rule-CUTGoTLu.js → rule-BqeyTmLz.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 -8
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CGruFhcg.js → useAppStore-BX_L8TWU.js} +1 -1
- package/dist/{useLoading-BJ29K6RW.js → useLoading-BlNSXpjY.js} +1 -1
- package/dist/{useReportPermissions-CDme7_5P.js → useReportPermissions-DiF4euxe.js} +3 -3
- package/package.json +2 -2
- package/dist/AuditLogList-DZNv14Ii.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-CzhHoG_z.js";
|
|
2
|
+
import { e as R, h as k, b as F, l as j, C as Z, d as J } from "./app-CMYV9sz0.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;
|
|
@@ -111,7 +111,7 @@ export declare const i18nMessages: {
|
|
|
111
111
|
business: string;
|
|
112
112
|
restaurant: string;
|
|
113
113
|
changeDetails: string;
|
|
114
|
-
|
|
114
|
+
actionDescription: string;
|
|
115
115
|
metadata: string;
|
|
116
116
|
reason: string;
|
|
117
117
|
resolvedFrom: string;
|
|
@@ -179,12 +179,12 @@ export declare const i18nMessages: {
|
|
|
179
179
|
payment: string;
|
|
180
180
|
menu: string;
|
|
181
181
|
crm: string;
|
|
182
|
+
other: string;
|
|
182
183
|
more: string;
|
|
183
184
|
};
|
|
184
185
|
columns: {
|
|
185
186
|
timestamp: string;
|
|
186
187
|
user: string;
|
|
187
|
-
role: string;
|
|
188
188
|
subject: string;
|
|
189
189
|
action: string;
|
|
190
190
|
operation: string;
|
|
@@ -244,7 +244,7 @@ export declare const i18nMessages: {
|
|
|
244
244
|
business: string;
|
|
245
245
|
restaurant: string;
|
|
246
246
|
changeDetails: string;
|
|
247
|
-
|
|
247
|
+
actionDescription: string;
|
|
248
248
|
metadata: string;
|
|
249
249
|
reason: string;
|
|
250
250
|
resolvedFrom: string;
|
|
@@ -313,12 +313,12 @@ export declare const i18nMessages: {
|
|
|
313
313
|
payment: string;
|
|
314
314
|
menu: string;
|
|
315
315
|
crm: string;
|
|
316
|
+
other: string;
|
|
316
317
|
more: string;
|
|
317
318
|
};
|
|
318
319
|
columns: {
|
|
319
320
|
timestamp: string;
|
|
320
321
|
user: string;
|
|
321
|
-
role: string;
|
|
322
322
|
subject: string;
|
|
323
323
|
action: string;
|
|
324
324
|
operation: string;
|
|
@@ -378,7 +378,7 @@ export declare const i18nMessages: {
|
|
|
378
378
|
business: string;
|
|
379
379
|
restaurant: string;
|
|
380
380
|
changeDetails: string;
|
|
381
|
-
|
|
381
|
+
actionDescription: string;
|
|
382
382
|
metadata: string;
|
|
383
383
|
reason: string;
|
|
384
384
|
resolvedFrom: string;
|
|
@@ -447,12 +447,12 @@ export declare const i18nMessages: {
|
|
|
447
447
|
payment: string;
|
|
448
448
|
menu: string;
|
|
449
449
|
crm: string;
|
|
450
|
+
other: string;
|
|
450
451
|
more: string;
|
|
451
452
|
};
|
|
452
453
|
columns: {
|
|
453
454
|
timestamp: string;
|
|
454
455
|
user: string;
|
|
455
|
-
role: string;
|
|
456
456
|
subject: string;
|
|
457
457
|
action: string;
|
|
458
458
|
operation: string;
|
|
@@ -512,7 +512,7 @@ export declare const i18nMessages: {
|
|
|
512
512
|
business: string;
|
|
513
513
|
restaurant: string;
|
|
514
514
|
changeDetails: string;
|
|
515
|
-
|
|
515
|
+
actionDescription: string;
|
|
516
516
|
metadata: string;
|
|
517
517
|
reason: string;
|
|
518
518
|
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-aca72ec9] [class~=gap-24]>div:first-child{display:none}.audit-log-action-label[data-v-aca72ec9]{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-aca72ec9]::-webkit-scrollbar{display:none}.audit-log-operation-label-detail[data-v-aca72ec9]{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-aca72ec9]::-webkit-scrollbar{display:none}
|