@bahmni/clinical-app 0.0.1-dev.105 → 0.0.1-dev.107
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/{FormsTable-UxNpSTPL-Bn28Sk0l.js → FormsTable-COjqJWg6-DL1-WqVh.js} +4 -4
- package/dist/{LNWAZHJI-DUk8FV0x.js → LNWAZHJI-DKhyLV_Q.js} +2 -2
- package/dist/{MWZ6AO7Z-OxZSOHLm.js → MWZ6AO7Z-CwM39bNX.js} +2 -2
- package/dist/{YPM2AS64-CCIVMuTw.js → YPM2AS64-DRx2fnqw.js} +1 -1
- package/dist/components/consultationPad/ConsultationPad.d.ts.map +1 -1
- package/dist/components/forms/observations/ObservationForms.d.ts.map +1 -1
- package/dist/components/forms/observations/ObservationFormsContainer.d.ts +2 -1
- package/dist/components/forms/observations/ObservationFormsContainer.d.ts.map +1 -1
- package/dist/constants/forms.d.ts +7 -0
- package/dist/constants/forms.d.ts.map +1 -1
- package/dist/{index-SRzWhKRs.js → index-DQ_AJQ-E.js} +7827 -7768
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +12 -3
- package/dist/locales/locale_es.json +12 -3
- package/dist/stores/observationFormsStore.d.ts +4 -2
- package/dist/stores/observationFormsStore.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as _, Fragment as K } from "react/jsx-runtime";
|
|
2
|
-
import { u as Q, C as J, a as p, b as X, V as z, Q as
|
|
2
|
+
import { u as Q, C as J, a as p, b as X, V as z, Q as I, A as Y, _ as W, l as Z, E as ee, t as S, G as re, e as ae, X as oe, c as ne, J as te } from "./index-DQ_AJQ-E.js";
|
|
3
3
|
import { useState as U, useMemo as u, useCallback as f } from "react";
|
|
4
4
|
import { createPortal as se } from "react-dom";
|
|
5
5
|
const de = "_formsTableBody_ua0cn_1", me = "_customAccordianItem_ua0cn_6", ie = "_formContent_ua0cn_18", ce = "_formDetailsContainer_ua0cn_25", le = "_observation_ua0cn_30", ue = "_groupContainer_ua0cn_39", _e = "_rowContainer_ua0cn_43", be = "_groupLabel_ua0cn_48", pe = "_rowLabel_ua0cn_58", fe = "_rowValue_ua0cn_67", he = "_groupMembers_ua0cn_75", Ne = "_memberRow_ua0cn_81", ge = "_memberLabel_ua0cn_86", ye = "_memberValue_ua0cn_94", ve = "_commentSection_ua0cn_102", Me = "_commentText_ua0cn_108", Ce = "_nestedGroup_ua0cn_117", Le = "_nestedGroupLabel_ua0cn_124", Ae = "_nestedGroupMembers_ua0cn_133", o = {
|
|
@@ -189,7 +189,7 @@ const de = "_formsTableBody_ua0cn_1", me = "_customAccordianItem_ua0cn_6", ie =
|
|
|
189
189
|
);
|
|
190
190
|
return /* @__PURE__ */ _(K, { children: [
|
|
191
191
|
/* @__PURE__ */ e("div", { "data-testid": "forms-table", children: C || L || G.length === 0 ? /* @__PURE__ */ e(
|
|
192
|
-
|
|
192
|
+
I,
|
|
193
193
|
{
|
|
194
194
|
headers: E,
|
|
195
195
|
ariaLabel: n("FORMS_HEADING"),
|
|
@@ -211,7 +211,7 @@ const de = "_formsTableBody_ua0cn_1", me = "_customAccordianItem_ua0cn_6", ie =
|
|
|
211
211
|
testId: "accordian-table-title",
|
|
212
212
|
open: t === 0,
|
|
213
213
|
children: /* @__PURE__ */ e(
|
|
214
|
-
|
|
214
|
+
I,
|
|
215
215
|
{
|
|
216
216
|
headers: E,
|
|
217
217
|
ariaLabel: n("FORMS_HEADING"),
|
|
@@ -240,7 +240,7 @@ const de = "_formsTableBody_ua0cn_1", me = "_customAccordianItem_ua0cn_6", ie =
|
|
|
240
240
|
passiveModal: !0,
|
|
241
241
|
size: "md",
|
|
242
242
|
testId: "form-details-modal",
|
|
243
|
-
children: /* @__PURE__ */ e("div", { className: o.formContent, children: x || k ? /* @__PURE__ */ e(ee, { width: "100%", lineCount: 3 }) : T ? /* @__PURE__ */ e("div", { children:
|
|
243
|
+
children: /* @__PURE__ */ e("div", { className: o.formContent, children: x || k ? /* @__PURE__ */ e(ee, { width: "100%", lineCount: 3 }) : T ? /* @__PURE__ */ e("div", { children: S(T).message ?? n("ERROR_FETCHING_FORM_METADATA") }) : D ? /* @__PURE__ */ e("div", { children: S(D).message ?? n("ERROR_FETCHING_FORM_DATA") }) : F.length > 0 ? /* @__PURE__ */ e("div", { className: o.formDetailsContainer, children: F.map((a, t) => /* @__PURE__ */ e(
|
|
244
244
|
Oe,
|
|
245
245
|
{
|
|
246
246
|
observation: a,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import { g as d, d as f, f as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-DRx2fnqw.js";
|
|
2
|
+
import { g as d, d as f, f as e } from "./index-DQ_AJQ-E.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 d, Q as P } from "./YPM2AS64-
|
|
2
|
-
import { g as v, d as C, f as e } from "./index-
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as d, Q as P } from "./YPM2AS64-DRx2fnqw.js";
|
|
2
|
+
import { g as v, d as C, f as e } from "./index-DQ_AJQ-E.js";
|
|
3
3
|
var f = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as we, i as z, o as xt, j as B, d as q, f as y, P as Ro, m as ye, S as R, k as _, n as k, p as N, q as A, r as bs, s as ir, v as $e, w as U, x as Hn, y as Vn, z as dt, B as D, D as xs, F as cn, H as Be, I as ws, K as qt, L as zt, M as $s, N as Cs, O as $n, R as Ss, T as Nr, U as Bt, $ as zo, W as ks, Y as Es, Z as j, a0 as Ur, a1 as Ms, a2 as Ds, a3 as sr, a4 as As, a5 as Ts, a6 as zn, a7 as Fs, a8 as Is, a9 as Z, aa as Ps, ab as Ls } from "./index-
|
|
1
|
+
import { h as we, i as z, o as xt, j as B, d as q, f as y, P as Ro, m as ye, S as R, k as _, n as k, p as N, q as A, r as bs, s as ir, v as $e, w as U, x as Hn, y as Vn, z as dt, B as D, D as xs, F as cn, H as Be, I as ws, K as qt, L as zt, M as $s, N as Cs, O as $n, R as Ss, T as Nr, U as Bt, $ as zo, W as ks, Y as Es, Z as j, a0 as Ur, a1 as Ms, a2 as Ds, a3 as sr, a4 as As, a5 as Ts, a6 as zn, a7 as Fs, a8 as Is, a9 as Z, aa as Ps, ab as Ls } from "./index-DQ_AJQ-E.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":"ConsultationPad.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/ConsultationPad.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ConsultationPad.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/ConsultationPad.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAuCzC,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA2XnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -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;
|
|
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;CAC/B;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAuQrD,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ObservationForm, Form2Observation } from '@bahmni/services';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
+
import { VALIDATION_STATE_EMPTY, VALIDATION_STATE_MANDATORY, VALIDATION_STATE_INVALID } from '../../../constants/forms';
|
|
3
4
|
interface ObservationFormsContainerProps {
|
|
4
5
|
onViewingFormChange: (viewingForm: ObservationForm | null) => void;
|
|
5
6
|
viewingForm?: ObservationForm | null;
|
|
6
7
|
onRemoveForm?: (formUuid: string) => void;
|
|
7
8
|
pinnedForms: ObservationForm[];
|
|
8
9
|
updatePinnedForms: (newPinnedForms: ObservationForm[]) => Promise<void>;
|
|
9
|
-
onFormObservationsChange?: (formUuid: string, observations: Form2Observation[]) => void;
|
|
10
|
+
onFormObservationsChange?: (formUuid: string, observations: Form2Observation[], validationState?: null | typeof VALIDATION_STATE_EMPTY | typeof VALIDATION_STATE_MANDATORY | typeof VALIDATION_STATE_INVALID) => void;
|
|
10
11
|
existingObservations?: Form2Observation[];
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
@@ -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;
|
|
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,EACzB,MAAM,0BAA0B,CAAC;AAIlC,UAAU,8BAA8B;IAEtC,mBAAmB,EAAE,CAAC,WAAW,EAAE,eAAe,GAAG,IAAI,KAAK,IAAI,CAAC;IAEnE,WAAW,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAErC,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;IAExE,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,KAChC,IAAI,CAAC;IAEV,oBAAoB,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC3C;AAED;;;;;;;;;GASG;AACH,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAgQvE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -4,4 +4,11 @@ export declare const PINNED_FORMS_DELIMITER = "###";
|
|
|
4
4
|
export declare const FORM_CONTROL_TYPE_OBS_GROUP = "obsGroupControl";
|
|
5
5
|
export declare const FORM_CONTROL_TYPE_OBS = "obsControl";
|
|
6
6
|
export declare const FORM_CONTROL_TYPE_MULTISELECT = "multiselect";
|
|
7
|
+
/**
|
|
8
|
+
* Validation states for observation forms.
|
|
9
|
+
* These values are also used to match error messages from form2-controls library.
|
|
10
|
+
*/
|
|
11
|
+
export declare const VALIDATION_STATE_EMPTY = "empty";
|
|
12
|
+
export declare const VALIDATION_STATE_MANDATORY = "mandatory";
|
|
13
|
+
export declare const VALIDATION_STATE_INVALID = "invalid";
|
|
7
14
|
//# sourceMappingURL=forms.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../src/constants/forms.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,UAGzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,UAAwC,CAAC;AAE5E,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAE5C,eAAO,MAAM,2BAA2B,oBAAoB,CAAC;AAC7D,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAClD,eAAO,MAAM,6BAA6B,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../src/constants/forms.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,UAGzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,UAAwC,CAAC;AAE5E,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAE5C,eAAO,MAAM,2BAA2B,oBAAoB,CAAC;AAC7D,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAClD,eAAO,MAAM,6BAA6B,gBAAgB,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,sBAAsB,UAAU,CAAC;AAC9C,eAAO,MAAM,0BAA0B,cAAc,CAAC;AACtD,eAAO,MAAM,wBAAwB,YAAY,CAAC"}
|