@feedmepos/mf-hrm-portal 2.0.6-dev.1 → 2.0.6
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-C23_MiyK.js → AuditLogList-mk1RbMXf.js} +6 -7
- package/dist/{EmployeeList-vXPEVqoh.js → EmployeeList-BLzCroKt.js} +169 -164
- package/dist/{Main-k56Iy_zg.js → Main-Iq4fp839.js} +7 -8
- package/dist/{Main-DC9H9bAs.js → Main-LIt4hYn8.js} +10 -11
- package/dist/{PermissionSetList-B8tJCNpR.js → PermissionSetList-CNvdnZEw.js} +52 -53
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BPJpVG8_.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DCT_Y6Am.js} +755 -756
- package/dist/{RoleList-C5WA3Kxu.js → RoleList-AMggFB4w.js} +24 -26
- package/dist/{TeamMemberList-Ic-iWBHd.js → TeamMemberList-DaWjvODe.js} +9 -10
- package/dist/{TimesheetList-DlGpcOUp.js → TimesheetList-Dp_1EjAA.js} +10 -11
- package/dist/{app-D0xH_99A.js → app-CCkFz3PM.js} +694 -959
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-C1rTVn8X.js → dayjs.min-DVRxgWXl.js} +1 -1
- package/dist/{employee-BK4sYiRy.js → employee-8mSXAzs-.js} +20 -21
- package/dist/{index-DSAB4vz3.js → index-C_69XbrV.js} +1 -1
- package/dist/{iteration-BSGKcAZm.js → index-Cq17YHgg.js} +4430 -3468
- package/dist/{lodash-CeTePH4O.js → lodash-J0KOvkWp.js} +1 -1
- package/dist/src/api/index.d.ts +1 -3
- package/dist/src/router/shared.d.ts +1 -2
- package/dist/{team-B25hRkju.js → team-CRqSHpKv.js} +1 -1
- package/dist/{timesheet-C8oy-bxz.js → timesheet-XhZUvI_q.js} +9 -10
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-WGnUS7Wm.js → useAppStore-CI8j71j-.js} +1 -1
- package/dist/{useLoading-BCi2g_rf.js → useLoading-DynadGXC.js} +1 -1
- package/dist/{useReportPermissions--LOfl1e-.js → useReportPermissions-BqGXho47.js} +11 -12
- package/dist/useRestaurantMap-D5BNPLKh.js +107 -0
- package/package.json +2 -2
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +0 -71
- package/dist/HorizontalSplitter-o860F4xM.js +0 -12
- package/dist/Main-CQWe1-SW.js +0 -599
- package/dist/index-C2ubYSVV.js +0 -968
- package/dist/src/api/grant-user/index.d.ts +0 -8
- package/dist/src/stores/grant-user.d.ts +0 -86
- package/dist/src/types/grant-user.d.ts +0 -27
- package/dist/src/views/grant/GrantUserList.vue.d.ts +0 -17
- package/dist/src/views/grant/Main.vue.d.ts +0 -2
- package/dist/src/views/grant/components/GrantUserForm.vue.d.ts +0 -17
- package/dist/src/views/grant/locales/index.d.ts +0 -232
- package/dist/useRestaurantMap-e9fQJiLC.js +0 -39
package/dist/app.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { d as T } from "./dayjs.min-
|
|
1
|
+
import { d as T } from "./dayjs.min-DVRxgWXl.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, s as v } from "./
|
|
6
|
-
import {
|
|
7
|
-
import { u as x } from "./useAppStore-WGnUS7Wm.js";
|
|
5
|
+
import { b as r, g as o, t as b, k as S, s as v } from "./index-Cq17YHgg.js";
|
|
6
|
+
import { u as x } from "./useAppStore-CI8j71j-.js";
|
|
8
7
|
const n = {
|
|
9
8
|
async readEmployees() {
|
|
10
9
|
return o(await r().get("/pos-users"));
|
|
@@ -48,19 +47,19 @@ const n = {
|
|
|
48
47
|
}
|
|
49
48
|
};
|
|
50
49
|
async function i(e) {
|
|
51
|
-
const t = x().roles.value, { restaurants: d } = $(), M = e.reduce((u,
|
|
50
|
+
const t = x().roles.value, { restaurants: d } = $(), M = e.reduce((u, l) => {
|
|
52
51
|
var w;
|
|
53
|
-
const { _id:
|
|
54
|
-
restaurantId:
|
|
52
|
+
const { _id: E, restaurantId: m } = l, p = u.findIndex((s) => s._id === E), g = ((w = d.value.find((s) => s._id === m)) == null ? void 0 : w.profile.name) || "", c = t.find((s) => s._id === l.role), f = {
|
|
53
|
+
restaurantId: m,
|
|
55
54
|
restaurantName: g,
|
|
56
55
|
roleId: (c == null ? void 0 : c._id) || "",
|
|
57
56
|
roleName: (c == null ? void 0 : c.name) || ""
|
|
58
57
|
};
|
|
59
58
|
return p < 0 ? u.push({
|
|
60
|
-
...
|
|
61
|
-
since: T(S(
|
|
62
|
-
restaurants: [
|
|
63
|
-
}) : u[p].restaurants.some((s) => s.restaurantId ===
|
|
59
|
+
...l,
|
|
60
|
+
since: T(S(E)).format("DD/MM/YYYY"),
|
|
61
|
+
restaurants: [f]
|
|
62
|
+
}) : u[p].restaurants.some((s) => s.restaurantId === m) || (u[p].restaurants = v([...u[p].restaurants, f], {
|
|
64
63
|
selector: "restaurantName"
|
|
65
64
|
})), u;
|
|
66
65
|
}, []);
|
|
@@ -83,15 +82,15 @@ const D = _("employee", () => {
|
|
|
83
82
|
const a = await n.createEmployee(s);
|
|
84
83
|
e.value = await i(a);
|
|
85
84
|
}
|
|
86
|
-
async function
|
|
85
|
+
async function l(s, a) {
|
|
87
86
|
const y = await n.updateEmployee(s, a);
|
|
88
87
|
e.value = await i(y);
|
|
89
88
|
}
|
|
90
|
-
async function
|
|
89
|
+
async function E(s) {
|
|
91
90
|
const a = await n.deleteEmployee(s);
|
|
92
91
|
e.value = await i(a);
|
|
93
92
|
}
|
|
94
|
-
async function
|
|
93
|
+
async function m(s) {
|
|
95
94
|
const a = await n.deleteMasterEmployee(s);
|
|
96
95
|
e.value = await i(a);
|
|
97
96
|
}
|
|
@@ -107,7 +106,7 @@ const D = _("employee", () => {
|
|
|
107
106
|
const y = await n.migrateToMasterEmployee(s, a);
|
|
108
107
|
e.value = await i(y);
|
|
109
108
|
}
|
|
110
|
-
async function
|
|
109
|
+
async function f() {
|
|
111
110
|
try {
|
|
112
111
|
d.value = await b.readTeamMemberPosUserIds();
|
|
113
112
|
} catch (s) {
|
|
@@ -123,16 +122,16 @@ const D = _("employee", () => {
|
|
|
123
122
|
isLoading: t,
|
|
124
123
|
readEmployees: M,
|
|
125
124
|
createEmployee: u,
|
|
126
|
-
updateEmployee:
|
|
127
|
-
deleteEmployee:
|
|
125
|
+
updateEmployee: l,
|
|
126
|
+
deleteEmployee: E,
|
|
128
127
|
createMasterEmployee: p,
|
|
129
128
|
updateMasterEmployee: g,
|
|
130
|
-
deleteMasterEmployee:
|
|
129
|
+
deleteMasterEmployee: m,
|
|
131
130
|
migrateToMasterUser: c,
|
|
132
|
-
readTeamMemberPosUserIds:
|
|
131
|
+
readTeamMemberPosUserIds: f,
|
|
133
132
|
syncUsersMeta: w
|
|
134
133
|
};
|
|
135
|
-
}),
|
|
134
|
+
}), R = () => {
|
|
136
135
|
const e = D();
|
|
137
136
|
return {
|
|
138
137
|
...e,
|
|
@@ -141,5 +140,5 @@ const D = _("employee", () => {
|
|
|
141
140
|
};
|
|
142
141
|
export {
|
|
143
142
|
n as E,
|
|
144
|
-
|
|
143
|
+
R as u
|
|
145
144
|
};
|
|
@@ -2,7 +2,7 @@ var oe = Object.defineProperty;
|
|
|
2
2
|
var se = (_, h, y) => h in _ ? oe(_, h, { enumerable: !0, configurable: !0, writable: !0, value: y }) : _[h] = y;
|
|
3
3
|
var ot = (_, h, y) => se(_, typeof h != "symbol" ? h + "" : h, y);
|
|
4
4
|
import { readonly as Nt, ref as Rt } from "vue";
|
|
5
|
-
import { c as st } from "./app-
|
|
5
|
+
import { c as st } from "./app-CCkFz3PM.js";
|
|
6
6
|
var Pt = { exports: {} };
|
|
7
7
|
(function(_, h) {
|
|
8
8
|
(function(y, p) {
|