@feedmepos/mf-hrm-portal 2.0.5 → 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-Bkl9koQT.js → AuditLogList-C23_MiyK.js} +7 -6
- package/dist/{EmployeeList-BnbjfqyP.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-CoVghvwW.js → Main-DC9H9bAs.js} +11 -10
- package/dist/{Main-8ZaM5D9M.js → Main-k56Iy_zg.js} +8 -7
- package/dist/{PermissionSetList-B0yqDASK.js → PermissionSetList-B8tJCNpR.js} +53 -52
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CXirNGg0.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BPJpVG8_.js} +588 -587
- package/dist/{RoleList-CiNle1dZ.js → RoleList-C5WA3Kxu.js} +26 -24
- package/dist/{TeamMemberList-5DyItOsQ.js → TeamMemberList-Ic-iWBHd.js} +10 -9
- package/dist/{TimesheetList-DxQ-vb_m.js → TimesheetList-DlGpcOUp.js} +11 -10
- package/dist/{app-CVfFuJ_U.js → app-D0xH_99A.js} +984 -713
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-CeMMJfCO.js → dayjs.min-C1rTVn8X.js} +1 -1
- package/dist/{employee-BsYVIIOi.js → employee-BK4sYiRy.js} +21 -20
- package/dist/index-C2ubYSVV.js +968 -0
- package/dist/{index-DIVnaoZ6.js → index-DSAB4vz3.js} +1 -1
- package/dist/{index-DwcKO5a4.js → iteration-BSGKcAZm.js} +3468 -4430
- package/dist/{lodash-DazWE7Hy.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/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/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/{team-C9sSArLP.js → team-B25hRkju.js} +1 -1
- package/dist/{timesheet-C0-tKt4w.js → timesheet-C8oy-bxz.js} +10 -9
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-4NX8u34B.js → useAppStore-WGnUS7Wm.js} +1 -1
- package/dist/{useLoading-BDG-so15.js → useLoading-BCi2g_rf.js} +1 -1
- package/dist/{useReportPermissions-1NZr3RRg.js → useReportPermissions--LOfl1e-.js} +12 -11
- package/dist/useRestaurantMap-e9fQJiLC.js +39 -0
- package/package.json +1 -1
- package/dist/useRestaurantMap-D5BNPLKh.js +0 -107
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { defineComponent as he, ref as T, computed as _, onMounted as _e, watch as ue, resolveComponent as y, createBlock as k, openBlock as v, unref as t, withCtx as b, createElementVNode as h, createVNode as p, createCommentVNode as me, createElementBlock as P, Fragment as W, renderList as ae, toDisplayString as M, h as V, createTextVNode as de, resolveDynamicComponent as ce, withModifiers as we, nextTick as pe } from "vue";
|
|
2
|
-
import { e as
|
|
2
|
+
import { e as w } from "./iteration-BSGKcAZm.js";
|
|
3
3
|
import { useI18n as ge, useCoreStore as be } from "@feedmepos/mf-common";
|
|
4
|
-
import { useSnackbar as ye, components as se, useDialog as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
4
|
+
import { useSnackbar as ye, components as se, useDialog as ke, useBreakpoints as Ue, FmButtonColorThemeVariant as ve, FmButtonVariant as Le } from "@feedmepos/ui-library";
|
|
5
|
+
import { _ as Ie } from "./app-D0xH_99A.js";
|
|
6
|
+
import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
|
+
import { e as Se, r as K, h as re, f as Pe, g as fe, a as Z } from "./index-C2ubYSVV.js";
|
|
8
|
+
import { u as Fe } from "./useAppStore-WGnUS7Wm.js";
|
|
9
|
+
import { u as xe } from "./useReportPermissions--LOfl1e-.js";
|
|
10
|
+
import { u as $e, a as Te } from "./useRestaurantMap-e9fQJiLC.js";
|
|
11
|
+
import { l as ee } from "./lodash-CeTePH4O.js";
|
|
12
|
+
import { _ as oe, a as Be } from "./FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js";
|
|
13
|
+
import { u as De } from "./useLoading-BCi2g_rf.js";
|
|
12
14
|
const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, Ne = { class: "space-y-8" }, Oe = { class: "space-y-8" }, Je = {
|
|
13
15
|
key: 0,
|
|
14
16
|
class: "w-50 ml-5 flex flex-row items-start"
|
|
@@ -27,7 +29,7 @@ const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, N
|
|
|
27
29
|
})), O = Fe(), J = ye(), G = De(J), { fetchReportPermissions: te, allReportPermissions: j, availableReportKeys: F } = xe(), q = ne, g = T(!1), z = () => {
|
|
28
30
|
g.value = !g.value, g.value && Y();
|
|
29
31
|
}, H = _(() => q.id ? l("hr.role.form.update") : l("hr.role.form.add")), Q = _(() => q.id ? l("common.update") : l("common.add")), X = _(() => {
|
|
30
|
-
const e =
|
|
32
|
+
const e = Se.filter(
|
|
31
33
|
(u) => u.subject !== w.F_RULE_SUBJECT.enum.report
|
|
32
34
|
).map((u) => K(u)), a = j.value.map((u) => K(u));
|
|
33
35
|
return [...e, ...a];
|
|
@@ -61,7 +63,7 @@ const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, N
|
|
|
61
63
|
});
|
|
62
64
|
function Y() {
|
|
63
65
|
var e;
|
|
64
|
-
s.value = C(), s.value.name = ((e = d.value) == null ? void 0 : e.name) ?? "", x.value ? (s.value.restaurantIds = U.value.map((a) => a._id), s.value.permissions = X.value.map((a) => a.value)) : d.value && (s.value.restaurantIds = d.value.restaurants.map((a) => a.id), s.value.permissions = d.value.permissions.map((a) => K(a).value).filter((a) => a.startsWith("report:") ? F.value.has(a.split(":")[1]) : !0), s.value.maxDiscountPercentage =
|
|
66
|
+
s.value = C(), s.value.name = ((e = d.value) == null ? void 0 : e.name) ?? "", x.value ? (s.value.restaurantIds = U.value.map((a) => a._id), s.value.permissions = X.value.map((a) => a.value)) : d.value && (s.value.restaurantIds = d.value.restaurants.map((a) => a.id), s.value.permissions = d.value.permissions.map((a) => K(a).value).filter((a) => a.startsWith("report:") ? F.value.has(a.split(":")[1]) : !0), s.value.maxDiscountPercentage = fe(
|
|
65
67
|
d.value.permissions
|
|
66
68
|
));
|
|
67
69
|
}
|
|
@@ -74,7 +76,7 @@ const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, N
|
|
|
74
76
|
restaurantIds: s.value.restaurantIds,
|
|
75
77
|
role: {
|
|
76
78
|
name: s.value.name,
|
|
77
|
-
permissions:
|
|
79
|
+
permissions: Pe(s.value.permissions, s.value.maxDiscountPercentage)
|
|
78
80
|
}
|
|
79
81
|
})), c = async () => {
|
|
80
82
|
const e = r.value;
|
|
@@ -114,7 +116,7 @@ const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, N
|
|
|
114
116
|
((u = d.value) == null ? void 0 : u.permissions.map((E) => K(E).value)) || C().permissions
|
|
115
117
|
) || !ee.isEqual(
|
|
116
118
|
s.value.maxDiscountPercentage,
|
|
117
|
-
d.value ?
|
|
119
|
+
d.value ? fe((A = d.value) == null ? void 0 : A.permissions) : C().maxDiscountPercentage
|
|
118
120
|
);
|
|
119
121
|
},
|
|
120
122
|
() => {
|
|
@@ -225,7 +227,7 @@ const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, N
|
|
|
225
227
|
class: "p-16"
|
|
226
228
|
}, {
|
|
227
229
|
default: b(() => [
|
|
228
|
-
p(
|
|
230
|
+
p(Be, {
|
|
229
231
|
label: n.title
|
|
230
232
|
}, {
|
|
231
233
|
default: b(() => [
|
|
@@ -295,7 +297,7 @@ const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, N
|
|
|
295
297
|
class: "flex"
|
|
296
298
|
}, Ze = {
|
|
297
299
|
class: "flex"
|
|
298
|
-
},
|
|
300
|
+
}, pa = /* @__PURE__ */ he({
|
|
299
301
|
__name: "RoleList",
|
|
300
302
|
setup(ne, {
|
|
301
303
|
expose: le
|
|
@@ -315,7 +317,7 @@ const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, N
|
|
|
315
317
|
content: () => V("div", [l("hr.role.tooltip.labels.permission"), ...o.filter((f) => f.subject === r).map((f) => V("div", ["- ", K(f).label]))]),
|
|
316
318
|
default: () => V(se.FmIcon, {
|
|
317
319
|
name: "info",
|
|
318
|
-
color:
|
|
320
|
+
color: ve.NeutralGray400
|
|
319
321
|
})
|
|
320
322
|
});
|
|
321
323
|
}
|
|
@@ -359,8 +361,8 @@ const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, N
|
|
|
359
361
|
class: "w-full flex justify-end items-center"
|
|
360
362
|
}, [V(se.FmButton, {
|
|
361
363
|
prependIcon: "delete",
|
|
362
|
-
variant:
|
|
363
|
-
textColor:
|
|
364
|
+
variant: Le.Tertiary,
|
|
365
|
+
textColor: ve.NeutralGray400,
|
|
364
366
|
disabled: re(o.row.original.permissions),
|
|
365
367
|
onClick: (r) => {
|
|
366
368
|
r.stopPropagation(), d(o.row.original);
|
|
@@ -369,7 +371,7 @@ const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, N
|
|
|
369
371
|
}], j = async (o) => {
|
|
370
372
|
var r;
|
|
371
373
|
B.value = o._id, await pe(), (r = s.value) == null || r.trigger();
|
|
372
|
-
}, F = Fe(), q =
|
|
374
|
+
}, F = Fe(), q = Te(), g = _(() => (F.roles.value || []).filter((c) => c.restaurants.some((i) => O.value.includes(i.id))).map((c) => {
|
|
373
375
|
const i = c.restaurants.map((f) => {
|
|
374
376
|
const L = q.value[f.id];
|
|
375
377
|
return {
|
|
@@ -390,9 +392,9 @@ const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, N
|
|
|
390
392
|
});
|
|
391
393
|
return f || D;
|
|
392
394
|
});
|
|
393
|
-
}), H =
|
|
395
|
+
}), H = ke(), Q = ye(), {
|
|
394
396
|
breakpoints: X
|
|
395
|
-
} =
|
|
397
|
+
} = Ue(), d = (o) => {
|
|
396
398
|
H.open({
|
|
397
399
|
title: l("hr.role.remove.title"),
|
|
398
400
|
message: l("hr.role.remove.message", {
|
|
@@ -444,7 +446,7 @@ const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, N
|
|
|
444
446
|
class: "w-[320px] xs:w-full",
|
|
445
447
|
autofocus: "",
|
|
446
448
|
placeholder: t(l)("hr.role.search.placeholder") + " / " + t(l)("hr.restaurant.search.placeholder")
|
|
447
|
-
}, null, 8, ["modelValue", "placeholder"])]), t(F).roles.value.length > 0 || t(F).isLoading.value ? (v(), k(
|
|
449
|
+
}, null, 8, ["modelValue", "placeholder"])]), t(F).roles.value.length > 0 || t(F).isLoading.value ? (v(), k(Ie, {
|
|
448
450
|
key: 0,
|
|
449
451
|
class: "overflow-auto"
|
|
450
452
|
}, {
|
|
@@ -484,7 +486,7 @@ const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, N
|
|
|
484
486
|
_: 1
|
|
485
487
|
})])]),
|
|
486
488
|
_: 1
|
|
487
|
-
})) : (v(), k(t(
|
|
489
|
+
})) : (v(), k(t(Ee), {
|
|
488
490
|
key: 1,
|
|
489
491
|
title: t(l)("hr.role.noData.title"),
|
|
490
492
|
subtitle: t(l)("hr.role.noData.subtitle")
|
|
@@ -493,5 +495,5 @@ const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, N
|
|
|
493
495
|
}
|
|
494
496
|
});
|
|
495
497
|
export {
|
|
496
|
-
|
|
498
|
+
pa as default
|
|
497
499
|
};
|
|
@@ -2,16 +2,17 @@ import { defineComponent as ae, ref as F, resolveComponent as _, createBlock as
|
|
|
2
2
|
import { useI18n as de, useCoreStore as ce, baseClientInstance as ge, RestaurantSelector as Ve } from "@feedmepos/mf-common";
|
|
3
3
|
import { useBreakpoints as Ne, useSnackbar as Be, useDialog as Te, components as Fe } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ze, S as xe } from "./SelectFilter-DUj7GBtT.js";
|
|
5
|
-
import { i as Se, f as qe, U as Ke, _ as Ge } from "./app-
|
|
5
|
+
import { i as Se, f as qe, U as Ke, _ as Ge } from "./app-D0xH_99A.js";
|
|
6
6
|
import { _ as We } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
7
|
import { u as De } from "./useSearch-B6WK1LBB.js";
|
|
8
|
-
import { u as Je } from "./useLoading-
|
|
9
|
-
import { g as Ue,
|
|
10
|
-
import "./index-
|
|
11
|
-
import
|
|
8
|
+
import { u as Je } from "./useLoading-BCi2g_rf.js";
|
|
9
|
+
import { g as Ue, d as Oe } from "./iteration-BSGKcAZm.js";
|
|
10
|
+
import { u as je, c as Xe, d as Qe, m as pe, j as Ae, p as we, k as Ye, l as Pe, n as Ze, o as He, s as et, q as tt, v as st, t as fe } from "./index-C2ubYSVV.js";
|
|
11
|
+
import "./index-DSAB4vz3.js";
|
|
12
|
+
import { u as Ee } from "./useAppStore-WGnUS7Wm.js";
|
|
12
13
|
/* empty css */
|
|
13
|
-
import { _ as ot, a as at } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { u as lt } from "./team-
|
|
14
|
+
import { _ as ot, a as at } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BPJpVG8_.js";
|
|
15
|
+
import { u as lt } from "./team-B25hRkju.js";
|
|
15
16
|
const nt = /* @__PURE__ */ ae({
|
|
16
17
|
__name: "BottomSheetMenu",
|
|
17
18
|
setup(o) {
|
|
@@ -679,7 +680,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
|
|
|
679
680
|
var H = /* @__PURE__ */ function(o) {
|
|
680
681
|
return o[o.ADD = 0] = "ADD", o[o.UPDATE = 1] = "UPDATE", o[o.CLOSED = 2] = "CLOSED", o;
|
|
681
682
|
}(H || {});
|
|
682
|
-
const
|
|
683
|
+
const fs = /* @__PURE__ */ ae({
|
|
683
684
|
__name: "TeamMemberList",
|
|
684
685
|
setup(o, {
|
|
685
686
|
expose: f
|
|
@@ -984,5 +985,5 @@ const ps = /* @__PURE__ */ ae({
|
|
|
984
985
|
}
|
|
985
986
|
});
|
|
986
987
|
export {
|
|
987
|
-
|
|
988
|
+
fs as default
|
|
988
989
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ref as d, computed as b, defineComponent as ce, onMounted as me, watch as X, resolveComponent as i, createElementBlock as B, openBlock as D, Fragment as Z, createVNode as l, createElementVNode as u, unref as n, withCtx as C, createCommentVNode as pe, toDisplayString as $, createTextVNode as ve, createBlock as z, isRef as fe, renderList as he, nextTick as ge } from "vue";
|
|
2
|
-
import { d as v } from "./dayjs.min-
|
|
2
|
+
import { d as v } from "./dayjs.min-C1rTVn8X.js";
|
|
3
3
|
import { useI18n as we, useCoreStore as ye, RestaurantSelector as be } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as _e, components as De } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as xe } from "./app-
|
|
5
|
+
import { _ as xe } from "./app-D0xH_99A.js";
|
|
6
6
|
import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
|
-
import { u as ke } from "./useLoading-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { u as
|
|
7
|
+
import { u as ke } from "./useLoading-BCi2g_rf.js";
|
|
8
|
+
import { c as Ce, s as Ve } from "./iteration-BSGKcAZm.js";
|
|
9
|
+
import { b as Fe } from "./index-C2ubYSVV.js";
|
|
10
|
+
import { u as Ye } from "./employee-BK4sYiRy.js";
|
|
11
|
+
import { u as Le } from "./timesheet-C8oy-bxz.js";
|
|
11
12
|
function Me(x, a) {
|
|
12
13
|
return ["years", "months"].find((S) => {
|
|
13
14
|
const k = x.startOf(S), f = x.endOf(S);
|
|
@@ -68,7 +69,7 @@ const Re = {
|
|
|
68
69
|
class: "flex items-start gap-8 flex-wrap xs:px-16"
|
|
69
70
|
}, qe = {
|
|
70
71
|
class: "flex items-center gap-8"
|
|
71
|
-
},
|
|
72
|
+
}, rt = /* @__PURE__ */ ce({
|
|
72
73
|
__name: "TimesheetList",
|
|
73
74
|
setup(x) {
|
|
74
75
|
const {
|
|
@@ -104,10 +105,10 @@ const Re = {
|
|
|
104
105
|
user: r[0].user.name,
|
|
105
106
|
code: w ? w.code : "",
|
|
106
107
|
timesheets: r,
|
|
107
|
-
total:
|
|
108
|
+
total: Fe(r.reduce((y, p) => y + p.totalMin, 0))
|
|
108
109
|
};
|
|
109
110
|
});
|
|
110
|
-
return
|
|
111
|
+
return Ve(e, {
|
|
111
112
|
selector: "user"
|
|
112
113
|
});
|
|
113
114
|
}), H = b(() => j.value.filter((t) => {
|
|
@@ -375,5 +376,5 @@ const Re = {
|
|
|
375
376
|
}
|
|
376
377
|
});
|
|
377
378
|
export {
|
|
378
|
-
|
|
379
|
+
rt as default
|
|
379
380
|
};
|