@beda.software/web-item-controls 0.1.26 → 0.1.27

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.
Files changed (70) hide show
  1. package/dist/components/ModalQuestionnaireGroupItem/index.js +3 -2
  2. package/dist/components/SearchBar/SearchBarColumn/ChoiceColumn/hooks.js +3 -2
  3. package/dist/contexts/image-annotation.d.ts +23 -0
  4. package/dist/contexts/image-annotation.d.ts.map +1 -0
  5. package/dist/contexts/image-annotation.js +5 -0
  6. package/dist/contexts/index.d.ts +1 -0
  7. package/dist/contexts/index.d.ts.map +1 -1
  8. package/dist/contexts/index.js +4 -2
  9. package/dist/controls/Choice/index.js +11 -10
  10. package/dist/controls/Display/index.js +4 -2
  11. package/dist/controls/GroupTable/RenderFormItemReadOnly/index.js +4 -2
  12. package/dist/controls/ImageAnnotation/AnnotationImage.d.ts +9 -14
  13. package/dist/controls/ImageAnnotation/AnnotationImage.d.ts.map +1 -1
  14. package/dist/controls/ImageAnnotation/AnnotationImage.js +48 -32
  15. package/dist/controls/ImageAnnotation/BodyAnnotationImage/body-regions.d.ts +23 -0
  16. package/dist/controls/ImageAnnotation/BodyAnnotationImage/body-regions.d.ts.map +1 -0
  17. package/dist/controls/ImageAnnotation/BodyAnnotationImage/body-regions.js +436 -0
  18. package/dist/controls/ImageAnnotation/BodyAnnotationImage/index.d.ts +13 -0
  19. package/dist/controls/ImageAnnotation/BodyAnnotationImage/index.d.ts.map +1 -0
  20. package/dist/controls/ImageAnnotation/BodyAnnotationImage/index.js +95 -0
  21. package/dist/controls/ImageAnnotation/BodyAnnotationImage/labels.d.ts +3 -0
  22. package/dist/controls/ImageAnnotation/BodyAnnotationImage/labels.d.ts.map +1 -0
  23. package/dist/controls/ImageAnnotation/BodyAnnotationImage/labels.js +224 -0
  24. package/dist/controls/ImageAnnotation/BodyAnnotationImage/styles.d.ts +17 -0
  25. package/dist/controls/ImageAnnotation/BodyAnnotationImage/styles.d.ts.map +1 -0
  26. package/dist/controls/ImageAnnotation/BodyAnnotationImage/styles.js +42 -0
  27. package/dist/controls/ImageAnnotation/BodyAnnotationImage/utils.d.ts +17 -0
  28. package/dist/controls/ImageAnnotation/BodyAnnotationImage/utils.d.ts.map +1 -0
  29. package/dist/controls/ImageAnnotation/BodyAnnotationImage/utils.js +35 -0
  30. package/dist/controls/ImageAnnotation/index.d.ts +2 -3
  31. package/dist/controls/ImageAnnotation/index.d.ts.map +1 -1
  32. package/dist/controls/ImageAnnotation/index.js +60 -92
  33. package/dist/controls/ImageAnnotation/useAnnotationImageComponent.d.ts +5 -0
  34. package/dist/controls/ImageAnnotation/useAnnotationImageComponent.d.ts.map +1 -0
  35. package/dist/controls/ImageAnnotation/useAnnotationImageComponent.js +11 -0
  36. package/dist/controls/ImageAnnotation/utils.d.ts +14 -1
  37. package/dist/controls/ImageAnnotation/utils.d.ts.map +1 -1
  38. package/dist/controls/ImageAnnotation/utils.js +38 -6
  39. package/dist/controls/InlineChoice/index.d.ts.map +1 -1
  40. package/dist/controls/InlineChoice/index.js +46 -55
  41. package/dist/controls/InlineChoice/styles.d.ts +27 -0
  42. package/dist/controls/InlineChoice/styles.d.ts.map +1 -0
  43. package/dist/controls/InlineChoice/styles.js +40 -0
  44. package/dist/controls/InlineChoice/utils.d.ts +5 -0
  45. package/dist/controls/InlineChoice/utils.d.ts.map +1 -0
  46. package/dist/controls/InlineChoice/utils.js +11 -0
  47. package/dist/controls/controls.js +16 -13
  48. package/dist/controls/index.d.ts +1 -0
  49. package/dist/controls/index.d.ts.map +1 -1
  50. package/dist/controls/index.js +77 -75
  51. package/dist/locale/de/messages.d.ts.map +1 -1
  52. package/dist/locale/de/messages.js +1 -1
  53. package/dist/locale/en/messages.d.ts.map +1 -1
  54. package/dist/locale/en/messages.js +1 -1
  55. package/dist/locale/es/messages.d.ts.map +1 -1
  56. package/dist/locale/es/messages.js +1 -1
  57. package/dist/locale/ru/messages.d.ts.map +1 -1
  58. package/dist/locale/ru/messages.js +1 -1
  59. package/dist/readonly-controls/Display/index.js +4 -2
  60. package/dist/readonly-controls/ImageAnnotation/index.d.ts.map +1 -1
  61. package/dist/readonly-controls/ImageAnnotation/index.js +25 -30
  62. package/package.json +2 -2
  63. package/src/locale/de/messages.po +172 -8
  64. package/src/locale/de/messages.ts +1 -1
  65. package/src/locale/en/messages.po +172 -8
  66. package/src/locale/en/messages.ts +1 -1
  67. package/src/locale/es/messages.po +172 -8
  68. package/src/locale/es/messages.ts +1 -1
  69. package/src/locale/ru/messages.po +172 -8
  70. package/src/locale/ru/messages.ts +1 -1
