@feedmepos/mf-hrm-portal 2.0.10-dev.3 → 2.0.11-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 (44) hide show
  1. package/dist/AuditLogList-C7QcWwHq.js +941 -0
  2. package/dist/EmployeeList-CQzS4gXV.js +690 -0
  3. package/dist/{Main-g0xYhlQL.js → Main-6td6JhCb.js} +1055 -1054
  4. package/dist/{Main-CvuyDkkJ.js → Main-BhNhmkn8.js} +4 -4
  5. package/dist/{Main-pViKokej.js → Main-Bu-UNnSQ.js} +6 -6
  6. package/dist/{PermissionSetList-C71zXeNi.js → PermissionSetList-IG15Aj5D.js} +124 -128
  7. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Dx9qaSOy.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CDA9oDkd.js} +701 -701
  8. package/dist/RoleList-Cziztrpo.js +519 -0
  9. package/dist/TeamMemberList-DwxhZcrA.js +1081 -0
  10. package/dist/{TimesheetList-bEatYw_W.js → TimesheetList-D_JT5iyS.js} +74 -74
  11. package/dist/{app-CXo7sYZ7.js → app-h2mRYtCE.js} +4 -4
  12. package/dist/app.js +1 -1
  13. package/dist/{dayjs.min-DDneYlAk.js → dayjs.min-QbzmY4D1.js} +1 -1
  14. package/dist/employee-CY4sYUu8.js +232 -0
  15. package/dist/{index-CiQs6mxE.js → index-BLm_-G4e.js} +104 -81
  16. package/dist/{index-BAlO0GI7.js → index-CBgvOHm7.js} +1 -1
  17. package/dist/{iteration-BxC7Vx_7.js → iteration-J_5O7DIo.js} +1 -1
  18. package/dist/{lodash-Cgp0qhfw.js → lodash-btS1GWf0.js} +1 -1
  19. package/dist/src/api/employee/index.d.ts +4 -3
  20. package/dist/src/api/team/index.d.ts +3 -1
  21. package/dist/src/components/table/TablePagination.vue.d.ts +14 -0
  22. package/dist/src/composables/useDebounce.d.ts +9 -0
  23. package/dist/src/stores/employee.d.ts +515 -6
  24. package/dist/src/stores/team.d.ts +6 -0
  25. package/dist/src/types/employee.d.ts +35 -1
  26. package/dist/src/types/team.d.ts +18 -2
  27. package/dist/src/views/hr/employee/EmployeeForm.vue.d.ts +6 -2
  28. package/dist/src/views/hr/employee/EmployeeList.vue.d.ts +3 -0
  29. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +9 -0
  30. package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +5 -5
  31. package/dist/style.css +1 -1
  32. package/dist/{timesheet-DtpxRbZd.js → timesheet-B4Vja79b.js} +3 -3
  33. package/dist/tsconfig.app.tsbuildinfo +1 -1
  34. package/dist/{useAppStore-4gHWq2VT.js → useAppStore-CEidzV7L.js} +1 -1
  35. package/dist/useDebounce-Cnv3r01W.js +83 -0
  36. package/dist/{useLoading-Ef4IqHD8.js → useLoading-fH82N_CS.js} +1 -1
  37. package/dist/{useReportPermissions-C4HbISVo.js → useReportPermissions-BZS4zPhT.js} +3 -3
  38. package/package.json +1 -1
  39. package/dist/AuditLogList-DaFC8LUT.js +0 -915
  40. package/dist/EmployeeList-fzS5kLyE.js +0 -621
  41. package/dist/RoleList-CAGV8HIy.js +0 -499
  42. package/dist/TeamMemberList-BOSxsyhc.js +0 -989
  43. package/dist/employee-CfNSjKLV.js +0 -145
  44. package/dist/team-DYjRRZA-.js +0 -33
@@ -1,7 +1,7 @@
1
1
  import { defineStore as f, storeToRefs as v } from "pinia";
2
2
  import { ref as b } from "vue";
3
3
  import { useCoreStore as I, baseClientInstance as w } from "@feedmepos/mf-common";
