@feedmepos/mf-hrm-portal 1.1.1-dev → 1.1.3-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 (32) hide show
  1. package/dist/AuditLogList-DNQh1rE9.js +316 -0
  2. package/dist/{EmployeeList-CMUbRS7j.js → EmployeeList-zU7fmC4c.js} +9 -8
  3. package/dist/{Main-BbZ-t-pu.js → Main-BqhrqOzx.js} +4 -4
  4. package/dist/{Main-un3v_g6p.js → Main-DGymQNz9.js} +9 -8
  5. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BvjXcknf.js +3050 -0
  6. package/dist/{RoleList-mlTepnhN.js → RoleList-jbZqer7A.js} +5 -5
  7. package/dist/{RolePermissionList-tR-Kmlu7.js → RolePermissionList-Dd8ks5i7.js} +3 -3
  8. package/dist/{useSearch-C6gRA62e.js → SelectFilter-NbXrJ4iH.js} +90 -101
  9. package/dist/{TeamMemberList-BkRQl6x8.js → TeamMemberList-uamoOFIV.js} +40 -39
  10. package/dist/{TimesheetList-i5yaAzhB.js → TimesheetList-hgT9DrHd.js} +21 -20
  11. package/dist/api/team/index.d.ts +4 -1
  12. package/dist/{app-4LaGLcWC.js → app-CcbYGJ22.js} +757 -464
  13. package/dist/app.js +4 -4
  14. package/dist/dayjs.min-CgN1oBQf.js +282 -0
  15. package/dist/employee-khk560IC.js +172 -0
  16. package/dist/{index-BsEM84j5.js → index-D5sdamN5.js} +1154 -1183
  17. package/dist/{lodash-DYaYvsmp.js → lodash-7Am6_Zd3.js} +1 -1
  18. package/dist/{team-eo_yQh1g.js → team-CFyc6tnm.js} +1 -1
  19. package/dist/{timesheet-CfPIK52Q.js → timesheet-DKhEeLe7.js} +12 -12
  20. package/dist/tsconfig.app.tsbuildinfo +1 -1
  21. package/dist/types/audit-log.d.ts +1 -0
  22. package/dist/types/permission.d.ts +1 -5
  23. package/dist/{useAppStore-D0F-tWJO.js → useAppStore-DOSLuH24.js} +1 -1
  24. package/dist/{useLoading-DpbOtToC.js → useLoading-BA-GSZ3R.js} +1 -1
  25. package/dist/useSearch-B6WK1LBB.js +15 -0
  26. package/dist/views/audit-log/locales/index.d.ts +211 -0
  27. package/dist/views/team/components/BasePermission.vue.d.ts +0 -12
  28. package/package.json +2 -2
  29. package/dist/AuditLogList-D62QRWN-.js +0 -232
  30. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CZKBfM_R.js +0 -3119
  31. package/dist/employee-BZTntAR0.js +0 -450
  32. /package/dist/views/{hr/audit-log → audit-log}/AuditLogList.vue.d.ts +0 -0
