@feedmepos/mf-hrm-portal 2.0.5 → 2.0.6-dev.1

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 (38) hide show
  1. package/dist/{AuditLogList-Bkl9koQT.js → AuditLogList-C23_MiyK.js} +7 -6
  2. package/dist/{EmployeeList-BnbjfqyP.js → EmployeeList-vXPEVqoh.js} +164 -169
  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-CQWe1-SW.js +599 -0
  6. package/dist/{Main-CoVghvwW.js → Main-DC9H9bAs.js} +11 -10
  7. package/dist/{Main-8ZaM5D9M.js → Main-k56Iy_zg.js} +8 -7
  8. package/dist/{PermissionSetList-B0yqDASK.js → PermissionSetList-B8tJCNpR.js} +53 -52
  9. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CXirNGg0.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BPJpVG8_.js} +588 -587
  10. package/dist/{RoleList-CiNle1dZ.js → RoleList-C5WA3Kxu.js} +26 -24
  11. package/dist/{TeamMemberList-5DyItOsQ.js → TeamMemberList-Ic-iWBHd.js} +10 -9
  12. package/dist/{TimesheetList-DxQ-vb_m.js → TimesheetList-DlGpcOUp.js} +11 -10
  13. package/dist/{app-CVfFuJ_U.js → app-D0xH_99A.js} +984 -713
  14. package/dist/app.js +1 -1
  15. package/dist/{dayjs.min-CeMMJfCO.js → dayjs.min-C1rTVn8X.js} +1 -1
  16. package/dist/{employee-BsYVIIOi.js → employee-BK4sYiRy.js} +21 -20
  17. package/dist/index-C2ubYSVV.js +968 -0
  18. package/dist/{index-DIVnaoZ6.js → index-DSAB4vz3.js} +1 -1
  19. package/dist/{index-DwcKO5a4.js → iteration-BSGKcAZm.js} +3468 -4430
  20. package/dist/{lodash-DazWE7Hy.js → lodash-CeTePH4O.js} +1 -1
  21. package/dist/src/api/grant-user/index.d.ts +8 -0
  22. package/dist/src/api/index.d.ts +3 -1
  23. package/dist/src/router/shared.d.ts +2 -1
  24. package/dist/src/stores/grant-user.d.ts +86 -0
  25. package/dist/src/types/grant-user.d.ts +27 -0
  26. package/dist/src/views/grant/GrantUserList.vue.d.ts +17 -0
  27. package/dist/src/views/grant/Main.vue.d.ts +2 -0
  28. package/dist/src/views/grant/components/GrantUserForm.vue.d.ts +17 -0
  29. package/dist/src/views/grant/locales/index.d.ts +232 -0
  30. package/dist/{team-C9sSArLP.js → team-B25hRkju.js} +1 -1
  31. package/dist/{timesheet-C0-tKt4w.js → timesheet-C8oy-bxz.js} +10 -9
  32. package/dist/tsconfig.app.tsbuildinfo +1 -1
  33. package/dist/{useAppStore-4NX8u34B.js → useAppStore-WGnUS7Wm.js} +1 -1
  34. package/dist/{useLoading-BDG-so15.js → useLoading-BCi2g_rf.js} +1 -1
  35. package/dist/{useReportPermissions-1NZr3RRg.js → useReportPermissions--LOfl1e-.js} +12 -11
  36. package/dist/useRestaurantMap-e9fQJiLC.js +39 -0
  37. package/package.json +1 -1
  38. package/dist/useRestaurantMap-D5BNPLKh.js +0 -107
@@ -3,16 +3,17 @@ import { useRouter as of, useRoute as cf } from "vue-router";
3
3
  import { useCoreStore as hf, useI18n as uf } from "@feedmepos/mf-common";
4
4
  import { _ as vf } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
5
  import { _ as pf } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
6
- import { u as df } from "./useAppStore-4NX8u34B.js";
6
+ import { u as df } from "./useAppStore-WGnUS7Wm.js";
7
7
  import "@feedmepos/ui-library";
8
8
  /* empty css */
