@aehrc/smart-forms-renderer 0.17.0 → 0.20.0

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 (567) hide show
  1. package/__mocks__/zustand.ts +1 -1
  2. package/lib/api/smartClient.js +1 -1
  3. package/lib/components/Alert.styles.js +1 -1
  4. package/lib/components/Box.styles.js +1 -1
  5. package/lib/components/FormComponents/AttachmentItem/AttachmentField.js +1 -1
  6. package/lib/components/FormComponents/AttachmentItem/AttachmentFieldWrapper.js +1 -1
  7. package/lib/components/FormComponents/AttachmentItem/AttachmentFileDropBox.js +1 -1
  8. package/lib/components/FormComponents/AttachmentItem/AttachmentItem.js +1 -1
  9. package/lib/components/FormComponents/AttachmentItem/AttachmentUrlField.js +1 -1
  10. package/lib/components/FormComponents/BooleanItem/BooleanField.d.ts +7 -3
  11. package/lib/components/FormComponents/BooleanItem/BooleanField.js +27 -5
  12. package/lib/components/FormComponents/BooleanItem/BooleanField.js.map +1 -1
  13. package/lib/components/FormComponents/BooleanItem/BooleanItem.js +20 -11
  14. package/lib/components/FormComponents/BooleanItem/BooleanItem.js.map +1 -1
  15. package/lib/components/FormComponents/ChoiceItems/ChoiceAutocompleteField.js +1 -1
  16. package/lib/components/FormComponents/ChoiceItems/ChoiceAutocompleteItem.js +1 -1
  17. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionFields.d.ts +0 -2
  18. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionFields.js +6 -4
  19. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionFields.js.map +1 -1
  20. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.d.ts +0 -2
  21. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.js +4 -4
  22. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.js.map +1 -1
  23. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetFields.d.ts +2 -3
  24. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetFields.js +5 -2
  25. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetFields.js.map +1 -1
  26. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.d.ts +0 -2
  27. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.js +4 -4
  28. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.js.map +1 -1
  29. package/lib/components/FormComponents/ChoiceItems/ChoiceItemSwitcher.js +6 -7
  30. package/lib/components/FormComponents/ChoiceItems/ChoiceItemSwitcher.js.map +1 -1
  31. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionFields.d.ts +0 -2
  32. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionFields.js +5 -2
  33. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionFields.js.map +1 -1
  34. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionItem.d.ts +0 -2
  35. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionItem.js +4 -4
  36. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionItem.js.map +1 -1
  37. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetFields.d.ts +0 -2
  38. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetFields.js +5 -2
  39. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetFields.js.map +1 -1
  40. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.d.ts +0 -2
  41. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.js +4 -4
  42. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.js.map +1 -1
  43. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioSingle.js +1 -1
  44. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionFields.js +1 -1
  45. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionItem.js +1 -1
  46. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetFields.js +1 -1
  47. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetItem.js +1 -1
  48. package/lib/components/FormComponents/DateTimeItem/DateTimeField.js +1 -1
  49. package/lib/components/FormComponents/DateTimeItem/DateTimeItem.js +1 -1
  50. package/lib/components/FormComponents/{CustomDateItem/customDateTimePicker → DateTimeItems/CustomDateItem}/CustomDateField.js +1 -1
  51. package/lib/components/FormComponents/DateTimeItems/CustomDateItem/CustomDateField.js.map +1 -0
  52. package/lib/components/FormComponents/{CustomDateItem → DateTimeItems/CustomDateItem}/CustomDateItem.d.ts +1 -1
  53. package/lib/components/FormComponents/{CustomDateItem → DateTimeItems/CustomDateItem}/CustomDateItem.js +13 -13
  54. package/lib/components/FormComponents/DateTimeItems/CustomDateItem/CustomDateItem.js.map +1 -0
  55. package/lib/components/FormComponents/{CustomDateItem/customDateTimePicker → DateTimeItems/CustomDateItem}/DatePicker.js +1 -2
  56. package/lib/components/FormComponents/DateTimeItems/CustomDateItem/DatePicker.js.map +1 -0
  57. package/lib/components/FormComponents/DateTimeItems/CustomDateItem/DatePickerButton.js +29 -0
  58. package/lib/components/FormComponents/DateTimeItems/CustomDateItem/DatePickerButton.js.map +1 -0
  59. package/lib/components/FormComponents/{CustomDateItem/customDateTimePicker → DateTimeItems/CustomDateItem}/MuiDatePicker.js +1 -1
  60. package/lib/components/FormComponents/DateTimeItems/CustomDateItem/MuiDatePicker.js.map +1 -0
  61. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomDateTimeItem.d.ts +9 -0
  62. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomDateTimeItem.js +116 -0
  63. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomDateTimeItem.js.map +1 -0
  64. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomTimeField.d.ts +15 -0
  65. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomTimeField.js +40 -0
  66. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomTimeField.js.map +1 -0
  67. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/DateTimeField.d.ts +22 -0
  68. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/DateTimeField.js +28 -0
  69. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/DateTimeField.js.map +1 -0
  70. package/lib/components/FormComponents/{CustomDateItem/customDateTimePicker → DateTimeItems}/index.js +1 -1
  71. package/lib/components/FormComponents/DateTimeItems/index.js.map +1 -0
  72. package/lib/components/FormComponents/DateTimeItems/utils/index.d.ts +1 -0
  73. package/lib/components/FormComponents/{CustomDateItem → DateTimeItems/utils}/index.js +2 -2
  74. package/lib/components/FormComponents/DateTimeItems/utils/index.js.map +1 -0
  75. package/lib/components/FormComponents/{CustomDateItem/customDateTimePicker/utils/parseDates.d.ts → DateTimeItems/utils/parseDate.d.ts} +2 -2
  76. package/lib/components/FormComponents/{CustomDateItem/customDateTimePicker/utils/parseDates.js → DateTimeItems/utils/parseDate.js} +10 -10
  77. package/lib/components/FormComponents/DateTimeItems/utils/parseDate.js.map +1 -0
  78. package/lib/components/FormComponents/DateTimeItems/utils/parseTime.d.ts +19 -0
  79. package/lib/components/FormComponents/DateTimeItems/utils/parseTime.js +81 -0
  80. package/lib/components/FormComponents/DateTimeItems/utils/parseTime.js.map +1 -0
  81. package/lib/components/FormComponents/DecimalItem/DecimalField.js +1 -1
  82. package/lib/components/FormComponents/DecimalItem/DecimalItem.js +1 -1
  83. package/lib/components/FormComponents/DisplayItem/DisplayInstructions.js +1 -1
  84. package/lib/components/FormComponents/DisplayItem/DisplayInstructions.styles.js +1 -1
  85. package/lib/components/FormComponents/DisplayItem/DisplayItem.js +1 -1
  86. package/lib/components/FormComponents/GridGroup/GridGroup.js +1 -1
  87. package/lib/components/FormComponents/GridGroup/GridRow.js +1 -1
  88. package/lib/components/FormComponents/GridGroup/GridTable.js +1 -1
  89. package/lib/components/FormComponents/GridGroup/index.js +1 -1
  90. package/lib/components/FormComponents/GroupItem/GroupHeading.js +1 -1
  91. package/lib/components/FormComponents/GroupItem/GroupItem.d.ts +2 -1
  92. package/lib/components/FormComponents/GroupItem/GroupItem.js +4 -4
  93. package/lib/components/FormComponents/GroupItem/GroupItem.js.map +1 -1
  94. package/lib/components/FormComponents/GroupItem/GroupItem.styles.js +1 -1
  95. package/lib/components/FormComponents/GroupItem/GroupItemSwitcher.d.ts +2 -1
  96. package/lib/components/FormComponents/GroupItem/GroupItemSwitcher.js +5 -5
  97. package/lib/components/FormComponents/GroupItem/GroupItemSwitcher.js.map +1 -1
  98. package/lib/components/FormComponents/GroupItem/NextTabButton.js +1 -1
  99. package/lib/components/FormComponents/GroupItem/NextTabButtonWrapper.js +1 -1
  100. package/lib/components/FormComponents/IntegerItem/IntegerField.js +1 -1
  101. package/lib/components/FormComponents/IntegerItem/IntegerItem.js +1 -1
  102. package/lib/components/FormComponents/Item.styles.js +1 -1
  103. package/lib/components/FormComponents/ItemParts/CheckboxSingle.js +1 -1
  104. package/lib/components/FormComponents/ItemParts/CheckboxSingleWithOpenLabel.js +1 -1
  105. package/lib/components/FormComponents/ItemParts/ContextDisplayItem.js +1 -1
  106. package/lib/components/FormComponents/ItemParts/FadingCheckIcon.js +1 -1
  107. package/lib/components/FormComponents/ItemParts/ItemFieldGrid.js +1 -1
  108. package/lib/components/FormComponents/ItemParts/ItemLabelText.js +1 -1
  109. package/lib/components/FormComponents/ItemParts/ItemLabelWrapper.js +1 -1
  110. package/lib/components/FormComponents/ItemParts/RadioAnswerOptionButtons.js +1 -1
  111. package/lib/components/FormComponents/ItemParts/RadioButtonWithOpenLabel.js +1 -1
  112. package/lib/components/FormComponents/Lists.styles.js +1 -1
  113. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteField.js +1 -1
  114. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteItem.js +1 -1
  115. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionFields.d.ts +0 -2
  116. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionFields.js +7 -5
  117. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionFields.js.map +1 -1
  118. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionItem.d.ts +0 -2
  119. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionItem.js +4 -4
  120. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionItem.js.map +1 -1
  121. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceItemSwitcher.js +3 -5
  122. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceItemSwitcher.js.map +1 -1
  123. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionFields.d.ts +0 -2
  124. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionFields.js +5 -2
  125. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionFields.js.map +1 -1
  126. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionItem.d.ts +0 -2
  127. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionItem.js +3 -3
  128. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionItem.js.map +1 -1
  129. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerOptionItem.js +1 -1
  130. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerValueSetItem.js +1 -1
  131. package/lib/components/FormComponents/RepeatGroup/AddItemButton.js +1 -1
  132. package/lib/components/FormComponents/RepeatGroup/DeleteItemButton.js +1 -1
  133. package/lib/components/FormComponents/RepeatGroup/RepeatGroup.d.ts +2 -2
  134. package/lib/components/FormComponents/RepeatGroup/RepeatGroup.js +9 -3
  135. package/lib/components/FormComponents/RepeatGroup/RepeatGroup.js.map +1 -1
  136. package/lib/components/FormComponents/RepeatGroup/RepeatGroupItem.d.ts +1 -0
  137. package/lib/components/FormComponents/RepeatGroup/RepeatGroupItem.js +3 -3
  138. package/lib/components/FormComponents/RepeatGroup/RepeatGroupItem.js.map +1 -1
  139. package/lib/components/FormComponents/RepeatGroup/index.js +1 -1
  140. package/lib/components/FormComponents/RepeatItem/AddItemButton.js +1 -1
  141. package/lib/components/FormComponents/RepeatItem/RemoveItemButton.js +1 -1
  142. package/lib/components/FormComponents/RepeatItem/RepeatField.js +1 -1
  143. package/lib/components/FormComponents/RepeatItem/RepeatItem.js +1 -1
  144. package/lib/components/FormComponents/RepeatItem/RepeatItem.styles.js +1 -1
  145. package/lib/components/FormComponents/RepeatItem/index.js +1 -1
  146. package/lib/components/FormComponents/SingleItem/SingleItem.d.ts +2 -2
  147. package/lib/components/FormComponents/SingleItem/SingleItem.js +12 -7
  148. package/lib/components/FormComponents/SingleItem/SingleItem.js.map +1 -1
  149. package/lib/components/FormComponents/SingleItem/SingleItemSwitcher.js +4 -4
  150. package/lib/components/FormComponents/SingleItem/SingleItemSwitcher.js.map +1 -1
  151. package/lib/components/FormComponents/SingleItem/index.js +1 -1
  152. package/lib/components/FormComponents/SliderItem/Slider.styles.js +1 -1
  153. package/lib/components/FormComponents/SliderItem/SliderDisplayValue.js +1 -1
  154. package/lib/components/FormComponents/SliderItem/SliderField.js +1 -1
  155. package/lib/components/FormComponents/SliderItem/SliderItem.js +1 -1
  156. package/lib/components/FormComponents/SliderItem/SliderLabels.js +1 -1
  157. package/lib/components/FormComponents/StringItem/StringField.js +1 -1
  158. package/lib/components/FormComponents/StringItem/StringItem.js +1 -1
  159. package/lib/components/FormComponents/Tables/AddRowButton.js +1 -1
  160. package/lib/components/FormComponents/Tables/GroupTable.js +1 -1
  161. package/lib/components/FormComponents/Tables/GroupTableBody.js +1 -1
  162. package/lib/components/FormComponents/Tables/GroupTableRow.js +1 -1
  163. package/lib/components/FormComponents/Tables/GroupTableRowCells.js +1 -1
  164. package/lib/components/FormComponents/Tables/GroupTableView.js +1 -1
  165. package/lib/components/FormComponents/Tables/RemoveRowButton.js +1 -1
  166. package/lib/components/FormComponents/Tables/SelectRowButton.js +1 -1
  167. package/lib/components/FormComponents/Tables/Table.styles.js +1 -1
  168. package/lib/components/FormComponents/Tables/index.js +1 -1
  169. package/lib/components/FormComponents/TextItem/MuiTextField.js +1 -1
  170. package/lib/components/FormComponents/TextItem/TextField.js +1 -1
  171. package/lib/components/FormComponents/TextItem/TextItem.js +1 -1
  172. package/lib/components/FormComponents/Textfield.styles.js +1 -1
  173. package/lib/components/FormComponents/TimeItem/TimeField.js +1 -1
  174. package/lib/components/FormComponents/TimeItem/TimeItem.js +1 -1
  175. package/lib/components/FormComponents/UrlItem/UrlField.js +1 -1
  176. package/lib/components/FormComponents/UrlItem/UrlItem.js +1 -1
  177. package/lib/components/FormComponents/index.d.ts +1 -1
  178. package/lib/components/FormComponents/index.js +2 -2
  179. package/lib/components/FormComponents/index.js.map +1 -1
  180. package/lib/components/Iconify/Iconify.js +1 -1
  181. package/lib/components/Lists.styles.js +1 -1
  182. package/lib/components/Renderer/BaseRenderer.js +1 -1
  183. package/lib/components/Renderer/FormBodyCollapsible.js +1 -1
  184. package/lib/components/Renderer/FormBodySingleCollapsible.js +1 -1
  185. package/lib/components/Renderer/FormBodySingleCollapsibleWrapper.js +1 -1
  186. package/lib/components/Renderer/FormBodyTabbed.js +1 -1
  187. package/lib/components/Renderer/FormTitle.js +1 -1
  188. package/lib/components/Renderer/FormTopLevelItem.js +1 -1
  189. package/lib/components/Renderer/SmartFormsRenderer.js +1 -1
  190. package/lib/components/Renderer/index.js +1 -1
  191. package/lib/components/Tabs/CompleteTabButton.js +1 -1
  192. package/lib/components/Tabs/FormBodySingleTab.js +1 -1
  193. package/lib/components/Tabs/FormBodyTabList.js +1 -1
  194. package/lib/components/Tabs/FormBodyTabListWrapper.js +1 -1
  195. package/lib/components/Tabs/ShowCompletedTabsSection.js +1 -1
  196. package/lib/components/index.js +1 -1
  197. package/lib/hooks/useAttachmentUrlValidation.js +1 -1
  198. package/lib/hooks/useContextDisplayItems.js +1 -1
  199. package/lib/hooks/useDateTimeNonEmpty.d.ts +2 -0
  200. package/lib/{components/FormComponents/CustomDateItem/customDateTimePicker/utils/index.js → hooks/useDateTimeNonEmpty.js} +9 -3
  201. package/lib/hooks/useDateTimeNonEmpty.js.map +1 -0
  202. package/lib/hooks/useDateValidation.js +3 -3
  203. package/lib/hooks/useDateValidation.js.map +1 -1
  204. package/lib/hooks/useDebounce.js +1 -1
  205. package/lib/hooks/useDecimalCalculatedExpression.js +1 -1
  206. package/lib/hooks/useGroupTableRows.js +1 -1
  207. package/lib/hooks/useHidden.d.ts +1 -1
  208. package/lib/hooks/useHidden.js +4 -3
  209. package/lib/hooks/useHidden.js.map +1 -1
  210. package/lib/hooks/useInitialiseGroupTable.js +1 -1
  211. package/lib/hooks/useInitialiseRenderer.js +1 -1
  212. package/lib/hooks/useInitialiseRepeatAnswers.js +1 -1
  213. package/lib/hooks/useInitialiseRepeatGroups.js +1 -1
  214. package/lib/hooks/useIntegerCalculatedExpression.js +1 -1
  215. package/lib/hooks/useNumberInput.js +1 -1
  216. package/lib/hooks/useQueryClient.js +1 -1
  217. package/lib/hooks/useReadOnly.js +1 -1
  218. package/lib/hooks/useRenderingExtensions.js +1 -1
  219. package/lib/hooks/useResponsive.js +1 -1
  220. package/lib/hooks/useSliderExtensions.js +1 -1
  221. package/lib/hooks/useStringCalculatedExpression.js +1 -1
  222. package/lib/hooks/useStringInput.js +1 -1
  223. package/lib/hooks/useTerminologyServerQuery.js +1 -1
  224. package/lib/hooks/useTimeValidation.d.ts +5 -0
  225. package/lib/hooks/useTimeValidation.js +54 -0
  226. package/lib/hooks/useTimeValidation.js.map +1 -0
  227. package/lib/hooks/useValidationFeedback.js +1 -1
  228. package/lib/hooks/useValueSetCodings.js +1 -1
  229. package/lib/index.d.ts +1 -0
  230. package/lib/index.js +1 -0
  231. package/lib/index.js.map +1 -1
  232. package/lib/interfaces/answerExpression.interface.js +1 -1
  233. package/lib/interfaces/choice.enum.js +1 -1
  234. package/lib/interfaces/enableWhen.interface.d.ts +20 -5
  235. package/lib/interfaces/enableWhen.interface.js +1 -1
  236. package/lib/interfaces/groupTable.interface.js +1 -1
  237. package/lib/interfaces/index.d.ts +1 -0
  238. package/lib/interfaces/index.js +2 -0
  239. package/lib/interfaces/index.js.map +1 -0
  240. package/lib/interfaces/populate.interface.js +1 -1
  241. package/lib/interfaces/questionnaireStore.interface.d.ts +2 -2
  242. package/lib/interfaces/questionnaireStore.interface.js +1 -1
  243. package/lib/interfaces/regex.interface.js +1 -1
  244. package/lib/interfaces/renderProps.interface.d.ts +4 -0
  245. package/lib/interfaces/renderProps.interface.js +1 -1
  246. package/lib/interfaces/repeatGroup.interface.js +1 -1
  247. package/lib/interfaces/valueSet.interface.js +1 -1
  248. package/lib/interfaces/variables.interface.js +1 -1
  249. package/lib/stores/questionnaireResponseStore.js +1 -1
  250. package/lib/stores/questionnaireStore.d.ts +5 -3
  251. package/lib/stores/questionnaireStore.js +13 -6
  252. package/lib/stores/questionnaireStore.js.map +1 -1
  253. package/lib/stores/smartConfigStore.js +1 -1
  254. package/lib/stores/terminologyServerStore.js +1 -1
  255. package/lib/theme/customGlobalStyles.js +1 -1
  256. package/lib/theme/overrides/Accordion.js +1 -1
  257. package/lib/theme/overrides/Autocomplete.js +1 -1
  258. package/lib/theme/overrides/Button.js +1 -1
  259. package/lib/theme/overrides/Card.js +1 -1
  260. package/lib/theme/overrides/Input.js +1 -1
  261. package/lib/theme/overrides/Overrides.js +1 -1
  262. package/lib/theme/overrides/Paper.js +1 -1
  263. package/lib/theme/overrides/SpeedDial.js +1 -1
  264. package/lib/theme/overrides/Table.js +1 -1
  265. package/lib/theme/palette.js +1 -1
  266. package/lib/theme/shadows.js +1 -1
  267. package/lib/theme/typography.js +1 -1
  268. package/lib/utils/calculatedExpression.js +1 -1
  269. package/lib/utils/choice.d.ts +1 -1
  270. package/lib/utils/choice.js +1 -1
  271. package/lib/utils/choice.js.map +1 -1
  272. package/lib/utils/dayjsExtend.js +1 -1
  273. package/lib/utils/debounce.js +1 -1
  274. package/lib/utils/emptyResource.js +1 -1
  275. package/lib/utils/enableWhen.d.ts +11 -4
  276. package/lib/utils/enableWhen.js +131 -54
  277. package/lib/utils/enableWhen.js.map +1 -1
  278. package/lib/utils/enableWhenExpression.d.ts +1 -1
  279. package/lib/utils/enableWhenExpression.js +27 -8
  280. package/lib/utils/enableWhenExpression.js.map +1 -1
  281. package/lib/utils/fhirpath.js +1 -1
  282. package/lib/utils/formChanges.js +1 -1
  283. package/lib/utils/groupTable.js +1 -1
  284. package/lib/utils/index.d.ts +1 -0
  285. package/lib/utils/index.js +2 -1
  286. package/lib/utils/index.js.map +1 -1
  287. package/lib/utils/initialise.js +1 -1
  288. package/lib/utils/itemControl.js +1 -1
  289. package/lib/utils/mapItem.js +1 -1
  290. package/lib/utils/misc.d.ts +5 -0
  291. package/lib/utils/misc.js +116 -0
  292. package/lib/utils/misc.js.map +1 -0
  293. package/lib/utils/openChoice.js +1 -1
  294. package/lib/utils/parseInputs.js +1 -1
  295. package/lib/utils/populateContexts.js +1 -1
  296. package/lib/utils/qItem.d.ts +2 -1
  297. package/lib/utils/qItem.js +20 -8
  298. package/lib/utils/qItem.js.map +1 -1
  299. package/lib/utils/qrItem.js +1 -1
  300. package/lib/utils/questionnaireStoreUtils/addAdditionalVariables.js +1 -1
  301. package/lib/utils/questionnaireStoreUtils/createQuestionaireModel.js +2 -2
  302. package/lib/utils/questionnaireStoreUtils/createQuestionaireModel.js.map +1 -1
  303. package/lib/utils/questionnaireStoreUtils/extractContainedValueSets.js +1 -1
  304. package/lib/utils/questionnaireStoreUtils/extractOtherExtensions.d.ts +13 -3
  305. package/lib/utils/questionnaireStoreUtils/extractOtherExtensions.js +82 -19
  306. package/lib/utils/questionnaireStoreUtils/extractOtherExtensions.js.map +1 -1
  307. package/lib/utils/questionnaireStoreUtils/extractTabs.js +1 -1
  308. package/lib/utils/questionnaireStoreUtils/extractVariables.js +1 -1
  309. package/lib/utils/questionnaireStoreUtils/resolveValueSets.js +1 -1
  310. package/lib/utils/removeEmptyAnswers.js +1 -1
  311. package/lib/utils/repopulateItems.js +1 -1
  312. package/lib/utils/slider.js +1 -1
  313. package/lib/utils/tabs.d.ts +1 -1
  314. package/lib/utils/tabs.js +7 -5
  315. package/lib/utils/tabs.js.map +1 -1
  316. package/lib/utils/validateQuestionnaire.js +1 -1
  317. package/lib/utils/valueSet.js +1 -1
  318. package/package.json +2 -2
  319. package/src/api/smartClient.ts +1 -1
  320. package/src/components/Alert.styles.ts +1 -1
  321. package/src/components/Box.styles.ts +1 -1
  322. package/src/components/FormComponents/AttachmentItem/AttachmentField.tsx +1 -1
  323. package/src/components/FormComponents/AttachmentItem/AttachmentFieldWrapper.tsx +1 -1
  324. package/src/components/FormComponents/AttachmentItem/AttachmentFileDropBox.tsx +1 -1
  325. package/src/components/FormComponents/AttachmentItem/AttachmentItem.tsx +1 -1
  326. package/src/components/FormComponents/AttachmentItem/AttachmentUrlField.tsx +1 -1
  327. package/src/components/FormComponents/BooleanItem/BooleanField.tsx +54 -18
  328. package/src/components/FormComponents/BooleanItem/BooleanItem.tsx +48 -14
  329. package/src/components/FormComponents/ChoiceItems/ChoiceAutocompleteField.tsx +1 -1
  330. package/src/components/FormComponents/ChoiceItems/ChoiceAutocompleteItem.tsx +1 -1
  331. package/src/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionFields.tsx +5 -3
  332. package/src/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.tsx +1 -6
  333. package/src/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetFields.tsx +7 -4
  334. package/src/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.tsx +3 -6
  335. package/src/components/FormComponents/ChoiceItems/ChoiceItemSwitcher.tsx +2 -7
  336. package/src/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionFields.tsx +5 -3
  337. package/src/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionItem.tsx +2 -6
  338. package/src/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetFields.tsx +5 -4
  339. package/src/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.tsx +2 -6
  340. package/src/components/FormComponents/ChoiceItems/ChoiceRadioSingle.tsx +1 -1
  341. package/src/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionFields.tsx +1 -1
  342. package/src/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionItem.tsx +1 -1
  343. package/src/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetFields.tsx +1 -1
  344. package/src/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetItem.tsx +1 -1
  345. package/src/components/FormComponents/DateTimeItem/DateTimeField.tsx +1 -1
  346. package/src/components/FormComponents/DateTimeItem/DateTimeItem.tsx +1 -1
  347. package/src/components/FormComponents/{CustomDateItem/customDateTimePicker → DateTimeItems/CustomDateItem}/CustomDateField.tsx +1 -1
  348. package/src/components/FormComponents/{CustomDateItem → DateTimeItems/CustomDateItem}/CustomDateItem.tsx +15 -15
  349. package/src/components/FormComponents/{CustomDateItem/customDateTimePicker → DateTimeItems/CustomDateItem}/DatePicker.tsx +1 -2
  350. package/src/components/FormComponents/{CustomDateItem/customDateTimePicker → DateTimeItems/CustomDateItem}/DatePickerButton.tsx +18 -1
  351. package/src/components/FormComponents/{CustomDateItem/customDateTimePicker → DateTimeItems/CustomDateItem}/MuiDatePicker.ts +1 -1
  352. package/src/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomDateTimeItem.tsx +222 -0
  353. package/src/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomTimeField.tsx +117 -0
  354. package/src/components/FormComponents/DateTimeItems/CustomDateTimeItem/DateTimeField.tsx +96 -0
  355. package/src/components/FormComponents/{CustomDateItem/customDateTimePicker → DateTimeItems}/index.ts +1 -1
  356. package/src/components/FormComponents/{CustomDateItem → DateTimeItems/utils}/index.ts +2 -2
  357. package/src/components/FormComponents/{CustomDateItem/customDateTimePicker/utils/parseDates.ts → DateTimeItems/utils/parseDate.ts} +10 -10
  358. package/src/components/FormComponents/DateTimeItems/utils/parseTime.ts +127 -0
  359. package/src/components/FormComponents/DecimalItem/DecimalField.tsx +1 -1
  360. package/src/components/FormComponents/DecimalItem/DecimalItem.tsx +1 -1
  361. package/src/components/FormComponents/DisplayItem/DisplayInstructions.styles.ts +1 -1
  362. package/src/components/FormComponents/DisplayItem/DisplayInstructions.tsx +1 -1
  363. package/src/components/FormComponents/DisplayItem/DisplayItem.tsx +1 -1
  364. package/src/components/FormComponents/GridGroup/GridGroup.tsx +1 -1
  365. package/src/components/FormComponents/GridGroup/GridRow.tsx +1 -1
  366. package/src/components/FormComponents/GridGroup/GridTable.tsx +1 -1
  367. package/src/components/FormComponents/GridGroup/index.ts +1 -1
  368. package/src/components/FormComponents/GroupItem/GroupHeading.tsx +1 -1
  369. package/src/components/FormComponents/GroupItem/GroupItem.styles.ts +1 -1
  370. package/src/components/FormComponents/GroupItem/GroupItem.tsx +9 -3
  371. package/src/components/FormComponents/GroupItem/GroupItemSwitcher.tsx +11 -3
  372. package/src/components/FormComponents/GroupItem/NextTabButton.tsx +1 -1
  373. package/src/components/FormComponents/GroupItem/NextTabButtonWrapper.tsx +1 -1
  374. package/src/components/FormComponents/IntegerItem/IntegerField.tsx +1 -1
  375. package/src/components/FormComponents/IntegerItem/IntegerItem.tsx +1 -1
  376. package/src/components/FormComponents/Item.styles.ts +1 -1
  377. package/src/components/FormComponents/ItemParts/CheckboxSingle.tsx +1 -1
  378. package/src/components/FormComponents/ItemParts/CheckboxSingleWithOpenLabel.tsx +1 -1
  379. package/src/components/FormComponents/ItemParts/ContextDisplayItem.tsx +1 -1
  380. package/src/components/FormComponents/ItemParts/FadingCheckIcon.tsx +1 -1
  381. package/src/components/FormComponents/ItemParts/ItemFieldGrid.tsx +1 -1
  382. package/src/components/FormComponents/ItemParts/ItemLabelText.tsx +1 -1
  383. package/src/components/FormComponents/ItemParts/ItemLabelWrapper.tsx +1 -1
  384. package/src/components/FormComponents/ItemParts/RadioAnswerOptionButtons.tsx +1 -1
  385. package/src/components/FormComponents/ItemParts/RadioButtonWithOpenLabel.tsx +1 -1
  386. package/src/components/FormComponents/Lists.styles.ts +1 -1
  387. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteField.tsx +1 -1
  388. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteItem.tsx +1 -1
  389. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionFields.tsx +4 -3
  390. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionItem.tsx +1 -6
  391. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceItemSwitcher.tsx +1 -6
  392. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionFields.tsx +4 -3
  393. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionItem.tsx +2 -5
  394. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerOptionItem.tsx +1 -1
  395. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerValueSetItem.tsx +1 -1
  396. package/src/components/FormComponents/RepeatGroup/AddItemButton.tsx +1 -1
  397. package/src/components/FormComponents/RepeatGroup/DeleteItemButton.tsx +1 -1
  398. package/src/components/FormComponents/RepeatGroup/RepeatGroup.tsx +14 -3
  399. package/src/components/FormComponents/RepeatGroup/RepeatGroupItem.tsx +5 -1
  400. package/src/components/FormComponents/RepeatGroup/index.ts +1 -1
  401. package/src/components/FormComponents/RepeatItem/AddItemButton.tsx +1 -1
  402. package/src/components/FormComponents/RepeatItem/RemoveItemButton.tsx +1 -1
  403. package/src/components/FormComponents/RepeatItem/RepeatField.tsx +1 -1
  404. package/src/components/FormComponents/RepeatItem/RepeatItem.styles.tsx +1 -1
  405. package/src/components/FormComponents/RepeatItem/RepeatItem.tsx +1 -1
  406. package/src/components/FormComponents/RepeatItem/index.ts +1 -1
  407. package/src/components/FormComponents/SingleItem/SingleItem.tsx +20 -7
  408. package/src/components/FormComponents/SingleItem/SingleItemSwitcher.tsx +4 -4
  409. package/src/components/FormComponents/SingleItem/index.ts +1 -1
  410. package/src/components/FormComponents/SliderItem/Slider.styles.ts +1 -1
  411. package/src/components/FormComponents/SliderItem/SliderDisplayValue.tsx +1 -1
  412. package/src/components/FormComponents/SliderItem/SliderField.tsx +1 -1
  413. package/src/components/FormComponents/SliderItem/SliderItem.tsx +1 -1
  414. package/src/components/FormComponents/SliderItem/SliderLabels.tsx +1 -1
  415. package/src/components/FormComponents/StringItem/StringField.tsx +1 -1
  416. package/src/components/FormComponents/StringItem/StringItem.tsx +1 -1
  417. package/src/components/FormComponents/Tables/AddRowButton.tsx +1 -1
  418. package/src/components/FormComponents/Tables/GroupTable.tsx +1 -1
  419. package/src/components/FormComponents/Tables/GroupTableBody.tsx +1 -1
  420. package/src/components/FormComponents/Tables/GroupTableRow.tsx +1 -1
  421. package/src/components/FormComponents/Tables/GroupTableRowCells.tsx +1 -1
  422. package/src/components/FormComponents/Tables/GroupTableView.tsx +1 -1
  423. package/src/components/FormComponents/Tables/RemoveRowButton.tsx +1 -1
  424. package/src/components/FormComponents/Tables/SelectRowButton.tsx +1 -1
  425. package/src/components/FormComponents/Tables/Table.styles.tsx +1 -1
  426. package/src/components/FormComponents/Tables/index.ts +1 -1
  427. package/src/components/FormComponents/TextItem/MuiTextField.ts +1 -1
  428. package/src/components/FormComponents/TextItem/TextField.tsx +1 -1
  429. package/src/components/FormComponents/TextItem/TextItem.tsx +1 -1
  430. package/src/components/FormComponents/Textfield.styles.ts +1 -1
  431. package/src/components/FormComponents/TimeItem/TimeField.tsx +1 -1
  432. package/src/components/FormComponents/TimeItem/TimeItem.tsx +1 -1
  433. package/src/components/FormComponents/UrlItem/UrlField.tsx +1 -1
  434. package/src/components/FormComponents/UrlItem/UrlItem.tsx +1 -1
  435. package/src/components/FormComponents/index.ts +2 -2
  436. package/src/components/Iconify/Iconify.tsx +1 -1
  437. package/src/components/Lists.styles.ts +1 -1
  438. package/src/components/Renderer/BaseRenderer.tsx +1 -1
  439. package/src/components/Renderer/FormBodyCollapsible.tsx +1 -1
  440. package/src/components/Renderer/FormBodySingleCollapsible.tsx +1 -1
  441. package/src/components/Renderer/FormBodySingleCollapsibleWrapper.tsx +1 -1
  442. package/src/components/Renderer/FormBodyTabbed.tsx +1 -1
  443. package/src/components/Renderer/FormTitle.tsx +1 -1
  444. package/src/components/Renderer/FormTopLevelItem.tsx +1 -1
  445. package/src/components/Renderer/SmartFormsRenderer.tsx +1 -1
  446. package/src/components/Renderer/index.ts +1 -1
  447. package/src/components/Tabs/CompleteTabButton.tsx +1 -1
  448. package/src/components/Tabs/FormBodySingleTab.tsx +1 -1
  449. package/src/components/Tabs/FormBodyTabList.tsx +1 -1
  450. package/src/components/Tabs/FormBodyTabListWrapper.tsx +1 -1
  451. package/src/components/Tabs/ShowCompletedTabsSection.tsx +1 -1
  452. package/src/components/index.ts +1 -1
  453. package/src/hooks/useAttachmentUrlValidation.ts +1 -1
  454. package/src/hooks/useContextDisplayItems.ts +1 -1
  455. package/src/{components/FormComponents/CustomDateItem/customDateTimePicker/utils/index.ts → hooks/useDateTimeNonEmpty.ts} +15 -2
  456. package/src/hooks/useDateValidation.tsx +3 -3
  457. package/src/hooks/useDebounce.ts +1 -1
  458. package/src/hooks/useDecimalCalculatedExpression.ts +1 -1
  459. package/src/hooks/useGroupTableRows.ts +1 -1
  460. package/src/hooks/useHidden.ts +4 -3
  461. package/src/hooks/useInitialiseGroupTable.ts +1 -1
  462. package/src/hooks/useInitialiseRenderer.ts +1 -1
  463. package/src/hooks/useInitialiseRepeatAnswers.ts +1 -1
  464. package/src/hooks/useInitialiseRepeatGroups.ts +1 -1
  465. package/src/hooks/useIntegerCalculatedExpression.ts +1 -1
  466. package/src/hooks/useNumberInput.ts +1 -1
  467. package/src/hooks/useQueryClient.ts +1 -1
  468. package/src/hooks/useReadOnly.ts +1 -1
  469. package/src/hooks/useRenderingExtensions.ts +1 -1
  470. package/src/hooks/useResponsive.ts +1 -1
  471. package/src/hooks/useSliderExtensions.ts +1 -1
  472. package/src/hooks/useStringCalculatedExpression.ts +1 -1
  473. package/src/hooks/useStringInput.ts +1 -1
  474. package/src/hooks/useTerminologyServerQuery.ts +1 -1
  475. package/src/hooks/useTimeValidation.tsx +70 -0
  476. package/src/hooks/useValidationFeedback.ts +1 -1
  477. package/src/hooks/useValueSetCodings.ts +1 -1
  478. package/src/index.ts +1 -0
  479. package/src/interfaces/answerExpression.interface.ts +1 -1
  480. package/src/interfaces/choice.enum.ts +1 -1
  481. package/src/interfaces/enableWhen.interface.ts +25 -6
  482. package/src/interfaces/groupTable.interface.ts +1 -1
  483. package/src/interfaces/index.ts +8 -0
  484. package/src/interfaces/populate.interface.ts +1 -1
  485. package/src/interfaces/questionnaireStore.interface.ts +3 -3
  486. package/src/interfaces/regex.interface.ts +1 -1
  487. package/src/interfaces/renderProps.interface.ts +5 -1
  488. package/src/interfaces/repeatGroup.interface.ts +1 -1
  489. package/src/interfaces/tab.interface.ts +1 -1
  490. package/src/interfaces/valueSet.interface.ts +1 -1
  491. package/src/interfaces/variables.interface.ts +1 -1
  492. package/src/stores/questionnaireResponseStore.ts +1 -1
  493. package/src/stores/questionnaireStore.ts +46 -9
  494. package/src/stores/smartConfigStore.ts +1 -1
  495. package/src/stores/terminologyServerStore.ts +1 -1
  496. package/src/stories/MedicalHistoryTable.stories.tsx +1 -1
  497. package/src/stories/SmartFormsRenderer.stories.ts +1 -1
  498. package/src/theme/Theme.tsx +1 -1
  499. package/src/theme/customGlobalStyles.tsx +1 -1
  500. package/src/theme/overrides/Accordion.ts +1 -1
  501. package/src/theme/overrides/Autocomplete.ts +1 -1
  502. package/src/theme/overrides/Button.ts +1 -1
  503. package/src/theme/overrides/Card.ts +1 -1
  504. package/src/theme/overrides/Input.ts +1 -1
  505. package/src/theme/overrides/Overrides.ts +1 -1
  506. package/src/theme/overrides/Paper.ts +1 -1
  507. package/src/theme/overrides/SpeedDial.ts +1 -1
  508. package/src/theme/overrides/Table.ts +1 -1
  509. package/src/theme/palette.ts +1 -1
  510. package/src/theme/shadows.ts +1 -1
  511. package/src/theme/typography.ts +1 -1
  512. package/src/utils/calculatedExpression.ts +1 -1
  513. package/src/utils/choice.ts +5 -3
  514. package/src/utils/dayjsExtend.ts +1 -1
  515. package/src/utils/debounce.ts +1 -1
  516. package/src/utils/emptyResource.ts +1 -1
  517. package/src/utils/enableWhen.ts +195 -56
  518. package/src/utils/enableWhenExpression.ts +36 -9
  519. package/src/utils/fhirpath.ts +1 -1
  520. package/src/utils/formChanges.ts +1 -1
  521. package/src/utils/groupTable.ts +1 -1
  522. package/src/utils/index.ts +6 -1
  523. package/src/utils/initialise.ts +1 -1
  524. package/src/utils/itemControl.ts +1 -1
  525. package/src/utils/mapItem.ts +1 -1
  526. package/src/utils/misc.ts +160 -0
  527. package/src/utils/openChoice.ts +1 -1
  528. package/src/utils/parseInputs.ts +1 -1
  529. package/src/utils/populateContexts.ts +1 -1
  530. package/src/utils/qItem.ts +32 -9
  531. package/src/utils/qrItem.ts +1 -1
  532. package/src/utils/questionnaireStoreUtils/addAdditionalVariables.ts +1 -1
  533. package/src/utils/questionnaireStoreUtils/createQuestionaireModel.ts +2 -2
  534. package/src/utils/questionnaireStoreUtils/extractContainedValueSets.ts +1 -1
  535. package/src/utils/questionnaireStoreUtils/extractOtherExtensions.ts +123 -26
  536. package/src/utils/questionnaireStoreUtils/extractTabs.ts +1 -1
  537. package/src/utils/questionnaireStoreUtils/extractVariables.ts +1 -1
  538. package/src/utils/questionnaireStoreUtils/resolveValueSets.ts +1 -1
  539. package/src/utils/removeEmptyAnswers.ts +1 -1
  540. package/src/utils/repopulateItems.ts +1 -1
  541. package/src/utils/slider.ts +1 -1
  542. package/src/utils/tabs.ts +9 -6
  543. package/src/utils/validateQuestionnaire.ts +1 -1
  544. package/src/utils/valueSet.ts +1 -1
  545. package/lib/components/FormComponents/CustomDateItem/CustomDateItem.js.map +0 -1
  546. package/lib/components/FormComponents/CustomDateItem/customDateTimePicker/CustomDateField.js.map +0 -1
  547. package/lib/components/FormComponents/CustomDateItem/customDateTimePicker/DatePicker.js.map +0 -1
  548. package/lib/components/FormComponents/CustomDateItem/customDateTimePicker/DatePickerButton.js +0 -13
  549. package/lib/components/FormComponents/CustomDateItem/customDateTimePicker/DatePickerButton.js.map +0 -1
  550. package/lib/components/FormComponents/CustomDateItem/customDateTimePicker/MuiDatePicker.js.map +0 -1
  551. package/lib/components/FormComponents/CustomDateItem/customDateTimePicker/index.js.map +0 -1
  552. package/lib/components/FormComponents/CustomDateItem/customDateTimePicker/utils/index.d.ts +0 -1
  553. package/lib/components/FormComponents/CustomDateItem/customDateTimePicker/utils/index.js.map +0 -1
  554. package/lib/components/FormComponents/CustomDateItem/customDateTimePicker/utils/parseDates.js.map +0 -1
  555. package/lib/components/FormComponents/CustomDateItem/index.d.ts +0 -1
  556. package/lib/components/FormComponents/CustomDateItem/index.js.map +0 -1
  557. package/lib/components/FormComponents/DateItem/DateField.d.ts +0 -12
  558. package/lib/components/FormComponents/DateItem/DateItem.d.ts +0 -9
  559. package/lib/components/FormComponents/ItemParts/ItemExtensionLabels.d.ts +0 -7
  560. package/lib/setup-jest.js +0 -1
  561. package/lib/stories/MedicalHistoryTable.stories.js +0 -45
  562. package/lib/stories/SmartFormsRenderer.stories.js +0 -117
  563. /package/lib/components/FormComponents/{CustomDateItem/customDateTimePicker → DateTimeItems/CustomDateItem}/CustomDateField.d.ts +0 -0
  564. /package/lib/components/FormComponents/{CustomDateItem/customDateTimePicker → DateTimeItems/CustomDateItem}/DatePicker.d.ts +0 -0
  565. /package/lib/components/FormComponents/{CustomDateItem/customDateTimePicker → DateTimeItems/CustomDateItem}/DatePickerButton.d.ts +0 -0
  566. /package/lib/components/FormComponents/{CustomDateItem/customDateTimePicker → DateTimeItems/CustomDateItem}/MuiDatePicker.d.ts +0 -0
  567. /package/lib/components/FormComponents/{CustomDateItem/customDateTimePicker → DateTimeItems}/index.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,5 +14,5 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export * from './customDateTimePicker';
