@feedmepos/mf-hrm-portal 2.1.1-dev.3 → 2.1.1-dev.5
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-CXJyMKEg.js +757 -0
- package/dist/{AuditLogList-Q4L5Te8O.js → AuditLogList-CXUkbDyT.js} +3 -3
- package/dist/{EmployeeList-GtKmJZbf.js → EmployeeList-BSfUFTcN.js} +4 -4
- package/dist/{GrantUserList-CnLjOi5_.js → GrantUserList-DKP4MBQM.js} +175 -182
- package/dist/Main-CblWfQk_.js +122 -0
- package/dist/{Main-cskEZ3k_.js → Main-CyCfz4ka.js} +9 -9
- package/dist/{Main-DLlpEU3j.js → Main-Cz1pfe2k.js} +5 -5
- package/dist/{PermissionSetList-C2fK2pTz.js → PermissionSetList-BwyblSeE.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CMh0DL1_.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BJ-PZ2Nv.js} +599 -599
- package/dist/{RoleList-CcuT1ERb.js → RoleList-CXYgCmHp.js} +6 -6
- package/dist/{TeamMemberList-Dfs2iNdC.js → TeamMemberList-CnLbqaPS.js} +6 -6
- package/dist/{TimesheetList-B1H_6zfP.js → TimesheetList-s_bP5OGA.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-DeTpbaRk.js → TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-BCLv-2Re.js} +2 -2
- package/dist/{app-DX-PG6wx.js → app-BP0oihBR.js} +783 -752
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-BJrHE7oz.js → dayjs.min-BTSZLci9.js} +1 -1
- package/dist/{employee-BJcqtqLM.js → employee-BPv1j6T4.js} +3 -3
- package/dist/{iteration-Cfaqt-0s.js → iteration-BNA1cEos.js} +1 -1
- package/dist/{lodash-ClKqCmlZ.js → lodash-DKG9IyB-.js} +1 -1
- package/dist/{role-CR_-nBDY.js → role-BS3LFO8u.js} +1 -1
- package/dist/{rule-BB-3S-2R.js → rule-DaSLVZWm.js} +2 -2
- package/dist/src/stores/approval-code.d.ts +6 -6
- package/dist/src/types/approval-code.d.ts +60 -20
- package/dist/src/views/approval-code/ApprovalCodeList.vue.d.ts +1 -1
- package/dist/src/views/approval-code/components/ApprovalCodeCreatedDialog.vue.d.ts +9 -0
- package/dist/src/views/approval-code/components/ApprovalCodeForm.vue.d.ts +6 -1
- package/dist/src/views/approval-code/locales/index.d.ts +44 -12
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-ybHA26cJ.js → useReportPermissions-J3-DjopO.js} +3 -3
- package/package.json +1 -1
- package/dist/ApprovalCodeList-BH5sgVMU.js +0 -638
- package/dist/Main-Cn7Dawg4.js +0 -120
package/dist/Main-Cn7Dawg4.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { defineComponent as U, computed as n, ref as R, watch as C, resolveComponent as _, createBlock as i, openBlock as m, withCtx as p, createElementVNode as w, createCommentVNode as S, createVNode as y, resolveDynamicComponent as F, createTextVNode as G, toDisplayString as q } from "vue";
|
|
2
|
-
import { useRoute as x, useRouter as E } from "vue-router";
|
|
3
|
-
import { useI18n as $, useCoreStore as I } from "@feedmepos/mf-common";
|
|
4
|
-
import { useSnackbar as M } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as j } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
6
|
-
import { _ as z } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
7
|
-
import { u as H } from "./restaurant-YOVMuuFY.js";
|
|
8
|
-
import { u as J } from "./role-CR_-nBDY.js";
|
|
9
|
-
import { u as K } from "./grant-user-CQZaTzVt.js";
|
|
10
|
-
import { u as Q } from "./approval-code-Q4666xp5.js";
|
|
11
|
-
import { R as u } from "./app-DX-PG6wx.js";
|
|
12
|
-
const W = { class: "space-y-24" }, le = /* @__PURE__ */ U({
|
|
13
|
-
__name: "Main",
|
|
14
|
-
setup(X) {
|
|
15
|
-
const { t: o } = $(), c = x(), d = E(), T = M(), { sessionUser: V, currentBusiness: b } = I(), { readRestaurants: h } = H(), { readRoles: B } = J(), { readGrantUsers: P } = K(), { readApprovalCodes: L } = Q(), s = n(() => {
|
|
16
|
-
var t;
|
|
17
|
-
return !!((t = V.value) != null && t.role.isAdmin);
|
|
18
|
-
}), A = R(), g = R(), r = n({
|
|
19
|
-
get: () => c.name === u.POS_GRANT ? "grants" : "codes",
|
|
20
|
-
set: (t) => {
|
|
21
|
-
d.push({
|
|
22
|
-
name: t === "grants" ? u.POS_GRANT : u.APPROVAL_CODE,
|
|
23
|
-
query: d.currentRoute.value.query
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}), v = n(() => {
|
|
27
|
-
const t = [];
|
|
28
|
-
return s.value && t.push({
|
|
29
|
-
label: o("posAccess.tabs.grants"),
|
|
30
|
-
subTitle: o("posAccess.tabs.grantsDescription"),
|
|
31
|
-
value: "grants",
|
|
32
|
-
createButtonLabel: o("grantUser.actions.create"),
|
|
33
|
-
createButtonAction: () => {
|
|
34
|
-
var e;
|
|
35
|
-
return (e = g.value) == null ? void 0 : e.create();
|
|
36
|
-
}
|
|
37
|
-
}), t.push({
|
|
38
|
-
label: o("posAccess.tabs.codes"),
|
|
39
|
-
subTitle: o("posAccess.tabs.codesDescription"),
|
|
40
|
-
value: "codes",
|
|
41
|
-
createButtonLabel: o("approvalCode.actions.create"),
|
|
42
|
-
createButtonAction: () => {
|
|
43
|
-
var e;
|
|
44
|
-
return (e = A.value) == null ? void 0 : e.create();
|
|
45
|
-
}
|
|
46
|
-
}), t;
|
|
47
|
-
}), l = n(
|
|
48
|
-
() => v.value.find((t) => t.value === r.value) ?? v.value[0]
|
|
49
|
-
), N = n(() => s.value ? o("posAccess.title") : o("approvalCode.title"));
|
|
50
|
-
return C(
|
|
51
|
-
[s, () => c.name],
|
|
52
|
-
() => {
|
|
53
|
-
!s.value && c.name === u.POS_GRANT && d.replace({ name: u.APPROVAL_CODE, query: c.query });
|
|
54
|
-
},
|
|
55
|
-
{ immediate: !0 }
|
|
56
|
-
), C(
|
|
57
|
-
[b, s],
|
|
58
|
-
async () => {
|
|
59
|
-
var t;
|
|
60
|
-
if ((t = b.value) != null && t._id)
|
|
61
|
-
try {
|
|
62
|
-
const e = [h(), L()];
|
|
63
|
-
s.value && e.push(B(), P()), await Promise.all(e);
|
|
64
|
-
} catch (e) {
|
|
65
|
-
console.error("Failed to load POS access dependencies:", e), T.open({
|
|
66
|
-
message: e instanceof Error ? e.message : String(e),
|
|
67
|
-
type: "error"
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
{ immediate: !0 }
|
|
72
|
-
), (t, e) => {
|
|
73
|
-
const O = _("FmSpacer"), k = _("FmTabs"), D = _("RouterView");
|
|
74
|
-
return m(), i(z, { heading: N.value }, {
|
|
75
|
-
"sub-heading": p(() => {
|
|
76
|
-
var a;
|
|
77
|
-
return [
|
|
78
|
-
G(q((a = l.value) == null ? void 0 : a.subTitle), 1)
|
|
79
|
-
];
|
|
80
|
-
}),
|
|
81
|
-
"append-heading": p(() => {
|
|
82
|
-
var a;
|
|
83
|
-
return [
|
|
84
|
-
y(O),
|
|
85
|
-
(a = l.value) != null && a.createButtonLabel ? (m(), i(j, {
|
|
86
|
-
key: 0,
|
|
87
|
-
icon: "add",
|
|
88
|
-
label: l.value.createButtonLabel,
|
|
89
|
-
onClick: e[0] || (e[0] = (f) => l.value.createButtonAction())
|
|
90
|
-
}, null, 8, ["label"])) : S("", !0)
|
|
91
|
-
];
|
|
92
|
-
}),
|
|
93
|
-
default: p(() => [
|
|
94
|
-
w("div", W, [
|
|
95
|
-
s.value ? (m(), i(k, {
|
|
96
|
-
key: 0,
|
|
97
|
-
modelValue: r.value,
|
|
98
|
-
"onUpdate:modelValue": e[1] || (e[1] = (a) => r.value = a),
|
|
99
|
-
items: v.value
|
|
100
|
-
}, null, 8, ["modelValue", "items"])) : S("", !0),
|
|
101
|
-
y(D, null, {
|
|
102
|
-
default: p(({ Component: a }) => [
|
|
103
|
-
(m(), i(F(a), {
|
|
104
|
-
ref: (f) => {
|
|
105
|
-
r.value === "codes" && (A.value = f), r.value === "grants" && (g.value = f);
|
|
106
|
-
}
|
|
107
|
-
}, null, 512))
|
|
108
|
-
]),
|
|
109
|
-
_: 1
|
|
110
|
-
})
|
|
111
|
-
])
|
|
112
|
-
]),
|
|
113
|
-
_: 1
|
|
114
|
-
}, 8, ["heading"]);
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
export {
|
|
119
|
-
le as default
|
|
120
|
-
};
|