@@ -1,62 +1,53 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { Form as p, Space as g, Checkbox as x, Radio as S } from "antd";
3
- import r from "lodash";
4
- import { toAnswerValue as C } from "sdc-qrf";
5
- import { useFieldController as _ } from "../../components/BaseQuestionnaireResponseForm/hooks.js";
6
- import { getDisplay as a } from "../../utils/questionnaire.js";
7
- function E(y) {
1
+ import { jsx as t, jsxs as _, Fragment as j } from "react/jsx-runtime";
2
+ import { Form as q, Space as w, Checkbox as J, Radio as P } from "antd";
3
+ import C from "lodash";
4
+ import { toAnswerValue as R } from "sdc-qrf";
5
+ import { useFieldController as V } from "../../components/BaseQuestionnaireResponseForm/hooks.js";
6
+ import { getDisplay as B } from "../../utils/questionnaire.js";
7
+ import { S as r } from "./styles.js";
8
+ import { getAnswerOptionBackgroundImage as I } from "./utils.js";
9
+ function Q(b) {
8
10
  const {
9
11
  parentPath: k,
10
- questionItem: d
11
- } = y, {
12
- linkId: n,
13
- answerOption: t,
14
- repeats: v,
15
- choiceOrientation: s = "vertical",
16
- colsNumber: c
17
- } = d, I = [...k, n], {
18
- value: b,
19
- onChange: N,
20
- onMultiChange: w,
21
- disabled: m,
22
- formItem: u
23
- } = _(I, d), h = b || [], f = c ? {
12
+ questionItem: p
13
+ } = b, {
14
+ linkId: s,
15
+ answerOption: e,
16
+ repeats: d,
17
+ choiceOrientation: u = "vertical",
18
+ colsNumber: m
19
+ } = p, y = [...k, s], {
20
+ value: v,
21
+ onChange: x,
22
+ onMultiChange: N,
23
+ disabled: A,
24
+ formItem: S
25
+ } = V(y, p), $ = v || [], h = (e == null ? void 0 : e.some((i) => I(i))) ?? !1, F = m ? {
24
26
  width: "100%",
25
27
  display: "grid",
26
- gridTemplateColumns: `repeat(${c}, 1fr)`
27
- } : {};
28
- return v ? /* @__PURE__ */ i(p.Item, { ...u, "data-testid": n, "data-linkid": n, children: /* @__PURE__ */ i(g, { direction: s, wrap: !0, style: f, children: t == null ? void 0 : t.map((o) => {
29
- const e = C(o, "value");
30
- return /* @__PURE__ */ i(
31
- x,
32
- {
33
- checked: h.findIndex((l) => r.isEqual(l.value, e)) !== -1,
34
- disabled: m,
35
- onChange: () => w({
36
- value: e
37
- }),
38
- "data-testid": `inline-choice__${r.kebabCase(JSON.stringify(a(e)))}`,
39
- children: a(e)
40
- },
41
- JSON.stringify(e)
42
- );
43
- }) }) }) : /* @__PURE__ */ i(p.Item, { ...u, "data-testid": n, "data-linkid": n, children: /* @__PURE__ */ i(g, { direction: s, wrap: !0, style: f, children: t == null ? void 0 : t.map((o) => {
44
- const e = C(o, "value");
45
- return /* @__PURE__ */ i(
46
- S,
47
- {
48
- checked: h.findIndex((l) => r.isEqual(l.value, e)) !== -1,
49
- disabled: m,
50
- onChange: () => N([{
51
- value: e
52
- }]),
53
- "data-testid": `inline-choice__${r.kebabCase(JSON.stringify(a(e)))}`,
54
- children: a(e)
55
- },
56
- JSON.stringify(e)
57
- );
58
- }) }) });
28
+ gridTemplateColumns: `repeat(${m}, 1fr)`
29
+ } : {}, f = (i) => {
30
+ const o = R(i, "value"), l = B(o), c = JSON.stringify(o), a = {
31
+ checked: $.findIndex((O) => C.isEqual(O.value, o)) !== -1,
32
+ disabled: A,
33
+ onChange: d ? () => N({
34
+ value: o
35
+ }) : () => x([{
36
+ value: o
37
+ }]),
38
+ // TODO: use linkId + __ + code instead
39
+ "data-testid": `inline-choice__${C.kebabCase(JSON.stringify(l))}`
40
+ };
41
+ if (!h)
42
+ return d ? /* @__PURE__ */ t(J, { ...a, children: l }, c) : /* @__PURE__ */ t(P, { ...a, children: l }, c);
43
+ const n = I(i), g = /* @__PURE__ */ _(j, { children: [
44
+ n != null && n.url ? /* @__PURE__ */ t(r.Image, { src: n.url, alt: n.title ?? "" }) : null,
45
+ /* @__PURE__ */ t(r.Label, { children: l })
46
+ ] });
47
+ return d ? /* @__PURE__ */ t(r.CheckboxOption, { ...a, children: g }, c) : /* @__PURE__ */ t(r.RadioOption, { ...a, children: g }, c);
48
+ };
49
+ return /* @__PURE__ */ t(q.Item, { ...S, "data-testid": s, "data-linkid": s, children: h ? /* @__PURE__ */ t(r.OptionsList, { $colsNumber: m, $orientation: u, children: e == null ? void 0 : e.map(f) }) : /* @__PURE__ */ t(w, { direction: u, wrap: !0, style: F, children: e == null ? void 0 : e.map(f) }) });
59
50
  }
