@aehrc/smart-forms-renderer 1.2.11 → 1.2.13

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 (302) hide show
  1. package/lib/components/FormComponents/AttachmentItem/AttachmentItem.js +2 -2
  2. package/lib/components/FormComponents/AttachmentItem/AttachmentItem.js.map +1 -1
  3. package/lib/components/FormComponents/BooleanItem/BooleanItem.js +2 -2
  4. package/lib/components/FormComponents/BooleanItem/BooleanItem.js.map +1 -1
  5. package/lib/components/FormComponents/ChoiceItems/CheckboxOptionList.js +2 -1
  6. package/lib/components/FormComponents/ChoiceItems/CheckboxOptionList.js.map +1 -1
  7. package/lib/components/FormComponents/ChoiceItems/ChoiceAutocompleteField.d.ts +1 -0
  8. package/lib/components/FormComponents/ChoiceItems/ChoiceAutocompleteField.js +3 -2
  9. package/lib/components/FormComponents/ChoiceItems/ChoiceAutocompleteField.js.map +1 -1
  10. package/lib/components/FormComponents/ChoiceItems/ChoiceAutocompleteItem.js +5 -6
  11. package/lib/components/FormComponents/ChoiceItems/ChoiceAutocompleteItem.js.map +1 -1
  12. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.js +2 -2
  13. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.js.map +1 -1
  14. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.js +2 -2
  15. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.js.map +1 -1
  16. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionItem.js +2 -2
  17. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionItem.js.map +1 -1
  18. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.js +2 -2
  19. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.js.map +1 -1
  20. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioSingle.d.ts +2 -1
  21. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionFields.js +61 -3
  22. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionFields.js.map +1 -1
  23. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionItem.js +2 -2
  24. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionItem.js.map +1 -1
  25. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetFields.js +5 -2
  26. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetFields.js.map +1 -1
  27. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetItem.js +2 -2
  28. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetItem.js.map +1 -1
  29. package/lib/components/FormComponents/DateTimeItems/CustomDateItem/CustomDateItem.js +2 -2
  30. package/lib/components/FormComponents/DateTimeItems/CustomDateItem/CustomDateItem.js.map +1 -1
  31. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomDateTimeItem.js +2 -2
  32. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomDateTimeItem.js.map +1 -1
  33. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomTimeField.js +3 -3
  34. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomTimeField.js.map +1 -1
  35. package/lib/components/FormComponents/DecimalItem/DecimalItem.js +2 -2
  36. package/lib/components/FormComponents/DecimalItem/DecimalItem.js.map +1 -1
  37. package/lib/components/FormComponents/GroupItem/GroupItemView.js +1 -1
  38. package/lib/components/FormComponents/GroupItem/GroupItemView.js.map +1 -1
  39. package/lib/components/FormComponents/IntegerItem/IntegerItem.js +2 -2
  40. package/lib/components/FormComponents/IntegerItem/IntegerItem.js.map +1 -1
  41. package/lib/components/FormComponents/ItemParts/CheckboxSingle.d.ts +3 -1
  42. package/lib/components/FormComponents/ItemParts/CheckboxSingle.js +2 -2
  43. package/lib/components/FormComponents/ItemParts/CheckboxSingle.js.map +1 -1
  44. package/lib/components/FormComponents/ItemParts/FadingCheckIcon.d.ts +7 -0
  45. package/lib/components/FormComponents/ItemParts/FadingCheckIcon.js +26 -0
  46. package/lib/components/FormComponents/ItemParts/FadingCheckIcon.js.map +1 -0
  47. package/lib/components/FormComponents/ItemParts/ItemLabel.js +1 -7
  48. package/lib/components/FormComponents/ItemParts/ItemLabel.js.map +1 -1
  49. package/lib/components/FormComponents/ItemParts/ItemLabelText.d.ts +8 -0
  50. package/lib/components/FormComponents/ItemParts/ItemLabelText.js +63 -0
  51. package/lib/components/FormComponents/ItemParts/ItemLabelText.js.map +1 -0
  52. package/lib/components/FormComponents/ItemParts/ItemLabelWrapper.d.ts +8 -0
  53. package/lib/components/FormComponents/ItemParts/ItemLabelWrapper.js +53 -0
  54. package/lib/components/FormComponents/ItemParts/ItemLabelWrapper.js.map +1 -0
  55. package/lib/components/FormComponents/ItemParts/ItemTextSwitcher copy.d.ts +7 -0
  56. package/lib/components/FormComponents/ItemParts/ItemTextSwitcher copy.js +39 -0
  57. package/lib/components/FormComponents/ItemParts/ItemTextSwitcher copy.js.map +1 -0
  58. package/lib/components/FormComponents/ItemParts/ItemTextSwitcher.js +3 -19
  59. package/lib/components/FormComponents/ItemParts/ItemTextSwitcher.js.map +1 -1
  60. package/lib/components/FormComponents/ItemParts/RadioOptionList.js +2 -1
  61. package/lib/components/FormComponents/ItemParts/RadioOptionList.js.map +1 -1
  62. package/lib/components/FormComponents/ItemParts/StyledText.d.ts +8 -0
  63. package/lib/components/FormComponents/ItemParts/StyledText.js +30 -0
  64. package/lib/components/FormComponents/ItemParts/StyledText.js.map +1 -0
  65. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteField.d.ts +1 -0
  66. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteField.js +3 -2
  67. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteField.js.map +1 -1
  68. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteItem.js +5 -5
  69. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteItem.js.map +1 -1
  70. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionItem.js +2 -2
  71. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionItem.js.map +1 -1
  72. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerValueSetItem.js +2 -2
  73. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerValueSetItem.js.map +1 -1
  74. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionItem.js +2 -2
  75. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionItem.js.map +1 -1
  76. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerValueSetItem.js +2 -2
  77. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerValueSetItem.js.map +1 -1
  78. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerOptionField.d.ts +1 -0
  79. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerOptionField.js +71 -4
  80. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerOptionField.js.map +1 -1
  81. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerOptionItem.js +5 -6
  82. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerOptionItem.js.map +1 -1
  83. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerValueSetField.d.ts +1 -0
  84. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerValueSetField.js +3 -2
  85. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerValueSetField.js.map +1 -1
  86. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerValueSetItem.js +5 -6
  87. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerValueSetItem.js.map +1 -1
  88. package/lib/components/FormComponents/QuantityItem/QuantityItem.js +2 -2
  89. package/lib/components/FormComponents/QuantityItem/QuantityItem.js.map +1 -1
  90. package/lib/components/FormComponents/RepeatGroup/DeleteItemButton.d.ts +10 -0
  91. package/lib/components/FormComponents/RepeatGroup/DeleteItemButton.js +30 -0
  92. package/lib/components/FormComponents/RepeatGroup/DeleteItemButton.js.map +1 -0
  93. package/lib/components/FormComponents/SliderItem/Slider.styles.d.ts +1 -1
  94. package/lib/components/FormComponents/SliderItem/SliderItem.js +2 -2
  95. package/lib/components/FormComponents/SliderItem/SliderItem.js.map +1 -1
  96. package/lib/components/FormComponents/StringItem/StringItem.js +2 -2
  97. package/lib/components/FormComponents/StringItem/StringItem.js.map +1 -1
  98. package/lib/components/FormComponents/TextItem/TextItem.js +2 -2
  99. package/lib/components/FormComponents/TextItem/TextItem.js.map +1 -1
  100. package/lib/components/FormComponents/TimeItem/TimeItem.js +2 -2
  101. package/lib/components/FormComponents/TimeItem/TimeItem.js.map +1 -1
  102. package/lib/components/FormComponents/UrlItem/UrlItem.js +2 -2
  103. package/lib/components/FormComponents/UrlItem/UrlItem.js.map +1 -1
  104. package/lib/components/Iconify/Iconify.d.ts +10 -0
  105. package/lib/components/Iconify/Iconify.js +26 -0
  106. package/lib/components/Iconify/Iconify.js.map +1 -0
  107. package/lib/components/Renderer/FormBodyPage.d.ts +9 -0
  108. package/lib/components/Renderer/FormBodyPage.js +43 -0
  109. package/lib/components/Renderer/FormBodyPage.js.map +1 -0
  110. package/lib/components/Renderer/FormTitle.d.ts +7 -0
  111. package/lib/components/Renderer/FormTitle.js +30 -0
  112. package/lib/components/Renderer/FormTitle.js.map +1 -0
  113. package/lib/components/Renderer/FormTopLevelPage.d.ts +9 -0
  114. package/lib/components/Renderer/FormTopLevelPage.js +29 -0
  115. package/lib/components/Renderer/FormTopLevelPage.js.map +1 -0
  116. package/lib/hooks/useBooleanCalculatedExpression.d.ts +12 -0
  117. package/lib/hooks/useBooleanCalculatedExpression.js +52 -0
  118. package/lib/hooks/useBooleanCalculatedExpression.js.map +1 -0
  119. package/lib/hooks/useCalculatedExpressionAnimating.d.ts +1 -0
  120. package/lib/hooks/useCalculatedExpressionAnimating.js +18 -0
  121. package/lib/hooks/useCalculatedExpressionAnimating.js.map +1 -0
  122. package/lib/hooks/useCalculatedExpressionUpdated.d.ts +1 -1
  123. package/lib/hooks/useCalculatedExpressionUpdated.js +18 -9
  124. package/lib/hooks/useCalculatedExpressionUpdated.js.map +1 -1
  125. package/lib/hooks/useDecimalCalculatedExpression.d.ts +13 -0
  126. package/lib/hooks/useDecimalCalculatedExpression.js +58 -0
  127. package/lib/hooks/useDecimalCalculatedExpression.js.map +1 -0
  128. package/lib/hooks/useInitialiseGroupTable.d.ts +4 -0
  129. package/lib/hooks/useInitialiseGroupTable.js +36 -0
  130. package/lib/hooks/useInitialiseGroupTable.js.map +1 -0
  131. package/lib/hooks/useIntegerCalculatedExpression.d.ts +12 -0
  132. package/lib/hooks/useIntegerCalculatedExpression.js +55 -0
  133. package/lib/hooks/useIntegerCalculatedExpression.js.map +1 -0
  134. package/lib/hooks/useNumberInput.d.ts +3 -0
  135. package/lib/hooks/useNumberInput.js +31 -0
  136. package/lib/hooks/useNumberInput.js.map +1 -0
  137. package/lib/hooks/useParseXhtml.d.ts +2 -2
  138. package/lib/hooks/useParseXhtml.js +5 -5
  139. package/lib/hooks/useParseXhtml.js.map +1 -1
  140. package/lib/hooks/useRepeatAnswers.d.ts +4 -0
  141. package/lib/hooks/useRepeatAnswers.js +34 -0
  142. package/lib/hooks/useRepeatAnswers.js.map +1 -0
  143. package/lib/hooks/useRepeatGroups.d.ts +4 -0
  144. package/lib/hooks/useRepeatGroups.js +34 -0
  145. package/lib/hooks/useRepeatGroups.js.map +1 -0
  146. package/lib/hooks/useShowFeedback.d.ts +11 -0
  147. package/lib/hooks/useShowFeedback.js +33 -0
  148. package/lib/hooks/useShowFeedback.js.map +1 -0
  149. package/lib/hooks/useStringCalculatedExpression.d.ts +14 -0
  150. package/lib/hooks/useStringCalculatedExpression.js +69 -0
  151. package/lib/hooks/useStringCalculatedExpression.js.map +1 -0
  152. package/lib/hooks/useStringInput.d.ts +3 -0
  153. package/lib/hooks/useStringInput.js +31 -0
  154. package/lib/hooks/useStringInput.js.map +1 -0
  155. package/lib/interfaces/itemPath.interface.d.ts +31 -0
  156. package/lib/interfaces/itemPath.interface.js +2 -0
  157. package/lib/interfaces/itemPath.interface.js.map +1 -0
  158. package/lib/interfaces/repeatItem.interface.d.ts +5 -0
  159. package/lib/interfaces/repeatItem.interface.js +2 -0
  160. package/lib/interfaces/repeatItem.interface.js.map +1 -0
  161. package/lib/stores/questionnaireStore.js +15 -2
  162. package/lib/stores/questionnaireStore.js.map +1 -1
  163. package/lib/stores/rendererStylingStore.d.ts +144 -0
  164. package/lib/stores/rendererStylingStore.js +68 -0
  165. package/lib/stores/rendererStylingStore.js.map +1 -0
  166. package/lib/stories/storybookWrappers/InitialiseFormWrapperForStorybook.d.ts +30 -0
  167. package/lib/stories/storybookWrappers/InitialiseFormWrapperForStorybook.js +46 -0
  168. package/lib/stories/storybookWrappers/InitialiseFormWrapperForStorybook.js.map +1 -0
  169. package/lib/stories/storybookWrappers/index.d.ts +2 -0
  170. package/lib/stories/storybookWrappers/index.js +18 -0
  171. package/lib/stories/storybookWrappers/index.js.map +1 -0
  172. package/lib/stories/testUtils.d.ts +23 -0
  173. package/lib/stories/testUtils.js +249 -0
  174. package/lib/stories/testUtils.js.map +1 -0
  175. package/lib/theme/Theme.d.ts +44 -0
  176. package/lib/theme/Theme.js +45 -0
  177. package/lib/theme/Theme.js.map +1 -0
  178. package/lib/theme/customGlobalStyles.d.ts +2 -0
  179. package/lib/theme/customGlobalStyles.js +61 -0
  180. package/lib/theme/customGlobalStyles.js.map +1 -0
  181. package/lib/theme/overrides/Accordion.d.ts +14 -0
  182. package/lib/theme/overrides/Accordion.js +32 -0
  183. package/lib/theme/overrides/Accordion.js.map +1 -0
  184. package/lib/theme/overrides/Autocomplete.d.ts +10 -0
  185. package/lib/theme/overrides/Autocomplete.js +28 -0
  186. package/lib/theme/overrides/Autocomplete.js.map +1 -0
  187. package/lib/theme/overrides/Button.d.ts +33 -0
  188. package/lib/theme/overrides/Button.js +52 -0
  189. package/lib/theme/overrides/Button.js.map +1 -0
  190. package/lib/theme/overrides/Card.d.ts +35 -0
  191. package/lib/theme/overrides/Card.js +49 -0
  192. package/lib/theme/overrides/Card.js.map +1 -0
  193. package/lib/theme/overrides/Input.d.ts +64 -0
  194. package/lib/theme/overrides/Input.js +81 -0
  195. package/lib/theme/overrides/Input.js.map +1 -0
  196. package/lib/theme/overrides/Overrides.d.ts +3 -0
  197. package/lib/theme/overrides/Overrides.js +29 -0
  198. package/lib/theme/overrides/Overrides.js.map +1 -0
  199. package/lib/theme/overrides/Paper.d.ts +12 -0
  200. package/lib/theme/overrides/Paper.js +31 -0
  201. package/lib/theme/overrides/Paper.js.map +1 -0
  202. package/lib/theme/overrides/SpeedDial.d.ts +16 -0
  203. package/lib/theme/overrides/SpeedDial.js +34 -0
  204. package/lib/theme/overrides/SpeedDial.js.map +1 -0
  205. package/lib/theme/overrides/Table.d.ts +12 -0
  206. package/lib/theme/overrides/Table.js +30 -0
  207. package/lib/theme/overrides/Table.js.map +1 -0
  208. package/lib/theme/palette.d.ts +27 -0
  209. package/lib/theme/palette.js +67 -0
  210. package/lib/theme/palette.js.map +1 -0
  211. package/lib/theme/shadows.d.ts +2 -0
  212. package/lib/theme/shadows.js +52 -0
  213. package/lib/theme/shadows.js.map +1 -0
  214. package/lib/utils/answerExpression.d.ts +18 -0
  215. package/lib/utils/answerExpression.js +133 -0
  216. package/lib/utils/answerExpression.js.map +1 -0
  217. package/lib/utils/calculatedExpression.js +1 -5
  218. package/lib/utils/calculatedExpression.js.map +1 -1
  219. package/lib/utils/dayjsExtend.d.ts +1 -0
  220. package/lib/utils/dayjsExtend.js +22 -0
  221. package/lib/utils/dayjsExtend.js.map +1 -0
  222. package/lib/utils/dynamicValueSet.d.ts +5 -0
  223. package/lib/utils/dynamicValueSet.js +96 -0
  224. package/lib/utils/dynamicValueSet.js.map +1 -0
  225. package/lib/utils/extensions.d.ts +2 -2
  226. package/lib/utils/extensions.js +2 -2
  227. package/lib/utils/extensions.js.map +1 -1
  228. package/lib/utils/fhirpathAsyncUtils/fhirpath-async.d.ts +14 -0
  229. package/lib/utils/fhirpathAsyncUtils/fhirpath-async.js +639 -0
  230. package/lib/utils/fhirpathAsyncUtils/fhirpath-async.js.map +1 -0
  231. package/lib/utils/fhirpathAsyncUtils/outcome-utils.d.ts +3 -0
  232. package/lib/utils/fhirpathAsyncUtils/outcome-utils.js +41 -0
  233. package/lib/utils/fhirpathAsyncUtils/outcome-utils.js.map +1 -0
  234. package/lib/utils/itemControl.d.ts +97 -0
  235. package/lib/utils/itemControl.js +336 -0
  236. package/lib/utils/itemControl.js.map +1 -0
  237. package/lib/utils/itemPath.d.ts +57 -0
  238. package/lib/utils/itemPath.js +75 -0
  239. package/lib/utils/itemPath.js.map +1 -0
  240. package/lib/utils/manageForm.js +5 -4
  241. package/lib/utils/manageForm.js.map +1 -1
  242. package/lib/utils/qrItem.d.ts +6 -0
  243. package/lib/utils/qrItem.js +11 -0
  244. package/lib/utils/qrItem.js.map +1 -1
  245. package/lib/utils/questionnaireStoreUtils/addAdditionalVariables.d.ts +2 -0
  246. package/lib/utils/questionnaireStoreUtils/addAdditionalVariables.js +43 -0
  247. package/lib/utils/questionnaireStoreUtils/addAdditionalVariables.js.map +1 -0
  248. package/lib/utils/questionnaireStoreUtils/createQuestionaireModel.d.ts +3 -0
  249. package/lib/utils/questionnaireStoreUtils/createQuestionaireModel.js +101 -0
  250. package/lib/utils/questionnaireStoreUtils/createQuestionaireModel.js.map +1 -0
  251. package/lib/utils/validateQuestionnaire.d.ts +66 -0
  252. package/lib/utils/validateQuestionnaire.js +559 -0
  253. package/lib/utils/validateQuestionnaire.js.map +1 -0
  254. package/package.json +2 -2
  255. package/src/components/FormComponents/AttachmentItem/AttachmentItem.tsx +2 -2
  256. package/src/components/FormComponents/BooleanItem/BooleanItem.tsx +2 -2
  257. package/src/components/FormComponents/ChoiceItems/CheckboxOptionList.tsx +5 -1
  258. package/src/components/FormComponents/ChoiceItems/ChoiceAutocompleteField.tsx +5 -0
  259. package/src/components/FormComponents/ChoiceItems/ChoiceAutocompleteItem.tsx +6 -4
  260. package/src/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.tsx +2 -2
  261. package/src/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.tsx +2 -2
  262. package/src/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionItem.tsx +2 -2
  263. package/src/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.tsx +2 -2
  264. package/src/components/FormComponents/ChoiceItems/ChoiceRadioSingle.tsx +1 -1
  265. package/src/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionFields.tsx +93 -4
  266. package/src/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionItem.tsx +2 -2
  267. package/src/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetFields.tsx +4 -2
  268. package/src/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetItem.tsx +2 -2
  269. package/src/components/FormComponents/DateTimeItems/CustomDateItem/CustomDateItem.tsx +2 -2
  270. package/src/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomDateTimeItem.tsx +2 -2
  271. package/src/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomTimeField.tsx +3 -1
  272. package/src/components/FormComponents/DecimalItem/DecimalItem.tsx +2 -2
  273. package/src/components/FormComponents/GroupItem/GroupItemView.tsx +1 -1
  274. package/src/components/FormComponents/IntegerItem/IntegerItem.tsx +2 -2
  275. package/src/components/FormComponents/ItemParts/CheckboxSingle.tsx +4 -2
  276. package/src/components/FormComponents/ItemParts/ItemLabel.tsx +1 -8
  277. package/src/components/FormComponents/ItemParts/ItemTextSwitcher.tsx +3 -25
  278. package/src/components/FormComponents/ItemParts/RadioOptionList.tsx +4 -1
  279. package/src/components/FormComponents/ItemParts/StyledText.tsx +46 -0
  280. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteField.tsx +4 -0
  281. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteItem.tsx +6 -3
  282. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionItem.tsx +2 -2
  283. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerValueSetItem.tsx +2 -2
  284. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionItem.tsx +2 -2
  285. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerValueSetItem.tsx +2 -2
  286. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerOptionField.tsx +86 -3
  287. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerOptionItem.tsx +6 -4
  288. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerValueSetField.tsx +4 -0
  289. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerValueSetItem.tsx +6 -4
  290. package/src/components/FormComponents/QuantityItem/QuantityItem.tsx +2 -2
  291. package/src/components/FormComponents/SliderItem/SliderItem.tsx +2 -2
  292. package/src/components/FormComponents/StringItem/StringItem.tsx +2 -2
  293. package/src/components/FormComponents/TextItem/TextItem.tsx +2 -2
  294. package/src/components/FormComponents/TimeItem/TimeItem.tsx +2 -2
  295. package/src/components/FormComponents/UrlItem/UrlItem.tsx +2 -2
  296. package/src/hooks/useCalculatedExpressionUpdated.ts +25 -11
  297. package/src/hooks/useParseXhtml.tsx +9 -6
  298. package/src/stores/questionnaireStore.ts +23 -0
  299. package/src/utils/calculatedExpression.ts +1 -5
  300. package/src/utils/extensions.ts +9 -3
  301. package/src/utils/manageForm.ts +10 -9
  302. package/src/utils/qrItem.ts +12 -0
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Copyright 2024 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 function Card(theme) {
18
+ return {
19
+ MuiCard: {
20
+ styleOverrides: {
21
+ root: {
22
+ boxShadow: theme.customShadows.card,
23
+ borderRadius: Number(theme.shape.borderRadius) * 2,
24
+ position: 'relative',
25
+ zIndex: 0 // Fix Safari overflow: hidden with border radius
26
+ }
27
+ }
28
+ },
29
+ MuiCardHeader: {
30
+ defaultProps: {
31
+ titleTypographyProps: { variant: 'h6' },
32
+ subheaderTypographyProps: { variant: 'body2' }
33
+ },
34
+ styleOverrides: {
35
+ root: {
36
+ padding: theme.spacing(3, 3, 0)
37
+ }
38
+ }
39
+ },
40
+ MuiCardContent: {
41
+ styleOverrides: {
42
+ root: {
43
+ padding: theme.spacing(3)
44
+ }
45
+ }
46
+ }
47
+ };
48
+ }
49
+ //# sourceMappingURL=Card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../src/theme/overrides/Card.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAY;IACvC,OAAO;QACL,OAAO,EAAE;YACP,cAAc,EAAE;gBACd,IAAI,EAAE;oBACJ,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,IAAI;oBACnC,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC;oBAClD,QAAQ,EAAE,UAAU;oBACpB,MAAM,EAAE,CAAC,CAAC,iDAAiD;iBAC5D;aACF;SACF;QACD,aAAa,EAAE;YACb,YAAY,EAAE;gBACZ,oBAAoB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;gBACvC,wBAAwB,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;aAC/C;YACD,cAAc,EAAE;gBACd,IAAI,EAAE;oBACJ,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;iBAChC;aACF;SACF;QACD,cAAc,EAAE;YACd,cAAc,EAAE;gBACd,IAAI,EAAE;oBACJ,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;iBAC1B;aACF;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,64 @@
1
+ import type { Theme } from '@mui/material/styles';
2
+ export default function Input(theme: Theme): {
3
+ MuiInputBase: {
4
+ styleOverrides: {
5
+ root: {
6
+ '&.Mui-disabled': {
7
+ '& svg': {
8
+ color: string;
9
+ };
10
+ };
11
+ };
12
+ input: {
13
+ '&::placeholder': {
14
+ opacity: number;
15
+ color: string;
16
+ };
17
+ };
18
+ };
19
+ };
20
+ MuiInput: {
21
+ styleOverrides: {
22
+ underline: {
23
+ '&:before': {
24
+ borderBottomColor: string;
25
+ };
26
+ };
27
+ };
28
+ };
29
+ MuiFilledInput: {
30
+ styleOverrides: {
31
+ root: {
32
+ backgroundColor: string;
33
+ '&:hover': {
34
+ backgroundColor: string;
35
+ };
36
+ '&.Mui-focused': {
37
+ backgroundColor: string;
38
+ };
39
+ '&.Mui-disabled': {
40
+ backgroundColor: string;
41
+ };
42
+ };
43
+ underline: {
44
+ '&:before': {
45
+ borderBottomColor: string;
46
+ };
47
+ };
48
+ };
49
+ };
50
+ MuiOutlinedInput: {
51
+ styleOverrides: {
52
+ root: {
53
+ '& .MuiOutlinedInput-notchedOutline': {
54
+ borderColor: string;
55
+ };
56
+ '&.Mui-disabled': {
57
+ '& .MuiOutlinedInput-notchedOutline': {
58
+ borderColor: string;
59
+ };
60
+ };
61
+ };
62
+ };
63
+ };
64
+ };
@@ -0,0 +1,81 @@
1
+ /*
2
+ * Copyright 2024 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 { alpha } from '@mui/material/styles';
18
+ export default function Input(theme) {
19
+ return {
20
+ MuiInputBase: {
21
+ styleOverrides: {
22
+ root: {
23
+ '&.Mui-disabled': {
24
+ '& svg': { color: theme.palette.text.disabled }
25
+ }
26
+ },
27
+ input: {
28
+ '&::placeholder': {
29
+ opacity: 1,
30
+ color: theme.palette.text.disabled
31
+ }
32
+ }
33
+ }
34
+ },
35
+ MuiInput: {
36
+ styleOverrides: {
37
+ underline: {
38
+ '&:before': {
39
+ borderBottomColor: alpha(theme.palette.grey[500], 0.56)
40
+ }
41
+ }
42
+ }
43
+ },
44
+ MuiFilledInput: {
45
+ styleOverrides: {
46
+ root: {
47
+ backgroundColor: alpha(theme.palette.grey[500], 0.12),
48
+ '&:hover': {
49
+ backgroundColor: alpha(theme.palette.grey[500], 0.16)
50
+ },
51
+ '&.Mui-focused': {
52
+ backgroundColor: theme.palette.action.focus
53
+ },
54
+ '&.Mui-disabled': {
55
+ backgroundColor: theme.palette.action.disabledBackground
56
+ }
57
+ },
58
+ underline: {
59
+ '&:before': {
60
+ borderBottomColor: alpha(theme.palette.grey[500], 0.56)
61
+ }
62
+ }
63
+ }
64
+ },
65
+ MuiOutlinedInput: {
66
+ styleOverrides: {
67
+ root: {
68
+ '& .MuiOutlinedInput-notchedOutline': {
69
+ borderColor: alpha(theme.palette.grey[500], 0.32)
70
+ },
71
+ '&.Mui-disabled': {
72
+ '& .MuiOutlinedInput-notchedOutline': {
73
+ borderColor: theme.palette.action.disabledBackground
74
+ }
75
+ }
76
+ }
77
+ }
78
+ }
79
+ };
80
+ }
81
+ //# sourceMappingURL=Input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../src/theme/overrides/Input.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAY;IACxC,OAAO;QACL,YAAY,EAAE;YACZ,cAAc,EAAE;gBACd,IAAI,EAAE;oBACJ,gBAAgB,EAAE;wBAChB,OAAO,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE;qBAChD;iBACF;gBACD,KAAK,EAAE;oBACL,gBAAgB,EAAE;wBAChB,OAAO,EAAE,CAAC;wBACV,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ;qBACnC;iBACF;aACF;SACF;QACD,QAAQ,EAAE;YACR,cAAc,EAAE;gBACd,SAAS,EAAE;oBACT,UAAU,EAAE;wBACV,iBAAiB,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC;qBACxD;iBACF;aACF;SACF;QACD,cAAc,EAAE;YACd,cAAc,EAAE;gBACd,IAAI,EAAE;oBACJ,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC;oBACrD,SAAS,EAAE;wBACT,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC;qBACtD;oBACD,eAAe,EAAE;wBACf,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;qBAC5C;oBACD,gBAAgB,EAAE;wBAChB,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,kBAAkB;qBACzD;iBACF;gBACD,SAAS,EAAE;oBACT,UAAU,EAAE;wBACV,iBAAiB,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC;qBACxD;iBACF;aACF;SACF;QACD,gBAAgB,EAAE;YAChB,cAAc,EAAE;gBACd,IAAI,EAAE;oBACJ,oCAAoC,EAAE;wBACpC,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC;qBAClD;oBACD,gBAAgB,EAAE;wBAChB,oCAAoC,EAAE;4BACpC,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,kBAAkB;yBACrD;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Theme } from '@mui/material/styles';
2
+ declare function ComponentsOverrides(theme: Theme): any;
3
+ export default ComponentsOverrides;
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Copyright 2024 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 Card from './Card';
18
+ import Paper from './Paper';
19
+ import Input from './Input';
20
+ import Table from './Table';
21
+ import Button from './Button';
22
+ import Autocomplete from './Autocomplete';
23
+ import Accordion from './Accordion';
24
+ import SpeedDial from './SpeedDial';
25
+ function ComponentsOverrides(theme) {
26
+ return Object.assign(Accordion(theme), Card(theme), Table(theme), Input(theme), Paper(), Button(theme), Autocomplete(theme), SpeedDial(theme));
27
+ }
28
+ export default ComponentsOverrides;
29
+ //# sourceMappingURL=Overrides.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Overrides.js","sourceRoot":"","sources":["../../../src/theme/overrides/Overrides.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,SAAS,MAAM,aAAa,CAAC;AAGpC,SAAS,mBAAmB,CAAC,KAAY;IACvC,OAAO,MAAM,CAAC,MAAM,CAClB,SAAS,CAAC,KAAK,CAAC,EAChB,IAAI,CAAC,KAAK,CAAC,EACX,KAAK,CAAC,KAAK,CAAC,EACZ,KAAK,CAAC,KAAK,CAAC,EACZ,KAAK,EAAE,EACP,MAAM,CAAC,KAAK,CAAC,EACb,YAAY,CAAC,KAAK,CAAC,EACnB,SAAS,CAAC,KAAK,CAAC,CACjB,CAAC;AACJ,CAAC;AAED,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,12 @@
1
+ export default function Paper(): {
2
+ MuiPaper: {
3
+ defaultProps: {
4
+ elevation: number;
5
+ };
6
+ styleOverrides: {
7
+ root: {
8
+ backgroundImage: string;
9
+ };
10
+ };
11
+ };
12
+ };
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright 2024 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 function Paper() {
18
+ return {
19
+ MuiPaper: {
20
+ defaultProps: {
21
+ elevation: 0
22
+ },
23
+ styleOverrides: {
24
+ root: {
25
+ backgroundImage: 'none'
26
+ }
27
+ }
28
+ }
29
+ };
30
+ }
31
+ //# sourceMappingURL=Paper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Paper.js","sourceRoot":"","sources":["../../../src/theme/overrides/Paper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,CAAC,OAAO,UAAU,KAAK;IAC3B,OAAO;QACL,QAAQ,EAAE;YACR,YAAY,EAAE;gBACZ,SAAS,EAAE,CAAC;aACb;YACD,cAAc,EAAE;gBACd,IAAI,EAAE;oBACJ,eAAe,EAAE,MAAM;iBACxB;aACF;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { Theme } from '@mui/material/styles';
2
+ export default function SpeedDial(theme: Theme): {
3
+ MuiSpeedDialAction: {
4
+ styleOverrides: {
5
+ staticTooltipLabel: {
6
+ backgroundColor: string;
7
+ color: string;
8
+ fontSize: import("csstype").Property.FontSize<string | number> | undefined;
9
+ fontWeight: import("csstype").Property.FontWeight | undefined;
10
+ boxShadow: string;
11
+ maxWidth: number;
12
+ whiteSpace: string;
13
+ };
14
+ };
15
+ };
16
+ };
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Copyright 2024 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 function SpeedDial(theme) {
18
+ return {
19
+ MuiSpeedDialAction: {
20
+ styleOverrides: {
21
+ staticTooltipLabel: {
22
+ backgroundColor: theme.palette.grey[600],
23
+ color: theme.palette.common.white,
24
+ fontSize: theme.typography.subtitle2.fontSize,
25
+ fontWeight: theme.typography.subtitle2.fontWeight,
26
+ boxShadow: theme.customShadows.z8,
27
+ maxWidth: 200,
28
+ whiteSpace: 'nowrap'
29
+ }
30
+ }
31
+ }
32
+ };
33
+ }
34
+ //# sourceMappingURL=SpeedDial.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpeedDial.js","sourceRoot":"","sources":["../../../src/theme/overrides/SpeedDial.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAY;IAC5C,OAAO;QACL,kBAAkB,EAAE;YAClB,cAAc,EAAE;gBACd,kBAAkB,EAAE;oBAClB,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;oBACxC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;oBACjC,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ;oBAC7C,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,UAAU;oBACjD,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,EAAE;oBACjC,QAAQ,EAAE,GAAG;oBACb,UAAU,EAAE,QAAQ;iBACrB;aACF;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { Theme } from '@mui/material/styles';
2
+ export default function Table(theme: Theme): {
3
+ MuiTableCell: {
4
+ styleOverrides: {
5
+ head: {
6
+ color: string;
7
+ backgroundColor: string;
8
+ borderBottom: string;
9
+ };
10
+ };
11
+ };
12
+ };
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright 2024 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 function Table(theme) {
18
+ return {
19
+ MuiTableCell: {
20
+ styleOverrides: {
21
+ head: {
22
+ color: theme.palette.text.secondary,
23
+ backgroundColor: theme.palette.customBackground.neutral,
24
+ borderBottom: '1px solid #e5e7eb'
25
+ }
26
+ }
27
+ }
28
+ };
29
+ }
30
+ //# sourceMappingURL=Table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/theme/overrides/Table.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAY;IACxC,OAAO;QACL,YAAY,EAAE;YACZ,cAAc,EAAE;gBACd,IAAI,EAAE;oBACJ,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS;oBACnC,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO;oBACvD,YAAY,EAAE,mBAAmB;iBAClC;aACF;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type { PaletteColor, PaletteColorOptions, PaletteOptions } from '@mui/material/styles';
2
+ declare module '@mui/material/styles' {
3
+ interface Palette {
4
+ accent1: PaletteColor;
5
+ accent2: PaletteColor;
6
+ pale: {
7
+ primary: string;
8
+ secondary: string;
9
+ };
10
+ customBackground: {
11
+ neutral: string;
12
+ };
13
+ }
14
+ interface PaletteOptions {
15
+ accent1?: PaletteColorOptions;
16
+ accent2?: PaletteColorOptions;
17
+ pale?: {
18
+ primary: string;
19
+ secondary: string;
20
+ };
21
+ customBackground?: {
22
+ neutral: string;
23
+ };
24
+ }
25
+ }
26
+ declare const palette: PaletteOptions;
27
+ export default palette;
@@ -0,0 +1,67 @@
1
+ /*
2
+ * Copyright 2024 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 { alpha } from '@mui/material/styles';
18
+ import { grey } from '@mui/material/colors';
19
+ const SECONDARY = {
20
+ light: '#7ac298',
21
+ main: '#229954',
22
+ dark: '#145c32',
23
+ contrastText: '#fff'
24
+ };
25
+ const palette = {
26
+ common: { black: '#000', white: '#fff' },
27
+ secondary: SECONDARY,
28
+ accent1: {
29
+ main: '#d2e0f6',
30
+ light: '#e9f0fa',
31
+ dark: '#bcd1f1'
32
+ },
33
+ accent2: {
34
+ main: '#d5f5e3',
35
+ light: '#eafaf1',
36
+ dark: '#abebc6'
37
+ },
38
+ pale: {
39
+ primary: '#D6EBFC',
40
+ secondary: '#D3EBDD'
41
+ },
42
+ divider: alpha(grey['500'], 0.24),
43
+ text: {
44
+ primary: grey['800'],
45
+ secondary: grey['600'],
46
+ disabled: grey['500']
47
+ },
48
+ background: {
49
+ paper: '#fff',
50
+ default: grey['50']
51
+ },
52
+ customBackground: {
53
+ neutral: '#F4F6F8'
54
+ },
55
+ action: {
56
+ active: grey['600'],
57
+ hover: alpha(grey['500'], 0.08),
58
+ selected: alpha(grey['500'], 0.16),
59
+ disabled: alpha(grey['500'], 0.8),
60
+ disabledBackground: alpha(grey['500'], 0.24),
61
+ focus: alpha(grey['500'], 0.24),
62
+ hoverOpacity: 0.08,
63
+ disabledOpacity: 0.48
64
+ }
65
+ };
66
+ export default palette;
67
+ //# sourceMappingURL=palette.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.js","sourceRoot":"","sources":["../../src/theme/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AA8B5C,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,YAAY,EAAE,MAAM;CACrB,CAAC;AAEF,MAAM,OAAO,GAAmB;IAC9B,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IACxC,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE;QACP,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,SAAS;KAChB;IACD,OAAO,EAAE;QACP,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,SAAS;KAChB;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,SAAS;KACrB;IACD,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC;IACjC,IAAI,EAAE;QACJ,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC;QACtB,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC;KACtB;IACD,UAAU,EAAE;QACV,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC;KACpB;IACD,gBAAgB,EAAE;QAChB,OAAO,EAAE,SAAS;KACnB;IACD,MAAM,EAAE;QACN,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC;QACnB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC;QAC/B,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC;QAClC,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC;QACjC,kBAAkB,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC;QAC5C,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC;QAC/B,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,IAAI;KACtB;CACF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare const _default: string[];
2
+ export default _default;
@@ -0,0 +1,52 @@
1
+ /*
2
+ * Copyright 2024 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 { alpha } from '@mui/material/styles';
18
+ import { grey } from '@mui/material/colors';
19
+ function shadows() {
20
+ const transparent1 = alpha(grey['500'], 0.2);
21
+ const transparent2 = alpha(grey['500'], 0.14);
22
+ const transparent3 = alpha(grey['500'], 0.12);
23
+ return [
24
+ 'none',
25
+ `0px 2px 1px -1px ${transparent1},0px 1px 1px 0px ${transparent2},0px 1px 3px 0px ${transparent3}`,
26
+ `0px 3px 1px -2px ${transparent1},0px 2px 2px 0px ${transparent2},0px 1px 5px 0px ${transparent3}`,
27
+ `0px 3px 3px -2px ${transparent1},0px 3px 4px 0px ${transparent2},0px 1px 8px 0px ${transparent3}`,
28
+ `0px 2px 4px -1px ${transparent1},0px 4px 5px 0px ${transparent2},0px 1px 10px 0px ${transparent3}`,
29
+ `0px 3px 5px -1px ${transparent1},0px 5px 8px 0px ${transparent2},0px 1px 14px 0px ${transparent3}`,
30
+ `0px 3px 5px -1px ${transparent1},0px 6px 10px 0px ${transparent2},0px 1px 18px 0px ${transparent3}`,
31
+ `0px 4px 5px -2px ${transparent1},0px 7px 10px 1px ${transparent2},0px 2px 16px 1px ${transparent3}`,
32
+ `0px 5px 5px -3px ${transparent1},0px 8px 10px 1px ${transparent2},0px 3px 14px 2px ${transparent3}`,
33
+ `0px 5px 6px -3px ${transparent1},0px 9px 12px 1px ${transparent2},0px 3px 16px 2px ${transparent3}`,
34
+ `0px 6px 6px -3px ${transparent1},0px 10px 14px 1px ${transparent2},0px 4px 18px 3px ${transparent3}`,
35
+ `0px 6px 7px -4px ${transparent1},0px 11px 15px 1px ${transparent2},0px 4px 20px 3px ${transparent3}`,
36
+ `0px 7px 8px -4px ${transparent1},0px 12px 17px 2px ${transparent2},0px 5px 22px 4px ${transparent3}`,
37
+ `0px 7px 8px -4px ${transparent1},0px 13px 19px 2px ${transparent2},0px 5px 24px 4px ${transparent3}`,
38
+ `0px 7px 9px -4px ${transparent1},0px 14px 21px 2px ${transparent2},0px 5px 26px 4px ${transparent3}`,
39
+ `0px 8px 9px -5px ${transparent1},0px 15px 22px 2px ${transparent2},0px 6px 28px 5px ${transparent3}`,
40
+ `0px 8px 10px -5px ${transparent1},0px 16px 24px 2px ${transparent2},0px 6px 30px 5px ${transparent3}`,
41
+ `0px 8px 11px -5px ${transparent1},0px 17px 26px 2px ${transparent2},0px 6px 32px 5px ${transparent3}`,
42
+ `0px 9px 11px -5px ${transparent1},0px 18px 28px 2px ${transparent2},0px 7px 34px 6px ${transparent3}`,
43
+ `0px 9px 12px -6px ${transparent1},0px 19px 29px 2px ${transparent2},0px 7px 36px 6px ${transparent3}`,
44
+ `0px 10px 13px -6px ${transparent1},0px 20px 31px 3px ${transparent2},0px 8px 38px 7px ${transparent3}`,
45
+ `0px 10px 13px -6px ${transparent1},0px 21px 33px 3px ${transparent2},0px 8px 40px 7px ${transparent3}`,
46
+ `0px 10px 14px -6px ${transparent1},0px 22px 35px 3px ${transparent2},0px 8px 42px 7px ${transparent3}`,
47
+ `0px 11px 14px -7px ${transparent1},0px 23px 36px 3px ${transparent2},0px 9px 44px 8px ${transparent3}`,
48
+ `0px 11px 15px -7px ${transparent1},0px 24px 38px 3px ${transparent2},0px 9px 46px 8px ${transparent3}`
49
+ ];
50
+ }
51
+ export default shadows();
52
+ //# sourceMappingURL=shadows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shadows.js","sourceRoot":"","sources":["../../src/theme/shadows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C,SAAS,OAAO;IACd,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC;IAC7C,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;IAC9C,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;IAC9C,OAAO;QACL,MAAM;QACN,oBAAoB,YAAY,oBAAoB,YAAY,oBAAoB,YAAY,EAAE;QAClG,oBAAoB,YAAY,oBAAoB,YAAY,oBAAoB,YAAY,EAAE;QAClG,oBAAoB,YAAY,oBAAoB,YAAY,oBAAoB,YAAY,EAAE;QAClG,oBAAoB,YAAY,oBAAoB,YAAY,qBAAqB,YAAY,EAAE;QACnG,oBAAoB,YAAY,oBAAoB,YAAY,qBAAqB,YAAY,EAAE;QACnG,oBAAoB,YAAY,qBAAqB,YAAY,qBAAqB,YAAY,EAAE;QACpG,oBAAoB,YAAY,qBAAqB,YAAY,qBAAqB,YAAY,EAAE;QACpG,oBAAoB,YAAY,qBAAqB,YAAY,qBAAqB,YAAY,EAAE;QACpG,oBAAoB,YAAY,qBAAqB,YAAY,qBAAqB,YAAY,EAAE;QACpG,oBAAoB,YAAY,sBAAsB,YAAY,qBAAqB,YAAY,EAAE;QACrG,oBAAoB,YAAY,sBAAsB,YAAY,qBAAqB,YAAY,EAAE;QACrG,oBAAoB,YAAY,sBAAsB,YAAY,qBAAqB,YAAY,EAAE;QACrG,oBAAoB,YAAY,sBAAsB,YAAY,qBAAqB,YAAY,EAAE;QACrG,oBAAoB,YAAY,sBAAsB,YAAY,qBAAqB,YAAY,EAAE;QACrG,oBAAoB,YAAY,sBAAsB,YAAY,qBAAqB,YAAY,EAAE;QACrG,qBAAqB,YAAY,sBAAsB,YAAY,qBAAqB,YAAY,EAAE;QACtG,qBAAqB,YAAY,sBAAsB,YAAY,qBAAqB,YAAY,EAAE;QACtG,qBAAqB,YAAY,sBAAsB,YAAY,qBAAqB,YAAY,EAAE;QACtG,qBAAqB,YAAY,sBAAsB,YAAY,qBAAqB,YAAY,EAAE;QACtG,sBAAsB,YAAY,sBAAsB,YAAY,qBAAqB,YAAY,EAAE;QACvG,sBAAsB,YAAY,sBAAsB,YAAY,qBAAqB,YAAY,EAAE;QACvG,sBAAsB,YAAY,sBAAsB,YAAY,qBAAqB,YAAY,EAAE;QACvG,sBAAsB,YAAY,sBAAsB,YAAY,qBAAqB,YAAY,EAAE;QACvG,sBAAsB,YAAY,sBAAsB,YAAY,qBAAqB,YAAY,EAAE;KACxG,CAAC;AACJ,CAAC;AAED,eAAe,OAAO,EAAE,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { AnswerExpression } from '../interfaces/answerExpression.interface';
2
+ import { type Expression, type QuestionnaireResponse, type QuestionnaireResponseItem } from 'fhir/r4';
3
+ interface EvaluateInitialAnswerExpressionsParams {
4
+ initialResponse: QuestionnaireResponse;
5
+ initialResponseItemMap: Record<string, QuestionnaireResponseItem[]>;
6
+ answerExpressions: Record<string, AnswerExpression>;
7
+ variablesFhirPath: Record<string, Expression[]>;
8
+ existingFhirPathContext: Record<string, any>;
9
+ }
10
+ export declare function evaluateInitialAnswerExpressions(params: EvaluateInitialAnswerExpressionsParams): Promise<{
11
+ initialAnswerExpressions: Record<string, AnswerExpression>;
12
+ updatedFhirPathContext: Record<string, any>;
13
+ }>;
14
+ export declare function evaluateAnswerExpressions(fhirPathContext: Record<string, any>, answerExpressions: Record<string, AnswerExpression>): {
15
+ answerExpsIsUpdated: boolean;
16
+ updatedAnswerExpressions: Record<string, AnswerExpression>;
17
+ };
18
+ export {};