@feedmepos/mf-hrm-portal 2.0.18-dev.2 → 2.0.18

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 (60) hide show
  1. package/dist/AuditLogList-CfvB_c7-.js +980 -0
  2. package/dist/EmployeeList-Whx8sBTA.js +736 -0
  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-C_Tm3462.js +85 -0
  6. package/dist/{Main-dqgR1UXY.js → Main-CoGNATjU.js} +175 -181
  7. package/dist/{Main-BbOMNP31.js → Main-D2LWkcaI.js} +761 -758
  8. package/dist/PermissionSetList-RYl82f1k.js +341 -0
  9. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BiImcVpI.js +3480 -0
  10. package/dist/RoleList-D0KdTM9G.js +530 -0
  11. package/dist/TeamMemberList-DDBFCFlj.js +1108 -0
  12. package/dist/{TimesheetList-D29EFj1Q.js → TimesheetList-BzYGHK7n.js} +126 -132
  13. package/dist/{app-SadE2J6-.js → app-BMnTcaqa.js} +1210 -1186
  14. package/dist/app.js +1 -1
  15. package/dist/{dayjs.min-DKCxxK08.js → dayjs.min-CTzjqhN9.js} +1 -1
  16. package/dist/employee-DeAtPDRi.js +204 -0
  17. package/dist/{iteration-QZxp7XeE.js → iteration-L53uoXdY.js} +5762 -5807
  18. package/dist/{lodash-DrksHyHu.js → lodash-t9DlqugD.js} +1 -1
  19. package/dist/{rule-CSsgDC6F.js → rule-BCN5fKAA.js} +265 -263
  20. package/dist/src/api/audit-log/index.d.ts +0 -9
  21. package/dist/src/components/CheckboxInput.vue.d.ts +1 -1
  22. package/dist/src/components/CollapsibleWrapper.vue.d.ts +0 -2
  23. package/dist/src/composables/useBasePermission.d.ts +0 -1
  24. package/dist/src/composables/useRestaurantMap.d.ts +329 -2
  25. package/dist/src/stores/role.d.ts +7 -7
  26. package/dist/src/stores/team.d.ts +6 -6
  27. package/dist/src/types/restaurant.d.ts +0 -11
  28. package/dist/src/types/team.d.ts +1 -1
  29. package/dist/src/views/hr/locales/index.d.ts +0 -16
  30. package/dist/src/views/team/components/BasePermission.vue.d.ts +7 -3
  31. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +2 -2
  32. package/dist/src/views/team/locales/index.d.ts +28 -32
  33. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -5
  34. package/dist/style.css +1 -1
  35. package/dist/{timesheet-sBe_HCZh.js → timesheet-D41pctAm.js} +2 -2
  36. package/dist/tsconfig.app.tsbuildinfo +1 -1
  37. package/dist/useAppStore-fl7zMdUR.js +171 -0
  38. package/dist/useDebounce-B8ZPVS5C.js +15 -0
  39. package/dist/useDiscardConfirm-BHni0LNu.js +28 -0
  40. package/dist/{useLoading-PTqnaz_W.js → useLoading-BbpH9pow.js} +1 -1
  41. package/dist/{useReportPermissions-C3Uzu7vB.js → useReportPermissions-qEea7Dnt.js} +3 -3
  42. package/dist/useSearch-B6WK1LBB.js +15 -0
  43. package/package.json +2 -2
  44. package/dist/AuditLogList-D4E8pss5.js +0 -1037
  45. package/dist/CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js +0 -58
  46. package/dist/EmployeeList-BfJO89pN.js +0 -827
  47. package/dist/FormItem.vue_vue_type_script_setup_true_lang-D3MOFOUI.js +0 -45
  48. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
  49. package/dist/Main-XmxzThcC.js +0 -86
  50. package/dist/PermissionSetList-DO0PRS6Z.js +0 -347
  51. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DL4_xvBZ.js +0 -3443
  52. package/dist/RoleList-DB3NfUYF.js +0 -545
  53. package/dist/TeamMemberList-4hEx6L5r.js +0 -1090
  54. package/dist/employee-3KJs872J.js +0 -204
  55. package/dist/src/api/restaurant/index.d.ts +0 -5
  56. package/dist/src/components/Skeleton.vue.d.ts +0 -7
  57. package/dist/src/stores/restaurant.d.ts +0 -181
  58. package/dist/useAppStore-BDADkWuX.js +0 -171
  59. package/dist/useDebounce-CWb5QR9G.js +0 -28
  60. package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
