@bahmni/clinical-app 0.0.1-dev.116 → 0.0.1-dev.118

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.
@@ -1,5 +1,5 @@
1
- import { jsx as o, jsxs as p, Fragment as z } from "react/jsx-runtime";
2
- import { u as Y, T as W, K as X, a as f, _ as Z, O as ee, Q as I, b as re, c as ae, D as oe, C as ne, w as G, q as te, L as N, S as se, d as de, R as ie, e as me } from "./index-RlyhVUTx.js";
1
+ import { jsx as o, jsxs as p, Fragment as Y } from "react/jsx-runtime";
2
+ import { u as J, O as W, K as X, a as f, _ as Z, T as ee, e as $, b as re, c as ae, D as oe, C as ne, w as I, q as te, L as N, S as se, d as de, R as me, f as ie } from "./index-d8oOVCXW.js";
3
3
  import { useState as x, useMemo as b, useCallback as g } from "react";
4
4
  import { createPortal as le } from "react-dom";
5
5
  const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe = "_formContent_1pd36_18", _e = "_formDetailsContainer_1pd36_25", be = "_observation_1pd36_30", fe = "_groupContainer_1pd36_39", ge = "_rowContainer_1pd36_43", Ne = "_groupLabel_1pd36_48", he = "_rowLabel_1pd36_58", ye = "_rowValue_1pd36_67", ve = "_groupMembers_1pd36_75", Le = "_memberRow_1pd36_81", Me = "_memberLabel_1pd36_86", Ae = "_memberValue_1pd36_94", Oe = "_abnormalValue_1pd36_102", Ce = "_commentSection_1pd36_110", Re = "_commentText_1pd36_116", Te = "_nestedGroup_1pd36_125", De = "_nestedGroupLabel_1pd36_132", Fe = "_nestedGroupMembers_1pd36_141", r = {
@@ -24,20 +24,20 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
24
24
  nestedGroupLabel: De,
25
25
  nestedGroupMembers: Fe
26
26
  }, we = "ABNORMAL", U = (e) => {
27
- const i = e.concept?.units, m = e.concept?.lowNormal, a = e.concept?.hiNormal, l = m != null, c = a != null, u = l && c ? ` (${m} - ${a})` : l ? ` (>${m})` : c ? ` (<${a})` : "", t = e.interpretation && e.interpretation.toUpperCase() === we;
28
- return { units: i, rangeString: u, isAbnormal: t };
27
+ const m = e.concept?.units, i = e.concept?.lowNormal, a = e.concept?.hiNormal, l = i != null, c = a != null, u = l && c ? ` (${i} - ${a})` : l ? ` (>${i})` : c ? ` (<${a})` : "", t = e.interpretation && e.interpretation.toUpperCase() === we;
28
+ return { units: m, rangeString: u, isAbnormal: t };
29
29
  }, q = ({
30
30
  member: e,
31
- depth: i = 0
31
+ depth: m = 0
32
32
  }) => {
33
- const m = e.groupMembers && e.groupMembers.length > 0, a = e.conceptNameToDisplay ?? e.concept?.shortName ?? e.concept?.name;
34
- if (m)
33
+ const i = e.groupMembers && e.groupMembers.length > 0, a = e.conceptNameToDisplay ?? e.concept?.shortName ?? e.concept?.name;
34
+ if (i)
35
35
  return /* @__PURE__ */ p("div", { className: r.nestedGroup, children: [
36
36
  /* @__PURE__ */ o(
37
37
  "div",
38
38
  {
39
39
  className: r.nestedGroupLabel,
40
- style: { paddingLeft: `${i * 16}px` },
40
+ style: { paddingLeft: `${m * 16}px` },
41
41
  children: a
42
42
  }
43
43
  ),
@@ -45,7 +45,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
45
45
  q,
46
46
  {
47
47
  member: t,
48
- depth: i + 1
48
+ depth: m + 1
49
49
  },
50
50
  `${t.concept.uuid}`
51
51
  )) })
