@feedmepos/mf-hrm-portal 2.1.1-dev.6 → 2.2.0-dev

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.
Files changed (29) hide show
  1. package/dist/ApprovalCodeList-Cwy-Rn90.js +728 -0
  2. package/dist/{AuditLogList-DrrL4vf4.js → AuditLogList-CfDEZ6Z-.js} +3 -3
  3. package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-CBjO1MZo.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-BTDBRB1-.js} +2 -2
  4. package/dist/{EmployeeList-BMol4ah4.js → EmployeeList-DJrCBYvi.js} +6 -4
  5. package/dist/{GrantUserList-CLBl7FZ-.js → GrantUserList-UgQBjh54.js} +3 -3
  6. package/dist/{Main-D_LwrBdZ.js → Main-B5YknOhi.js} +9 -9
  7. package/dist/{Main-DNOHZd3j.js → Main-BnWK_GkW.js} +5 -5
  8. package/dist/Main-DQXiP6Io.js +121 -0
  9. package/dist/{PermissionSetList-DLYrXFbz.js → PermissionSetList-CfPZPmfV.js} +5 -5
  10. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Drcx0tL_.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CPk4KJUW.js} +803 -803
  11. package/dist/{RoleList-g8PjH_k2.js → RoleList-CHnu2j25.js} +7 -7
  12. package/dist/{TeamMemberList-B9aCagSc.js → TeamMemberList-DprMQ_8g.js} +6 -6
  13. package/dist/{TimesheetList-C1IJhOYE.js → TimesheetList-D5G1dJfp.js} +5 -5
  14. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CqtiVm1j.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-DFfYiBBf.js} +2 -2
  15. package/dist/{app-DnOYVjuj.js → app-BhF0Kk5X.js} +154 -135
  16. package/dist/app.js +1 -1
  17. package/dist/{dayjs.min-Dxul0qTK.js → dayjs.min-Do1gXFxN.js} +1 -1
  18. package/dist/{employee-sr65CZR7.js → employee-BRCSs9t_.js} +3 -3
  19. package/dist/{iteration-DIqDMvFa.js → iteration-C2XLVxL1.js} +1 -1
  20. package/dist/{lodash-CXlqXFmD.js → lodash-eudyY8-f.js} +1 -1
  21. package/dist/{role-CE3NY-63.js → role-CSL6Qv8l.js} +1 -1
  22. package/dist/{rule-CEjrit6c.js → rule-D3DPWTm1.js} +20 -12
  23. package/dist/src/types/approval-code.d.ts +29 -48
  24. package/dist/src/views/hr/locales/index.d.ts +4 -0
  25. package/dist/tsconfig.app.tsbuildinfo +1 -1
  26. package/dist/{useReportPermissions-FVW_HwcL.js → useReportPermissions-CSdIiY_7.js} +3 -3
  27. package/package.json +2 -2
  28. package/dist/ApprovalCodeList-B1XHbhum.js +0 -757
  29. package/dist/Main-auigiuVZ.js +0 -122
@@ -1,122 +0,0 @@
1
- import { defineComponent as F, computed as n, ref as y, watch as S, resolveComponent as f, createBlock as m, openBlock as p, withCtx as _, createElementVNode as b, createVNode as B, createCommentVNode as T, normalizeClass as G, toDisplayString as q, resolveDynamicComponent as x } from "vue";
2
- import { useRoute as E, useRouter as $ } from "vue-router";
3
- import { useI18n as I, useCoreStore as z } 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-QrqYEy8i.js";
6
- import { _ as H } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
7
- import { u as J } from "./restaurant-YOVMuuFY.js";
8
- import { u as K } from "./role-CE3NY-63.js";
9
- import { u as Q } from "./grant-user-CQZaTzVt.js";
10
- import { u as W } from "./approval-code-Q4666xp5.js";
11
- import { R as u } from "./app-DnOYVjuj.js";
12
- const X = { class: "space-y-24" }, ie = /* @__PURE__ */ F({
13
- __name: "Main",
14
- setup(Y) {
15
- const { t: a } = I(), l = E(), d = $(), V = M(), { sessionUser: h, currentBusiness: A } = z(), { readRestaurants: P } = J(), { readRoles: L } = K(), { readGrantUsers: O } = Q(), { readApprovalCodes: k } = W(), o = n(() => {
16
- var t;
17
- return !!((t = h.value) != null && t.role.isAdmin);
18
- }), R = y(), g = y(), s = n({
19
- get: () => l.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 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 = g.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 = R.value) == null ? void 0 : e.create();
45
- }
46
- }), t;
47
- }), c = n(
48
- () => v.value.find((t) => t.value === s.value) ?? v.value[0]
49
- ), N = n(() => o.value ? a("posAccess.title") : a("approvalCode.title"));
50
- return S(
51
- [o, () => l.name],
52
- () => {
53
- !o.value && l.name === u.POS_GRANT && d.replace({ name: u.APPROVAL_CODE, query: l.query });
54
- },
55
- { immediate: !0 }
56
- ), S(
57
- [A, o],
58
- async () => {
59
- var t;
60
- if ((t = A.value) != null && t._id)
61
- try {
62
- const e = [P(), k()];
63
- o.value && e.push(L(), O()), await Promise.all(e);
64
- } catch (e) {
65
- console.error("Failed to load POS access dependencies:", e), V.open({
66
- message: e instanceof Error ? e.message : String(e),
67
- type: "error"
68
- });
69
- }
70
- },
71
- { immediate: !0 }
72
- ), (t, e) => {
73
- const D = f("FmSpacer"), U = f("FmTabs"), w = f("RouterView");
74
- return p(), m(H, { heading: N.value }, {
75
- "append-heading": _(() => {
76
- var r;
77
- return [
78
- B(D),
79
- (r = c.value) != null && r.createButtonLabel ? (p(), m(j, {
80
- key: 0,
81
- icon: "add",
82
- label: c.value.createButtonLabel,
83
- onClick: e[0] || (e[0] = (i) => c.value.createButtonAction())
84
- }, null, 8, ["label"])) : T("", !0)
85
- ];
86
- }),
87
- default: _(() => {
88
- var r;
89
- return [
90
- b("div", X, [
91
- b("div", null, [
92
- o.value ? (p(), m(U, {
93
- key: 0,
94
- modelValue: s.value,
95
- "onUpdate:modelValue": e[1] || (e[1] = (i) => s.value = i),
96
- items: v.value
97
- }, null, 8, ["modelValue", "items"])) : T("", !0),
98
- b("p", {
99
- class: G(["text-fm-color-typo-secondary", { "mt-8": o.value }])
100
- }, q((r = c.value) == null ? void 0 : r.subTitle), 3)
101
- ]),
102
- B(w, null, {
103
- default: _(({ Component: i }) => [
104
- (p(), m(x(i), {
105
- ref: (C) => {
106
- s.value === "codes" && (R.value = C), s.value === "grants" && (g.value = C);
107
- }
108
- }, null, 512))
109
- ]),
110
- _: 1
111
- })
112
- ])
113
- ];
114
- }),
115
- _: 1
116
- }, 8, ["heading"]);
117
- };
118
- }
119
- });
120
- export {
121
- ie as default
122
- };