4
- import { g as l, b as d, s as R } from "./iteration-BxC7Vx_7.js";
4
+ import { g as l, b as d, s as R } from "./iteration-J_5O7DIo.js";
5
5
  const p = {
6
6
  async readRoles() {
7
7
  return l(await d().get("/pos-roles"));
@@ -0,0 +1,83 @@
1
+ import { defineComponent as x, computed as i, resolveComponent as f, createElementBlock as P, openBlock as k, createElementVNode as r, toDisplayString as c, createVNode as d, watch as I } from "vue";
2
+ /* empty css */
3
+ import { _ as S } from "./SelectFilter-DUj7GBtT.js";
4
+ const T = { class: "sticky bottom-0 z-10 flex shrink-0 items-center justify-between gap-12 border-fm-color-border-default bg-white px-24 py-4 xs:flex-col xs:items-stretch xs:px-16" }, V = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, z = { class: "flex items-center gap-8 xs:justify-between" }, B = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, F = { class: "flex items-center gap-4" }, M = /* @__PURE__ */ x({
5
+ __name: "TablePagination",
6
+ props: {
7
+ currentPage: {},
8
+ pageSize: {},
9
+ totalItems: {},
10
+ disabled: { type: Boolean, default: !1 }
11
+ },
12
+ emits: ["update:currentPage"],
13
+ setup(o, { emit: u }) {
14
+ const e = o, n = u, l = i(() => Math.max(1, Math.ceil(e.totalItems / e.pageSize))), t = i(() => Math.min(Math.max(1, e.currentPage), l.value)), b = i(
15
+ () => Array.from({ length: l.value }, (s, a) => ({
16
+ label: `${a + 1}`,
17
+ value: a + 1
18
+ }))
19
+ ), m = i({
20
+ get: () => t.value,
21
+ set: (s) => {
22
+ const a = typeof s == "string" ? parseInt(s, 10) : s;
23
+ !Number.isFinite(a) || a === e.currentPage || n("update:currentPage", a);
24
+ }
25
+ }), p = i(() => {
26
+ if (e.totalItems === 0)
27
+ return { start: 0, end: 0 };
28
+ const s = (t.value - 1) * e.pageSize + 1, a = Math.min(t.value * e.pageSize, e.totalItems);
29
+ return { start: s, end: a };
30
+ });
31
+ function v() {
32
+ e.disabled || t.value <= 1 || n("update:currentPage", t.value - 1);
33
+ }
34
+ function _() {
35
+ e.disabled || t.value >= l.value || n("update:currentPage", t.value + 1);
36
+ }
37
+ return (s, a) => {
38
+ const h = f("FmSelect"), g = f("FmButton");
39
+ return k(), P("div", T, [
40
+ r("span", V, c(p.value.start) + "-" + c(p.value.end) + " of " + c(o.totalItems) + " items ", 1),
41
+ r("div", z, [
42
+ d(h, {
43
+ modelValue: m.value,
44
+ "onUpdate:modelValue": a[0] || (a[0] = (y) => m.value = y),
45
+ class: "table-pagination__page-select",
46
+ items: b.value,
47
+ disabled: o.disabled,
48
+ multiselect: !1
49
+ }, null, 8, ["modelValue", "items", "disabled"]),
50
+ r("span", B, " of " + c(l.value) + " pages ", 1),
51
+ r("div", F, [
52
+ d(g, {
53
+ variant: "tertiary",
54
+ icon: "chevron_left",
55
+ "icon-color": "neutral-black",
56
+ disabled: o.disabled || t.value <= 1,
57
+ onClick: v
58
+ }, null, 8, ["disabled"]),
59
+ d(g, {
60
+ variant: "tertiary",
61
+ icon: "chevron_right",
62
+ "icon-color": "neutral-black",
63
+ disabled: o.disabled || t.value >= l.value,
64
+ onClick: _
65
+ }, null, 8, ["disabled"])
66
+ ])
67
+ ])
68
+ ]);
69
+ };
70
+ }
71
+ }), j = /* @__PURE__ */ S(M, [["__scopeId", "data-v-8f46264b"]]);
72
+ function D(o, u, e = 300) {
73
+ let n;
74
+ return I(o, (t) => {
75
+ n && clearTimeout(n), n = setTimeout(() => {
76
+ u(t);
77
+ }, e);
78
+ });
79
+ }
80
+ export {
81
+ j as T,
82
+ D as u
83
+ };
@@ -1,6 +1,6 @@
1
1
  import { computed as I, isRef as L, watch as M } from "vue";
2
2
  import { SnackbarPosition as y } from "@feedmepos/ui-library";
3
- import { a as w, v } from "./useAppStore-4gHWq2VT.js";
3
+ import { a as w, v } from "./useAppStore-CEidzV7L.js";
4
4
  const E = (r) => {
5
5
  async function d(u, e) {
6
6
  var l, a;
@@ -1,8 +1,8 @@
1
1
  import { computed as u, ref as r } from "vue";
2
- import { e as l } from "./iteration-BxC7Vx_7.js";
2
+ import { e as l } from "./iteration-J_5O7DIo.js";
3
3
  import { useCoreStore as y } from "@feedmepos/mf-common";
4
- import { e as R, R as h } from "./index-CiQs6mxE.js";
5
- import "./app-CXo7sYZ7.js";
4
+ import { e as R, R as h } from "./index-BLm_-G4e.js";
5
+ import "./app-h2mRYtCE.js";
6
6
  const n = r([]), c = r(!1), t = r(!1), m = r(null);
7
7
  function L() {
8
8
  const d = y();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-hrm-portal",
3
- "version": "2.0.10-dev.3",
3
+ "version": "2.0.11-dev",
4
4
  "files": [
5
5
  "dist"
6
6
  ],