9
- import { u as mf } from "./employee-BsYVIIOi.js";
10
- import "./lodash-DazWE7Hy.js";
11
- import "./index-DwcKO5a4.js";
12
- import { R as vt } from "./app-CVfFuJ_U.js";
13
- import "./useReportPermissions-1NZr3RRg.js";
14
- import "./dayjs.min-CeMMJfCO.js";
15
- import "./timesheet-C0-tKt4w.js";
9
+ import { u as mf } from "./employee-BK4sYiRy.js";
10
+ import "./lodash-CeTePH4O.js";
11
+ import "./iteration-BSGKcAZm.js";
12
+ import { R as vt } from "./app-D0xH_99A.js";
13
+ import "./index-C2ubYSVV.js";
14
+ import "./useReportPermissions--LOfl1e-.js";
15
+ import "./dayjs.min-C1rTVn8X.js";
16
+ import "./timesheet-C8oy-bxz.js";
16
17
  var In = {};
17
18
  /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
18
19
  var jt = {};
@@ -15483,7 +15484,7 @@ var Yt = {
15483
15484
  const f2 = {
15484
15485
  key: 0,
15485
15486
  class: "mr-16"
15486
- }, l2 = { class: "space-y-24" }, y2 = /* @__PURE__ */ rf({
15487
+ }, l2 = { class: "space-y-24" }, O2 = /* @__PURE__ */ rf({
15487
15488
  __name: "Main",
15488
15489
  setup(e) {
15489
15490
  const t = of(), r = cf(), { readTeamMemberPosUserIds: n } = mf(), { restaurants: a, currentBusiness: i, readRestaurants: s } = hf(), { readRoles: f, roles: o } = df(), { t: l } = uf(), c = yn(), d = yn(), p = yn(), v = On({
@@ -15603,5 +15604,5 @@ const f2 = {
15603
15604
  }
15604
15605
  });
15605
15606
  export {
15606
- y2 as default
15607
+ O2 as default
15607
15608
  };
@@ -4,14 +4,15 @@ import { useI18n as N } from "@feedmepos/mf-common";
4
4
  import { _ as g } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
5
  import { _ as h } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
6
6
  import "@feedmepos/ui-library";
7
- import "./index-DwcKO5a4.js";
8
- import { R as v } from "./app-CVfFuJ_U.js";
9
- import "./useAppStore-4NX8u34B.js";
10
- import "./index-DIVnaoZ6.js";
7
+ import "./index-C2ubYSVV.js";
8
+ import "./iteration-BSGKcAZm.js";
9
+ import { R as v } from "./app-D0xH_99A.js";
10
+ import "./useAppStore-WGnUS7Wm.js";
11
+ import "./index-DSAB4vz3.js";
11
12
  /* empty css */
12
13
  /* empty css */
13
- import "./team-C9sSArLP.js";
14
- const w = { class: "space-y-24" }, P = /* @__PURE__ */ V({
14
+ import "./team-B25hRkju.js";
15
+ const w = { class: "space-y-24" }, Q = /* @__PURE__ */ V({
15
16
  __name: "Main",
16
17
  setup(x) {
17
18
  const { t: a } = N(), f = k(), R = F(), _ = u(), b = u(), t = u("member");
@@ -82,5 +83,5 @@ const w = { class: "space-y-24" }, P = /* @__PURE__ */ V({
82
83
  }
83
84
  });
84
85
  export {
85
- P as default
86
+ Q as default
86
87
  };
@@ -1,11 +1,12 @@
1
- import { defineComponent as q, computed as S, resolveComponent as u, createElementBlock as E, openBlock as g, createElementVNode as y, createVNode as r, toDisplayString as N, unref as c, withCtx as P, createTextVNode as te, Fragment as X, renderList as oe, ref as b, createBlock as H, nextTick as ne, onMounted as ie, h as O } from "vue";
1
+ import { defineComponent as q, computed as S, resolveComponent as u, createElementBlock as E, openBlock as g, createElementVNode as y, createVNode as r, toDisplayString as N, unref as c, withCtx as P, createTextVNode as te, Fragment as X, renderList as oe, ref as b, createBlock as H, nextTick as ne, onMounted as ie, h as z } from "vue";
2
2
  import { useI18n as M, useCoreStore as ae } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as Q, useDialog as le, useBreakpoints as re, components as me, FmButtonColorThemeVariant as ce, FmButtonVariant as ue } from "@feedmepos/ui-library";
4
4
  import { _ as de } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
5
- import { q as K, C as pe, u as Y, m as Z, p as G, v as fe, n as ve, o as A, x as Se, y as _e, z as be, A as he, D as Pe } from "./index-DwcKO5a4.js";
6
- import { u as ge } from "./useLoading-BDG-so15.js";
7
- import { i as J } from "./app-CVfFuJ_U.js";
8
- import { a as ye } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CXirNGg0.js";
5
+ import { j as K, w as pe, u as Y, c as Z, p as G, k as fe, d as ve, m as A, n as Se, o as _e, s as be, q as he } from "./index-C2ubYSVV.js";
6
+ import { A as Pe } from "./iteration-BSGKcAZm.js";
7
+ import { u as ge } from "./useLoading-BCi2g_rf.js";
8
+ import { i as J } from "./app-D0xH_99A.js";
9
+ import { a as ye } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BPJpVG8_.js";
9
10
  const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q({
10
11
  __name: "PermissionWithTooltip",
11
12
  props: {
@@ -15,8 +16,8 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
15
16
  }
16
17
  },
17
18
  setup($) {
18
- const { customReportPermissions: R } = K(), t = $, i = S(() => pe(t.modelValue, R.value)), { t: l } = M();
19
- return (k, C) => {
19
+ const { customReportPermissions: k } = K(), t = $, i = S(() => pe(t.modelValue, k.value)), { t: l } = M();
20
+ return (R, C) => {
20
21
  const h = u("FmIcon"), F = u("FmTooltip");
21
22
  return g(), E("div", Fe, [
22
23
  y("span", null, N(c(l)("team.labels.allowed", { count: i.value.length })), 1),
@@ -43,7 +44,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
43
44
  ]);
44
45
  };
45
46
  }
46
- }), xe = { class: "fm-typo-en-title-md-600" }, we = { class: "flex items-center justify-start gap-8" }, Re = /* @__PURE__ */ q({
47
+ }), we = { class: "fm-typo-en-title-md-600" }, xe = { class: "flex items-center justify-start gap-8" }, ke = /* @__PURE__ */ q({
47
48
  __name: "PermissionSetForm",
48
49
  props: {
49
50
  modelValue: {
@@ -51,8 +52,8 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
51
52
  default: () => ({})
52
53
  }
53
54
  },
54
- setup($, { expose: R }) {
55
- const t = $, { t: i } = M(), l = b(!1), k = S(() => {
55
+ setup($, { expose: k }) {
56
+ const t = $, { t: i } = M(), l = b(!1), R = S(() => {
56
57
  var e;
57
58
  return (e = t.modelValue) != null && e.id ? i("permissionSet.form.update.title") : i("permissionSet.form.create.title");
58
59
  }), C = b(), h = Q(), F = ge(h), m = Y(), a = b({ ...t.modelValue }), d = b([]), p = b([]), D = [(e) => !!e || "Permission set name is required"], U = S(() => {
@@ -71,7 +72,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
71
72
  const e = new Set(o);
72
73
  for (const s of L.value) e.add(s.subject);
73
74
  return e;
74
- }), I = S(() => {
75
+ }), j = S(() => {
75
76
  const e = /* @__PURE__ */ new Set();
76
77
  for (const s of G)
77
78
  s.category === J.reports && e.add(s.subject);
@@ -79,7 +80,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
79
80
  s.category === J.reports && e.add(s.subject);
80
81
  return e;
81
82
  });
82
- async function z() {
83
+ async function O() {
83
84
  var s, v;
84
85
  await ne(), l.value = !l.value, a.value = { ...t.modelValue }, d.value = ((s = t.modelValue) == null ? void 0 : s.permissionSetIds) ?? [];
85
86
  const e = ((v = t.modelValue) == null ? void 0 : v.permissions) ?? [];
@@ -88,23 +89,23 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
88
89
  e
89
90
  );
90
91
  }
91
- function T() {
92
- const e = A(V.value), s = n.value ? f.value : o, v = Se(p.value, s), x = _e(v, I.value), w = be(x);
93
- return he(e, w);
92
+ function I() {
93
+ const e = A(V.value), s = n.value ? f.value : o, v = Se(p.value, s), w = _e(v, j.value), x = be(w);
94
+ return he(e, x);
94
95
  }
95
96
  function ee() {
96
97
  p.value = A(V.value);
97
98
  }
98
99
  async function se() {
99
- var v, x;
100
- const e = await ((v = C.value) == null ? void 0 : v.validateInputsWithoutSubmit()), s = (x = ae().currentBusiness.value) == null ? void 0 : x.id;
100
+ var v, w;
101
+ const e = await ((v = C.value) == null ? void 0 : v.validateInputsWithoutSubmit()), s = (w = ae().currentBusiness.value) == null ? void 0 : w.id;
101
102
  !(e != null && e.length) && s && F.minor(async () => {
102
- var j;
103
- const w = T();
104
- if ((j = t.modelValue) != null && j.id) {
103
+ var T;
104
+ const x = I();
105
+ if ((T = t.modelValue) != null && T.id) {
105
106
  const B = {
106
107
  name: a.value.name,
107
- permissions: w,
108
+ permissions: x,
108
109
  permissionSetIds: d.value,
109
110
  businessId: a.value.businessId
110
111
  };
@@ -113,7 +114,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
113
114
  const B = {
114
115
  name: a.value.name,
115
116
  businessId: s,
116
- permissions: w,
117
+ permissions: x,
117
118
  permissionSetIds: d.value
118
119
  };
119
120
  await m.createPermissionSet(B);
@@ -121,10 +122,10 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
121
122
  l.value = !1;
122
123
  });
123
124
  }
124
- return R({
125
- trigger: z
125
+ return k({
126
+ trigger: O
126
127
  }), (e, s) => {
127
- const v = u("FmTextField"), x = u("FmSelect"), w = u("FmForm"), j = u("FmButton"), B = u("FmSideSheet");
128
+ const v = u("FmTextField"), w = u("FmSelect"), x = u("FmForm"), T = u("FmButton"), B = u("FmSideSheet");
128
129
  return g(), H(B, {
129
130
  modelValue: l.value,
130
131
  "onUpdate:modelValue": s[4] || (s[4] = (_) => l.value = _),
@@ -132,18 +133,18 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
132
133
  "dismiss-away": ""
133
134
  }, {
134
135
  "side-sheet-header": P(() => [
135
- y("p", xe, N(k.value), 1)
136
+ y("p", we, N(R.value), 1)
136
137
  ]),
137
138
  "side-sheet-footer": P(() => [
138
- y("div", we, [
139
- r(j, {
139
+ y("div", xe, [
140
+ r(T, {
140
141
  label: U.value,
141
142
  size: "md",
142
143
  variant: "primary",
143
144
  type: "submit",
144
145
  onClick: se
145
146
  }, null, 8, ["label"]),
146
- r(j, {
147
+ r(T, {
147
148
  label: c(i)("common.cancel"),
148
149
  size: "md",
149
150
  variant: "secondary",
@@ -152,7 +153,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
152
153
  ])
153
154
  ]),
154
155
  default: P(() => [
155
- r(w, {
156
+ r(x, {
156
157
  ref_key: "formRef",
157
158
  ref: C
158
159
  }, {
@@ -164,7 +165,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
164
165
  placeholder: c(i)("permissionSet.form.namePlaceholder"),
165
166
  rules: D
166
167
  }, null, 8, ["modelValue", "label", "placeholder"]),
167
- r(x, {
168
+ r(w, {
168
169
  modelValue: d.value,
169
170
  "onUpdate:modelValue": [
170
171
  s[1] || (s[1] = (_) => d.value = _),
@@ -192,13 +193,13 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
192
193
  }, 8, ["modelValue"]);
193
194
  };
194
195
  }
195
- }), ke = { class: "space-y-8" }, Ce = { class: "flex justify-end xs:px-16" }, Ie = {
196
+ }), Re = { class: "space-y-8" }, Ce = { class: "flex justify-end xs:px-16" }, je = {
196
197
  key: 0,
197
198
  class: "overflow-auto"
198
- }, Te = { class: "pb-64" }, Ue = /* @__PURE__ */ q({
199
+ }, Ie = { class: "pb-64" }, We = /* @__PURE__ */ q({
199
200
  __name: "PermissionSetList",
200
- setup($, { expose: R }) {
201
- const { t } = M(), { fetchCustomReportPermissions: i } = K(), l = Q(), k = le(), { breakpoints: C } = re(), h = b(""), F = S(() => {
201
+ setup($, { expose: k }) {
202
+ const { t } = M(), { fetchCustomReportPermissions: i } = K(), l = Q(), R = le(), { breakpoints: C } = re(), h = b(""), F = S(() => {
202
203
  var n;
203
204
  return (n = d.value) == null ? void 0 : n.filter((o) => {
204
205
  const f = h.value.toLowerCase();
@@ -227,8 +228,8 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
227
228
  const o = n.row.original, f = Z(
228
229
  [o.id],
229
230
  a.permissionSets.value
230
- ), I = A(f);
231
- return O(Ve, { modelValue: I });
231
+ ), j = A(f);
232
+ return z(Ve, { modelValue: j });
232
233
  }
233
234
  },
234
235
  {
@@ -238,8 +239,8 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
238
239
  headerContentClass: "-mx-16"
239
240
  },
240
241
  cell(n) {
241
- return O("div", { class: "w-full flex justify-end items-center" }, [
242
- O(me.FmButton, {
242
+ return z("div", { class: "w-full flex justify-end items-center" }, [
243
+ z(me.FmButton, {
243
244
  prependIcon: "delete",
244
245
  variant: ue.Tertiary,
245
246
  textColor: ce.NeutralGray400,
@@ -258,7 +259,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
258
259
  p.value = void 0, (n = m.value) == null || n.trigger();
259
260
  }
260
261
  async function L(n) {
261
- k.open({
262
+ R.open({
262
263
  title: t("permissionSet.form.delete.title"),
263
264
  message: t("permissionSet.form.delete.confirmationMessage", { permissionSetName: n.name }),
264
265
  minWidth: C.value.lg ? 588 : 0,
@@ -280,43 +281,43 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
280
281
  }) : t("permissionSet.form.delete.conflictError", { permissionSetName: n.name }) : o instanceof Error ? o.message : `${o}`;
281
282
  l.open({ message: f, type: "error" });
282
283
  }
283
- k.close();
284
+ R.close();
284
285
  });
285
286
  }
286
287
  return ie(() => {
287
288
  D(), i();
288
- }), R({
289
+ }), k({
289
290
  create: V
290
291
  }), (n, o) => {
291
- const f = u("FmSearch"), I = u("FmTable"), z = u("FullWrapper");
292
+ const f = u("FmSearch"), j = u("FmTable"), O = u("FullWrapper");
292
293
  return g(), E(X, null, [
293
- r(Re, {
294
+ r(ke, {
294
295
  ref_key: "permissionSetFormRef",
295
296
  ref: m,
296
297
  "model-value": p.value
297
298
  }, null, 8, ["model-value"]),
298
- y("div", ke, [
299
+ y("div", Re, [
299
300
  y("div", Ce, [
300
301
  r(f, {
301
302
  modelValue: h.value,
302
- "onUpdate:modelValue": o[0] || (o[0] = (T) => h.value = T),
303
+ "onUpdate:modelValue": o[0] || (o[0] = (I) => h.value = I),
303
304
  class: "w-[320px] xs:w-full",
304
305
  autofocus: "",
305
306
  placeholder: c(t)("permissionSet.search.placeholder")
306
307
  }, null, 8, ["modelValue", "placeholder"])
307
308
  ]),
308
- d.value.length > 0 ? (g(), E("div", Ie, [
309
- y("div", Te, [
310
- r(z, null, {
309
+ d.value.length > 0 ? (g(), E("div", je, [
310
+ y("div", Ie, [
311
+ r(O, null, {
311
312
  default: P(() => [
312
- r(I, {
313
+ r(j, {
313
314
  "column-defs": W,
314
315
  "row-data": F.value,
315
316
  "page-size": F.value.length,
316
317
  "pin-header-row": "",
317
318
  "hide-footer": "",
318
319
  "shrink-at": !1,
319
- onRowClick: o[1] || (o[1] = (T) => U(T.original))
320
+ onRowClick: o[1] || (o[1] = (I) => U(I.original))
320
321
  }, null, 8, ["row-data", "page-size"])
321
322
  ]),
322
323
  _: 1
@@ -333,5 +334,5 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
333
334
  }
334
335
  });
335
336
  export {
336
- Ue as default
337
+ We as default
337
338
  };