@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,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as f, storeToRefs as v } from "pinia";
|
|
2
2
|
import { ref as b } from "vue";
|
|
3
3
|
import { useCoreStore as I, baseClientInstance as w } from "@feedmepos/mf-common";
|
|
4
|
-
import { g as l, b as d, s as R } from "./
|
|
4
|
+
import { g as l, b as d, s as R } from "./index-CmgH764t.js";
|
|
5
5
|
const p = {
|
|
6
6
|
async readRoles() {
|
|
7
7
|
return l(await d().get("/pos-roles"));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as I, isRef as L, watch as M } from "vue";
|
|
2
2
|
import { SnackbarPosition as y } from "@feedmepos/ui-library";
|
|
3
|
-
import { a as w, v } from "./useAppStore-
|
|
3
|
+
import { a as w, v } from "./useAppStore-C3SLn6_I.js";
|
|
4
4
|
const E = (r) => {
|
|
5
5
|
async function d(u, e) {
|
|
6
6
|
var l, a;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { computed as u, ref as r } from "vue";
|
|
2
|
-
import { e as l } from "./
|
|
3
|
-
import { useCoreStore as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const d = y();
|
|
2
|
+
import { e as y, a as l, R } from "./index-CmgH764t.js";
|
|
3
|
+
import { useCoreStore as h } from "@feedmepos/mf-common";
|
|
4
|
+
import "./app-CoFcOv4s.js";
|
|
5
|
+
const n = r([]), c = r(!1), t = r(!1), d = r(null);
|
|
6
|
+
function K() {
|
|
7
|
+
const m = h();
|
|
9
8
|
async function f() {
|
|
10
9
|
var o;
|
|
11
|
-
const s = (o =
|
|
12
|
-
if (s && (
|
|
10
|
+
const s = (o = m.currentBusiness.value) == null ? void 0 : o.id;
|
|
11
|
+
if (s && (d.value !== s && (n.value = [], c.value = !1, t.value = !1, d.value = s), !(c.value || t.value))) {
|
|
13
12
|
t.value = !0;
|
|
14
13
|
try {
|
|
15
|
-
n.value = await
|
|
14
|
+
n.value = await R.fetchReportPermissions(s), c.value = !0;
|
|
16
15
|
} catch (e) {
|
|
17
16
|
console.warn("Failed to fetch dynamic report permissions, using hardcoded only:", e), n.value = [];
|
|
18
17
|
} finally {
|
|
@@ -20,7 +19,7 @@ function L() {
|
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
|
-
const i =
|
|
22
|
+
const i = y.filter(
|
|
24
23
|
(s) => s.subject === l.F_RULE_SUBJECT.enum.report && s.conditions
|
|
25
24
|
), p = u(() => {
|
|
26
25
|
const s = new Set(
|
|
@@ -56,5 +55,5 @@ function L() {
|
|
|
56
55
|
};
|
|
57
56
|
}
|
|
58
57
|
export {
|
|
59
|
-
|
|
58
|
+
K as u
|
|
60
59
|
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { defineComponent as m, createElementBlock as n, openBlock as a, createElementVNode as i, renderSlot as r, createCommentVNode as l, toDisplayString as c, normalizeClass as d, createVNode as p, withCtx as f, computed as y } from "vue";
|
|
2
|
+
import { useI18n as h, useCoreStore as _ } from "@feedmepos/mf-common";
|
|
3
|
+
import { useDialog as b } from "@feedmepos/ui-library";
|
|
4
|
+
const x = { class: "space-y-8" }, k = { class: "flex items-center justify-between" }, $ = { class: "space-y-8" }, v = { class: "fm-typo-en-body-lg-600" }, C = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
7
|
+
}, I = /* @__PURE__ */ m({
|
|
8
|
+
__name: "FormItem",
|
|
9
|
+
props: {
|
|
10
|
+
label: {},
|
|
11
|
+
description: {}
|
|
12
|
+
},
|
|
13
|
+
setup(e) {
|
|
14
|
+
return (t, s) => (a(), n("div", x, [
|
|
15
|
+
i("div", k, [
|
|
16
|
+
i("div", $, [
|
|
17
|
+
i("p", v, c(e.label), 1),
|
|
18
|
+
e.description ? (a(), n("p", C, c(e.description), 1)) : l("", !0)
|
|
19
|
+
]),
|
|
20
|
+
r(t.$slots, "append")
|
|
21
|
+
]),
|
|
22
|
+
r(t.$slots, "default")
|
|
23
|
+
]));
|
|
24
|
+
}
|
|
25
|
+
}), g = /* @__PURE__ */ m({
|
|
26
|
+
__name: "FormColumn",
|
|
27
|
+
props: {
|
|
28
|
+
shrinkable: { type: Boolean }
|
|
29
|
+
},
|
|
30
|
+
setup(e) {
|
|
31
|
+
return (t, s) => (a(), n("div", {
|
|
32
|
+
class: d(["flex-1 flex flex-col space-y-24", { "min-h-0": e.shrinkable }])
|
|
33
|
+
}, [
|
|
34
|
+
r(t.$slots, "default")
|
|
35
|
+
], 2));
|
|
36
|
+
}
|
|
37
|
+
}), S = {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "flex flex-row justify-between items-center"
|
|
40
|
+
}, w = { class: "space-y-4" }, B = { class: "fm-typo-en-title-sm-600" }, D = {
|
|
41
|
+
key: 0,
|
|
42
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
43
|
+
}, M = /* @__PURE__ */ m({
|
|
44
|
+
__name: "FormSection",
|
|
45
|
+
props: {
|
|
46
|
+
title: {},
|
|
47
|
+
subTitle: {},
|
|
48
|
+
shrinkable: { type: Boolean }
|
|
49
|
+
},
|
|
50
|
+
setup(e) {
|
|
51
|
+
return (t, s) => (a(), n("div", {
|
|
52
|
+
class: d(["flex flex-col space-y-16", { "min-h-0": e.shrinkable }])
|
|
53
|
+
}, [
|
|
54
|
+
e.title ? (a(), n("div", S, [
|
|
55
|
+
i("div", w, [
|
|
56
|
+
i("p", B, c(e.title), 1),
|
|
57
|
+
e.subTitle ? (a(), n("p", D, c(e.subTitle), 1)) : l("", !0)
|
|
58
|
+
]),
|
|
59
|
+
r(t.$slots, "append-title")
|
|
60
|
+
])) : l("", !0),
|
|
61
|
+
p(g, { shrinkable: e.shrinkable }, {
|
|
62
|
+
default: f(() => [
|
|
63
|
+
r(t.$slots, "default")
|
|
64
|
+
]),
|
|
65
|
+
_: 3
|
|
66
|
+
}, 8, ["shrinkable"])
|
|
67
|
+
], 2));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
function N(e, t) {
|
|
71
|
+
const s = b(), { t: o } = h();
|
|
72
|
+
function u() {
|
|
73
|
+
e() ? s.open({
|
|
74
|
+
title: o("portalCommon.dismiss.title"),
|
|
75
|
+
message: o("portalCommon.dismiss.message"),
|
|
76
|
+
zIndex: 200,
|
|
77
|
+
primaryActions: {
|
|
78
|
+
text: o("portalCommon.dismiss.primaryActions"),
|
|
79
|
+
variant: "primary",
|
|
80
|
+
close: !0
|
|
81
|
+
},
|
|
82
|
+
secondaryActions: {
|
|
83
|
+
text: o("common.cancel"),
|
|
84
|
+
variant: "tertiary",
|
|
85
|
+
close: !0
|
|
86
|
+
}
|
|
87
|
+
}).onPrimary(() => {
|
|
88
|
+
t();
|
|
89
|
+
}) : t();
|
|
90
|
+
}
|
|
91
|
+
return u;
|
|
92
|
+
}
|
|
93
|
+
function T() {
|
|
94
|
+
const e = _();
|
|
95
|
+
return y(() => {
|
|
96
|
+
const s = {};
|
|
97
|
+
return e.restaurants.value.forEach((o) => {
|
|
98
|
+
s[o._id] = o;
|
|
99
|
+
}), s;
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
export {
|
|
103
|
+
M as _,
|
|
104
|
+
I as a,
|
|
105
|
+
T as b,
|
|
106
|
+
N as u
|
|
107
|
+
};
|
package/package.json
CHANGED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, createElementBlock as s, openBlock as o, createElementVNode as l, renderSlot as n, createCommentVNode as c, toDisplayString as a, normalizeClass as d, createVNode as m, withCtx as f } from "vue";
|
|
2
|
-
const p = { class: "space-y-8" }, y = { class: "flex items-center justify-between" }, h = { class: "space-y-8" }, u = { class: "fm-typo-en-body-lg-600" }, _ = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
5
|
-
}, w = /* @__PURE__ */ i({
|
|
6
|
-
__name: "FormItem",
|
|
7
|
-
props: {
|
|
8
|
-
label: {},
|
|
9
|
-
description: {}
|
|
10
|
-
},
|
|
11
|
-
setup(e) {
|
|
12
|
-
return (t, r) => (o(), s("div", p, [
|
|
13
|
-
l("div", y, [
|
|
14
|
-
l("div", h, [
|
|
15
|
-
l("p", u, a(e.label), 1),
|
|
16
|
-
e.description ? (o(), s("p", _, a(e.description), 1)) : c("", !0)
|
|
17
|
-
]),
|
|
18
|
-
n(t.$slots, "append")
|
|
19
|
-
]),
|
|
20
|
-
n(t.$slots, "default")
|
|
21
|
-
]));
|
|
22
|
-
}
|
|
23
|
-
}), b = /* @__PURE__ */ i({
|
|
24
|
-
__name: "FormColumn",
|
|
25
|
-
props: {
|
|
26
|
-
shrinkable: { type: Boolean }
|
|
27
|
-
},
|
|
28
|
-
setup(e) {
|
|
29
|
-
return (t, r) => (o(), s("div", {
|
|
30
|
-
class: d(["flex-1 flex flex-col space-y-24", { "min-h-0": e.shrinkable }])
|
|
31
|
-
}, [
|
|
32
|
-
n(t.$slots, "default")
|
|
33
|
-
], 2));
|
|
34
|
-
}
|
|
35
|
-
}), k = {
|
|
36
|
-
key: 0,
|
|
37
|
-
class: "flex flex-row justify-between items-center"
|
|
38
|
-
}, $ = { class: "space-y-4" }, x = { class: "fm-typo-en-title-sm-600" }, v = {
|
|
39
|
-
key: 0,
|
|
40
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
41
|
-
}, B = /* @__PURE__ */ i({
|
|
42
|
-
__name: "FormSection",
|
|
43
|
-
props: {
|
|
44
|
-
title: {},
|
|
45
|
-
subTitle: {},
|
|
46
|
-
shrinkable: { type: Boolean }
|
|
47
|
-
},
|
|
48
|
-
setup(e) {
|
|
49
|
-
return (t, r) => (o(), s("div", {
|
|
50
|
-
class: d(["flex flex-col space-y-16", { "min-h-0": e.shrinkable }])
|
|
51
|
-
}, [
|
|
52
|
-
e.title ? (o(), s("div", k, [
|
|
53
|
-
l("div", $, [
|
|
54
|
-
l("p", x, a(e.title), 1),
|
|
55
|
-
e.subTitle ? (o(), s("p", v, a(e.subTitle), 1)) : c("", !0)
|
|
56
|
-
]),
|
|
57
|
-
n(t.$slots, "append-title")
|
|
58
|
-
])) : c("", !0),
|
|
59
|
-
m(b, { shrinkable: e.shrinkable }, {
|
|
60
|
-
default: f(() => [
|
|
61
|
-
n(t.$slots, "default")
|
|
62
|
-
]),
|
|
63
|
-
_: 3
|
|
64
|
-
}, 8, ["shrinkable"])
|
|
65
|
-
], 2));
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
export {
|
|
69
|
-
B as _,
|
|
70
|
-
w as a
|
|
71
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as e, openBlock as o, createElementVNode as t } from "vue";
|
|
2
|
-
import { _ as l } from "./SelectFilter-DUj7GBtT.js";
|
|
3
|
-
const n = {};
|
|
4
|
-
function c(s, r) {
|
|
5
|
-
return o(), e("div", null, [...r[0] || (r[0] = [
|
|
6
|
-
t("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)
|
|
7
|
-
])]);
|
|
8
|
-
}
|
|
9
|
-
const i = /* @__PURE__ */ l(n, [["render", c]]);
|
|
10
|
-
export {
|
|
11
|
-
i as H
|
|
12
|
-
};
|