@aehrc/smart-forms-renderer 0.6.1 → 0.6.3

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 (177) hide show
  1. package/README.md +59 -0
  2. package/lib/index.d.ts +1 -1
  3. package/lib/index.js +1 -1
  4. package/lib/index.js.map +1 -1
  5. package/package.json +15 -4
  6. package/src/index.ts +1 -1
  7. package/lib/api/populate.d.ts +0 -8
  8. package/lib/api/populate.js +0 -63
  9. package/lib/api/populate.js.map +0 -1
  10. package/lib/components/FormComponents/ChoiceItems/ChoiceRadio.d.ts +0 -8
  11. package/lib/components/FormComponents/ChoiceItems/ChoiceRadio.js +0 -25
  12. package/lib/components/FormComponents/ChoiceItems/ChoiceRadio.js.map +0 -1
  13. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioButton.d.ts +0 -8
  14. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioButton.js +0 -25
  15. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioButton.js.map +0 -1
  16. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioSingleItem.d.ts +0 -8
  17. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioSingleItem.js +0 -25
  18. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioSingleItem.js.map +0 -1
  19. package/lib/components/FormComponents/ChoiceItems/QItemChoice.d.ts +0 -9
  20. package/lib/components/FormComponents/ChoiceItems/QItemChoice.js +0 -61
  21. package/lib/components/FormComponents/ChoiceItems/QItemChoice.js.map +0 -1
  22. package/lib/components/FormComponents/ChoiceItems/QItemChoiceAutocomplete.d.ts +0 -9
  23. package/lib/components/FormComponents/ChoiceItems/QItemChoiceAutocomplete.js +0 -89
  24. package/lib/components/FormComponents/ChoiceItems/QItemChoiceAutocomplete.js.map +0 -1
  25. package/lib/components/FormComponents/ChoiceItems/QItemChoiceCheckboxAnswerOption.d.ts +0 -11
  26. package/lib/components/FormComponents/ChoiceItems/QItemChoiceCheckboxAnswerOption.js +0 -70
  27. package/lib/components/FormComponents/ChoiceItems/QItemChoiceCheckboxAnswerOption.js.map +0 -1
  28. package/lib/components/FormComponents/ChoiceItems/QItemChoiceCheckboxAnswerValueSet.d.ts +0 -11
  29. package/lib/components/FormComponents/ChoiceItems/QItemChoiceCheckboxAnswerValueSet.js +0 -67
  30. package/lib/components/FormComponents/ChoiceItems/QItemChoiceCheckboxAnswerValueSet.js.map +0 -1
  31. package/lib/components/FormComponents/ChoiceItems/QItemChoiceRadioAnswerOption.d.ts +0 -11
  32. package/lib/components/FormComponents/ChoiceItems/QItemChoiceRadioAnswerOption.js +0 -70
  33. package/lib/components/FormComponents/ChoiceItems/QItemChoiceRadioAnswerOption.js.map +0 -1
  34. package/lib/components/FormComponents/ChoiceItems/QItemChoiceRadioAnswerValueSet.d.ts +0 -11
  35. package/lib/components/FormComponents/ChoiceItems/QItemChoiceRadioAnswerValueSet.js +0 -72
  36. package/lib/components/FormComponents/ChoiceItems/QItemChoiceRadioAnswerValueSet.js.map +0 -1
  37. package/lib/components/FormComponents/ChoiceItems/QItemChoiceRadioSingle.d.ts +0 -8
  38. package/lib/components/FormComponents/ChoiceItems/QItemChoiceRadioSingle.js +0 -25
  39. package/lib/components/FormComponents/ChoiceItems/QItemChoiceRadioSingle.js.map +0 -1
  40. package/lib/components/FormComponents/ChoiceItems/QItemChoiceSelectAnswerOption.d.ts +0 -9
  41. package/lib/components/FormComponents/ChoiceItems/QItemChoiceSelectAnswerOption.js +0 -73
  42. package/lib/components/FormComponents/ChoiceItems/QItemChoiceSelectAnswerOption.js.map +0 -1
  43. package/lib/components/FormComponents/ChoiceItems/QItemChoiceSelectAnswerValueSet.d.ts +0 -9
  44. package/lib/components/FormComponents/ChoiceItems/QItemChoiceSelectAnswerValueSet.js +0 -82
  45. package/lib/components/FormComponents/ChoiceItems/QItemChoiceSelectAnswerValueSet.js.map +0 -1
  46. package/lib/components/FormComponents/ItemParts/CheckboxWithOpenLabel.d.ts +0 -10
  47. package/lib/components/FormComponents/ItemParts/CheckboxWithOpenLabel.js +0 -35
  48. package/lib/components/FormComponents/ItemParts/CheckboxWithOpenLabel.js.map +0 -1
  49. package/lib/components/FormComponents/ItemParts/QItemCheckboxSingle.d.ts +0 -10
  50. package/lib/components/FormComponents/ItemParts/QItemCheckboxSingle.js +0 -25
  51. package/lib/components/FormComponents/ItemParts/QItemCheckboxSingle.js.map +0 -1
  52. package/lib/components/FormComponents/ItemParts/QItemCheckboxSingleWithOpenLabel.d.ts +0 -10
  53. package/lib/components/FormComponents/ItemParts/QItemCheckboxSingleWithOpenLabel.js +0 -35
  54. package/lib/components/FormComponents/ItemParts/QItemCheckboxSingleWithOpenLabel.js.map +0 -1
  55. package/lib/components/FormComponents/ItemParts/QItemRadioButtonWithOpenLabel.d.ts +0 -10
  56. package/lib/components/FormComponents/ItemParts/QItemRadioButtonWithOpenLabel.js +0 -31
  57. package/lib/components/FormComponents/ItemParts/QItemRadioButtonWithOpenLabel.js.map +0 -1
  58. package/lib/components/FormComponents/ItemParts/RadioButtonItemWithOpenLabel.d.ts +0 -10
  59. package/lib/components/FormComponents/ItemParts/RadioButtonItemWithOpenLabel.js +0 -31
  60. package/lib/components/FormComponents/ItemParts/RadioButtonItemWithOpenLabel.js.map +0 -1
  61. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoice.d.ts +0 -9
  62. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoice.js +0 -49
  63. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoice.js.map +0 -1
  64. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoiceAutocomplete.d.ts +0 -9
  65. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoiceAutocomplete.js +0 -109
  66. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoiceAutocomplete.js.map +0 -1
  67. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoiceCheckboxAnswerOption.d.ts +0 -11
  68. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoiceCheckboxAnswerOption.js +0 -105
  69. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoiceCheckboxAnswerOption.js.map +0 -1
  70. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoiceRadioAnswerOption.d.ts +0 -11
  71. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoiceRadioAnswerOption.js +0 -116
  72. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoiceRadioAnswerOption.js.map +0 -1
  73. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoiceSelectAnswerOption.d.ts +0 -9
  74. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoiceSelectAnswerOption.js +0 -75
  75. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoiceSelectAnswerOption.js.map +0 -1
  76. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoiceSelectAnswerValueSet.d.ts +0 -9
  77. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoiceSelectAnswerValueSet.js +0 -68
  78. package/lib/components/FormComponents/OpenChoiceItems/QItemOpenChoiceSelectAnswerValueSet.js.map +0 -1
  79. package/lib/components/FormComponents/QItemChoice/QItemChoice.d.ts +0 -9
  80. package/lib/components/FormComponents/QItemChoice/QItemChoice.js +0 -61
  81. package/lib/components/FormComponents/QItemChoice/QItemChoice.js.map +0 -1
  82. package/lib/components/FormComponents/QItemChoice/QItemChoiceAutocomplete.d.ts +0 -9
  83. package/lib/components/FormComponents/QItemChoice/QItemChoiceAutocomplete.js +0 -89
  84. package/lib/components/FormComponents/QItemChoice/QItemChoiceAutocomplete.js.map +0 -1
  85. package/lib/components/FormComponents/QItemChoice/QItemChoiceCheckboxAnswerOption.d.ts +0 -11
  86. package/lib/components/FormComponents/QItemChoice/QItemChoiceCheckboxAnswerOption.js +0 -70
  87. package/lib/components/FormComponents/QItemChoice/QItemChoiceCheckboxAnswerOption.js.map +0 -1
  88. package/lib/components/FormComponents/QItemChoice/QItemChoiceCheckboxAnswerValueSet.d.ts +0 -11
  89. package/lib/components/FormComponents/QItemChoice/QItemChoiceCheckboxAnswerValueSet.js +0 -67
  90. package/lib/components/FormComponents/QItemChoice/QItemChoiceCheckboxAnswerValueSet.js.map +0 -1
  91. package/lib/components/FormComponents/QItemChoice/QItemChoiceRadioAnswerOption.d.ts +0 -11
  92. package/lib/components/FormComponents/QItemChoice/QItemChoiceRadioAnswerOption.js +0 -70
  93. package/lib/components/FormComponents/QItemChoice/QItemChoiceRadioAnswerOption.js.map +0 -1
  94. package/lib/components/FormComponents/QItemChoice/QItemChoiceRadioAnswerValueSet.d.ts +0 -11
  95. package/lib/components/FormComponents/QItemChoice/QItemChoiceRadioAnswerValueSet.js +0 -72
  96. package/lib/components/FormComponents/QItemChoice/QItemChoiceRadioAnswerValueSet.js.map +0 -1
  97. package/lib/components/FormComponents/QItemChoice/QItemChoiceRadioSingle.d.ts +0 -8
  98. package/lib/components/FormComponents/QItemChoice/QItemChoiceRadioSingle.js +0 -25
  99. package/lib/components/FormComponents/QItemChoice/QItemChoiceRadioSingle.js.map +0 -1
  100. package/lib/components/FormComponents/QItemChoice/QItemChoiceSelectAnswerOption.d.ts +0 -9
  101. package/lib/components/FormComponents/QItemChoice/QItemChoiceSelectAnswerOption.js +0 -73
  102. package/lib/components/FormComponents/QItemChoice/QItemChoiceSelectAnswerOption.js.map +0 -1
  103. package/lib/components/FormComponents/QItemChoice/QItemChoiceSelectAnswerValueSet.d.ts +0 -9
  104. package/lib/components/FormComponents/QItemChoice/QItemChoiceSelectAnswerValueSet.js +0 -82
  105. package/lib/components/FormComponents/QItemChoice/QItemChoiceSelectAnswerValueSet.js.map +0 -1
  106. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoice.d.ts +0 -9
  107. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoice.js +0 -49
  108. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoice.js.map +0 -1
  109. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoiceAutocomplete.d.ts +0 -9
  110. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoiceAutocomplete.js +0 -109
  111. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoiceAutocomplete.js.map +0 -1
  112. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoiceCheckboxAnswerOption.d.ts +0 -11
  113. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoiceCheckboxAnswerOption.js +0 -105
  114. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoiceCheckboxAnswerOption.js.map +0 -1
  115. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoiceRadioAnswerOption.d.ts +0 -11
  116. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoiceRadioAnswerOption.js +0 -116
  117. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoiceRadioAnswerOption.js.map +0 -1
  118. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoiceSelectAnswerOption.d.ts +0 -9
  119. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoiceSelectAnswerOption.js +0 -75
  120. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoiceSelectAnswerOption.js.map +0 -1
  121. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoiceSelectAnswerValueSet.d.ts +0 -9
  122. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoiceSelectAnswerValueSet.js +0 -68
  123. package/lib/components/FormComponents/QItemOpenChoice/QItemOpenChoiceSelectAnswerValueSet.js.map +0 -1
  124. package/lib/components/FormRenderer/BaseRenderer.d.ts +0 -3
  125. package/lib/components/FormRenderer/BaseRenderer.js +0 -54
  126. package/lib/components/FormRenderer/BaseRenderer.js.map +0 -1
  127. package/lib/components/FormRenderer/FormBodyCollapsible.d.ts +0 -9
  128. package/lib/components/FormRenderer/FormBodyCollapsible.js +0 -57
  129. package/lib/components/FormRenderer/FormBodyCollapsible.js.map +0 -1
  130. package/lib/components/FormRenderer/FormBodySingleCollapsible.d.ts +0 -12
  131. package/lib/components/FormRenderer/FormBodySingleCollapsible.js +0 -39
  132. package/lib/components/FormRenderer/FormBodySingleCollapsible.js.map +0 -1
  133. package/lib/components/FormRenderer/FormBodySingleCollapsibleWrapper.d.ts +0 -12
  134. package/lib/components/FormRenderer/FormBodySingleCollapsibleWrapper.js +0 -31
  135. package/lib/components/FormRenderer/FormBodySingleCollapsibleWrapper.js.map +0 -1
  136. package/lib/components/FormRenderer/FormBodyTabbed.d.ts +0 -9
  137. package/lib/components/FormRenderer/FormBodyTabbed.js +0 -60
  138. package/lib/components/FormRenderer/FormBodyTabbed.js.map +0 -1
  139. package/lib/components/FormRenderer/FormRenderer.d.ts +0 -3
  140. package/lib/components/FormRenderer/FormRenderer.js +0 -54
  141. package/lib/components/FormRenderer/FormRenderer.js.map +0 -1
  142. package/lib/components/FormRenderer/FormTitle.d.ts +0 -7
  143. package/lib/components/FormRenderer/FormTitle.js +0 -30
  144. package/lib/components/FormRenderer/FormTitle.js.map +0 -1
  145. package/lib/components/FormRenderer/FormTopLevelItem.d.ts +0 -9
  146. package/lib/components/FormRenderer/FormTopLevelItem.js +0 -45
  147. package/lib/components/FormRenderer/FormTopLevelItem.js.map +0 -1
  148. package/lib/components/FormRenderer/SmartFormsRenderer.d.ts +0 -9
  149. package/lib/components/FormRenderer/SmartFormsRenderer.js +0 -39
  150. package/lib/components/FormRenderer/SmartFormsRenderer.js.map +0 -1
  151. package/lib/components/FormRenderer/index.d.ts +0 -2
  152. package/lib/components/FormRenderer/index.js +0 -19
  153. package/lib/components/FormRenderer/index.js.map +0 -1
  154. package/lib/contexts/TestContext.d.ts +0 -11
  155. package/lib/contexts/TestContext.js +0 -32
  156. package/lib/contexts/TestContext.js.map +0 -1
  157. package/lib/contexts/index.d.ts +0 -1
  158. package/lib/contexts/index.js +0 -2
  159. package/lib/contexts/index.js.map +0 -1
  160. package/lib/hooks/useTestContext.d.ts +0 -5
  161. package/lib/hooks/useTestContext.js +0 -27
  162. package/lib/hooks/useTestContext.js.map +0 -1
  163. package/lib/stores/useConfigStore.d.ts +0 -18
  164. package/lib/stores/useConfigStore.js +0 -17
  165. package/lib/stores/useConfigStore.js.map +0 -1
  166. package/lib/stores/useSmartClientStore.d.ts +0 -7
  167. package/lib/stores/useSmartClientStore.js +0 -7
  168. package/lib/stores/useSmartClientStore.js.map +0 -1
  169. package/lib/theme/globalStyles.d.ts +0 -2
  170. package/lib/theme/globalStyles.js +0 -64
  171. package/lib/theme/globalStyles.js.map +0 -1
  172. package/lib/utils/populate.d.ts +0 -16
  173. package/lib/utils/populate.js +0 -78
  174. package/lib/utils/populate.js.map +0 -1
  175. package/lib/utils/populateCallback.d.ts +0 -6
  176. package/lib/utils/populateCallback.js +0 -40
  177. package/lib/utils/populateCallback.js.map +0 -1
