@feedmepos/mf-hrm-portal 2.0.20-dev.1 → 2.0.20-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.
Files changed (30) hide show
  1. package/dist/{AuditLogList-Bsj-qg8n.js → AuditLogList-ChxAzO74.js} +4 -4
  2. package/dist/EmployeeList-Cs-Mn6UA.js +843 -0
  3. package/dist/{Main-BGc6kNaR.js → Main-B9_TyRDo.js} +2008 -2001
  4. package/dist/Main-CdHW4UkN.js +90 -0
  5. package/dist/{Main-CSMAtoMj.js → Main-DcvmP7s-.js} +184 -176
  6. package/dist/PermissionSetList-VFVS0g0v.js +347 -0
  7. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CdWgTjZw.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Dr3R9JjS.js} +771 -770
  8. package/dist/{RoleList-e0WUqt4Y.js → RoleList-BZ6RZvm2.js} +199 -188
  9. package/dist/TeamMemberList-C-zhFauD.js +1115 -0
  10. package/dist/{TimesheetList-tFjvFHqH.js → TimesheetList-CZex54an.js} +61 -53
  11. package/dist/{app-CL7rUfL3.js → app-CLL3p27X.js} +191 -193
  12. package/dist/app.js +1 -1
  13. package/dist/{dayjs.min-ChdFPuFV.js → dayjs.min-CDt1i9vl.js} +1 -1
  14. package/dist/employee-BpRvjWNh.js +200 -0
  15. package/dist/{iteration-BbD0nOgO.js → iteration-BVjUzYL5.js} +173 -175
  16. package/dist/{lodash-CDf3aG6G.js → lodash-CrwgACp2.js} +1 -1
  17. package/dist/{rule-BJ-y3Sp8.js → rule-BlQ5YZ9Z.js} +27 -26
  18. package/dist/src/types/team.d.ts +1 -0
  19. package/dist/style.css +1 -1
  20. package/dist/{timesheet-BmV02Rkz.js → timesheet-jFs4GTAL.js} +2 -2
  21. package/dist/tsconfig.app.tsbuildinfo +1 -1
  22. package/dist/{useAppStore-D8QAGZ02.js → useAppStore-DMAL8VFY.js} +36 -38
  23. package/dist/{useLoading-KpcQw0p4.js → useLoading-AFTjRLyO.js} +1 -1
  24. package/dist/{useReportPermissions-CmGJAz_N.js → useReportPermissions-hODG0Xx3.js} +3 -3
  25. package/package.json +1 -1
  26. package/dist/EmployeeList-Cy2ayCko.js +0 -824
  27. package/dist/Main-D7bV8EuC.js +0 -86
  28. package/dist/PermissionSetList-CuHhDqWl.js +0 -347
  29. package/dist/TeamMemberList-CpPa1KyV.js +0 -1097
  30. package/dist/employee-kKV7UnHU.js +0 -204
@@ -0,0 +1,90 @@
1
+ import { defineComponent as T, ref as R, computed as m, resolveComponent as s, createBlock as i, openBlock as c, withCtx as p, createElementVNode as A, createVNode as d, resolveDynamicComponent as C, createCommentVNode as S } from "vue";
2
+ import { useRouter as y, useRoute as g } from "vue-router";
3
+ import { useI18n as k } from "@feedmepos/mf-common";
4
+ import { _ as F } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
+ import { _ as N } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
6
+ import { u as h } from "./iteration-BVjUzYL5.js";
7
+ import "@feedmepos/ui-library";
8
+ import "./rule-BlQ5YZ9Z.js";
9
+ import "./lodash-CrwgACp2.js";
10
+ import "./useAppStore-DMAL8VFY.js";
11
+ import { R as v } from "./app-CLL3p27X.js";
12
+ /* empty css */
13
+ /* empty css */
14
+ const w = { class: "space-y-24" }, Q = /* @__PURE__ */ T({
15
+ __name: "Main",
16
+ setup(x) {
17
+ const { t: a } = k(), _ = y(), B = g(), { readRestaurants: L } = h(), f = R(), b = R(), o = m({
18
+ get: () => B.name === v.TEAM_ROLE ? "role" : "member",
19
+ set: (e) => {
20
+ _.push({
21
+ name: e === "role" ? v.TEAM_ROLE : v.TEAM_MEMBER,
22
+ query: _.currentRoute.value.query
23
+ });
24
+ }
25
+ });
26
+ L();
27
+ const r = m(() => l.value.find((e) => e.value === o.value) || l.value[0]), l = m(() => [
28
+ {
29
+ label: a("team.title"),
30
+ value: "member",
31
+ createButtonLabel: a("team.actions.addMember"),
32
+ createButtonAction: () => {
33
+ var e;
34
+ (e = f.value) == null || e.create();
35
+ }
36
+ },
37
+ {
38
+ label: a("permissionSet.title"),
39
+ value: "role",
40
+ createButtonLabel: a("permissionSet.createButtonLabel"),
41
+ createButtonAction: () => {
42
+ var e;
43
+ (e = b.value) == null || e.create();
44
+ }
45
+ }
46
+ ]);
47
+ return (e, n) => {
48
+ const E = s("FmSpacer"), M = s("FmTabs"), V = s("RouterView");
49
+ return c(), i(N, {
50
+ heading: r.value.label
51
+ }, {
52
+ "append-heading": p(() => {
53
+ var t;
54
+ return [
55
+ d(E),
56
+ (t = r.value) != null && t.createButtonLabel ? (c(), i(F, {
57
+ key: 0,
58
+ icon: "add",
59
+ label: r.value.createButtonLabel,
60
+ onClick: n[0] || (n[0] = (u) => r.value.createButtonAction())
61
+ }, null, 8, ["label"])) : S("", !0)
62
+ ];
63
+ }),
64
+ default: p(() => [
65
+ A("div", w, [
66
+ d(M, {
67
+ modelValue: o.value,
68
+ "onUpdate:modelValue": n[1] || (n[1] = (t) => o.value = t),
69
+ items: l.value
70
+ }, null, 8, ["modelValue", "items"]),
71
+ d(V, null, {
72
+ default: p(({ Component: t }) => [
73
+ (c(), i(C(t), {
74
+ ref: (u) => {
75
+ o.value === "member" && (f.value = u), o.value === "role" && (b.value = u);
76
+ }
77
+ }, null, 512))
78
+ ]),
79
+ _: 1
80
+ })
81
+ ])
82
+ ]),
83
+ _: 1
84
+ }, 8, ["heading"]);
85
+ };
86
+ }
87
+ });
88
+ export {
89
+ Q as default
90
+ };