@feedmepos/mf-hrm-portal 2.0.5-dev → 2.0.7-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 (127) hide show
  1. package/dist/AuditLogList-COq6WH3T.js +492 -0
  2. package/dist/{EmployeeList-B_pgDSOf.js → EmployeeList-CtosIPFL.js} +6 -6
  3. package/dist/{Main-BVogGot1.js → Main-B4YdcrGe.js} +5 -5
  4. package/dist/{Main-DsOSGRS7.js → Main-CdsqeB2G.js} +8 -8
  5. package/dist/{PermissionSetList-B243twFl.js → PermissionSetList-BUORArci.js} +3 -3
  6. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ChqCTn1L.js +3333 -0
  7. package/dist/{RoleList-B09gFRrt.js → RoleList-D1NGE2IC.js} +6 -6
  8. package/dist/{SelectFilter-NbXrJ4iH.js → SelectFilter-DUj7GBtT.js} +93 -89
  9. package/dist/{TeamMemberList-DZKq2mDD.js → TeamMemberList-auSjZRNz.js} +8 -8
  10. package/dist/{TimesheetList-BykQ0VO_.js → TimesheetList-B8yCkaxb.js} +6 -6
  11. package/dist/{app-D0y0UR-U.js → app-CB3ye-CT.js} +16 -16
  12. package/dist/app.js +1 -1
  13. package/dist/{dayjs.min-COoXlyZR.js → dayjs.min-DOxEzdpe.js} +1 -1
  14. package/dist/{employee-UNFKUR2e.js → employee-G0pQg8_6.js} +3 -3
  15. package/dist/{index-BPGh5yHT.js → index-Beu6IuhT.js} +258 -257
  16. package/dist/{index-2et9Y2xR.js → index-DQArLkVB.js} +1 -1
  17. package/dist/{lodash-CDk6w3_I.js → lodash-COjtwv4w.js} +1 -1
  18. package/dist/{components → src/components}/form/SelectFilter.vue.d.ts +2 -0
  19. package/dist/{team-B0EB57-E.js → team-CEtKQK6n.js} +1 -1
  20. package/dist/{timesheet-DmthH-5T.js → timesheet-DZF9D3QQ.js} +2 -2
  21. package/dist/tsconfig.app.tsbuildinfo +1 -1
  22. package/dist/{useAppStore-Ba_pxve9.js → useAppStore-9lbKMy_9.js} +1 -1
  23. package/dist/{useLoading-PuFP-Lbd.js → useLoading-BIIvuJcM.js} +1 -1
  24. package/dist/{useReportPermissions-mKoU-8Yq.js → useReportPermissions-BXQ0-WwK.js} +2 -2
  25. package/package.json +2 -2
  26. package/dist/AuditLogList-BvEIB73A.js +0 -474
  27. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JopeRj37.js +0 -3287
  28. /package/dist/{App.vue.d.ts → src/App.vue.d.ts} +0 -0
  29. /package/dist/{Entry.vue.d.ts → src/Entry.vue.d.ts} +0 -0
  30. /package/dist/{api → src/api}/audit-log/index.d.ts +0 -0
  31. /package/dist/{api → src/api}/employee/index.d.ts +0 -0
  32. /package/dist/{api → src/api}/index.d.ts +0 -0
  33. /package/dist/{api → src/api}/inventory/index.d.ts +0 -0
  34. /package/dist/{api → src/api}/permission-assignment/index.d.ts +0 -0
  35. /package/dist/{api → src/api}/permission-set/index.d.ts +0 -0
  36. /package/dist/{api → src/api}/public-setting/index.d.ts +0 -0
  37. /package/dist/{api → src/api}/report-query/index.d.ts +0 -0
  38. /package/dist/{api → src/api}/role/index.d.ts +0 -0
  39. /package/dist/{api → src/api}/team/index.d.ts +0 -0
  40. /package/dist/{api → src/api}/timesheet/index.d.ts +0 -0
  41. /package/dist/{api → src/api}/user/index.d.ts +0 -0
  42. /package/dist/{app.d.ts → src/app.d.ts} +0 -0
  43. /package/dist/{components → src/components}/AppForm.vue.d.ts +0 -0
  44. /package/dist/{components → src/components}/CheckboxInput.vue.d.ts +0 -0
  45. /package/dist/{components → src/components}/CollapsibleWrapper.vue.d.ts +0 -0
  46. /package/dist/{components → src/components}/Navigator.vue.d.ts +0 -0
  47. /package/dist/{components → src/components}/Splash.vue.d.ts +0 -0
  48. /package/dist/{components → src/components}/button/ResponsiveFabButton.vue.d.ts +0 -0
  49. /package/dist/{components → src/components}/layout/FormColumn.vue.d.ts +0 -0
  50. /package/dist/{components → src/components}/layout/FormItem.vue.d.ts +0 -0
  51. /package/dist/{components → src/components}/layout/FormSection.vue.d.ts +0 -0
  52. /package/dist/{components → src/components}/layout/FullWrapper.vue.d.ts +0 -0
  53. /package/dist/{components → src/components}/layout/HorizontalSplitter.vue.d.ts +0 -0
  54. /package/dist/{components → src/components}/layout/LottieAnimation.vue.d.ts +0 -0
  55. /package/dist/{components → src/components}/layout/PageLayout.vue.d.ts +0 -0
  56. /package/dist/{components → src/components}/loading/AppLoading.vue.d.ts +0 -0
  57. /package/dist/{components → src/components}/loading/PageLoading.vue.d.ts +0 -0
  58. /package/dist/{components → src/components}/loading/index.d.ts +0 -0
  59. /package/dist/{components → src/components}/menu/BottomSheetMenu.vue.d.ts +0 -0
  60. /package/dist/{components → src/components}/menu/BottomSheetMenuItem.vue.d.ts +0 -0
  61. /package/dist/{components → src/components}/menu/ResponsiveContextMenu.vue.d.ts +0 -0
  62. /package/dist/{components → src/components}/table/EmptyDataTemplate/Icon.vue.d.ts +0 -0
  63. /package/dist/{components → src/components}/table/EmptyDataTemplate/index.d.ts +0 -0
  64. /package/dist/{components → src/components}/table/EmptyDataTemplate/index.vue.d.ts +0 -0
  65. /package/dist/{composables → src/composables}/useAppStore.d.ts +0 -0
  66. /package/dist/{composables → src/composables}/useCustomReportPermissions.d.ts +0 -0
  67. /package/dist/{composables → src/composables}/useDateRange.d.ts +0 -0
  68. /package/dist/{composables → src/composables}/useDiscardConfirm.d.ts +0 -0
  69. /package/dist/{composables → src/composables}/useElementPosition.d.ts +0 -0
  70. /package/dist/{composables → src/composables}/useFilterSelector.d.ts +0 -0
  71. /package/dist/{composables → src/composables}/useLoading.d.ts +0 -0
  72. /package/dist/{composables → src/composables}/useMessage.d.ts +0 -0
  73. /package/dist/{composables → src/composables}/useReportPermissions.d.ts +0 -0
  74. /package/dist/{composables → src/composables}/useRestaurantMap.d.ts +0 -0
  75. /package/dist/{composables → src/composables}/useSearch.d.ts +0 -0
  76. /package/dist/{composables → src/composables}/useSheet.d.ts +0 -0
  77. /package/dist/{helpers → src/helpers}/component.d.ts +0 -0
  78. /package/dist/{helpers → src/helpers}/iteration.d.ts +0 -0
  79. /package/dist/{helpers → src/helpers}/object.d.ts +0 -0
  80. /package/dist/{helpers → src/helpers}/permission-set.d.ts +0 -0
  81. /package/dist/{helpers → src/helpers}/portal-user.d.ts +0 -0
  82. /package/dist/{helpers → src/helpers}/rule.d.ts +0 -0
  83. /package/dist/{helpers → src/helpers}/string.d.ts +0 -0
  84. /package/dist/{helpers → src/helpers}/utils.d.ts +0 -0
  85. /package/dist/{main.d.ts → src/main.d.ts} +0 -0
  86. /package/dist/{router → src/router}/index.d.ts +0 -0
  87. /package/dist/{router → src/router}/shared.d.ts +0 -0
  88. /package/dist/{stores → src/stores}/employee.d.ts +0 -0
  89. /package/dist/{stores → src/stores}/permission-assignment.d.ts +0 -0
  90. /package/dist/{stores → src/stores}/permission-set.d.ts +0 -0
  91. /package/dist/{stores → src/stores}/role.d.ts +0 -0
  92. /package/dist/{stores → src/stores}/team.d.ts +0 -0
  93. /package/dist/{stores → src/stores}/timesheet.d.ts +0 -0
  94. /package/dist/{types → src/types}/audit-log.d.ts +0 -0
  95. /package/dist/{types → src/types}/employee.d.ts +0 -0
  96. /package/dist/{types → src/types}/permission-assignment.d.ts +0 -0
  97. /package/dist/{types → src/types}/permission-set.d.ts +0 -0
  98. /package/dist/{types → src/types}/report-query.d.ts +0 -0
  99. /package/dist/{types → src/types}/restaurant.d.ts +0 -0
  100. /package/dist/{types → src/types}/role.d.ts +0 -0
  101. /package/dist/{types → src/types}/team.d.ts +0 -0
  102. /package/dist/{types → src/types}/timesheet.d.ts +0 -0
  103. /package/dist/{views → src/views}/audit-log/AuditLogList.vue.d.ts +0 -0
  104. /package/dist/{views → src/views}/audit-log/locales/index.d.ts +0 -0
  105. /package/dist/{views → src/views}/hr/Main.vue.d.ts +0 -0
  106. /package/dist/{views → src/views}/hr/employee/Employee.vue.d.ts +0 -0
  107. /package/dist/{views → src/views}/hr/employee/EmployeeForm.vue.d.ts +0 -0
  108. /package/dist/{views → src/views}/hr/employee/EmployeeList.vue.d.ts +0 -0
  109. /package/dist/{views → src/views}/hr/locales/index.d.ts +0 -0
  110. /package/dist/{views → src/views}/hr/role/RoleForm.vue.d.ts +0 -0
  111. /package/dist/{views → src/views}/hr/role/RoleList.vue.d.ts +0 -0
  112. /package/dist/{views → src/views}/hr/timesheet/TimesheetList.vue.d.ts +0 -0
  113. /package/dist/{views → src/views}/team/Main.vue.d.ts +0 -0
  114. /package/dist/{views → src/views}/team/components/BasePermission.vue.d.ts +0 -0
  115. /package/dist/{views → src/views}/team/components/ConditionPermission.vue.d.ts +0 -0
  116. /package/dist/{views → src/views}/team/components/InheritPermissionTooltip.vue.d.ts +0 -0
  117. /package/dist/{views → src/views}/team/components/PermissionWithTooltip.vue.d.ts +0 -0
  118. /package/dist/{views → src/views}/team/components/PortalPermissionEditor.vue.d.ts +0 -0
  119. /package/dist/{views → src/views}/team/components/PortalUserSearcher.vue.d.ts +0 -0
  120. /package/dist/{views → src/views}/team/components/PosRolePermission.vue.d.ts +0 -0
  121. /package/dist/{views → src/views}/team/locales/index.d.ts +0 -0
  122. /package/dist/{views → src/views}/team/member/AddMemberForm.vue.d.ts +0 -0
  123. /package/dist/{views → src/views}/team/member/MemberInfo.vue.d.ts +0 -0
  124. /package/dist/{views → src/views}/team/member/TeamMemberList.vue.d.ts +0 -0
  125. /package/dist/{views → src/views}/team/member/TeamMemberMasterUser.vue.d.ts +0 -0
  126. /package/dist/{views → src/views}/team/permission-set/PermissionSetForm.vue.d.ts +0 -0
  127. /package/dist/{views → src/views}/team/permission-set/PermissionSetList.vue.d.ts +0 -0
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as he, ref as T, computed as _, onMounted as _e, watch as ue, resolveComponent as y, createBlock as k, openBlock as v, unref as t, withCtx as b, createElementVNode as h, createVNode as p, createCommentVNode as me, createElementBlock as P, Fragment as W, renderList as ae, toDisplayString as M, h as V, createTextVNode as de, resolveDynamicComponent as ce, withModifiers as we, nextTick as pe } from "vue";
2
- import { e as ke, a as w, r as K, h as re, f as Ue, c as ve, d as Z } from "./index-BPGh5yHT.js";
2
+ import { e as ke, a as w, r as K, h as re, f as Ue, c as ve, d as Z } from "./index-Beu6IuhT.js";
3
3
  import { useI18n as ge, useCoreStore as be } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as ye, components as se, useDialog as Le, useBreakpoints as Ie, FmButtonColorThemeVariant as fe, FmButtonVariant as Ee } from "@feedmepos/ui-library";
