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

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 (50) hide show
  1. package/dist/{AuditLogList-DQOiwup5.js → AuditLogList-CV82_8fj.js} +350 -324
  2. package/dist/EmployeeList-dE0So94R.js +736 -0
  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-5nIpv-Sp.js → Main-BAx-c_oZ.js} +9 -9
  6. package/dist/{Main-2uJvk5L7.js → Main-CfAQYaaW.js} +14 -15
  7. package/dist/{Main-C8ja5xs6.js → Main-CyReTP3K.js} +8 -8
  8. package/dist/PermissionSetList-DmsJnW2i.js +341 -0
  9. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BbcY9q1x.js +3480 -0
  10. package/dist/RoleList-CKB8L-BW.js +530 -0
  11. package/dist/TeamMemberList-CszlbmAX.js +1108 -0
  12. package/dist/{TimesheetList-D1ByiuwP.js → TimesheetList-NRUfSiYL.js} +6 -6
  13. package/dist/{app-hS6MBhCw.js → app-B0bANDrM.js} +1891 -1404
  14. package/dist/app.js +1 -1
  15. package/dist/{dayjs.min-DFcH-XYr.js → dayjs.min-DdUO0d-2.js} +1 -1
  16. package/dist/{employee-fBtBUEwZ.js → employee-DJDUT0Wj.js} +3 -3
  17. package/dist/{iteration-D23fqAQH.js → iteration-DqYIXL4P.js} +1 -1
  18. package/dist/{lodash-Cqc7y4P5.js → lodash-BBQT31li.js} +1 -1
  19. package/dist/rule-T7VKkRdN.js +996 -0
  20. package/dist/src/api/report-query/index.d.ts +2 -2
  21. package/dist/src/components/CheckboxInput.vue.d.ts +1 -1
  22. package/dist/src/components/CollapsibleWrapper.vue.d.ts +0 -2
  23. package/dist/src/composables/useBasePermission.d.ts +1 -1
  24. package/dist/src/views/hr/locales/index.d.ts +172 -16
  25. package/dist/src/views/team/components/BasePermission.vue.d.ts +6 -2
  26. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +2 -2
  27. package/dist/src/views/team/locales/index.d.ts +312 -32
  28. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -3
  29. package/dist/style.css +1 -1
  30. package/dist/{timesheet-OfLQjuvO.js → timesheet-DjtuB4we.js} +2 -2
  31. package/dist/tsconfig.app.tsbuildinfo +1 -1
  32. package/dist/{useAppStore-Du6PRBq0.js → useAppStore-CBb-dugK.js} +1 -1
  33. package/dist/useDebounce-B8ZPVS5C.js +15 -0
  34. package/dist/{useLoading-DkTCR5A7.js → useLoading-BCOj8y-t.js} +1 -1
  35. package/dist/useReportPermissions-DyzhBpi8.js +70 -0
  36. package/dist/useSearch-B6WK1LBB.js +15 -0
  37. package/package.json +2 -2
  38. package/dist/CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js +0 -58
  39. package/dist/EmployeeList-oERrzrAd.js +0 -828
  40. package/dist/FormItem.vue_vue_type_script_setup_true_lang-CoorkndT.js +0 -34
  41. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
  42. package/dist/PermissionSetList-CtpaWlVM.js +0 -323
  43. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B-hvBqE0.js +0 -3439
  44. package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +0 -132
  45. package/dist/RoleList-CDBP2W5v.js +0 -544
  46. package/dist/TeamMemberList-DSzNjP4y.js +0 -996
  47. package/dist/rule-BBJzenE1.js +0 -990
  48. package/dist/team-Dq3VcGNH.js +0 -33
  49. package/dist/useReportPermissions-DhhjBwPs.js +0 -60
  50. package/dist/useSearch-BAPEUu1R.js +0 -15
@@ -1,33 +0,0 @@
1
- import { defineStore as d } from "pinia";
2
- import { ref as s, computed as o } from "vue";
3
- import { t as f } from "./rule-BBJzenE1.js";
4
- const I = d("team", () => {
5
- const r = s([]), a = s(!1), m = o(
6
- () => Object.fromEntries(r.value.map((e) => [e.doc.userId, e.name]))
7
- ), n = o(
8
- () => Object.fromEntries(r.value.map((e) => [e.doc.userId, e.email]))
9
- ), u = o(
10
- () => Object.fromEntries(r.value.map((e) => [e.doc.userId, e.phoneNumber]))
11
- );
12
- async function c({ force: e = !1 } = {}) {
13
- if (!(!e && r.value.length > 0))
14
- try {
15
- a.value = !0;
16
- const i = await f.readTeamMembers();
17
- r.value = i.sort((t, l) => t.doc.isOwner ? -1 : t.name.localeCompare(l.name));
18
- } finally {
19
- a.value = !1;
20
- }
21
- }
22
- return {
23
- members: r,
24
- isLoading: a,
25
- userIdToName: m,
26
- userIdToEmail: n,
27
- userIdToPhone: u,
28
- readTeamMembers: c
29
- };
30
- });
31
- export {
32
- I as u
33
- };
@@ -1,60 +0,0 @@
1
- import { computed as u, ref as r } from "vue";
2
- import { e as l } from "./iteration-D23fqAQH.js";
3
- import { useCoreStore as y } from "@feedmepos/mf-common";
4
- import { e as R, R as h } from "./rule-BBJzenE1.js";
5
- import "./app-hS6MBhCw.js";
6
- const n = r([]), c = r(!1), t = r(!1), m = r(null);
7
- function L() {
8
- const d = y();
9
- async function f() {
10
- var o;
11
- const s = (o = d.currentBusiness.value) == null ? void 0 : o.id;
12
- if (s && (m.value !== s && (n.value = [], c.value = !1, t.value = !1, m.value = s), !(c.value || t.value))) {
13
- t.value = !0;
14
- try {
15
- n.value = await h.fetchReportPermissions(s), c.value = !0;
16
- } catch (e) {
17
- console.warn("Failed to fetch dynamic report permissions, using hardcoded only:", e), n.value = [];
18
- } finally {
19
- t.value = !1;
20
- }
21
- }
22
- }
23
- const i = R.filter(
24
- (s) => s.subject === l.F_RULE_SUBJECT.enum.report && s.conditions
25
- ), p = u(() => {
26
- const s = new Set(
27
- i.map((e) => {
28
- const a = typeof e.conditions == "string" ? JSON.parse(e.conditions) : e.conditions;
29
- return a == null ? void 0 : a.name;
30
- })
31
- ), o = n.value.filter((e) => !s.has(e.permissionKey)).map((e) => ({
32
- label: e.name,
33
- subject: l.F_RULE_SUBJECT.enum.report,
34
- actions: ["read"],
35
- conditions: { name: e.permissionKey },
36
- inverted: !1,
37
- reason: ""
38
- }));
39
- return [...i, ...o];
40
- }), v = u(() => {
41
- const s = new Set(
42
- i.map((o) => {
43
- const e = typeof o.conditions == "string" ? JSON.parse(o.conditions) : o.conditions;
44
- return e == null ? void 0 : e.name;
45
- })
46
- );
47
- for (const o of n.value)
48
- s.add(o.permissionKey);
49
- return s;
50
- });
51
- return {
52
- fetchReportPermissions: f,
53
- allReportPermissions: p,
54
- availableReportKeys: v,
55
- isLoading: u(() => t.value)
56
- };
57
- }
58
- export {
59
- L as u
60
- };
@@ -1,15 +0,0 @@
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
- };