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