@feedmepos/mf-hrm-portal 2.0.6-dev → 2.0.6-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-BxigxQv3.js → AuditLogList-C23_MiyK.js} +31 -30
- package/dist/{EmployeeList-DyvqwZtw.js → EmployeeList-vXPEVqoh.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-CQWe1-SW.js +599 -0
- package/dist/{Main-B8tSMq-U.js → Main-DC9H9bAs.js} +11 -10
- package/dist/{Main-CtH5MCty.js → Main-k56Iy_zg.js} +8 -7
- package/dist/PermissionSetList-B8tJCNpR.js +338 -0
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BPJpVG8_.js +3356 -0
- package/dist/{RoleList-jykDD_zm.js → RoleList-C5WA3Kxu.js} +26 -24
- package/dist/TeamMemberList-Ic-iWBHd.js +989 -0
- package/dist/{TimesheetList-Bk1XF9xy.js → TimesheetList-DlGpcOUp.js} +11 -10
- package/dist/{app-BPlaahxK.js → app-D0xH_99A.js} +1310 -937
- package/dist/app.js +2 -2
- package/dist/{dayjs.min-LweNOSZ_.js → dayjs.min-C1rTVn8X.js} +1 -1
- package/dist/{employee-DPfiL6rd.js → employee-BK4sYiRy.js} +21 -20
- package/dist/index-C2ubYSVV.js +968 -0
- package/dist/{index-BAhsHYNv.js → index-DSAB4vz3.js} +1 -1
- package/dist/{index-CBxn7cxI.js → iteration-BSGKcAZm.js} +3416 -4256
- package/dist/{lodash-D1uG3PY3.js → lodash-CeTePH4O.js} +1 -1
- package/dist/src/api/grant-user/index.d.ts +8 -0
- package/dist/src/api/index.d.ts +3 -1
- package/dist/src/api/permission-assignment/index.d.ts +3 -0
- package/dist/src/api/report-query/index.d.ts +1 -0
- package/dist/src/composables/useCustomReportPermissions.d.ts +7 -0
- package/dist/src/helpers/permission-set.d.ts +32 -1
- package/dist/src/helpers/permission-set.test.d.ts +1 -0
- package/dist/src/helpers/rule.d.ts +4 -1
- 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/types/report-query.d.ts +1 -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 +17 -0
- package/dist/{team-B1osnB4U.js → team-B25hRkju.js} +1 -1
- package/dist/{timesheet-rte2utJf.js → timesheet-C8oy-bxz.js} +10 -9
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CqrjwnF_.js → useAppStore-WGnUS7Wm.js} +1 -1
- package/dist/{useLoading-B5IjfVEP.js → useLoading-BCi2g_rf.js} +1 -1
- package/dist/useReportPermissions--LOfl1e-.js +60 -0
- package/dist/useRestaurantMap-e9fQJiLC.js +39 -0
- package/package.json +2 -2
- package/dist/PermissionSetList-DCONmOgn.js +0 -323
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-07Dsea27.js +0 -3092
- package/dist/TeamMemberList-DMrPgF1l.js +0 -973
- package/dist/useReportPermissions-C4Q29AQJ.js +0 -65
- 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-C1rTVn8X.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-BSGKcAZm.js";
|
|
6
|
+
import { t as b, i as S } from "./index-C2ubYSVV.js";
|
|
7
|
+
import { u as x } from "./useAppStore-WGnUS7Wm.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
|
};
|