@feedmepos/mf-hrm-portal 2.0.8-dev → 2.0.8-dev.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-CNrMFE7u.js +708 -0
- package/dist/{EmployeeList-O6XTYBcz.js → EmployeeList-cOmlbt40.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-XEb1ECXG.js → Main-BDXOkOE2.js} +11 -10
- package/dist/Main-BJh3lH16.js +560 -0
- package/dist/{Main--bRTC1IR.js → Main-C3koRp1u.js} +8 -7
- package/dist/PermissionSetList-CLJn0V0J.js +338 -0
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bcr-EX6B.js +3471 -0
- package/dist/{RoleList-BeB1etH6.js → RoleList-Bd3v0EoJ.js} +26 -24
- package/dist/TeamMemberList-CbfbIqYV.js +989 -0
- package/dist/{TimesheetList-DNzuykEu.js → TimesheetList-DkJWAHEN.js} +11 -10
- package/dist/{app-BovCLczm.js → app-CBCdQFuQ.js} +1458 -1005
- package/dist/app.js +2 -2
- package/dist/{dayjs.min-dxVeOXk_.js → dayjs.min-D-dyRkoG.js} +1 -1
- package/dist/{employee-DGiDGhcK.js → employee-BUIgpjQN.js} +21 -20
- package/dist/{index-CQ26ps7Z.js → index-BMJS_Lkf.js} +1 -1
- package/dist/index-CPrEayXj.js +968 -0
- package/dist/{index-C0yiZ_7g.js → iteration-CsLWDBUl.js} +3444 -4352
- package/dist/{lodash-CBlFHm6b.js → lodash-B9IFDgiG.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/composables/useBasePermission.d.ts +37 -0
- package/dist/src/helpers/permission-set.d.ts +26 -4
- 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/locales/index.d.ts +140 -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-BqxJ-gNb.js → team-6mA14lfK.js} +1 -1
- package/dist/{timesheet-BVR_FxsT.js → timesheet-DG2p1hTy.js} +10 -9
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-gvdZApLV.js → useAppStore-CmUOIsdB.js} +1 -1
- package/dist/{useLoading-CCzb5k4G.js → useLoading-Ct9N6Ir6.js} +1 -1
- package/dist/{useReportPermissions-9TaHhs9I.js → useReportPermissions-D_KEL6RC.js} +12 -11
- package/dist/useRestaurantMap-e9fQJiLC.js +39 -0
- package/package.json +2 -2
- package/dist/AuditLogList-Dp5B1jR-.js +0 -492
- package/dist/PermissionSetList-DAwnZ-Gu.js +0 -327
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bx7A0p-f.js +0 -3333
- package/dist/TeamMemberList-BKCsNEuQ.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-D-dyRkoG.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-CsLWDBUl.js";
|
|
6
|
+
import { t as b, i as S } from "./index-CPrEayXj.js";
|
|
7
|
+
import { u as x } from "./useAppStore-CmUOIsdB.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
|
};
|
|
@@ -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-CBCdQFuQ.js";
|
|
6
6
|
var Pt = { exports: {} };
|
|
7
7
|
(function(_, h) {
|
|
8
8
|
(function(y, p) {
|