@feedmepos/mf-hrm-portal 2.0.15-dev → 2.0.15-dev.3

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 (36) hide show
  1. package/dist/{AuditLogList-DBIsI4YF.js → AuditLogList-eyzJecZc.js} +4 -4
  2. package/dist/EmployeeList-QibdsTN-.js +736 -0
  3. package/dist/{Main-BAZAQTWi.js → Main-B_QCpWOx.js} +4 -4
  4. package/dist/{Main-D7yzD5SW.js → Main-Bjfm9a6M.js} +5 -5
  5. package/dist/{Main-B3YiMuFq.js → Main-DX1aet8y.js} +1298 -1294
  6. package/dist/{PermissionSetList-DBT9LtfT.js → PermissionSetList-fE9Zfrl6.js} +30 -30
  7. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BfqnjeTK.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JpCfRxA9.js} +500 -500
  8. package/dist/RoleList-ByXZemFz.js +528 -0
  9. package/dist/{TeamMemberList-BCv5Vixx.js → TeamMemberList-D-_icv19.js} +327 -324
  10. package/dist/{TimesheetList-DpMBgVtY.js → TimesheetList-DVvz6id4.js} +7 -7
  11. package/dist/{app-pvHHFjbx.js → app-DJG3HGqG.js} +220 -261
  12. package/dist/app.js +2 -2
  13. package/dist/{dayjs.min-BK_bM9xY.js → dayjs.min-CN6o-ax9.js} +1 -1
  14. package/dist/{employee-DhkixwiI.js → employee-CU-G-rAZ.js} +71 -74
  15. package/dist/{index-DK4fVbTF.js → index-ynxje0mm.js} +1 -1
  16. package/dist/{iteration-Bk3cnP07.js → iteration-C6Km_Rno.js} +1 -1
  17. package/dist/{lodash-TrOlqj07.js → lodash-DZvG4gEx.js} +1 -1
  18. package/dist/rule-X41LxaES.js +991 -0
  19. package/dist/src/helpers/rule.d.ts +1 -1
  20. package/dist/src/stores/employee.d.ts +124 -19
  21. package/dist/src/types/employee.d.ts +3 -0
  22. package/dist/src/views/hr/employee/EmployeeList.vue.d.ts +4 -0
  23. package/dist/style.css +1 -1
  24. package/dist/{timesheet-DSQeCVfL.js → timesheet-DUtxTIA4.js} +9 -9
  25. package/dist/tsconfig.app.tsbuildinfo +1 -1
  26. package/dist/useAppStore-CrUYEAtX.js +171 -0
  27. package/dist/useDiscardConfirm-BHni0LNu.js +28 -0
  28. package/dist/{useLoading-fEAOlgoV.js → useLoading-hGUqfW4U.js} +1 -1
  29. package/dist/{useReportPermissions-CkOk_2tl.js → useReportPermissions-BgTdISQy.js} +3 -3
  30. package/dist/utils-BZkjJbju.js +17 -0
  31. package/package.json +1 -1
  32. package/dist/EmployeeList-BOSxLZbY.js +0 -702
  33. package/dist/RoleList-DeE5tN-5.js +0 -519
  34. package/dist/index-Bckj5jnu.js +0 -998
  35. package/dist/useAppStore-DwfwjZpc.js +0 -168
  36. package/dist/useRestaurantMap-e9fQJiLC.js +0 -39
@@ -2,11 +2,11 @@ import { defineComponent as M, computed as S, resolveComponent as c, createEleme
2
2
  import { useI18n as K, useCoreStore as ae } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as Q, useDialog as re, useBreakpoints as le, components as me, FmButtonColorThemeVariant as ue, FmButtonVariant as ce } from "@feedmepos/ui-library";
4
4
  import { _ as de } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