17
+ export { parseFhirDateToDisplayDate } from './parseDate';
18
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/FormComponents/DateTimeItems/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC"}
@@ -1,9 +1,9 @@
1
- export declare function validateInput(input: string): boolean;
1
+ export declare function validateDateInput(input: string): boolean;
2
2
  export declare function validateTwoMatches(monthInput: string, yearInput: string): boolean;
3
3
  export declare function validateThreeMatches(dayInput: string, monthInput: string, yearInput: string): boolean;
4
4
  export declare function getNumOfSeparators(valueDate: string, seperator: string): number;
5
5
  export declare function parseFhirDateToDisplayDate(fhirDate: string): {
6
6
  displayDate: string;
7
- parseFail?: boolean;
7
+ dateParseFail?: boolean;
8
8
  };
9
9
  export declare function parseInputDateToFhirDate(displayDate: string): string;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,25 +16,25 @@
16
16
  */
17
17
  import dayjs from 'dayjs';
18
18
  const inputMatchRegex = /(\d{4}|\d{3}|\d{2})/g;
19
- export function validateInput(input) {
19
+ export function validateDateInput(input) {
20
20
  const matches = input.match(inputMatchRegex);
21
21
  if (!matches) {
22
22
  return false;
23
23
  }
24
- const seperator = input.includes('/') ? '/' : null;
24
+ const separator = input.includes('/') ? '/' : null;
25
25
  if (matches.length === 1) {
26
- // seperator not supposed to be present if only one match present
27
- if (seperator) {
26
+ // separator not supposed to be present if only one match present
27
+ if (separator) {
28
28
  return false;
29
29
  }
30
30
  return matches[0].length === 4;
31
31
  }
32
- // Invalid if seperator is not present
33
- if (!seperator) {
32
+ // Invalid if separator is not present
33
+ if (!separator) {
34
34
  return false;
35
35
  }
36
36
  // Invalid if num of slots don't match the number of regex matches
37
- const slotsMatched = input.split(seperator);
37
+ const slotsMatched = input.split(separator);
38
38
  if (slotsMatched.length != matches.length) {
39
39
  return false;
40
40
  }
@@ -93,7 +93,7 @@ export function parseFhirDateToDisplayDate(fhirDate) {
93
93
  if (oneMatchDate.isValid()) {
94
94
  return { displayDate: oneMatchDate.format('YYYY') };
95
95
  }
96
- return { displayDate: fhirDate, parseFail: true };
96
+ return { displayDate: fhirDate, dateParseFail: true };
97
97
  }
98
98
  export function parseInputDateToFhirDate(displayDate) {
99
99
  const numOfSeparators = getNumOfSeparators(displayDate, '/');
@@ -118,4 +118,4 @@ export function parseInputDateToFhirDate(displayDate) {
118
118
  // Default to YYYY-MM-DD format if all else fails
119
119
  return dayjs(displayDate).format('YYYY-MM-DD');
120
120
  }
121
- //# sourceMappingURL=parseDates.js.map
121
+ //# sourceMappingURL=parseDate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseDate.js","sourceRoot":"","sources":["../../../../../src/components/FormComponents/DateTimeItems/utils/parseDate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,eAAe,GAAG,sBAAsB,CAAC;AAE/C,MAAM,UAAU,iBAAiB,CAAC,KAAa;IAC7C,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAE7C,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,KAAK,CAAC;KACd;IAED,MAAM,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;IAEnD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;QACxB,iEAAiE;QACjE,IAAI,SAAS,EAAE;YACb,OAAO,KAAK,CAAC;SACd;QAED,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;KAChC;IAED,sCAAsC;IACtC,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,KAAK,CAAC;KACd;IAED,kEAAkE;IAClE,MAAM,YAAY,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC5C,IAAI,YAAY,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,EAAE;QACzC,OAAO,KAAK,CAAC;KACd;IAED,wBAAwB;IACxB,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;QACxB,OAAO,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;KACnD;IAED,2BAA2B;IAC3B,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;QACxB,OAAO,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EA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,CAAC;QAC1D,IAAI,gBAAgB,CAAC,OAAO,EAAE,EAAE;YAC9B,OAAO,gBAAgB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;SAC9C;KACF;IAED,IAAI,eAAe,KAAK,CAAC,EAAE;QACzB,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QACrD,IAAI,cAAc,CAAC,OAAO,EAAE,EAAE;YAC5B,OAAO,cAAc,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;SACzC;KACF;IAED,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;QAC5B,MAAM,YAAY,GAAG,KAAK,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QAChD,IAAI,YAAY,CAAC,OAAO,EAAE,EAAE;YAC1B,OAAO,WAAW,CAAC;SACpB;KACF;IAED,iDAAiD;IACjD,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AACjD,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { Dayjs } from 'dayjs';
2
+ export declare function getTimeSegments(timeInput: string): {
3
+ hourSegment: string | null;
4
+ minuteSegment: string | null;
5
+ };
6
+ export declare function validateTimeInput(timeInput: string, periodInput: string): {
7
+ timeIsValid: boolean;
8
+ is24HourNotation: boolean;
9
+ };
10
+ export declare function validateHourSegment(hourSegment: string): {
11
+ hourSegmentValid: boolean;
12
+ is24HourNotation: boolean | null;
13
+ };
14
+ export declare function parseDateTimeToDisplayTime(dateTime: Dayjs | null): {
15
+ displayTime: string;
16
+ displayPeriod: string;
17
+ timeParseFail?: boolean;
18
+ };
19
+ export declare function parseInputDateTimeToFhirDateTime(dateInput: string, newTimeInput: string, periodInput: string, is24HourNotation: boolean): string;
@@ -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 dayjs from 'dayjs';
18
+ const inputMatchRegex = /^\d{2}:\d{2}$/;
19
+ export function getTimeSegments(timeInput) {
20
+ if (!inputMatchRegex.test(timeInput)) {
21
+ return { hourSegment: null, minuteSegment: null };
22
+ }
23
+ const timeInputSegments = timeInput.split(':');
24
+ if (timeInputSegments.length !== 2) {
25
+ return { hourSegment: null, minuteSegment: null };
26
+ }
27
+ return { hourSegment: timeInputSegments[0], minuteSegment: timeInputSegments[1] };
28
+ }
29
+ export function validateTimeInput(timeInput, periodInput) {
30
+ // Test time input is valid
31
+ const { hourSegment, minuteSegment } = getTimeSegments(timeInput);
32
+ if (!hourSegment || !minuteSegment) {
33
+ return { timeIsValid: false, is24HourNotation: false };
34
+ }
35
+ const { hourSegmentValid, is24HourNotation } = validateHourSegment(hourSegment);
36
+ const minuteSegmentValid = validateMinuteSegment(minuteSegment);
37
+ if (!hourSegmentValid || !minuteSegmentValid) {
38
+ return { timeIsValid: false, is24HourNotation: false };
39
+ }
40
+ // Test period input is valid
41
+ if (!(periodInput === 'AM' || periodInput === 'PM' || is24HourNotation)) {
42
+ return { timeIsValid: false, is24HourNotation: false };
43
+ }
44
+ return { timeIsValid: true, is24HourNotation: !!is24HourNotation };
45
+ }
46
+ export function validateHourSegment(hourSegment) {
47
+ const hour = parseInt(hourSegment, 10);
48
+ const hourSegmentValid = hour >= 0 && hour <= 23;
49
+ const is24HourNotation = hourSegmentValid ? hour >= 13 && hour <= 23 : null;
50
+ return { hourSegmentValid, is24HourNotation };
51
+ }
52
+ function validateMinuteSegment(minuteSegment) {
53
+ const minutes = parseInt(minuteSegment, 10);
54
+ return minutes >= 0 && minutes <= 59;
55
+ }
56
+ export function parseDateTimeToDisplayTime(dateTime) {
57
+ if (!dateTime) {
58
+ return { displayTime: '', displayPeriod: '' };
59
+ }
60
+ if (!dateTime.isValid()) {
61
+ return { displayTime: '', displayPeriod: '', timeParseFail: true };
62
+ }
63
+ const displayTime = dateTime.format('HH:mm');
64
+ const displayPeriod = dateTime.format('A');
65
+ return { displayTime, displayPeriod };
66
+ }
67
+ function convertTo12HourFormat(timeInput) {
68
+ const timeSegments = timeInput.split(':');
69
+ const hour = parseInt(timeSegments[0], 10);
70
+ if (hour >= 12) {
71
+ timeSegments[0] = `${hour - 12}`;
72
+ }
73
+ return `${timeSegments[0]}:${timeSegments[1]}`;
74
+ }
75
+ export function parseInputDateTimeToFhirDateTime(dateInput, newTimeInput, periodInput, is24HourNotation) {
76
+ periodInput = is24HourNotation ? 'PM' : periodInput;
77
+ const new12HourTimeInput = convertTo12HourFormat(newTimeInput);
78
+ const dateTimeDayJs = dayjs(`${dateInput} ${new12HourTimeInput} ${periodInput}`, `YYYY-MM-DD hh:mm A`);
79
+ return dayjs(dateTimeDayJs).format('YYYY-MM-DDTHH:mm:ssZ');
80
+ }
81
+ //# sourceMappingURL=parseTime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseTime.js","sourceRoot":"","sources":["../../../../../src/components/FormComponents/DateTimeItems/utils/parseTime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,eAAe,GAAG,eAAe,CAAC;AAExC,MAAM,UAAU,eAAe,CAAC,SAAiB;IAI/C,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;QACpC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;KACnD;IAED,MAAM,iBAAiB,GAAG,SAAS,CAAC,KAAK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;IACD,OAAO,GAAG,YAAY,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,SAAiB,EACjB,YAAoB,EACpB,WAAmB,EACnB,gBAAyB;IAEzB,WAAW,GAAG,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC;IACpD,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,YAAY,CAAC,CAAC;IAE/D,MAAM,aAAa,GAAG,KAAK,CACzB,GAAG,SAAS,IAAI,kBAAkB,IAAI,WAAW,EAAE,EACnD,oBAAoB,CACrB,CAAC;IAEF,OAAO,KAAK,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAC7D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
3
3
  import type { PropsWithIsRepeatedAttribute, PropsWithParentIsReadOnlyAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
4
+ import type { PropsWithParentIsRepeatGroupAttribute } from '../../../interfaces/renderProps.interface';
4
5
  import type { Tabs } from '../../../interfaces/tab.interface';
5
- interface GroupItemProps extends PropsWithQrItemChangeHandler, PropsWithIsRepeatedAttribute, PropsWithParentIsReadOnlyAttribute {
6
+ interface GroupItemProps extends PropsWithQrItemChangeHandler, PropsWithIsRepeatedAttribute, PropsWithParentIsReadOnlyAttribute, PropsWithParentIsRepeatGroupAttribute {
6
7
  qItem: QuestionnaireItem;
7
8
  qrItem: QuestionnaireResponseItem | null;
8
9
  groupCardElevation: number;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -25,10 +25,10 @@ import NextTabButtonWrapper from './NextTabButtonWrapper';
25
25
  import GroupItemSwitcher from './GroupItemSwitcher';
26
26
  import useReadOnly from '../../../hooks/useReadOnly';
27
27
  function GroupItem(props) {
28
- const { qItem, qrItem, isRepeated, groupCardElevation, tabIsMarkedAsComplete, tabs, currentTabIndex, parentIsReadOnly, onQrItemChange } = props;
28
+ const { qItem, qrItem, isRepeated, groupCardElevation, tabIsMarkedAsComplete, tabs, currentTabIndex, parentIsReadOnly, parentIsRepeatGroup, parentRepeatGroupIndex, onQrItemChange } = props;
29
29
  const qItemsIndexMap = useMemo(() => mapQItemsIndex(qItem), [qItem]);
30
30
  const readOnly = useReadOnly(qItem, parentIsReadOnly);
31
- const itemIsHidden = useHidden(qItem);
31
+ const itemIsHidden = useHidden(qItem, parentRepeatGroupIndex);
32
32
  if (itemIsHidden) {
33
33
  return null;
34
34
  }
@@ -56,7 +56,7 @@ function GroupItem(props) {
56
56
  React.createElement(GroupHeading, { qItem: qItem, readOnly: readOnly, tabIsMarkedAsComplete: tabIsMarkedAsComplete, isRepeated: isRepeated }),
57
57
  qItems.map((qItem, i) => {
58
58
  const qrItemOrItems = qrItemsByIndex[i];
59
- return (React.createElement(GroupItemSwitcher, { key: qItem.linkId, qItem: qItem, qrItemOrItems: qrItemOrItems, groupCardElevation: groupCardElevation, parentIsReadOnly: readOnly, onQrItemChange: handleQrItemChange, onQrRepeatGroupChange: handleQrRepeatGroupChange }));
59
+ return (React.createElement(GroupItemSwitcher, { key: qItem.linkId, qItem: qItem, qrItemOrItems: qrItemOrItems, groupCardElevation: groupCardElevation, parentIsReadOnly: readOnly, parentIsRepeatGroup: parentIsRepeatGroup, parentRepeatGroupIndex: parentRepeatGroupIndex, onQrItemChange: handleQrItemChange, onQrRepeatGroupChange: handleQrRepeatGroupChange }));
60
60
  }),
61
61
  React.createElement(NextTabButtonWrapper, { currentTabIndex: currentTabIndex, tabs: tabs }))));
62
62
  }
@@ -1 +1 @@
1
- {"version":3,"file":"GroupItem.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/GroupItem/GroupItem.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEzE,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAOtD,OAAO,SAAS,MAAM,0BAA0B,CAAC;AAEjD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AAcrD,SAAS,SAA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@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { PropsWithParentIsReadOnlyAttribute, PropsWithQrItemChangeHandler, PropsWithQrRepeatGroupChangeHandler } from '../../../interfaces/renderProps.interface';
3
+ import type { PropsWithParentIsRepeatGroupAttribute } from '../../../interfaces/renderProps.interface';
3
4
  import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
4
- interface GroupItemSwitcherProps extends PropsWithQrItemChangeHandler, PropsWithQrRepeatGroupChangeHandler, PropsWithParentIsReadOnlyAttribute {
5
+ interface GroupItemSwitcherProps extends PropsWithQrItemChangeHandler, PropsWithQrRepeatGroupChangeHandler, PropsWithParentIsReadOnlyAttribute, PropsWithParentIsRepeatGroupAttribute {
5
6
  qItem: QuestionnaireItem;
6
7
  qrItemOrItems: QuestionnaireResponseItem | QuestionnaireResponseItem[] | undefined;
7
8
  groupCardElevation: number;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -24,8 +24,8 @@ import useHidden from '../../../hooks/useHidden';
24
24
  import GroupItem from './GroupItem';
25
25
  import GridGroup from '../GridGroup/GridGroup';
26
26
  function GroupItemSwitcher(props) {
27
- const { qItem, qrItemOrItems, groupCardElevation, parentIsReadOnly, onQrItemChange, onQrRepeatGroupChange } = props;
28
- const itemIsHidden = useHidden(qItem);
27
+ const { qItem, qrItemOrItems, groupCardElevation, parentIsReadOnly, parentIsRepeatGroup, parentRepeatGroupIndex, onQrItemChange, onQrRepeatGroupChange } = props;
28
+ const itemIsHidden = useHidden(qItem, parentRepeatGroupIndex);
29
29
  if (itemIsHidden) {
30
30
  return null;
31
31
  }
@@ -63,10 +63,10 @@ function GroupItemSwitcher(props) {
63
63
  }
64
64
  // if qItem is not a repeating question or is a checkbox
65
65
  if (qItem.type === 'group') {
66
- return (React.createElement(GroupItem, { qItem: qItem, qrItem: qrItem !== null && qrItem !== void 0 ? qrItem : null, isRepeated: false, groupCardElevation: groupCardElevation + 1, parentIsReadOnly: parentIsReadOnly, onQrItemChange: onQrItemChange }));
66
+ return (React.createElement(GroupItem, { qItem: qItem, qrItem: qrItem !== null && qrItem !== void 0 ? qrItem : null, isRepeated: false, groupCardElevation: groupCardElevation + 1, parentIsReadOnly: parentIsReadOnly, parentIsRepeatGroup: parentIsRepeatGroup, parentRepeatGroupIndex: parentRepeatGroupIndex, onQrItemChange: onQrItemChange }));
67
67
  }
68
68
  // Defaults to a single, non-group item
69
- return (React.createElement(SingleItem, { qItem: qItem, qrItem: qrItem !== null && qrItem !== void 0 ? qrItem : null, isRepeated: false, isTabled: false, groupCardElevation: groupCardElevation + 1, parentIsReadOnly: parentIsReadOnly, onQrItemChange: onQrItemChange }));
69
+ return (React.createElement(SingleItem, { qItem: qItem, qrItem: qrItem !== null && qrItem !== void 0 ? qrItem : null, isRepeated: false, isTabled: false, groupCardElevation: groupCardElevation + 1, parentIsReadOnly: parentIsReadOnly, parentIsRepeatGroup: parentIsRepeatGroup, parentRepeatGroupIndex: parentRepeatGroupIndex, onQrItemChange: onQrItemChange }));
70
70
  }
71
71
  export default GroupItemSwitcher;
72
72
  //# sourceMappingURL=GroupItemSwitcher.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GroupItemSwitcher.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/GroupItem/GroupItemSwitcher.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAA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gB,EAAE,gBAAgB,EAClC,cAAc,EAAE,cAAc,GAC9B,CACH,CAAC;KACH;IAED,wDAAwD;IACxD,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,EAAE;QAC1B,OAAO,CACL,oBAAC,SAAS,IACR,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,IAAI,EACtB,UAAU,EAAE,KAAK,EACjB,kBAAkB,EAAE,kBAAkB,GAAG,CAAC,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,cAAc,GAC9B,CACH,CAAC;KACH;IAED,uCAAuC;IACvC,OAAO,CACL,oBAAC,UAAU,IACT,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,IAAI,EACtB,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAE,KAAK,EACf,kBAAkB,EAAE,kBAAkB,GAAG,CAAC,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,cAAc,GAC9B,CACH,CAAC;AACJ,CAAC;AAED,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"GroupItemSwitcher.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/GroupItem/GroupItemSwitcher.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACnF,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAY/C,SAAS,i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kB,GAAG,CAAC,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,mBAAmB,EAAE,mBAAmB,EACxC,sBAAsB,EAAE,sBAAsB,EAC9C,cAAc,EAAE,cAAc,GAC9B,CACH,CAAC;KACH;IAED,uCAAuC;IACvC,OAAO,CACL,oBAAC,UAAU,IACT,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,IAAI,EACtB,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAE,KAAK,EACf,kBAAkB,EAAE,kBAAkB,GAAG,CAAC,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,mBAAmB,EAAE,mBAAmB,EACxC,sBAAsB,EAAE,sBAAsB,EAC9C,cAAc,EAAE,cAAc,GAC9B,CACH,CAAC;AACJ,CAAC;AAED,eAAe,iBAAiB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { ChoiceItemOrientation } from '../../../interfaces/choice.enum';
3
2
  import type { QuestionnaireItem, QuestionnaireResponseItemAnswer } from 'fhir/r4';
4
3
  interface OpenChoiceCheckboxAnswerOptionFieldsProps {
5
4
  qItem: QuestionnaireItem;
@@ -8,7 +7,6 @@ interface OpenChoiceCheckboxAnswerOptionFieldsProps {
8
7
  openLabelValue: string;
9
8
  openLabelChecked: boolean;
10
9
  readOnly: boolean;
11
- orientation: ChoiceItemOrientation;
12
10
  onValueChange: (changedOptionValue: string | null, changedOpenLabelValue: string | null) => void;
13
11
  onOpenLabelCheckedChange: (checked: boolean) => void;
14
12
  onOpenLabelInputChange: (input: string) => void;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2023 Commonwealth Scientific and Industrial Research
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
3
  * Organisation (CSIRO) ABN 41 687 119 230.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -19,11 +19,13 @@ import { StyledFormGroup } from '../Item.styles';
19
19
  import { ChoiceItemOrientation } from '../../../interfaces/choice.enum';
20
20
  import CheckboxSingle from '../ItemParts/CheckboxSingle';
21
21
  import CheckboxSingleWithOpenLabel from '../ItemParts/CheckboxSingleWithOpenLabel';
22
+ import { getChoiceOrientation } from '../../../utils/choice';
22
23
  function OpenChoiceCheckboxAnswerOptionFields(props) {
23
- var _a;
24
- const { qItem, answers, openLabelText, openLabelValue, openLabelChecked, readOnly, orientation, onValueChange, onOpenLabelCheckedChange, onOpenLabelInputChange } = props;
25
- return (React.createElement(StyledFormGroup, { row: orientation === ChoiceItemOrientation.Horizontal }, (_a = qItem.answerOption) === null || _a === void 0 ? void 0 :
26
- _a.map((option) => {
24
+ var _a, _b;
25
+ const { qItem, answers, openLabelText, openLabelValue, openLabelChecked, readOnly, onValueChange, onOpenLabelCheckedChange, onOpenLabelInputChange } = props;
26
+ const orientation = (_a = getChoiceOrientation(qItem)) !== null && _a !== void 0 ? _a : ChoiceItemOrientation.Vertical;
27
+ return (React.createElement(StyledFormGroup, { row: orientation === ChoiceItemOrientation.Horizontal }, (_b = qItem.answerOption) === null || _b === void 0 ? void 0 :
28
+ _b.map((option) => {
27
29
  var _a, _b, _c;
28
30
  if (option['valueCoding']) {
29
31
  return (React.createElement(CheckboxSingle, { key: (_a = option.valueCoding.code) !== null && _a !== void 0 ? _a : '', value: (_b = option.valueCoding.code) !== null && _b !== void 0 ? _b : '', label: (_c = option.valueCoding.display) !== null && _c !== void 0 ? _c : `${option.valueCoding.code}`, readOnly: readOnly, isChecked: answers.some((answer) => JSON.stringify(answer) === JSON.stringify(option)), onCheckedChange: (changedValue) => onValueChange(changedValue, null) }));
@@ -1 +1 @@
1
- {"version":3,"file":"OpenChoiceCheckboxAnswerOptionFields.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionFields.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,cAAc,MAAM,6BAA6B,CAAC;AACzD,OAAO,2BAA2B,MAAM,0CAA0C,CAAC;AAgBnF,SAAS,oCAAoC,CAAC,KAAgD;;IAC5F,MAAM,EACJ,KAAK,EACL,OAAO,EACP,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,aAAa,EACb,wBAAwB,EACxB,sBAAsB,EACvB,GAAG,KAAK,CAAC;IAEV,OAAO,CACL,oBAAC,eAAe,IAAC,GAAG,EAAE,WAAW,KAAK,qBAAqB,CAAC,UAAU,IACnE,MAAA,KAAK,CAAC,YAAY;WAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;;YAClC,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE;gBACzB,OAAO,CACL,oBAAC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AO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,KAAK,MAAM,CAAC,YAAY,CAAC,EAChF,eAAe,EAAE,CAAC,YAAY,EAAE,EAAE,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,CAAC,GACpE,CACH,CAAC;aACH;YAED,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;QAED,aAAa,CAAC,CAAC,CAAC,CACf,oBAAC,2BAA2B,IAC1B,KAAK,EAAE,cAAc,EACrB,KAAK,EAAE,aAAa,EACpB,SAAS,EAAE,gBAAgB,EAC3B,eAAe,EAAE,wBAAwB,EACzC,aAAa,EAAE,sBAAsB,GACrC,CACH,CAAC,CAAC,CAAC,IAAI,CACQ,CACnB,CAAC;AACJ,CAAC;AAED,eAAe,oCAAoC,CAAC"}
1
+ {"version":3,"file":"OpenChoiceCheckboxAnswerOptionFields.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionFields.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,cAAc,MAAM,6BAA6B,CAAC;AACzD,OAAO,2BAA2B,MAAM,0CAA0C,CAAC;AAEnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAc7D,SAAS,oCAAoC,CAAC,KAAgD;;IAC5F,MAAM,EACJ,KAAK,EACL,OAAO,EACP,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,wBAAwB,EACxB,sBAAsB,EACvB,GAAG,KAAK,CAAC;IAEV,MAAM,WAAW,GAAG,MAAA,oBAAoB,CAAC,KAAK,CAAC,mCAAI,qBAAqB,CAAC,QAAQ,CAAC;I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