@feedmepos/mf-hrm-portal 2.0.10-dev → 2.0.10
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-DICsmRKu.js +915 -0
- package/dist/{EmployeeList-B3qXFaOz.js → EmployeeList-BeTBQG6y.js} +164 -169
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +71 -0
- package/dist/HorizontalSplitter-o860F4xM.js +12 -0
- package/dist/Main-6YVJ8qeK.js +560 -0
- package/dist/{Main-urBwZXUq.js → Main-BSaeTSWh.js} +8 -7
- package/dist/{Main-JUX88mXA.js → Main-D9233aXd.js} +11 -10
- package/dist/PermissionSetList-vA7XmeDX.js +338 -0
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CrL1DmdL.js +3479 -0
- package/dist/{RoleList-Dl7042_3.js → RoleList-BwZRlJSm.js} +26 -24
- package/dist/TeamMemberList-DqMVgyU0.js +989 -0
- package/dist/{TimesheetList-B3cmnZN5.js → TimesheetList-HsH2fi2o.js} +11 -10
- package/dist/{app-DHFWqcG2.js → app-CvSQBSNk.js} +2376 -1092
- package/dist/app.js +2 -2
- package/dist/{dayjs.min-faWeeWGk.js → dayjs.min-Cje6yZS4.js} +1 -1
- package/dist/{employee-sOy9OKvU.js → employee-Bvza5QKq.js} +21 -20
- package/dist/index-CUPMZ2Nm.js +975 -0
- package/dist/{index-DNsMh7eu.js → index-J8WRP1Mb.js} +1 -1
- package/dist/{index-EeD0w_Es.js → iteration-tLtr3UA8.js} +3444 -4352
- package/dist/{lodash-CfsS7nDC.js → lodash-CrQQQutG.js} +1 -1
- package/dist/src/api/audit-log/index.d.ts +1 -0
- package/dist/src/api/grant-user/index.d.ts +8 -0
- package/dist/src/api/index.d.ts +3 -1
- package/dist/src/composables/useBasePermission.d.ts +37 -0
- package/dist/src/helpers/permission-set.d.ts +34 -5
- package/dist/src/helpers/permission-set.test.d.ts +1 -0
- package/dist/src/helpers/permission-sync.d.ts +12 -0
- package/dist/src/router/shared.d.ts +2 -1
- package/dist/src/stores/grant-user.d.ts +86 -0
- package/dist/src/types/grant-user.d.ts +27 -0
- package/dist/src/views/audit-log/components/AuditLogModuleTabs.vue.d.ts +17 -0
- package/dist/src/views/audit-log/constants.d.ts +30 -0
- package/dist/src/views/audit-log/locales/index.d.ts +244 -0
- package/dist/src/views/grant/GrantUserList.vue.d.ts +17 -0
- package/dist/src/views/grant/Main.vue.d.ts +2 -0
- package/dist/src/views/grant/components/GrantUserForm.vue.d.ts +17 -0
- package/dist/src/views/grant/locales/index.d.ts +232 -0
- package/dist/src/views/team/components/BasePermission.vue.d.ts +3 -3
- package/dist/style.css +1 -1
- package/dist/{team-CTYZ-AfE.js → team-eAkNf8XU.js} +1 -1
- package/dist/{timesheet-CP-usx78.js → timesheet-Cj5r4laf.js} +10 -9
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DpKptyzk.js → useAppStore-BFge6TcH.js} +1 -1
- package/dist/{useLoading-D0NWMSr4.js → useLoading-D5jjAdvm.js} +1 -1
- package/dist/{useReportPermissions-CtnMIyaq.js → useReportPermissions-BeIK2wRH.js} +12 -11
- package/dist/useRestaurantMap-e9fQJiLC.js +39 -0
- package/package.json +3 -3
- package/dist/AuditLogList-BqKDq3NZ.js +0 -492
- package/dist/PermissionSetList-BfCuoHa3.js +0 -327
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BYZbAUtK.js +0 -3334
- package/dist/TeamMemberList-BrZDh51J.js +0 -979
- package/dist/useRestaurantMap-D5BNPLKh.js +0 -107
package/dist/app.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { d as T } from "./dayjs.min-
|
|
1
|
+
import { d as T } from "./dayjs.min-Cje6yZS4.js";
|
|
2
2
|
import { defineStore as _, storeToRefs as U } from "pinia";
|
|
3
3
|
import { ref as I } from "vue";
|
|
4
4
|
import { useCoreStore as $ } from "@feedmepos/mf-common";
|
|
5
|
-
import { b as r, g as o,
|
|
6
|
-
import {
|
|
5
|
+
import { b as r, g as o, s as v } from "./iteration-tLtr3UA8.js";
|
|
6
|
+
import { t as b, i as S } from "./index-CUPMZ2Nm.js";
|
|
7
|
+
import { u as x } from "./useAppStore-BFge6TcH.js";
|
|
7
8
|
const n = {
|
|
8
9
|
async readEmployees() {
|
|
9
10
|
return o(await r().get("/pos-users"));
|
|
@@ -47,19 +48,19 @@ const n = {
|
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
async function i(e) {
|
|
50
|
-
const t = x().roles.value, { restaurants: d } = $(), M = e.reduce((u,
|
|
51
|
+
const t = x().roles.value, { restaurants: d } = $(), M = e.reduce((u, m) => {
|
|
51
52
|
var w;
|
|
52
|
-
const { _id:
|
|
53
|
-
restaurantId:
|
|
53
|
+
const { _id: f, restaurantId: l } = m, p = u.findIndex((s) => s._id === f), g = ((w = d.value.find((s) => s._id === l)) == null ? void 0 : w.profile.name) || "", c = t.find((s) => s._id === m.role), E = {
|
|
54
|
+
restaurantId: l,
|
|
54
55
|
restaurantName: g,
|
|
55
56
|
roleId: (c == null ? void 0 : c._id) || "",
|
|
56
57
|
roleName: (c == null ? void 0 : c.name) || ""
|
|
57
58
|
};
|
|
58
59
|
return p < 0 ? u.push({
|
|
59
|
-
...
|
|
60
|
-
since: T(S(
|
|
61
|
-
restaurants: [
|
|
62
|
-
}) : u[p].restaurants.some((s) => s.restaurantId ===
|
|
60
|
+
...m,
|
|
61
|
+
since: T(S(f)).format("DD/MM/YYYY"),
|
|
62
|
+
restaurants: [E]
|
|
63
|
+
}) : u[p].restaurants.some((s) => s.restaurantId === l) || (u[p].restaurants = v([...u[p].restaurants, E], {
|
|
63
64
|
selector: "restaurantName"
|
|
64
65
|
})), u;
|
|
65
66
|
}, []);
|
|
@@ -82,15 +83,15 @@ const D = _("employee", () => {
|
|
|
82
83
|
const a = await n.createEmployee(s);
|
|
83
84
|
e.value = await i(a);
|
|
84
85
|
}
|
|
85
|
-
async function
|
|
86
|
+
async function m(s, a) {
|
|
86
87
|
const y = await n.updateEmployee(s, a);
|
|
87
88
|
e.value = await i(y);
|
|
88
89
|
}
|
|
89
|
-
async function
|
|
90
|
+
async function f(s) {
|
|
90
91
|
const a = await n.deleteEmployee(s);
|
|
91
92
|
e.value = await i(a);
|
|
92
93
|
}
|
|
93
|
-
async function
|
|
94
|
+
async function l(s) {
|
|
94
95
|
const a = await n.deleteMasterEmployee(s);
|
|
95
96
|
e.value = await i(a);
|
|
96
97
|
}
|
|
@@ -106,7 +107,7 @@ const D = _("employee", () => {
|
|
|
106
107
|
const y = await n.migrateToMasterEmployee(s, a);
|
|
107
108
|
e.value = await i(y);
|
|
108
109
|
}
|
|
109
|
-
async function
|
|
110
|
+
async function E() {
|
|
110
111
|
try {
|
|
111
112
|
d.value = await b.readTeamMemberPosUserIds();
|
|
112
113
|
} catch (s) {
|
|
@@ -122,16 +123,16 @@ const D = _("employee", () => {
|
|
|
122
123
|
isLoading: t,
|
|
123
124
|
readEmployees: M,
|
|
124
125
|
createEmployee: u,
|
|
125
|
-
updateEmployee:
|
|
126
|
-
deleteEmployee:
|
|
126
|
+
updateEmployee: m,
|
|
127
|
+
deleteEmployee: f,
|
|
127
128
|
createMasterEmployee: p,
|
|
128
129
|
updateMasterEmployee: g,
|
|
129
|
-
deleteMasterEmployee:
|
|
130
|
+
deleteMasterEmployee: l,
|
|
130
131
|
migrateToMasterUser: c,
|
|
131
|
-
readTeamMemberPosUserIds:
|
|
132
|
+
readTeamMemberPosUserIds: E,
|
|
132
133
|
syncUsersMeta: w
|
|
133
134
|
};
|
|
134
|
-
}),
|
|
135
|
+
}), j = () => {
|
|
135
136
|
const e = D();
|
|
136
137
|
return {
|
|
137
138
|
...e,
|
|
@@ -140,5 +141,5 @@ const D = _("employee", () => {
|
|
|
140
141
|
};
|
|
141
142
|
export {
|
|
142
143
|
n as E,
|
|
143
|
-
|
|
144
|
+
j as u
|
|
144
145
|
};
|