@feedmepos/mf-hrm-portal 2.0.8-dev.12 → 2.0.8-dev.14

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 (28) hide show
  1. package/dist/AuditLogList-CEGtohT7.js +734 -0
  2. package/dist/{EmployeeList-CVnIGntI.js → EmployeeList-B5_KnyrU.js} +5 -5
  3. package/dist/{Main-q8IGKAH2.js → Main-Ayry4ijA.js} +6 -6
  4. package/dist/{Main-CMiYmjMk.js → Main-Dksmkrg_.js} +9 -9
  5. package/dist/{Main-bmpvqNUB.js → Main-g3IbbAEf.js} +4 -4
  6. package/dist/{PermissionSetList-0kvdLTQ2.js → PermissionSetList-BoqxRXoi.js} +28 -28
  7. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DdwUIbD4.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B4ZJlGuT.js} +738 -738
  8. package/dist/{RoleList-DjxZzgZk.js → RoleList-Cx_JPfNr.js} +7 -7
  9. package/dist/{TeamMemberList-PmbUeFns.js → TeamMemberList-CDY7Y_qm.js} +8 -8
  10. package/dist/{TimesheetList-Cs_8p1TE.js → TimesheetList-BYieGfIy.js} +7 -7
  11. package/dist/{app-PYFafU8x.js → app-p4cgjZ-r.js} +104 -68
  12. package/dist/app.js +2 -2
  13. package/dist/{dayjs.min-DjR87Y9e.js → dayjs.min-BRO-vkLx.js} +1 -1
  14. package/dist/{employee-snwYlork.js → employee-CCBUMHaJ.js} +4 -4
  15. package/dist/{index-DPEw4kQP.js → index-rMjkDl2r.js} +1 -1
  16. package/dist/{index-QNkZDIo5.js → index-sEHzMXB6.js} +2 -2
  17. package/dist/{iteration-BwzU2yPh.js → iteration-CnyH8-jG.js} +1 -1
  18. package/dist/{lodash-8jIJCGdn.js → lodash-CKmCoqNR.js} +1 -1
  19. package/dist/src/api/audit-log/index.d.ts +1 -0
  20. package/dist/src/views/audit-log/locales/index.d.ts +36 -0
  21. package/dist/{team-Dl33dbDU.js → team-Mco_xubK.js} +1 -1
  22. package/dist/{timesheet-BVMwsxuV.js → timesheet-Bb0TM0P8.js} +3 -3
  23. package/dist/tsconfig.app.tsbuildinfo +1 -1
  24. package/dist/{useAppStore-gNcJGfxF.js → useAppStore-BCOsvBrB.js} +1 -1
  25. package/dist/{useLoading-DuapEOya.js → useLoading-BSoKX5sI.js} +1 -1
  26. package/dist/{useReportPermissions-C-f7TyvQ.js → useReportPermissions-D70w_EzG.js} +3 -3
  27. package/package.json +1 -1
  28. package/dist/AuditLogList-CZSE61OK.js +0 -708
@@ -1,16 +1,16 @@
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 w } from "./iteration-BwzU2yPh.js";
2
+ import { e as w } from "./iteration-CnyH8-jG.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 ke, useBreakpoints as Ue, FmButtonColorThemeVariant as ve, FmButtonVariant as Le } from "@feedmepos/ui-library";
5
- import { _ as Ie } from "./app-PYFafU8x.js";
5
+ import { _ as Ie } from "./app-p4cgjZ-r.js";
6
6
  import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
- import { e as Se, r as K, h as re, f as Pe, g as fe, a as Z } from "./index-QNkZDIo5.js";
8
- import { u as Fe } from "./useAppStore-gNcJGfxF.js";
9
- import { u as xe } from "./useReportPermissions-C-f7TyvQ.js";
7
+ import { e as Se, r as K, h as re, f as Pe, g as fe, a as Z } from "./index-sEHzMXB6.js";
8
+ import { u as Fe } from "./useAppStore-BCOsvBrB.js";
9
+ import { u as xe } from "./useReportPermissions-D70w_EzG.js";
10
10
  import { u as $e, a as Te } from "./useRestaurantMap-e9fQJiLC.js";
11
- import { l as ee } from "./lodash-8jIJCGdn.js";
11
+ import { l as ee } from "./lodash-CKmCoqNR.js";
12
12
  import { _ as oe, a as Be } from "./FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js";