5
- import { j as G, w as pe, u as Y, c as Z, p as J, k as fe, d as ve, m as A, n as Se, o as be, s as _e, q as Pe } from "./index-Bckj5jnu.js";
6
- import { A as ge } from "./iteration-Bk3cnP07.js";
7
- import { u as he } from "./useLoading-fEAOlgoV.js";
8
- import { d as X } from "./app-pvHHFjbx.js";
9
- import { a as ye } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BfqnjeTK.js";
5
+ import { d as G, q as pe, u as Y, c as Z, p as J, i as fe, b as ve, m as A, k as Se, l as be, s as _e, n as Pe } from "./rule-X41LxaES.js";
6
+ import { A as ge } from "./iteration-C6Km_Rno.js";
7
+ import { u as he } from "./useLoading-hGUqfW4U.js";
8
+ import { p as X } from "./app-DJG3HGqG.js";
9
+ import { a as ye } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JpCfRxA9.js";
10
10
  const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M({
11
11
  __name: "PermissionWithTooltip",
12
12
  props: {
@@ -15,8 +15,8 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
15
15
  required: !0
16
16
  }
17
17
  },
18
- setup(E) {
19
- const { customReportPermissions: k } = G(), t = E, i = S(() => pe(t.modelValue, k.value)), { t: r } = K();
18
+ setup($) {
19
+ const { customReportPermissions: k } = G(), t = $, i = S(() => pe(t.modelValue, k.value)), { t: r } = K();
20
20
  return (R, C) => {
21
21
  const P = c("FmIcon"), y = c("FmTooltip");
22
22
  return h(), L("div", Fe, [
@@ -52,8 +52,8 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
52
52
  default: () => ({})
53
53
  }
54
54
  },
55
- setup(E, { expose: k }) {
56
- const t = E, { t: i } = K(), r = _(!1), R = S(() => {
55
+ setup($, { expose: k }) {
56
+ const t = $, { t: i } = K(), r = _(!1), R = S(() => {
57
57
  var e;
58
58
  return (e = t.modelValue) != null && e.id ? i("permissionSet.form.update.title") : i("permissionSet.form.create.title");
59
59
  }), C = _(), P = Q(), y = he(P), l = Y(), a = _({ ...t.modelValue }), d = _([]), p = _([]), D = [(e) => !!e || "Permission set name is required"], U = S(() => {
@@ -66,17 +66,17 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
66
66
  }).map((e) => ({ label: e.name, value: e.id }))
67
67
  ), F = S(
68
68
  () => Z(d.value, l.permissionSets.value)
69
- ), { customReportPermissions: $, isLoaded: n } = G(), o = new Set(
69
+ ), { customReportPermissions: E, isLoaded: n } = G(), o = new Set(
70
70
  J.filter((e) => e.subject.startsWith(fe)).map((e) => e.subject)
71
71
  ), f = S(() => {
72
72
  const e = new Set(o);
73
- for (const s of $.value) e.add(s.subject);
73
+ for (const s of E.value) e.add(s.subject);
74
74
  return e;
75
- }), j = S(() => {
75
+ }), I = S(() => {
76
76
  const e = /* @__PURE__ */ new Set();
77
77
  for (const s of J)
78
78
  s.category === X.reports && e.add(s.subject);
79
- for (const s of $.value)
79
+ for (const s of E.value)
80
80
  s.category === X.reports && e.add(s.subject);
81
81
  return e;
82
82
  });
@@ -89,8 +89,8 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
89
89
  e
90
90
  );
91
91
  }
92
- function I() {
93
- const e = A(F.value), s = n.value ? f.value : o, v = Se(p.value, s), V = be(v, j.value), w = _e(V);
92
+ function T() {
93
+ const e = A(F.value), s = n.value ? f.value : o, v = Se(p.value, s), V = be(v, I.value), w = _e(V);
94
94
  return Pe(e, w);
95
95
  }
96
96
  function ee() {
@@ -100,9 +100,9 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
100
100
  var v, V;
101
101
  const e = await ((v = C.value) == null ? void 0 : v.validateInputsWithoutSubmit()), s = (V = ae().currentBusiness.value) == null ? void 0 : V.id;
102
102
  !(e != null && e.length) && s && y.minor(async () => {
103
- var T;
104
- const w = I();
105
- if ((T = t.modelValue) != null && T.id) {
103
+ var j;
104
+ const w = T();
105
+ if ((j = t.modelValue) != null && j.id) {
106
106
  const B = {
107
107
  name: a.value.name,
108
108
  permissions: w,
@@ -125,7 +125,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
125
125
  return k({
126
126
  trigger: O
127
127
  }), (e, s) => {
128
- const v = c("FmTextField"), V = c("FmSelect"), w = c("FmForm"), T = c("FmButton"), B = c("FmSideSheet");
128
+ const v = c("FmTextField"), V = c("FmSelect"), w = c("FmForm"), j = c("FmButton"), B = c("FmSideSheet");
129
129
  return h(), q(B, {
130
130
  modelValue: r.value,
131
131
  "onUpdate:modelValue": s[4] || (s[4] = (b) => r.value = b),
@@ -137,14 +137,14 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
137
137
  ]),
138
138
  "side-sheet-footer": g(() => [
139
139
  x("div", xe, [
140
- m(T, {
140
+ m(j, {
141
141
  label: U.value,
142
142
  size: "md",
143
143
  variant: "primary",
144
144
  type: "submit",
145
145
  onClick: se
146
146
  }, null, 8, ["label"]),
147
- m(T, {
147
+ m(j, {
148
148
  label: u(i)("common.cancel"),
149
149
  size: "md",
150
150
  variant: "secondary",
@@ -195,7 +195,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
195
195
  }
196
196
  }), Re = { class: "space-y-8" }, Ce = { class: "flex justify-end xs:px-16" }, De = /* @__PURE__ */ M({
197
197
  __name: "PermissionSetList",
198
- setup(E, { expose: k }) {
198
+ setup($, { expose: k }) {
199
199
  const { t } = K(), { fetchCustomReportPermissions: i } = G(), r = Q(), R = re(), { breakpoints: C } = le(), P = _(""), y = S(() => {
200
200
  var n;
201
201
  return (n = d.value) == null ? void 0 : n.filter((o) => {
@@ -225,8 +225,8 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
225
225
  const o = n.row.original, f = Z(
226
226
  [o.id],
227
227
  a.permissionSets.value
228
- ), j = A(f);
229
- return z(Ve, { modelValue: j });
228
+ ), I = A(f);
229
+ return z(Ve, { modelValue: I });
230
230
  }
231
231
  },
232
232
  {
@@ -243,7 +243,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
243
243
  textColor: ue.NeutralGray400,
244
244
  class: "flex flex-end",
245
245
  onClick: (o) => {
246
- o.stopPropagation(), $(n.row.original);
246
+ o.stopPropagation(), E(n.row.original);
247
247
  }
248
248
  })
249
249
  ]);
@@ -255,7 +255,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
255
255
  var n;
256
256
  p.value = void 0, (n = l.value) == null || n.trigger();
257
257
  }
258
- async function $(n) {
258
+ async function E(n) {
259
259
  R.open({
260
260
  title: t("permissionSet.form.delete.title"),
261
261
  message: t("permissionSet.form.delete.confirmationMessage", { permissionSetName: n.name }),
@@ -286,7 +286,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
286
286
  }), k({
287
287
  create: F
288
288
  }), (n, o) => {
289
- const f = c("FmSearch"), j = c("FmTable"), O = c("FullWrapper");
289
+ const f = c("FmSearch"), I = c("FmTable"), O = c("FullWrapper");
290
290
  return h(), L(H, null, [
291
291
  m(ke, {
292
292
  ref_key: "permissionSetFormRef",
@@ -297,7 +297,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
297
297
  x("div", Ce, [
298
298
  m(f, {
299
299
  modelValue: P.value,
300
- "onUpdate:modelValue": o[0] || (o[0] = (I) => P.value = I),
300
+ "onUpdate:modelValue": o[0] || (o[0] = (T) => P.value = T),
301
301
  class: "w-[320px] xs:w-full",
302
302
  autofocus: "",
303
303
  placeholder: u(t)("permissionSet.search.placeholder")
@@ -308,14 +308,14 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
308
308
  class: "overflow-auto"
309
309
  }, {
310
310
  default: g(() => [
311
- m(j, {
311
+ m(I, {
312
312
  "column-defs": W,
313
313
  "row-data": y.value,
314
314
  "page-size": y.value.length,
315
315
  "pin-header-row": "",
316
316
  "hide-footer": "",
317
317
  "shrink-at": !1,
318
- onRowClick: o[1] || (o[1] = (I) => U(I.original))
318
+ onRowClick: o[1] || (o[1] = (T) => U(T.original))
319
319
  }, null, 8, ["row-data", "page-size"])
320
320
  ]),
321
321
  _: 1