@aehrc/smart-forms-renderer 1.0.0-alpha.42.dev9 → 1.0.0-alpha.44
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/lib/components/FormComponents/DecimalItem/DecimalField.js +1 -1
- package/lib/components/FormComponents/DecimalItem/DecimalField.js.map +1 -1
- package/lib/components/FormComponents/ItemParts/DisplayUnitText.js +1 -1
- package/lib/components/FormComponents/ItemParts/DisplayUnitText.js.map +1 -1
- package/lib/components/FormComponents/QuantityItem/QuantityComparatorField.js +1 -5
- package/lib/components/FormComponents/QuantityItem/QuantityComparatorField.js.map +1 -1
- package/package.json +3 -3
- package/src/components/FormComponents/AttachmentItem/AttachmentField.tsx +6 -3
- package/src/components/FormComponents/AttachmentItem/AttachmentFileDropBox.tsx +9 -3
- package/src/components/FormComponents/AttachmentItem/AttachmentUrlField.tsx +4 -1
- package/src/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetFields.tsx +1 -1
- package/src/components/FormComponents/ChoiceItems/ChoiceItemSwitcher.tsx +1 -1
- package/src/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetFields.tsx +4 -2
- package/src/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetFields.tsx +4 -2
- package/src/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomTimeField.tsx +1 -1
- package/src/components/FormComponents/DecimalItem/DecimalField.tsx +1 -1
- package/src/components/FormComponents/DisplayItem/DisplayInstructions.tsx +4 -1
- package/src/components/FormComponents/GridGroup/GridRow.tsx +3 -1
- package/src/components/FormComponents/GroupItem/PageButtonWrapper.tsx +1 -1
- package/src/components/FormComponents/ItemParts/DisplayUnitText.tsx +3 -1
- package/src/components/FormComponents/ItemParts/FlyoverHoverCard.tsx +3 -1
- package/src/components/FormComponents/ItemParts/RequiredAsterisk.tsx +1 -1
- package/src/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerValueSetFields.tsx +1 -1
- package/src/components/FormComponents/QuantityItem/QuantityComparatorField.tsx +1 -11
- package/src/components/Tabs/FormBodySingleTab.tsx +1 -1
|
@@ -12,7 +12,7 @@ function DecimalField(props) {
|
|
|
12
12
|
htmlInput: { inputMode: 'numeric', pattern: '[0-9]*' },
|
|
13
13
|
input: {
|
|
14
14
|
readOnly: readOnly && readOnlyVisualStyle === 'readonly',
|
|
15
|
-
endAdornment: (_jsxs(InputAdornment, Object.assign({ position:
|
|
15
|
+
endAdornment: (_jsxs(InputAdornment, Object.assign({ position: "end" }, { children: [_jsx(FadingCheckIcon, { fadeIn: calcExpUpdated, disabled: readOnly }), _jsx(DisplayUnitText, Object.assign({ readOnly: readOnly }, { children: displayUnit }))] })))
|
|
16
16
|
}
|
|
17
17
|
}, helperText: feedback, "data-test": "q-item-decimal-field" }));
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DecimalField.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/DecimalItem/DecimalField.tsx"],"names":[],"mappings":";AAkBA,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAC1D,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAe3D,SAAS,YAAY,CAAC,KAAwB;IAC5C,MAAM,EACJ,MAAM,EACN,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,aAAa,EACb,WAAW,EACX,WAAW,EACX,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,aAAa,EACd,GAAG,KAAK,CAAC;IAEV,MAAM,mBAAmB,GAAG,uBAAuB,CAAC,GAAG,CAAC,mBAAmB,EAAE,CAAC;IAC9E,MAAM,cAAc,GAAG,uBAAuB,CAAC,GAAG,CAAC,cAAc,EAAE,CAAC;IAEpE,OAAO,CACL,KAAC,iB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Color = readOnlyVisualStyle === 'disabled' ? 'text.disabled' : 'text.secondary';
|
|
8
|
-
return (_jsx(Typography, Object.assign({ color: readOnly ? readOnlyTextColor : 'text.secondary' }, { children: children })));
|
|
8
|
+
return (_jsx(Typography, Object.assign({ sx: { m: 0 }, color: readOnly ? readOnlyTextColor : 'text.secondary' }, { children: children })));
|
|
9
9
|
}
|
|
10
10
|
export default DisplayUnitText;
|
|
11
11
|
//# sourceMappingURL=DisplayUnitText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisplayUnitText.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/ItemParts/DisplayUnitText.tsx"],"names":[],"mappings":";AACA,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAO1D,SAAS,eAAe,CAAC,KAA2B;IAClD,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAErC,MAAM,mBAAmB,GAAG,uBAAuB,CAAC,GAAG,CAAC,mBAAmB,EAAE,CAAC;IAE9E,MAAM,iBAAiB,GAAG,mBAAmB,KAAK,UAAU,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,gBAAgB,CAAC;IAElG,OAAO,CACL,KAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"DisplayUnitText.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/ItemParts/DisplayUnitText.tsx"],"names":[],"mappings":";AACA,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAO1D,SAAS,eAAe,CAAC,KAA2B;IAClD,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAErC,MAAM,mBAAmB,GAAG,uBAAuB,CAAC,GAAG,CAAC,mBAAmB,EAAE,CAAC;IAE9E,MAAM,iBAAiB,GAAG,mBAAmB,KAAK,UAAU,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,gBAAgB,CAAC;IAElG,OAAO,CACL,KAAC,UAAU,kBACT,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EACZ,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB,gBACrD,QAAQ,IACE,CACd,CAAC;AACJ,CAAC;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -11,11 +11,7 @@ function QuantityComparatorField(props) {
|
|
|
11
11
|
if (hideQuantityComparatorField) {
|
|
12
12
|
return null;
|
|
13
13
|
}
|
|
14
|
-
return (_jsxs(Box, { children: [_jsx(Autocomplete, { id: itemType + '-' + linkId + '-comparator', value: valueSelect !== null && valueSelect !== void 0 ? valueSelect : null, options: options, onChange: (_, newValue) => onChange(newValue), autoHighlight: true, sx: { width: 88 }, disabled: readOnly && readOnlyVisualStyle === 'disabled', readOnly: readOnly && readOnlyVisualStyle === 'readonly', size: "small", renderInput: (params) =>
|
|
15
|
-
input: {
|
|
16
|
-
readOnly: readOnly && readOnlyVisualStyle === 'readonly'
|
|
17
|
-
}
|
|
18
|
-
} }))) }), _jsx(Typography, Object.assign({ variant: "caption", color: "text.secondary" }, { children: "(optional)" }))] }));
|
|
14
|
+
return (_jsxs(Box, { children: [_jsx(Autocomplete, { id: itemType + '-' + linkId + '-comparator', value: valueSelect !== null && valueSelect !== void 0 ? valueSelect : null, options: options, onChange: (_, newValue) => onChange(newValue), autoHighlight: true, sx: { width: 88 }, disabled: readOnly && readOnlyVisualStyle === 'disabled', readOnly: readOnly && readOnlyVisualStyle === 'readonly', size: "small", renderInput: (params) => _jsx(MuiTextField, Object.assign({ sx: { width: 88 } }, params)) }), _jsx(Typography, Object.assign({ variant: "caption", color: "text.secondary" }, { children: "(optional)" }))] }));
|
|
19
15
|
}
|
|
20
16
|
export default QuantityComparatorField;
|
|
21
17
|
//# sourceMappingURL=QuantityComparatorField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuantityComparatorField.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/QuantityItem/QuantityComparatorField.tsx"],"names":[],"mappings":";AACA,OAAO,YAAY,MAAM,4BAA4B,CAAC;AAEtD,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAW1D,SAAS,uBAAuB,CAAC,KAAmC;IAClE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAE7E,MAAM,mBAAmB,GAAG,uBAAuB,CAAC,GAAG,CAAC,mBAAmB,EAAE,CAAC;IAC9E,MAAM,2BAA2B,GAAG,uBAAuB,CAAC,GAAG,CAAC,2BAA2B,EAAE,CAAC;IAC9F,IAAI,2BAA2B,EAAE;QAC/B,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,MAAC,GAAG,eACF,KAAC,YAAY,IACX,EAAE,EAAE,QAAQ,GAAG,GAAG,GAAG,MAAM,GAAG,aAAa,EAC3C,KAAK,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,IAAI,EAC1B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAkC,CAAC,EACvE,aAAa,QACb,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EACjB,QAAQ,EAAE,QAAQ,IAAI,mBAAmB,KAAK,UAAU,EACxD,QAAQ,EAAE,QAAQ,IAAI,mBAAmB,KAAK,UAAU,EACxD,IAAI,EAAC,OAAO,EACZ,WAAW,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"QuantityComparat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AI,GACxE,EACF,KAAC,UAAU,kBAAC,OAAO,EAAC,SAAS,EAAC,KAAK,EAAC,gBAAgB,gCAEvC,IACT,CACP,CAAC;AACJ,CAAC;AAED,eAAe,uBAAuB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aehrc/smart-forms-renderer",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.44",
|
|
4
4
|
"description": "FHIR Structured Data Captured (SDC) rendering engine for Smart Forms",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"compile": "
|
|
8
|
-
"watch": "
|
|
7
|
+
"compile": "tsc",
|
|
8
|
+
"watch": "tsc -w",
|
|
9
9
|
"build": "npm run compile",
|
|
10
10
|
"test": "jest",
|
|
11
11
|
"test:watch": "jest --watch",
|
|
@@ -61,7 +61,7 @@ function AttachmentField(props: AttachmentFieldProps) {
|
|
|
61
61
|
return (
|
|
62
62
|
<>
|
|
63
63
|
<Stack rowGap={1} id={itemType + '-' + linkId}>
|
|
64
|
-
<Typography color={readOnly ? readOnlyTextColor : 'text.primary'}>
|
|
64
|
+
<Typography component="div" color={readOnly ? readOnlyTextColor : 'text.primary'}>
|
|
65
65
|
An attachment must either have a file or a URL, or both.
|
|
66
66
|
</Typography>
|
|
67
67
|
<Box>
|
|
@@ -82,7 +82,10 @@ function AttachmentField(props: AttachmentFieldProps) {
|
|
|
82
82
|
/>
|
|
83
83
|
|
|
84
84
|
<Box>
|
|
85
|
-
<Typography
|
|
85
|
+
<Typography
|
|
86
|
+
component="div"
|
|
87
|
+
variant="body2"
|
|
88
|
+
color={readOnly ? readOnlyTextColor : 'text.primary'}>
|
|
86
89
|
File name (optional)
|
|
87
90
|
</Typography>
|
|
88
91
|
<StandardTextField
|
|
@@ -104,7 +107,7 @@ function AttachmentField(props: AttachmentFieldProps) {
|
|
|
104
107
|
</Box>
|
|
105
108
|
|
|
106
109
|
{uploadedFile && url ? (
|
|
107
|
-
<Typography color={readOnly ? readOnlyTextColor : 'text.primary'}>
|
|
110
|
+
<Typography component="div" color={readOnly ? readOnlyTextColor : 'text.primary'}>
|
|
108
111
|
Ensure that the attached file and URL has the same content.
|
|
109
112
|
</Typography>
|
|
110
113
|
) : null}
|
|
@@ -61,12 +61,18 @@ function AttachmentFileDropBox(props: AttachmentFileDropBoxProps) {
|
|
|
61
61
|
textFieldWidth={textFieldWidth}
|
|
62
62
|
isTabled={isTabled}>
|
|
63
63
|
<Box p={1.5}>
|
|
64
|
-
<Typography color={readOnly ? readOnlyTextColor : 'text.primary'}>
|
|
64
|
+
<Typography component="div" color={readOnly ? readOnlyTextColor : 'text.primary'}>
|
|
65
|
+
{boxMessage}
|
|
66
|
+
</Typography>
|
|
65
67
|
|
|
66
68
|
{file ? (
|
|
67
69
|
<Box pt={1}>
|
|
68
|
-
<Typography fontSize={10}>
|
|
69
|
-
|
|
70
|
+
<Typography component="div" fontSize={10}>
|
|
71
|
+
Size: {getFileSize(file.size.toString() ?? '0')}
|
|
72
|
+
</Typography>
|
|
73
|
+
<Typography component="div" fontSize={10}>
|
|
74
|
+
Type: {file.type}
|
|
75
|
+
</Typography>
|
|
70
76
|
</Box>
|
|
71
77
|
) : null}
|
|
72
78
|
</Box>
|
|
@@ -45,7 +45,10 @@ function AttachmentUrlField(props: AttachmentUrlFieldProps) {
|
|
|
45
45
|
|
|
46
46
|
return (
|
|
47
47
|
<Box>
|
|
48
|
-
<Typography
|
|
48
|
+
<Typography
|
|
49
|
+
component="div"
|
|
50
|
+
variant="body2"
|
|
51
|
+
color={readOnly ? 'text.secondary' : 'text.primary'}>
|
|
49
52
|
URL
|
|
50
53
|
</Typography>
|
|
51
54
|
<Stack direction="row" alignItems="center">
|
|
@@ -67,7 +67,7 @@ function ChoiceCheckboxAnswerValueSetFields(props: ChoiceCheckboxAnswerValueSetF
|
|
|
67
67
|
return (
|
|
68
68
|
<StyledAlert color="error">
|
|
69
69
|
<ErrorOutlineIcon color="error" sx={{ pr: 0.75 }} />
|
|
70
|
-
<Typography>
|
|
70
|
+
<Typography component="div">
|
|
71
71
|
There was an error fetching options from the terminology server for{' '}
|
|
72
72
|
{terminologyError.answerValueSet}
|
|
73
73
|
</Typography>
|
|
@@ -110,7 +110,7 @@ function ChoiceRadioAnswerValueSetFields(props: ChoiceRadioAnswerValueSetFieldsP
|
|
|
110
110
|
return (
|
|
111
111
|
<StyledAlert color="error">
|
|
112
112
|
<ErrorOutlineIcon color="error" sx={{ pr: 0.75 }} />
|
|
113
|
-
<Typography>
|
|
113
|
+
<Typography component="div">
|
|
114
114
|
There was an error fetching options from the terminology server for{' '}
|
|
115
115
|
{terminologyError.answerValueSet}
|
|
116
116
|
</Typography>
|
|
@@ -121,7 +121,9 @@ function ChoiceRadioAnswerValueSetFields(props: ChoiceRadioAnswerValueSetFieldsP
|
|
|
121
121
|
return (
|
|
122
122
|
<StyledAlert color="error">
|
|
123
123
|
<ErrorOutlineIcon color="error" sx={{ pr: 0.75 }} />
|
|
124
|
-
<Typography
|
|
124
|
+
<Typography component="div">
|
|
125
|
+
Unable to fetch options from the questionnaire or launch context
|
|
126
|
+
</Typography>
|
|
125
127
|
</StyledAlert>
|
|
126
128
|
);
|
|
127
129
|
}
|
|
@@ -113,7 +113,7 @@ function ChoiceSelectAnswerValueSetFields(props: ChoiceSelectAnswerValueSetField
|
|
|
113
113
|
return (
|
|
114
114
|
<StyledAlert color="error">
|
|
115
115
|
<ErrorOutlineIcon color="error" sx={{ pr: 0.75 }} />
|
|
116
|
-
<Typography>
|
|
116
|
+
<Typography component="div">
|
|
117
117
|
There was an error fetching options from the terminology server for{' '}
|
|
118
118
|
{terminologyError.answerValueSet}
|
|
119
119
|
</Typography>
|
|
@@ -124,7 +124,9 @@ function ChoiceSelectAnswerValueSetFields(props: ChoiceSelectAnswerValueSetField
|
|
|
124
124
|
return (
|
|
125
125
|
<StyledAlert color="error">
|
|
126
126
|
<ErrorOutlineIcon color="error" sx={{ pr: 0.75 }} />
|
|
127
|
-
<Typography
|
|
127
|
+
<Typography component="div">
|
|
128
|
+
Unable to fetch options from the questionnaire or launch context
|
|
129
|
+
</Typography>
|
|
128
130
|
</StyledAlert>
|
|
129
131
|
);
|
|
130
132
|
}
|
|
@@ -110,7 +110,7 @@ function CustomTimeField(props: CustomTimeFieldProps) {
|
|
|
110
110
|
<MenuItem value="PM">PM</MenuItem>
|
|
111
111
|
</Select>
|
|
112
112
|
</Box>
|
|
113
|
-
<Typography variant="caption" color="error" sx={{ ml: 1.75, mt: -0.5 }}>
|
|
113
|
+
<Typography component="span" variant="caption" color="error" sx={{ ml: 1.75, mt: -0.5 }}>
|
|
114
114
|
{isTabled ? '' : feedback}
|
|
115
115
|
</Typography>
|
|
116
116
|
</>
|
|
@@ -72,7 +72,7 @@ function DecimalField(props: DecimalFieldProps) {
|
|
|
72
72
|
input: {
|
|
73
73
|
readOnly: readOnly && readOnlyVisualStyle === 'readonly',
|
|
74
74
|
endAdornment: (
|
|
75
|
-
<InputAdornment position=
|
|
75
|
+
<InputAdornment position="end">
|
|
76
76
|
<FadingCheckIcon fadeIn={calcExpUpdated} disabled={readOnly} />
|
|
77
77
|
<DisplayUnitText readOnly={readOnly}>{displayUnit}</DisplayUnitText>
|
|
78
78
|
</InputAdornment>
|
|
@@ -30,7 +30,10 @@ const DisplayInstructions = memo(function DisplayInstructions(props: DisplayInst
|
|
|
30
30
|
|
|
31
31
|
return children ? (
|
|
32
32
|
<DisplayInstructionsWrapper>
|
|
33
|
-
<Typography
|
|
33
|
+
<Typography
|
|
34
|
+
component="span"
|
|
35
|
+
variant="caption"
|
|
36
|
+
color={readOnly ? 'text.secondary' : 'text.primary'}>
|
|
34
37
|
<>{children}</>
|
|
35
38
|
</Typography>
|
|
36
39
|
</DisplayInstructionsWrapper>
|
|
@@ -64,7 +64,9 @@ function GridRow(props: GridRowProps) {
|
|
|
64
64
|
return (
|
|
65
65
|
<>
|
|
66
66
|
<GridTextTableCell>
|
|
67
|
-
<Typography fontWeight="bold">
|
|
67
|
+
<Typography component="span" fontWeight="bold">
|
|
68
|
+
{qItem.text}
|
|
69
|
+
</Typography>
|
|
68
70
|
</GridTextTableCell>
|
|
69
71
|
{rowQItems.map((cellQItem, index) => {
|
|
70
72
|
const cellQrItem = qrItemsByIndex[index];
|
|
@@ -68,7 +68,7 @@ const PageButtonsWrapper = memo(function PageButtonsWrapper(props: PageButtonsWr
|
|
|
68
68
|
return (
|
|
69
69
|
<Box display="flex" mt={3} gap={2} alignItems="center">
|
|
70
70
|
<Box flexGrow={1} />
|
|
71
|
-
<Typography color="text.secondary">
|
|
71
|
+
<Typography component="span" color="text.secondary">
|
|
72
72
|
Page {`${currentPageIndex + 1} / ${numOfVisiblePages}`}
|
|
73
73
|
</Typography>
|
|
74
74
|
<PreviousPageButton
|
|
@@ -15,7 +15,9 @@ function DisplayUnitText(props: DisplayUnitTextProps) {
|
|
|
15
15
|
const readOnlyTextColor = readOnlyVisualStyle === 'disabled' ? 'text.disabled' : 'text.secondary';
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
|
-
<Typography color={readOnly ? readOnlyTextColor : 'text.secondary'}>
|
|
18
|
+
<Typography component="span" color={readOnly ? readOnlyTextColor : 'text.secondary'}>
|
|
19
|
+
{children}
|
|
20
|
+
</Typography>
|
|
19
21
|
);
|
|
20
22
|
}
|
|
21
23
|
|
|
@@ -58,7 +58,9 @@ function FlyoverHoverCard(props: FlyoverHoverCardProps) {
|
|
|
58
58
|
>
|
|
59
59
|
{childrenIsString ? (
|
|
60
60
|
<Box sx={{ p: 2, maxWidth: 550, bgcolor: 'background.paper', boxShadow: 8 }}>
|
|
61
|
-
<Typography variant="body2">
|
|
61
|
+
<Typography component="span" variant="body2">
|
|
62
|
+
{children}
|
|
63
|
+
</Typography>
|
|
62
64
|
</Box>
|
|
63
65
|
) : (
|
|
64
66
|
<Box>{children}</Box>
|
|
@@ -32,7 +32,7 @@ function RequiredAsterisk(props: RequiredAsteriskProps) {
|
|
|
32
32
|
const readOnlyTextColor = readOnlyVisualStyle === 'disabled' ? 'text.disabled' : 'text.secondary';
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
|
-
<Typography color={readOnly ? readOnlyTextColor : 'red'} {...rest}>
|
|
35
|
+
<Typography component="span" color={readOnly ? readOnlyTextColor : 'red'} {...rest}>
|
|
36
36
|
{children}
|
|
37
37
|
</Typography>
|
|
38
38
|
);
|
package/src/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerValueSetFields.tsx
CHANGED
|
@@ -97,7 +97,7 @@ function OpenChoiceCheckboxAnswerValueSetFields(props: OpenChoiceCheckboxFieldsP
|
|
|
97
97
|
return (
|
|
98
98
|
<StyledAlert color="error">
|
|
99
99
|
<ErrorOutlineIcon color="error" sx={{ pr: 0.75 }} />
|
|
100
|
-
<Typography>
|
|
100
|
+
<Typography component="div">
|
|
101
101
|
There was an error fetching options from the terminology server for{' '}
|
|
102
102
|
{terminologyError.answerValueSet}
|
|
103
103
|
</Typography>
|
|
@@ -37,17 +37,7 @@ function QuantityComparatorField(props: QuantityComparatorFieldProps) {
|
|
|
37
37
|
disabled={readOnly && readOnlyVisualStyle === 'disabled'}
|
|
38
38
|
readOnly={readOnly && readOnlyVisualStyle === 'readonly'}
|
|
39
39
|
size="small"
|
|
40
|
-
renderInput={(params) =>
|
|
41
|
-
<MuiTextField
|
|
42
|
-
sx={{ width: 88 }}
|
|
43
|
-
{...params}
|
|
44
|
-
slotProps={{
|
|
45
|
-
input: {
|
|
46
|
-
readOnly: readOnly && readOnlyVisualStyle === 'readonly'
|
|
47
|
-
}
|
|
48
|
-
}}
|
|
49
|
-
/>
|
|
50
|
-
)}
|
|
40
|
+
renderInput={(params) => <MuiTextField sx={{ width: 88 }} {...params} />}
|
|
51
41
|
/>
|
|
52
42
|
<Typography variant="caption" color="text.secondary">
|
|
53
43
|
(optional)
|
|
@@ -57,7 +57,7 @@ const FormBodySingleTab = memo(function FormBodySingleTab(props: FormBodySingleT
|
|
|
57
57
|
<ListItemText
|
|
58
58
|
primary={
|
|
59
59
|
<Box display="flex" alignItems="center" justifyContent="space-between">
|
|
60
|
-
<Typography fontWeight={600} fontSize="0.8125rem">
|
|
60
|
+
<Typography component="span" fontWeight={600} fontSize="0.8125rem">
|
|
61
61
|
{tabLabel}
|
|
62
62
|
</Typography>
|
|
63
63
|
<Box display="flex" minHeight={24} minWidth={24} ml={1}>
|