@aehrc/smart-forms-renderer 0.6.0 → 0.6.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/lib/components/FormComponents/TextItem/MuiTextField.d.ts +3 -0
- package/lib/components/FormComponents/TextItem/MuiTextField.js +20 -0
- package/lib/components/FormComponents/TextItem/MuiTextField.js.map +1 -0
- package/lib/components/FormComponents/TextItem/TextField.js +2 -1
- package/lib/components/FormComponents/TextItem/TextField.js.map +1 -1
- package/lib/components/Renderer/FormBodyTabbed.js +2 -1
- package/lib/components/Renderer/FormBodyTabbed.js.map +1 -1
- package/lib/theme/Theme.js +2 -2
- package/lib/theme/Theme.js.map +1 -1
- package/lib/theme/customGlobalStyles.d.ts +2 -0
- package/lib/theme/customGlobalStyles.js +64 -0
- package/lib/theme/customGlobalStyles.js.map +1 -0
- package/package.json +1 -1
- package/src/components/FormComponents/TextItem/MuiTextField.ts +22 -0
- package/src/components/FormComponents/TextItem/TextField.tsx +2 -1
- package/src/components/Renderer/FormBodyTabbed.tsx +2 -1
- package/src/theme/Theme.tsx +2 -2
- package/src/theme/{globalStyles.tsx → customGlobalStyles.tsx} +3 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 Commonwealth Scientific and Industrial Research
|
|
3
|
+
* Organisation (CSIRO) ABN 41 687 119 230.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import TextField from '@mui/material/TextField';
|
|
18
|
+
const MuiTextField = TextField;
|
|
19
|
+
export default MuiTextField;
|
|
20
|
+
//# sourceMappingURL=MuiTextField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MuiTextField.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/TextItem/MuiTextField.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAEhD,MAAM,YAAY,GAAG,SAAS,CAAC;AAE/B,eAAe,YAAY,CAAC"}
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import React from 'react';
|
|
18
|
-
import
|
|
18
|
+
import InputAdornment from '@mui/material/InputAdornment';
|
|
19
|
+
import MuiTextField from './MuiTextField';
|
|
19
20
|
import FadingCheckIcon from '../ItemParts/FadingCheckIcon';
|
|
20
21
|
function TextField(props) {
|
|
21
22
|
const { linkId, input, feedback, displayPrompt, displayUnit, entryFormat, readOnly, calcExpUpdated, onInputChange } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/TextItem/TextField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"TextField.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/TextItem/TextField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAC1D,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAc3D,SAAS,SAAS,CAAC,KAAqB;IACtC,MAAM,EACJ,MAAM,EACN,KAAK,EACL,QAAQ,EACR,aAAa,EACb,WAAW,EACX,WAAW,EACX,QAAQ,EACR,cAAc,EACd,aAAa,EACd,GAAG,KAAK,CAAC;IAEV,OAAO,CACL,oBAAC,YAAY,IACX,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,CAAC,CAAC,QAAQ,EACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EACtD,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,aAAa,EACpB,WAAW,EAAE,WAAW,EACxB,SAAS,QACT,SAAS,QACT,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,CAAC,EACV,UAAU,EAAE;YACV,YAAY,EAAE,CACZ,oBAAC,cAAc,IAAC,QAAQ,EAAE,KAAK;gBAC7B,oBAAC,eAAe,IAAC,MAAM,EAAE,cAAc,GAAI;gBAC1C,WAAW,CACG,CAClB;SACF,EACD,UAAU,EAAE,QAAQ,eACV,mBAAmB,GAC7B,CACH,CAAC;AACJ,CAAC;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import React, { useMemo } from 'react';
|
|
18
18
|
import Grid from '@mui/material/Grid';
|
|
19
|
-
import
|
|
19
|
+
import TabContext from '@mui/lab/TabContext';
|
|
20
|
+
import TabPanel from '@mui/lab/TabPanel';
|
|
20
21
|
import { getQrItemsIndex, mapQItemsIndex } from '../../utils/mapItem';
|
|
21
22
|
import GroupItem from '../FormComponents/GroupItem/GroupItem';
|
|
22
23
|
import { updateQrGroup } from '../../utils/qrItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormBodyTabbed.js","sourceRoot":"","sources":["../../../src/components/Renderer/FormBodyTabbed.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;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AI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,UAAU,mCAAI,KAAK,CAAC;gBAErE,OAAO,CACL,oBAAC,QAAQ,IACP,GAAG,EAAE,KAAK,CAAC,MAAM,EACjB,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EACZ,KAAK,EAAE,CAAC,CAAC,QAAQ,EAAE,eACT,oBAAoB;oBAC9B,oBAAC,SAAS,IACR,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,CAAC,EACrB,qBAAqB,EAAE,qBAAqB,EAC5C,IAAI,EAAE,IAAI,EACV,eAAe,EAAE,UAAU,EAC3B,cAAc,EAAE,mBAAmB,GACnC,CACO,CACZ,CAAC;YACJ,CAAC,CAAC,CACG,CACI,CACR,CACR,CAAC;AACJ,CAAC;AAED,eAAe,cAAc,CAAC"}
|
package/lib/theme/Theme.js
CHANGED
|
@@ -3,7 +3,7 @@ import { alpha, createTheme, StyledEngineProvider, ThemeProvider as MUIThemeProv
|
|
|
3
3
|
import CssBaseline from '@mui/material/CssBaseline';
|
|
4
4
|
import palette from './palette';
|
|
5
5
|
import typography from './typography';
|
|
6
|
-
import
|
|
6
|
+
import CustomGlobalStyles from './customGlobalStyles';
|
|
7
7
|
import componentsOverride from './overrides/Overrides';
|
|
8
8
|
import { grey } from '@mui/material/colors';
|
|
9
9
|
// ----------------------------------------------------------------------
|
|
@@ -32,7 +32,7 @@ function ThemeProvider({ children }) {
|
|
|
32
32
|
return (React.createElement(StyledEngineProvider, { injectFirst: true },
|
|
33
33
|
React.createElement(MUIThemeProvider, { theme: theme },
|
|
34
34
|
React.createElement(CssBaseline, null),
|
|
35
|
-
React.createElement(
|
|
35
|
+
React.createElement(CustomGlobalStyles, null),
|
|
36
36
|
children)));
|
|
37
37
|
}
|
|
38
38
|
export default ThemeProvider;
|
package/lib/theme/Theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Theme.js","sourceRoot":"","sources":["../../src/theme/Theme.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,KAAK,EACL,WAAW,EACX,oBAAoB,EACpB,aAAa,IAAI,gBAAgB,EAClC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,
|
|
1
|
+
{"version":3,"file":"Theme.js","sourceRoot":"","sources":["../../src/theme/Theme.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,KAAK,EACL,WAAW,EACX,oBAAoB,EACpB,aAAa,IAAI,gBAAgB,EAClC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAsC5C,yEAAyE;AAEzE,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,YAAY,GAAiB;IACxC,OAAO;IACP,KAAK,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE;IAC1B,UAAU;IACV,aAAa,EAAE;QACb,EAAE,EAAE,eAAe,WAAW,EAAE;QAChC,EAAE,EAAE,eAAe,WAAW,EAAE;QAChC,EAAE,EAAE,gBAAgB,WAAW,EAAE;QACjC,GAAG,EAAE,oBAAoB,WAAW,EAAE;QACtC,GAAG,EAAE,oBAAoB,WAAW,EAAE;QACtC,GAAG,EAAE,oBAAoB,WAAW,EAAE;QACtC,GAAG,EAAE,iBAAiB,WAAW,EAAE;QACnC,EAAE;QACF,IAAI,EAAE,aAAa,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,sBAAsB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE;QACtF,MAAM,EAAE,wBAAwB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE;QACxD,QAAQ,EAAE,aAAa,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,0BAA0B,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE;KAChG;CACF,CAAC;AAEF,SAAS,aAAa,CAAC,EAAE,QAAQ,EAA2B;IAC1D,MAAM,KAAK,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;IACxC,KAAK,CAAC,UAAU,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAE7C,OAAO,CACL,oBAAC,oBAAoB,IAAC,WAAW;QAC/B,oBAAC,gBAAgB,IAAC,KAAK,EAAE,KAAK;YAC5B,oBAAC,WAAW,OAAG;YACf,oBAAC,kBAAkB,OAAG;YACrB,QAAQ,CACQ,CACE,CACxB,CAAC;AACJ,CAAC;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 Commonwealth Scientific and Industrial Research
|
|
3
|
+
* Organisation (CSIRO) ABN 41 687 119 230.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import React from 'react';
|
|
18
|
+
import GlobalStyles from '@mui/material/GlobalStyles';
|
|
19
|
+
export default function CustomGlobalStyles() {
|
|
20
|
+
return (React.createElement(GlobalStyles, { styles: {
|
|
21
|
+
'*': {
|
|
22
|
+
boxSizing: 'border-box'
|
|
23
|
+
},
|
|
24
|
+
html: {
|
|
25
|
+
margin: 0,
|
|
26
|
+
padding: 0,
|
|
27
|
+
width: '100%',
|
|
28
|
+
height: '100%',
|
|
29
|
+
WebkitOverflowScrolling: 'touch'
|
|
30
|
+
},
|
|
31
|
+
body: {
|
|
32
|
+
margin: 0,
|
|
33
|
+
padding: 0,
|
|
34
|
+
width: '100%',
|
|
35
|
+
height: '100%'
|
|
36
|
+
},
|
|
37
|
+
'#root': {
|
|
38
|
+
width: '100%',
|
|
39
|
+
height: '100%'
|
|
40
|
+
},
|
|
41
|
+
input: {
|
|
42
|
+
'&[type=number]': {
|
|
43
|
+
MozAppearance: 'textfield',
|
|
44
|
+
'&::-webkit-outer-spin-button': {
|
|
45
|
+
margin: 0,
|
|
46
|
+
WebkitAppearance: 'none'
|
|
47
|
+
},
|
|
48
|
+
'&::-webkit-inner-spin-button': {
|
|
49
|
+
margin: 0,
|
|
50
|
+
WebkitAppearance: 'none'
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
img: {
|
|
55
|
+
display: 'block',
|
|
56
|
+
maxWidth: '100%'
|
|
57
|
+
},
|
|
58
|
+
ul: {
|
|
59
|
+
margin: 0,
|
|
60
|
+
padding: 0
|
|
61
|
+
}
|
|
62
|
+
} }));
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=customGlobalStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customGlobalStyles.js","sourceRoot":"","sources":["../../src/theme/customGlobalStyles.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,4BAA4B,CAAC;AAEtD,MAAM,CAAC,OAAO,UAAU,kBAAkB;IACxC,OAAO,CACL,oBAAC,YAAY,IACX,MAAM,EAAE;YACN,GAAG,EAAE;gBACH,SAAS,EAAE,YAAY;aACxB;YACD,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC;gBACT,OAAO,EAAE,CAAC;gBACV,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;gBACd,uBAAuB,EAAE,OAAO;aACjC;YACD,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC;gBACT,OAAO,EAAE,CAAC;gBACV,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;aACf;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;aACf;YACD,KAAK,EAAE;gBACL,gBAAgB,EAAE;oBAChB,aAAa,EAAE,WAAW;oBAC1B,8BAA8B,EAAE;wBAC9B,MAAM,EAAE,CAAC;wBACT,gBAAgB,EAAE,MAAM;qBACzB;oBACD,8BAA8B,EAAE;wBAC9B,MAAM,EAAE,CAAC;wBACT,gBAAgB,EAAE,MAAM;qBACzB;iBACF;aACF;YACD,GAAG,EAAE;gBACH,OAAO,EAAE,OAAO;gBAChB,QAAQ,EAAE,MAAM;aACjB;YACD,EAAE,EAAE;gBACF,MAAM,EAAE,CAAC;gBACT,OAAO,EAAE,CAAC;aACX;SACF,GACD,CACH,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 Commonwealth Scientific and Industrial Research
|
|
3
|
+
* Organisation (CSIRO) ABN 41 687 119 230.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import TextField from '@mui/material/TextField';
|
|
19
|
+
|
|
20
|
+
const MuiTextField = TextField;
|
|
21
|
+
|
|
22
|
+
export default MuiTextField;
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
import React from 'react';
|
|
19
|
-
import
|
|
19
|
+
import InputAdornment from '@mui/material/InputAdornment';
|
|
20
|
+
import MuiTextField from './MuiTextField';
|
|
20
21
|
import FadingCheckIcon from '../ItemParts/FadingCheckIcon';
|
|
21
22
|
|
|
22
23
|
interface TextFieldProps {
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
import React, { useMemo } from 'react';
|
|
19
19
|
import Grid from '@mui/material/Grid';
|
|
20
20
|
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
21
|
-
import
|
|
21
|
+
import TabContext from '@mui/lab/TabContext';
|
|
22
|
+
import TabPanel from '@mui/lab/TabPanel';
|
|
22
23
|
import { getQrItemsIndex, mapQItemsIndex } from '../../utils/mapItem';
|
|
23
24
|
import GroupItem from '../FormComponents/GroupItem/GroupItem';
|
|
24
25
|
import { updateQrGroup } from '../../utils/qrItem';
|
package/src/theme/Theme.tsx
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import CssBaseline from '@mui/material/CssBaseline';
|
|
27
27
|
import palette from './palette';
|
|
28
28
|
import typography from './typography';
|
|
29
|
-
import
|
|
29
|
+
import CustomGlobalStyles from './customGlobalStyles';
|
|
30
30
|
import componentsOverride from './overrides/Overrides';
|
|
31
31
|
import { grey } from '@mui/material/colors';
|
|
32
32
|
|
|
@@ -97,7 +97,7 @@ function ThemeProvider({ children }: { children: ReactNode }) {
|
|
|
97
97
|
<StyledEngineProvider injectFirst>
|
|
98
98
|
<MUIThemeProvider theme={theme}>
|
|
99
99
|
<CssBaseline />
|
|
100
|
-
<
|
|
100
|
+
<CustomGlobalStyles />
|
|
101
101
|
{children}
|
|
102
102
|
</MUIThemeProvider>
|
|
103
103
|
</StyledEngineProvider>
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import React from 'react';
|
|
18
|
-
import
|
|
18
|
+
import GlobalStyles from '@mui/material/GlobalStyles';
|
|
19
19
|
|
|
20
|
-
export default function
|
|
20
|
+
export default function CustomGlobalStyles() {
|
|
21
21
|
return (
|
|
22
|
-
<
|
|
22
|
+
<GlobalStyles
|
|
23
23
|
styles={{
|
|
24
24
|
'*': {
|
|
25
25
|
boxSizing: 'border-box'
|