@bahmni/reports-app 0.0.1-dev.441 → 0.0.1-dev.442
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.
- package/dist/{DocumentsTable-BCWUH3WY-Dd_g5y-Y.js → DocumentsTable-v84RmXjK-CJUOaFDd.js} +14 -14
- package/dist/{FormsTable-Bb-cDsSI-NNeieFqo.js → FormsTable-nHUlMFve-Dul2m6vz.js} +69 -69
- package/dist/{LNWAZHJI-D36E-L4P.js → LNWAZHJI-CVXqGBIt.js} +2 -2
- package/dist/{MWZ6AO7Z-DP0Iiz3Y.js → MWZ6AO7Z-DN9gLVXO.js} +2 -2
- package/dist/Observations-j0hpIS7w-BH3CQLuS.js +246 -0
- package/dist/{ReportsPage-aV-pOqVP.js → ReportsPage-hCNWLn72.js} +17 -17
- package/dist/{YPM2AS64-CHH7pdEs.js → YPM2AS64-BDsBU6j-.js} +1 -1
- package/dist/{index-DeF-DBd4.js → index-g9wj_kf9.js} +35213 -35090
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/Observations-B5TN5tfi-CjzjbtcS.js +0 -246
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as m, Fragment as H } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { K as z, C as se, F as oe, G as ie, I as le, M as de, N as Re, O as ce, P as Y, u as b, z as X, U as N, V as F, Y as M, Z as _e, _ as Te, a0 as pe, a1 as x, k as ue, a2 as me, a3 as Ee, a4 as q, a5 as Se, a6 as U, a7 as fe, a8 as Oe, a9 as Pe, aa as ge, ab as G, ac as Ae, ad as k, ae as he, af as De } from "./index-g9wj_kf9.js";
|
|
3
3
|
import Le, { useCallback as K, useState as A, useEffect as V, useMemo as y } from "react";
|
|
4
4
|
import { useQuery as J } from "@tanstack/react-query";
|
|
5
5
|
import { useLocation as Ce, useNavigate as be } from "react-router-dom";
|
|
@@ -39,23 +39,23 @@ const ye = "http://json-schema.org/draft-07/schema#", Ne = "Reports App Configur
|
|
|
39
39
|
return {};
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
}), xe = "http://json-schema.org/draft-07/schema#", qe = "Reports Configuration", Ue = "object",
|
|
42
|
+
}), xe = "http://json-schema.org/draft-07/schema#", qe = "Reports Configuration", Ue = "object", Ge = { type: "object", required: ["name", "type"], properties: { name: { type: "string", description: "Display name of the report" }, type: { type: "string", description: "Report generator type" }, requiredPrivilege: { type: "string", description: "Privilege required to view/run this report" }, config: { type: "object", properties: { dateRangeRequired: { type: "boolean", description: "Whether this report requires a date range (defaults to true)" }, paperSize: { type: "string", description: "Paper size for PDF generation (e.g., A4)" }, macroTemplatePath: { type: "string", description: "Path to macro template for custom Excel reports" } }, additionalProperties: !0 } } }, ke = {
|
|
43
43
|
$schema: xe,
|
|
44
44
|
title: qe,
|
|
45
45
|
type: Ue,
|
|
46
|
-
additionalProperties:
|
|
47
|
-
},
|
|
46
|
+
additionalProperties: Ge
|
|
47
|
+
}, $e = () => J({
|
|
48
48
|
queryKey: Q.reportsConfig,
|
|
49
|
-
queryFn: () => z(oe,
|
|
49
|
+
queryFn: () => z(oe, ke),
|
|
50
50
|
retry: !1
|
|
51
|
-
}),
|
|
51
|
+
}), $ = Symbol.for("constructDateFrom");
|
|
52
52
|
function Z(e, t) {
|
|
53
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
53
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && $ in e ? e[$](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
54
54
|
}
|
|
55
55
|
function ee(e, t) {
|
|
56
56
|
return Z(e, e);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function je(e, t, s) {
|
|
59
59
|
const d = ee(e);
|
|
60
60
|
return isNaN(t) ? Z(e, NaN) : (d.setDate(d.getDate() + t), d);
|
|
61
61
|
}
|
|
@@ -64,7 +64,7 @@ function We(e, t) {
|
|
|
64
64
|
return s.setDate(1), s.setHours(0, 0, 0, 0), s;
|
|
65
65
|
}
|
|
66
66
|
function ze(e, t, s) {
|
|
67
|
-
return
|
|
67
|
+
return je(e, -6);
|
|
68
68
|
}
|
|
69
69
|
const Xe = (e, t) => t ? de(e, t) : !0, Ke = (e, t) => e.filter(
|
|
70
70
|
(s) => Xe(t, s.requiredPrivilege)
|
|
@@ -445,7 +445,7 @@ const ct = "ReportList-module_reportList__tPpsJ", _t = "ReportList-module_fullWi
|
|
|
445
445
|
/* @__PURE__ */ a(x, { kind: "primary", onClick: P, children: i("REPORTS_APPLY_BUTTON") })
|
|
446
446
|
] })
|
|
447
447
|
] });
|
|
448
|
-
},
|
|
448
|
+
}, j = {
|
|
449
449
|
startDate: null,
|
|
450
450
|
endDate: null,
|
|
451
451
|
format: null,
|
|
@@ -455,7 +455,7 @@ const ct = "ReportList-module_reportList__tPpsJ", _t = "ReportList-module_fullWi
|
|
|
455
455
|
data: n,
|
|
456
456
|
isLoading: _,
|
|
457
457
|
error: R
|
|
458
|
-
} =
|
|
458
|
+
} = $e(), { data: u } = Ye();
|
|
459
459
|
V(() => {
|
|
460
460
|
R && d({
|
|
461
461
|
title: e("REPORTS_ERROR_TITLE"),
|
|
@@ -463,7 +463,7 @@ const ct = "ReportList-module_reportList__tPpsJ", _t = "ReportList-module_fullWi
|
|
|
463
463
|
type: "error"
|
|
464
464
|
});
|
|
465
465
|
}, [R, d, e]);
|
|
466
|
-
const [f, p] = A(null), [P, i] = A(null), [r, O] = A(null), [S, h] = A(null), [o, l] = A(
|
|
466
|
+
const [f, p] = A(null), [P, i] = A(null), [r, O] = A(null), [S, h] = A(null), [o, l] = A(j), c = y(() => n ? Ke(
|
|
467
467
|
et(n),
|
|
468
468
|
t
|
|
469
469
|
) : [], [n, t]), D = y(
|
|
@@ -480,7 +480,7 @@ const ct = "ReportList-module_reportList__tPpsJ", _t = "ReportList-module_fullWi
|
|
|
480
480
|
version: v.version + 1
|
|
481
481
|
}));
|
|
482
482
|
}, ne = () => {
|
|
483
|
-
p(null), i(null), O(null), h(null), l((v) => ({ ...
|
|
483
|
+
p(null), i(null), O(null), h(null), l((v) => ({ ...j, version: v.version + 1 }));
|
|
484
484
|
};
|
|
485
485
|
return _ || s ? /* @__PURE__ */ a(
|
|
486
486
|
me,
|
|
@@ -612,7 +612,7 @@ const ct = "ReportList-module_reportList__tPpsJ", _t = "ReportList-module_fullWi
|
|
|
612
612
|
"aria-label": e("REPORTS_TAB_LIST_ARIA_LABEL"),
|
|
613
613
|
children: [
|
|
614
614
|
/* @__PURE__ */ a(
|
|
615
|
-
|
|
615
|
+
G,
|
|
616
616
|
{
|
|
617
617
|
id: "reports-tab",
|
|
618
618
|
"data-testid": "reports-tab-test-id",
|
|
@@ -621,7 +621,7 @@ const ct = "ReportList-module_reportList__tPpsJ", _t = "ReportList-module_fullWi
|
|
|
621
621
|
}
|
|
622
622
|
),
|
|
623
623
|
/* @__PURE__ */ a(
|
|
624
|
-
|
|
624
|
+
G,
|
|
625
625
|
{
|
|
626
626
|
id: "my-reports-tab",
|
|
627
627
|
"data-testid": "my-reports-tab-test-id",
|
|
@@ -634,7 +634,7 @@ const ct = "ReportList-module_reportList__tPpsJ", _t = "ReportList-module_fullWi
|
|
|
634
634
|
),
|
|
635
635
|
/* @__PURE__ */ m(Ae, { children: [
|
|
636
636
|
/* @__PURE__ */ a(
|
|
637
|
-
|
|
637
|
+
k,
|
|
638
638
|
{
|
|
639
639
|
id: "reports-tab-panel",
|
|
640
640
|
"data-testid": "reports-tab-panel-test-id",
|
|
@@ -644,7 +644,7 @@ const ct = "ReportList-module_reportList__tPpsJ", _t = "ReportList-module_fullWi
|
|
|
644
644
|
}
|
|
645
645
|
),
|
|
646
646
|
/* @__PURE__ */ a(
|
|
647
|
-
|
|
647
|
+
k,
|
|
648
648
|
{
|
|
649
649
|
id: "my-reports-tab-panel",
|
|
650
650
|
"data-testid": "my-reports-tab-panel-test-id",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aj as we, ak as z, al as xt, am as B, ah as q, ai as y, an as Ro, ao as ye, ap as R, aq as _, ar as k, as as N, at as A, au as bs, av as ir, aw as $e, ax as U, ay as Hn, az as Vn, aA as dt, aB as D, aC as xs, aD as cn, aE as Be, aF as ws, aG as qt, aH as zt, aI as $s, aJ as Cs, aK as $n, aL as Ss, aM as Nr, aN as Bt, aO as zo, aP as ks, aQ as Es, aR as j, aS as Ur, aT as Ms, aU as Ds, aV as sr, aW as As, aX as Ts, aY as zn, aZ as Fs, a_ as Is, a$ as Z, b0 as Ps, b1 as Ls } from "./index-
|
|
1
|
+
import { aj as we, ak as z, al as xt, am as B, ah as q, ai as y, an as Ro, ao as ye, ap as R, aq as _, ar as k, as as N, at as A, au as bs, av as ir, aw as $e, ax as U, ay as Hn, az as Vn, aA as dt, aB as D, aC as xs, aD as cn, aE as Be, aF as ws, aG as qt, aH as zt, aI as $s, aJ as Cs, aK as $n, aL as Ss, aM as Nr, aN as Bt, aO as zo, aP as ks, aQ as Es, aR as j, aS as Ur, aT as Ms, aU as Ds, aV as sr, aW as As, aX as Ts, aY as zn, aZ as Fs, a_ as Is, a$ as Z, b0 as Ps, b1 as Ls } from "./index-g9wj_kf9.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|