@bahmni/reports-app 0.0.1-dev.437 → 0.0.1-dev.439

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 (41) hide show
  1. package/dist/{DocumentsTable-BCTxjJzA-uGwhWFWF.js → DocumentsTable-DOPEQt14-B_1iBIqr.js} +1 -1
  2. package/dist/{FormsTable-gakvtSHk--IyWWMyJ.js → FormsTable-5kbGeeFq-Can8y7Q0.js} +14 -14
  3. package/dist/{LNWAZHJI-qU8bCpUE.js → LNWAZHJI-BgP-P0te.js} +7 -7
  4. package/dist/{MWZ6AO7Z-cQgCWJAk.js → MWZ6AO7Z-ud_yxSrO.js} +7 -7
  5. package/dist/{Observations-D67fHQ1l-Zjbu0gPq.js → Observations-BUz9smcC-DSWRWQwD.js} +18 -18
  6. package/dist/ReportsPage-CV5UBybe.js +666 -0
  7. package/dist/{YPM2AS64-DLySdlxx.js → YPM2AS64-D5sJls3U.js} +138 -138
  8. package/dist/components/PrivilegeGuard/PrivilegeGuard.d.ts +0 -8
  9. package/dist/components/PrivilegeGuard/PrivilegeGuard.d.ts.map +1 -1
  10. package/dist/components/ReportList/ReportList.d.ts +4 -0
  11. package/dist/components/ReportList/ReportList.d.ts.map +1 -0
  12. package/dist/components/ReportList/ReportsTable.d.ts +13 -0
  13. package/dist/components/ReportList/ReportsTable.d.ts.map +1 -0
  14. package/dist/components/ReportList/TableFilters.d.ts +19 -0
  15. package/dist/components/ReportList/TableFilters.d.ts.map +1 -0
  16. package/dist/components/ReportList/appConfigSchema.json.d.ts +28 -0
  17. package/dist/components/ReportList/constants.d.ts +10 -0
  18. package/dist/components/ReportList/constants.d.ts.map +1 -0
  19. package/dist/components/ReportList/models.d.ts +43 -0
  20. package/dist/components/ReportList/models.d.ts.map +1 -0
  21. package/dist/components/ReportList/schema.json.d.ts +44 -0
  22. package/dist/components/ReportList/utils.d.ts +32 -0
  23. package/dist/components/ReportList/utils.d.ts.map +1 -0
  24. package/dist/constants/app.d.ts +2 -0
  25. package/dist/constants/app.d.ts.map +1 -1
  26. package/dist/hooks/useReportTableState.d.ts +19 -0
  27. package/dist/hooks/useReportTableState.d.ts.map +1 -0
  28. package/dist/hooks/useReportsAppConfig.d.ts +3 -0
  29. package/dist/hooks/useReportsAppConfig.d.ts.map +1 -0
  30. package/dist/hooks/useReportsConfig.d.ts +3 -0
  31. package/dist/hooks/useReportsConfig.d.ts.map +1 -0
  32. package/dist/hooks/useRunReport.d.ts +7 -0
  33. package/dist/hooks/useRunReport.d.ts.map +1 -0
  34. package/dist/{index-f3UkF7hN.js → index-DCGHMkwM.js} +39509 -37629
  35. package/dist/index.css +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/locales/locale_en.json +40 -1
  38. package/dist/locales/locale_es.json +40 -1
  39. package/dist/pages/ReportsPage.d.ts.map +1 -1
  40. package/package.json +1 -1
  41. package/dist/ReportsPage-dU8me_LL.js +0 -109
@@ -1,109 +0,0 @@
1
- import { jsx as a, jsxs as t } from "react/jsx-runtime";
2
- import { u as T, y as c, C as i, D as P, E as A, G as b, I as m, X as d, Q as L, K as l, N as B, Z as O } from "./index-f3UkF7hN.js";
3
- import { useMemo as h, useCallback as S } from "react";
4
- import "@tanstack/react-query";
5
- import { useLocation as g, useNavigate as u } from "react-router-dom";
6
- const y = "ReportsPage-module_page__ewRXe", M = "ReportsPage-module_panel__HFBCt", s = {
7
- page: y,
8
- panel: M
9
- }, o = 1, C = 0, x = () => {
10
- const { t: e } = T(), n = g(), r = u(), R = h(
11
- () => [
12
- { id: "home", label: e("REPORTS_HOME_LABEL"), href: c },
13
- { id: "reports", label: e("REPORTS_LABEL"), isCurrentPage: !0 }
14
- ],
15
- [e]
16
- ), _ = n.pathname === i ? o : C, p = S(
17
- ({ selectedIndex: E }) => {
18
- r(
19
- E === o ? i : P
20
- );
21
- },
22
- [r]
23
- );
24
- return /* @__PURE__ */ a(
25
- A,
26
- {
27
- header: /* @__PURE__ */ a(
28
- "div",
29
- {
30
- id: "reports-page-header",
31
- "data-testid": "reports-page-header-test-id",
32
- "aria-label": "Reports Page Header",
33
- children: /* @__PURE__ */ a(
34
- B,
35
- {
36
- breadcrumbItems: R,
37
- userMenu: /* @__PURE__ */ a(O, {})
38
- }
39
- )
40
- }
41
- ),
42
- main: /* @__PURE__ */ a(
43
- "div",
44
- {
45
- id: "reports-page",
46
- "data-testid": "reports-page-test-id",
47
- "aria-label": "Reports Page",
48
- className: s.page,
49
- children: /* @__PURE__ */ t(b, { selectedIndex: _, onChange: p, children: [
50
- /* @__PURE__ */ t(
51
- m,
52
- {
53
- id: "reports-tab-list",
54
- "data-testid": "reports-tab-list-test-id",
55
- "aria-label": e("REPORTS_TAB_LIST_ARIA_LABEL"),
56
- children: [
57
- /* @__PURE__ */ a(
58
- d,
59
- {
60
- id: "reports-tab",
61
- "data-testid": "reports-tab-test-id",
62
- "aria-label": e("REPORTS_TAB_LABEL"),
63
- children: e("REPORTS_TAB_LABEL")
64
- }
65
- ),
66
- /* @__PURE__ */ a(
67
- d,
68
- {
69
- id: "my-reports-tab",
70
- "data-testid": "my-reports-tab-test-id",
71
- "aria-label": e("REPORTS_MY_REPORTS_TAB_LABEL"),
72
- children: e("REPORTS_MY_REPORTS_TAB_LABEL")
73
- }
74
- )
75
- ]
76
- }
77
- ),
78
- /* @__PURE__ */ t(L, { children: [
79
- /* @__PURE__ */ a(
80
- l,
81
- {
82
- id: "reports-tab-panel",
83
- "data-testid": "reports-tab-panel-test-id",
84
- "aria-label": e("REPORTS_TAB_LABEL"),
85
- className: s.panel,
86
- children: /* @__PURE__ */ a("p", { children: e("REPORTS_TAB_PLACEHOLDER") })
87
- }
88
- ),
89
- /* @__PURE__ */ a(
90
- l,
91
- {
92
- id: "my-reports-tab-panel",
93
- "data-testid": "my-reports-tab-panel-test-id",
94
- "aria-label": e("REPORTS_MY_REPORTS_TAB_LABEL"),
95
- className: s.panel,
96
- children: /* @__PURE__ */ a("p", { children: e("REPORTS_MY_REPORTS_TAB_PLACEHOLDER") })
97
- }
98
- )
99
- ] })
100
- ] })
101
- }
102
- )
103
- }
104
- );
105
- };
106
- export {
107
- x as ReportsPage,
108
- x as default
109
- };