@feedmepos/mf-hrm-portal 2.1.1-dev.7 → 2.2.0-dev
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/{ApprovalCodeList-CQApO-t4.js → ApprovalCodeList-Cwy-Rn90.js} +2 -2
- package/dist/{AuditLogList-DH2ZvAVE.js → AuditLogList-CfDEZ6Z-.js} +3 -3
- package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-B5OgqCR0.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-BTDBRB1-.js} +2 -2
- package/dist/{EmployeeList-B1Q4RH2r.js → EmployeeList-DJrCBYvi.js} +6 -4
- package/dist/{GrantUserList-DURXYzRs.js → GrantUserList-UgQBjh54.js} +3 -3
- package/dist/{Main-B06aoNy1.js → Main-B5YknOhi.js} +9 -9
- package/dist/{Main-BC7IPhbz.js → Main-BnWK_GkW.js} +5 -5
- package/dist/{Main-BRrcfqXc.js → Main-DQXiP6Io.js} +2 -2
- package/dist/{PermissionSetList-CiVFvnlW.js → PermissionSetList-CfPZPmfV.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BAmLIGEn.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CPk4KJUW.js} +985 -985
- package/dist/{RoleList-BVFWURdS.js → RoleList-CHnu2j25.js} +7 -7
- package/dist/{TeamMemberList-DlurP2WR.js → TeamMemberList-DprMQ_8g.js} +6 -6
- package/dist/{TimesheetList-C4G2Va4m.js → TimesheetList-D5G1dJfp.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-BJujYg6e.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-DFfYiBBf.js} +2 -2
- package/dist/{app-CGL_lSgW.js → app-BhF0Kk5X.js} +111 -107
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-BXDtus8O.js → dayjs.min-Do1gXFxN.js} +1 -1
- package/dist/{employee-CVZUQI_y.js → employee-BRCSs9t_.js} +3 -3
- package/dist/{iteration-BXcl549C.js → iteration-C2XLVxL1.js} +1 -1
- package/dist/{lodash-CmrNrQXn.js → lodash-eudyY8-f.js} +1 -1
- package/dist/{role-Ct8MPQeS.js → role-CSL6Qv8l.js} +1 -1
- package/dist/{rule-M8SC_Jhl.js → rule-D3DPWTm1.js} +20 -12
- package/dist/src/views/hr/locales/index.d.ts +4 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-COONOIe1.js → useReportPermissions-CSdIiY_7.js} +3 -3
- package/package.json +2 -2
package/dist/app.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as g } from "./dayjs.min-
|
|
1
|
+
import { d as g } from "./dayjs.min-Do1gXFxN.js";
|
|
2
2
|
import { defineStore as $, storeToRefs as T } from "pinia";
|
|
3
3
|
import { ref as m } from "vue";
|
|
4
|
-
import { s as E } from "./iteration-
|
|
4
|
+
import { s as E } from "./iteration-C2XLVxL1.js";
|
|
5
5
|
import { b as i, g as f, u as w } from "./restaurant-YOVMuuFY.js";
|
|
6
6
|
import { i as v } from "./utils-BZkjJbju.js";
|
|
7
|
-
import { u as _ } from "./role-
|
|
7
|
+
import { u as _ } from "./role-CSL6Qv8l.js";
|
|
8
8
|
const o = {
|
|
9
9
|
async readEmployees() {
|
|
10
10
|
return f(await i().get("/pos-users"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as B } from "./app-
|
|
1
|
+
import { c as B } from "./app-BhF0Kk5X.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,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as S, storeToRefs as _ } from "pinia";
|
|
2
2
|
import { ref as w } from "vue";
|
|
3
3
|
import { useCoreStore as g } from "@feedmepos/mf-common";
|
|
4
|
-
import { s as y } from "./iteration-
|
|
4
|
+
import { s as y } from "./iteration-C2XLVxL1.js";
|
|
5
5
|
import { g as d, b as f, u as I } from "./restaurant-YOVMuuFY.js";
|
|
6
6
|
const R = {
|
|
7
7
|
async readRoles() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as W, c as Z, e as y } from "./iteration-
|
|
2
|
-
import { h as A, P as V, d as _, v as F, n as j, b as q } from "./app-
|
|
1
|
+
import { s as W, c as Z, e as y } from "./iteration-C2XLVxL1.js";
|
|
2
|
+
import { h as A, P as V, d as _, v as F, n as j, b as q } from "./app-BhF0Kk5X.js";
|
|
3
3
|
import { s as ee } from "./utils-BZkjJbju.js";
|
|
4
4
|
import { g as b, b as v, q as k, u as ne } from "./restaurant-YOVMuuFY.js";
|
|
5
5
|
import { defineStore as z, storeToRefs as K } from "pinia";
|
|
@@ -35,6 +35,14 @@ const L = [
|
|
|
35
35
|
inverted: !1,
|
|
36
36
|
reason: null
|
|
37
37
|
},
|
|
38
|
+
{
|
|
39
|
+
label: "",
|
|
40
|
+
subject: "order",
|
|
41
|
+
actions: ["update"],
|
|
42
|
+
conditions: { operation: "waiveServiceCharge" },
|
|
43
|
+
inverted: !1,
|
|
44
|
+
reason: null
|
|
45
|
+
},
|
|
38
46
|
{
|
|
39
47
|
label: "",
|
|
40
48
|
subject: "order",
|
|
@@ -792,7 +800,7 @@ const P = "/permission-assignments", w = {
|
|
|
792
800
|
await k().get(`/report-query/hrm/${e}/reports`, { params: t })
|
|
793
801
|
);
|
|
794
802
|
}
|
|
795
|
-
},
|
|
803
|
+
}, C = S([]), T = S(!1), R = S(!1), $ = S(null), x = S(null), J = S(!1);
|
|
796
804
|
function pe() {
|
|
797
805
|
const e = X();
|
|
798
806
|
async function n() {
|
|
@@ -800,7 +808,7 @@ function pe() {
|
|
|
800
808
|
const o = (s = e.currentBusiness.value) == null ? void 0 : s.id;
|
|
801
809
|
if (!o) return;
|
|
802
810
|
const i = localStorage.getItem("locale");
|
|
803
|
-
if ($.value !== o && (
|
|
811
|
+
if ($.value !== o && (C.value = [], T.value = !1, R.value = !1, $.value = o, J.value = !1), !(T.value && x.value === i)) {
|
|
804
812
|
if (R.value) {
|
|
805
813
|
J.value = !0;
|
|
806
814
|
return;
|
|
@@ -809,16 +817,16 @@ function pe() {
|
|
|
809
817
|
try {
|
|
810
818
|
const c = await fe.fetchReportPermissionsForPortal(o, i);
|
|
811
819
|
if ($.value !== o) return;
|
|
812
|
-
|
|
820
|
+
C.value = c, T.value = !0, x.value = i;
|
|
813
821
|
} catch (c) {
|
|
814
822
|
if ($.value !== o) return;
|
|
815
|
-
console.warn("Failed to fetch custom report permissions:", c),
|
|
823
|
+
console.warn("Failed to fetch custom report permissions:", c), C.value = [];
|
|
816
824
|
} finally {
|
|
817
825
|
$.value === o && (R.value = !1, J.value && (J.value = !1, await n()));
|
|
818
826
|
}
|
|
819
827
|
}
|
|
820
828
|
}
|
|
821
|
-
const t = U(() =>
|
|
829
|
+
const t = U(() => C.value.map(
|
|
822
830
|
(o) => o.isDefault ? {
|
|
823
831
|
label: o.name,
|
|
824
832
|
subject: `business::report::reports::${o.permissionKey}`,
|
|
@@ -841,7 +849,7 @@ function pe() {
|
|
|
841
849
|
fetchCustomReportPermissions: n,
|
|
842
850
|
customReportPermissions: t,
|
|
843
851
|
isLoading: U(() => R.value),
|
|
844
|
-
isLoaded: U(() =>
|
|
852
|
+
isLoaded: U(() => T.value)
|
|
845
853
|
};
|
|
846
854
|
}
|
|
847
855
|
function I(e) {
|
|
@@ -876,7 +884,7 @@ function I(e) {
|
|
|
876
884
|
}
|
|
877
885
|
const be = Object.freeze(
|
|
878
886
|
Object.values(q)
|
|
879
|
-
),
|
|
887
|
+
), Ce = {
|
|
880
888
|
async readTeamMembers() {
|
|
881
889
|
return b(
|
|
882
890
|
await v().get("/portal-users")
|
|
@@ -923,7 +931,7 @@ const be = Object.freeze(
|
|
|
923
931
|
return b(await v().get("/portal-users")).map((n) => n.posUserId);
|
|
924
932
|
}
|
|
925
933
|
};
|
|
926
|
-
function
|
|
934
|
+
function Te(e, n, t) {
|
|
927
935
|
if (e.some((c) => c.subject === "all")) return "All";
|
|
928
936
|
const o = (t ?? L).filter(
|
|
929
937
|
(c) => c.subject === n
|
|
@@ -1032,7 +1040,7 @@ export {
|
|
|
1032
1040
|
Q as P,
|
|
1033
1041
|
fe as R,
|
|
1034
1042
|
Le as a,
|
|
1035
|
-
|
|
1043
|
+
Te as b,
|
|
1036
1044
|
H as c,
|
|
1037
1045
|
le as d,
|
|
1038
1046
|
L as e,
|
|
@@ -1050,7 +1058,7 @@ export {
|
|
|
1050
1058
|
Ne as q,
|
|
1051
1059
|
O as r,
|
|
1052
1060
|
_e as s,
|
|
1053
|
-
|
|
1061
|
+
Ce as t,
|
|
1054
1062
|
te as u,
|
|
1055
1063
|
me as v,
|
|
1056
1064
|
Se as w,
|
|
@@ -117,6 +117,7 @@ export declare const i18nMessages: {
|
|
|
117
117
|
"order:discount": string;
|
|
118
118
|
"order:changePrice": string;
|
|
119
119
|
"order:void": string;
|
|
120
|
+
"order:waiveServiceCharge": string;
|
|
120
121
|
"order:payment": string;
|
|
121
122
|
"order:claimDeposit": string;
|
|
122
123
|
"order:resend": string;
|
|
@@ -321,6 +322,7 @@ export declare const i18nMessages: {
|
|
|
321
322
|
"order:discount": string;
|
|
322
323
|
"order:changePrice": string;
|
|
323
324
|
"order:void": string;
|
|
325
|
+
"order:waiveServiceCharge": string;
|
|
324
326
|
"order:payment": string;
|
|
325
327
|
"order:claimDeposit": string;
|
|
326
328
|
"order:resend": string;
|
|
@@ -525,6 +527,7 @@ export declare const i18nMessages: {
|
|
|
525
527
|
"order:discount": string;
|
|
526
528
|
"order:changePrice": string;
|
|
527
529
|
"order:void": string;
|
|
530
|
+
"order:waiveServiceCharge": string;
|
|
528
531
|
"order:payment": string;
|
|
529
532
|
"order:claimDeposit": string;
|
|
530
533
|
"order:resend": string;
|
|
@@ -728,6 +731,7 @@ export declare const i18nMessages: {
|
|
|
728
731
|
"order:discount": string;
|
|
729
732
|
"order:changePrice": string;
|
|
730
733
|
"order:void": string;
|
|
734
|
+
"order:waiveServiceCharge": string;
|
|
731
735
|
"order:payment": string;
|
|
732
736
|
"order:claimDeposit": string;
|
|
733
737
|
"order:resend": string;
|