@@ -1,39 +0,0 @@
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, { memo } from 'react';
18
- import { Accordion, AccordionDetails, AccordionSummary, Box, Tooltip, Typography } from '@mui/material';
19
- import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
20
- import { getContextDisplays } from '../../utils/tabs';
21
- import { getShortText } from '../../utils/itemControl';
22
- import ContextDisplayItem from '../FormComponents/ItemParts/ContextDisplayItem';
23
- const FormBodySingleCollapsible = memo(function FormBodySingleCollapsible(props) {
24
- var _a, _b;
25
- const { qItem, index, selectedIndex, onToggleExpand, children } = props;
26
- const contextDisplayItems = getContextDisplays(qItem);
27
- const collapsibleLabel = (_b = (_a = getShortText(qItem)) !== null && _a !== void 0 ? _a : qItem.text) !== null && _b !== void 0 ? _b : '';
28
- return (React.createElement(Accordion, { expanded: selectedIndex === index, TransitionProps: { unmountOnExit: true, timeout: 250 }, onChange: () => onToggleExpand(index) },
29
- React.createElement(AccordionSummary, { expandIcon: React.createElement(Tooltip, { title: 'Expand' },
30
- React.createElement(ExpandMoreIcon, null)) },
31
- React.createElement(Box, { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%", mr: 3 },
32
- React.createElement(Typography, { variant: "subtitle2" }, collapsibleLabel),
33
- React.createElement(Box, { display: "flex", columnGap: 0.5 }, contextDisplayItems.map((item) => {
34
- return React.createElement(ContextDisplayItem, { key: item.linkId, displayItem: item });
35
- })))),
36
- React.createElement(AccordionDetails, null, children)));
37
- });
38
- export default FormBodySingleCollapsible;
39
- //# sourceMappingURL=FormBodySingleCollapsible.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormBodySingleCollapsible.js","sourceRoot":"","sources":["../../../src/components/FormRenderer/FormBodySingleCollapsible.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,GAAG,EACH,OAAO,EACP,UAAU,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,kBAAkB,MAAM,gDAAgD,CAAC;AAUhF,MAAM,yBAAyB,GAAG,IAAI,CAAC,SAAS,yBAAyB,CACvE,KAAqC;;IAErC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAExE,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAEtD,MAAM,gBAAgB,GAAG,MAAA,MAAA,YAAY,CAAC,KAAK,CAAC,mCAAI,KAAK,CAAC,IAAI,mCAAI,EAAE,CAAC;IAEjE,OAAO,CACL,oBAAC,SAAS,IACR,QAAQ,EAAE,aAAa,KAAK,KAAK,EACjC,eAAe,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,EACtD,QAAQ,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC;QACrC,oBAAC,gBAAgB,IACf,UAAU,EACR,oBAAC,OAAO,IAAC,KAAK,EAAE,QAAQ;gBACtB,oBAAC,cAAc,OAAG,CACV;YAEZ,oBAAC,GAAG,IAAC,OAAO,EAAC,MAAM,EAAC,UAAU,EAAC,QAAQ,EAAC,cAAc,EAAC,eAAe,EAAC,KAAK,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC;gBACvF,oBAAC,UAAU,IAAC,OAAO,EAAC,WAAW,IAAE,gBAAgB,CAAc;gBAC/D,oBAAC,GAAG,IAAC,OAAO,EAAC,MAAM,EAAC,SAAS,EAAE,GAAG,IAC/B,mBAAmB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;oBAChC,OAAO,oBAAC,kBAAkB,IAAC,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,GAAI,CAAC;gBACrE,CAAC,CAAC,CACE,CACF,CACW;QACnB,oBAAC,gBAAgB,QAAE,QAAQ,CAAoB,CACrC,CACb,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,yBAAyB,CAAC"}
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
3
- import type { PropsWithQrItemChangeHandler } from '../../interfaces/renderProps.interface';
4
- interface FormBodySingleCollapsibleProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem> {
5
- qItem: QuestionnaireItem;
6
- qrItem: QuestionnaireResponseItem;
7
- index: number;
8
- selectedIndex: number;
9
- onToggleExpand: (index: number) => void;
10
- }
11
- declare function FormBodySingleCollapsibleWrapper(props: FormBodySingleCollapsibleProps): React.JSX.Element | null;
12
- export default FormBodySingleCollapsibleWrapper;
@@ -1,31 +0,0 @@
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 GroupItem from '../FormComponents/GroupItem/GroupItem';
19
- import FormBodySingleCollapsible from './FormBodySingleCollapsible';
20
- import useHidden from '../../hooks/useHidden';
21
- function FormBodySingleCollapsibleWrapper(props) {
22
- const { qItem, qrItem, index, selectedIndex, onToggleExpand, onQrItemChange } = props;
23
- const itemIsHidden = useHidden(qItem);
24
- if (itemIsHidden) {
25
- return null;
26
- }
27
- return (React.createElement(FormBodySingleCollapsible, { key: qItem.linkId, qItem: qItem, index: index, selectedIndex: selectedIndex, onToggleExpand: onToggleExpand },
28
- React.createElement(GroupItem, { qItem: qItem, qrItem: qrItem, isRepeated: true, groupCardElevation: 1, onQrItemChange: onQrItemChange })));
29
- }
30
- export default FormBodySingleCollapsibleWrapper;
31
- //# sourceMappingURL=FormBodySingleCollapsibleWrapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormBodySingleCollapsibleWrapper.js","sourceRoot":"","sources":["../../../src/components/FormRenderer/FormBodySingleCollapsibleWrapper.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,SAAS,MAAM,uCAAuC,CAAC;AAC9D,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AAEpE,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAW9C,SAAS,gCAAgC,CAAC,KAAqC;IAC7E,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAEtF,MAAM,YAAY,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;IACtC,IAAI,YAAY,EAAE;QAChB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,oBAAC,yBAAyB,IACxB,GAAG,EAAE,KAAK,CAAC,MAAM,EACjB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc;QAC9B,oBAAC,SAAS,IACR,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,IAAI,EAChB,kBAAkB,EAAE,CAAC,EACrB,cAAc,EAAE,cAAc,GAC9B,CACwB,CAC7B,CAAC;AACJ,CAAC;AAED,eAAe,gCAAgC,CAAC"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
3
- import type { PropsWithQrItemChangeHandler } from '../../interfaces/renderProps.interface';
4
- interface FormBodyTabbedProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem> {
5
- topLevelQItem: QuestionnaireItem;
6
- topLevelQRItem: QuestionnaireResponseItem;
7
- }
8
- declare function FormBodyTabbed(props: FormBodyTabbedProps): React.JSX.Element;
9
- export default FormBodyTabbed;
@@ -1,60 +0,0 @@
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, { useMemo } from 'react';
18
- import { Grid } from '@mui/material';
19
- import { TabContext, TabPanel } from '@mui/lab';
20
- import { getQrItemsIndex, mapQItemsIndex } from '../../utils/mapItem';
21
- import GroupItem from '../FormComponents/GroupItem/GroupItem';
22
- import { updateQrGroup } from '../../utils/qrItem';
23
- import FormBodyTabList from '../Tabs/FormBodyTabList';
24
- import useQuestionnaireStore from '../../stores/useQuestionnaireStore';
25
- function FormBodyTabbed(props) {
26
- const { topLevelQItem, topLevelQRItem, onQrItemChange } = props;
27
- const tabs = useQuestionnaireStore((state) => state.tabs);
28
- const currentTab = useQuestionnaireStore((state) => state.currentTabIndex);
29
- const indexMap = useMemo(() => mapQItemsIndex(topLevelQItem), [topLevelQItem]);
30
- const qItems = topLevelQItem.item;
31
- const qrItems = topLevelQRItem.item;
32
- function handleQrGroupChange(qrItem) {
33
- updateQrGroup(qrItem, null, topLevelQRItem, indexMap);
34
- onQrItemChange(topLevelQRItem);
35
- }
36
- if (!qItems || !qrItems) {
37
- return React.createElement(React.Fragment, null, "Unable to load form");
38
- }
39
- const qrItemsByIndex = getQrItemsIndex(qItems, qrItems, indexMap);
40
- return (React.createElement(Grid, { container: true, spacing: 2 },
41
- React.createElement(TabContext, { value: currentTab.toString() },
42
- React.createElement(Grid, { item: true, xs: 12, md: 3.5, lg: 3, xl: 2.75 },
43
- React.createElement(FormBodyTabList, { qFormItems: qItems, currentTabIndex: currentTab, tabs: tabs })),
44
- React.createElement(Grid, { item: true, xs: 12, md: 8.5, lg: 9, xl: 9.25 }, qItems.map((qItem, i) => {
45
- var _a, _b;
46
- const qrItem = qrItemsByIndex[i];
47
- const isNotRepeatGroup = !Array.isArray(qrItem);
48
- const isTab = !!tabs[qItem.linkId];
49
- if (!isTab || !isNotRepeatGroup) {
50
- // Something has gone horribly wrong
51
- return null;
52
- }
53
- const isRepeated = (_a = qItem.repeats) !== null && _a !== void 0 ? _a : false;
54
- const tabIsMarkedAsComplete = (_b = tabs[qItem.linkId].isComplete) !== null && _b !== void 0 ? _b : false;
55
- return (React.createElement(TabPanel, { key: qItem.linkId, sx: { p: 0 }, value: i.toString(), "data-test": "renderer-tab-panel" },
56
- React.createElement(GroupItem, { qItem: qItem, qrItem: qrItem, isRepeated: isRepeated, groupCardElevation: 1, tabIsMarkedAsComplete: tabIsMarkedAsComplete, tabs: tabs, currentTabIndex: currentTab, onQrItemChange: handleQrGroupChange })));
57
- })))));
58
- }
59
- export default FormBodyTabbed;
60
- //# sourceMappingURL=FormBodyTabbed.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormBodyTabbed.js","sourceRoot":"","sources":["../../../src/components/FormRenderer/FormBodyTabbed.tsx"],"names":[],"mappings":"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"}
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare function FormRenderer(): React.JSX.Element;
3
- export default FormRenderer;
@@ -1,54 +0,0 @@
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 { Container, Fade } from '@mui/material';
19
- import FormTopLevelItem from '../FormRenderer/FormTopLevelItem';
20
- import useQuestionnaireStore from '../../stores/useQuestionnaireStore';
21
- import useQuestionnaireResponseStore from '../../stores/useQuestionnaireResponseStore';
22
- function FormRenderer() {
23
- const sourceQuestionnaire = useQuestionnaireStore((state) => state.sourceQuestionnaire);
24
- const updateExpressions = useQuestionnaireStore((state) => state.updateExpressions);
25
- const updatableResponse = useQuestionnaireResponseStore((state) => state.updatableResponse);
26
- const updateResponse = useQuestionnaireResponseStore((state) => state.updateResponse);
27
- function handleTopLevelQRItemChange(newTopLevelQItem, index) {
28
- if (!updatableResponse.item || updatableResponse.item.length === 0) {
29
- return;
30
- }
31
- const updatedItems = [...updatableResponse.item]; // Copy the original array of items
32
- updatedItems[index] = newTopLevelQItem; // Modify the item at the specified index
33
- const updatedResponse = Object.assign(Object.assign({}, updatableResponse), { item: updatedItems });
34
- updateExpressions(updatedResponse);
35
- updateResponse(updatedResponse);
36
- }
37
- const topLevelQItems = sourceQuestionnaire.item;
38
- const topLevelQRItems = updatableResponse.item;
39
- if (!topLevelQItems) {
40
- return React.createElement(React.Fragment, null, "Questionnaire does not have any items");
41
- }
42
- return (React.createElement(Fade, { in: true, timeout: 500 },
43
- React.createElement(Container, { maxWidth: "xl" }, topLevelQItems.map((qItem, index) => {
44
- const qrItem = topLevelQRItems
45
- ? topLevelQRItems[index]
46
- : {
47
- linkId: qItem.linkId,
48
- text: qItem.text
49
- };
50
- return (React.createElement(FormTopLevelItem, { key: qItem.linkId, topLevelQItem: qItem, topLevelQRItem: qrItem, onQrItemChange: (newTopLevelQRItem) => handleTopLevelQRItemChange(newTopLevelQRItem, index) }));
51
- }))));
52
- }
53
- export default FormRenderer;
54
- //# sourceMappingURL=FormRenderer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormRenderer.js","sourceRoot":"","sources":["../../../src/components/FormRenderer/FormRenderer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,gBAAgB,MAAM,kCAAkC,CAAC;AAEhE,OAAO,qBAAqB,MAAM,oCAAoC,CAAC;AACvE,OAAO,6BAA6B,MAAM,4CAA4C,CAAC;AAEvF,SAAS,YAAY;IACnB,MAAM,mBAAmB,GAAG,qBAAqB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACxF,MAAM,iBAAiB,GAAG,qBAAqB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpF,MAAM,iBAAiB,GAAG,6BAA6B,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAC5F,MAAM,cAAc,GAAG,6BAA6B,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAEtF,SAAS,0BAA0B,CAAC,gBAA2C,EAAE,KAAa;QAC5F,IAAI,CAAC,iBAAiB,CAAC,IAAI,IAAI,iBAAiB,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;YAClE,OAAO;SACR;QAED,MAAM,YAAY,GAAG,CAAC,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,mCAAmC;QACrF,YAAY,CAAC,KAAK,CAAC,GAAG,gBAAgB,CAAC,CAAC,yCAAyC;QAEjF,MAAM,eAAe,mCAChB,iBAAiB,KACpB,IAAI,EAAE,YAAY,GACnB,CAAC;QAEF,iBAAiB,CAAC,eAAe,CAAC,CAAC;QACnC,cAAc,CAAC,eAAe,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,cAAc,GAAG,mBAAmB,CAAC,IAAI,CAAC;IAChD,MAAM,eAAe,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAE/C,IAAI,CAAC,cAAc,EAAE;QACnB,OAAO,kFAA0C,CAAC;KACnD;IAED,OAAO,CACL,oBAAC,IAAI,IAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG;QAC1B,oBAAC,SAAS,IAAC,QAAQ,EAAC,IAAI,IACrB,cAAc,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;YACnC,MAAM,MAAM,GAAG,eAAe;gBAC5B,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC;gBACxB,CAAC,CAAC;oBACE,MAAM,EAAE,KAAK,CAAC,MAAM;oBACpB,IAAI,EAAE,KAAK,CAAC,IAAI;iBACjB,CAAC;YAEN,OAAO,CACL,oBAAC,gBAAgB,IACf,GAAG,EAAE,KAAK,CAAC,MAAM,EACjB,aAAa,EAAE,KAAK,EACpB,cAAc,EAAE,MAAM,EACtB,cAAc,EAAE,CAAC,iBAAiB,EAAE,EAAE,CACpC,0BAA0B,CAAC,iBAAiB,EAAE,KAAK,CAAC,GAEtD,CACH,CAAC;QACJ,CAAC,CAAC,CACQ,CACP,CACR,CAAC;AACJ,CAAC;AAED,eAAe,YAAY,CAAC"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { Questionnaire } from 'fhir/r4';
3
- interface FormTitleProps {
4
- questionnaire: Questionnaire;
5
- }
6
- declare const FormTitle: React.NamedExoticComponent<FormTitleProps>;
7
- export default FormTitle;
@@ -1,30 +0,0 @@
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, { memo } from 'react';
18
- import parse from 'html-react-parser';
19
- import { getXHtmlStringFromQuestionnaire } from '../../utils/qItem';
20
- import { FormTitleWrapper } from '../Box.styles';
21
- import { Typography } from '@mui/material';
22
- const FormTitle = memo(function FormTitle(props) {
23
- const { questionnaire } = props;
24
- const xHtmlString = getXHtmlStringFromQuestionnaire(questionnaire);
25
- const formTitle = xHtmlString ? parse(xHtmlString) : questionnaire.title;
26
- return (React.createElement(FormTitleWrapper, null,
27
- React.createElement(Typography, { variant: "h3", "data-test": "form-heading" }, formTitle)));
28
- });
29
- export default FormTitle;
30
- //# sourceMappingURL=FormTitle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormTitle.js","sourceRoot":"","sources":["../../../src/components/FormRenderer/FormTitle.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,+BAA+B,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAM3C,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,SAAS,CAAC,KAAqB;IAC7D,MAAM,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAEhC,MAAM,WAAW,GAAG,+BAA+B,CAAC,aAAa,CAAC,CAAC;IACnE,MAAM,SAAS,GAAG,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC;IAEzE,OAAO,CACL,oBAAC,gBAAgB;QACf,oBAAC,UAAU,IAAC,OAAO,EAAC,IAAI,eAAW,cAAc,IAC9C,SAAS,CACC,CACI,CACpB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
3
- import type { PropsWithQrItemChangeHandler } from '../../interfaces/renderProps.interface';
4
- interface FormTopLevelItemProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem> {
5
- topLevelQItem: QuestionnaireItem;
6
- topLevelQRItem: QuestionnaireResponseItem;
7
- }
8
- declare function FormTopLevelItem(props: FormTopLevelItemProps): React.JSX.Element;
9
- export default FormTopLevelItem;
@@ -1,45 +0,0 @@
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 FormBodyTabbed from './FormBodyTabbed';
19
- import { containsTabs, isTabContainer } from '../../utils/tabs';
20
- import GroupItem from '../FormComponents/GroupItem/GroupItem';
21
- import SingleItem from '../FormComponents/SingleItem/SingleItem';
22
- import FormBodyCollapsible from './FormBodyCollapsible';
23
- import useResponsive from '../../hooks/useResponsive';
24
- function FormTopLevelItem(props) {
25
- const { topLevelQItem, topLevelQRItem, onQrItemChange } = props;
26
- const itemIsTabContainer = isTabContainer(topLevelQItem);
27
- const itemContainsTabs = containsTabs(topLevelQItem);
28
- const isDesktop = useResponsive('up', 'lg');
29
- const itemIsGroup = topLevelQItem.type === 'group';
30
- // If form is tabbed, it is rendered as a tabbed form
31
- if (itemContainsTabs || itemIsTabContainer) {
32
- if (isDesktop) {
33
- return (React.createElement(FormBodyTabbed, { key: topLevelQItem.linkId, topLevelQItem: topLevelQItem, topLevelQRItem: topLevelQRItem, onQrItemChange: onQrItemChange }));
34
- }
35
- return (React.createElement(FormBodyCollapsible, { key: topLevelQItem.linkId, topLevelQItem: topLevelQItem, topLevelQRItem: topLevelQRItem, onQrItemChange: onQrItemChange }));
36
- }
37
- // If form is untabbed, it is rendered as a regular group
38
- if (itemIsGroup) {
39
- return (React.createElement(GroupItem, { key: topLevelQItem.linkId, qItem: topLevelQItem, qrItem: topLevelQRItem, groupCardElevation: 1, onQrItemChange: onQrItemChange, isRepeated: false }));
40
- }
41
- // Otherwise, it is rendered as a non-group item
42
- return (React.createElement(SingleItem, { key: topLevelQItem.linkId, qItem: topLevelQItem, qrItem: topLevelQRItem, isTabled: false, onQrItemChange: onQrItemChange, isRepeated: false }));
43
- }
44
- export default FormTopLevelItem;
45
- //# sourceMappingURL=FormTopLevelItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormTopLevelItem.js","sourceRoot":"","sources":["../../../src/components/FormRenderer/FormTopLevelItem.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,SAAS,MAAM,uCAAuC,CAAC;AAC9D,OAAO,UAAU,MAAM,yCAAyC,CAAC;AAEjE,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,aAAa,MAAM,2BAA2B,CAAC;AAOtD,SAAS,gBAAgB,CAAC,KAA4B;IACpD,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAEhE,MAAM,kBAAkB,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;IACzD,MAAM,gBAAgB,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;IAErD,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAE5C,MAAM,WAAW,GAAG,aAAa,CAAC,IAAI,KAAK,OAAO,CAAC;IAEnD,qDAAqD;IACrD,IAAI,gBAAgB,IAAI,kBAAkB,EAAE;QAC1C,IAAI,SAAS,EAAE;YACb,OAAO,CACL,oBAAC,cAAc,IACb,GAAG,EAAE,aAAa,CAAC,MAAM,EACzB,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,GAC9B,CACH,CAAC;SACH;QAED,OAAO,CACL,oBAAC,mBAAmB,IAClB,GAAG,EAAE,aAAa,CAAC,MAAM,EACzB,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,GAC9B,CACH,CAAC;KACH;IAED,yDAAyD;IACzD,IAAI,WAAW,EAAE;QACf,OAAO,CACL,oBAAC,SAAS,IACR,GAAG,EAAE,aAAa,CAAC,MAAM,EACzB,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,cAAc,EACtB,kBAAkB,EAAE,CAAC,EACrB,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,KAAK,GACjB,CACH,CAAC;KACH;IAED,gDAAgD;IAChD,OAAO,CACL,oBAAC,UAAU,IACT,GAAG,EAAE,aAAa,CAAC,MAAM,EACzB,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,KAAK,EACf,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,KAAK,GACjB,CACH,CAAC;AACJ,CAAC;AAED,eAAe,gBAAgB,CAAC"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { Questionnaire, QuestionnaireResponse } from 'fhir/r4';
3
- interface SmartFormsRendererProps {
4
- questionnaire: Questionnaire;
5
- questionnaireResponse?: QuestionnaireResponse;
6
- additionalVariables?: Record<string, object>;
7
- }
8
- declare function SmartFormsRenderer(props: SmartFormsRendererProps): React.JSX.Element;
9
- export default SmartFormsRenderer;
@@ -1,39 +0,0 @@
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 useInitialiseRenderer from '../../hooks/useInitialiseRenderer';
19
- import { Box, CircularProgress, Typography } from '@mui/material';
20
- import { QueryClientProvider } from '@tanstack/react-query';
21
- import useQueryClient from '../../hooks/useQueryClient';
22
- import BaseRenderer from './BaseRenderer';
23
- import ThemeProvider from '../../theme/Theme';
24
- // TODO add terminiology server
25
- function SmartFormsRenderer(props) {
26
- const { questionnaire, questionnaireResponse, additionalVariables } = props;
27
- const isLoading = useInitialiseRenderer(questionnaire, questionnaireResponse, additionalVariables);
28
- const queryClient = useQueryClient();
29
- if (isLoading) {
30
- return (React.createElement(Box, { display: "flex", alignItems: "center", columnGap: 2 },
31
- React.createElement(CircularProgress, null),
32
- React.createElement(Typography, null, "Loading questionnaire...")));
33
- }
34
- return (React.createElement(ThemeProvider, null,
35
- React.createElement(QueryClientProvider, { client: queryClient },
36
- React.createElement(BaseRenderer, null))));
37
- }
38
- export default SmartFormsRenderer;
39
- //# sourceMappingURL=SmartFormsRenderer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SmartFormsRenderer.js","sourceRoot":"","sources":["../../../src/components/FormRenderer/SmartFormsRenderer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,qBAAqB,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,cAAc,MAAM,4BAA4B,CAAC;AACxD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAQ9C,+BAA+B;AAC/B,SAAS,kBAAkB,CAAC,KAA8B;IACxD,MAAM,EAAE,aAAa,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,GAAG,KAAK,CAAC;IAE5E,MAAM,SAAS,GAAG,qBAAqB,CACrC,aAAa,EACb,qBAAqB,EACrB,mBAAmB,CACpB,CAAC;IACF,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,IAAI,SAAS,EAAE;QACb,OAAO,CACL,oBAAC,GAAG,IAAC,OAAO,EAAC,MAAM,EAAC,UAAU,EAAC,QAAQ,EAAC,SAAS,EAAE,CAAC;YAClD,oBAAC,gBAAgB,OAAG;YACpB,oBAAC,UAAU,mCAAsC,CAC7C,CACP,CAAC;KACH;IAED,OAAO,CACL,oBAAC,aAAa;QACZ,oBAAC,mBAAmB,IAAC,MAAM,EAAE,WAAW;YACtC,oBAAC,YAAY,OAAG,CACI,CACR,CACjB,CAAC;AACJ,CAAC;AAED,eAAe,kBAAkB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { default as SmartFormsRenderer } from './SmartFormsRenderer';
2
- export { default as BaseRenderer } from './BaseRenderer';
@@ -1,19 +0,0 @@
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
- export { default as SmartFormsRenderer } from './SmartFormsRenderer';
18
- export { default as BaseRenderer } from './BaseRenderer';
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/FormRenderer/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import React from 'react';
3
- export interface TestContextContextType {
4
- hasChanges: boolean;
5
- setHasChanges: (updatedHasChanges: boolean) => unknown;
6
- }
7
- export declare const TestContext: React.Context<TestContextContextType>;
8
- declare function TestContextProvider(props: {
9
- children: ReactNode;
10
- }): React.JSX.Element;
11
- export default TestContextProvider;
@@ -1,32 +0,0 @@
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, { createContext, useState } from 'react';
18
- export const TestContext = createContext({
19
- hasChanges: false,
20
- setHasChanges: () => void 0
21
- });
22
- function TestContextProvider(props) {
23
- const { children } = props;
24
- const [hasChanges, setHasChanges] = useState(false);
25
- const testContext = {
26
- hasChanges,
27
- setHasChanges
28
- };
29
- return React.createElement(TestContext.Provider, { value: testContext }, children);
30
- }
31
- export default TestContextProvider;
32
- //# sourceMappingURL=TestContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TestContext.js","sourceRoot":"","sources":["../../src/contexts/TestContext.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAOvD,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAyB;IAC/D,UAAU,EAAE,KAAK;IACjB,aAAa,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC;CAC5B,CAAC,CAAC;AAEH,SAAS,mBAAmB,CAAC,KAA8B;IACzD,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAE3B,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpD,MAAM,WAAW,GAA2B;QAC1C,UAAU;QACV,aAAa;KACd,CAAC;IAEF,OAAO,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,WAAW,IAAG,QAAQ,CAAwB,CAAC;AACrF,CAAC;AAED,eAAe,mBAAmB,CAAC"}
@@ -1 +0,0 @@
1
- export { default as TestContextProvider } from './TestContext';
@@ -1,2 +0,0 @@
1
- export { default as TestContextProvider } from './TestContext';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
@@ -1,5 +0,0 @@
1
- declare function useTestContext(): {
2
- hasChanges: boolean;
3
- setHasChanges: (updatedHasChanges: boolean) => unknown;
4
- };
5
- export default useTestContext;
@@ -1,27 +0,0 @@
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 { useContext } from 'react';
18
- import { TestContext } from '../contexts/TestContext';
19
- function useTestContext() {
20
- const { hasChanges, setHasChanges } = useContext(TestContext);
21
- return {
22
- hasChanges,
23
- setHasChanges
24
- };
25
- }
26
- export default useTestContext;
27
- //# sourceMappingURL=useTestContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTestContext.js","sourceRoot":"","sources":["../../src/hooks/useTestContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,SAAS,cAAc;IACrB,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;IAE9D,OAAO;QACL,UAAU;QACV,aAAa;KACd,CAAC;AACJ,CAAC;AAED,eAAe,cAAc,CAAC"}
@@ -1,18 +0,0 @@
1
- import type { Encounter, Patient, Practitioner, Questionnaire } from 'fhir/r4';
2
- import type Client from 'fhirclient/lib/Client';
3
- export interface ConfigState {
4
- smartClient: Client | null;
5
- patient: Patient | null;
6
- user: Practitioner | null;
7
- encounter: Encounter | null;
8
- launchQuestionnaire: Questionnaire | null;
9
- debugMode: boolean;
10
- setSmartClient: (client: Client) => void;
11
- setPatient: (patient: Patient) => void;
12
- setUser: (user: Practitioner) => void;
13
- setEncounter: (encounter: Encounter) => void;
14
- setLaunchQuestionnaire: (launchQuestionnaire: Questionnaire | null) => void;
15
- activateDebugMode: () => void;
16
- }
17
- declare const useConfigStore: import("zustand").UseBoundStore<import("zustand").StoreApi<ConfigState>>;
18
- export default useConfigStore;
@@ -1,17 +0,0 @@
1
- import { create } from 'zustand';
2
- const useConfigStore = create()((set) => ({
3
- smartClient: null,
4
- patient: null,
5
- user: null,
6
- encounter: null,
7
- launchQuestionnaire: null,
8
- debugMode: false,
9
- setSmartClient: (client) => set(() => ({ smartClient: client })),
10
- setPatient: (patient) => set(() => ({ patient: patient })),
11
- setUser: (user) => set(() => ({ user: user })),
12
- setEncounter: (encounter) => set(() => ({ encounter: encounter })),
13
- setLaunchQuestionnaire: (launchQuestionnaire) => set(() => ({ launchQuestionnaire: launchQuestionnaire })),
14
- activateDebugMode: () => set(() => ({ debugMode: true }))
15
- }));
16
- export default useConfigStore;
17
- //# sourceMappingURL=useConfigStore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useConfigStore.js","sourceRoot":"","sources":["../../src/stores/useConfigStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAmBjC,MAAM,cAAc,GAAG,MAAM,EAAe,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACrD,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,IAAI;IACb,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,IAAI;IACf,mBAAmB,EAAE,IAAI;IACzB,SAAS,EAAE,KAAK;IAChB,cAAc,EAAE,CAAC,MAAc,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC;IACxE,UAAU,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;IACnE,OAAO,EAAE,CAAC,IAAkB,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5D,YAAY,EAAE,CAAC,SAAoB,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC;IAC7E,sBAAsB,EAAE,CAAC,mBAAyC,EAAE,EAAE,CACpE,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAC,CAAC;IAC3D,iBAAiB,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;CAC1D,CAAC,CAAC,CAAC;AAEJ,eAAe,cAAc,CAAC"}
@@ -1,7 +0,0 @@
1
- import type Client from 'fhirclient/lib/Client';
2
- export interface UseSmartClientType {
3
- smartClient: Client | null;
4
- setSmartClient: (client: Client) => void;
5
- }
6
- declare const useSmartClientStore: import("zustand").UseBoundStore<import("zustand").StoreApi<UseSmartClientType>>;
7
- export default useSmartClientStore;
@@ -1,7 +0,0 @@
1
- import { create } from 'zustand';
2
- const useSmartClientStore = create()((set) => ({
3
- smartClient: null,
4
- setSmartClient: (client) => set(() => ({ smartClient: client }))
5
- }));
6
- export default useSmartClientStore;
7
- //# sourceMappingURL=useSmartClientStore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSmartClientStore.js","sourceRoot":"","sources":["../../src/stores/useSmartClientStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAQjC,MAAM,mBAAmB,GAAG,MAAM,EAAsB,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACjE,WAAW,EAAE,IAAI;IACjB,cAAc,EAAE,CAAC,MAAc,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC;CACzE,CAAC,CAAC,CAAC;AAEJ,eAAe,mBAAmB,CAAC"}
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export default function GlobalStyles(): React.JSX.Element;