@feedmepos/mf-hrm-portal 2.0.5 → 2.0.6-dev.1

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 (38) hide show
  1. package/dist/{AuditLogList-Bkl9koQT.js → AuditLogList-C23_MiyK.js} +7 -6
  2. package/dist/{EmployeeList-BnbjfqyP.js → EmployeeList-vXPEVqoh.js} +164 -169
  3. package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +71 -0
  4. package/dist/HorizontalSplitter-o860F4xM.js +12 -0
  5. package/dist/Main-CQWe1-SW.js +599 -0
  6. package/dist/{Main-CoVghvwW.js → Main-DC9H9bAs.js} +11 -10
  7. package/dist/{Main-8ZaM5D9M.js → Main-k56Iy_zg.js} +8 -7
  8. package/dist/{PermissionSetList-B0yqDASK.js → PermissionSetList-B8tJCNpR.js} +53 -52
  9. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CXirNGg0.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BPJpVG8_.js} +588 -587
  10. package/dist/{RoleList-CiNle1dZ.js → RoleList-C5WA3Kxu.js} +26 -24
  11. package/dist/{TeamMemberList-5DyItOsQ.js → TeamMemberList-Ic-iWBHd.js} +10 -9
  12. package/dist/{TimesheetList-DxQ-vb_m.js → TimesheetList-DlGpcOUp.js} +11 -10
  13. package/dist/{app-CVfFuJ_U.js → app-D0xH_99A.js} +984 -713
  14. package/dist/app.js +1 -1
  15. package/dist/{dayjs.min-CeMMJfCO.js → dayjs.min-C1rTVn8X.js} +1 -1
  16. package/dist/{employee-BsYVIIOi.js → employee-BK4sYiRy.js} +21 -20
  17. package/dist/index-C2ubYSVV.js +968 -0
  18. package/dist/{index-DIVnaoZ6.js → index-DSAB4vz3.js} +1 -1
  19. package/dist/{index-DwcKO5a4.js → iteration-BSGKcAZm.js} +3468 -4430
  20. package/dist/{lodash-DazWE7Hy.js → lodash-CeTePH4O.js} +1 -1
  21. package/dist/src/api/grant-user/index.d.ts +8 -0
  22. package/dist/src/api/index.d.ts +3 -1
  23. package/dist/src/router/shared.d.ts +2 -1
  24. package/dist/src/stores/grant-user.d.ts +86 -0
  25. package/dist/src/types/grant-user.d.ts +27 -0
  26. package/dist/src/views/grant/GrantUserList.vue.d.ts +17 -0
  27. package/dist/src/views/grant/Main.vue.d.ts +2 -0
  28. package/dist/src/views/grant/components/GrantUserForm.vue.d.ts +17 -0
  29. package/dist/src/views/grant/locales/index.d.ts +232 -0
  30. package/dist/{team-C9sSArLP.js → team-B25hRkju.js} +1 -1
  31. package/dist/{timesheet-C0-tKt4w.js → timesheet-C8oy-bxz.js} +10 -9
  32. package/dist/tsconfig.app.tsbuildinfo +1 -1
  33. package/dist/{useAppStore-4NX8u34B.js → useAppStore-WGnUS7Wm.js} +1 -1
  34. package/dist/{useLoading-BDG-so15.js → useLoading-BCi2g_rf.js} +1 -1
  35. package/dist/{useReportPermissions-1NZr3RRg.js → useReportPermissions--LOfl1e-.js} +12 -11
  36. package/dist/useRestaurantMap-e9fQJiLC.js +39 -0
  37. package/package.json +1 -1
  38. package/dist/useRestaurantMap-D5BNPLKh.js +0 -107
@@ -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 "./index-DwcKO5a4.js";
4
+ import { g as l, b as d, s as R } from "./iteration-BSGKcAZm.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-4NX8u34B.js";
3
+ import { a as w, v } from "./useAppStore-WGnUS7Wm.js";
4
4
  const E = (r) => {
5
5
  async function d(u, e) {
6
6
  var l, a;
@@ -1,17 +1,18 @@
1
1
  import { computed as u, ref as r } from "vue";
2
- import { e as y, a as l, R } from "./index-DwcKO5a4.js";
3
- import { useCoreStore as h } from "@feedmepos/mf-common";
4
- import "./app-CVfFuJ_U.js";
5
- const n = r([]), c = r(!1), t = r(!1), d = r(null);
6
- function K() {
7
- const m = h();
2
+ import { e as l } from "./iteration-BSGKcAZm.js";
3
+ import { useCoreStore as y } from "@feedmepos/mf-common";
4
+ import { e as R, R as h } from "./index-C2ubYSVV.js";
5
+ import "./app-D0xH_99A.js";
6
+ const n = r([]), c = r(!1), t = r(!1), m = r(null);
7
+ function L() {
8
+ const d = y();
8
9
  async function f() {
9
10
  var o;
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))) {
11
+ const s = (o = d.currentBusiness.value) == null ? void 0 : o.id;
12
+ if (s && (m.value !== s && (n.value = [], c.value = !1, t.value = !1, m.value = s), !(c.value || t.value))) {
12
13
  t.value = !0;
13
14
  try {
14
- n.value = await R.fetchReportPermissions(s), c.value = !0;
15
+ n.value = await h.fetchReportPermissions(s), c.value = !0;
15
16
  } catch (e) {
16
17
  console.warn("Failed to fetch dynamic report permissions, using hardcoded only:", e), n.value = [];
17
18
  } finally {
@@ -19,7 +20,7 @@ function K() {
19
20
  }
20
21
  }
21
22
  }
22
- const i = y.filter(
23
+ const i = R.filter(
23
24
  (s) => s.subject === l.F_RULE_SUBJECT.enum.report && s.conditions
24
25
  ), p = u(() => {
25
26
  const s = new Set(
@@ -55,5 +56,5 @@ function K() {
55
56
  };
56
57
  }
57
58
  export {
58
- K as u
59
+ L as u
59
60
  };
@@ -0,0 +1,39 @@
1
+ import { useI18n as a, useCoreStore as n } from "@feedmepos/mf-common";
2
+ import { useDialog as i } from "@feedmepos/ui-library";
3
+ import { computed as m } from "vue";
4
+ function l(o, s) {
5
+ const r = i(), { t } = a();
6
+ function e() {
7
+ o() ? r.open({
8
+ title: t("portalCommon.dismiss.title"),
9
+ message: t("portalCommon.dismiss.message"),
10
+ zIndex: 200,
11
+ primaryActions: {
12
+ text: t("portalCommon.dismiss.primaryActions"),
13
+ variant: "primary",
14
+ close: !0
15
+ },
16
+ secondaryActions: {
17
+ text: t("common.cancel"),
18
+ variant: "tertiary",
19
+ close: !0
20
+ }
21
+ }).onPrimary(() => {
22
+ s();
23
+ }) : s();
24
+ }
25
+ return e;
26
+ }
27
+ function d() {
28
+ const o = n();
29
+ return m(() => {
30
+ const r = {};
31
+ return o.restaurants.value.forEach((t) => {
32
+ r[t._id] = t;
33
+ }), r;
34
+ });
35
+ }
36
+ export {
37
+ d as a,
38
+ l as u
39
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-hrm-portal",
3
- "version": "2.0.5",
3
+ "version": "2.0.6-dev.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1,107 +0,0 @@
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
- };