@feedmepos/mf-hrm-portal 2.0.17-dev.4 → 2.0.17-dev.5

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 (54) hide show
  1. package/dist/AuditLogList-Dl3Nmf00.js +1011 -0
  2. package/dist/CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js +58 -0
  3. package/dist/EmployeeList-DBd_rVW2.js +831 -0
  4. package/dist/FormItem.vue_vue_type_script_setup_true_lang-CoorkndT.js +34 -0
  5. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
  6. package/dist/{Main-BAx-c_oZ.js → Main-CQ3KwxDY.js} +1368 -1371
  7. package/dist/{Main-CyReTP3K.js → Main-pTgqNncY.js} +128 -128
  8. package/dist/{Main-CfAQYaaW.js → Main-w0XUUaBp.js} +16 -14
  9. package/dist/PermissionSetList-B8qNOWH6.js +347 -0
  10. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C9VUjAu_.js +3443 -0
  11. package/dist/RoleList-DMFJsUZv.js +545 -0
  12. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +16 -0
  13. package/dist/TeamMemberList-BLRTfKLz.js +1031 -0
  14. package/dist/{TimesheetList-NRUfSiYL.js → TimesheetList-Bwp9_xHe.js} +6 -6
  15. package/dist/{app-B0bANDrM.js → app-COJbSNM4.js} +759 -711
  16. package/dist/app.js +1 -1
  17. package/dist/{dayjs.min-DdUO0d-2.js → dayjs.min-CcBi6N-K.js} +1 -1
  18. package/dist/{employee-DJDUT0Wj.js → employee-xiV0LfnL.js} +3 -3
  19. package/dist/{iteration-DqYIXL4P.js → iteration-JOKbtlLf.js} +1 -1
  20. package/dist/{lodash-BBQT31li.js → lodash-D5xlVzib.js} +1 -1
  21. package/dist/{rule-T7VKkRdN.js → rule-3sXHiW0y.js} +179 -181
  22. package/dist/src/api/audit-log/index.d.ts +9 -0
  23. package/dist/src/components/CheckboxInput.vue.d.ts +1 -1
  24. package/dist/src/components/CollapsibleWrapper.vue.d.ts +2 -0
  25. package/dist/src/components/Skeleton.vue.d.ts +7 -0
  26. package/dist/src/composables/useBasePermission.d.ts +1 -0
  27. package/dist/src/stores/team.d.ts +6 -6
  28. package/dist/src/types/team.d.ts +1 -1
  29. package/dist/src/views/hr/locales/index.d.ts +16 -0
  30. package/dist/src/views/team/components/BasePermission.vue.d.ts +3 -7
  31. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +2 -2
  32. package/dist/src/views/team/locales/index.d.ts +32 -0
  33. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +5 -3
  34. package/dist/style.css +1 -1
  35. package/dist/team-CyNektSD.js +33 -0
  36. package/dist/{timesheet-DjtuB4we.js → timesheet-DkD3AysG.js} +2 -2
  37. package/dist/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/{useAppStore-CBb-dugK.js → useAppStore-CvmsaYSG.js} +1 -1
  39. package/dist/useDiscardConfirm-DPhEV6v0.js +157 -0
  40. package/dist/{useLoading-BCOj8y-t.js → useLoading-4TNmhm5N.js} +1 -1
  41. package/dist/{useReportPermissions-DyzhBpi8.js → useReportPermissions-CWMFFb8E.js} +3 -3
  42. package/dist/useSearch-BAPEUu1R.js +15 -0
  43. package/package.json +1 -1
  44. package/dist/AuditLogList-CV82_8fj.js +0 -980
  45. package/dist/EmployeeList-dE0So94R.js +0 -736
  46. package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +0 -71
  47. package/dist/HorizontalSplitter-o860F4xM.js +0 -12
  48. package/dist/PermissionSetList-DmsJnW2i.js +0 -341
  49. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BbcY9q1x.js +0 -3480
  50. package/dist/RoleList-CKB8L-BW.js +0 -530
  51. package/dist/TeamMemberList-CszlbmAX.js +0 -1108
  52. package/dist/useDebounce-B8ZPVS5C.js +0 -15
  53. package/dist/useDiscardConfirm-BHni0LNu.js +0 -28
  54. package/dist/useSearch-B6WK1LBB.js +0 -15