5
- import { _ as Se } from "./app-D0y0UR-U.js";
5
+ import { _ as Se } from "./app-CB3ye-CT.js";
6
6
  import { _ as Pe } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
- import { u as Fe } from "./useAppStore-Ba_pxve9.js";
8
- import { u as xe } from "./useReportPermissions-mKoU-8Yq.js";
7
+ import { u as Fe } from "./useAppStore-9lbKMy_9.js";
8
+ import { u as xe } from "./useReportPermissions-BXQ0-WwK.js";
9
9
  import { u as $e, _ as oe, a as Te, b as Be } from "./useRestaurantMap-D5BNPLKh.js";
10
- import { l as ee } from "./lodash-CDk6w3_I.js";
11
- import { u as De } from "./useLoading-PuFP-Lbd.js";
10
+ import { l as ee } from "./lodash-COjtwv4w.js";
11
+ import { u as De } from "./useLoading-BIIvuJcM.js";
12
12
  const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, Ne = { class: "space-y-8" }, Oe = { class: "space-y-8" }, Je = {
13
13
  key: 0,
14
14
  class: "w-50 ml-5 flex flex-row items-start"
@@ -1,30 +1,30 @@
1
- import { ref as B, computed as c, defineComponent as G, watch as J, nextTick as Q, resolveComponent as w, createElementBlock as f, openBlock as i, createElementVNode as A, createVNode as k, renderSlot as _, withCtx as L, createCommentVNode as S, normalizeStyle as W, Fragment as V, createBlock as P, unref as p, renderList as N, normalizeClass as X, toDisplayString as Y, withModifiers as Z } from "vue";
1
+ import { ref as B, computed as v, defineComponent as G, watch as J, nextTick as Q, resolveComponent as C, createElementBlock as m, openBlock as c, createElementVNode as w, createVNode as k, renderSlot as _, withCtx as L, createCommentVNode as S, normalizeStyle as W, Fragment as V, createBlock as P, unref as p, renderList as N, normalizeClass as X, toDisplayString as Y, withModifiers as Z } from "vue";
2
2
  import "@feedmepos/ui-library";
3
3
  /* empty css */
4
- function ee(t, u, m = t) {
5
- const l = B(!0), g = c(() => {
6
- if (!l.value && !u.value)
4
+ function ee(t, u, g = t) {
5
+ const e = B(!0), h = v(() => {
6
+ if (!e.value && !u.value)
7
7
  return !0;
8
8
  if (u.value && u.value.length > 0) {
9
- const r = m.value.map((o) => o.value);
9
+ const r = g.value.map((o) => o.value);
10
10
  return u.value.length === r.length && u.value.every((o) => r.includes(o));
11
11
  }
12
12
  return !1;
13
- }), e = c(() => {
14
- var r, o, y, v;
15
- return !!((r = u.value) != null && r.length && ((o = u.value) == null ? void 0 : o.length) > 0 && ((y = u.value) == null ? void 0 : y.length) < ((v = t.value) == null ? void 0 : v.length));
13
+ }), l = v(() => {
14
+ var r, o, y, f;
15
+ return !!((r = u.value) != null && r.length && ((o = u.value) == null ? void 0 : o.length) > 0 && ((y = u.value) == null ? void 0 : y.length) < ((f = t.value) == null ? void 0 : f.length));
16
16
  });
17
- return { allCleared: l, allSelected: g, indeterminate: e, toggleAll: () => {
18
- if (g.value) {
19
- u.value = void 0, l.value = !0;
17
+ return { allCleared: e, allSelected: h, indeterminate: l, toggleAll: () => {
18
+ if (h.value) {
19
+ u.value = void 0, e.value = !0;
20
20
  return;
21
21
  }
22
- const r = m.value.map((o) => o.value);
23
- r.length === t.value.length ? (u.value = void 0, l.value = !1) : (u.value = r, l.value = !1);
22
+ const r = g.value.map((o) => o.value);
23
+ r.length === t.value.length ? (u.value = void 0, e.value = !1) : (u.value = r, e.value = !1);
24
24
  }, toggleOption: (r) => {
25
- var y, v, x;
25
+ var y, f, x;
26
26
  let o;
27
- u.value === void 0 && l.value ? o = [r] : u.value === void 0 && !l.value ? o = (y = t.value.map((b) => b.value)) == null ? void 0 : y.filter((b) => b !== r) : (v = u.value) != null && v.includes(r) ? o = (x = u.value) == null ? void 0 : x.filter((b) => b !== r) : o = [...u.value || [], r], o.length === 0 ? (u.value = void 0, l.value = !0) : o.length === t.value.length ? (u.value = void 0, l.value = !1) : u.value = o;
27
+ u.value === void 0 && e.value ? o = [r] : u.value === void 0 && !e.value ? o = (y = t.value.map((b) => b.value)) == null ? void 0 : y.filter((b) => b !== r) : (f = u.value) != null && f.includes(r) ? o = (x = u.value) == null ? void 0 : x.filter((b) => b !== r) : o = [...u.value || [], r], o.length === 0 ? (u.value = void 0, e.value = !0) : o.length === t.value.length ? (u.value = void 0, e.value = !1) : u.value = o;
28
28
  } };
29
29
  }
30
30
  const le = { class: "w-full flex flex-col gap-8" }, ae = { class: "flex items-center gap-8" }, te = { class: "inline-flex items-center" }, ue = { class: "flex flex-col w-[360px] min-h-0 gap-8" }, ne = {
@@ -46,82 +46,86 @@ const le = { class: "w-full flex flex-col gap-8" }, ae = { class: "flex items-ce
46
46
  chipIcon: { default: "filter_list" },
47
47
  showSelectAll: { type: Boolean, default: !0 },
48
48
  maxHeight: { default: 300 },
49
- selectedPrefix: { default: "Selected: " }
49
+ selectedPrefix: { default: "Selected: " },
50
+ filterFn: {}
50
51
  },
51
52
  emits: ["update:modelValue", "change"],
52
- setup(t, { expose: u, emit: m }) {
53
- const l = t, g = m, e = c({
54
- get: () => l.modelValue,
53
+ setup(t, { expose: u, emit: g }) {
54
+ const e = t, h = g, l = v({
55
+ get: () => e.modelValue,
55
56
  set: (a) => {
56
- g("update:modelValue", a), g("change", a);
57
+ h("update:modelValue", a), h("change", a);
57
58
  }
58
- }), C = B(""), h = c(() => l.items), r = c(() => {
59
- if (!l.searchable || !C.value.trim()) return h.value;
60
- const a = C.value.toLowerCase();
61
- return h.value.filter((n) => n.label.toLowerCase().includes(a));
62
- }), o = c(() => {
63
- if (!e.value || Array.isArray(e.value) && e.value.length === 0)
64
- return l.placeholder;
65
- if (Array.isArray(e.value) && e.value.length === 1) {
66
- const n = h.value.find((d) => d.value === e.value[0]);
67
- return (n == null ? void 0 : n.label) || l.placeholder;
59
+ }), F = B(""), d = v(() => e.items), r = v(() => {
60
+ const a = F.value.trim();
61
+ if (!e.searchable || !a) return d.value;
62
+ if (e.filterFn)
63
+ return d.value.filter((i) => e.filterFn(i, a));
64
+ const n = a.toLowerCase();
65
+ return d.value.filter((i) => i.label.toLowerCase().includes(n));
66
+ }), o = v(() => {
67
+ if (!l.value || Array.isArray(l.value) && l.value.length === 0)
68
+ return e.placeholder;
69
+ if (Array.isArray(l.value) && l.value.length === 1) {
70
+ const n = d.value.find((i) => i.value === l.value[0]);
71
+ return (n == null ? void 0 : n.label) || e.placeholder;
68
72
  }
69
- const a = Array.isArray(e.value) ? e.value.length : 0;
70
- return `${l.selectedPrefix}${a}`;
71
- }), y = c(() => {
72
- if (e.value === void 0 || e.value === null || e.value === "")
73
- return l.placeholder;
74
- const a = h.value.find((n) => n.value === e.value);
75
- return (a == null ? void 0 : a.label) || l.placeholder;
76
- }), v = c(
77
- () => l.multiple ? o.value : y.value
78
- ), x = c(() => l.disabled ? "neutral-gray-200" : l.variant === "dark" ? "neutral-black" : "neutral-gray-400"), b = c(() => l.disabled ? "text-fm-color-neutral-gray-200" : l.variant === "dark" ? "text-fm-color-neutral-black" : "text-fm-color-neutral-gray-400"), M = B(void 0), E = new Proxy(M, {
73
+ const a = Array.isArray(l.value) ? l.value.length : 0;
74
+ return `${e.selectedPrefix}${a}`;
75
+ }), y = v(() => {
76
+ if (l.value === void 0 || l.value === null || l.value === "")
77
+ return e.placeholder;
78
+ const a = d.value.find((n) => n.value === l.value);
79
+ return (a == null ? void 0 : a.label) || e.placeholder;
80
+ }), f = v(
81
+ () => e.multiple ? o.value : y.value
82
+ ), x = v(() => e.disabled ? "neutral-gray-200" : e.variant === "dark" ? "neutral-black" : "neutral-gray-400"), b = v(() => e.disabled ? "text-fm-color-neutral-gray-200" : e.variant === "dark" ? "text-fm-color-neutral-black" : "text-fm-color-neutral-gray-400"), M = B(void 0), E = new Proxy(M, {
79
83
  get(a, n) {
80
- return n === "value" ? Array.isArray(e.value) ? e.value : e.value === void 0 ? void 0 : [e.value] : M[n];
84
+ return n === "value" ? Array.isArray(l.value) ? l.value : l.value === void 0 ? void 0 : [l.value] : M[n];
81
85
  },
82
- set(a, n, d) {
83
- return n === "value" ? (e.value = d, !0) : (M[n] = d, !0);
86
+ set(a, n, i) {
87
+ return n === "value" ? (l.value = i, !0) : (M[n] = i, !0);
84
88
  }
85
- }), { allSelected: $, toggleAll: D, toggleOption: H, indeterminate: K } = ee(
86
- h,
89
+ }), { allSelected: z, toggleAll: K, toggleOption: H, indeterminate: D } = ee(
90
+ d,
87
91
  E,
88
92
  r
89
93
  );
90
94
  function O(a) {
91
95
  var n;
92
- l.multiple || (e.value = a, (n = F.value) == null || n.toggleMenu(!1));
96
+ e.multiple || (l.value = a, (n = A.value) == null || n.toggleMenu(!1));
93
97
  }
94
98
  function T(a) {
95
- a.stopPropagation(), !l.disabled && (e.value = null);
99
+ a.stopPropagation(), !e.disabled && (l.value = null);
96
100
  }
97
101
  J(
98
- () => l.autoSelectFirst,
102
+ () => e.autoSelectFirst,
99
103
  async (a) => {
100
- if (a && !l.multiple && (e.value === void 0 || e.value === null)) {
104
+ if (a && !e.multiple && (l.value === void 0 || l.value === null)) {
101
105
  await Q();
102
- const n = h.value[0];
103
- n && (e.value = n.value);
106
+ const n = d.value[0];
107
+ n && (l.value = n.value);
104
108
  }
105
109
  },
106
110
  { immediate: !0 }
107
111
  );
108
- const F = B(null);
112
+ const A = B(null);
109
113
  return u({
110
114
  open: () => {
111
115
  var a;
112
- return (a = F.value) == null ? void 0 : a.toggleMenu(!0);
116
+ return (a = A.value) == null ? void 0 : a.toggleMenu(!0);
113
117
  },
114
118
  close: () => {
115
119
  var a;
116
- return (a = F.value) == null ? void 0 : a.toggleMenu(!1);
120
+ return (a = A.value) == null ? void 0 : a.toggleMenu(!1);
117
121
  }
118
122
  }), (a, n) => {
119
- const d = w("FmIcon"), U = w("FmChip"), j = w("FmSearch"), z = w("FmMenuItem"), q = w("FmMenu");
120
- return i(), f("div", le, [
121
- A("div", ae, [
123
+ const i = C("FmIcon"), U = C("FmChip"), j = C("FmSearch"), $ = C("FmMenuItem"), q = C("FmMenu");
124
+ return c(), m("div", le, [
125
+ w("div", ae, [
122
126
  k(q, {
123
127
  ref_key: "menuRef",
124
- ref: F,
128
+ ref: A,
125
129
  "close-on-click": !1,
126
130
  disabled: t.disabled,
127
131
  "z-index": 50,
@@ -129,35 +133,35 @@ const le = { class: "w-full flex flex-col gap-8" }, ae = { class: "flex items-ce
129
133
  }, {
130
134
  "menu-button": L(() => [
131
135
  _(a.$slots, "menu-button", {}, () => [
132
- A("div", te, [
136
+ w("div", te, [
133
137
  k(U, { disabled: t.disabled }, {
134
138
  default: L(() => [
135
- k(d, {
139
+ k(i, {
136
140
  color: x.value,
137
141
  name: t.chipIcon,
138
142
  outline: "",
139
143
  size: "sm"
140
144
  }, null, 8, ["color", "name"]),
141
- v.value ? (i(), f("div", {
145
+ f.value ? (c(), m("div", {
142
146
  key: 0,
143
147
  class: X([
144
148
  "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap",
145
149
  b.value
146
150
  ])
147
- }, Y(v.value), 3)) : S("", !0),
148
- k(d, {
151
+ }, Y(f.value), 3)) : S("", !0),
152
+ k(i, {
149
153
  color: x.value,
150
154
  name: "keyboard_arrow_down",
151
155
  size: "sm"
152
156
  }, null, 8, ["color"]),
153
- t.clearable && !t.multiple && e.value != null && e.value !== "" && !t.disabled ? (i(), f("button", {
157
+ t.clearable && !t.multiple && l.value != null && l.value !== "" && !t.disabled ? (c(), m("button", {
154
158
  key: 1,
155
159
  class: "ml-4 focus:outline-none",
156
160
  type: "button",
157
161
  "aria-label": "Clear selection",
158
162
  onClick: Z(T, ["stop"])
159
163
  }, [
160
- k(d, {
164
+ k(i, {
161
165
  name: "close",
162
166
  size: "sm",
163
167
  color: x.value
@@ -170,55 +174,55 @@ const le = { class: "w-full flex flex-col gap-8" }, ae = { class: "flex items-ce
170
174
  ], !0)
171
175
  ]),
172
176
  default: L(() => [
173
- A("div", ue, [
174
- t.searchable ? (i(), f("div", ne, [
175
- A("div", re, [
177
+ w("div", ue, [
178
+ t.searchable ? (c(), m("div", ne, [
179
+ w("div", re, [
176
180
  k(j, {
177
- modelValue: C.value,
178
- "onUpdate:modelValue": n[0] || (n[0] = (s) => C.value = s),
181
+ modelValue: F.value,
182
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => F.value = s),
179
183
  placeholder: t.searchPlaceholder
180
184
  }, null, 8, ["modelValue", "placeholder"])
181
185
  ])
182
186
  ])) : S("", !0),
183
- A("div", {
187
+ w("div", {
184
188
  class: "flex-1 overflow-y-auto min-h-0",
185
189
  style: W({ maxHeight: typeof t.maxHeight == "number" ? t.maxHeight + "px" : t.maxHeight })
186
190
  }, [
187
- t.multiple ? (i(), f(V, { key: 0 }, [
188
- t.showSelectAll ? (i(), P(z, {
191
+ t.multiple ? (c(), m(V, { key: 0 }, [
192
+ t.showSelectAll ? (c(), P($, {
189
193
  key: 0,
190
194
  label: "All",
191
195
  "has-checkbox": "",
192
- "model-value": p($),
193
- indeterminate: p(K),
194
- onClick: p(D)
196
+ "model-value": p(z),
197
+ indeterminate: p(D),
198
+ onClick: p(K)
195
199
  }, null, 8, ["model-value", "indeterminate", "onClick"])) : S("", !0),
196
- r.value.length ? (i(!0), f(V, { key: 1 }, N(r.value, (s) => {
200
+ r.value.length ? (c(!0), m(V, { key: 1 }, N(r.value, (s) => {
197
201
  var I;
198
202
  return _(a.$slots, "option", {
199
203
  option: s,
200
- selected: p($) || Array.isArray(e.value) && ((I = e.value) == null ? void 0 : I.includes(s.value)),
204
+ selected: p(z) || Array.isArray(l.value) && ((I = l.value) == null ? void 0 : I.includes(s.value)),
201
205
  toggle: () => p(H)(s.value)
202
206
  }, () => {
203
207
  var R;
204
208
  return [
205
- (i(), P(z, {
209
+ (c(), P($, {
206
210
  key: s.value,
207
211
  label: s.label,
208
212
  "has-checkbox": "",
209
- "model-value": p($) || Array.isArray(e.value) && ((R = e.value) == null ? void 0 : R.includes(s.value)),
213
+ "model-value": p(z) || Array.isArray(l.value) && ((R = l.value) == null ? void 0 : R.includes(s.value)),
210
214
  onClick: (ie) => p(H)(s.value)
211
215
  }, null, 8, ["label", "model-value", "onClick"]))
212
216
  ];
213
217
  }, !0);
214
218
  }), 256)) : S("", !0)
215
- ], 64)) : (i(), f(V, { key: 1 }, [
216
- r.value.length ? (i(!0), f(V, { key: 0 }, N(r.value, (s) => _(a.$slots, "option", {
219
+ ], 64)) : (c(), m(V, { key: 1 }, [
220
+ r.value.length ? (c(!0), m(V, { key: 0 }, N(r.value, (s) => _(a.$slots, "option", {
217
221
  option: s,
218
- selected: e.value === s.value,
222
+ selected: l.value === s.value,
219
223
  toggle: () => O(s.value)
220
224
  }, () => [
221
- (i(), P(z, {
225
+ (c(), P($, {
222
226
  key: s.value,
223
227
  label: s.label,
224
228
  onClick: (I) => O(s.value)
@@ -236,11 +240,11 @@ const le = { class: "w-full flex flex-col gap-8" }, ae = { class: "flex items-ce
236
240
  };
237
241
  }
238
242
  }), se = (t, u) => {
239
- const m = t.__vccOpts || t;
240
- for (const [l, g] of u)
241
- m[l] = g;
242
- return m;
243
- }, fe = /* @__PURE__ */ se(oe, [["__scopeId", "data-v-6634d154"]]);
243
+ const g = t.__vccOpts || t;
244
+ for (const [e, h] of u)
245
+ g[e] = h;
246
+ return g;
247
+ }, fe = /* @__PURE__ */ se(oe, [["__scopeId", "data-v-a9d0b3b3"]]);
244
248
  export {
245
249
  fe as S,
246
250
  se as _
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as le, ref as F, resolveComponent as g, createBlock as I, openBlock as f, withCtx as A, createElementVNode as i, renderSlot as be, createCommentVNode as G, withModifiers as Pe, nextTick as ke, createElementBlock as T, normalizeClass as $e, createTextVNode as Re, toDisplayString as N, computed as k, Fragment as ue, renderList as ye, createVNode as c, unref as r, watch as Ie, isRef as he, createSlots as je } from "vue";
2
2
  import { useI18n as de, useCoreStore as ce, baseClientInstance as ge, RestaurantSelector as Ve } from "@feedmepos/mf-common";
3
3
  import { useBreakpoints as Ce, useSnackbar as Me, useDialog as Le, components as Fe } from "@feedmepos/ui-library";
4
- import { _ as Ee, S as xe } from "./SelectFilter-NbXrJ4iH.js";
5
- import { f as Te, U as ze, _ as qe } from "./app-D0y0UR-U.js";
4
+ import { _ as Ee, S as xe } from "./SelectFilter-DUj7GBtT.js";
5
+ import { f as Te, U as ze, _ as qe } from "./app-CB3ye-CT.js";
6
6
  import { _ as Ke } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
7
  import { u as Ne } from "./useSearch-B6WK1LBB.js";
8
- import { u as Ge } from "./useLoading-PuFP-Lbd.js";
9
- import { g as Se, l as Be, u as De, m as We, n as Je, o as pe, q as Oe, p as Qe, v as Ue, w as Xe, x as Ye, y as Ze, z as He, t as fe } from "./index-BPGh5yHT.js";
10
- import "./index-2et9Y2xR.js";
11
- import { u as Ae } from "./useAppStore-Ba_pxve9.js";
8
+ import { u as Ge } from "./useLoading-BIIvuJcM.js";
9
+ import { g as Se, l as Be, u as De, m as We, n as Je, o as pe, q as Oe, p as Qe, v as Ue, w as Xe, x as Ye, y as Ze, z as He, t as fe } from "./index-Beu6IuhT.js";
10
+ import "./index-DQArLkVB.js";
11
+ import { u as Ae } from "./useAppStore-9lbKMy_9.js";
12
12
  /* empty css */
13
- import { _ as es, a as ss } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JopeRj37.js";
14
- import { u as ts } from "./team-B0EB57-E.js";
13
+ import { _ as es, a as ss } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ChqCTn1L.js";
14
+ import { u as ts } from "./team-CEtKQK6n.js";
15
15
  const os = /* @__PURE__ */ le({
16
16
  __name: "BottomSheetMenu",
17
17
  setup(t) {
@@ -1,13 +1,13 @@
1
1
  import { ref as d, computed as b, defineComponent as ce, onMounted as me, watch as X, resolveComponent as i, createElementBlock as B, openBlock as D, Fragment as Z, createVNode as l, createElementVNode as u, unref as n, withCtx as C, createCommentVNode as pe, toDisplayString as $, createTextVNode as ve, createBlock as z, isRef as fe, renderList as he, nextTick as ge } from "vue";
2
- import { d as v } from "./dayjs.min-COoXlyZR.js";
2
+ import { d as v } from "./dayjs.min-DOxEzdpe.js";
3
3
  import { useI18n as we, useCoreStore as ye, RestaurantSelector as be } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as _e, components as De } from "@feedmepos/ui-library";
5
- import { _ as xe } from "./app-D0y0UR-U.js";
5
+ import { _ as xe } from "./app-CB3ye-CT.js";
6
6
  import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
- import { u as ke } from "./useLoading-PuFP-Lbd.js";
8
- import { i as Ce, j as Ve, s as Fe } from "./index-BPGh5yHT.js";
9
- import { u as Ye } from "./employee-UNFKUR2e.js";
10
- import { u as Le } from "./timesheet-DmthH-5T.js";
7
+ import { u as ke } from "./useLoading-BIIvuJcM.js";
8
+ import { i as Ce, j as Ve, s as Fe } from "./index-Beu6IuhT.js";
9
+ import { u as Ye } from "./employee-G0pQg8_6.js";
10
+ import { u as Le } from "./timesheet-DZF9D3QQ.js";
11
11
  function Me(x, a) {
12
12
  return ["years", "months"].find((S) => {
13
13
  const k = x.startOf(S), f = x.endOf(S);
@@ -2418,73 +2418,73 @@ const gA = /* @__PURE__ */ new Set([
2418
2418
  closeup: {
2419
2419
  label: "Closeup",
2420
2420
  subject: i.report_reports_closeup,
2421
- actions: [t.manage, t.create],
2421
+ actions: [t.manage, t.read, t.create],
2422
2422
  category: b.reports
2423
2423
  },
2424
2424
  dailySales: {
2425
2425
  label: "Daily Sales",
2426
2426
  subject: i.report_reports_dailySales,
2427
- actions: [t.manage, t.create],
2427
+ actions: [t.manage, t.read, t.create],
2428
2428
  category: b.reports
2429
2429
  },
2430
2430
  hourlySales: {
2431
2431
  label: "Hourly Sales",
2432
2432
  subject: i.report_reports_hourlySales,
2433
- actions: [t.manage, t.create],
2433
+ actions: [t.manage, t.read, t.create],
2434
2434
  category: b.reports
2435
2435
  },
2436
2436
  drawer: {
2437
2437
  label: "Drawer",
2438
2438
  subject: i.report_reports_drawer,
2439
- actions: [t.manage, t.create],
2439
+ actions: [t.manage, t.read, t.create],
2440
2440
  category: b.reports
2441
2441
  },
2442
2442
  userProductSales: {
2443
2443
  label: "User Product Sales",
2444
2444
  subject: i.report_reports_userProductSales,
2445
- actions: [t.manage, t.create],
2445
+ actions: [t.manage, t.read, t.create],
2446
2446
  category: b.reports
2447
2447
  },
2448
2448
  counter: {
2449
2449
  label: "Counter",
2450
2450
  subject: i.report_reports_counter,
2451
- actions: [t.manage, t.create],
2451
+ actions: [t.manage, t.read, t.create],
2452
2452
  category: b.reports
2453
2453
  },
2454
2454
  discount: {
2455
2455
  label: "Discount",
2456
2456
  subject: i.report_reports_discount,
2457
- actions: [t.manage, t.create],
2457
+ actions: [t.manage, t.read, t.create],
2458
2458
  category: b.reports
2459
2459
  },
2460
2460
  timesheet: {
2461
2461
  label: "Timesheet",
2462
2462
  subject: i.report_reports_timesheet,
2463
- actions: [t.manage, t.create],
2463
+ actions: [t.manage, t.read, t.create],
2464
2464
  category: b.reports
2465
2465
  },
2466
2466
  productSales: {
2467
2467
  label: "Product Sales",
2468
2468
  subject: i.report_reports_productSales,
2469
- actions: [t.manage, t.create],
2469
+ actions: [t.manage, t.read, t.create],
2470
2470
  category: b.reports
2471
2471
  },
2472
2472
  addonSales: {
2473
2473
  label: "Addon Sales",
2474
2474
  subject: i.report_reports_addonSales,
2475
- actions: [t.manage, t.create],
2475
+ actions: [t.manage, t.read, t.create],
2476
2476
  category: b.reports
2477
2477
  },
2478
2478
  void: {
2479
2479
  label: "Void",
2480
2480
  subject: i.report_reports_void,
2481
- actions: [t.manage, t.create],
2481
+ actions: [t.manage, t.read, t.create],
2482
2482
  category: b.reports
2483
2483
  },
2484
2484
  refund: {
2485
2485
  label: "Refund",
2486
2486
  subject: i.report_reports_refund,
2487
- actions: [t.manage, t.create],
2487
+ actions: [t.manage, t.read, t.create],
2488
2488
  category: b.reports
2489
2489
  }
2490
2490
  };
@@ -3217,10 +3217,10 @@ const Ae = (e) => ({
3217
3217
  }
3218
3218
  ]
3219
3219
  }
3220
- }), _s = ue(F(() => import("./Main-DsOSGRS7.js"))), $s = ue(F(() => import("./Main-BVogGot1.js"))), eA = ue(
3221
- F(() => import("./AuditLogList-BvEIB73A.js"))
3222
- ), tA = F(() => import("./EmployeeList-B_pgDSOf.js")), sA = F(() => import("./RoleList-B09gFRrt.js")), AA = F(() => import("./TimesheetList-BykQ0VO_.js")), rA = F(() => import("./TeamMemberList-DZKq2mDD.js")), aA = F(
3223
- () => import("./PermissionSetList-B243twFl.js")
3220
+ }), _s = ue(F(() => import("./Main-CdsqeB2G.js"))), $s = ue(F(() => import("./Main-B4YdcrGe.js"))), eA = ue(
3221
+ F(() => import("./AuditLogList-COq6WH3T.js"))
3222
+ ), tA = F(() => import("./EmployeeList-CtosIPFL.js")), sA = F(() => import("./RoleList-D1NGE2IC.js")), AA = F(() => import("./TimesheetList-B8yCkaxb.js")), rA = F(() => import("./TeamMemberList-auSjZRNz.js")), aA = F(
3223
+ () => import("./PermissionSetList-BUORArci.js")
3224
3224
  ), BA = [
3225
3225
  {
3226
3226
  path: "/",
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { d as e, b as r, r as o } from "./app-D0y0UR-U.js";
1
+ import { d as e, b as r, r as o } from "./app-CB3ye-CT.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g as Q, c as K } from "./app-D0y0UR-U.js";
1
+ import { g as Q, c as K } from "./app-CB3ye-CT.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, k) {
@@ -1,9 +1,9 @@
1
- import { d as T } from "./dayjs.min-COoXlyZR.js";
1
+ import { d as T } from "./dayjs.min-DOxEzdpe.js";
2
2
  import { defineStore as _, storeToRefs as U } from "pinia";
3
3
  import { ref as I } from "vue";
4
4
  import { useCoreStore as $ } from "@feedmepos/mf-common";
5
- import { b as r, g as o, t as b, k as S, s as v } from "./index-BPGh5yHT.js";
6
- import { u as x } from "./useAppStore-Ba_pxve9.js";
5
+ import { b as r, g as o, t as b, k as S, s as v } from "./index-Beu6IuhT.js";
6
+ import { u as x } from "./useAppStore-9lbKMy_9.js";
7
7
  const n = {
8
8
  async readEmployees() {
9
9
  return o(await r().get("/pos-users"));