@bahmni/clinical-app 0.0.1-dev.367 → 0.0.1-dev.369
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/{ConsultationPage-Crbvf2VG.js → ConsultationPage-CsvlKxDv.js} +1767 -1767
- package/dist/{DocumentsTable-7Vlcy4Vm-CybWF3rN.js → DocumentsTable-B-G7w_Ik-wcv6CsoB.js} +33 -33
- package/dist/{FormsTable-CJVrUcXB-C6R7Rku1.js → FormsTable-C8tKxM7t-1CbhozQB.js} +50 -50
- package/dist/{LNWAZHJI-BncRt-I9.js → LNWAZHJI-C15yUhzq.js} +2 -2
- package/dist/{MWZ6AO7Z-D47lwRxS.js → MWZ6AO7Z-BvWshUwD.js} +2 -2
- package/dist/{Observations-Be_tZGhM-C6wrZSOn.js → Observations-BZqdA0Xj-BRzAgAHR.js} +55 -55
- package/dist/{YPM2AS64-AgEWaI9q.js → YPM2AS64-jSyFdy12.js} +181 -181
- package/dist/{hook-CWMbSSog.js → hook-DcJywswg.js} +1 -1
- package/dist/{index-DET3dQtT.js → index-Ctx7k5_5.js} +47563 -46894
- package/dist/{index-zVFxStvV.js → index-DEgE4jS-.js} +2 -2
- package/dist/index-N1oQjWLz.js +80 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/pages/list/__tests__/__mocks__/listMocks.d.ts +1 -1
- package/dist/pages/list/__tests__/__mocks__/listMocks.d.ts.map +1 -1
- package/dist/pages/list/constants.d.ts +1 -1
- package/dist/pages/list/constants.d.ts.map +1 -1
- package/dist/pages/list/extensions/searchHandler/__tests__/__mocks__/searchHandlerMocks.d.ts +1 -1
- package/dist/pages/list/extensions/searchHandler/__tests__/__mocks__/searchHandlerMocks.d.ts.map +1 -1
- package/dist/pages/list/extensions/searchHandler/index.d.ts +1 -1
- package/dist/pages/list/extensions/searchHandler/index.d.ts.map +1 -1
- package/dist/pages/list/index.d.ts.map +1 -1
- package/dist/providers/clinicalConfig/models.d.ts +1 -2
- package/dist/providers/clinicalConfig/models.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/extensions/__tests__/__mocks__/extensionsMocks.d.ts +0 -8
- package/dist/extensions/__tests__/__mocks__/extensionsMocks.d.ts.map +0 -1
- package/dist/extensions/index.d.ts +0 -3
- package/dist/extensions/index.d.ts.map +0 -1
- package/dist/extensions/models.d.ts +0 -15
- package/dist/extensions/models.d.ts.map +0 -1
- package/dist/extensions/utils.d.ts +0 -5
- package/dist/extensions/utils.d.ts.map +0 -1
- package/dist/index-Dv_k-Ow0.js +0 -89
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { u as r,
|
|
2
|
+
import { u as r, cB as l, cC as o, cD as c, b7 as m, b8 as g, cE as p, cF as h, cG as b, aG as u } from "./index-Ctx7k5_5.js";
|
|
3
3
|
import { Suspense as _ } from "react";
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
5
|
const E = "index-module_loading__FAL7n", $ = "index-module_message__KjCnF", H = "index-module_panel__j5vTu", s = {
|
|
@@ -48,7 +48,7 @@ const E = "index-module_loading__FAL7n", $ = "index-module_message__KjCnF", H =
|
|
|
48
48
|
className: s.panel,
|
|
49
49
|
"data-testid": `${a.id}-panel-test-id`,
|
|
50
50
|
"aria-label": `Panel ${a.id}`,
|
|
51
|
-
children: t ? /* @__PURE__ */ e(
|
|
51
|
+
children: t && a.extensionParams ? /* @__PURE__ */ e(
|
|
52
52
|
_,
|
|
53
53
|
{
|
|
54
54
|
fallback: /* @__PURE__ */ e(
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { u as g, X as u, bA as b, bK as f, bL as p, bM as _, aG as x, bG as N } from "./index-Ctx7k5_5.js";
|
|
3
|
+
import { lazy as h, useMemo as n, Suspense as E } from "react";
|
|
4
|
+
import "@tanstack/react-query";
|
|
5
|
+
import { u as L } from "./hook-DcJywswg.js";
|
|
6
|
+
const C = {
|
|
7
|
+
"org.bahmni.clinical.v2.search": h(
|
|
8
|
+
() => import("./index-DEgE4jS-.js")
|
|
9
|
+
)
|
|
10
|
+
}, v = "index-module_page__16xxw", A = "index-module_loading__wNI-4", H = "index-module_message__Ib5Iw", t = {
|
|
11
|
+
page: v,
|
|
12
|
+
loading: A,
|
|
13
|
+
message: H
|
|
14
|
+
}, X = () => {
|
|
15
|
+
const { t: a } = g(), { clinicalConfig: l } = L(), { userPrivileges: o } = u(), d = n(
|
|
16
|
+
() => [
|
|
17
|
+
{ id: "home", label: a("HOME_LABEL"), href: b },
|
|
18
|
+
{ id: "clinical", label: a("CLINICAL_LABEL"), isCurrentPage: !0 }
|
|
19
|
+
],
|
|
20
|
+
[a]
|
|
21
|
+
), r = n(
|
|
22
|
+
() => f(l?.extensions ?? []),
|
|
23
|
+
[l]
|
|
24
|
+
), c = n(
|
|
25
|
+
() => Array.from(r.entries()).map(([e, i]) => ({
|
|
26
|
+
pointId: e,
|
|
27
|
+
Handler: C[e],
|
|
28
|
+
filtered: p(i, o)
|
|
29
|
+
})).filter(({ Handler: e, filtered: i }) => !!e && i.length > 0),
|
|
30
|
+
[r, o]
|
|
31
|
+
);
|
|
32
|
+
return /* @__PURE__ */ s(
|
|
33
|
+
_,
|
|
34
|
+
{
|
|
35
|
+
header: /* @__PURE__ */ s(N, { breadcrumbItems: d }),
|
|
36
|
+
main: /* @__PURE__ */ s(
|
|
37
|
+
"div",
|
|
38
|
+
{
|
|
39
|
+
id: "clinical-list-page",
|
|
40
|
+
"data-testid": "clinical-list-page-test-id",
|
|
41
|
+
"aria-label": "Clinical List Page",
|
|
42
|
+
className: t.page,
|
|
43
|
+
children: c.length > 0 ? c.map(({ pointId: e, Handler: i, filtered: m }) => /* @__PURE__ */ s(
|
|
44
|
+
"div",
|
|
45
|
+
{
|
|
46
|
+
id: e,
|
|
47
|
+
"data-testid": `${e}-test-id`,
|
|
48
|
+
children: /* @__PURE__ */ s(
|
|
49
|
+
E,
|
|
50
|
+
{
|
|
51
|
+
fallback: /* @__PURE__ */ s(
|
|
52
|
+
x,
|
|
53
|
+
{
|
|
54
|
+
type: "multi",
|
|
55
|
+
className: t.loading
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
children: /* @__PURE__ */ s(i, { extensions: m })
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
},
|
|
62
|
+
e
|
|
63
|
+
)) : /* @__PURE__ */ s(
|
|
64
|
+
"p",
|
|
65
|
+
{
|
|
66
|
+
id: "no-extensions-configured",
|
|
67
|
+
"data-testid": "no-extensions-configured-test-id",
|
|
68
|
+
"aria-label": "No extensions configured",
|
|
69
|
+
className: t.message,
|
|
70
|
+
children: a("NO_EXTENSIONS_CONFIGURED")
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
};
|
|
78
|
+
export {
|
|
79
|
+
X as default
|
|
80
|
+
};
|