@bahmni/clinical-app 0.0.1-dev.339 → 0.0.1-dev.341
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/App.d.ts.map +1 -1
- package/dist/{ConsultationPage-CkIs95Tn.js → ConsultationPage-BAe10hfD.js} +5070 -5082
- package/dist/{DocumentsTable-Cq55el4h-BI6aCptF.js → DocumentsTable-DLUCAqub-_5zSPjzB.js} +7 -7
- package/dist/{FormsTable-DJJY3k8g-D4eZkTIH.js → FormsTable-DfcTBBcW-fb_Dj6Vy.js} +58 -58
- package/dist/{LNWAZHJI-DEcVRHsU.js → LNWAZHJI-Cg2p80j5.js} +2 -2
- package/dist/{MWZ6AO7Z-bMcj2-MT.js → MWZ6AO7Z-CtTBlEpy.js} +2 -2
- package/dist/{Observations-CHGrTi3--mevsjjwd.js → Observations-d1dtuDfC-BZryyXrA.js} +32 -32
- package/dist/{YPM2AS64-I_HerEew.js → YPM2AS64-B8DpDBBB.js} +1 -1
- package/dist/components/consultationPad/utils.d.ts.map +1 -1
- package/dist/components/forms/models.d.ts +1 -0
- package/dist/components/forms/models.d.ts.map +1 -1
- package/dist/{hook-DEiGaCdw.js → hook-CEX1xw06.js} +1 -1
- package/dist/{index-CY5LDnxk.js → index-BlRHR230.js} +33444 -33310
- package/dist/{index-CB8k8eHO.js → index-CAbD6V_D.js} +8 -8
- package/dist/{index-DisMlvZ8.js → index-CGe6v1xL.js} +19 -19
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +3 -0
- package/dist/locales/locale_es.json +3 -0
- package/dist/pages/ConsultationPage.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { u as r,
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { u as r, cu as o, cv as l, cw as c, b4 as m, b5 as g, cx as h, cy as b, cz as u, aF as p } from "./index-BlRHR230.js";
|
|
3
3
|
import { Suspense as $ } from "react";
|
|
4
|
-
const _ = "index-module_loading__FAL7n", E = "index-module_message__KjCnF",
|
|
4
|
+
const _ = "index-module_loading__FAL7n", E = "index-module_message__KjCnF", d = {
|
|
5
5
|
loading: _,
|
|
6
6
|
message: E
|
|
7
|
-
},
|
|
7
|
+
}, f = ({ extensions: i }) => {
|
|
8
8
|
const { t: s } = r();
|
|
9
|
-
return i.length === 0 ? null : /* @__PURE__ */
|
|
9
|
+
return i.length === 0 ? null : /* @__PURE__ */ t(o, { children: [
|
|
10
10
|
/* @__PURE__ */ e(
|
|
11
11
|
l,
|
|
12
12
|
{
|
|
@@ -52,7 +52,7 @@ const _ = "index-module_loading__FAL7n", E = "index-module_message__KjCnF", t =
|
|
|
52
52
|
p,
|
|
53
53
|
{
|
|
54
54
|
type: "multi",
|
|
55
|
-
className:
|
|
55
|
+
className: d.loading
|
|
56
56
|
}
|
|
57
57
|
),
|
|
58
58
|
children: /* @__PURE__ */ e(n, { extensionParams: a.extensionParams })
|
|
@@ -63,7 +63,7 @@ const _ = "index-module_loading__FAL7n", E = "index-module_message__KjCnF", t =
|
|
|
63
63
|
id: "extension-widget-not-registered",
|
|
64
64
|
"data-testid": "extension-widget-not-registered-test-id",
|
|
65
65
|
"aria-label": "Extension widget not registered",
|
|
66
|
-
className:
|
|
66
|
+
className: d.message,
|
|
67
67
|
children: s("EXTENSION_WIDGET_NOT_REGISTERED")
|
|
68
68
|
}
|
|
69
69
|
)
|
|
@@ -74,5 +74,5 @@ const _ = "index-module_loading__FAL7n", E = "index-module_message__KjCnF", t =
|
|
|
74
74
|
] });
|
|
75
75
|
};
|
|
76
76
|
export {
|
|
77
|
-
|
|
77
|
+
f as default
|
|
78
78
|
};
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { by as m, u, aM as
|
|
2
|
+
import { by as m, u, aM as f, bv as p, bF as b, aF as _, bB as x } from "./index-BlRHR230.js";
|
|
3
3
|
import { lazy as N, useMemo as r, Suspense as h } from "react";
|
|
4
|
-
import { u as E } from "./hook-
|
|
5
|
-
const
|
|
4
|
+
import { u as E } from "./hook-CEX1xw06.js";
|
|
5
|
+
const P = (s) => {
|
|
6
6
|
const i = /* @__PURE__ */ new Map();
|
|
7
7
|
for (const e of s) {
|
|
8
|
-
const
|
|
9
|
-
|
|
8
|
+
const o = i.get(e.extensionPointId) ?? [];
|
|
9
|
+
o.push(e), i.set(e.extensionPointId, o);
|
|
10
10
|
}
|
|
11
11
|
return i;
|
|
12
|
-
},
|
|
12
|
+
}, v = (s, i) => s.filter(
|
|
13
13
|
(e) => !e.requiredPrivileges || e.requiredPrivileges.length === 0 || m(i, e.requiredPrivileges)
|
|
14
14
|
), C = {
|
|
15
15
|
"org.bahmni.clinical.v2.search": N(
|
|
16
|
-
() => import("./index-
|
|
16
|
+
() => import("./index-CAbD6V_D.js")
|
|
17
17
|
)
|
|
18
|
-
}, L = "index-module_page__16xxw", y = "index-module_loading__wNI-4", I = "index-module_tabs__ZZv8Y",
|
|
18
|
+
}, L = "index-module_page__16xxw", y = "index-module_loading__wNI-4", I = "index-module_tabs__ZZv8Y", w = "index-module_message__Ib5Iw", l = {
|
|
19
19
|
page: L,
|
|
20
20
|
loading: y,
|
|
21
21
|
tabs: I,
|
|
22
|
-
message:
|
|
22
|
+
message: w
|
|
23
23
|
}, S = () => {
|
|
24
|
-
const { t: s } = u(), { clinicalConfig: i } = E(), { userPrivileges: e } =
|
|
24
|
+
const { t: s } = u(), { clinicalConfig: i } = E(), { userPrivileges: e } = f(), o = r(
|
|
25
25
|
() => [
|
|
26
|
-
{ id: "home", label: s("HOME_LABEL"), href:
|
|
26
|
+
{ id: "home", label: s("HOME_LABEL"), href: p },
|
|
27
27
|
{ id: "clinical", label: s("CLINICAL_LABEL"), isCurrentPage: !0 }
|
|
28
28
|
],
|
|
29
29
|
[s]
|
|
30
30
|
), c = r(
|
|
31
|
-
() =>
|
|
31
|
+
() => P(i?.extensions ?? []),
|
|
32
32
|
[i]
|
|
33
33
|
), d = r(
|
|
34
34
|
() => Array.from(c.entries()).map(([n, t]) => ({
|
|
35
35
|
pointId: n,
|
|
36
36
|
Handler: C[n],
|
|
37
|
-
filtered:
|
|
37
|
+
filtered: v(t, e)
|
|
38
38
|
})).filter(({ Handler: n, filtered: t }) => !!n && t.length > 0),
|
|
39
39
|
[c, e]
|
|
40
40
|
);
|
|
41
41
|
return /* @__PURE__ */ a(
|
|
42
|
-
|
|
42
|
+
b,
|
|
43
43
|
{
|
|
44
|
-
header: /* @__PURE__ */ a(x, { breadcrumbItems:
|
|
44
|
+
header: /* @__PURE__ */ a(x, { breadcrumbItems: o }),
|
|
45
45
|
main: /* @__PURE__ */ a(
|
|
46
46
|
"div",
|
|
47
47
|
{
|
|
48
48
|
id: "clinical-list-page",
|
|
49
49
|
"data-testid": "clinical-list-page-test-id",
|
|
50
50
|
"aria-label": "Clinical List Page",
|
|
51
|
-
className:
|
|
51
|
+
className: l.page,
|
|
52
52
|
children: d.length > 0 ? d.map(({ pointId: n, Handler: t, filtered: g }) => /* @__PURE__ */ a(
|
|
53
53
|
"div",
|
|
54
54
|
{
|
|
55
55
|
id: n,
|
|
56
56
|
"data-testid": `${n}-test-id`,
|
|
57
|
-
className:
|
|
57
|
+
className: l.tabs,
|
|
58
58
|
children: /* @__PURE__ */ a(
|
|
59
59
|
h,
|
|
60
60
|
{
|
|
@@ -62,7 +62,7 @@ const v = (s) => {
|
|
|
62
62
|
_,
|
|
63
63
|
{
|
|
64
64
|
type: "multi",
|
|
65
|
-
className:
|
|
65
|
+
className: l.loading
|
|
66
66
|
}
|
|
67
67
|
),
|
|
68
68
|
children: /* @__PURE__ */ a(t, { extensions: g })
|
|
@@ -76,7 +76,7 @@ const v = (s) => {
|
|
|
76
76
|
id: "no-extensions-configured",
|
|
77
77
|
"data-testid": "no-extensions-configured-test-id",
|
|
78
78
|
"aria-label": "No extensions configured",
|
|
79
|
-
className:
|
|
79
|
+
className: l.message,
|
|
80
80
|
children: s("NO_EXTENSIONS_CONFIGURED")
|
|
81
81
|
}
|
|
82
82
|
)
|