@@ -1,7 +1,7 @@
1
1
  import { defineStore as I, storeToRefs as Q } from "pinia";
2
2
  import { ref as w } from "vue";
3
3
  import { useCoreStore as x, baseClientInstance as S } from "@feedmepos/mf-common";
4
- import { g as l, b as g, s as h } from "./iteration-DqYIXL4P.js";
4
+ import { g as l, b as g, s as h } from "./iteration-JOKbtlLf.js";
5
5
  const y = {
6
6
  async readRoles() {
7
7
  return l(await g().get("/pos-roles"));
@@ -0,0 +1,157 @@
1
+ import { defineComponent as x, ref as M, resolveComponent as l, createBlock as a, openBlock as t, withCtx as i, createElementVNode as g, renderSlot as b, createCommentVNode as k, withModifiers as $, nextTick as I, createElementBlock as f, normalizeClass as h, createTextVNode as V, toDisplayString as C, computed as w, Fragment as B, renderList as F, createVNode as S } from "vue";
2
+ import { useBreakpoints as z, useDialog as D } from "@feedmepos/ui-library";
3
+ import { useI18n as N } from "@feedmepos/mf-common";
4
+ const A = /* @__PURE__ */ x({
5
+ __name: "BottomSheetMenu",
6
+ setup(o) {
7
+ const e = M(!1);
8
+ async function r() {
9
+ await I(), e.value = !e.value;
10
+ }
11
+ return (n, s) => {
12
+ const y = l("FmButton"), _ = l("FmBottomSheet");
13
+ return t(), a(_, {
14
+ modelValue: e.value,
15
+ "onUpdate:modelValue": s[1] || (s[1] = (d) => e.value = d),
16
+ "dismiss-away": "",
17
+ "no-header": "",
18
+ "z-index": 110
19
+ }, {
20
+ "bottom-sheet-button": i(() => [
21
+ n.$slots.button ? k("", !0) : (t(), a(y, {
22
+ key: 0,
23
+ icon: "more_vert",
24
+ variant: "tertiary",
25
+ onClick: $(r, ["stop"])
26
+ })),
27
+ b(n.$slots, "button")
28
+ ]),
29
+ default: i(() => [
30
+ g("div", {
31
+ onClick: s[0] || (s[0] = (d) => e.value = !1)
32
+ }, [
33
+ b(n.$slots, "default")
34
+ ])
35
+ ]),
36
+ _: 3
37
+ }, 8, ["modelValue"]);
38
+ };
39
+ }
40
+ }), E = { class: "py-8 px-12 hover:bg-fm-color-neutral-gray-100" }, T = /* @__PURE__ */ x({
41
+ __name: "BottomSheetMenuItem",
42
+ props: {
43
+ label: {},
44
+ icon: {},
45
+ disabled: { type: Boolean },
46
+ itemClass: {}
47
+ },
48
+ setup(o) {
49
+ const e = o;
50
+ return (r, n) => {
51
+ const s = l("FmIcon");
52
+ return t(), f("div", E, [
53
+ r.$slots.content ? k("", !0) : (t(), f("div", {
54
+ key: 0,
55
+ class: h(["flex items-center", {
56
+ "text-fm-color-typo-disabled": e.disabled,
57
+ "cursor-pointer": !e.disabled,
58
+ "cursor-not-allowed": e.disabled,
59
+ [e.itemClass || ""]: e.itemClass && !e.disabled
60
+ }])
61
+ }, [
62
+ o.icon ? (t(), a(s, {
63
+ key: 0,
64
+ name: o.icon
65
+ }, null, 8, ["name"])) : k("", !0),
66
+ V(" " + C(o.label), 1)
67
+ ], 2)),
68
+ b(r.$slots, "content")
69
+ ]);
70
+ };
71
+ }
72
+ }), U = /* @__PURE__ */ x({
73
+ __name: "ResponsiveContextMenu",
74
+ props: {
75
+ items: {}
76
+ },
77
+ setup(o) {
78
+ const e = z(), r = w(() => e.breakpoints.value.xs);
79
+ return (n, s) => {
80
+ const y = l("FmButton"), _ = l("FmMenuItem"), d = l("FmMenu");
81
+ return r.value ? (t(), a(A, { key: 0 }, {
82
+ default: i(() => [
83
+ (t(!0), f(B, null, F(o.items, ({ icon: c, label: m, disabled: p, itemClass: u, onClick: v }) => (t(), a(T, {
84
+ key: m,
85
+ icon: c,
86
+ label: m,
87
+ disabled: p,
88
+ itemClass: u,
89
+ onClick: () => {
90
+ !p && (v == null || v());
91
+ }
92
+ }, null, 8, ["icon", "label", "disabled", "itemClass", "onClick"]))), 128))
93
+ ]),
94
+ _: 1
95
+ })) : (t(), a(d, {
96
+ key: 1,
97
+ "stop-click-propagation": "",
98
+ shift: !0
99
+ }, {
100
+ "menu-button": i(() => [
101
+ S(y, {
102
+ type: "button",
103
+ variant: "tertiary",
104
+ icon: "more_vert",
105
+ "text-color": "neutral-gray-400",
106
+ size: "md"
107
+ })
108
+ ]),
109
+ default: i(() => [
110
+ (t(!0), f(B, null, F(o.items, ({ label: c, disabled: m, itemClass: p, onClick: u }) => (t(), a(_, {
111
+ key: c,
112
+ disabled: m,
113
+ label: c,
114
+ onClick: () => {
115
+ !m && (u == null || u());
116
+ }
117
+ }, {
118
+ label: i(() => [
119
+ g("span", {
120
+ class: h(m ? "text-fm-color-typo-disabled" : p)
121
+ }, C(c), 3)
122
+ ]),
123
+ _: 2
124
+ }, 1032, ["disabled", "label", "onClick"]))), 128))
125
+ ]),
126
+ _: 1
127
+ }));
128
+ };
129
+ }
130
+ });
131
+ function j(o, e) {
132
+ const r = D(), { t: n } = N();
133
+ function s() {
134
+ o() ? r.open({
135
+ title: n("portalCommon.dismiss.title"),
136
+ message: n("portalCommon.dismiss.message"),
137
+ zIndex: 200,
138
+ primaryActions: {
139
+ text: n("portalCommon.dismiss.primaryActions"),
140
+ variant: "primary",
141
+ close: !0
142
+ },
143
+ secondaryActions: {
144
+ text: n("common.cancel"),
145
+ variant: "tertiary",
146
+ close: !0
147
+ }
148
+ }).onPrimary(() => {
149
+ e();
150
+ }) : e();
151
+ }
152
+ return s;
153
+ }
154
+ export {
155
+ U as _,
156
+ j as u
157
+ };
@@ -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-CBb-dugK.js";
3
+ import { a as w, v } from "./useAppStore-CvmsaYSG.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 t } from "vue";
2
- import { e as d } from "./iteration-DqYIXL4P.js";
2
+ import { e as d } from "./iteration-JOKbtlLf.js";
3
3
  import { useCoreStore as h } from "@feedmepos/mf-common";
4
- import { e as S, R as g } from "./rule-T7VKkRdN.js";
5
- import "./app-B0bANDrM.js";
4
+ import { e as S, R as g } from "./rule-3sXHiW0y.js";
5
+ import "./app-COJbSNM4.js";
6
6
  const r = t([]), c = t(!1), a = t(!1), f = t(null), p = t(null), i = t(!1);
7
7
  function B() {
8
8
  const v = h();
@@ -0,0 +1,15 @@
1
+ import { ref as a, computed as c } from "vue";
2
+ const f = (i) => {
3
+ const r = a("");
4
+ function t(e) {
5
+ return `${e}`.trim().toLowerCase();
6
+ }
7
+ const u = c(() => t(r.value));
8
+ function o(e) {
9
+ return u.value ? e.some((n) => t(n).includes(u.value)) : !0;
10
+ }
11
+ return { searchKey: r, filter: o };
12
+ };
13
+ export {
14
+ f as u
15
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-hrm-portal",
3
- "version": "2.0.17-dev.4",
3
+ "version": "2.0.17-dev.5",
4
4
  "files": [
5
5
  "dist"
6
6
  ],