@@ -1,12 +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 V, 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, u as we } from "./employee-BZTntAR0.js";
3
- import { useI18n as ye, useCoreStore as be, RestaurantSelector as _e } from "@feedmepos/mf-common";
4
- import { useSnackbar as De, components as xe } from "@feedmepos/ui-library";
5
- import { _ as Se } from "./app-4LaGLcWC.js";
6
- import { _ as ke } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
- import { u as Ve } from "./useLoading-DpbOtToC.js";
8
- import { i as Ce, j as Fe, s as Ye } from "./index-BsEM84j5.js";
9
- import { u as Le } from "./timesheet-CfPIK52Q.js";
2
+ import { d as v } from "./dayjs.min-CgN1oBQf.js";
3
+ import { useI18n as we, useCoreStore as ye, RestaurantSelector as be } from "@feedmepos/mf-common";
4
+ import { useSnackbar as _e, components as De } from "@feedmepos/ui-library";
5
+ import { _ as xe } from "./app-CcbYGJ22.js";
6
+ import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
+ import { u as ke } from "./useLoading-BA-GSZ3R.js";
8
+ import { i as Ve, j as Ce, s as Fe } from "./index-D5sdamN5.js";
9
+ import { u as Ye } from "./employee-khk560IC.js";
10
+ import { u as Le } from "./timesheet-DKhEeLe7.js";
10
11
  function Me(x, a) {
11
12
  return ["years", "months"].find((S) => {
12
13
  const k = x.startOf(S), f = x.endOf(S);
@@ -67,12 +68,12 @@ const Re = {
67
68
  class: "flex items-start gap-8 flex-wrap xs:px-16"
68
69
  }, qe = {
69
70
  class: "flex items-center gap-8"
70
- }, lt = /* @__PURE__ */ ce({
71
+ }, nt = /* @__PURE__ */ ce({
71
72
  __name: "TimesheetList",
72
73
  setup(x) {
73
74
  const {
74
75
  t: a
75
- } = ye(), C = De(), S = Ve(C), k = [{
76
+ } = we(), C = _e(), S = ke(C), k = [{
76
77
  label: a("hr.timesheet.listView"),
77
78
  value: "listView"
78
79
  }, {
@@ -81,7 +82,7 @@ const Re = {
81
82
  }], f = d("listView"), _ = b(() => {
82
83
  var t;
83
84
  return (t = k.find((e) => e.value === f.value)) == null ? void 0 : t.label;
84
- }), c = d(""), h = Le(), A = we(), F = b(() => A.employees.value), g = b(() => h.timesheets.value.filter((s) => !E.value || E.value.includes(s.restaurantId)).map((s) => {
85
+ }), c = d(""), h = Le(), A = Ye(), F = b(() => A.employees.value), g = b(() => h.timesheets.value.filter((s) => !E.value || E.value.includes(s.restaurantId)).map((s) => {
85
86
  var y;
86
87
  const r = (y = ee.restaurants.value.find((p) => p._id === s.restaurantId)) == null ? void 0 : y.profile.code, w = F.value.find((p) => p._id === s.user.id);
87
88
  return {
@@ -96,17 +97,17 @@ const Re = {
96
97
  var e, s;
97
98
  return t.user.name.toLowerCase().includes(c.value.toLowerCase()) || t.restaurantName.toLowerCase().includes(c.value.toLowerCase()) || ((e = t.restaurantCode) == null ? void 0 : e.toLowerCase().includes(c.value.toLowerCase())) || ((s = t.user.code) == null ? void 0 : s.toLowerCase().includes(c.value.toLowerCase()));
98
99
  })), j = b(() => {
99
- const t = Ce(g.value, (s) => s.user.name), e = Object.entries(t).map(([s, r]) => {
100
+ const t = Ve(g.value, (s) => s.user.name), e = Object.entries(t).map(([s, r]) => {
100
101
  const w = F.value.find((y) => y._id === r[0].user.id);
101
102
  return {
102
103
  key: s,
103
104
  user: r[0].user.name,
104
105
  code: w ? w.code : "",
105
106
  timesheets: r,
106
- total: Fe(r.reduce((y, p) => y + p.totalMin, 0))
107
+ total: Ce(r.reduce((y, p) => y + p.totalMin, 0))
107
108
  };
108
109
  });
109
- return Ye(e, {
110
+ return Fe(e, {
110
111
  selector: "user"
111
112
  });
112
113
  }), H = b(() => j.value.filter((t) => {
@@ -132,7 +133,7 @@ const Re = {
132
133
  me(() => {
133
134
  N();
134
135
  });
135
- const ee = be(), E = d(), {
136
+ const ee = ye(), E = d(), {
136
137
  dateRange: L,
137
138
  dateRangeLabel: te,
138
139
  setRange: G
@@ -190,7 +191,7 @@ const Re = {
190
191
  const s = t.row.getIsExpanded();
191
192
  return l("div", {
192
193
  class: "flex items-center gap-8"
193
- }, [l(xe.FmButton, {
194
+ }, [l(De.FmButton, {
194
195
  variant: "tertiary",
195
196
  icon: s ? "keyboard_arrow_up" : "keyboard_arrow_down",
196
197
  "on-click": (r) => {
@@ -291,7 +292,7 @@ const Re = {
291
292
  size: "sm"
292
293
  }), ve(" " + $(K.value), 1)])) : pe("", !0)])]),
293
294
  _: 1
294
- }, 8, ["modelValue", "header"]), u("div", He, [u("div", Ge, [l(n(_e), {
295
+ }, 8, ["modelValue", "header"]), u("div", He, [u("div", Ge, [l(n(be), {
295
296
  modelValue: E.value,
296
297
  "onUpdate:modelValue": e[6] || (e[6] = (o) => E.value = o),
297
298
  "managable-only": "",
@@ -333,11 +334,11 @@ const Re = {
333
334
  "onUpdate:modelValue": e[10] || (e[10] = (o) => c.value = o),
334
335
  class: "w-[320px]",
335
336
  placeholder: n(a)("hr.timesheet.search.placeholder")
336
- }, null, 8, ["modelValue", "placeholder"])]), g.value.length === 0 && !Y.value ? (D(), z(n(ke), {
337
+ }, null, 8, ["modelValue", "placeholder"])]), g.value.length === 0 && !Y.value ? (D(), z(n(Se), {
337
338
  key: 0,
338
339
  title: n(a)("hr.timesheet.noData.title"),
339
340
  subtitle: ""
340
- }, null, 8, ["title"])) : (D(), z(Se, {
341
+ }, null, 8, ["title"])) : (D(), z(xe, {
341
342
  key: 1,
342
343
  class: "w-full xs:px-16 overflow-auto"
343
344
  }, {
@@ -373,5 +374,5 @@ const Re = {
373
374
  }
374
375
  });
375
376
  export {
376
- lt as default
377
+ nt as default
377
378
  };
@@ -1,6 +1,9 @@
1
1
  import { type IFdtoPortalPermission } from '@/types/permission';
2
2
  import type { FTeamMember, IFdtoCreatePortalUserReq, IFdtoUpdatePortalUserReq } from '@/types/team';
3
- export declare const portalTeamPermissions: IFdtoPortalPermission[];
3
+ export type IFdtoPortalPermissionWithCategory = IFdtoPortalPermission & {
4
+ category: string;
5
+ };
6
+ export declare const portalTeamPermissions: IFdtoPortalPermissionWithCategory[];
4
7
  export declare const teamApi: {
5
8
  readTeamMembers(): Promise<FTeamMember[]>;
6
9
  createTeamMember(req: IFdtoCreatePortalUserReq): Promise<FTeamMember>;