@feedmepos/mf-hrm-portal 2.1.0-dev → 2.1.0-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 (53) hide show
  1. package/dist/AuditLogList-AGlAsWwd.js +1608 -0
  2. package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-tiuei7CA.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-BYHKFwRm.js} +2 -2
  3. package/dist/EmployeeList-KvjoGI87.js +884 -0
  4. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-D3MOFOUI.js → FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js} +1 -1
  5. package/dist/{Main-BgOhmojO.js → Main-BLh16xRg.js} +188 -185
  6. package/dist/Main-D3TSdtSE.js +94 -0
  7. package/dist/{Main-D2Wf__wM.js → Main-Dn1TfDRj.js} +1987 -1979
  8. package/dist/PermissionSetList-Ds69m9UU.js +392 -0
  9. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CCKVpAwv.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bk6ub3Dv.js} +1122 -1122
  10. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-D-14ca2J.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-BHxCP_uW.js} +1 -1
  11. package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js +42 -0
  12. package/dist/{RoleList-tSC8RJHe.js → RoleList-v8McRCnz.js} +231 -221
  13. package/dist/SelectFilter-ATOm0hdn.js +269 -0
  14. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +16 -0
  15. package/dist/{index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js → TableEmptyState.vue_vue_type_script_setup_true_lang-Ci_MVqGK.js} +54 -20
  16. package/dist/{TeamMemberList-Bz-kDJ0e.js → TeamMemberList-BYQnNIhT.js} +137 -131
  17. package/dist/{TimesheetList-BFVhmcRt.js → TimesheetList-C1OWa6kf.js} +140 -134
  18. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_d7ed31d7_lang-CtHuL5tW.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CLu9gzzi.js} +2 -2
  19. package/dist/{app-DRnSocX8.js → app-CJouCBgi.js} +792 -475
  20. package/dist/app.js +1 -1
  21. package/dist/{dayjs.min-B8xOAypU.js → dayjs.min-DUugkgDM.js} +1 -1
  22. package/dist/{employee-UrXqUaik.js → employee-D5rEVmge.js} +3 -3
  23. package/dist/{iteration-LEYoQKiI.js → iteration-QRRNYlps.js} +1 -1
  24. package/dist/{lodash-Bq6_eZZ0.js → lodash-BlZhpHhM.js} +1 -1
  25. package/dist/{rule-CJC6Cq6S.js → rule-Dy7eMChN.js} +116 -110
  26. package/dist/src/api/audit-log/index.d.ts +23 -0
  27. package/dist/src/components/button/ResponsiveFabButton.vue.d.ts +7 -1
  28. package/dist/src/components/form/SelectFilter.vue.d.ts +3 -0
  29. package/dist/src/components/table/EmptyDataTemplate/index.vue.d.ts +4 -1
  30. package/dist/src/components/table/TableEmptyState.vue.d.ts +31 -0
  31. package/dist/src/stores/permission-set.d.ts +12 -3
  32. package/dist/src/stores/team.d.ts +4 -1
  33. package/dist/src/types/audit-log.d.ts +1 -1
  34. package/dist/src/views/audit-log/event-line.d.ts +13 -0
  35. package/dist/src/views/audit-log/locales/index.d.ts +320 -16
  36. package/dist/src/views/audit-log/snapshot-diff.d.ts +11 -0
  37. package/dist/src/views/hr/employee/EmployeeList.vue.d.ts +1 -0
  38. package/dist/src/views/hr/locales/index.d.ts +4 -0
  39. package/dist/src/views/team/locales/index.d.ts +4 -0
  40. package/dist/style.css +1 -1
  41. package/dist/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/{useAppStore-BGsfYWAR.js → useAppStore-CtMoad7V.js} +1 -1
  43. package/dist/useDebounce-B8ZPVS5C.js +15 -0
  44. package/dist/{useLoading-BUM5R2qV.js → useLoading-CNqlchYO.js} +1 -1
  45. package/dist/{useReportPermissions-nlQ_BBL2.js → useReportPermissions-C5wGC9bf.js} +3 -3
  46. package/package.json +1 -1
  47. package/dist/AuditLogList-C1bGND8z.js +0 -1037
  48. package/dist/EmployeeList-DqQF9xEx.js +0 -851
  49. package/dist/Main-DcKVuIjB.js +0 -90
  50. package/dist/PermissionSetList-CQpTa0eY.js +0 -384
  51. package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js +0 -38
  52. package/dist/SelectFilter-DUj7GBtT.js +0 -251
  53. package/dist/useDebounce-CWb5QR9G.js +0 -28
