@beda.software/web-item-controls 0.1.25-group-new-design.8 → 0.1.26
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/README.md +4 -0
- package/dist/components/ModalQuestionnaireGroupItem/hooks.js +7 -10
- package/dist/components/ModalQuestionnaireGroupItem/index.js +6 -4
- package/dist/components/SearchBar/SearchBarColumn/ReferenceColumn/index.js +2 -2
- package/dist/components/SearchBar/SearchBarMobile/styles.js +3 -3
- package/dist/components/Table/index.js +1 -1
- package/dist/controls/DateTimeSlotPicker/index.js +4 -4
- package/dist/controls/Display/index.js +5 -7
- package/dist/controls/Group/RepeatableGroups/RepeatableGroupCard/index.d.ts.map +1 -1
- package/dist/controls/Group/RepeatableGroups/RepeatableGroupCard/index.js +14 -15
- package/dist/controls/Group/RepeatableGroups/RepeatableGroupRow.d.ts.map +1 -1
- package/dist/controls/Group/RepeatableGroups/RepeatableGroupRow.js +11 -12
- package/dist/controls/Group/RepeatableGroups/index.d.ts.map +1 -1
- package/dist/controls/Group/RepeatableGroups/index.js +26 -27
- package/dist/controls/Group/group.module.scss.js +6 -10
- package/dist/controls/Group/index.d.ts.map +1 -1
- package/dist/controls/Group/index.js +45 -47
- package/dist/controls/GroupTable/RenderFormItemReadOnly/index.js +6 -7
- package/dist/controls/GroupTable/hooks.d.ts +0 -1
- package/dist/controls/GroupTable/hooks.d.ts.map +1 -1
- package/dist/controls/GroupTable/hooks.js +175 -177
- package/dist/controls/GroupTable/index.d.ts.map +1 -1
- package/dist/controls/GroupTable/index.js +38 -39
- package/dist/controls/GroupWizard/GroupWizard.stories.utils.d.ts +1 -1
- package/dist/controls/GroupWizard/GroupWizard.stories.utils.d.ts.map +1 -1
- package/dist/controls/GroupWizard/index.d.ts +1 -61
- package/dist/controls/GroupWizard/index.d.ts.map +1 -1
- package/dist/controls/ImageAnnotation/AnnotationImage.d.ts +16 -0
- package/dist/controls/ImageAnnotation/AnnotationImage.d.ts.map +1 -0
- package/dist/controls/ImageAnnotation/AnnotationImage.js +37 -0
- package/dist/controls/ImageAnnotation/index.d.ts +9 -0
- package/dist/controls/ImageAnnotation/index.d.ts.map +1 -0
- package/dist/controls/ImageAnnotation/index.js +121 -0
- package/dist/controls/ImageAnnotation/styles.d.ts +21 -0
- package/dist/controls/ImageAnnotation/styles.d.ts.map +1 -0
- package/dist/controls/ImageAnnotation/styles.js +66 -0
- package/dist/controls/ImageAnnotation/utils.d.ts +3 -0
- package/dist/controls/ImageAnnotation/utils.d.ts.map +1 -0
- package/dist/controls/ImageAnnotation/utils.js +9 -0
- package/dist/controls/MDEditorControl/MarkDownEditor/directives.js +3 -3
- package/dist/controls/MDEditorControl/MarkDownEditor/hooks.js +1 -1
- package/dist/controls/Reference/index.js +2 -2
- package/dist/controls/UploadFileControl/hooks.js +3 -4
- package/dist/controls/UploadFileControl/index.js +1 -1
- package/dist/controls/controls.d.ts.map +1 -1
- package/dist/controls/controls.js +51 -56
- package/dist/controls/index.d.ts +1 -1
- package/dist/controls/index.d.ts.map +1 -1
- package/dist/controls/index.js +44 -46
- package/dist/ext/d3-array/src/bisect.js +6 -7
- package/dist/ext/d3-array/src/bisector.js +2 -4
- package/dist/ext/d3-array/src/ticks.js +7 -18
- package/dist/ext/d3-color/src/color.js +3 -6
- package/dist/ext/d3-color/src/define.js +1 -2
- package/dist/ext/d3-format/src/defaultLocale.js +3 -4
- package/dist/ext/d3-format/src/formatDecimal.js +1 -2
- package/dist/ext/d3-format/src/formatPrefixAuto.js +1 -2
- package/dist/ext/d3-format/src/formatRounded.js +1 -2
- package/dist/ext/d3-format/src/formatSpecifier.js +1 -2
- package/dist/ext/d3-format/src/formatTrim.js +13 -15
- package/dist/ext/d3-interpolate/src/array.js +3 -6
- package/dist/ext/d3-interpolate/src/numberArray.js +1 -2
- package/dist/ext/d3-interpolate/src/object.js +1 -2
- package/dist/ext/d3-interpolate/src/string.js +1 -2
- package/dist/ext/d3-scale/src/continuous.js +4 -4
- package/dist/ext/unist-util-is/lib/index.js +2 -4
- package/dist/locale/de/messages.d.ts.map +1 -1
- package/dist/locale/de/messages.js +1 -4
- package/dist/locale/en/messages.d.ts.map +1 -1
- package/dist/locale/en/messages.js +1 -4
- package/dist/locale/es/messages.d.ts.map +1 -1
- package/dist/locale/es/messages.js +1 -4
- package/dist/locale/ru/messages.d.ts.map +1 -1
- package/dist/locale/ru/messages.js +1 -4
- package/dist/readonly-controls/Display/index.js +4 -4
- package/dist/readonly-controls/Group/index.d.ts.map +1 -1
- package/dist/readonly-controls/Group/index.js +25 -27
- package/dist/readonly-controls/ImageAnnotation/index.d.ts +4 -0
- package/dist/readonly-controls/ImageAnnotation/index.d.ts.map +1 -0
- package/dist/readonly-controls/ImageAnnotation/index.js +45 -0
- package/dist/readonly-controls/MarkdownRender/index.d.ts.map +1 -1
- package/dist/readonly-controls/MarkdownRender/index.js +51 -41
- package/dist/readonly-controls/index.d.ts +1 -1
- package/dist/readonly-controls/index.d.ts.map +1 -1
- package/dist/readonly-controls/index.js +17 -17
- package/dist/readonly-controls/readonly-controls.d.ts.map +1 -1
- package/dist/readonly-controls/readonly-controls.js +33 -42
- package/dist/services/fhir.js +73 -46
- package/dist/services/i18n.js +12 -33
- package/dist/style.css +1 -1
- package/dist/utils/constants.d.ts +0 -1
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/date.js +1 -1
- package/dist/utils/fhirpath.d.ts +1 -0
- package/dist/utils/fhirpath.d.ts.map +1 -1
- package/dist/utils/fhirpath.js +3 -2
- package/dist/utils/questionnaire.d.ts +0 -1
- package/dist/utils/questionnaire.d.ts.map +1 -1
- package/dist/utils/questionnaire.js +17 -23
- package/package.json +18 -13
- package/src/locale/de/messages.po +39 -48
- package/src/locale/de/messages.ts +1 -1
- package/src/locale/en/messages.po +39 -48
- package/src/locale/en/messages.ts +1 -1
- package/src/locale/es/messages.po +39 -48
- package/src/locale/es/messages.ts +1 -1
- package/src/locale/ru/messages.po +39 -48
- package/src/locale/ru/messages.ts +1 -1
- package/dist/components/Table/table.scss.js +0 -4
- package/dist/containers/App/utils.d.ts +0 -6
- package/dist/containers/App/utils.d.ts.map +0 -1
- package/dist/controls/GroupWizard/GroupWizardSidebar/GroupWizardSidebar.stories.utils.d.ts +0 -10
- package/dist/controls/GroupWizard/GroupWizardSidebar/GroupWizardSidebar.stories.utils.d.ts.map +0 -1
- package/dist/controls/GroupWizard/GroupWizardSidebar/ParentPreviewFields.d.ts +0 -9
- package/dist/controls/GroupWizard/GroupWizardSidebar/ParentPreviewFields.d.ts.map +0 -1
- package/dist/controls/GroupWizard/GroupWizardSidebar/ParentPreviewFields.js +0 -29
- package/dist/controls/GroupWizard/GroupWizardSidebar/SidebarMenu.d.ts +0 -14
- package/dist/controls/GroupWizard/GroupWizardSidebar/SidebarMenu.d.ts.map +0 -1
- package/dist/controls/GroupWizard/GroupWizardSidebar/SidebarMenu.js +0 -94
- package/dist/controls/GroupWizard/GroupWizardSidebar/index.d.ts +0 -5
- package/dist/controls/GroupWizard/GroupWizardSidebar/index.d.ts.map +0 -1
- package/dist/controls/GroupWizard/GroupWizardSidebar/index.js +0 -152
- package/dist/controls/GroupWizard/GroupWizardSidebar/styles.d.ts +0 -35
- package/dist/controls/GroupWizard/GroupWizardSidebar/styles.d.ts.map +0 -1
- package/dist/controls/GroupWizard/GroupWizardSidebar/styles.js +0 -106
- package/dist/controls/GroupWizard/GroupWizardSidebar/types.d.ts +0 -21
- package/dist/controls/GroupWizard/GroupWizardSidebar/types.d.ts.map +0 -1
- package/dist/controls/GroupWizard/GroupWizardSidebar/utils.d.ts +0 -12
- package/dist/controls/GroupWizard/GroupWizardSidebar/utils.d.ts.map +0 -1
- package/dist/controls/GroupWizard/GroupWizardSidebar/utils.js +0 -99
- package/dist/readonly-controls/GroupWizardSidebar/index.d.ts +0 -3
- package/dist/readonly-controls/GroupWizardSidebar/index.d.ts.map +0 -1
- package/dist/readonly-controls/GroupWizardSidebar/index.js +0 -104
- package/dist/utils/constants.js +0 -4
|
@@ -1,43 +1,41 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { QuestionItems as
|
|
3
|
-
import { Paragraph as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { RepeatableGroups as h } from "./RepeatableGroups.js";
|
|
7
|
-
function e(t) {
|
|
1
|
+
import { jsx as e, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { QuestionItems as a } from "sdc-qrf";
|
|
3
|
+
import { Paragraph as c } from "../../components/Typography.js";
|
|
4
|
+
import { RepeatableGroups as x } from "./RepeatableGroups.js";
|
|
5
|
+
function r(t) {
|
|
8
6
|
const {
|
|
9
7
|
parentPath: u,
|
|
10
|
-
questionItem:
|
|
11
|
-
context:
|
|
8
|
+
questionItem: p,
|
|
9
|
+
context: m
|
|
12
10
|
} = t, {
|
|
13
11
|
linkId: n,
|
|
14
|
-
item:
|
|
15
|
-
repeats:
|
|
16
|
-
text:
|
|
17
|
-
hidden:
|
|
18
|
-
} =
|
|
19
|
-
return !
|
|
12
|
+
item: o,
|
|
13
|
+
repeats: l,
|
|
14
|
+
text: i,
|
|
15
|
+
hidden: s
|
|
16
|
+
} = p;
|
|
17
|
+
return !o || s ? null : l === !0 ? /* @__PURE__ */ e(x, { ...t }) : /* @__PURE__ */ f("div", { style: {
|
|
20
18
|
margin: "0 0 32px"
|
|
21
19
|
}, id: `group-${n}`, children: [
|
|
22
|
-
|
|
20
|
+
i && /* @__PURE__ */ e(c, { style: {
|
|
23
21
|
fontSize: 18,
|
|
24
22
|
fontWeight: "bold",
|
|
25
23
|
margin: "32px 0 8px"
|
|
26
|
-
}, children:
|
|
27
|
-
/* @__PURE__ */
|
|
24
|
+
}, children: i }),
|
|
25
|
+
/* @__PURE__ */ e(a, { questionItems: o, parentPath: [...u, n, "items"], context: m[0] })
|
|
28
26
|
] });
|
|
29
27
|
}
|
|
30
|
-
function
|
|
31
|
-
return
|
|
28
|
+
function I(t) {
|
|
29
|
+
return /* @__PURE__ */ e(r, { ...t });
|
|
32
30
|
}
|
|
33
|
-
function
|
|
34
|
-
return /* @__PURE__ */ r
|
|
31
|
+
function P(t) {
|
|
32
|
+
return /* @__PURE__ */ e(r, { ...t, type: "col" });
|
|
35
33
|
}
|
|
36
|
-
function
|
|
37
|
-
return /* @__PURE__ */ r
|
|
34
|
+
function b(t) {
|
|
35
|
+
return /* @__PURE__ */ e(r, { ...t, type: "row" });
|
|
38
36
|
}
|
|
39
37
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
P as Col,
|
|
39
|
+
I as Group,
|
|
40
|
+
b as Row
|
|
43
41
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GroupItemProps } from 'sdc-qrf';
|
|
2
|
+
/** Readonly counterpart of the `image-annotation` control: image with markers and all the annotations listed. */
|
|
3
|
+
export declare function ImageAnnotation(props: GroupItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/readonly-controls/ImageAnnotation/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,cAAc,EAAuD,MAAM,SAAS,CAAC;AAOzG,iHAAiH;AACjH,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,kDA2CpD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsxs as h, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { i18n as f } from "@lingui/core";
|
|
3
|
+
import { QuestionItems as y, getItemKey as j } from "sdc-qrf";
|
|
4
|
+
import { useFieldController as C } from "../../components/BaseQuestionnaireResponseForm/hooks.js";
|
|
5
|
+
import { Title as P } from "../../components/Typography.js";
|
|
6
|
+
import { AnnotationImage as q } from "../../controls/ImageAnnotation/AnnotationImage.js";
|
|
7
|
+
import { S as e } from "../../controls/ImageAnnotation/styles.js";
|
|
8
|
+
function $(u) {
|
|
9
|
+
const {
|
|
10
|
+
parentPath: l,
|
|
11
|
+
questionItem: s,
|
|
12
|
+
context: a
|
|
13
|
+
} = u, {
|
|
14
|
+
linkId: n,
|
|
15
|
+
item: d,
|
|
16
|
+
text: c,
|
|
17
|
+
hidden: g,
|
|
18
|
+
backgroundImage: i
|
|
19
|
+
} = s, [I, p] = d ?? [], {
|
|
20
|
+
value: o
|
|
21
|
+
} = C([...l, n], s), r = (o == null ? void 0 : o.items) ?? [];
|
|
22
|
+
if (g || !I || !p)
|
|
23
|
+
return null;
|
|
24
|
+
const x = (d ?? []).slice(2);
|
|
25
|
+
return /* @__PURE__ */ h(e.Container, { "data-testid": n, "data-linkid": n, children: [
|
|
26
|
+
/* @__PURE__ */ t(e.ImagePane, { children: /* @__PURE__ */ t(q, { imageUrl: i == null ? void 0 : i.url, alt: c, items: r, xLinkId: I.linkId, yLinkId: p.linkId }) }),
|
|
27
|
+
/* @__PURE__ */ t(e.Details, { children: r.length ? r.map((k, m) => /* @__PURE__ */ h(e.DetailsItems, { children: [
|
|
28
|
+
/* @__PURE__ */ t(P, { level: 5, children: `${c || f._(
|
|
29
|
+
/*i18n*/
|
|
30
|
+
{
|
|
31
|
+
id: "V0Qg8j"
|
|
32
|
+
}
|
|
33
|
+
)} ${m + 1}` }),
|
|
34
|
+
/* @__PURE__ */ t(y, { questionItems: x, parentPath: [...l, n, "items", m.toString()], context: a[m] ?? a[0] })
|
|
35
|
+
] }, j(k))) : /* @__PURE__ */ t(e.Empty, { children: f._(
|
|
36
|
+
/*i18n*/
|
|
37
|
+
{
|
|
38
|
+
id: "vKC52t"
|
|
39
|
+
}
|
|
40
|
+
) }) })
|
|
41
|
+
] });
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
$ as ImageAnnotation
|
|
45
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/readonly-controls/MarkdownRender/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/readonly-controls/MarkdownRender/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAyB5C,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,2CAgDxD;AAED,wBAAgB,qBAAqB,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE,iBAAiB,2CAWpF;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,iBAAiB,2CAMvD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAapD"}
|
|
@@ -1,78 +1,88 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { isValidElement as
|
|
4
|
-
import
|
|
1
|
+
import { jsx as t, Fragment as p, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import c from "classnames";
|
|
3
|
+
import { isValidElement as g } from "react";
|
|
4
|
+
import h from "react-markdown";
|
|
5
5
|
import k from "rehype-raw";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { S as
|
|
14
|
-
import {
|
|
15
|
-
|
|
6
|
+
import v, { defaultSchema as o } from "rehype-sanitize";
|
|
7
|
+
import x from "remark-directive";
|
|
8
|
+
import y from "remark-gfm";
|
|
9
|
+
import { useFieldController as w } from "../../components/BaseQuestionnaireResponseForm/hooks.js";
|
|
10
|
+
import { RenderImage as R } from "../../components/RenderImage/index.js";
|
|
11
|
+
import { RenderImageCacheProvider as S } from "../../components/RenderImage/cache.js";
|
|
12
|
+
import i from "../ReadonlyWidgets.module.scss.js";
|
|
13
|
+
import { S as b } from "../ReadonlyWidgets.styles.js";
|
|
14
|
+
import { S as s } from "./styles.js";
|
|
15
|
+
import { remarkRestoreUnsupportedDirectives as M, remarkAdmonition as C } from "./utils.js";
|
|
16
|
+
var d;
|
|
17
|
+
const D = {
|
|
18
|
+
...o,
|
|
19
|
+
tagNames: [...o.tagNames ?? [], "u"],
|
|
20
|
+
attributes: {
|
|
21
|
+
...o.attributes,
|
|
22
|
+
div: [...((d = o.attributes) == null ? void 0 : d.div) ?? [], "className"]
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
function m({
|
|
16
26
|
text: n
|
|
17
27
|
}) {
|
|
18
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ t(S, { children: /* @__PURE__ */ t(s.WrapperMDRender, { children: /* @__PURE__ */ t(h, { rehypePlugins: [k, [v, D]], remarkPlugins: [y, x, M, C], components: {
|
|
19
29
|
img({
|
|
20
30
|
src: r,
|
|
21
|
-
alt:
|
|
31
|
+
alt: e
|
|
22
32
|
}) {
|
|
23
|
-
return r ? /* @__PURE__ */
|
|
33
|
+
return r ? /* @__PURE__ */ t(R, { src: r, alt: e }) : null;
|
|
24
34
|
},
|
|
25
35
|
p({
|
|
26
36
|
children: r
|
|
27
37
|
}) {
|
|
28
|
-
return
|
|
38
|
+
return g(r) && typeof r.type != "string" && r.type.name === "img" ? r : /* @__PURE__ */ t("p", { children: r });
|
|
29
39
|
},
|
|
30
40
|
u(r) {
|
|
31
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ t("span", { style: {
|
|
32
42
|
textDecoration: "underline"
|
|
33
43
|
}, ...r });
|
|
34
44
|
},
|
|
35
45
|
div: ({
|
|
36
46
|
className: r,
|
|
37
|
-
children:
|
|
38
|
-
}) => r && typeof r == "string" && (r != null && r.startsWith("admonition")) ? /* @__PURE__ */
|
|
47
|
+
children: e
|
|
48
|
+
}) => r && typeof r == "string" && (r != null && r.startsWith("admonition")) ? /* @__PURE__ */ t("div", { className: r, children: /* @__PURE__ */ t("div", { className: "admonition-content", children: e }) }) : /* @__PURE__ */ t("div", { children: e }),
|
|
39
49
|
table: ({
|
|
40
50
|
children: r
|
|
41
|
-
}) => /* @__PURE__ */
|
|
51
|
+
}) => /* @__PURE__ */ t("div", { className: "md-render-table-wrapper", children: /* @__PURE__ */ t("table", { children: r }) })
|
|
42
52
|
}, children: n || "-" }) }) });
|
|
43
53
|
}
|
|
44
|
-
function
|
|
54
|
+
function V({
|
|
45
55
|
parentPath: n,
|
|
46
56
|
questionItem: r
|
|
47
57
|
}) {
|
|
48
58
|
const {
|
|
49
|
-
linkId:
|
|
50
|
-
text:
|
|
51
|
-
} = r,
|
|
52
|
-
value:
|
|
53
|
-
} =
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
|
|
59
|
+
linkId: e,
|
|
60
|
+
text: u
|
|
61
|
+
} = r, l = [...n, e, 0, "value", "string"], {
|
|
62
|
+
value: a
|
|
63
|
+
} = w(l, r);
|
|
64
|
+
return /* @__PURE__ */ f(b.Question, { className: c(i.question, i.column, "form__question"), children: [
|
|
65
|
+
/* @__PURE__ */ t("span", { className: i.questionText, children: u }),
|
|
66
|
+
a ? /* @__PURE__ */ t(m, { text: a }) : null
|
|
57
67
|
] });
|
|
58
68
|
}
|
|
59
|
-
function
|
|
69
|
+
function $(n) {
|
|
60
70
|
const {
|
|
61
71
|
questionItem: r
|
|
62
72
|
} = n, {
|
|
63
|
-
text:
|
|
73
|
+
text: e
|
|
64
74
|
} = r;
|
|
65
|
-
return /* @__PURE__ */
|
|
75
|
+
return /* @__PURE__ */ t(p, { children: e ? /* @__PURE__ */ t(m, { text: e }) : null });
|
|
66
76
|
}
|
|
67
|
-
function
|
|
77
|
+
function B(n) {
|
|
68
78
|
const {
|
|
69
79
|
questionItem: r
|
|
70
|
-
} = n,
|
|
71
|
-
return /* @__PURE__ */
|
|
80
|
+
} = n, e = r == null ? void 0 : r.text;
|
|
81
|
+
return /* @__PURE__ */ t(p, { children: e && /* @__PURE__ */ t(s.CardWrapper, { children: /* @__PURE__ */ t(m, { text: e }) }) });
|
|
72
82
|
}
|
|
73
83
|
export {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
84
|
+
B as MarkdownCard,
|
|
85
|
+
$ as MarkdownDisplay,
|
|
86
|
+
m as MarkdownRender,
|
|
87
|
+
V as MarkdownRenderControl
|
|
78
88
|
};
|
|
@@ -7,7 +7,7 @@ export * from './Group';
|
|
|
7
7
|
export * from './Group/GroupSidebarNavigation';
|
|
8
8
|
export * from './Group/NavigationGroup';
|
|
9
9
|
export * from './GroupWizard';
|
|
10
|
-
export * from './
|
|
10
|
+
export * from './ImageAnnotation';
|
|
11
11
|
export * from './MarkdownRender';
|
|
12
12
|
export * from './Number';
|
|
13
13
|
export * from './Reference';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/readonly-controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/readonly-controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC"}
|
|
@@ -3,15 +3,15 @@ import { AudioAttachment as r } from "./AudioAttachment/index.js";
|
|
|
3
3
|
import { QuestionBoolean as n } from "./Boolean/index.js";
|
|
4
4
|
import { QuestionChoice as p } from "./Choice/index.js";
|
|
5
5
|
import { QuestionDateTime as a } from "./DateTime/index.js";
|
|
6
|
-
import { Display as
|
|
6
|
+
import { Display as u } from "./Display/index.js";
|
|
7
7
|
import { Col as s, Group as d, Row as l } from "./Group/index.js";
|
|
8
8
|
import { GroupSidebarNavigation as Q } from "./Group/GroupSidebarNavigation/index.js";
|
|
9
|
-
import { NavigationGroup as
|
|
10
|
-
import { GroupWizard as
|
|
11
|
-
import {
|
|
12
|
-
import { MarkdownCard as y, MarkdownDisplay as
|
|
13
|
-
import { QuestionDecimal as
|
|
14
|
-
import { QuestionReference as
|
|
9
|
+
import { NavigationGroup as I } from "./Group/NavigationGroup/index.js";
|
|
10
|
+
import { GroupWizard as G, GroupWizardVertical as k } from "./GroupWizard/index.js";
|
|
11
|
+
import { ImageAnnotation as D } from "./ImageAnnotation/index.js";
|
|
12
|
+
import { MarkdownCard as y, MarkdownDisplay as A, MarkdownRender as M, MarkdownRenderControl as T } from "./MarkdownRender/index.js";
|
|
13
|
+
import { QuestionDecimal as S, QuestionInteger as W, QuestionQuantity as v } from "./Number/index.js";
|
|
14
|
+
import { QuestionReference as N } from "./Reference/index.js";
|
|
15
15
|
import { AnxietyScore as q, DepressionScore as B } from "./Score/index.js";
|
|
16
16
|
import { QuestionText as P, TextWithInput as U } from "./String/index.js";
|
|
17
17
|
import { TimeRangePickerControl as j } from "./TimeRangePickerControl/index.js";
|
|
@@ -22,24 +22,24 @@ export {
|
|
|
22
22
|
r as AudioAttachment,
|
|
23
23
|
s as Col,
|
|
24
24
|
B as DepressionScore,
|
|
25
|
-
|
|
25
|
+
u as Display,
|
|
26
26
|
d as Group,
|
|
27
27
|
Q as GroupSidebarNavigation,
|
|
28
|
-
|
|
29
|
-
D as GroupWizardSidebar,
|
|
28
|
+
G as GroupWizard,
|
|
30
29
|
k as GroupWizardVertical,
|
|
30
|
+
D as ImageAnnotation,
|
|
31
31
|
y as MarkdownCard,
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
A as MarkdownDisplay,
|
|
33
|
+
M as MarkdownRender,
|
|
34
34
|
T as MarkdownRenderControl,
|
|
35
|
-
|
|
35
|
+
I as NavigationGroup,
|
|
36
36
|
n as QuestionBoolean,
|
|
37
37
|
p as QuestionChoice,
|
|
38
38
|
a as QuestionDateTime,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
S as QuestionDecimal,
|
|
40
|
+
W as QuestionInteger,
|
|
41
|
+
v as QuestionQuantity,
|
|
42
|
+
N as QuestionReference,
|
|
43
43
|
P as QuestionText,
|
|
44
44
|
l as Row,
|
|
45
45
|
U as TextWithInput,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readonly-controls.d.ts","sourceRoot":"","sources":["../../src/readonly-controls/readonly-controls.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,oCAAoC,EACpC,uCAAuC,EACvC,4BAA4B,EAC/B,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"readonly-controls.d.ts","sourceRoot":"","sources":["../../src/readonly-controls/readonly-controls.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,oCAAoC,EACpC,uCAAuC,EACvC,4BAA4B,EAC/B,MAAM,SAAS,CAAC;AA6BjB,eAAO,MAAM,sBAAsB,EAAE,4BAcpC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,kBAA0B,CAAC;AAE5D,eAAO,MAAM,iCAAiC,EAAE,uCAS/C,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,oCAO5C,CAAC"}
|
|
@@ -1,69 +1,60 @@
|
|
|
1
|
-
import { AudioAttachment as
|
|
2
|
-
import { QuestionBoolean as
|
|
1
|
+
import { AudioAttachment as e } from "./AudioAttachment/index.js";
|
|
2
|
+
import { QuestionBoolean as i } from "./Boolean/index.js";
|
|
3
3
|
import { QuestionChoice as r } from "./Choice/index.js";
|
|
4
4
|
import { QuestionDateTime as o } from "./DateTime/index.js";
|
|
5
|
-
import { Display as
|
|
6
|
-
import { Group as
|
|
5
|
+
import { Display as n } from "./Display/index.js";
|
|
6
|
+
import { Group as m, Row as p, Col as a } from "./Group/index.js";
|
|
7
7
|
import "react/jsx-runtime";
|
|
8
8
|
import "antd";
|
|
9
9
|
import "antd/es/layout/layout";
|
|
10
10
|
import "sdc-qrf";
|
|
11
11
|
import "styled-components";
|
|
12
12
|
import "antd/es/layout/Sider";
|
|
13
|
+
import "../components/Typography.js";
|
|
13
14
|
import { NavigationGroup as s } from "./Group/NavigationGroup/index.js";
|
|
14
15
|
import { GroupWizardVertical as c } from "./GroupWizard/index.js";
|
|
15
|
-
import "
|
|
16
|
-
import "
|
|
17
|
-
import "
|
|
18
|
-
import "../controls/GroupWizard/index.js";
|
|
19
|
-
import "lodash";
|
|
20
|
-
import "@lingui/core";
|
|
21
|
-
import "yup";
|
|
22
|
-
import "@beda.software/fhir-react";
|
|
23
|
-
import "fhirpath";
|
|
24
|
-
import "../utils/yup-locale.js";
|
|
25
|
-
import "../controls/GroupWizard/GroupWizardSidebar/styles.js";
|
|
26
|
-
import "@ant-design/icons";
|
|
27
|
-
import { MarkdownDisplay as d, MarkdownCard as u, MarkdownRenderControl as l } from "./MarkdownRender/index.js";
|
|
28
|
-
import { QuestionInteger as f, QuestionDecimal as C, QuestionQuantity as w } from "./Number/index.js";
|
|
16
|
+
import { ImageAnnotation as d } from "./ImageAnnotation/index.js";
|
|
17
|
+
import { MarkdownRenderControl as u, MarkdownCard as l, MarkdownDisplay as f } from "./MarkdownRender/index.js";
|
|
18
|
+
import { QuestionQuantity as g, QuestionDecimal as C, QuestionInteger as w } from "./Number/index.js";
|
|
29
19
|
import { QuestionReference as Q } from "./Reference/index.js";
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { TimeRangePickerControl as
|
|
20
|
+
import { DepressionScore as k, AnxietyScore as x } from "./Score/index.js";
|
|
21
|
+
import { TextWithInput as y, QuestionText as t } from "./String/index.js";
|
|
22
|
+
import { TimeRangePickerControl as I } from "./TimeRangePickerControl/index.js";
|
|
33
23
|
import { UploadFile as h } from "./UploadFile/index.js";
|
|
34
|
-
const
|
|
24
|
+
const L = {
|
|
35
25
|
text: t,
|
|
36
26
|
time: o,
|
|
37
27
|
string: t,
|
|
38
|
-
integer:
|
|
28
|
+
integer: w,
|
|
39
29
|
decimal: C,
|
|
40
|
-
quantity:
|
|
30
|
+
quantity: g,
|
|
41
31
|
choice: r,
|
|
42
32
|
date: o,
|
|
43
33
|
dateTime: o,
|
|
44
34
|
reference: Q,
|
|
45
|
-
display:
|
|
46
|
-
boolean:
|
|
35
|
+
display: n,
|
|
36
|
+
boolean: i,
|
|
47
37
|
attachment: h
|
|
48
|
-
},
|
|
38
|
+
}, O = m, X = {
|
|
49
39
|
"inline-choice": r,
|
|
50
|
-
"anxiety-score":
|
|
40
|
+
"anxiety-score": x,
|
|
51
41
|
"depression-score": k,
|
|
52
|
-
"input-inside-text":
|
|
53
|
-
"audio-recorder-uploader":
|
|
54
|
-
markdown:
|
|
55
|
-
"markdown-card":
|
|
56
|
-
"markdown-editor":
|
|
57
|
-
},
|
|
58
|
-
col:
|
|
59
|
-
row:
|
|
60
|
-
"time-range-picker":
|
|
42
|
+
"input-inside-text": y,
|
|
43
|
+
"audio-recorder-uploader": e,
|
|
44
|
+
markdown: f,
|
|
45
|
+
"markdown-card": l,
|
|
46
|
+
"markdown-editor": u
|
|
47
|
+
}, Y = {
|
|
48
|
+
col: a,
|
|
49
|
+
row: p,
|
|
50
|
+
"time-range-picker": I,
|
|
61
51
|
"wizard-navigation-group": s,
|
|
62
|
-
"wizard-vertical": c
|
|
52
|
+
"wizard-vertical": c,
|
|
53
|
+
"image-annotation": d
|
|
63
54
|
};
|
|
64
55
|
export {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
56
|
+
O as groupItemComponent,
|
|
57
|
+
Y as itemControlGroupItemComponents,
|
|
58
|
+
X as itemControlQuestionItemComponents,
|
|
59
|
+
L as questionItemComponents
|
|
69
60
|
};
|
package/dist/services/fhir.js
CHANGED
|
@@ -1,51 +1,78 @@
|
|
|
1
|
-
import { service as s, axiosInstance as
|
|
2
|
-
import { service as
|
|
1
|
+
import { service as s, axiosInstance as r } from "aidbox-react";
|
|
2
|
+
import { service as E, axiosInstance as J, resetInstanceToken as K, setInstanceBaseURL as N, setInstanceToken as O } from "aidbox-react";
|
|
3
3
|
import e from "@beda.software/emr-config";
|
|
4
|
-
import { initServicesFromService as
|
|
5
|
-
function
|
|
6
|
-
return e.fhirBaseURL ? e.fhirBaseURL :
|
|
4
|
+
import { initServicesFromService as R } from "@beda.software/fhir-react";
|
|
5
|
+
function c() {
|
|
6
|
+
return e.fhirBaseURL ? e.fhirBaseURL : r.defaults.baseURL + "/fhir";
|
|
7
7
|
}
|
|
8
|
-
const
|
|
9
|
-
baseURL:
|
|
10
|
-
...
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
const {
|
|
14
|
-
createFHIRResource: I,
|
|
8
|
+
const a = async (o) => s({
|
|
9
|
+
baseURL: c(),
|
|
10
|
+
...o
|
|
11
|
+
}), {
|
|
12
|
+
createFHIRResource: F,
|
|
15
13
|
updateFHIRResource: u,
|
|
16
|
-
getFHIRResource:
|
|
17
|
-
getFHIRResources:
|
|
18
|
-
getAllFHIRResources:
|
|
19
|
-
findFHIRResource:
|
|
20
|
-
saveFHIRResource:
|
|
21
|
-
saveFHIRResources:
|
|
22
|
-
patchFHIRResource:
|
|
23
|
-
deleteFHIRResource:
|
|
24
|
-
forceDeleteFHIRResource:
|
|
25
|
-
getConcepts:
|
|
26
|
-
applyFHIRService:
|
|
27
|
-
applyFHIRServices:
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
getFHIRResource: H,
|
|
15
|
+
getFHIRResources: n,
|
|
16
|
+
getAllFHIRResources: p,
|
|
17
|
+
findFHIRResource: d,
|
|
18
|
+
saveFHIRResource: v,
|
|
19
|
+
saveFHIRResources: x,
|
|
20
|
+
patchFHIRResource: l,
|
|
21
|
+
deleteFHIRResource: b,
|
|
22
|
+
forceDeleteFHIRResource: f,
|
|
23
|
+
getConcepts: g,
|
|
24
|
+
applyFHIRService: S,
|
|
25
|
+
applyFHIRServices: m
|
|
26
|
+
} = R(s, e.inactiveMapping), {
|
|
27
|
+
createFHIRResource: U,
|
|
28
|
+
updateFHIRResource: h,
|
|
29
|
+
getFHIRResource: y,
|
|
30
|
+
getFHIRResources: L,
|
|
31
|
+
getAllFHIRResources: A,
|
|
32
|
+
findFHIRResource: B,
|
|
33
|
+
saveFHIRResource: C,
|
|
34
|
+
saveFHIRResources: D,
|
|
35
|
+
patchFHIRResource: G,
|
|
36
|
+
deleteFHIRResource: k,
|
|
37
|
+
forceDeleteFHIRResource: M,
|
|
38
|
+
getConcepts: T,
|
|
39
|
+
applyFHIRService: $,
|
|
40
|
+
applyFHIRServices: j,
|
|
41
|
+
service: q
|
|
42
|
+
} = R(a, e.inactiveMapping);
|
|
30
43
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
S as aidboxApplyFHIRService,
|
|
45
|
+
m as aidboxApplyFHIRServices,
|
|
46
|
+
F as aidboxCreateFHIRResource,
|
|
47
|
+
b as aidboxDeleteFHIRResource,
|
|
48
|
+
d as aidboxFindFHIRResource,
|
|
49
|
+
f as aidboxForceDeleteFHIRResource,
|
|
50
|
+
p as aidboxGetAllFHIRResources,
|
|
51
|
+
g as aidboxGetConcepts,
|
|
52
|
+
H as aidboxGetFHIRResource,
|
|
53
|
+
n as aidboxGetFHIRResources,
|
|
54
|
+
v as aidboxSaveFHIRResource,
|
|
55
|
+
x as aidboxSaveFHIRResources,
|
|
56
|
+
E as aidboxService,
|
|
57
|
+
u as aidboxUpdateFHIRResource,
|
|
58
|
+
l as aidboxpatchFHIRResource,
|
|
59
|
+
$ as applyFHIRService,
|
|
60
|
+
j as applyFHIRServices,
|
|
61
|
+
J as axiosInstance,
|
|
62
|
+
U as createFHIRResource,
|
|
63
|
+
k as deleteFHIRResource,
|
|
64
|
+
B as findFHIRResource,
|
|
65
|
+
M as forceDeleteFHIRResource,
|
|
66
|
+
A as getAllFHIRResources,
|
|
67
|
+
T as getConcepts,
|
|
68
|
+
y as getFHIRResource,
|
|
69
|
+
L as getFHIRResources,
|
|
70
|
+
G as patchFHIRResource,
|
|
71
|
+
K as resetInstanceToken,
|
|
72
|
+
C as saveFHIRResource,
|
|
73
|
+
D as saveFHIRResources,
|
|
74
|
+
q as service,
|
|
75
|
+
N as setAidboxInstanceBaseURL,
|
|
76
|
+
O as setInstanceToken,
|
|
77
|
+
h as updateFHIRResource
|
|
51
78
|
};
|
package/dist/services/i18n.js
CHANGED
|
@@ -1,36 +1,15 @@
|
|
|
1
1
|
import "@lingui/core";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
label: "Русский",
|
|
14
|
-
messages: n,
|
|
15
|
-
antdLocale: m
|
|
16
|
-
},
|
|
17
|
-
en: {
|
|
18
|
-
label: "English",
|
|
19
|
-
messages: l,
|
|
20
|
-
antdLocale: o
|
|
21
|
-
},
|
|
22
|
-
es: {
|
|
23
|
-
label: "Español",
|
|
24
|
-
messages: r,
|
|
25
|
-
antdLocale: a
|
|
26
|
-
},
|
|
27
|
-
de: {
|
|
28
|
-
label: "Deutsch",
|
|
29
|
-
messages: t,
|
|
30
|
-
antdLocale: s
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
e.localesConfig;
|
|
2
|
+
import "antd/es/locale/de_DE";
|
|
3
|
+
import "antd/es/locale/en_US";
|
|
4
|
+
import "antd/es/locale/es_ES";
|
|
5
|
+
import "antd/es/locale/ru_RU";
|
|
6
|
+
import o from "@beda.software/emr-config";
|
|
7
|
+
import "../locale/de/messages.js";
|
|
8
|
+
import "../locale/en/messages.js";
|
|
9
|
+
import "../locale/es/messages.js";
|
|
10
|
+
import "../locale/ru/messages.js";
|
|
11
|
+
const g = () => localStorage.getItem("locale") || o.defaultLocale || "en", t = {};
|
|
12
|
+
o.localesConfig;
|
|
34
13
|
export {
|
|
35
|
-
|
|
14
|
+
g as getCurrentLocale
|
|
36
15
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._form_1v4sy_1 .ant-form-item-label{font-weight:700}._form_1v4sy_1 .ant-form-item-row{flex:1;flex-direction:column;justify-content:space-between;gap:12px}._form_1v4sy_1 .ant-form-item-label{text-align:start;white-space:normal}._form_1v4sy_1 .ant-form-item-label label{display:flex;height:auto}._form_1v4sy_1 .ant-form-item-label label:after{display:none}._form_1v4sy_1 .ant-form-item-control{flex-grow:0}._content_1v4sy_25{display:flex;flex-direction:column;gap:24px}._field_1v4sy_31{width:100%;margin-bottom:0;display:flex}._field_1v4sy_31.__hidden_1v4sy_36{display:none}._row_dy31e_1{display:flex}._inputWrapper_dy31e_5{flex:auto}._splitterWrapper_dy31e_9{display:flex;flex-direction:column;justify-content:flex-end}._splitter_dy31e_9{position:relative;bottom:22px;margin:0 8px;font-weight:400;font-size:20px;line-height:22px}._column_14bfg_1{display:flex;flex-direction:column}._row_14bfg_6{display:flex;flex-direction:row;justify-content:space-between;align-items:center}._questionText_14bfg_13{font-weight:700;margin:0}._answer_14bfg_18{display:block;min-width:40%;max-width:40%}.ant-dropdown .ant-table-filter-dropdown{border:0;background:none;box-shadow:none;position:relative;overflow:visible}._group_1ndd9_1{display:flex;flex-direction:column;gap:16px;width:100%}._groupTitle_1ndd9_8{font-weight:700;font-size:16px;line-height:24px}._row_1ndd9_14{display:flex;flex-direction:row;justify-content:space-between;gap:16px;width:100%}._col_1ndd9_22{display:flex;flex-direction:column;gap:16px}._inputContainer_gs0vq_1{display:flex;flex-direction:column}._inputHeader_gs0vq_6{display:flex;margin-bottom:12px;align-items:center;justify-content:space-between}._label_gs0vq_13{font-weight:700;font-size:14px;line-height:22px}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare const practitionerRoleDoctor = "doctor";
|
|
2
2
|
export declare const LOINC_CODESYSTEM = "http://loinc.org";
|
|
3
|
-
export declare const GROUP_HIDE_ADD_ITEM_BUTTON_EXTENSION_URL = "https://smartforms.csiro.au/ig/StructureDefinition/GroupHideAddItemButton";
|
|
4
3
|
//# sourceMappingURL=constants.d.ts.map
|