@bahmni/clinical-app 0.0.1-dev.393 → 0.0.1-dev.395
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-C-_ZfjpU.js → ConsultationPage-COghgi2o.js} +3255 -3224
- package/dist/{DocumentsTable-ULtsCmIW-CZMWHk-T.js → DocumentsTable-C1A0EhCk-Dcg_k1NV.js} +19 -19
- package/dist/{FormsTable-DAFDPXnd-CLk-i2f_.js → FormsTable-C2Gb9B6j-D75NB2JN.js} +76 -76
- package/dist/{LNWAZHJI-Du5pLAOf.js → LNWAZHJI-DgoaSbxQ.js} +2 -2
- package/dist/{MWZ6AO7Z-1Thy25SD.js → MWZ6AO7Z-nfqenvHr.js} +2 -2
- package/dist/{Observations-DOZ-UiSs-DUk-XWd0.js → Observations-Clr4S77q-Cf6fX8wH.js} +40 -40
- package/dist/{YPM2AS64-Br1DwSze.js → YPM2AS64-B68tFm35.js} +1 -1
- package/dist/{hook-Bq8pNgjT.js → hook-DZc1STZs.js} +1 -1
- package/dist/{index-Ci4kz6CI.js → index-BstPgq-n.js} +20735 -20732
- package/dist/{index-CAfJdVBo.js → index-CMCgtwD7.js} +30 -25
- package/dist/{index-Cn1-Xb0Z.js → index-DHqBRCLG.js} +9 -9
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +2 -0
- package/dist/locales/locale_es.json +2 -0
- package/dist/pages/ConsultationPage.d.ts.map +1 -1
- package/dist/pages/list/__tests__/__mocks__/listMocks.d.ts.map +1 -1
- package/dist/pages/list/constants.d.ts +4 -2
- package/dist/pages/list/constants.d.ts.map +1 -1
- package/dist/pages/list/extensions/{searchHandler/__tests__/__mocks__/searchHandlerMocks.d.ts → searchView/__tests__/__mocks__/searchViewMocks.d.ts} +1 -1
- package/dist/pages/list/extensions/searchView/__tests__/__mocks__/searchViewMocks.d.ts.map +1 -0
- package/dist/pages/list/extensions/searchView/index.d.ts +6 -0
- package/dist/pages/list/extensions/searchView/index.d.ts.map +1 -0
- package/dist/pages/list/index.d.ts.map +1 -1
- package/dist/pages/util.d.ts +1 -0
- package/dist/pages/util.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/pages/list/extensions/searchHandler/__tests__/__mocks__/searchHandlerMocks.d.ts.map +0 -1
- package/dist/pages/list/extensions/searchHandler/index.d.ts +0 -4
- package/dist/pages/list/extensions/searchHandler/index.d.ts.map +0 -1
|
@@ -1,46 +1,51 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { u as g, e as u,
|
|
3
|
-
import { lazy as h, useMemo as
|
|
2
|
+
import { u as g, e as u, bH as b, bR as f, bS as p, bT as x, aG as N, bN as _ } from "./index-BstPgq-n.js";
|
|
3
|
+
import { lazy as h, useMemo as t, Suspense as C } from "react";
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
|
-
import { u as E } from "./hook-
|
|
5
|
+
import { u as E } from "./hook-DZc1STZs.js";
|
|
6
6
|
const L = {
|
|
7
7
|
"org.bahmni.clinical.v2.search": h(
|
|
8
|
-
() => import("./index-
|
|
8
|
+
() => import("./index-DHqBRCLG.js")
|
|
9
9
|
)
|
|
10
|
-
}, v = "index-module_page__16xxw",
|
|
10
|
+
}, v = "index-module_page__16xxw", H = "index-module_loading__wNI-4", I = "index-module_message__Ib5Iw", l = {
|
|
11
11
|
page: v,
|
|
12
|
-
loading:
|
|
13
|
-
message:
|
|
14
|
-
},
|
|
15
|
-
const { t: a } = g(), { clinicalConfig:
|
|
12
|
+
loading: H,
|
|
13
|
+
message: I
|
|
14
|
+
}, T = () => {
|
|
15
|
+
const { t: a } = g(), { clinicalConfig: o } = E(), { userPrivileges: r } = u(), m = t(
|
|
16
16
|
() => [
|
|
17
17
|
{ id: "home", label: a("HOME_LABEL"), href: b },
|
|
18
18
|
{ id: "clinical", label: a("CLINICAL_LABEL"), isCurrentPage: !0 }
|
|
19
19
|
],
|
|
20
20
|
[a]
|
|
21
|
-
),
|
|
22
|
-
() => f(
|
|
23
|
-
[
|
|
24
|
-
),
|
|
25
|
-
() => Array.from(
|
|
21
|
+
), c = t(
|
|
22
|
+
() => f(o?.extensions ?? []),
|
|
23
|
+
[o]
|
|
24
|
+
), d = t(
|
|
25
|
+
() => Array.from(c.entries()).map(([e, i]) => ({
|
|
26
26
|
pointId: e,
|
|
27
27
|
Handler: L[e],
|
|
28
|
-
filtered: p(
|
|
28
|
+
filtered: p(
|
|
29
|
+
i,
|
|
30
|
+
r
|
|
31
|
+
).filter(
|
|
32
|
+
(n) => !!n.extensionParams && "searchHandler" in n.extensionParams
|
|
33
|
+
)
|
|
29
34
|
})).filter(({ Handler: e, filtered: i }) => !!e && i.length > 0),
|
|
30
|
-
[
|
|
35
|
+
[c, r]
|
|
31
36
|
);
|
|
32
37
|
return /* @__PURE__ */ s(
|
|
33
|
-
|
|
38
|
+
x,
|
|
34
39
|
{
|
|
35
|
-
header: /* @__PURE__ */ s(
|
|
40
|
+
header: /* @__PURE__ */ s(_, { breadcrumbItems: m }),
|
|
36
41
|
main: /* @__PURE__ */ s(
|
|
37
42
|
"div",
|
|
38
43
|
{
|
|
39
44
|
id: "clinical-list-page",
|
|
40
45
|
"data-testid": "clinical-list-page-test-id",
|
|
41
46
|
"aria-label": "Clinical List Page",
|
|
42
|
-
className:
|
|
43
|
-
children:
|
|
47
|
+
className: l.page,
|
|
48
|
+
children: d.length > 0 ? d.map(({ pointId: e, Handler: i, filtered: n }) => /* @__PURE__ */ s(
|
|
44
49
|
"div",
|
|
45
50
|
{
|
|
46
51
|
id: e,
|
|
@@ -49,13 +54,13 @@ const L = {
|
|
|
49
54
|
C,
|
|
50
55
|
{
|
|
51
56
|
fallback: /* @__PURE__ */ s(
|
|
52
|
-
|
|
57
|
+
N,
|
|
53
58
|
{
|
|
54
59
|
type: "multi",
|
|
55
|
-
className:
|
|
60
|
+
className: l.loading
|
|
56
61
|
}
|
|
57
62
|
),
|
|
58
|
-
children: /* @__PURE__ */ s(i, { extensions:
|
|
63
|
+
children: /* @__PURE__ */ s(i, { extensions: n })
|
|
59
64
|
}
|
|
60
65
|
)
|
|
61
66
|
},
|
|
@@ -66,7 +71,7 @@ const L = {
|
|
|
66
71
|
id: "no-extensions-configured",
|
|
67
72
|
"data-testid": "no-extensions-configured-test-id",
|
|
68
73
|
"aria-label": "No extensions configured",
|
|
69
|
-
className:
|
|
74
|
+
className: l.message,
|
|
70
75
|
children: a("NO_EXTENSIONS_CONFIGURED")
|
|
71
76
|
}
|
|
72
77
|
)
|
|
@@ -76,5 +81,5 @@ const L = {
|
|
|
76
81
|
);
|
|
77
82
|
};
|
|
78
83
|
export {
|
|
79
|
-
|
|
84
|
+
T as default
|
|
80
85
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { u as r,
|
|
2
|
+
import { u as r, cI as l, cJ as o, cK as c, b7 as m, b8 as g, cL as h, cM as p, cN as b, aG as u } from "./index-BstPgq-n.js";
|
|
3
3
|
import { Suspense as _ } from "react";
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
|
-
const
|
|
6
|
-
loading:
|
|
7
|
-
message:
|
|
8
|
-
panel:
|
|
9
|
-
},
|
|
5
|
+
const y = "index-module_loading__eyE2k", E = "index-module_message__95HmH", $ = "index-module_panel__8VJh2", s = {
|
|
6
|
+
loading: y,
|
|
7
|
+
message: E,
|
|
8
|
+
panel: $
|
|
9
|
+
}, w = ({ extensions: i }) => {
|
|
10
10
|
const { t: n } = r();
|
|
11
11
|
return i.length === 0 ? null : /* @__PURE__ */ d(l, { children: [
|
|
12
12
|
/* @__PURE__ */ e(
|
|
@@ -37,8 +37,8 @@ const $ = "index-module_loading__FAL7n", y = "index-module_message__KjCnF", E =
|
|
|
37
37
|
))
|
|
38
38
|
}
|
|
39
39
|
),
|
|
40
|
-
/* @__PURE__ */ e(
|
|
41
|
-
const t =
|
|
40
|
+
/* @__PURE__ */ e(h, { children: i.map((a) => {
|
|
41
|
+
const t = p(
|
|
42
42
|
a.extensionParams?.searchHandler ?? ""
|
|
43
43
|
)?.component;
|
|
44
44
|
return /* @__PURE__ */ e(
|
|
@@ -77,5 +77,5 @@ const $ = "index-module_loading__FAL7n", y = "index-module_message__KjCnF", E =
|
|
|
77
77
|
] });
|
|
78
78
|
};
|
|
79
79
|
export {
|
|
80
|
-
|
|
80
|
+
w as default
|
|
81
81
|
};
|