60
51
  export {
61
- E as InlineChoice
52
+ Q as InlineChoice
62
53
  };
@@ -0,0 +1,27 @@
1
+ export declare const S: {
2
+ OptionsList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$colsNumber" | "$orientation"> & {
3
+ $colsNumber?: number;
4
+ $orientation: "horizontal" | "vertical";
5
+ }, never> & Partial<Pick<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$colsNumber" | "$orientation"> & {
6
+ $colsNumber?: number;
7
+ $orientation: "horizontal" | "vertical";
8
+ }, never>>> & string;
9
+ RadioOption: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('antd').RadioProps & import('react').RefAttributes<import('rc-checkbox').CheckboxRef>, "ref"> & {
10
+ ref?: ((instance: import('rc-checkbox').CheckboxRef | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<import('rc-checkbox').CheckboxRef> | null | undefined;
11
+ }, never> & Partial<Pick<Omit<import('antd').RadioProps & import('react').RefAttributes<import('rc-checkbox').CheckboxRef>, "ref"> & {
12
+ ref?: ((instance: import('rc-checkbox').CheckboxRef | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<import('rc-checkbox').CheckboxRef> | null | undefined;
13
+ }, never>>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').RadioProps & import('react').RefAttributes<import('rc-checkbox').CheckboxRef>> & {
14
+ Group: import('react').NamedExoticComponent<import('antd').RadioGroupProps & import('react').RefAttributes<HTMLDivElement>>;
15
+ Button: import('react').ForwardRefExoticComponent<import('antd/es/radio/radioButton').RadioButtonProps & import('react').RefAttributes<import('rc-checkbox').CheckboxRef>>;
16
+ }, keyof import('react').Component<any, {}, any>>;
17
+ CheckboxOption: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('antd').CheckboxProps & import('react').RefAttributes<import('rc-checkbox').CheckboxRef>, "ref"> & {
18
+ ref?: ((instance: import('rc-checkbox').CheckboxRef | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<import('rc-checkbox').CheckboxRef> | null | undefined;
19
+ }, never> & Partial<Pick<Omit<import('antd').CheckboxProps & import('react').RefAttributes<import('rc-checkbox').CheckboxRef>, "ref"> & {
20
+ ref?: ((instance: import('rc-checkbox').CheckboxRef | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<import('rc-checkbox').CheckboxRef> | null | undefined;
21
+ }, never>>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').CheckboxProps & import('react').RefAttributes<import('rc-checkbox').CheckboxRef>> & {
22
+ Group: <T = any>(props: import('antd/es/checkbox').CheckboxGroupProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
23
+ }, keyof import('react').Component<any, {}, any>>;
24
+ Image: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>>> & string;
25
+ Label: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
26
+ };
27
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/controls/InlineChoice/styles.ts"],"names":[],"mappings":"AA2CA,eAAO,MAAM,CAAC;;sBAC8B,MAAM;sBAAgB,YAAY,GAAG,UAAU;;sBAA/C,MAAM;sBAAgB,YAAY,GAAG,UAAU;;;;;;;;;;;;;;;;;;;CAsD1F,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { Checkbox as r, Radio as t } from "antd";
2
+ import e, { css as o } from "styled-components";
3
+ const a = o(["&&{display:flex;align-items:flex-start;gap:8px;width:var(--inline-choice-option-width,100%);margin:0;padding:16px;border:1px solid ", ";border-radius:8px;background-color:", ";}&& > .ant-radio,&& > .ant-checkbox{align-self:flex-start;margin-top:4px;}&& > span:last-child{display:flex;align-items:flex-start;gap:8px;flex:1;min-width:0;padding-inline:0;}&&.ant-radio-wrapper-disabled,&&.ant-checkbox-wrapper-disabled{background-color:", ";cursor:not-allowed;}&&.ant-radio-wrapper-disabled img,&&.ant-checkbox-wrapper-disabled img{opacity:0.5;}"], ({
4
+ theme: i
5
+ }) => i.neutral.border, ({
6
+ theme: i
7
+ }) => i.neutralPalette.gray_1, ({
8
+ theme: i
9
+ }) => i.neutralPalette.gray_2), l = {
10
+ OptionsList: e.div.withConfig({
11
+ displayName: "InlineChoice__OptionsList",
12
+ componentId: "sc-9rhz6u-0"
13
+ })(["width:100%;gap:16px;", ""], ({
14
+ $colsNumber: i,
15
+ $orientation: n
16
+ }) => i ? o(["display:grid;grid-template-columns:repeat(", ",1fr);"], i) : n === "horizontal" ? o(["--inline-choice-option-width:auto;display:flex;flex-wrap:wrap;"]) : o(["display:flex;flex-direction:column;"])),
17
+ RadioOption: e(t).withConfig({
18
+ displayName: "InlineChoice__RadioOption",
19
+ componentId: "sc-9rhz6u-1"
20
+ })(["", " &&.ant-radio-wrapper-checked{border-color:", ";}"], a, ({
21
+ theme: i
22
+ }) => i.primary),
23
+ CheckboxOption: e(r).withConfig({
24
+ displayName: "InlineChoice__CheckboxOption",
25
+ componentId: "sc-9rhz6u-2"
26
+ })(["", " &&.ant-checkbox-wrapper-checked{border-color:", ";}"], a, ({
27
+ theme: i
28
+ }) => i.primary),
29
+ Image: e.img.withConfig({
30
+ displayName: "InlineChoice__Image",
31
+ componentId: "sc-9rhz6u-3"
32
+ })(["flex-shrink:0;width:120px;height:80px;object-fit:contain;"]),
33
+ Label: e.span.withConfig({
34
+ displayName: "InlineChoice__Label",
35
+ componentId: "sc-9rhz6u-4"
36
+ })(["display:flex;flex-direction:column;gap:4px;flex:1;min-width:0;font-weight:700;overflow-wrap:break-word;"])
37
+ };
38
+ export {
39
+ l as S
40
+ };
@@ -0,0 +1,5 @@
1
+ import { Attachment, QuestionnaireItemAnswerOption } from 'fhir/r4b';
2
+ /** Attachment rendered next to the answer option, the same extension as the item level one */
3
+ export declare const answerOptionBackgroundImageUrl = "http://aidbox.io/questionnaire-backgroundImage";
4
+ export declare function getAnswerOptionBackgroundImage(answerOption: QuestionnaireItemAnswerOption): Attachment | undefined;
5
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/controls/InlineChoice/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAErE,8FAA8F;AAC9F,eAAO,MAAM,8BAA8B,mDAAmD,CAAC;AAE/F,wBAAgB,8BAA8B,CAAC,YAAY,EAAE,6BAA6B,GAAG,UAAU,GAAG,SAAS,CAElH"}
@@ -0,0 +1,11 @@
1
+ const a = "http://aidbox.io/questionnaire-backgroundImage";
2
+ function r(t) {
3
+ var n, e;
4
+ return (e = (n = t.extension) == null ? void 0 : n.find(({
5
+ url: o
6
+ }) => o === a)) == null ? void 0 : e.valueAttachment;
7
+ }
8
+ export {
9
+ a as answerOptionBackgroundImageUrl,
10
+ r as getAnswerOptionBackgroundImage
11
+ };
@@ -44,16 +44,19 @@ import "../utils/yup-locale.js";
44
44
  import "antd/es/layout/layout";
45
45
  import "antd/es/layout/Sider";
46
46
  import "../components/Wizard/styles.js";
47
- import { GroupWizardVertical as I, GroupWizard as e, GroupWizardWithTooltips as G } from "./GroupWizard/index.js";
47
+ import { GroupWizardVertical as I, GroupWizard as m, GroupWizardWithTooltips as G } from "./GroupWizard/index.js";
48
48
  import "../readonly-controls/GroupWizard/styles.js";
49
49
  import "./ImageAnnotation/styles.js";
50
+ import "../contexts/image-annotation.js";
51
+ import "./ImageAnnotation/AnnotationImage.js";
50
52
  import "../readonly-controls/MarkdownRender/index.js";
51
53
  import { QuestionReference as T } from "./Reference/index.js";
52
54
  import "./GroupTable/RenderFormItemReadOnly/styles.js";
53
55
  import { GroupTabs as x } from "./GroupTabs/index.js";
54
56
  import { ImageAnnotation as W } from "./ImageAnnotation/index.js";
57
+ import "./ImageAnnotation/BodyAnnotationImage/index.js";
55
58
  import { InlineChoice as o } from "./InlineChoice/index.js";
56
- import { InlineReference as m } from "./InlineReference/index.js";
59
+ import { InlineReference as e } from "./InlineReference/index.js";
57
60
  import { QuestionInputInsideText as z } from "./InsideText/index.js";
58
61
  import { MDEditorControl as R } from "./MDEditorControl/index.js";
59
62
  import "@mdxeditor/editor";
@@ -72,7 +75,7 @@ import { QuestionEmail as E, QuestionString as M, QuestionText as q } from "./St
72
75
  import { TextWithMacroFill as A } from "./TextWithMacroFill/index.js";
73
76
  import { TimeRangePickerControl as F } from "./TimeRangePickerControl/index.js";
74
77
  import { UploadFileControl as U } from "./UploadFileControl/index.js";
75
- const ar = {
78
+ const ur = {
76
79
  text: q,
77
80
  string: M,
78
81
  decimal: k,
@@ -87,14 +90,14 @@ const ar = {
87
90
  reference: T,
88
91
  quantity: S,
89
92
  attachment: U
90
- }, dr = l, sr = {
93
+ }, lr = l, cr = {
91
94
  phoneWidget: y,
92
95
  email: E,
93
96
  passwordWidget: v,
94
97
  slider: B,
95
98
  "solid-radio-button": P,
96
99
  "inline-choice": o,
97
- "inline-reference": m,
100
+ "inline-reference": e,
98
101
  "text-with-macro": A,
99
102
  "radio-button": o,
100
103
  "check-box": o,
@@ -103,8 +106,8 @@ const ar = {
103
106
  "audio-recorder-uploader": p,
104
107
  barcode: n,
105
108
  // reference-radio-button is deprecated, use inline-reference instead
106
- "reference-radio-button": m
107
- }, ur = {
109
+ "reference-radio-button": e
110
+ }, fr = {
108
111
  col: C,
109
112
  row: h,
110
113
  gtable: t,
@@ -116,9 +119,9 @@ const ar = {
116
119
  "sub-card": c,
117
120
  "blood-pressure": a,
118
121
  "time-range-picker": F,
119
- wizard: e,
122
+ wizard: m,
120
123
  "wizard-with-tooltips": G,
121
- "wizard-navigation-group": e,
124
+ "wizard-navigation-group": m,
122
125
  "wizard-vertical": I,
123
126
  "group-tabs": x,
124
127
  "group-table": w,
@@ -126,8 +129,8 @@ const ar = {
126
129
  "image-annotation": W
127
130
  };
128
131
  export {
129
- dr as groupItemComponent,
130
- ur as itemControlGroupItemComponents,
131
- sr as itemControlQuestionItemComponents,
132
- ar as questionItemComponents
132
+ lr as groupItemComponent,
133
+ fr as itemControlGroupItemComponents,
134
+ cr as itemControlQuestionItemComponents,
135
+ ur as questionItemComponents
133
136
  };
@@ -21,6 +21,7 @@ export * from './GroupTable/RenderFormItemReadOnly';
21
21
  export * from './GroupTabs';
22
22
  export * from './GroupWizard';
23
23
  export * from './ImageAnnotation';
24
+ export * from './ImageAnnotation/BodyAnnotationImage';
24
25
  export * from './InlineChoice';
25
26
  export * from './InlineReference';
26
27
  export * from './InsideText';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAE3B,cAAc,oDAAoD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uCAAuC,CAAC;AACtD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAE3B,cAAc,oDAAoD,CAAC"}
@@ -6,11 +6,11 @@ import { QuestionBoolean as a } from "./Boolean/index.js";
6
6
  import { ChoiceQuestionSelect as x, ChoiceQuestionValueSet as f, QuestionChoice as s } from "./Choice/index.js";
7
7
  import { DateTimeSlotPicker as d, usePractitionerRoleId as G } from "./DateTimeSlotPicker/index.js";
8
8
  import { Display as c, TextWithLink as Q } from "./Display/index.js";
9
- import { EditableGroup as R } from "./EditableGroup/index.js";
10
- import { Col as h, Grid as I, Group as b, Gtable as S, MainCard as W, Row as P, Section as w, SectionWithDivider as D, SubCard as E } from "./Group/index.js";
11
- import { GroupContext as M } from "./Group/context.js";
9
+ import { EditableGroup as I } from "./EditableGroup/index.js";
10
+ import { Col as T, Grid as h, Group as b, Gtable as S, MainCard as W, Row as P, Section as w, SectionWithDivider as A, SubCard as D } from "./Group/index.js";
11
+ import { GroupContext as F } from "./Group/context.js";
12
12
  import { GridGroup as k } from "./Group/GridGroup/index.js";
13
- import { GroupCard as B, GroupMainCard as V, GroupSubCard as y } from "./Group/GroupCard/index.js";
13
+ import { GroupCard as B, GroupMainCard as y, GroupSubCard as V } from "./Group/GroupCard/index.js";
14
14
  import { GTable as H } from "./Group/GTable/index.js";
15
15
  import { RepeatableGroups as v } from "./Group/RepeatableGroups/index.js";
16
16
  import { RepeatableGroupCard as O } from "./Group/RepeatableGroups/RepeatableGroupCard/index.js";
@@ -23,50 +23,52 @@ import { RenderFormItemReadOnly as ro } from "./GroupTable/RenderFormItemReadOnl
23
23
  import { GroupTabs as po } from "./GroupTabs/index.js";
24
24
  import { GroupWizard as mo, GroupWizardBus as no, GroupWizardVertical as ao, GroupWizardWithTooltips as uo, getGroupStats as xo } from "./GroupWizard/index.js";
25
25
  import { ImageAnnotation as so } from "./ImageAnnotation/index.js";
26
- import { InlineChoice as Go } from "./InlineChoice/index.js";
27
- import { InlineReference as co } from "./InlineReference/index.js";
28
- import { QuestionInputInsideText as go } from "./InsideText/index.js";
29
- import { MDEditorControl as To } from "./MDEditorControl/index.js";
30
- import { MarkDownEditor as Io } from "./MDEditorControl/MarkDownEditor/index.js";
31
- import { ImageEditModal as So } from "./MDEditorControl/MarkDownEditor/ImageEdit/index.js";
32
- import { QuestionDecimal as Po, QuestionInteger as wo, QuestionQuantity as Do } from "./Number/index.js";
33
- import { PasswordInput as Fo } from "./PasswordInput/index.js";
34
- import { QuestionPhone as Ao } from "./PhoneInput/index.js";
35
- import { QuestionDateTime as zo } from "./QuestionDateTime/index.js";
36
- import { QuestionSolidRadio as Vo } from "./Radio/index.js";
37
- import { QuestionReference as Uo, useAnswerReference as Ho, useFieldReference as qo } from "./Reference/index.js";
38
- import { QuestionSlider as Lo } from "./Slider/index.js";
39
- import { QuestionEmail as Yo, QuestionString as jo, QuestionText as Jo } from "./String/index.js";
40
- import { TextWithMacroFill as No } from "./TextWithMacroFill/index.js";
41
- import { TimeRangePickerControl as Zo } from "./TimeRangePickerControl/index.js";
42
- import { useTimeRangePickerControl as $o } from "./TimeRangePickerControl/hooks.js";
43
- import { UploadFileControl as ee } from "./UploadFileControl/index.js";
44
- import { useUploader as te } from "./UploadFileControl/hooks.js";
45
- import { groupItemComponent as ie, itemControlGroupItemComponents as me, itemControlQuestionItemComponents as ne, questionItemComponents as ae } from "./controls.js";
46
- import { getFieldErrorMessage as xe, isGroupWizard as fe } from "../components/BaseQuestionnaireResponseForm/utils.js";
47
- import { RepeatableGroupRow as le } from "./Group/RepeatableGroups/RepeatableGroupRow.js";
48
- import { getValueFromAnswerValue as Ge, isFormAnswerItems as Ce } from "./GroupTable/utils.js";
49
- import { useEditableGroup as Qe } from "./EditableGroup/hooks.js";
50
- import { useGroupTable as Re } from "./GroupTable/hooks.js";
51
- import { useGroupTableChart as he } from "./GroupTable/GroupTableChart/hooks.js";
26
+ import { BodyAnnotationImage as Go } from "./ImageAnnotation/BodyAnnotationImage/index.js";
27
+ import { InlineChoice as co } from "./InlineChoice/index.js";
28
+ import { InlineReference as go } from "./InlineReference/index.js";
29
+ import { QuestionInputInsideText as Ro } from "./InsideText/index.js";
30
+ import { MDEditorControl as ho } from "./MDEditorControl/index.js";
31
+ import { MarkDownEditor as So } from "./MDEditorControl/MarkDownEditor/index.js";
32
+ import { ImageEditModal as Po } from "./MDEditorControl/MarkDownEditor/ImageEdit/index.js";
33
+ import { QuestionDecimal as Ao, QuestionInteger as Do, QuestionQuantity as Eo } from "./Number/index.js";
34
+ import { PasswordInput as Mo } from "./PasswordInput/index.js";
35
+ import { QuestionPhone as zo } from "./PhoneInput/index.js";
36
+ import { QuestionDateTime as yo } from "./QuestionDateTime/index.js";
37
+ import { QuestionSolidRadio as Uo } from "./Radio/index.js";
38
+ import { QuestionReference as qo, useAnswerReference as vo, useFieldReference as Lo } from "./Reference/index.js";
39
+ import { QuestionSlider as Yo } from "./Slider/index.js";
40
+ import { QuestionEmail as Jo, QuestionString as Ko, QuestionText as No } from "./String/index.js";
41
+ import { TextWithMacroFill as Zo } from "./TextWithMacroFill/index.js";
42
+ import { TimeRangePickerControl as $o } from "./TimeRangePickerControl/index.js";
43
+ import { useTimeRangePickerControl as ee } from "./TimeRangePickerControl/hooks.js";
44
+ import { UploadFileControl as te } from "./UploadFileControl/index.js";
45
+ import { useUploader as ie } from "./UploadFileControl/hooks.js";
46
+ import { groupItemComponent as ne, itemControlGroupItemComponents as ae, itemControlQuestionItemComponents as ue, questionItemComponents as xe } from "./controls.js";
47
+ import { getFieldErrorMessage as se, isGroupWizard as le } from "../components/BaseQuestionnaireResponseForm/utils.js";
48
+ import { RepeatableGroupRow as Ge } from "./Group/RepeatableGroups/RepeatableGroupRow.js";
49
+ import { getValueFromAnswerValue as ce, isFormAnswerItems as Qe } from "./GroupTable/utils.js";
50
+ import { useEditableGroup as Ie } from "./EditableGroup/hooks.js";
51
+ import { useGroupTable as Te } from "./GroupTable/hooks.js";
52
+ import { useGroupTableChart as be } from "./GroupTable/GroupTableChart/hooks.js";
52
53
  export {
53
54
  r as AudioRecorderUploader,
54
55
  p as Barcode,
55
56
  m as BloodPressure,
57
+ Go as BodyAnnotationImage,
56
58
  x as ChoiceQuestionSelect,
57
59
  f as ChoiceQuestionValueSet,
58
- h as Col,
60
+ T as Col,
59
61
  d as DateTimeSlotPicker,
60
62
  c as Display,
61
- R as EditableGroup,
63
+ I as EditableGroup,
62
64
  H as GTable,
63
- I as Grid,
65
+ h as Grid,
64
66
  k as GridGroup,
65
67
  b as Group,
66
68
  B as GroupCard,
67
- M as GroupContext,
68
- V as GroupMainCard,
69
- y as GroupSubCard,
69
+ F as GroupContext,
70
+ y as GroupMainCard,
71
+ V as GroupSubCard,
70
72
  j as GroupTable,
71
73
  K as GroupTableChart,
72
74
  po as GroupTabs,
@@ -77,56 +79,56 @@ export {
77
79
  S as Gtable,
78
80
  X as HighlightArea,
79
81
  so as ImageAnnotation,
80
- So as ImageEditModal,
81
- Go as InlineChoice,
82
- co as InlineReference,
83
- To as MDEditorControl,
82
+ Po as ImageEditModal,
83
+ co as InlineChoice,
84
+ go as InlineReference,
85
+ ho as MDEditorControl,
84
86
  W as MainCard,
85
- Io as MarkDownEditor,
86
- Fo as PasswordInput,
87
+ So as MarkDownEditor,
88
+ Mo as PasswordInput,
87
89
  a as QuestionBoolean,
88
90
  s as QuestionChoice,
89
- zo as QuestionDateTime,
90
- Po as QuestionDecimal,
91
- Yo as QuestionEmail,
92
- go as QuestionInputInsideText,
93
- wo as QuestionInteger,
94
- Ao as QuestionPhone,
95
- Do as QuestionQuantity,
96
- Uo as QuestionReference,
97
- Lo as QuestionSlider,
98
- Vo as QuestionSolidRadio,
99
- jo as QuestionString,
100
- Jo as QuestionText,
91
+ yo as QuestionDateTime,
92
+ Ao as QuestionDecimal,
93
+ Jo as QuestionEmail,
94
+ Ro as QuestionInputInsideText,
95
+ Do as QuestionInteger,
96
+ zo as QuestionPhone,
97
+ Eo as QuestionQuantity,
98
+ qo as QuestionReference,
99
+ Yo as QuestionSlider,
100
+ Uo as QuestionSolidRadio,
101
+ Ko as QuestionString,
102
+ No as QuestionText,
101
103
  ro as RenderFormItemReadOnly,
102
104
  O as RepeatableGroupCard,
103
- le as RepeatableGroupRow,
105
+ Ge as RepeatableGroupRow,
104
106
  v as RepeatableGroups,
105
107
  P as Row,
106
108
  w as Section,
107
- D as SectionWithDivider,
108
- E as SubCard,
109
+ A as SectionWithDivider,
110
+ D as SubCard,
109
111
  Q as TextWithLink,
110
- No as TextWithMacroFill,
111
- Zo as TimeRangePickerControl,
112
+ Zo as TextWithMacroFill,
113
+ $o as TimeRangePickerControl,
112
114
  oo as Tooltip,
113
- ee as UploadFileControl,
114
- xe as getFieldErrorMessage,
115
+ te as UploadFileControl,
116
+ se as getFieldErrorMessage,
115
117
  xo as getGroupStats,
116
118
  _ as getHighlightYParams,
117
- Ge as getValueFromAnswerValue,
118
- ie as groupItemComponent,
119
- Ce as isFormAnswerItems,
120
- fe as isGroupWizard,
121
- me as itemControlGroupItemComponents,
122
- ne as itemControlQuestionItemComponents,
123
- ae as questionItemComponents,
124
- Ho as useAnswerReference,
125
- Qe as useEditableGroup,
126
- qo as useFieldReference,
127
- Re as useGroupTable,
128
- he as useGroupTableChart,
119
+ ce as getValueFromAnswerValue,
120
+ ne as groupItemComponent,
121
+ Qe as isFormAnswerItems,
122
+ le as isGroupWizard,
123
+ ae as itemControlGroupItemComponents,
124
+ ue as itemControlQuestionItemComponents,
125
+ xe as questionItemComponents,
126
+ vo as useAnswerReference,
127
+ Ie as useEditableGroup,
128
+ Lo as useFieldReference,
129
+ Te as useGroupTable,
130
+ be as useGroupTableChart,
129
131
  G as usePractitionerRoleId,
130
- $o as useTimeRangePickerControl,
131
- te as useUploader
132
+ ee as useTimeRangePickerControl,
133
+ ie as useUploader
132
134
  };
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/locale/de/messages.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAA6id,QAAQ,CAAC"}
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/locale/de/messages.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAAypf,QAAQ,CAAC"}