@@ -0,0 +1,94 @@
1
+ import { defineComponent as M, ref as R, computed as s, resolveComponent as i, createBlock as c, openBlock as p, withCtx as l, createElementVNode as S, createVNode as d, resolveDynamicComponent as g, createCommentVNode as y, createTextVNode as A, toDisplayString as C } from "vue";
2
+ import { useRouter as N, useRoute as h } from "vue-router";
3
+ import { useI18n as k } from "@feedmepos/mf-common";
4
+ import { _ as x } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
5
+ import { _ as F } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
6
+ import { u as w } from "./iteration-QRRNYlps.js";
7
+ import "@feedmepos/ui-library";
8
+ import "./rule-Dy7eMChN.js";
9
+ import "./lodash-BlZhpHhM.js";
10
+ import "./useAppStore-CtMoad7V.js";
11
+ import { R as v } from "./app-CJouCBgi.js";
12
+ /* empty css */
13
+ import "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-BHxCP_uW.js";
14
+ const $ = { class: "space-y-24" }, X = /* @__PURE__ */ M({
15
+ __name: "Main",
16
+ setup(q) {
17
+ const { t: o } = k(), b = N(), B = h(), { readRestaurants: T } = w(), _ = R(), f = R(), a = s({
18
+ get: () => B.name === v.TEAM_ROLE ? "role" : "member",
19
+ set: (e) => {
20
+ b.push({
21
+ name: e === "role" ? v.TEAM_ROLE : v.TEAM_MEMBER,
22
+ query: b.currentRoute.value.query
23
+ });
24
+ }
25
+ });
26
+ T();
27
+ const r = s(() => u.value.find((e) => e.value === a.value) || u.value[0]), u = s(() => [
28
+ {
29
+ label: o("team.title"),
30
+ subTitle: o("team.subtitle"),
31
+ value: "member",
32
+ createButtonLabel: o("team.actions.addMember"),
33
+ createButtonAction: () => {
34
+ var e;
35
+ (e = _.value) == null || e.create();
36
+ }
37
+ },
38
+ {
39
+ label: o("permissionSet.title"),
40
+ value: "role",
41
+ createButtonLabel: o("permissionSet.createButtonLabel"),
42
+ createButtonAction: () => {
43
+ var e;
44
+ (e = f.value) == null || e.create();
45
+ }
46
+ }
47
+ ]);
48
+ return (e, n) => {
49
+ const L = i("FmSpacer"), V = i("FmTabs"), E = i("RouterView");
50
+ return p(), c(F, {
51
+ heading: r.value.label
52
+ }, {
53
+ "sub-heading": l(() => [
54
+ A(C(r.value.subTitle), 1)
55
+ ]),
56
+ "append-heading": l(() => {
57
+ var t;
58
+ return [
59
+ d(L),
60
+ (t = r.value) != null && t.createButtonLabel ? (p(), c(x, {
61
+ key: 0,
62
+ icon: "add",
63
+ label: r.value.createButtonLabel,
64
+ onClick: n[0] || (n[0] = (m) => r.value.createButtonAction())
65
+ }, null, 8, ["label"])) : y("", !0)
66
+ ];
67
+ }),
68
+ default: l(() => [
69
+ S("div", $, [
70
+ d(V, {
71
+ modelValue: a.value,
72
+ "onUpdate:modelValue": n[1] || (n[1] = (t) => a.value = t),
73
+ items: u.value
74
+ }, null, 8, ["modelValue", "items"]),
75
+ d(E, null, {
76
+ default: l(({ Component: t }) => [
77
+ (p(), c(g(t), {
78
+ ref: (m) => {
79
+ a.value === "member" && (_.value = m), a.value === "role" && (f.value = m);
80
+ }
81
+ }, null, 512))
82
+ ]),
83
+ _: 1
84
+ })
85
+ ])
86
+ ]),
87
+ _: 1
88
+ }, 8, ["heading"]);
89
+ };
90
+ }
91
+ });
92
+ export {
93
+ X as default
94
+ };