@beda.software/web-item-controls 0.1.26 → 0.1.28-tab-validation.1
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/components/ModalQuestionnaireGroupItem/index.js +3 -2
- package/dist/components/SearchBar/SearchBarColumn/ChoiceColumn/hooks.js +3 -2
- package/dist/contexts/image-annotation.d.ts +23 -0
- package/dist/contexts/image-annotation.d.ts.map +1 -0
- package/dist/contexts/image-annotation.js +5 -0
- package/dist/contexts/index.d.ts +1 -0
- package/dist/contexts/index.d.ts.map +1 -1
- package/dist/contexts/index.js +4 -2
- package/dist/controls/Choice/index.js +11 -10
- package/dist/controls/Display/index.js +4 -2
- package/dist/controls/GroupTable/RenderFormItemReadOnly/index.js +4 -2
- package/dist/controls/GroupTabs/index.d.ts.map +1 -1
- package/dist/controls/GroupTabs/index.js +41 -27
- package/dist/controls/GroupTabs/utils.d.ts +8 -0
- package/dist/controls/GroupTabs/utils.d.ts.map +1 -0
- package/dist/controls/GroupTabs/utils.js +10 -0
- package/dist/controls/ImageAnnotation/AnnotationImage.d.ts +9 -14
- package/dist/controls/ImageAnnotation/AnnotationImage.d.ts.map +1 -1
- package/dist/controls/ImageAnnotation/AnnotationImage.js +48 -32
- package/dist/controls/ImageAnnotation/BodyAnnotationImage/body-regions.d.ts +23 -0
- package/dist/controls/ImageAnnotation/BodyAnnotationImage/body-regions.d.ts.map +1 -0
- package/dist/controls/ImageAnnotation/BodyAnnotationImage/body-regions.js +436 -0
- package/dist/controls/ImageAnnotation/BodyAnnotationImage/index.d.ts +13 -0
- package/dist/controls/ImageAnnotation/BodyAnnotationImage/index.d.ts.map +1 -0
- package/dist/controls/ImageAnnotation/BodyAnnotationImage/index.js +95 -0
- package/dist/controls/ImageAnnotation/BodyAnnotationImage/labels.d.ts +3 -0
- package/dist/controls/ImageAnnotation/BodyAnnotationImage/labels.d.ts.map +1 -0
- package/dist/controls/ImageAnnotation/BodyAnnotationImage/labels.js +224 -0
- package/dist/controls/ImageAnnotation/BodyAnnotationImage/styles.d.ts +17 -0
- package/dist/controls/ImageAnnotation/BodyAnnotationImage/styles.d.ts.map +1 -0
- package/dist/controls/ImageAnnotation/BodyAnnotationImage/styles.js +42 -0
- package/dist/controls/ImageAnnotation/BodyAnnotationImage/utils.d.ts +17 -0
- package/dist/controls/ImageAnnotation/BodyAnnotationImage/utils.d.ts.map +1 -0
- package/dist/controls/ImageAnnotation/BodyAnnotationImage/utils.js +35 -0
- package/dist/controls/ImageAnnotation/index.d.ts +2 -3
- package/dist/controls/ImageAnnotation/index.d.ts.map +1 -1
- package/dist/controls/ImageAnnotation/index.js +60 -92
- package/dist/controls/ImageAnnotation/useAnnotationImageComponent.d.ts +5 -0
- package/dist/controls/ImageAnnotation/useAnnotationImageComponent.d.ts.map +1 -0
- package/dist/controls/ImageAnnotation/useAnnotationImageComponent.js +11 -0
- package/dist/controls/ImageAnnotation/utils.d.ts +14 -1
- package/dist/controls/ImageAnnotation/utils.d.ts.map +1 -1
- package/dist/controls/ImageAnnotation/utils.js +38 -6
- package/dist/controls/InlineChoice/index.d.ts.map +1 -1
- package/dist/controls/InlineChoice/index.js +46 -55
- package/dist/controls/InlineChoice/styles.d.ts +27 -0
- package/dist/controls/InlineChoice/styles.d.ts.map +1 -0
- package/dist/controls/InlineChoice/styles.js +40 -0
- package/dist/controls/InlineChoice/utils.d.ts +5 -0
- package/dist/controls/InlineChoice/utils.d.ts.map +1 -0
- package/dist/controls/InlineChoice/utils.js +11 -0
- package/dist/controls/controls.js +16 -13
- package/dist/controls/index.d.ts +1 -0
- package/dist/controls/index.d.ts.map +1 -1
- package/dist/controls/index.js +77 -75
- package/dist/locale/de/messages.d.ts.map +1 -1
- package/dist/locale/de/messages.js +1 -1
- package/dist/locale/en/messages.d.ts.map +1 -1
- package/dist/locale/en/messages.js +1 -1
- package/dist/locale/es/messages.d.ts.map +1 -1
- package/dist/locale/es/messages.js +1 -1
- package/dist/locale/ru/messages.d.ts.map +1 -1
- package/dist/locale/ru/messages.js +1 -1
- package/dist/readonly-controls/Display/index.js +4 -2
- package/dist/readonly-controls/ImageAnnotation/index.d.ts.map +1 -1
- package/dist/readonly-controls/ImageAnnotation/index.js +25 -30
- package/package.json +2 -2
- package/src/locale/de/messages.po +172 -8
- package/src/locale/de/messages.ts +1 -1
- package/src/locale/en/messages.po +172 -8
- package/src/locale/en/messages.ts +1 -1
- package/src/locale/es/messages.po +172 -8
- package/src/locale/es/messages.ts +1 -1
- package/src/locale/ru/messages.po +172 -8
- package/src/locale/ru/messages.ts +1 -1
|
@@ -1,62 +1,53 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Form as
|
|
3
|
-
import
|
|
4
|
-
import { toAnswerValue as
|
|
5
|
-
import { useFieldController as
|
|
6
|
-
import { getDisplay as
|
|
7
|
-
|
|
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:
|
|
11
|
-
} =
|
|
12
|
-
linkId:
|
|
13
|
-
answerOption:
|
|
14
|
-
repeats:
|
|
15
|
-
choiceOrientation:
|
|
16
|
-
colsNumber:
|
|
17
|
-
} =
|
|
18
|
-
value:
|
|
19
|
-
onChange:
|
|
20
|
-
onMultiChange:
|
|
21
|
-
disabled:
|
|
22
|
-
formItem:
|
|
23
|
-
} =
|
|
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(${
|
|
27
|
-
} : {}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return /* @__PURE__ */
|
|
46
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
-
},
|
|
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":
|
|
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":
|
|
107
|
-
},
|
|
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:
|
|
122
|
+
wizard: m,
|
|
120
123
|
"wizard-with-tooltips": G,
|
|
121
|
-
"wizard-navigation-group":
|
|
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
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
132
|
+
lr as groupItemComponent,
|
|
133
|
+
fr as itemControlGroupItemComponents,
|
|
134
|
+
cr as itemControlQuestionItemComponents,
|
|
135
|
+
ur as questionItemComponents
|
|
133
136
|
};
|
package/dist/controls/index.d.ts
CHANGED
|
@@ -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"}
|
package/dist/controls/index.js
CHANGED
|
@@ -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
|
|
10
|
-
import { Col as
|
|
11
|
-
import { GroupContext as
|
|
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
|
|
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 {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
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
|
-
|
|
60
|
+
T as Col,
|
|
59
61
|
d as DateTimeSlotPicker,
|
|
60
62
|
c as Display,
|
|
61
|
-
|
|
63
|
+
I as EditableGroup,
|
|
62
64
|
H as GTable,
|
|
63
|
-
|
|
65
|
+
h as Grid,
|
|
64
66
|
k as GridGroup,
|
|
65
67
|
b as Group,
|
|
66
68
|
B as GroupCard,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
Po as ImageEditModal,
|
|
83
|
+
co as InlineChoice,
|
|
84
|
+
go as InlineReference,
|
|
85
|
+
ho as MDEditorControl,
|
|
84
86
|
W as MainCard,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
So as MarkDownEditor,
|
|
88
|
+
Mo as PasswordInput,
|
|
87
89
|
a as QuestionBoolean,
|
|
88
90
|
s as QuestionChoice,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
|
|
105
|
+
Ge as RepeatableGroupRow,
|
|
104
106
|
v as RepeatableGroups,
|
|
105
107
|
P as Row,
|
|
106
108
|
w as Section,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
+
A as SectionWithDivider,
|
|
110
|
+
D as SubCard,
|
|
109
111
|
Q as TextWithLink,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
+
Zo as TextWithMacroFill,
|
|
113
|
+
$o as TimeRangePickerControl,
|
|
112
114
|
oo as Tooltip,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
+
te as UploadFileControl,
|
|
116
|
+
se as getFieldErrorMessage,
|
|
115
117
|
xo as getGroupStats,
|
|
116
118
|
_ as getHighlightYParams,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
131
|
-
|
|
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,
|
|
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"}
|