@@ -0,0 +1,71 @@
1
+ import { defineComponent as i, createElementBlock as s, openBlock as o, createElementVNode as l, renderSlot as n, createCommentVNode as c, toDisplayString as a, normalizeClass as d, createVNode as m, withCtx as f } from "vue";
2
+ const p = { class: "space-y-8" }, y = { class: "flex items-center justify-between" }, h = { class: "space-y-8" }, u = { class: "fm-typo-en-body-lg-600" }, _ = {
3
+ key: 0,
4
+ class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
5
+ }, w = /* @__PURE__ */ i({
6
+ __name: "FormItem",
7
+ props: {
8
+ label: {},
9
+ description: {}
10
+ },
11
+ setup(e) {
12
+ return (t, r) => (o(), s("div", p, [
13
+ l("div", y, [
14
+ l("div", h, [
15
+ l("p", u, a(e.label), 1),
16
+ e.description ? (o(), s("p", _, a(e.description), 1)) : c("", !0)
17
+ ]),
18
+ n(t.$slots, "append")
19
+ ]),
20
+ n(t.$slots, "default")
21
+ ]));
22
+ }
23
+ }), b = /* @__PURE__ */ i({
24
+ __name: "FormColumn",
25
+ props: {
26
+ shrinkable: { type: Boolean }
27
+ },
28
+ setup(e) {
29
+ return (t, r) => (o(), s("div", {
30
+ class: d(["flex-1 flex flex-col space-y-24", { "min-h-0": e.shrinkable }])
31
+ }, [
32
+ n(t.$slots, "default")
33
+ ], 2));
34
+ }
35
+ }), k = {
36
+ key: 0,
37
+ class: "flex flex-row justify-between items-center"
38
+ }, $ = { class: "space-y-4" }, x = { class: "fm-typo-en-title-sm-600" }, v = {
39
+ key: 0,
40
+ class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
41
+ }, B = /* @__PURE__ */ i({
42
+ __name: "FormSection",
43
+ props: {
44
+ title: {},
45
+ subTitle: {},
46
+ shrinkable: { type: Boolean }
47
+ },
48
+ setup(e) {
49
+ return (t, r) => (o(), s("div", {
50
+ class: d(["flex flex-col space-y-16", { "min-h-0": e.shrinkable }])
51
+ }, [
52
+ e.title ? (o(), s("div", k, [
53
+ l("div", $, [
54
+ l("p", x, a(e.title), 1),
55
+ e.subTitle ? (o(), s("p", v, a(e.subTitle), 1)) : c("", !0)
56
+ ]),
57
+ n(t.$slots, "append-title")
58
+ ])) : c("", !0),
59
+ m(b, { shrinkable: e.shrinkable }, {
60
+ default: f(() => [
61
+ n(t.$slots, "default")
62
+ ]),
63
+ _: 3
64
+ }, 8, ["shrinkable"])
65
+ ], 2));
66
+ }
67
+ });
68
+ export {
69
+ B as _,
70
+ w as a
71
+ };
@@ -0,0 +1,12 @@
1
+ import { createElementBlock as e, openBlock as o, createElementVNode as t } from "vue";
2
+ import { _ as l } from "./SelectFilter-DUj7GBtT.js";
3
+ const n = {};
4
+ function c(s, r) {
5
+ return o(), e("div", null, [...r[0] || (r[0] = [
6
+ t("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)
7
+ ])]);
8
+ }
9
+ const i = /* @__PURE__ */ l(n, [["render", c]]);
10
+ export {
11
+ i as H
12
+ };
@@ -0,0 +1,85 @@
1
+ import { defineComponent as V, ref as u, computed as B, watch as A, resolveComponent as i, createBlock as s, openBlock as c, withCtx as p, createElementVNode as C, createVNode as d, resolveDynamicComponent as T, createCommentVNode as S } from "vue";
2
+ import { useRouter as k, useRoute as F } from "vue-router";
3
+ import { useI18n as N } from "@feedmepos/mf-common";
4
+ import { _ as g } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
+ import { _ as h } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
6
+ import "@feedmepos/ui-library";
7
+ import "./rule-BCN5fKAA.js";
8
+ import "./iteration-L53uoXdY.js";
9
+ import { R as v } from "./app-BMnTcaqa.js";
10
+ import "./useAppStore-fl7zMdUR.js";
11
+ /* empty css */
12
+ /* empty css */
13
+ const w = { class: "space-y-24" }, K = /* @__PURE__ */ V({
14
+ __name: "Main",
15
+ setup(x) {
16
+ const { t: a } = N(), f = k(), R = F(), _ = u(), b = u(), t = u("member");
17
+ R.name === v.TEAM_ROLE ? t.value = "role" : t.value = "member";
18
+ const l = B(() => n.value.find((e) => e.value === t.value) || n.value[0]);
19
+ A(t, (e) => {
20
+ e === "member" ? f.replace({ name: v.TEAM_MEMBER }) : e === "role" && f.replace({ name: v.TEAM_ROLE });
21
+ });
22
+ const n = B(() => [
23
+ {
24
+ label: a("team.title"),
25
+ value: "member",
26
+ createButtonLabel: a("team.actions.addMember"),
27
+ createButtonAction: () => {
28
+ var e;
29
+ (e = _.value) == null || e.create();
30
+ }
31
+ },
32
+ {
33
+ label: a("permissionSet.title"),
34
+ value: "role",
35
+ createButtonLabel: a("permissionSet.createButtonLabel"),
36
+ createButtonAction: () => {
37
+ var e;
38
+ (e = b.value) == null || e.create();
39
+ }
40
+ }
41
+ ]);
42
+ return (e, r) => {
43
+ const L = i("FmSpacer"), E = i("FmTabs"), M = i("RouterView");
44
+ return c(), s(h, {
45
+ heading: l.value.label
46
+ }, {
47
+ "append-heading": p(() => {
48
+ var o;
49
+ return [
50
+ d(L),
51
+ (o = l.value) != null && o.createButtonLabel ? (c(), s(g, {
52
+ key: 0,
53
+ icon: "add",
54
+ label: l.value.createButtonLabel,
55
+ onClick: r[0] || (r[0] = (m) => l.value.createButtonAction())
56
+ }, null, 8, ["label"])) : S("", !0)
57
+ ];
58
+ }),
59
+ default: p(() => [
60
+ C("div", w, [
61
+ d(E, {
62
+ modelValue: t.value,
63
+ "onUpdate:modelValue": r[1] || (r[1] = (o) => t.value = o),
64
+ items: n.value
65
+ }, null, 8, ["modelValue", "items"]),
66
+ d(M, null, {
67
+ default: p(({ Component: o }) => [
68
+ (c(), s(T(o), {
69
+ ref: (m) => {
70
+ t.value === "member" && (_.value = m), t.value === "role" && (b.value = m);
71
+ }
72
+ }, null, 512))
73
+ ]),
74
+ _: 1
75
+ })
76
+ ])
77
+ ]),
78
+ _: 1
79
+ }, 8, ["heading"]);
80
+ };
81
+ }
82
+ });
83
+ export {
84
+ K as default
85
+ };