@bahmni/clinical-app 0.0.1-dev.375 → 0.0.1-dev.377
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-BJdDuabm.js → ConsultationPage-DaaiNq88.js} +12835 -12804
- package/dist/{DocumentsTable-Dcy-W7Gb-BBod44B9.js → DocumentsTable-DltqOolY-Cg0hJlze.js} +17 -17
- package/dist/{FormsTable-BncKn8RO-D-CNrY1B.js → FormsTable-0kw7u2Y0-CaFzDQIj.js} +85 -85
- package/dist/{LNWAZHJI-z7bxb-kD.js → LNWAZHJI-BlsPx2aD.js} +2 -2
- package/dist/{MWZ6AO7Z-XbsAnhjO.js → MWZ6AO7Z-BaozJAm1.js} +2 -2
- package/dist/{Observations-BNztTkr8-B0J8o4w5.js → Observations-BoGO_vsc-IB0ZkwK1.js} +42 -42
- package/dist/{YPM2AS64-BKGejflS.js → YPM2AS64-DXWOApbN.js} +1 -1
- package/dist/components/consultationPad/index.d.ts +2 -0
- package/dist/components/consultationPad/index.d.ts.map +1 -1
- package/dist/components/consultationPadContainer/index.d.ts +2 -0
- package/dist/components/consultationPadContainer/index.d.ts.map +1 -1
- package/dist/components/forms/observations/ObservationFormsContainer.d.ts +2 -0
- package/dist/components/forms/observations/ObservationFormsContainer.d.ts.map +1 -1
- package/dist/{hook-BmX5jWNq.js → hook-CRPbW1mC.js} +3 -3
- package/dist/hooks/useActionAreaExpandProps.d.ts +29 -0
- package/dist/hooks/useActionAreaExpandProps.d.ts.map +1 -0
- package/dist/{index-husEFyYF.js → index--hVFZ79B.js} +13 -13
- package/dist/{index-CZlG_e17.js → index-DA1cCe4p.js} +7 -7
- package/dist/{index-CFQLhNb5.js → index-HM7tCsX0.js} +88464 -83180
- 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/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { g as q,
|
|
1
|
+
import { jsxs as S, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { g as q, K as w, u as N, j as k, Y as x, c as z, l as Q, m as j, o as G, q as H, W as M, r as Y, z as A, t as P, V as W, v as J, x as X, y as Z, A as ee } from "./index-HM7tCsX0.js";
|
|
3
3
|
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
|
-
import { useRef as se, useEffect as
|
|
5
|
-
const
|
|
6
|
-
const t =
|
|
4
|
+
import { useRef as se, useEffect as _, useMemo as g } from "react";
|
|
5
|
+
const D = (a, n, d, l, b, r) => {
|
|
6
|
+
const t = P(a, n, b), s = t.value, i = W(s);
|
|
7
7
|
let o = s;
|
|
8
8
|
i === "Image" && (o = /* @__PURE__ */ u(
|
|
9
|
-
|
|
9
|
+
X,
|
|
10
10
|
{
|
|
11
11
|
imageSrc: s,
|
|
12
12
|
alt: s,
|
|
@@ -14,7 +14,7 @@ const F = (a, n, d, l, b, r) => {
|
|
|
14
14
|
hideThumbnail: r
|
|
15
15
|
}
|
|
16
16
|
)), i === "Video" && (o = /* @__PURE__ */ u(
|
|
17
|
-
|
|
17
|
+
Z,
|
|
18
18
|
{
|
|
19
19
|
id: `${s}-video`,
|
|
20
20
|
videoSrc: s,
|
|
@@ -25,7 +25,7 @@ const F = (a, n, d, l, b, r) => {
|
|
|
25
25
|
provider: t.provider
|
|
26
26
|
}), p = a.display, y = a.observationValue?.isAbnormal ? "abnormal-obs" : "obs", c = l ? `${l}-${y}-${p}-${d}-${n}` : `${y}-${p}-${d}-${n}`;
|
|
27
27
|
return /* @__PURE__ */ u(
|
|
28
|
-
|
|
28
|
+
J,
|
|
29
29
|
{
|
|
30
30
|
header: t.header,
|
|
31
31
|
value: o,
|
|
@@ -37,13 +37,13 @@ const F = (a, n, d, l, b, r) => {
|
|
|
37
37
|
`obs-${a.id}`
|
|
38
38
|
);
|
|
39
39
|
}, re = (a, n, d, l, b, r, t) => /* @__PURE__ */ u(
|
|
40
|
-
|
|
40
|
+
A,
|
|
41
41
|
{
|
|
42
42
|
title: a.display,
|
|
43
43
|
id: `grouped-obs-${a.display}-${l}`,
|
|
44
44
|
open: d,
|
|
45
45
|
children: a.members?.map(
|
|
46
|
-
(s, i) =>
|
|
46
|
+
(s, i) => D(
|
|
47
47
|
s,
|
|
48
48
|
i,
|
|
49
49
|
b,
|
|
@@ -59,17 +59,17 @@ const F = (a, n, d, l, b, r) => {
|
|
|
59
59
|
title: n = "",
|
|
60
60
|
hideThumbnail: d
|
|
61
61
|
}) => {
|
|
62
|
-
const { t: l } =
|
|
63
|
-
const i =
|
|
64
|
-
return /* @__PURE__ */
|
|
65
|
-
|
|
62
|
+
const { t: l } = N(), b = (r, t, s) => {
|
|
63
|
+
const i = Y(r.encounterDetails, l);
|
|
64
|
+
return /* @__PURE__ */ S(
|
|
65
|
+
A,
|
|
66
66
|
{
|
|
67
67
|
title: i,
|
|
68
68
|
id: `encounter-${r.encounterId}`,
|
|
69
69
|
open: t,
|
|
70
70
|
children: [
|
|
71
71
|
r.observations.map(
|
|
72
|
-
(o, m) =>
|
|
72
|
+
(o, m) => D(
|
|
73
73
|
o,
|
|
74
74
|
m,
|
|
75
75
|
s,
|
|
@@ -105,7 +105,7 @@ const F = (a, n, d, l, b, r) => {
|
|
|
105
105
|
)
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
|
-
}, oe = "Observations-module_observations__RKSyo", ne = "Observations-module_title__TJL3z",
|
|
108
|
+
}, oe = "Observations-module_observations__RKSyo", ne = "Observations-module_title__TJL3z", $ = {
|
|
109
109
|
observations: oe,
|
|
110
110
|
title: ne
|
|
111
111
|
}, de = (a) => ["conceptUuid", a], le = (a, n) => ["observations", a, ...n], pe = ({ config: a }) => {
|
|
@@ -113,91 +113,91 @@ const F = (a, n, d, l, b, r) => {
|
|
|
113
113
|
conceptNames: d = [],
|
|
114
114
|
conceptUuid: l = [],
|
|
115
115
|
hideThumbnail: b = !1
|
|
116
|
-
} = n, r = se(/* @__PURE__ */ new Set()), t = q(), { addNotification: s } =
|
|
116
|
+
} = n, r = se(/* @__PURE__ */ new Set()), t = q(), { addNotification: s } = w(), { t: i } = N(), o = ae({
|
|
117
117
|
queries: d.map((e) => ({
|
|
118
118
|
queryKey: de(e),
|
|
119
119
|
queryFn: () => k(e),
|
|
120
120
|
enabled: !!e
|
|
121
121
|
}))
|
|
122
122
|
});
|
|
123
|
-
|
|
123
|
+
_(() => {
|
|
124
124
|
o.forEach((e, h) => {
|
|
125
125
|
if (e.isError && !r.current.has(h)) {
|
|
126
|
-
const
|
|
126
|
+
const B = d[h];
|
|
127
127
|
s({
|
|
128
128
|
title: i("ERROR_DEFAULT_TITLE"),
|
|
129
|
-
message: i("ERROR_FETCHING_CONCEPT", { conceptName:
|
|
129
|
+
message: i("ERROR_FETCHING_CONCEPT", { conceptName: B }),
|
|
130
130
|
type: "error"
|
|
131
131
|
}), r.current.add(h);
|
|
132
132
|
} else e.isError || r.current.delete(h);
|
|
133
133
|
});
|
|
134
134
|
}, [o, d]);
|
|
135
|
-
const m =
|
|
135
|
+
const m = g(() => o.map((e) => e.data?.uuid).filter((e) => !!e), [o]), p = g(() => [.../* @__PURE__ */ new Set([...m, ...l])], [m, l]), y = g(() => d.length === 0 ? !0 : o.every((e) => !e.isLoading), [o, d.length]), {
|
|
136
136
|
data: c,
|
|
137
|
-
isLoading:
|
|
137
|
+
isLoading: F,
|
|
138
138
|
isError: T,
|
|
139
|
-
refetch:
|
|
139
|
+
refetch: f
|
|
140
140
|
} = te({
|
|
141
141
|
queryKey: le(t, p),
|
|
142
|
-
queryFn: () =>
|
|
142
|
+
queryFn: () => x(t, p),
|
|
143
143
|
enabled: !!t && p.length > 0 && y
|
|
144
144
|
});
|
|
145
|
-
|
|
145
|
+
z(
|
|
146
146
|
(e) => {
|
|
147
147
|
e.patientUUID === t && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
148
148
|
(h) => p.includes(h)
|
|
149
|
-
) &&
|
|
149
|
+
) && f();
|
|
150
150
|
},
|
|
151
|
-
[t,
|
|
152
|
-
),
|
|
151
|
+
[t, f]
|
|
152
|
+
), _(() => {
|
|
153
153
|
T && s({
|
|
154
154
|
title: i("ERROR_DEFAULT_TITLE"),
|
|
155
155
|
message: i("ERROR_FETCHING_OBSERVATIONS"),
|
|
156
156
|
type: "error"
|
|
157
157
|
});
|
|
158
158
|
}, [T]);
|
|
159
|
-
const
|
|
159
|
+
const R = g(() => {
|
|
160
160
|
if (!c) return [];
|
|
161
|
-
const e =
|
|
162
|
-
return
|
|
163
|
-
}, [c]),
|
|
161
|
+
const e = Q(c), h = j(e);
|
|
162
|
+
return G(h);
|
|
163
|
+
}, [c]), K = [
|
|
164
164
|
{ key: "name", header: "name" },
|
|
165
165
|
{ key: "value", header: "value" },
|
|
166
166
|
{ key: "form", header: "form" }
|
|
167
|
-
],
|
|
168
|
-
return /* @__PURE__ */
|
|
167
|
+
], O = F || !y, I = T && y, L = (!c || c.entry?.length === 0 || p.length === 0) && y, V = I ? i("ERROR_FETCHING_OBSERVATIONS") : null, C = L ? i("NO_OBSERVATIONS_FOUND") : void 0, U = R.length > 0 && !O && !I, E = n.titleTranslationKey, v = E ? i(E) : "";
|
|
168
|
+
return /* @__PURE__ */ S(
|
|
169
169
|
"div",
|
|
170
170
|
{
|
|
171
171
|
id: "observations",
|
|
172
172
|
"data-testid": E ? `observations-${v}` : "observations",
|
|
173
173
|
"aria-label": "observations-aria-label",
|
|
174
|
-
className:
|
|
174
|
+
className: $.observations,
|
|
175
175
|
children: [
|
|
176
176
|
/* @__PURE__ */ u(
|
|
177
|
-
|
|
177
|
+
H,
|
|
178
178
|
{
|
|
179
179
|
id: "observations-title",
|
|
180
180
|
testId: E ? `observations-title-${v}` : "observations-title",
|
|
181
181
|
title: v,
|
|
182
|
-
className:
|
|
182
|
+
className: $.title,
|
|
183
183
|
children: /* @__PURE__ */ u("p", { children: v })
|
|
184
184
|
}
|
|
185
185
|
),
|
|
186
186
|
U ? /* @__PURE__ */ u(
|
|
187
187
|
ie,
|
|
188
188
|
{
|
|
189
|
-
groupedData:
|
|
189
|
+
groupedData: R,
|
|
190
190
|
title: v,
|
|
191
191
|
hideThumbnail: b
|
|
192
192
|
}
|
|
193
193
|
) : /* @__PURE__ */ u(
|
|
194
|
-
|
|
194
|
+
M,
|
|
195
195
|
{
|
|
196
|
-
headers:
|
|
196
|
+
headers: K,
|
|
197
197
|
rows: [],
|
|
198
198
|
ariaLabel: i("OBSERVATIONS"),
|
|
199
|
-
loading:
|
|
200
|
-
errorStateMessage:
|
|
199
|
+
loading: O,
|
|
200
|
+
errorStateMessage: V,
|
|
201
201
|
emptyStateMessage: C,
|
|
202
202
|
dataTestId: "observations-table"
|
|
203
203
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bY as we, bZ as z, b_ as xt, b$ as B, bW as q, bX as y, c0 as Ro, c1 as ye, c2 as R, c3 as _, c4 as k, c5 as N, c6 as A, c7 as bs, c8 as ir, c9 as $e, ca as G, cb as Hn, cc as Vn, cd as dt, ce as D, cf as xs, cg as cn, ch as Be, ci as ws, cj as qt, ck as zt, cl as $s, cm as Cs, cn as $n, co as Ss, cp as Nr, cq as Bt, cr as zo, cs as ks, ct as Es, cu as j, cv as Gr, cw as Ms, cx as Ds, cy as sr, cz as As, cA as Ts, cB as zn, cC as Fs, cD as Is, cE as Z, cF as Ps, cG as Ls } from "./index-
|
|
1
|
+
import { bY as we, bZ as z, b_ as xt, b$ as B, bW as q, bX as y, c0 as Ro, c1 as ye, c2 as R, c3 as _, c4 as k, c5 as N, c6 as A, c7 as bs, c8 as ir, c9 as $e, ca as G, cb as Hn, cc as Vn, cd as dt, ce as D, cf as xs, cg as cn, ch as Be, ci as ws, cj as qt, ck as zt, cl as $s, cm as Cs, cn as $n, co as Ss, cp as Nr, cq as Bt, cr as zo, cs as ks, ct as Es, cu as j, cv as Gr, cw as Ms, cx as Ds, cy as sr, cz as As, cA as Ts, cB as zn, cC as Fs, cD as Is, cE as Z, cF as Ps, cG as Ls } from "./index-HM7tCsX0.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -3,6 +3,8 @@ import { EncounterSessionStartContext } from '../../events/startConsultation';
|
|
|
3
3
|
interface ConsultationPadProps {
|
|
4
4
|
encounterSessionStartContext: EncounterSessionStartContext;
|
|
5
5
|
onClose: () => void;
|
|
6
|
+
isActionAreaExpanded?: boolean;
|
|
7
|
+
onToggleActionAreaExpand?: () => void;
|
|
6
8
|
}
|
|
7
9
|
declare const ConsultationPad: React.FC<ConsultationPadProps>;
|
|
8
10
|
export default ConsultationPad;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAON,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAON,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAsBnF,UAAU,oBAAoB;IAC5B,4BAA4B,EAAE,4BAA4B,CAAC;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA+hBnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { EncounterSessionStartContext } from '../../events/startConsultation';
|
|
|
3
3
|
interface ConsultationPadContainerProps {
|
|
4
4
|
encounterSessionStartContext: EncounterSessionStartContext;
|
|
5
5
|
onClose: () => void;
|
|
6
|
+
isActionAreaExpanded?: boolean;
|
|
7
|
+
onToggleActionAreaExpand?: () => void;
|
|
6
8
|
}
|
|
7
9
|
declare const ConsultationPadContainer: React.FC<ConsultationPadContainerProps>;
|
|
8
10
|
export default ConsultationPadContainer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPadContainer/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAoD,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPadContainer/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAoD,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAYnF,UAAU,6BAA6B;IACrC,4BAA4B,EAAE,4BAA4B,CAAC;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAgPrE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -14,6 +14,8 @@ interface ObservationFormsContainerProps {
|
|
|
14
14
|
onDirectModeSubmit?: () => void | Promise<void>;
|
|
15
15
|
onDirectModeCancel?: () => void;
|
|
16
16
|
encounterSessionStartContext?: EncounterSessionStartContext;
|
|
17
|
+
isActionAreaExpanded?: boolean;
|
|
18
|
+
onToggleActionAreaExpand?: () => void;
|
|
17
19
|
}
|
|
18
20
|
declare const ObservationFormsContainer: React.FC<ObservationFormsContainerProps>;
|
|
19
21
|
export default ObservationFormsContainer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservationFormsContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsContainer.tsx"],"names":[],"mappings":"AAYA,OAAO,wCAAwC,CAAC;AAChD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,gBAAgB,EAajB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,SAAS,EAAQ,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,OAAO,EAEL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"ObservationFormsContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsContainer.tsx"],"names":[],"mappings":"AAYA,OAAO,wCAAwC,CAAC;AAChD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,gBAAgB,EAajB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,SAAS,EAAQ,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,OAAO,EAEL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAyBtF,UAAU,8BAA8B;IACtC,mBAAmB,EAAE,CAAC,WAAW,EAAE,eAAe,GAAG,IAAI,KAAK,IAAI,CAAC;IACnE,WAAW,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,wBAAwB,CAAC,EAAE,CACzB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,gBAAgB,EAAE,EAChC,mBAAmB,CAAC,EAChB,IAAI,GACJ,OAAO,sBAAsB,GAC7B,OAAO,0BAA0B,GACjC,OAAO,wBAAwB,GAC/B,OAAO,6BAA6B,EACxC,OAAO,CAAC,EAAE,SAAS,KAChB,IAAI,CAAC;IACV,oBAAoB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;IAC5D,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAimBvE,CAAC;AAuBF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { bT as i, bU as o } from "./index-
|
|
1
|
+
import { bT as i, bU as o } from "./index-HM7tCsX0.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
|
-
const
|
|
5
|
+
const t = i(
|
|
6
6
|
o,
|
|
7
7
|
"useClinicalConfig",
|
|
8
8
|
"ClinicalConfigProvider"
|
|
9
9
|
);
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
t as u
|
|
12
12
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
interface UseActionAreaExpandPropsOptions {
|
|
2
|
+
/** Whether the consultation pad's ActionArea is currently expanded. */
|
|
3
|
+
isExpanded?: boolean;
|
|
4
|
+
/** Callback to toggle the expanded state. */
|
|
5
|
+
onToggleExpand?: () => void;
|
|
6
|
+
/**
|
|
7
|
+
* Set when this `ActionArea` instance is hidden/inactive (e.g. the pad-level
|
|
8
|
+
* ActionArea while a form is open). Returns an empty object so the instance
|
|
9
|
+
* renders no expand/collapse toggle, avoiding duplicate
|
|
10
|
+
* `data-testid="action-area-expand-toggle"` elements in the DOM.
|
|
11
|
+
*/
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface ActionAreaExpandProps {
|
|
15
|
+
isExpanded?: boolean;
|
|
16
|
+
onToggleExpand?: () => void;
|
|
17
|
+
expandAriaLabel?: string;
|
|
18
|
+
collapseAriaLabel?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Builds the expand/collapse prop block shared by every `ActionArea` instance
|
|
22
|
+
* that participates in the consultation pad's expand/collapse toggle
|
|
23
|
+
* (ConsultationPadContainer, ConsultationPad, ObservationFormsContainer).
|
|
24
|
+
* Centralising it here avoids the 4-prop block drifting out of sync as it's
|
|
25
|
+
* spread across call sites.
|
|
26
|
+
*/
|
|
27
|
+
export declare const useActionAreaExpandProps: ({ isExpanded, onToggleExpand, disabled, }: UseActionAreaExpandPropsOptions) => ActionAreaExpandProps;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=useActionAreaExpandProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useActionAreaExpandProps.d.ts","sourceRoot":"","sources":["../../src/hooks/useActionAreaExpandProps.ts"],"names":[],"mappings":"AAEA,UAAU,+BAA+B;IACvC,uEAAuE;IACvE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,qBAAqB;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GAAI,2CAItC,+BAA+B,KAAG,qBAWpC,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { u as g,
|
|
2
|
+
import { u as g, X as u, bG as b, bQ as f, bR as p, bS as _, aG as x, bM as N } from "./index-HM7tCsX0.js";
|
|
3
3
|
import { lazy as h, useMemo as n, Suspense as E } from "react";
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
|
-
import { u as
|
|
6
|
-
const
|
|
5
|
+
import { u as C } from "./hook-CRPbW1mC.js";
|
|
6
|
+
const L = {
|
|
7
7
|
"org.bahmni.clinical.v2.search": h(
|
|
8
|
-
() => import("./index-
|
|
8
|
+
() => import("./index-DA1cCe4p.js")
|
|
9
9
|
)
|
|
10
|
-
}, v = "index-module_page__16xxw",
|
|
10
|
+
}, v = "index-module_page__16xxw", I = "index-module_loading__wNI-4", S = "index-module_message__Ib5Iw", t = {
|
|
11
11
|
page: v,
|
|
12
|
-
loading:
|
|
13
|
-
message:
|
|
14
|
-
},
|
|
15
|
-
const { t: a } = g(), { clinicalConfig: l } =
|
|
12
|
+
loading: I,
|
|
13
|
+
message: S
|
|
14
|
+
}, P = () => {
|
|
15
|
+
const { t: a } = g(), { clinicalConfig: l } = C(), { userPrivileges: o } = u(), d = n(
|
|
16
16
|
() => [
|
|
17
17
|
{ id: "home", label: a("HOME_LABEL"), href: b },
|
|
18
18
|
{ id: "clinical", label: a("CLINICAL_LABEL"), isCurrentPage: !0 }
|
|
@@ -24,13 +24,13 @@ const C = {
|
|
|
24
24
|
), c = n(
|
|
25
25
|
() => Array.from(r.entries()).map(([e, i]) => ({
|
|
26
26
|
pointId: e,
|
|
27
|
-
Handler:
|
|
27
|
+
Handler: L[e],
|
|
28
28
|
filtered: p(i, o)
|
|
29
29
|
})).filter(({ Handler: e, filtered: i }) => !!e && i.length > 0),
|
|
30
30
|
[r, o]
|
|
31
31
|
);
|
|
32
32
|
return /* @__PURE__ */ s(
|
|
33
|
-
|
|
33
|
+
_,
|
|
34
34
|
{
|
|
35
35
|
header: /* @__PURE__ */ s(N, { breadcrumbItems: d }),
|
|
36
36
|
main: /* @__PURE__ */ s(
|
|
@@ -49,7 +49,7 @@ const C = {
|
|
|
49
49
|
E,
|
|
50
50
|
{
|
|
51
51
|
fallback: /* @__PURE__ */ s(
|
|
52
|
-
|
|
52
|
+
x,
|
|
53
53
|
{
|
|
54
54
|
type: "multi",
|
|
55
55
|
className: t.loading
|
|
@@ -76,5 +76,5 @@ const C = {
|
|
|
76
76
|
);
|
|
77
77
|
};
|
|
78
78
|
export {
|
|
79
|
-
|
|
79
|
+
P as default
|
|
80
80
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { u as r, cH as l, cI as o, cJ as c, b6 as m, b7 as g, cK as p, cL as h, cM as b, aG as u } from "./index-
|
|
2
|
+
import { u as r, cH as l, cI as o, cJ as c, b6 as m, b7 as g, cK as p, cL as h, cM as b, aG as u } from "./index-HM7tCsX0.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 $ = "index-module_loading__FAL7n", y = "index-module_message__KjCnF", E = "index-module_panel__j5vTu", s = {
|
|
6
|
+
loading: $,
|
|
7
|
+
message: y,
|
|
8
|
+
panel: E
|
|
9
|
+
}, j = ({ extensions: i }) => {
|
|
10
10
|
const { t: n } = r();
|
|
11
11
|
return i.length === 0 ? null : /* @__PURE__ */ d(l, { children: [
|
|
12
12
|
/* @__PURE__ */ e(
|
|
@@ -77,5 +77,5 @@ const E = "index-module_loading__FAL7n", $ = "index-module_message__KjCnF", H =
|
|
|
77
77
|
] });
|
|
78
78
|
};
|
|
79
79
|
export {
|
|
80
|
-
|
|
80
|
+
j as default
|
|
81
81
|
};
|