13
- import { u as De } from "./useLoading-DuapEOya.js";
13
+ import { u as De } from "./useLoading-BSoKX5sI.js";
14
14
  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 = {
15
15
  key: 0,
16
16
  class: "w-50 ml-5 flex flex-row items-start"
@@ -2,17 +2,17 @@ import { defineComponent as ae, ref as F, resolveComponent as _, createBlock as
2
2
  import { useI18n as de, useCoreStore as ce, baseClientInstance as ge, RestaurantSelector as Ve } from "@feedmepos/mf-common";
3
3
  import { useBreakpoints as Ne, useSnackbar as Be, useDialog as Te, components as Fe } from "@feedmepos/ui-library";
4
4
  import { _ as ze, S as xe } from "./SelectFilter-DUj7GBtT.js";
5
- import { i as Se, f as qe, N as Ke, _ as Ge } from "./app-PYFafU8x.js";
5
+ import { a as Se, f as qe, N as Ke, _ as Ge } from "./app-p4cgjZ-r.js";
6
6
  import { _ as We } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
7
  import { u as De } from "./useSearch-B6WK1LBB.js";
8
- import { u as Je } from "./useLoading-DuapEOya.js";
9
- import { g as Ue, d as Oe } from "./iteration-BwzU2yPh.js";
10
- import { u as je, c as Xe, d as Qe, m as pe, j as Ae, p as we, k as Ye, l as Pe, n as Ze, o as He, s as et, q as tt, v as st, t as fe } from "./index-QNkZDIo5.js";
11
- import "./index-DPEw4kQP.js";
12
- import { u as Ee } from "./useAppStore-gNcJGfxF.js";
8
+ import { u as Je } from "./useLoading-BSoKX5sI.js";
9
+ import { g as Ue, d as Oe } from "./iteration-CnyH8-jG.js";
10
+ import { u as je, c as Xe, d as Qe, m as pe, j as Ae, p as we, k as Ye, l as Pe, n as Ze, o as He, s as et, q as tt, v as st, t as fe } from "./index-sEHzMXB6.js";
11
+ import "./index-rMjkDl2r.js";
12
+ import { u as Ee } from "./useAppStore-BCOsvBrB.js";
13
13
  /* empty css */
14
- import { _ as ot, a as at } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DdwUIbD4.js";
15
- import { u as lt } from "./team-Dl33dbDU.js";
14
+ import { _ as ot, a as at } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B4ZJlGuT.js";
15
+ import { u as lt } from "./team-Mco_xubK.js";
16
16
  const nt = /* @__PURE__ */ ae({
17
17
  __name: "BottomSheetMenu",
18
18
  setup(o) {
@@ -1,14 +1,14 @@
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-DjR87Y9e.js";
2
+ import { d as v } from "./dayjs.min-BRO-vkLx.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-PYFafU8x.js";
5
+ import { _ as xe } from "./app-p4cgjZ-r.js";
6
6
  import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
- import { u as ke } from "./useLoading-DuapEOya.js";
8
- import { c as Ce, s as Ve } from "./iteration-BwzU2yPh.js";
9
- import { b as Fe } from "./index-QNkZDIo5.js";
10
- import { u as Ye } from "./employee-snwYlork.js";
11
- import { u as Le } from "./timesheet-BVMwsxuV.js";
7
+ import { u as ke } from "./useLoading-BSoKX5sI.js";
8
+ import { c as Ce, s as Ve } from "./iteration-CnyH8-jG.js";
9
+ import { b as Fe } from "./index-sEHzMXB6.js";
10
+ import { u as Ye } from "./employee-CCBUMHaJ.js";
11
+ import { u as Le } from "./timesheet-Bb0TM0P8.js";
12
12
  function Me(x, a) {
13
13
  return ["years", "months"].find((S) => {
14
14
  const k = x.startOf(S), f = x.endOf(S);
@@ -1,5 +1,5 @@
1
- import { isRef as mt, ref as T, shallowRef as dt, watchEffect as he, computed as ie, h as fe, defineComponent as z, createBlock as $, renderSlot as Ye, createCommentVNode as Bt, unref as Z, openBlock as W, createElementBlock as Ge, createElementVNode as O, toDisplayString as we, watch as De, nextTick as Me, onMounted as Ve, onBeforeUnmount as pt, normalizeStyle as bt, resolveComponent as le, withCtx as ft, createVNode as wt, defineAsyncComponent as Dt } from "vue";
2
- import { useBreakpoints as Mt } from "@feedmepos/ui-library";
1
+ import { isRef as mt, ref as T, shallowRef as dt, watchEffect as he, computed as ie, h as fe, defineComponent as z, createBlock as $, renderSlot as Ye, createCommentVNode as Bt, unref as Z, openBlock as W, createElementBlock as Ge, createElementVNode as O, toDisplayString as we, watch as Me, nextTick as De, onMounted as Ve, onBeforeUnmount as pt, normalizeStyle as bt, resolveComponent as le, withCtx as ft, createVNode as wt, defineAsyncComponent as Mt } from "vue";
2
+ import { useBreakpoints as Dt } from "@feedmepos/ui-library";
3
3
  import { useRoute as vt, useRouter as yt } from "vue-router";
4
4
  import { useCoreStore as ue, useI18n as je } from "@feedmepos/mf-common";
5
5
  const Ee = {
@@ -27,6 +27,15 @@ const Ee = {
27
27
  update: "Update",
28
28
  delete: "Delete"
29
29
  },
30
+ modules: {
31
+ all: "All",
32
+ inventory: "Inventory",
33
+ report: "Report",
34
+ hrm: "HRM",
35
+ payment: "Payment",
36
+ menu: "Menu",
37
+ crm: "CRM"
38
+ },
30
39
  columns: {
31
40
  timestamp: "Date",
32
41
  user: "User",
@@ -137,6 +146,15 @@ const Ee = {
137
146
  update: "อัปเดต",
138
147
  delete: "ลบ"
139
148
  },
149
+ modules: {
150
+ all: "ทั้งหมด",
151
+ inventory: "คลังสินค้า",
152
+ report: "รายงาน",
153
+ hrm: "ทรัพยากรบุคคล",
154
+ payment: "การชำระเงิน",
155
+ menu: "เมนู",
156
+ crm: "CRM"
157
+ },
140
158
  columns: {
141
159
  timestamp: "วันที่",
142
160
  user: "ผู้ใช้",
@@ -248,6 +266,15 @@ const Ee = {
248
266
  update: "更新",
249
267
  delete: "删除"
250
268
  },
269
+ modules: {
270
+ all: "全部",
271
+ inventory: "库存",
272
+ report: "报表",
273
+ hrm: "人事",
274
+ payment: "支付",
275
+ menu: "菜单",
276
+ crm: "CRM"
277
+ },
251
278
  columns: {
252
279
  timestamp: "日期",
253
280
  user: "用户",
@@ -359,6 +386,15 @@ const Ee = {
359
386
  update: "更新",
360
387
  delete: "刪除"
361
388
  },
389
+ modules: {
390
+ all: "全部",
391
+ inventory: "庫存",
392
+ report: "報表",
393
+ hrm: "人事",
394
+ payment: "支付",
395
+ menu: "菜單",
396
+ crm: "CRM"
397
+ },
362
398
  columns: {
363
399
  timestamp: "日期",
364
400
  user: "用戶",
@@ -1973,14 +2009,14 @@ var Le = { exports: {} };
1973
2009
  return te;
1974
2010
  });
1975
2011
  var m = u("Array"), b = u("Object"), v = u("Function");
1976
- function D(t, A) {
2012
+ function M(t, A) {
1977
2013
  return v(t.get) ? t.get(A) : t[A];
1978
2014
  }
1979
2015
  function y(t) {
1980
2016
  return function(A, l) {
1981
2017
  if (!m(l) || !l.length) return t(A, l);
1982
2018
  for (var g = 0, d = l.length; g < d; g++)
1983
- if (t(A, D(l, g))) return !0;
2019
+ if (t(A, M(l, g))) return !0;
1984
2020
  return !1;
1985
2021
  };
1986
2022
  }
@@ -1988,7 +2024,7 @@ var Le = { exports: {} };
1988
2024
  return function(A, l) {
1989
2025
  if (!m(l) || !l.length) return t(A, l);
1990
2026
  for (var g = 0, d = l.length; g < d; g++)
1991
- if (!t(A, D(l, g))) return !1;
2027
+ if (!t(A, M(l, g))) return !1;
1992
2028
  return !0;
1993
2029
  };
1994
2030
  }
@@ -2037,7 +2073,7 @@ var Le = { exports: {} };
2037
2073
  },
2038
2074
  $or: function(t, A, l, g) {
2039
2075
  for (var d = 0, p = t.length; d < p; d++)
2040
- if (h(D(t, d), A, l, g)) return !0;
2076
+ if (h(M(t, d), A, l, g)) return !0;
2041
2077
  return !1;
2042
2078
  },
2043
2079
  $nor: function(t, A, l, g) {
@@ -2045,7 +2081,7 @@ var Le = { exports: {} };
2045
2081
  },
2046
2082
  $and: function(t, A, l, g) {
2047
2083
  for (var d = 0, p = t.length; d < p; d++)
2048
- if (!h(D(t, d), A, l, g)) return !1;
2084
+ if (!h(M(t, d), A, l, g)) return !1;
2049
2085
  return !0;
2050
2086
  },
2051
2087
  $regex: y(function(t, A) {
@@ -2057,7 +2093,7 @@ var Le = { exports: {} };
2057
2093
  $elemMatch: function(t, A, l, g) {
2058
2094
  return m(A) ? !!~function(d, p) {
2059
2095
  for (var f = 0; f < d.length; f++)
2060
- if (D(d, f), h(p, D(d, f))) return f;
2096
+ if (M(d, f), h(p, M(d, f))) return f;
2061
2097
  return -1;
2062
2098
  }(A, t) : h(t, A, l, g);
2063
2099
  },
@@ -2109,29 +2145,29 @@ var Le = { exports: {} };
2109
2145
  if (!(d instanceof Array)) {
2110
2146
  var p = g(d);
2111
2147
  if (p === d && n(d) === "object") {
2112
- for (M = t.length; M--; )
2113
- if (String(t[M]) === String(d) && String(d) !== "[object Object]")
2148
+ for (D = t.length; D--; )
2149
+ if (String(t[D]) === String(d) && String(d) !== "[object Object]")
2114
2150
  return !0;
2115
2151
  }
2116
2152
  if (p === void 0) {
2117
- for (M = t.length; M--; ) if (t[M] == null) return !0;
2153
+ for (D = t.length; D--; ) if (t[D] == null) return !0;
2118
2154
  }
2119
- for (M = t.length; M--; ) {
2120
- var f = h(de(D(t, M), l), p, M, t);
2155
+ for (D = t.length; D--; ) {
2156
+ var f = h(de(M(t, D), l), p, D, t);
2121
2157
  if (f && String(f) !== "[object Object]" && String(p) !== "[object Object]")
2122
2158
  return !0;
2123
2159
  }
2124
2160
  return !!~t.indexOf(p);
2125
2161
  }
2126
- for (var M = d.length; M--; )
2127
- if (~t.indexOf(g(D(d, M)))) return !0;
2162
+ for (var D = d.length; D--; )
2163
+ if (~t.indexOf(g(M(d, D)))) return !0;
2128
2164
  return !1;
2129
2165
  };
2130
2166
  },
2131
2167
  $nin: function(t, A, l) {
2132
2168
  var g = q.$in(t, A, l);
2133
- return function(d, p, f, M) {
2134
- return !g(d, p, f, M);
2169
+ return function(d, p, f, D) {
2170
+ return !g(d, p, f, D);
2135
2171
  };
2136
2172
  },
2137
2173
  $mod: function(t) {
@@ -2141,8 +2177,8 @@ var Le = { exports: {} };
2141
2177
  },
2142
2178
  $ne: function(t, A, l) {
2143
2179
  var g = q.$eq(t, A, l);
2144
- return H(function(d, p, f, M) {
2145
- return !g(d, p, f, M);
2180
+ return H(function(d, p, f, D) {
2181
+ return !g(d, p, f, D);
2146
2182
  });
2147
2183
  },
2148
2184
  $and: function(t, A, l) {
@@ -2192,17 +2228,17 @@ var Le = { exports: {} };
2192
2228
  if (function pe(X, U, R, ut, se) {
2193
2229
  if (R === U.length || X == null)
2194
2230
  return void se.push([X, U[R - 1], ut]);
2195
- var be = D(U, R);
2231
+ var be = M(U, R);
2196
2232
  if (m(X) && isNaN(Number(be)))
2197
- for (var re = 0, gt = X.length; re < gt; re++) pe(D(X, re), U, R, X, se);
2198
- else pe(D(X, be), U, R + 1, X, se);
2233
+ for (var re = 0, gt = X.length; re < gt; re++) pe(M(X, re), U, R, X, se);
2234
+ else pe(M(X, be), U, R + 1, X, se);
2199
2235
  }(A, l, 0, A, p), p.length === 1) {
2200
2236
  var f = p[0];
2201
2237
  return h(g, f[0], f[1], f[2]);
2202
2238
  }
2203
- for (var M = d && d.$ne !== void 0, Y = M, E = 0; E < p.length; E++) {
2239
+ for (var D = d && d.$ne !== void 0, Y = D, E = 0; E < p.length; E++) {
2204
2240
  var P = p[E], J = h(g, P[0], P[1], P[2]);
2205
- M ? Y &= J : Y |= J;
2241
+ D ? Y &= J : Y |= J;
2206
2242
  }
2207
2243
  return Y;
2208
2244
  }
@@ -2211,29 +2247,29 @@ var Le = { exports: {} };
2211
2247
  }
2212
2248
  function I(t) {
2213
2249
  var A = t.comparable, l = t.expressions, g = function(f) {
2214
- var M;
2215
- return (!f || !(M = f) || M.constructor !== Object && M.constructor !== Array && M.constructor.toString() !== "function Object() { [native code] }" && M.constructor.toString() !== "function Array() { [native code] }" || M.toJSON) && (f = { $eq: f }), f;
2250
+ var D;
2251
+ return (!f || !(D = f) || D.constructor !== Object && D.constructor !== Array && D.constructor.toString() !== "function Object() { [native code] }" && D.constructor.toString() !== "function Array() { [native code] }" || D.toJSON) && (f = { $eq: f }), f;
2216
2252
  }, d = function(f) {
2217
2253
  f = A(f);
2218
- var M = [];
2254
+ var D = [];
2219
2255
  for (var Y in f) {
2220
2256
  var E = f[Y];
2221
2257
  if (Y !== "$options") {
2222
2258
  var P = j[Y] || t && l && l[Y];
2223
- if (P) q[Y] && (E = q[Y](E, f, t)), M.push(Q(A(E), P));
2259
+ if (P) q[Y] && (E = q[Y](E, f, t)), D.push(Q(A(E), P));
2224
2260
  else {
2225
2261
  if (Y.charCodeAt(0) === 36)
2226
2262
  throw new Error("Unknown operation " + Y);
2227
2263
  var J = Y.split(".");
2228
- M.push(it(J, p(E), E));
2264
+ D.push(it(J, p(E), E));
2229
2265
  }
2230
2266
  }
2231
2267
  }
2232
- return M.length === 1 ? M[0] : Q(M, j.$and);
2268
+ return D.length === 1 ? D[0] : Q(D, j.$and);
2233
2269
  }, p = function(f) {
2234
- return f = g(f), function M(Y, E) {
2270
+ return f = g(f), function D(Y, E) {
2235
2271
  if (!b(Y)) return E;
2236
- for (var P in Y) E.push(P), M(Y[P], E);
2272
+ for (var P in Y) E.push(P), D(Y[P], E);
2237
2273
  return E;
2238
2274
  }(f, []).join(",").search(/[$.]/) === -1 ? Q(f, K) : d(f);
2239
2275
  };
@@ -2409,9 +2445,9 @@ function ps(e) {
2409
2445
  function bs(e) {
2410
2446
  return JSON.parse(JSON.stringify(e));
2411
2447
  }
2412
- var fs = /[-/\\^$+?.()|[\]{}]/g, ws = /\.?\*+\.?/g, Ds = /\*+/, Ms = /\./g;
2448
+ var fs = /[-/\\^$+?.()|[\]{}]/g, ws = /\.?\*+\.?/g, Ms = /\*+/, Ds = /\./g;
2413
2449
  function vs(e, o, c) {
2414
- var r = c[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", a = e.indexOf("**") === -1 ? "[^.]" : ".", n = e.replace(Ms, "\\$&").replace(Ds, a + r);
2450
+ var r = c[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", a = e.indexOf("**") === -1 ? "[^.]" : ".", n = e.replace(Ds, "\\$&").replace(Ms, a + r);
2415
2451
  return o + e.length === c.length ? "(?:" + n + ")?" : n;
2416
2452
  }
2417
2453
  function ys(e, o, c) {
@@ -2480,13 +2516,13 @@ var Ys = /* @__PURE__ */ function() {
2480
2516
  return this[x].indexedRules = n.rules, this[x].hasPerFieldRules = n.hasPerFieldRules, this.emit("updated", a), this;
2481
2517
  }, o.buildIndexFor = function(r) {
2482
2518
  for (var a = /* @__PURE__ */ Object.create(null), n = this[x].RuleType, u = !0, m = !1, b = 0; b < r.length; b++) {
2483
- var v = new n(r[b]), D = this.expandActions(v.actions), y = oe(v.subject), H = r.length - b - 1;
2519
+ var v = new n(r[b]), M = this.expandActions(v.actions), y = oe(v.subject), H = r.length - b - 1;
2484
2520
  u = !!(u && v.inverted), !m && v.fields && (m = !0);
2485
2521
  for (var h = 0; h < y.length; h++) {
2486
2522
  var j = y[h];
2487
2523
  a[j] = a[j] || /* @__PURE__ */ Object.create(null);
2488
- for (var q = 0; q < D.length; q++) {
2489
- var Q = D[q];
2524
+ for (var q = 0; q < M.length; q++) {
2525
+ var Q = M[q];
2490
2526
  a[j][Q] = a[j][Q] || /* @__PURE__ */ Object.create(null), a[j][Q][H] = v;
2491
2527
  }
2492
2528
  }
@@ -2568,10 +2604,10 @@ const w = {
2568
2604
  { key: "inventory", label: "Inventory", subjectPrefixes: ["business::inventory", "inventory"] },
2569
2605
  { key: "report", label: "Report", subjectPrefixes: ["business::report", "report"] },
2570
2606
  { key: "hrm", label: "HRM", subjectPrefixes: ["business::hrm", "hrm"] },
2571
- { key: "payment", label: "Payment", subjectPrefixes: ["business::payment", "payment"] }
2607
+ { key: "payment", label: "Payment", subjectPrefixes: ["business::payment", "payment"] },
2608
+ { key: "menu", label: "Menu", subjectPrefixes: ["business::menu", "menu"] },
2609
+ { key: "crm", label: "CRM", subjectPrefixes: ["business::crm", "crm"] }
2572
2610
  // Add more as modules are revamped with new actionguard:
2573
- // { key: 'menu', label: 'Menu', subjectPrefixes: ['business::menu'] },
2574
- // { key: 'crm', label: 'CRM', subjectPrefixes: ['business::crm'] },
2575
2611
  // { key: 'restaurantOperation', label: 'Restaurant Operation', subjectPrefixes: ['restaurant'] },
2576
2612
  ], Gs = "access-denied", S = {
2577
2613
  Action: s,
@@ -3405,9 +3441,9 @@ function Us(e) {
3405
3441
  return new Ys(Ws(e));
3406
3442
  }
3407
3443
  function Rs(e, o, c) {
3408
- const r = Array.isArray(e) ? e : [e], a = Us(o), n = (D) => D.subject, u = (D) => a.can(D.action, n(D), D.field) ? !0 : D.coverSubject !== void 0 ? a.can(D.action, D.coverSubject, D.field) : !1, m = r.find((D) => !u(D));
3444
+ const r = Array.isArray(e) ? e : [e], a = Us(o), n = (M) => M.subject, u = (M) => a.can(M.action, n(M), M.field) ? !0 : M.coverSubject !== void 0 ? a.can(M.action, M.coverSubject, M.field) : !1, m = r.find((M) => !u(M));
3409
3445
  if (m) {
3410
- const D = a.relevantRuleFor(
3446
+ const M = a.relevantRuleFor(
3411
3447
  m.action,
3412
3448
  n(m),
3413
3449
  m.field
@@ -3415,7 +3451,7 @@ function Rs(e, o, c) {
3415
3451
  return {
3416
3452
  granted: !1,
3417
3453
  decisivePermission: m,
3418
- decisiveRule: D ?? null
3454
+ decisiveRule: M ?? null
3419
3455
  };
3420
3456
  }
3421
3457
  const b = r[0], v = a.relevantRuleFor(b.action, n(b), b.field);
@@ -3435,12 +3471,12 @@ function Ks(e, o, c) {
3435
3471
  shallow: u = !0,
3436
3472
  onError: m = Ts
3437
3473
  } = r, b = T(!a), v = u ? dt(o) : T(o);
3438
- let D = 0;
3474
+ let M = 0;
3439
3475
  return he(async (y) => {
3440
3476
  if (!b.value)
3441
3477
  return;
3442
- D++;
3443
- const H = D;
3478
+ M++;
3479
+ const H = M;
3444
3480
  let h = !1;
3445
3481
  n && Promise.resolve().then(() => {
3446
3482
  n.value = !0;
@@ -3451,11 +3487,11 @@ function Ks(e, o, c) {
3451
3487
  n && (n.value = !1), h || q();
3452
3488
  });
3453
3489
  });
3454
- H === D && (v.value = j);
3490
+ H === M && (v.value = j);
3455
3491
  } catch (j) {
3456
3492
  m(j);
3457
3493
  } finally {
3458
- n && H === D && (n.value = !1), h = !0;
3494
+ n && H === M && (n.value = !1), h = !0;
3459
3495
  }
3460
3496
  }), a ? ie(() => (b.value = !0, v.value)) : v;
3461
3497
  }
@@ -3596,10 +3632,10 @@ function dr(e, o) {
3596
3632
  };
3597
3633
  }
3598
3634
  }
3599
- return De(o, async () => {
3600
- await Me(), r();
3601
- }), De(e, async (a) => {
3602
- a && (await Me(), r());
3635
+ return Me(o, async () => {
3636
+ await De(), r();
3637
+ }), Me(e, async (a) => {
3638
+ a && (await De(), r());
3603
3639
  }), Ve(() => {
3604
3640
  window.addEventListener("resize", r);
3605
3641
  }), pt(() => {
@@ -3609,7 +3645,7 @@ function dr(e, o) {
3609
3645
  const Br = /* @__PURE__ */ z({
3610
3646
  __name: "FullWrapper",
3611
3647
  setup(e) {
3612
- const o = Mt(), c = T(null), r = dr(c), a = ie(() => {
3648
+ const o = Dt(), c = T(null), r = dr(c), a = ie(() => {
3613
3649
  var m;
3614
3650
  const u = o.isAtMost("sm") ? 56 : 0;
3615
3651
  return {
@@ -3639,7 +3675,7 @@ const Br = /* @__PURE__ */ z({
3639
3675
  });
3640
3676
  };
3641
3677
  }
3642
- }), F = (e) => Dt({
3678
+ }), F = (e) => Mt({
3643
3679
  loader: e,
3644
3680
  loadingComponent: br
3645
3681
  });
@@ -3653,10 +3689,10 @@ const ae = (e) => ({
3653
3689
  }
3654
3690
  ]
3655
3691
  }
3656
- }), fr = ee(F(() => import("./Main-CMiYmjMk.js"))), wr = ee(F(() => import("./Main-q8IGKAH2.js"))), Dr = ee(
3657
- F(() => import("./AuditLogList-CZSE61OK.js"))
3658
- ), Mr = ee(F(() => import("./Main-bmpvqNUB.js"))), vr = F(() => import("./EmployeeList-CVnIGntI.js")), yr = F(() => import("./RoleList-DjxZzgZk.js")), Cr = F(() => import("./TimesheetList-Cs_8p1TE.js")), hr = F(() => import("./TeamMemberList-PmbUeFns.js")), Yr = F(
3659
- () => import("./PermissionSetList-0kvdLTQ2.js")
3692
+ }), fr = ee(F(() => import("./Main-Dksmkrg_.js"))), wr = ee(F(() => import("./Main-Ayry4ijA.js"))), Mr = ee(
3693
+ F(() => import("./AuditLogList-CEGtohT7.js"))
3694
+ ), Dr = ee(F(() => import("./Main-g3IbbAEf.js"))), vr = F(() => import("./EmployeeList-B5_KnyrU.js")), yr = F(() => import("./RoleList-Cx_JPfNr.js")), Cr = F(() => import("./TimesheetList-BYieGfIy.js")), hr = F(() => import("./TeamMemberList-CDY7Y_qm.js")), Yr = F(
3695
+ () => import("./PermissionSetList-BoqxRXoi.js")
3660
3696
  ), Xr = [
3661
3697
  {
3662
3698
  path: "/",
@@ -3688,7 +3724,7 @@ const ae = (e) => ({
3688
3724
  {
3689
3725
  path: "/audit-log",
3690
3726
  name: "audit-log",
3691
- component: Dr,
3727
+ component: Mr,
3692
3728
  meta: ae(S.Subject.Business.hrm_auditLog)
3693
3729
  },
3694
3730
  {
@@ -3716,7 +3752,7 @@ const ae = (e) => ({
3716
3752
  {
3717
3753
  path: "/pos-grant",
3718
3754
  name: "pos-grant",
3719
- component: Mr
3755
+ component: Dr
3720
3756
  }
3721
3757
  ], Gr = /* @__PURE__ */ z({
3722
3758
  __name: "Navigator",
@@ -3786,8 +3822,8 @@ const ae = (e) => ({
3786
3822
  }
3787
3823
  m.value !== b && (m.value = b);
3788
3824
  }), (b, v) => {
3789
- const D = le("FmCollapsibleTabs");
3790
- return W(), $(D, {
3825
+ const M = le("FmCollapsibleTabs");
3826
+ return W(), $(M, {
3791
3827
  modelValue: m.value,
3792
3828
  "onUpdate:modelValue": v[0] || (v[0] = (y) => m.value = y),
3793
3829
  items: u.value,
@@ -3824,16 +3860,16 @@ export {
3824
3860
  Fr as N,
3825
3861
  G as R,
3826
3862
  Br as _,
3827
- zs as a,
3828
- Vs as b,
3863
+ w as a,
3864
+ S as b,
3829
3865
  ns as c,
3830
- Or as d,
3831
- Hr as e,
3866
+ zs as d,
3867
+ Vs as e,
3832
3868
  Pr as f,
3833
3869
  os as g,
3834
3870
  qr as h,
3835
- w as i,
3871
+ Or as i,
3872
+ Hr as j,
3836
3873
  Xr as r,
3837
- S as u,
3838
3874
  s as y
3839
3875
  };
package/dist/app.js CHANGED
@@ -1,6 +1,6 @@
1
- import { e as a, d as r, r as o } from "./app-PYFafU8x.js";
1
+ import { j as e, i as r, r as o } from "./app-p4cgjZ-r.js";
2
2
  export {
3
- a as FmApp,
3
+ e as FmApp,
4
4
  r as i18nMessages,
5
5
  o as routes
6
6
  };
@@ -1,4 +1,4 @@
1
- import { g as Q, c as K } from "./app-PYFafU8x.js";
1
+ import { g as Q, c as K } from "./app-p4cgjZ-r.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, k) {
@@ -1,10 +1,10 @@
1
- import { d as T } from "./dayjs.min-DjR87Y9e.js";
1
+ import { d as T } from "./dayjs.min-BRO-vkLx.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, s as v } from "./iteration-BwzU2yPh.js";
6
- import { t as b, i as S } from "./index-QNkZDIo5.js";
7
- import { u as x } from "./useAppStore-gNcJGfxF.js";
5
+ import { b as r, g as o, s as v } from "./iteration-CnyH8-jG.js";
6
+ import { t as b, i as S } from "./index-sEHzMXB6.js";
7
+ import { u as x } from "./useAppStore-BCOsvBrB.js";
8
8
  const n = {
9
9
  async readEmployees() {
10
10
  return o(await r().get("/pos-users"));
@@ -2,7 +2,7 @@ var oe = Object.defineProperty;
2
2
  var se = (_, h, y) => h in _ ? oe(_, h, { enumerable: !0, configurable: !0, writable: !0, value: y }) : _[h] = y;
3
3
  var ot = (_, h, y) => se(_, typeof h != "symbol" ? h + "" : h, y);
4
4
  import { readonly as Nt, ref as Rt } from "vue";
5
- import { c as st } from "./app-PYFafU8x.js";
5
+ import { c as st } from "./app-p4cgjZ-r.js";
6
6
  var Pt = { exports: {} };
7
7
  (function(_, h) {
8
8
  (function(y, p) {
@@ -1,5 +1,5 @@
1
- import { g as b, b as g, d as X, e as j, s as L, q as M } from "./iteration-BwzU2yPh.js";
2
- import { u as J, b as R, a as F, i as D, y as S, N as Q } from "./app-PYFafU8x.js";
1
+ import { g as b, b as g, d as X, e as j, s as L, q as M } from "./iteration-CnyH8-jG.js";
2
+ import { b as J, e as R, d as F, a as D, y as S, N as Q } from "./app-p4cgjZ-r.js";
3
3
  import { defineStore as x, storeToRefs as k } from "pinia";
4
4
  import { ref as h, computed as N } from "vue";
5
5
  import { useCoreStore as q } from "@feedmepos/mf-common";
@@ -1,4 +1,4 @@
1
- import { c as U } from "./app-PYFafU8x.js";
1
+ import { c as U } from "./app-p4cgjZ-r.js";
2
2
  import { useCoreStore as To, baseClientInstance as jr, FeedMeAuth as Zs } from "@feedmepos/mf-common";
3
3
  var Ys = {}, _n = {}, _ = {}, zo = {}, $i = {}, eo = {}, ui = {};
4
4
  (function(e) {
@@ -1,4 +1,4 @@
1
- import { c as jt } from "./app-PYFafU8x.js";
1
+ import { c as jt } from "./app-p4cgjZ-r.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -7,6 +7,7 @@ declare const AuditLogAPI: {
7
7
  to?: string;
8
8
  userIds?: string[];
9
9
  subjects?: string[];
10
+ subjectPrefixes?: string[];
10
11
  actions?: string[];
11
12
  outcomes?: string[];
12
13
  }): Promise<AuditLogEntry[]>;
@@ -27,6 +27,15 @@ export declare const i18nMessages: {
27
27
  update: string;
28
28
  delete: string;
29
29
  };
30
+ modules: {
31
+ all: string;
32
+ inventory: string;
33
+ report: string;
34
+ hrm: string;
35
+ payment: string;
36
+ menu: string;
37
+ crm: string;
38
+ };
30
39
  columns: {
31
40
  timestamp: string;
32
41
  user: string;
@@ -134,6 +143,15 @@ export declare const i18nMessages: {
134
143
  update: string;
135
144
  delete: string;
136
145
  };
146
+ modules: {
147
+ all: string;
148
+ inventory: string;
149
+ report: string;
150
+ hrm: string;
151
+ payment: string;
152
+ menu: string;
153
+ crm: string;
154
+ };
137
155
  columns: {
138
156
  timestamp: string;
139
157
  user: string;
@@ -242,6 +260,15 @@ export declare const i18nMessages: {
242
260
  update: string;
243
261
  delete: string;
244
262
  };
263
+ modules: {
264
+ all: string;
265
+ inventory: string;
266
+ report: string;
267
+ hrm: string;
268
+ payment: string;
269
+ menu: string;
270
+ crm: string;
271
+ };
245
272
  columns: {
246
273
  timestamp: string;
247
274
  user: string;
@@ -350,6 +377,15 @@ export declare const i18nMessages: {
350
377
  update: string;
351
378
  delete: string;
352
379
  };
380
+ modules: {
381
+ all: string;
382
+ inventory: string;
383
+ report: string;
384
+ hrm: string;
385
+ payment: string;
386
+ menu: string;
387
+ crm: string;
388
+ };
353
389
  columns: {
354
390
  timestamp: string;
355
391
  user: string;
@@ -1,6 +1,6 @@
1
1
  import { defineStore as d } from "pinia";
2
2
  import { ref as s, computed as o } from "vue";
3
- import { t as f } from "./index-QNkZDIo5.js";
3
+ import { t as f } from "./index-sEHzMXB6.js";
4
4
  const I = d("team", () => {
5
5
  const r = s([]), a = s(!1), m = o(
6
6
  () => Object.fromEntries(r.value.map((e) => [e.doc.userId, e.name]))