@feedmepos/mf-hrm-portal 2.1.1-dev.6 → 2.1.1-dev.7
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/ApprovalCodeList-CQApO-t4.js +728 -0
- package/dist/{AuditLogList-DrrL4vf4.js → AuditLogList-DH2ZvAVE.js} +3 -3
- package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-CBjO1MZo.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-B5OgqCR0.js} +2 -2
- package/dist/{EmployeeList-BMol4ah4.js → EmployeeList-B1Q4RH2r.js} +4 -4
- package/dist/{GrantUserList-CLBl7FZ-.js → GrantUserList-DURXYzRs.js} +3 -3
- package/dist/{Main-D_LwrBdZ.js → Main-B06aoNy1.js} +9 -9
- package/dist/{Main-DNOHZd3j.js → Main-BC7IPhbz.js} +5 -5
- package/dist/Main-BRrcfqXc.js +121 -0
- package/dist/{PermissionSetList-DLYrXFbz.js → PermissionSetList-CiVFvnlW.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Drcx0tL_.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BAmLIGEn.js} +805 -805
- package/dist/{RoleList-g8PjH_k2.js → RoleList-BVFWURdS.js} +7 -7
- package/dist/{TeamMemberList-B9aCagSc.js → TeamMemberList-DlurP2WR.js} +6 -6
- package/dist/{TimesheetList-C1IJhOYE.js → TimesheetList-C4G2Va4m.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CqtiVm1j.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-BJujYg6e.js} +2 -2
- package/dist/{app-DnOYVjuj.js → app-CGL_lSgW.js} +50 -35
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-Dxul0qTK.js → dayjs.min-BXDtus8O.js} +1 -1
- package/dist/{employee-sr65CZR7.js → employee-CVZUQI_y.js} +3 -3
- package/dist/{iteration-DIqDMvFa.js → iteration-BXcl549C.js} +1 -1
- package/dist/{lodash-CXlqXFmD.js → lodash-CmrNrQXn.js} +1 -1
- package/dist/{role-CE3NY-63.js → role-Ct8MPQeS.js} +1 -1
- package/dist/{rule-CEjrit6c.js → rule-M8SC_Jhl.js} +2 -2
- package/dist/src/types/approval-code.d.ts +29 -48
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-FVW_HwcL.js → useReportPermissions-COONOIe1.js} +3 -3
- package/package.json +1 -1
- package/dist/ApprovalCodeList-B1XHbhum.js +0 -757
- package/dist/Main-auigiuVZ.js +0 -122
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as Xe, ref as f, computed as h, onMounted as Vt, onBeforeUnmount as Et, watch as Q, resolveComponent as C, createElementBlock as M, openBlock as y, createBlock as he, createCommentVNode as N, createElementVNode as a, Fragment as Z, renderList as ie, withCtx as Y, createVNode as b, toDisplayString as u, unref as i, nextTick as Rt } from "vue";
|
|
2
|
-
import { d as x } from "./dayjs.min-
|
|
2
|
+
import { d as x } from "./dayjs.min-BXDtus8O.js";
|
|
3
3
|
import { useI18n as Qe, useCoreStore as Ct } from "@feedmepos/mf-common";
|
|
4
|
-
import { G as He, _ as Ut } from "./app-
|
|
4
|
+
import { G as He, _ as Ut } from "./app-CGL_lSgW.js";
|
|
5
5
|
import { components as We } from "@feedmepos/ui-library";
|
|
6
6
|
import { g as Ae, b as Fe } from "./restaurant-YOVMuuFY.js";
|
|
7
7
|
import { S as ge, _ as $t } from "./SelectFilter-ATOm0hdn.js";
|
|
8
8
|
import { _ as Nt } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
9
9
|
import { _ as Yt } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
10
|
-
import { t as Bt, p as Je } from "./rule-
|
|
10
|
+
import { t as Bt, p as Je } from "./rule-M8SC_Jhl.js";
|
|
11
11
|
import { defineStore as Kt } from "pinia";
|
|
12
12
|
const ne = [
|
|
13
13
|
{ key: "all", label: "All", subjectPrefixes: [] },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as B, ref as N, onMounted as te, nextTick as ne, onUnmounted as oe, resolveComponent as h, createElementBlock as g, openBlock as s, Fragment as U, createElementVNode as x, renderSlot as P, createCommentVNode as E, toDisplayString as ae, createVNode as le, normalizeStyle as ue, watch as W, defineAsyncComponent as re, computed as I, renderList as A, createBlock as p, withCtx as G, unref as D, resolveDynamicComponent as ie } from "vue";
|
|
2
|
-
import { e as H, f as se, U as j } from "./app-
|
|
2
|
+
import { e as H, f as se, U as j } from "./app-CGL_lSgW.js";
|
|
3
3
|
import { useI18n as de, useCoreStore as ce } from "@feedmepos/mf-common";
|
|
4
|
-
import { l as me } from "./lodash-
|
|
4
|
+
import { l as me } from "./lodash-CmrNrQXn.js";
|
|
5
5
|
const fe = { class: "flex items-center" }, ve = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "ml-8 fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
@@ -2,17 +2,17 @@ import { toRaw as je, defineComponent as Ae, ref as v, computed as x, watch as a
|
|
|
2
2
|
import { useI18n as De, useCoreStore as We } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Ne, components as ze, useDialog as Qe, useBreakpoints as Ye } from "@feedmepos/ui-library";
|
|
4
4
|
import { S as fe, _ as Ze } from "./SelectFilter-ATOm0hdn.js";
|
|
5
|
-
import { _ as Xe, a as ea } from "./app-
|
|
5
|
+
import { _ as Xe, a as ea } from "./app-CGL_lSgW.js";
|
|
6
6
|
import { _ as Re, u as aa, H as la } from "./FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js";
|
|
7
7
|
import { u as ta, _ as sa } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
8
8
|
import { _ as oa } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
9
|
import { u as ra, _ as Ue } from "./useDebounce-CWb5QR9G.js";
|
|
10
|
-
import { u as Ke, E as na } from "./employee-
|
|
10
|
+
import { u as Ke, E as na } from "./employee-CVZUQI_y.js";
|
|
11
11
|
import { u as Oe } from "./restaurant-YOVMuuFY.js";
|
|
12
|
-
import { l as ia } from "./lodash-
|
|
12
|
+
import { l as ia } from "./lodash-CmrNrQXn.js";
|
|
13
13
|
import { _ as $e } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
14
14
|
import { u as Be } from "./useLoading-BH02lYns.js";
|
|
15
|
-
import { u as Ee } from "./role-
|
|
15
|
+
import { u as Ee } from "./role-Ct8MPQeS.js";
|
|
16
16
|
/* empty css */
|
|
17
17
|
function Me(z) {
|
|
18
18
|
return JSON.parse(JSON.stringify(z));
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as X, ref as S, computed as f, watch as ue, resolveComponent as v, createElementBlock as D, openBlock as w, Fragment as E, renderSlot as de, createVNode as l, unref as s, withCtx as g, createElementVNode as o, toDisplayString as _, isRef as H, renderList as me, createBlock as pe, createCommentVNode as fe, withModifiers as W, createTextVNode as J, normalizeClass as ve, h as p } from "vue";
|
|
2
|
-
import { d as ge } from "./dayjs.min-
|
|
2
|
+
import { d as ge } from "./dayjs.min-BXDtus8O.js";
|
|
3
3
|
import { useI18n as Z } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as ee, components as K, useDialog as _e, useBreakpoints as ye, FmButtonVariant as O } from "@feedmepos/ui-library";
|
|
5
5
|
import { S as A } from "./SelectFilter-ATOm0hdn.js";
|
|
6
|
-
import { _ as he } from "./app-
|
|
6
|
+
import { _ as he } from "./app-CGL_lSgW.js";
|
|
7
7
|
import { _ as Q, u as Ue, H as xe } from "./FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js";
|
|
8
8
|
import { _ as be } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
9
|
import { u as te } from "./useLoading-BH02lYns.js";
|
|
10
10
|
import { u as ae } from "./grant-user-CQZaTzVt.js";
|
|
11
11
|
import { u as se } from "./restaurant-YOVMuuFY.js";
|
|
12
|
-
import { u as re } from "./role-
|
|
12
|
+
import { u as re } from "./role-Ct8MPQeS.js";
|
|
13
13
|
import { _ as Ve } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
14
14
|
const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, we = { class: "flex gap-8 items-center justify-start" }, Se = /* @__PURE__ */ X({
|
|
15
15
|
__name: "GrantUserForm",
|
|
@@ -5,18 +5,18 @@ import { useSnackbar as pf } from "@feedmepos/ui-library";
|
|
|
5
5
|
import { _ as df } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
6
6
|
import { _ as mf } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
7
7
|
import { u as gf } from "./restaurant-YOVMuuFY.js";
|
|
8
|
-
import { u as _f } from "./role-
|
|
8
|
+
import { u as _f } from "./role-Ct8MPQeS.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import "./employee-
|
|
11
|
-
import "./lodash-
|
|
10
|
+
import "./employee-CVZUQI_y.js";
|
|
11
|
+
import "./lodash-CmrNrQXn.js";
|
|
12
12
|
import "./useAppStore-DNTlIeMv.js";
|
|
13
|
-
import "./iteration-
|
|
13
|
+
import "./iteration-BXcl549C.js";
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { R as pt } from "./app-
|
|
16
|
-
import "./rule-
|
|
17
|
-
import "./useReportPermissions-
|
|
18
|
-
import "./dayjs.min-
|
|
19
|
-
import "./TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-
|
|
15
|
+
import { R as pt } from "./app-CGL_lSgW.js";
|
|
16
|
+
import "./rule-M8SC_Jhl.js";
|
|
17
|
+
import "./useReportPermissions-COONOIe1.js";
|
|
18
|
+
import "./dayjs.min-BXDtus8O.js";
|
|
19
|
+
import "./TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-BJujYg6e.js";
|
|
20
20
|
var Nn = {};
|
|
21
21
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
22
22
|
var qt = {};
|
|
@@ -5,12 +5,12 @@ import { _ as x } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lan
|
|
|
5
5
|
import { _ as F } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
6
|
import { u as w } from "./restaurant-YOVMuuFY.js";
|
|
7
7
|
import "@feedmepos/ui-library";
|
|
8
|
-
import "./rule-
|
|
9
|
-
import "./lodash-
|
|
10
|
-
import "./iteration-
|
|
8
|
+
import "./rule-M8SC_Jhl.js";
|
|
9
|
+
import "./lodash-CmrNrQXn.js";
|
|
10
|
+
import "./iteration-BXcl549C.js";
|
|
11
11
|
import "./useAppStore-DNTlIeMv.js";
|
|
12
|
-
import { R as v } from "./app-
|
|
13
|
-
import "./role-
|
|
12
|
+
import { R as v } from "./app-CGL_lSgW.js";
|
|
13
|
+
import "./role-Ct8MPQeS.js";
|
|
14
14
|
/* empty css */
|
|
15
15
|
import "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DVVSBIx2.js";
|
|
16
16
|
const $ = { class: "space-y-24" }, Z = /* @__PURE__ */ M({
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { defineComponent as D, computed as r, ref as w, watch as g, resolveComponent as _, createBlock as i, openBlock as m, withCtx as b, createElementVNode as A, createVNode as y, createCommentVNode as C, normalizeClass as F, toDisplayString as G, resolveDynamicComponent as U } from "vue";
|
|
2
|
+
import { useRoute as q, useRouter as x } from "vue-router";
|
|
3
|
+
import { useI18n as E, useCoreStore as $ } from "@feedmepos/mf-common";
|
|
4
|
+
import { useSnackbar as I } from "@feedmepos/ui-library";
|
|
5
|
+
import { _ as z } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
6
|
+
import { _ as M } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
7
|
+
import { u as j } from "./restaurant-YOVMuuFY.js";
|
|
8
|
+
import { u as H } from "./role-Ct8MPQeS.js";
|
|
9
|
+
import { u as J } from "./grant-user-CQZaTzVt.js";
|
|
10
|
+
import { u as K } from "./approval-code-Q4666xp5.js";
|
|
11
|
+
import { R as n } from "./app-CGL_lSgW.js";
|
|
12
|
+
const Q = { class: "space-y-24" }, ue = /* @__PURE__ */ D({
|
|
13
|
+
__name: "Main",
|
|
14
|
+
setup(W) {
|
|
15
|
+
const { t: a } = E(), c = q(), p = x(), S = I(), { sessionUser: B, currentBusiness: R } = $(), { readRestaurants: T } = j(), { readRoles: V } = H(), { readGrantUsers: h } = J(), { readApprovalCodes: P } = K(), o = r(() => {
|
|
16
|
+
var t;
|
|
17
|
+
return !!((t = B.value) != null && t.role.isAdmin);
|
|
18
|
+
}), d = w(), v = r({
|
|
19
|
+
get: () => c.name === n.POS_GRANT ? "grants" : "codes",
|
|
20
|
+
set: (t) => {
|
|
21
|
+
p.push({
|
|
22
|
+
name: t === "grants" ? n.POS_GRANT : n.APPROVAL_CODE,
|
|
23
|
+
query: p.currentRoute.value.query
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}), f = r(() => {
|
|
27
|
+
const t = [];
|
|
28
|
+
return o.value && t.push({
|
|
29
|
+
label: a("posAccess.tabs.grants"),
|
|
30
|
+
subTitle: a("posAccess.tabs.grantsDescription"),
|
|
31
|
+
value: "grants",
|
|
32
|
+
createButtonLabel: a("grantUser.actions.create"),
|
|
33
|
+
createButtonAction: () => {
|
|
34
|
+
var e;
|
|
35
|
+
return (e = d.value) == null ? void 0 : e.create();
|
|
36
|
+
}
|
|
37
|
+
}), t.push({
|
|
38
|
+
label: a("posAccess.tabs.codes"),
|
|
39
|
+
subTitle: a("posAccess.tabs.codesDescription"),
|
|
40
|
+
value: "codes",
|
|
41
|
+
createButtonLabel: a("approvalCode.actions.create"),
|
|
42
|
+
createButtonAction: () => {
|
|
43
|
+
var e;
|
|
44
|
+
return (e = d.value) == null ? void 0 : e.create();
|
|
45
|
+
}
|
|
46
|
+
}), t;
|
|
47
|
+
}), u = r(
|
|
48
|
+
() => f.value.find((t) => t.value === v.value) ?? f.value[0]
|
|
49
|
+
), k = r(() => o.value ? a("posAccess.title") : a("approvalCode.title"));
|
|
50
|
+
return g(
|
|
51
|
+
[o, () => c.name],
|
|
52
|
+
() => {
|
|
53
|
+
!o.value && c.name === n.POS_GRANT && p.replace({ name: n.APPROVAL_CODE, query: c.query });
|
|
54
|
+
},
|
|
55
|
+
{ immediate: !0 }
|
|
56
|
+
), g(
|
|
57
|
+
[R, o],
|
|
58
|
+
async () => {
|
|
59
|
+
var t;
|
|
60
|
+
if ((t = R.value) != null && t._id)
|
|
61
|
+
try {
|
|
62
|
+
const e = [T(), P()];
|
|
63
|
+
o.value && e.push(V(), h()), await Promise.all(e);
|
|
64
|
+
} catch (e) {
|
|
65
|
+
console.error("Failed to load POS access dependencies:", e), S.open({
|
|
66
|
+
message: e instanceof Error ? e.message : String(e),
|
|
67
|
+
type: "error"
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{ immediate: !0 }
|
|
72
|
+
), (t, e) => {
|
|
73
|
+
const L = _("FmSpacer"), O = _("FmTabs"), N = _("RouterView");
|
|
74
|
+
return m(), i(M, { heading: k.value }, {
|
|
75
|
+
"append-heading": b(() => {
|
|
76
|
+
var s;
|
|
77
|
+
return [
|
|
78
|
+
y(L),
|
|
79
|
+
(s = u.value) != null && s.createButtonLabel ? (m(), i(z, {
|
|
80
|
+
key: 0,
|
|
81
|
+
icon: "add",
|
|
82
|
+
label: u.value.createButtonLabel,
|
|
83
|
+
onClick: e[0] || (e[0] = (l) => u.value.createButtonAction())
|
|
84
|
+
}, null, 8, ["label"])) : C("", !0)
|
|
85
|
+
];
|
|
86
|
+
}),
|
|
87
|
+
default: b(() => {
|
|
88
|
+
var s;
|
|
89
|
+
return [
|
|
90
|
+
A("div", Q, [
|
|
91
|
+
A("div", null, [
|
|
92
|
+
o.value ? (m(), i(O, {
|
|
93
|
+
key: 0,
|
|
94
|
+
modelValue: v.value,
|
|
95
|
+
"onUpdate:modelValue": e[1] || (e[1] = (l) => v.value = l),
|
|
96
|
+
items: f.value
|
|
97
|
+
}, null, 8, ["modelValue", "items"])) : C("", !0),
|
|
98
|
+
A("p", {
|
|
99
|
+
class: F(["text-fm-color-typo-secondary", { "mt-8": o.value }])
|
|
100
|
+
}, G((s = u.value) == null ? void 0 : s.subTitle), 3)
|
|
101
|
+
]),
|
|
102
|
+
y(N, null, {
|
|
103
|
+
default: b(({ Component: l }) => [
|
|
104
|
+
(m(), i(U(l), {
|
|
105
|
+
ref_key: "activeListRef",
|
|
106
|
+
ref: d
|
|
107
|
+
}, null, 512))
|
|
108
|
+
]),
|
|
109
|
+
_: 1
|
|
110
|
+
})
|
|
111
|
+
])
|
|
112
|
+
];
|
|
113
|
+
}),
|
|
114
|
+
_: 1
|
|
115
|
+
}, 8, ["heading"]);
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
export {
|
|
120
|
+
ue as default
|
|
121
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as f, computed as h, watch as ue, resolveComponent as _, createBlock as de, openBlock as ee, unref as r, withCtx as C, createVNode as m, createElementVNode as y, toDisplayString as G, nextTick as pe, onMounted as fe, createElementBlock as ve, Fragment as Se, h as S } from "vue";
|
|
2
2
|
import { useI18n as se, useCoreStore as he } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as H } from "@feedmepos/ui-library";
|
|
4
|
-
import { v as Q, _ as _e } from "./app-
|
|
4
|
+
import { v as Q, _ as _e } from "./app-CGL_lSgW.js";
|
|
5
5
|
import { _ as be } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
6
6
|
import { u as ge, _ as Pe } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
7
|
-
import { u as ie, c as M, i as ae, p as Y, j as ye, d as we, m as L, o as xe, q as Fe, s as ke, n as Ce, w as Ie } from "./rule-
|
|
8
|
-
import { l as j } from "./lodash-
|
|
9
|
-
import { c as Re } from "./iteration-
|
|
7
|
+
import { u as ie, c as M, i as ae, p as Y, j as ye, d as we, m as L, o as xe, q as Fe, s as ke, n as Ce, w as Ie } from "./rule-M8SC_Jhl.js";
|
|
8
|
+
import { l as j } from "./lodash-CmrNrQXn.js";
|
|
9
|
+
import { c as Re } from "./iteration-BXcl549C.js";
|
|
10
10
|
import { u as Ve } from "./useLoading-BH02lYns.js";
|
|
11
|
-
import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BAmLIGEn.js";
|
|
12
12
|
import { A as je } from "./restaurant-YOVMuuFY.js";
|
|
13
13
|
const Te = { class: "flex w-full items-center justify-between" }, $e = { class: "fm-typo-en-title-md-600" }, Be = { class: "fm-typo-en-title-sm-600 mt-24" }, Le = { class: "flex items-center justify-start gap-8" }, Ae = /* @__PURE__ */ Z({
|
|
14
14
|
__name: "PermissionSetForm",
|