@@ -55,7 +55,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
55
55
  "div",
56
56
  {
57
57
  className: r.memberRow,
58
- style: { paddingLeft: `${i * 16}px` },
58
+ style: { paddingLeft: `${m * 16}px` },
59
59
  children: [
60
60
  /* @__PURE__ */ p(
61
61
  "p",
@@ -88,9 +88,9 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
88
88
  );
89
89
  }, Se = ({
90
90
  observation: e,
91
- index: i
91
+ index: m
92
92
  }) => {
93
- const m = e.groupMembers && e.groupMembers.length > 0, { units: a, rangeString: l, isAbnormal: c } = U(e);
93
+ const i = e.groupMembers && e.groupMembers.length > 0, { units: a, rangeString: l, isAbnormal: c } = U(e);
94
94
  return /* @__PURE__ */ p(
95
95
  "div",
96
96
  {
@@ -99,22 +99,22 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
99
99
  /* @__PURE__ */ p(
100
100
  "div",
101
101
  {
102
- className: m ? r.groupContainer : r.rowContainer,
102
+ className: i ? r.groupContainer : r.rowContainer,
103
103
  children: [
104
104
  /* @__PURE__ */ p(
105
105
  "p",
106
106
  {
107
107
  className: N(
108
- m ? r.groupLabel : r.rowLabel,
109
- !m && c ? r.abnormalValue : ""
108
+ i ? r.groupLabel : r.rowLabel,
109
+ !i && c ? r.abnormalValue : ""
110
110
  ),
111
111
  children: [
112
112
  e.conceptNameToDisplay,
113
- !m && l && /* @__PURE__ */ o("span", { className: r.rangeInfo, children: l })
113
+ !i && l && /* @__PURE__ */ o("span", { className: r.rangeInfo, children: l })
114
114
  ]
115
115
  }
116
116
  ),
117
- m ? /* @__PURE__ */ o("div", { className: r.groupMembers, children: e.groupMembers?.map((u) => /* @__PURE__ */ o(
117
+ i ? /* @__PURE__ */ o("div", { className: r.groupMembers, children: e.groupMembers?.map((u) => /* @__PURE__ */ o(
118
118
  q,
119
119
  {
120
120
  member: u,
@@ -143,16 +143,16 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
143
143
  ] }) })
144
144
  ]
145
145
  },
146
- `${e.concept.uuid}-${i}`
146
+ `${e.concept.uuid}-${m}`
147
147
  );
148
- }, Ge = ({
148
+ }, Ie = ({
149
149
  episodeOfCareUuids: e,
150
- encounterUuids: i,
151
- config: m
150
+ encounterUuids: m,
151
+ config: i
152
152
  }) => {
153
- const { t: a } = Y(), l = W(), [c, u] = x(!1), [t, M] = x(null), k = m?.numberOfVisits, A = X(
153
+ const { t: a } = J(), l = W(), [c, u] = x(!1), [t, M] = x(null), k = i?.numberOfVisits, A = X(
154
154
  e,
155
- i
155
+ m
156
156
  ), {
157
157
  data: h = [],
158
158
  isLoading: O,
@@ -162,9 +162,9 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
162
162
  queryKey: ["forms", l, e],
163
163
  queryFn: () => se(l, void 0, k),
164
164
  enabled: !!l && !A
165
- }), R = b(() => !i || i.length === 0 ? h : h.filter(
166
- (n) => i.includes(n.encounterUuid)
167
- ), [h, i]), { data: T = [] } = f({
165
+ }), R = b(() => !m || m.length === 0 ? h : h.filter(
166
+ (n) => m.includes(n.encounterUuid)
167
+ ), [h, m]), { data: T = [] } = f({
168
168
  queryKey: ["observationForms"],
169
169
  queryFn: de
170
170
  }), D = g(
@@ -179,7 +179,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
179
179
  error: F
180
180
  } = f({
181
181
  queryKey: ["formMetadata", y],
182
- queryFn: () => ie(y),
182
+ queryFn: () => me(y),
183
183
  enabled: !!y && c
184
184
  }), {
185
185
  data: v,
@@ -187,7 +187,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
187
187
  error: w
188
188
  } = f({
189
189
  queryKey: ["formsEncounter", t?.encounterUuid],
190
- queryFn: () => me(t.encounterUuid, !0),
190
+ queryFn: () => ie(t.encounterUuid, !0),
191
191
  enabled: !!t?.encounterUuid && c
192
192
  }), S = b(() => !v?.observations || !t?.formName ? [] : v.observations.filter(
193
193
  (n) => "formFieldPath" in n && typeof n.formFieldPath == "string" && n.formFieldPath.includes(t.formName)
@@ -197,7 +197,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
197
197
  { key: "recordedBy", header: a("FORM_RECORDED_BY") }
198
198
  ],
199
199
  [a]
200
- ), J = b(
200
+ ), P = b(
201
201
  () => [
202
202
  { key: "recordedOn", sortable: !0 },
203
203
  { key: "recordedBy", sortable: !0 }
@@ -228,26 +228,26 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
228
228
  )
229
229
  })
230
230
  ).sort((s, d) => s.formName.localeCompare(d.formName));
231
- }, [R, a]), V = g((n) => {
231
+ }, [R, a]), G = g((n) => {
232
232
  M(n), u(!0);
233
- }, []), P = g(() => {
233
+ }, []), z = g(() => {
234
234
  u(!1), M(null);
235
- }, []), $ = g(
235
+ }, []), V = g(
236
236
  (n, s) => {
237
237
  switch (s) {
238
238
  case "recordedOn":
239
- return /* @__PURE__ */ o(ee, { onClick: () => V(n), children: n.recordedOn });
239
+ return /* @__PURE__ */ o(ee, { onClick: () => G(n), children: n.recordedOn });
240
240
  case "recordedBy":
241
241
  return n.recordedBy;
242
242
  default:
243
243
  return null;
244
244
  }
245
245
  },
246
- [V]
246
+ [G]
247
247
  );
248
- return /* @__PURE__ */ p(z, { children: [
248
+ return /* @__PURE__ */ p(Y, { children: [
249
249
  /* @__PURE__ */ o("div", { "data-testid": "forms-table", children: O || C || E.length === 0 || A ? /* @__PURE__ */ o(
250
- I,
250
+ $,
251
251
  {
252
252
  headers: B,
253
253
  ariaLabel: a("FORMS_HEADING"),
@@ -255,7 +255,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
255
255
  loading: O,
256
256
  errorStateMessage: C ? K?.message : void 0,
257
257
  emptyStateMessage: a("FORMS_UNAVAILABLE"),
258
- renderCell: $,
258
+ renderCell: V,
259
259
  className: r.formsTableBody,
260
260
  "data-testid": "sortable-data-table"
261
261
  }
@@ -269,16 +269,16 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
269
269
  testId: `accordian-title-${d}`,
270
270
  open: s === 0,
271
271
  children: /* @__PURE__ */ o(
272
- I,
272
+ $,
273
273
  {
274
274
  headers: B,
275
275
  ariaLabel: a("FORMS_HEADING"),
276
276
  rows: _,
277
277
  loading: !1,
278
278
  errorStateMessage: "",
279
- sortable: J,
279
+ sortable: P,
280
280
  emptyStateMessage: a("FORMS_UNAVAILABLE"),
281
- renderCell: $,
281
+ renderCell: V,
282
282
  className: r.formsTableBody,
283
283
  "data-testid": "forms-data-table"
284
284
  }
@@ -293,13 +293,13 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
293
293
  {
294
294
  id: "formDetailsModal",
295
295
  open: c,
296
- onRequestClose: P,
296
+ onRequestClose: z,
297
297
  modalHeading: t.formName,
298
298
  modalLabel: `${t.recordedOn} | ${t.recordedBy}`,
299
299
  passiveModal: !0,
300
300
  size: "md",
301
301
  testId: "form-details-modal",
302
- children: /* @__PURE__ */ o("div", { className: r.formContent, children: H || j ? /* @__PURE__ */ o(ne, { width: "100%", lineCount: 3 }) : F ? /* @__PURE__ */ o("div", { children: G(F).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : w ? /* @__PURE__ */ o("div", { children: G(w).message ?? a("ERROR_FETCHING_FORM_DATA") }) : S.length > 0 ? /* @__PURE__ */ o("div", { className: r.formDetailsContainer, children: S.map((n, s) => /* @__PURE__ */ o(
302
+ children: /* @__PURE__ */ o("div", { className: r.formContent, children: H || j ? /* @__PURE__ */ o(ne, { width: "100%", lineCount: 3 }) : F ? /* @__PURE__ */ o("div", { children: I(F).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : w ? /* @__PURE__ */ o("div", { children: I(w).message ?? a("ERROR_FETCHING_FORM_DATA") }) : S.length > 0 ? /* @__PURE__ */ o("div", { className: r.formDetailsContainer, children: S.map((n, s) => /* @__PURE__ */ o(
303
303
  Se,
304
304
  {
305
305
  observation: n,
@@ -314,5 +314,5 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
314
314
  ] });
315
315
  };
316
316
  export {
317
- Ge as default
317
+ Ie as default
318
318
  };
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CcHjEAHQ.js";
2
- import { H as d, I as f, J as e } from "./index-RlyhVUTx.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BApeGioG.js";
2
+ import { H as d, I as f, J as e } from "./index-d8oOVCXW.js";
3
3
  var p = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
- import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-CcHjEAHQ.js";
2
- import { H as v, I as C, J as e } from "./index-RlyhVUTx.js";
1
+ import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-BApeGioG.js";
2
+ import { H as v, I as C, J as e } from "./index-d8oOVCXW.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
1
  import { jsxs as D, jsx as p } from "react/jsx-runtime";
2
- import { f as F, n as w, r as H, g as I, h as J, i as P, j as K, k as z, l as G, m as j, o as W, s as T, p as Q, t as X, v as Y, T as Z, x as ee, u as N, y as te, a as se, U as re, Q as ne, z as ie, A as M, B as oe, V as ae, E as ue, F as ce, G as le } from "./index-RlyhVUTx.js";
2
+ import { g as F, n as w, r as U, Q as I, h as H, i as P, j as K, k as z, l as W, m as j, o as J, s as T, p as Q, t as X, v as Y, O as Z, x as ee, u as N, y as te, a as se, W as re, e as ne, z as ie, A as M, B as oe, V as ae, E as ue, F as ce, G as le } from "./index-d8oOVCXW.js";
3
3
  import * as R from "react";
4
4
  import { useRef as de, useEffect as C, useMemo as S } from "react";
5
5
  function _(e, t) {
@@ -96,7 +96,7 @@ var pe = class extends F {
96
96
  });
97
97
  }
98
98
  #l(e, t) {
99
- return t ? ((!this.#s || this.#e !== this.#a || t !== this.#o) && (this.#o = t, this.#a = this.#e, this.#s = H(
99
+ return t ? ((!this.#s || this.#e !== this.#a || t !== this.#o) && (this.#o = t, this.#a = this.#e, this.#s = U(
100
100
  this.#s,
101
101
  t(e)
102
102
  )), this.#s) : e;
@@ -135,7 +135,7 @@ function fe({
135
135
  queries: e,
136
136
  ...t
137
137
  }, s) {
138
- const r = J(s), n = P(), o = K(), a = R.useMemo(
138
+ const r = H(s), n = P(), o = K(), a = R.useMemo(
139
139
  () => e.map((c) => {
140
140
  const h = r.defaultQueryOptions(
141
141
  c
@@ -145,7 +145,7 @@ function fe({
145
145
  [e, r, n]
146
146
  );
147
147
  a.forEach((c) => {
148
- z(c), G(c, o);
148
+ z(c), W(c, o);
149
149
  }), j(o);
150
150
  const [i] = R.useState(
151
151
  () => new pe(
@@ -159,7 +159,7 @@ function fe({
159
159
  ), b = !n && t.subscribed !== !1;
160
160
  R.useSyncExternalStore(
161
161
  R.useCallback(
162
- (c) => b ? i.subscribe(w.batchCalls(c)) : W,
162
+ (c) => b ? i.subscribe(w.batchCalls(c)) : J,
163
163
  [i, b]
164
164
  ),
165
165
  () => i.getCurrentResult(),
@@ -429,10 +429,10 @@ const k = (e, t, s) => {
429
429
  C(() => {
430
430
  u.forEach((l, y) => {
431
431
  if (l.isError && !n.current.has(y)) {
432
- const U = s[y];
432
+ const G = s[y];
433
433
  a({
434
434
  title: i("ERROR_DEFAULT_TITLE"),
435
- message: i("ERROR_FETCHING_CONCEPT", { conceptName: U }),
435
+ message: i("ERROR_FETCHING_CONCEPT", { conceptName: G }),
436
436
  type: "error"
437
437
  }), n.current.add(y);
438
438
  } else l.isError || n.current.delete(y);
@@ -1,4 +1,4 @@
1
- import { M as we, N as z, P as xt, W as B, I as q, J as y, X as Ro, Y as ye, Z as R, $ as _, a0 as k, a1 as N, a2 as A, a3 as bs, a4 as ir, a5 as $e, a6 as U, a7 as Hn, a8 as Vn, a9 as dt, aa as D, ab as xs, ac as cn, ad as Be, ae as ws, af as qt, ag as zt, ah as $s, ai as Cs, aj as $n, ak as Ss, al as Nr, am as Bt, an as zo, ao as ks, ap as Es, aq as j, ar as Ur, as as Ms, at as Ds, au as sr, av as As, aw as Ts, ax as zn, ay as Fs, az as Is, aA as Z, aB as Ps, aC as Ls } from "./index-RlyhVUTx.js";
1
+ import { M as we, N as z, P as xt, U as B, I as q, J as y, X as Ro, Y as ye, Z as R, $ as _, a0 as k, a1 as N, a2 as A, a3 as bs, a4 as ir, a5 as $e, a6 as U, a7 as Hn, a8 as Vn, a9 as dt, aa as D, ab as xs, ac as cn, ad as Be, ae as ws, af as qt, ag as zt, ah as $s, ai as Cs, aj as $n, ak as Ss, al as Nr, am as Bt, an as zo, ao as ks, ap as Es, aq as j, ar as Ur, as as Ms, at as Ds, au as sr, av as As, aw as Ts, ax as zn, ay as Fs, az as Is, aA as Z, aB as Ps, aC as Ls } from "./index-d8oOVCXW.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ObservationForms.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationForms.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAyC,MAAM,OAAO,CAAC;AAY9D,UAAU,qBAAqB;IAC7B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC/C,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAE1C,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,iBAAiB,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,oBAAoB,EAAE,OAAO,CAAC;IAE9B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,KAAK,GAAG,IAAI,CAAC;CACrC;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAsRrD,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"ObservationForms.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationForms.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAyC,MAAM,OAAO,CAAC;AAY9D,UAAU,qBAAqB;IAC7B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC/C,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAE1C,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,iBAAiB,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,oBAAoB,EAAE,OAAO,CAAC;IAE9B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,KAAK,GAAG,IAAI,CAAC;CACrC;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA8RrD,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
@@ -7,19 +7,9 @@ interface ObservationFormsContainerProps {
7
7
  onRemoveForm?: (formUuid: string) => void;
8
8
  pinnedForms: ObservationForm[];
9
9
  updatePinnedForms: (newPinnedForms: ObservationForm[]) => Promise<void>;
10
- onFormObservationsChange?: (formUuid: string, observations: Form2Observation[], validationState?: null | typeof VALIDATION_STATE_EMPTY | typeof VALIDATION_STATE_MANDATORY | typeof VALIDATION_STATE_INVALID | typeof VALIDATION_STATE_SCRIPT_ERROR) => void;
10
+ onFormObservationsChange?: (formUuid: string, observations: Form2Observation[], validationErrorType?: null | typeof VALIDATION_STATE_EMPTY | typeof VALIDATION_STATE_MANDATORY | typeof VALIDATION_STATE_INVALID | typeof VALIDATION_STATE_SCRIPT_ERROR) => void;
11
11
  existingObservations?: Form2Observation[];
12
12
  }
13
- /**
14
- * ObservationFormsWrapper component
15
- *
16
- * Wraps the ObservationForms component with additional functionality that was extracted from ConsultationPad.
17
- * This component manages its own state for selected forms and viewing form,
18
- * and renders its own ActionArea when viewing a form.
19
- *
20
- * When viewing a form, it takes over the entire UI with its own ActionArea.
21
- * When not viewing a form, it renders just the observation forms component.
22
- */
23
13
  declare const ObservationFormsContainer: React.FC<ObservationFormsContainerProps>;
24
14
  export default ObservationFormsContainer;
25
15
  //# sourceMappingURL=ObservationFormsContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObservationFormsContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsContainer.tsx"],"names":[],"mappings":"AAWA,OAAO,wCAAwC,CAAC;AAChD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,gBAAgB,EAGjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAA2B,MAAM,OAAO,CAAC;AAEhD,OAAO,EAEL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAKlC,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,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,iBAAiB,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,wBAAwB,CAAC,EAAE,CACzB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,gBAAgB,EAAE,EAChC,eAAe,CAAC,EACZ,IAAI,GACJ,OAAO,sBAAsB,GAC7B,OAAO,0BAA0B,GACjC,OAAO,wBAAwB,GAC/B,OAAO,6BAA6B,KACrC,IAAI,CAAC;IACV,oBAAoB,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC3C;AAED;;;;;;;;;GASG;AACH,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAsTvE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"ObservationFormsContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsContainer.tsx"],"names":[],"mappings":"AAWA,OAAO,wCAAwC,CAAC;AAChD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,gBAAgB,EAMjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAA2B,MAAM,OAAO,CAAC;AAEhD,OAAO,EAEL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAKlC,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,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,iBAAiB,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,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,KACrC,IAAI,CAAC;IACV,oBAAoB,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC3C;AAED,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAmWvE,CAAC;AAuBF,eAAe,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useObservationFormData.d.ts","sourceRoot":"","sources":["../../src/hooks/useObservationFormData.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,gBAAgB,EAChB,YAAY,EAKb,MAAM,kBAAkB,CAAC;AAU1B,UAAU,2BAA2B;IACnC,eAAe,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,4BAA4B;IACpC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,oBAAoB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,SAAS,EAAE,MAAM,IAAI,CAAC;IAEtB,YAAY,EAAE,YAAY,GAAG,SAAS,CAAC;IACvC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,KAAK,GAAG,IAAI,CAAC;CAC7B;AAoDD;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,CAAC,EAAE,2BAA2B,GAClC,4BAA4B,CA8H9B"}
1
+ {"version":3,"file":"useObservationFormData.d.ts","sourceRoot":"","sources":["../../src/hooks/useObservationFormData.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,gBAAgB,EAChB,YAAY,EAKb,MAAM,kBAAkB,CAAC;AAU1B,UAAU,2BAA2B;IACnC,eAAe,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,4BAA4B;IACpC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,oBAAoB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,SAAS,EAAE,MAAM,IAAI,CAAC;IAEtB,YAAY,EAAE,YAAY,GAAG,SAAS,CAAC;IACvC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,KAAK,GAAG,IAAI,CAAC;CAC7B;AAqDD;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,CAAC,EAAE,2BAA2B,GAClC,4BAA4B,CAkI9B"}