@ovok/native 1.10.3 → 1.10.5

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 (503) hide show
  1. package/lib/commonjs/modules/auth/default-translation.js +21 -0
  2. package/lib/commonjs/modules/auth/default-translation.js.map +1 -1
  3. package/lib/commonjs/modules/auth/hooks/use-delete-account.js +1 -1
  4. package/lib/commonjs/modules/auth/hooks/use-delete-account.js.map +1 -1
  5. package/lib/commonjs/modules/auth/hooks/use-session.js +5 -0
  6. package/lib/commonjs/modules/auth/hooks/use-session.js.map +1 -1
  7. package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js +1 -0
  8. package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js.map +1 -1
  9. package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js +1 -0
  10. package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
  11. package/lib/commonjs/modules/auth/session/logout-session.js +6 -1
  12. package/lib/commonjs/modules/auth/session/logout-session.js.map +1 -1
  13. package/lib/commonjs/modules/auth/session/session-store-refresh.js +130 -0
  14. package/lib/commonjs/modules/auth/session/session-store-refresh.js.map +1 -0
  15. package/lib/commonjs/modules/auth/session/session-store-request-state.js +73 -0
  16. package/lib/commonjs/modules/auth/session/session-store-request-state.js.map +1 -0
  17. package/lib/commonjs/modules/auth/session/session-store-types.js.map +1 -1
  18. package/lib/commonjs/modules/auth/session/session-store.js +69 -120
  19. package/lib/commonjs/modules/auth/session/session-store.js.map +1 -1
  20. package/lib/commonjs/modules/auth/utils/sign-in-error.js +4 -2
  21. package/lib/commonjs/modules/auth/utils/sign-in-error.js.map +1 -1
  22. package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
  23. package/lib/commonjs/modules/data-sync/hooks/use-listen-changes.js.map +1 -1
  24. package/lib/commonjs/modules/data-sync/services/apple-health-sync-service.js.map +1 -1
  25. package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js +47 -21
  26. package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
  27. package/lib/commonjs/modules/data-sync/utils/convert-records-to-observation.js +19 -16
  28. package/lib/commonjs/modules/data-sync/utils/convert-records-to-observation.js.map +1 -1
  29. package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js +17 -4
  30. package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
  31. package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
  32. package/lib/commonjs/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
  33. package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js +168 -5
  34. package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js.map +1 -1
  35. package/lib/commonjs/modules/data-sync/utils/health-record-timing.js +52 -0
  36. package/lib/commonjs/modules/data-sync/utils/health-record-timing.js.map +1 -0
  37. package/lib/commonjs/modules/data-sync/utils/healthkit-data-types.js.map +1 -1
  38. package/lib/commonjs/modules/data-sync/utils/normalize-core-health-observation.js +74 -0
  39. package/lib/commonjs/modules/data-sync/utils/normalize-core-health-observation.js.map +1 -0
  40. package/lib/commonjs/modules/helpers/form-items/form-field.js +12 -3
  41. package/lib/commonjs/modules/helpers/form-items/form-field.js.map +1 -1
  42. package/lib/commonjs/modules/picker-sheet/components/value-wheel-picker.js +41 -0
  43. package/lib/commonjs/modules/picker-sheet/components/value-wheel-picker.js.map +1 -0
  44. package/lib/commonjs/modules/picker-sheet/components/wheel-picker.js +56 -15
  45. package/lib/commonjs/modules/picker-sheet/components/wheel-picker.js.map +1 -1
  46. package/lib/commonjs/modules/picker-sheet/index.js +11 -0
  47. package/lib/commonjs/modules/picker-sheet/index.js.map +1 -1
  48. package/lib/commonjs/modules/questionnaire-response-form/README.md +82 -23
  49. package/lib/commonjs/modules/questionnaire-response-form/components/content/questionnaire-content-item.js +8 -0
  50. package/lib/commonjs/modules/questionnaire-response-form/components/content/questionnaire-content-item.js.map +1 -1
  51. package/lib/commonjs/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.js +8 -0
  52. package/lib/commonjs/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.js.map +1 -1
  53. package/lib/commonjs/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.js +8 -3
  54. package/lib/commonjs/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.js.map +1 -1
  55. package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.js +9 -3
  56. package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.js.map +1 -1
  57. package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js +18 -8
  58. package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js.map +1 -1
  59. package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.js +41 -2
  60. package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.js.map +1 -1
  61. package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-text-field.js +43 -5
  62. package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-text-field.js.map +1 -1
  63. package/lib/commonjs/modules/questionnaire-response-form/components/header/questionnaire-header-title.js +3 -1
  64. package/lib/commonjs/modules/questionnaire-response-form/components/header/questionnaire-header-title.js.map +1 -1
  65. package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js +52 -13
  66. package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
  67. package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form.js +1 -0
  68. package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form.js.map +1 -1
  69. package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-navigation-provider.js +9 -3
  70. package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-navigation-provider.js.map +1 -1
  71. package/lib/commonjs/modules/questionnaire-response-form/hooks/use-initial-selected-values.js +5 -3
  72. package/lib/commonjs/modules/questionnaire-response-form/hooks/use-initial-selected-values.js.map +1 -1
  73. package/lib/commonjs/modules/questionnaire-response-form/hooks/use-navigation-handlers.js +15 -4
  74. package/lib/commonjs/modules/questionnaire-response-form/hooks/use-navigation-handlers.js.map +1 -1
  75. package/lib/commonjs/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.js +14 -7
  76. package/lib/commonjs/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.js.map +1 -1
  77. package/lib/commonjs/modules/questionnaire-response-form/index.js +20 -0
  78. package/lib/commonjs/modules/questionnaire-response-form/index.js.map +1 -1
  79. package/lib/commonjs/modules/questionnaire-response-form/types/questionnaire-form-values.js +4 -0
  80. package/lib/commonjs/modules/questionnaire-response-form/types/questionnaire-item-render-props.js +6 -0
  81. package/lib/commonjs/modules/questionnaire-response-form/types/questionnaire-item-render-props.js.map +1 -0
  82. package/lib/commonjs/modules/questionnaire-response-form/types/response-values.js +4 -0
  83. package/lib/commonjs/modules/questionnaire-response-form/utils/condition-utils.js +37 -6
  84. package/lib/commonjs/modules/questionnaire-response-form/utils/condition-utils.js.map +1 -1
  85. package/lib/commonjs/modules/questionnaire-response-form/utils/conditions/fhir-condition.js +148 -0
  86. package/lib/commonjs/modules/questionnaire-response-form/utils/conditions/fhir-condition.js.map +1 -0
  87. package/lib/commonjs/modules/questionnaire-response-form/utils/create-answer-from-value.js +127 -0
  88. package/lib/commonjs/modules/questionnaire-response-form/utils/create-answer-from-value.js.map +1 -0
  89. package/lib/commonjs/modules/questionnaire-response-form/utils/fields/get-option-text.js +4 -3
  90. package/lib/commonjs/modules/questionnaire-response-form/utils/fields/get-option-text.js.map +1 -1
  91. package/lib/commonjs/modules/questionnaire-response-form/utils/form-utils.js +71 -64
  92. package/lib/commonjs/modules/questionnaire-response-form/utils/form-utils.js.map +1 -1
  93. package/lib/commonjs/modules/questionnaire-response-form/utils/form-validation.js +23 -5
  94. package/lib/commonjs/modules/questionnaire-response-form/utils/form-validation.js.map +1 -1
  95. package/lib/commonjs/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.js +10 -0
  96. package/lib/commonjs/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.js.map +1 -0
  97. package/lib/commonjs/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.js +83 -0
  98. package/lib/commonjs/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.js.map +1 -0
  99. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-date-utils.js +54 -0
  100. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-date-utils.js.map +1 -0
  101. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-item-constraints.js +75 -0
  102. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-item-constraints.js.map +1 -0
  103. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.js +63 -0
  104. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.js.map +1 -0
  105. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.js +49 -18
  106. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.js.map +1 -1
  107. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-picker-options.js +117 -0
  108. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-picker-options.js.map +1 -0
  109. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.js +109 -0
  110. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.js.map +1 -0
  111. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js +77 -2
  112. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js.map +1 -1
  113. package/lib/commonjs/modules/questionnaire-response-form/utils/translate-fhir-text.js +36 -0
  114. package/lib/commonjs/modules/questionnaire-response-form/utils/translate-fhir-text.js.map +1 -0
  115. package/lib/commonjs/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.js +49 -0
  116. package/lib/commonjs/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.js.map +1 -0
  117. package/lib/commonjs/modules/ui/components/prerequisite-gate.js +73 -0
  118. package/lib/commonjs/modules/ui/components/prerequisite-gate.js.map +1 -0
  119. package/lib/commonjs/modules/ui/index.js +11 -0
  120. package/lib/commonjs/modules/ui/index.js.map +1 -1
  121. package/lib/commonjs/polyfills/index.js +9 -7
  122. package/lib/commonjs/polyfills/index.js.map +1 -1
  123. package/lib/module/modules/auth/default-translation.js +21 -0
  124. package/lib/module/modules/auth/default-translation.js.map +1 -1
  125. package/lib/module/modules/auth/hooks/use-delete-account.js +1 -1
  126. package/lib/module/modules/auth/hooks/use-delete-account.js.map +1 -1
  127. package/lib/module/modules/auth/hooks/use-session.js +5 -0
  128. package/lib/module/modules/auth/hooks/use-session.js.map +1 -1
  129. package/lib/module/modules/auth/register/components/form/register-form-provider.js +1 -0
  130. package/lib/module/modules/auth/register/components/form/register-form-provider.js.map +1 -1
  131. package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js +1 -0
  132. package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
  133. package/lib/module/modules/auth/session/logout-session.js +6 -1
  134. package/lib/module/modules/auth/session/logout-session.js.map +1 -1
  135. package/lib/module/modules/auth/session/session-store-refresh.js +126 -0
  136. package/lib/module/modules/auth/session/session-store-refresh.js.map +1 -0
  137. package/lib/module/modules/auth/session/session-store-request-state.js +69 -0
  138. package/lib/module/modules/auth/session/session-store-request-state.js.map +1 -0
  139. package/lib/module/modules/auth/session/session-store-types.js.map +1 -1
  140. package/lib/module/modules/auth/session/session-store.js +70 -121
  141. package/lib/module/modules/auth/session/session-store.js.map +1 -1
  142. package/lib/module/modules/auth/utils/sign-in-error.js +4 -2
  143. package/lib/module/modules/auth/utils/sign-in-error.js.map +1 -1
  144. package/lib/module/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
  145. package/lib/module/modules/data-sync/hooks/use-listen-changes.js.map +1 -1
  146. package/lib/module/modules/data-sync/services/apple-health-sync-service.js.map +1 -1
  147. package/lib/module/modules/data-sync/utils/convert-generic-health-data.js +47 -21
  148. package/lib/module/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
  149. package/lib/module/modules/data-sync/utils/convert-records-to-observation.js +19 -16
  150. package/lib/module/modules/data-sync/utils/convert-records-to-observation.js.map +1 -1
  151. package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js +17 -4
  152. package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
  153. package/lib/module/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
  154. package/lib/module/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
  155. package/lib/module/modules/data-sync/utils/health-data-catalog.js +168 -5
  156. package/lib/module/modules/data-sync/utils/health-data-catalog.js.map +1 -1
  157. package/lib/module/modules/data-sync/utils/health-record-timing.js +47 -0
  158. package/lib/module/modules/data-sync/utils/health-record-timing.js.map +1 -0
  159. package/lib/module/modules/data-sync/utils/healthkit-data-types.js.map +1 -1
  160. package/lib/module/modules/data-sync/utils/normalize-core-health-observation.js +69 -0
  161. package/lib/module/modules/data-sync/utils/normalize-core-health-observation.js.map +1 -0
  162. package/lib/module/modules/helpers/form-items/form-field.js +12 -3
  163. package/lib/module/modules/helpers/form-items/form-field.js.map +1 -1
  164. package/lib/module/modules/picker-sheet/components/value-wheel-picker.js +36 -0
  165. package/lib/module/modules/picker-sheet/components/value-wheel-picker.js.map +1 -0
  166. package/lib/module/modules/picker-sheet/components/wheel-picker.js +56 -15
  167. package/lib/module/modules/picker-sheet/components/wheel-picker.js.map +1 -1
  168. package/lib/module/modules/picker-sheet/index.js +1 -0
  169. package/lib/module/modules/picker-sheet/index.js.map +1 -1
  170. package/lib/module/modules/questionnaire-response-form/README.md +82 -23
  171. package/lib/module/modules/questionnaire-response-form/components/content/questionnaire-content-item.js +8 -0
  172. package/lib/module/modules/questionnaire-response-form/components/content/questionnaire-content-item.js.map +1 -1
  173. package/lib/module/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.js +8 -0
  174. package/lib/module/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.js.map +1 -1
  175. package/lib/module/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.js +8 -3
  176. package/lib/module/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.js.map +1 -1
  177. package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.js +9 -3
  178. package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.js.map +1 -1
  179. package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js +18 -8
  180. package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js.map +1 -1
  181. package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.js +42 -3
  182. package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.js.map +1 -1
  183. package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-text-field.js +41 -3
  184. package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-text-field.js.map +1 -1
  185. package/lib/module/modules/questionnaire-response-form/components/header/questionnaire-header-title.js +3 -1
  186. package/lib/module/modules/questionnaire-response-form/components/header/questionnaire-header-title.js.map +1 -1
  187. package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js +52 -13
  188. package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
  189. package/lib/module/modules/questionnaire-response-form/components/questionnaire-form.js +1 -0
  190. package/lib/module/modules/questionnaire-response-form/components/questionnaire-form.js.map +1 -1
  191. package/lib/module/modules/questionnaire-response-form/components/questionnaire-navigation-provider.js +9 -3
  192. package/lib/module/modules/questionnaire-response-form/components/questionnaire-navigation-provider.js.map +1 -1
  193. package/lib/module/modules/questionnaire-response-form/hooks/use-initial-selected-values.js +5 -3
  194. package/lib/module/modules/questionnaire-response-form/hooks/use-initial-selected-values.js.map +1 -1
  195. package/lib/module/modules/questionnaire-response-form/hooks/use-navigation-handlers.js +15 -4
  196. package/lib/module/modules/questionnaire-response-form/hooks/use-navigation-handlers.js.map +1 -1
  197. package/lib/module/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.js +14 -7
  198. package/lib/module/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.js.map +1 -1
  199. package/lib/module/modules/questionnaire-response-form/index.js +2 -0
  200. package/lib/module/modules/questionnaire-response-form/index.js.map +1 -1
  201. package/lib/module/modules/questionnaire-response-form/types/questionnaire-form-values.js +2 -0
  202. package/lib/module/modules/questionnaire-response-form/types/questionnaire-item-render-props.js +4 -0
  203. package/lib/module/modules/questionnaire-response-form/types/questionnaire-item-render-props.js.map +1 -0
  204. package/lib/module/modules/questionnaire-response-form/types/response-values.js +2 -0
  205. package/lib/module/modules/questionnaire-response-form/utils/condition-utils.js +37 -6
  206. package/lib/module/modules/questionnaire-response-form/utils/condition-utils.js.map +1 -1
  207. package/lib/module/modules/questionnaire-response-form/utils/conditions/fhir-condition.js +140 -0
  208. package/lib/module/modules/questionnaire-response-form/utils/conditions/fhir-condition.js.map +1 -0
  209. package/lib/module/modules/questionnaire-response-form/utils/create-answer-from-value.js +122 -0
  210. package/lib/module/modules/questionnaire-response-form/utils/create-answer-from-value.js.map +1 -0
  211. package/lib/module/modules/questionnaire-response-form/utils/fields/get-option-text.js +4 -3
  212. package/lib/module/modules/questionnaire-response-form/utils/fields/get-option-text.js.map +1 -1
  213. package/lib/module/modules/questionnaire-response-form/utils/form-utils.js +71 -64
  214. package/lib/module/modules/questionnaire-response-form/utils/form-utils.js.map +1 -1
  215. package/lib/module/modules/questionnaire-response-form/utils/form-validation.js +23 -5
  216. package/lib/module/modules/questionnaire-response-form/utils/form-validation.js.map +1 -1
  217. package/lib/module/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.js +5 -0
  218. package/lib/module/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.js.map +1 -0
  219. package/lib/module/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.js +77 -0
  220. package/lib/module/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.js.map +1 -0
  221. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-date-utils.js +49 -0
  222. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-date-utils.js.map +1 -0
  223. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-item-constraints.js +71 -0
  224. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-item-constraints.js.map +1 -0
  225. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.js +57 -0
  226. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.js.map +1 -0
  227. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.js +49 -18
  228. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.js.map +1 -1
  229. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-picker-options.js +112 -0
  230. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-picker-options.js.map +1 -0
  231. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.js +105 -0
  232. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.js.map +1 -0
  233. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js +77 -2
  234. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js.map +1 -1
  235. package/lib/module/modules/questionnaire-response-form/utils/translate-fhir-text.js +31 -0
  236. package/lib/module/modules/questionnaire-response-form/utils/translate-fhir-text.js.map +1 -0
  237. package/lib/module/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.js +44 -0
  238. package/lib/module/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.js.map +1 -0
  239. package/lib/module/modules/ui/components/prerequisite-gate.js +67 -0
  240. package/lib/module/modules/ui/components/prerequisite-gate.js.map +1 -0
  241. package/lib/module/modules/ui/index.js +1 -0
  242. package/lib/module/modules/ui/index.js.map +1 -1
  243. package/lib/module/polyfills/index.js +11 -1
  244. package/lib/module/polyfills/index.js.map +1 -1
  245. package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts +21 -0
  246. package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts.map +1 -1
  247. package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts +6 -1
  248. package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts.map +1 -1
  249. package/lib/typescript/commonjs/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
  250. package/lib/typescript/commonjs/src/modules/auth/reset-password/components/form/reset-password-form-provider.d.ts.map +1 -1
  251. package/lib/typescript/commonjs/src/modules/auth/session/logout-session.d.ts +4 -2
  252. package/lib/typescript/commonjs/src/modules/auth/session/logout-session.d.ts.map +1 -1
  253. package/lib/typescript/commonjs/src/modules/auth/session/session-store-refresh.d.ts +8 -0
  254. package/lib/typescript/commonjs/src/modules/auth/session/session-store-refresh.d.ts.map +1 -0
  255. package/lib/typescript/commonjs/src/modules/auth/session/session-store-request-state.d.ts +23 -0
  256. package/lib/typescript/commonjs/src/modules/auth/session/session-store-request-state.d.ts.map +1 -0
  257. package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts +10 -2
  258. package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts.map +1 -1
  259. package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts +1 -1
  260. package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts.map +1 -1
  261. package/lib/typescript/commonjs/src/modules/auth/utils/sign-in-error.d.ts +2 -1
  262. package/lib/typescript/commonjs/src/modules/auth/utils/sign-in-error.d.ts.map +1 -1
  263. package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
  264. package/lib/typescript/commonjs/src/modules/data-sync/hooks/use-listen-changes.d.ts +2 -3
  265. package/lib/typescript/commonjs/src/modules/data-sync/hooks/use-listen-changes.d.ts.map +1 -1
  266. package/lib/typescript/commonjs/src/modules/data-sync/services/apple-health-sync-service.d.ts +4 -5
  267. package/lib/typescript/commonjs/src/modules/data-sync/services/apple-health-sync-service.d.ts.map +1 -1
  268. package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts +4 -2
  269. package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts.map +1 -1
  270. package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-sync-props.d.ts +7 -1
  271. package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-sync-props.d.ts.map +1 -1
  272. package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts +2 -1
  273. package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
  274. package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-generic-health-data.d.ts +3 -2
  275. package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
  276. package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-records-to-observation.d.ts.map +1 -1
  277. package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-samples-to-observation.d.ts.map +1 -1
  278. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts +5 -4
  279. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts.map +1 -1
  280. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-total-samples-count.d.ts +2 -2
  281. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-total-samples-count.d.ts.map +1 -1
  282. package/lib/typescript/commonjs/src/modules/data-sync/utils/health-data-catalog.d.ts +3 -1
  283. package/lib/typescript/commonjs/src/modules/data-sync/utils/health-data-catalog.d.ts.map +1 -1
  284. package/lib/typescript/commonjs/src/modules/data-sync/utils/health-record-timing.d.ts +10 -0
  285. package/lib/typescript/commonjs/src/modules/data-sync/utils/health-record-timing.d.ts.map +1 -0
  286. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-data-types.d.ts +6 -5
  287. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-data-types.d.ts.map +1 -1
  288. package/lib/typescript/commonjs/src/modules/data-sync/utils/normalize-core-health-observation.d.ts +13 -0
  289. package/lib/typescript/commonjs/src/modules/data-sync/utils/normalize-core-health-observation.d.ts.map +1 -0
  290. package/lib/typescript/commonjs/src/modules/helpers/form-items/form-field.d.ts.map +1 -1
  291. package/lib/typescript/commonjs/src/modules/picker-sheet/components/value-wheel-picker.d.ts +21 -0
  292. package/lib/typescript/commonjs/src/modules/picker-sheet/components/value-wheel-picker.d.ts.map +1 -0
  293. package/lib/typescript/commonjs/src/modules/picker-sheet/components/wheel-picker.d.ts +7 -3
  294. package/lib/typescript/commonjs/src/modules/picker-sheet/components/wheel-picker.d.ts.map +1 -1
  295. package/lib/typescript/commonjs/src/modules/picker-sheet/index.d.ts +1 -0
  296. package/lib/typescript/commonjs/src/modules/picker-sheet/index.d.ts.map +1 -1
  297. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/content/questionnaire-content-item.d.ts.map +1 -1
  298. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.d.ts.map +1 -1
  299. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.d.ts.map +1 -1
  300. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.d.ts.map +1 -1
  301. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-date-field.d.ts +3 -1
  302. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-date-field.d.ts.map +1 -1
  303. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.d.ts +9 -3
  304. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.d.ts.map +1 -1
  305. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-text-field.d.ts +5 -1
  306. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-text-field.d.ts.map +1 -1
  307. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/header/questionnaire-header-title.d.ts.map +1 -1
  308. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts +1 -1
  309. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts.map +1 -1
  310. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-form.d.ts.map +1 -1
  311. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-navigation-provider.d.ts.map +1 -1
  312. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-initial-selected-values.d.ts.map +1 -1
  313. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-navigation-handlers.d.ts +6 -1
  314. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-navigation-handlers.d.ts.map +1 -1
  315. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.d.ts +2 -1
  316. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.d.ts.map +1 -1
  317. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/index.d.ts +4 -1
  318. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/index.d.ts.map +1 -1
  319. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/extended-questionnaire-item.d.ts +7 -1
  320. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/extended-questionnaire-item.d.ts.map +1 -1
  321. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-context-type.d.ts +6 -0
  322. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-context-type.d.ts.map +1 -1
  323. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-props.d.ts +3 -1
  324. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-props.d.ts.map +1 -1
  325. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-provider-props.d.ts +11 -0
  326. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-provider-props.d.ts.map +1 -1
  327. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-values.d.ts +5 -2
  328. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-values.d.ts.map +1 -1
  329. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-item-render-props.d.ts +15 -0
  330. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-item-render-props.d.ts.map +1 -0
  331. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-navigation-provider-props.d.ts +5 -0
  332. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-navigation-provider-props.d.ts.map +1 -1
  333. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/response-values.d.ts +2 -1
  334. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/response-values.d.ts.map +1 -1
  335. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/condition-utils.d.ts.map +1 -1
  336. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/conditions/fhir-condition.d.ts +9 -0
  337. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/conditions/fhir-condition.d.ts.map +1 -0
  338. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/create-answer-from-value.d.ts +7 -0
  339. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/create-answer-from-value.d.ts.map +1 -0
  340. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/fields/get-option-text.d.ts +1 -1
  341. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/fields/get-option-text.d.ts.map +1 -1
  342. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/form-utils.d.ts +4 -1
  343. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/form-utils.d.ts.map +1 -1
  344. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/form-validation.d.ts +4 -1
  345. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/form-validation.d.ts.map +1 -1
  346. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.d.ts +3 -0
  347. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.d.ts.map +1 -0
  348. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.d.ts +8 -0
  349. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.d.ts.map +1 -0
  350. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-date-utils.d.ts +5 -0
  351. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-date-utils.d.ts.map +1 -0
  352. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-item-constraints.d.ts +22 -0
  353. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-item-constraints.d.ts.map +1 -0
  354. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.d.ts +10 -0
  355. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.d.ts.map +1 -0
  356. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.d.ts +2 -1
  357. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.d.ts.map +1 -1
  358. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-picker-options.d.ts +15 -0
  359. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-picker-options.d.ts.map +1 -0
  360. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.d.ts +5 -0
  361. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.d.ts.map +1 -0
  362. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts +6 -1
  363. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts.map +1 -1
  364. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/translate-fhir-text.d.ts +4 -0
  365. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/translate-fhir-text.d.ts.map +1 -0
  366. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.d.ts +6 -0
  367. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.d.ts.map +1 -0
  368. package/lib/typescript/commonjs/src/modules/ui/components/prerequisite-gate.d.ts +19 -0
  369. package/lib/typescript/commonjs/src/modules/ui/components/prerequisite-gate.d.ts.map +1 -0
  370. package/lib/typescript/commonjs/src/modules/ui/index.d.ts +1 -0
  371. package/lib/typescript/commonjs/src/modules/ui/index.d.ts.map +1 -1
  372. package/lib/typescript/commonjs/src/polyfills/index.d.ts +7 -1
  373. package/lib/typescript/commonjs/src/polyfills/index.d.ts.map +1 -1
  374. package/lib/typescript/module/src/modules/auth/default-translation.d.ts +21 -0
  375. package/lib/typescript/module/src/modules/auth/default-translation.d.ts.map +1 -1
  376. package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts +6 -1
  377. package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts.map +1 -1
  378. package/lib/typescript/module/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
  379. package/lib/typescript/module/src/modules/auth/reset-password/components/form/reset-password-form-provider.d.ts.map +1 -1
  380. package/lib/typescript/module/src/modules/auth/session/logout-session.d.ts +4 -2
  381. package/lib/typescript/module/src/modules/auth/session/logout-session.d.ts.map +1 -1
  382. package/lib/typescript/module/src/modules/auth/session/session-store-refresh.d.ts +8 -0
  383. package/lib/typescript/module/src/modules/auth/session/session-store-refresh.d.ts.map +1 -0
  384. package/lib/typescript/module/src/modules/auth/session/session-store-request-state.d.ts +23 -0
  385. package/lib/typescript/module/src/modules/auth/session/session-store-request-state.d.ts.map +1 -0
  386. package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts +10 -2
  387. package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts.map +1 -1
  388. package/lib/typescript/module/src/modules/auth/session/session-store.d.ts +1 -1
  389. package/lib/typescript/module/src/modules/auth/session/session-store.d.ts.map +1 -1
  390. package/lib/typescript/module/src/modules/auth/utils/sign-in-error.d.ts +2 -1
  391. package/lib/typescript/module/src/modules/auth/utils/sign-in-error.d.ts.map +1 -1
  392. package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
  393. package/lib/typescript/module/src/modules/data-sync/hooks/use-listen-changes.d.ts +2 -3
  394. package/lib/typescript/module/src/modules/data-sync/hooks/use-listen-changes.d.ts.map +1 -1
  395. package/lib/typescript/module/src/modules/data-sync/services/apple-health-sync-service.d.ts +4 -5
  396. package/lib/typescript/module/src/modules/data-sync/services/apple-health-sync-service.d.ts.map +1 -1
  397. package/lib/typescript/module/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts +4 -2
  398. package/lib/typescript/module/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts.map +1 -1
  399. package/lib/typescript/module/src/modules/data-sync/types/apple-health-sync-props.d.ts +7 -1
  400. package/lib/typescript/module/src/modules/data-sync/types/apple-health-sync-props.d.ts.map +1 -1
  401. package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts +2 -1
  402. package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
  403. package/lib/typescript/module/src/modules/data-sync/utils/convert-generic-health-data.d.ts +3 -2
  404. package/lib/typescript/module/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
  405. package/lib/typescript/module/src/modules/data-sync/utils/convert-records-to-observation.d.ts.map +1 -1
  406. package/lib/typescript/module/src/modules/data-sync/utils/convert-samples-to-observation.d.ts.map +1 -1
  407. package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts +5 -4
  408. package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts.map +1 -1
  409. package/lib/typescript/module/src/modules/data-sync/utils/get-total-samples-count.d.ts +2 -2
  410. package/lib/typescript/module/src/modules/data-sync/utils/get-total-samples-count.d.ts.map +1 -1
  411. package/lib/typescript/module/src/modules/data-sync/utils/health-data-catalog.d.ts +3 -1
  412. package/lib/typescript/module/src/modules/data-sync/utils/health-data-catalog.d.ts.map +1 -1
  413. package/lib/typescript/module/src/modules/data-sync/utils/health-record-timing.d.ts +10 -0
  414. package/lib/typescript/module/src/modules/data-sync/utils/health-record-timing.d.ts.map +1 -0
  415. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-data-types.d.ts +6 -5
  416. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-data-types.d.ts.map +1 -1
  417. package/lib/typescript/module/src/modules/data-sync/utils/normalize-core-health-observation.d.ts +13 -0
  418. package/lib/typescript/module/src/modules/data-sync/utils/normalize-core-health-observation.d.ts.map +1 -0
  419. package/lib/typescript/module/src/modules/helpers/form-items/form-field.d.ts.map +1 -1
  420. package/lib/typescript/module/src/modules/picker-sheet/components/value-wheel-picker.d.ts +21 -0
  421. package/lib/typescript/module/src/modules/picker-sheet/components/value-wheel-picker.d.ts.map +1 -0
  422. package/lib/typescript/module/src/modules/picker-sheet/components/wheel-picker.d.ts +7 -3
  423. package/lib/typescript/module/src/modules/picker-sheet/components/wheel-picker.d.ts.map +1 -1
  424. package/lib/typescript/module/src/modules/picker-sheet/index.d.ts +1 -0
  425. package/lib/typescript/module/src/modules/picker-sheet/index.d.ts.map +1 -1
  426. package/lib/typescript/module/src/modules/questionnaire-response-form/components/content/questionnaire-content-item.d.ts.map +1 -1
  427. package/lib/typescript/module/src/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.d.ts.map +1 -1
  428. package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.d.ts.map +1 -1
  429. package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.d.ts.map +1 -1
  430. package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-date-field.d.ts +3 -1
  431. package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-date-field.d.ts.map +1 -1
  432. package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.d.ts +9 -3
  433. package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.d.ts.map +1 -1
  434. package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-text-field.d.ts +5 -1
  435. package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-text-field.d.ts.map +1 -1
  436. package/lib/typescript/module/src/modules/questionnaire-response-form/components/header/questionnaire-header-title.d.ts.map +1 -1
  437. package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts +1 -1
  438. package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts.map +1 -1
  439. package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-form.d.ts.map +1 -1
  440. package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-navigation-provider.d.ts.map +1 -1
  441. package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-initial-selected-values.d.ts.map +1 -1
  442. package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-navigation-handlers.d.ts +6 -1
  443. package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-navigation-handlers.d.ts.map +1 -1
  444. package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.d.ts +2 -1
  445. package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.d.ts.map +1 -1
  446. package/lib/typescript/module/src/modules/questionnaire-response-form/index.d.ts +4 -1
  447. package/lib/typescript/module/src/modules/questionnaire-response-form/index.d.ts.map +1 -1
  448. package/lib/typescript/module/src/modules/questionnaire-response-form/types/extended-questionnaire-item.d.ts +7 -1
  449. package/lib/typescript/module/src/modules/questionnaire-response-form/types/extended-questionnaire-item.d.ts.map +1 -1
  450. package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-context-type.d.ts +6 -0
  451. package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-context-type.d.ts.map +1 -1
  452. package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-props.d.ts +3 -1
  453. package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-props.d.ts.map +1 -1
  454. package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-provider-props.d.ts +11 -0
  455. package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-provider-props.d.ts.map +1 -1
  456. package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-values.d.ts +5 -2
  457. package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-values.d.ts.map +1 -1
  458. package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-item-render-props.d.ts +15 -0
  459. package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-item-render-props.d.ts.map +1 -0
  460. package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-navigation-provider-props.d.ts +5 -0
  461. package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-navigation-provider-props.d.ts.map +1 -1
  462. package/lib/typescript/module/src/modules/questionnaire-response-form/types/response-values.d.ts +2 -1
  463. package/lib/typescript/module/src/modules/questionnaire-response-form/types/response-values.d.ts.map +1 -1
  464. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/condition-utils.d.ts.map +1 -1
  465. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/conditions/fhir-condition.d.ts +9 -0
  466. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/conditions/fhir-condition.d.ts.map +1 -0
  467. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/create-answer-from-value.d.ts +7 -0
  468. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/create-answer-from-value.d.ts.map +1 -0
  469. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/fields/get-option-text.d.ts +1 -1
  470. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/fields/get-option-text.d.ts.map +1 -1
  471. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/form-utils.d.ts +4 -1
  472. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/form-utils.d.ts.map +1 -1
  473. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/form-validation.d.ts +4 -1
  474. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/form-validation.d.ts.map +1 -1
  475. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.d.ts +3 -0
  476. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.d.ts.map +1 -0
  477. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.d.ts +8 -0
  478. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.d.ts.map +1 -0
  479. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-date-utils.d.ts +5 -0
  480. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-date-utils.d.ts.map +1 -0
  481. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-item-constraints.d.ts +22 -0
  482. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-item-constraints.d.ts.map +1 -0
  483. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.d.ts +10 -0
  484. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.d.ts.map +1 -0
  485. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.d.ts +2 -1
  486. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.d.ts.map +1 -1
  487. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-picker-options.d.ts +15 -0
  488. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-picker-options.d.ts.map +1 -0
  489. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.d.ts +5 -0
  490. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.d.ts.map +1 -0
  491. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts +6 -1
  492. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts.map +1 -1
  493. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/translate-fhir-text.d.ts +4 -0
  494. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/translate-fhir-text.d.ts.map +1 -0
  495. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.d.ts +6 -0
  496. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.d.ts.map +1 -0
  497. package/lib/typescript/module/src/modules/ui/components/prerequisite-gate.d.ts +19 -0
  498. package/lib/typescript/module/src/modules/ui/components/prerequisite-gate.d.ts.map +1 -0
  499. package/lib/typescript/module/src/modules/ui/index.d.ts +1 -0
  500. package/lib/typescript/module/src/modules/ui/index.d.ts.map +1 -1
  501. package/lib/typescript/module/src/polyfills/index.d.ts +7 -1
  502. package/lib/typescript/module/src/polyfills/index.d.ts.map +1 -1
  503. package/package.json +18 -3
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.withHealthRecordTiming = void 0;
7
+ const parseDate = value => {
8
+ if (!(value instanceof Date) && typeof value !== "string" && typeof value !== "number") {
9
+ return undefined;
10
+ }
11
+ const date = new Date(value);
12
+ return Number.isNaN(date.getTime()) ? undefined : date;
13
+ };
14
+ const toDateTime = (value, date) => typeof value === "string" ? value : date.toISOString();
15
+ const withoutEffectiveTiming = observation => {
16
+ const result = {
17
+ ...observation
18
+ };
19
+ delete result.effectiveDateTime;
20
+ delete result.effectivePeriod;
21
+ return result;
22
+ };
23
+
24
+ /** Keeps source intervals as FHIR effectivePeriod and source instants as effectiveDateTime. */
25
+ const withHealthRecordTiming = (observation, timing) => {
26
+ const start = parseDate(timing.start);
27
+ const end = parseDate(timing.end);
28
+ if (start && end && end.getTime() > start.getTime()) {
29
+ return {
30
+ ...withoutEffectiveTiming(observation),
31
+ effectivePeriod: {
32
+ start: start.toISOString(),
33
+ end: end.toISOString()
34
+ }
35
+ };
36
+ }
37
+ const point = [timing.point, timing.end, timing.start].map(value => ({
38
+ value,
39
+ date: parseDate(value)
40
+ })).find(({
41
+ date
42
+ }) => date !== undefined);
43
+ if (!point?.date) {
44
+ return observation;
45
+ }
46
+ return {
47
+ ...withoutEffectiveTiming(observation),
48
+ effectiveDateTime: toDateTime(point.value, point.date)
49
+ };
50
+ };
51
+ exports.withHealthRecordTiming = withHealthRecordTiming;
52
+ //# sourceMappingURL=health-record-timing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["parseDate","value","Date","undefined","date","Number","isNaN","getTime","toDateTime","toISOString","withoutEffectiveTiming","observation","result","effectiveDateTime","effectivePeriod","withHealthRecordTiming","timing","start","end","point","map","find","exports"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/utils/health-record-timing.ts"],"mappings":";;;;;;AAQA,MAAMA,SAAS,GAAIC,KA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M,CAACC,KAAK,CAAC,CACnDG,GAAG,CAAEnB,KAAK,KAAM;IAAEA,KAAK;IAAEG,IAAI,EAAEJ,SAAS,CAACC,KAAK;EAAE,CAAC,CAAC,CAAC,CACnDoB,IAAI,CAAC,CAAC;IAAEjB;EAAK,CAAC,KAAKA,IAAI,KAAKD,SAAS,CAAC;EAEzC,IAAI,CAACgB,KAAK,EAAEf,IAAI,EAAE;IAChB,OAAOO,WAAW;EACpB;EAEA,OAAO;IACL,GAAGD,sBAAsB,CAACC,WAAW,CAAC;IACtCE,iBAAiB,EAAEL,UAAU,CAACW,KAAK,CAAClB,KAAK,EAAEkB,KAAK,CAACf,IAAI;EACvD,CAAC;AACH,CAAC;AAACkB,OAAA,CAAAP,sBAAA,GAAAA,sBAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["isCategoryIdentifier","typeIdentifier","startsWith","exports","isQuantityIdentifier","isCorrelationIdentifier","unsupportedHealthKitTypeReason","UnsupportedHealthKitDataError","Error","constructor","reason","name"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/utils/healthkit-data-types.ts"],"mappings":";;;;;;AAOA,MAAMA,oBAAoB,GACxBC,cAAsC,IAEtC,OAAOA,cAAc,KAAK,QAAQ,IAClCA,cAAc,CAACC,UAAU,CAAC,0BAA0B,CAAC;AAACC,OAAA,CAAAH,oBAAA,GAAAA,oBAAA;AAExD,MAAMI,oBAAoB,GACxBH,cAAsC,IAEtC,OAAOA,cAAc,KAAK,QAAQ,IAClCA,cAAc,CAACC,UAAU,CAAC,0BAA0B,CAAC;AAACC,OAAA,CAAAC,oBAAA,GAAAA,oBAAA;AAExD,MAAMC,uBAAuB,GAC3BJ,cAAsC,IAEtC,OAAOA,cAAc,KAAK,QAAQ,IAClCA,cAAc,CAACC,UAAU,CAAC,6BAA6B,CAAC;AAACC,OAAA,CAAAE,uBAAA,GAAAA,uBAAA;AAE3D,MAAMC,8BAA8B,GAClCL,cAAsC,IAC3B;EACX,QAAQA,cAAc;IACpB,KAAK,iCAAiC;MACpC,OAAO,yEAAyE;IAClF,KAAK,uBAAuB;MAC1B,OAAO,6EAA6E;IACtF,KAAK,8BAA8B;MACjC,OAAO,sGAAsG;IAC/G;MACE,OAAO,qFAAqF;EAChG;AACF,CAAC;AAACE,OAAA,CAAAG,8BAAA,GAAAA,8BAAA;AAEF,MAAMC,6BAA6B,SAASC,KAAK,CAAC;EAChDC,WAAWA,CACAR,cAAsB,EAC/BS,MAAc,EACd;IACA,KAAK,CAAC,iBAAiBT,cAAc,KAAKS,MAAM,EAAE,CAAC;IAAC,KAH3CT,cAAsB,GAAtBA,cAAsB;IAI/B,IAAI,CAACU,IAAI,GAAG,+BAA+B;EAC7C;AACF;AAACR,OAAA,CAAAI,6BAAA,GAAAA,6BAAA","ignoreList":[]}
1
+ {"version":3,"names":["isCategoryIdentifier","typeIdentifier","startsWith","exports","isQuantityIdentifier","isCorrelationIdentifier","unsupportedHealthKitTypeReason","UnsupportedHealthKitDataError","Error","constructor","reason","name"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/utils/healthkit-data-types.ts"],"mappings":";;;;;;AAQA,MAAMA,oBAAoB,GACxBC,cAA6C,IAE7C,OAAOA,cAAc,KAAK,QAAQ,IAClCA,cAAc,CAACC,UAAU,CAAC,0BAA0B,CAAC;AAACC,OAAA,CAAAH,oBAAA,GAAAA,oBAAA;AAExD,MAAMI,oBAAoB,GACxBH,cAA6C,IAE7C,OAAOA,cAAc,KAAK,QAAQ,IAClCA,cAAc,CAACC,UAAU,CAAC,0BAA0B,CAAC;AAACC,OAAA,CAAAC,oBAAA,GAAAA,oBAAA;AAExD,MAAMC,uBAAuB,GAC3BJ,cAA6C,IAE7C,OAAOA,cAAc,KAAK,QAAQ,IAClCA,cAAc,CAACC,UAAU,CAAC,6BAA6B,CAAC;AAACC,OAAA,CAAAE,uBAAA,GAAAA,uBAAA;AAE3D,MAAMC,8BAA8B,GAClCL,cAA6C,IAClC;EACX,QAAQA,cAAc;IACpB,KAAK,iCAAiC;MACpC,OAAO,yEAAyE;IAClF,KAAK,uBAAuB;MAC1B,OAAO,6EAA6E;IACtF,KAAK,8BAA8B;MACjC,OAAO,sGAAsG;IAC/G;MACE,OAAO,qFAAqF;EAChG;AACF,CAAC;AAACE,OAAA,CAAAG,8BAAA,GAAAA,8BAAA;AAEF,MAAMC,6BAA6B,SAASC,KAAK,CAAC;EAChDC,WAAWA,CACAR,cAAsB,EAC/BS,MAAc,EACd;IACA,KAAK,CAAC,iBAAiBT,cAAc,KAAKS,MAAM,EAAE,CAAC;IAAC,KAH3CT,cAAsB,GAAtBA,cAAsB;IAI/B,IAAI,CAACU,IAAI,GAAG,+BAA+B;EAC7C;AACF;AAACR,OAAA,CAAAI,6BAAA,GAAAA,6BAAA","ignoreList":[]}
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.normalizeCoreHealthObservation = exports.hasConfiguredNonLoincCoding = void 0;
7
+ var _convertGenericHealthData = require("./convert-generic-health-data.js");
8
+ const LOINC_SYSTEM = "http://loinc.org";
9
+ const UCUM_SYSTEM = "http://unitsofmeasure.org";
10
+ const hasConfiguredNonLoincCoding = ({
11
+ typeIdentifier,
12
+ typeIdentifierCodes,
13
+ typeIdentifierCodeSystems
14
+ }) => {
15
+ if (!typeIdentifier) {
16
+ return false;
17
+ }
18
+ const hasConfiguredCoding = typeIdentifierCodes !== undefined && Object.prototype.hasOwnProperty.call(typeIdentifierCodes, typeIdentifier) || typeIdentifierCodeSystems !== undefined && Object.prototype.hasOwnProperty.call(typeIdentifierCodeSystems, typeIdentifier);
19
+ return hasConfiguredCoding && typeIdentifierCodeSystems?.[typeIdentifier] !== LOINC_SYSTEM;
20
+ };
21
+ exports.hasConfiguredNonLoincCoding = hasConfiguredNonLoincCoding;
22
+ const normalizeCoreHealthObservation = (observation, coding) => {
23
+ const normalized = normalizeLoincQuantities(observation, coding.typeIdentifier);
24
+ const {
25
+ typeIdentifier
26
+ } = coding;
27
+ const code = typeIdentifier && coding.typeIdentifierCodes?.[typeIdentifier];
28
+ const system = typeIdentifier && coding.typeIdentifierCodeSystems?.[typeIdentifier];
29
+ if (!coding.applyCatalogCoding || !typeIdentifier || !code || system !== LOINC_SYSTEM || normalized.component?.length || normalized.hasMember?.length) {
30
+ return normalized;
31
+ }
32
+ const codingEntry = {
33
+ system: LOINC_SYSTEM,
34
+ code,
35
+ ...(coding.typeIdentifierCodeDisplays?.[typeIdentifier] ? {
36
+ display: coding.typeIdentifierCodeDisplays[typeIdentifier]
37
+ } : {})
38
+ };
39
+ return {
40
+ ...normalized,
41
+ code: {
42
+ ...(normalized.code ?? {}),
43
+ coding: [codingEntry, ...(normalized.code?.coding ?? []).filter(entry => entry.system !== LOINC_SYSTEM)]
44
+ }
45
+ };
46
+ };
47
+ exports.normalizeCoreHealthObservation = normalizeCoreHealthObservation;
48
+ const normalizeLoincQuantities = (value, typeIdentifier) => {
49
+ if (Array.isArray(value)) {
50
+ return value.map(entry => normalizeLoincQuantities(entry, typeIdentifier));
51
+ }
52
+ if (typeof value !== "object" || value === null) {
53
+ return value;
54
+ }
55
+ const record = value;
56
+ const children = Object.fromEntries(Object.entries(record).map(([key, child]) => [key, normalizeLoincQuantities(child, typeIdentifier)]));
57
+ if (record.system !== LOINC_SYSTEM || typeof record.value !== "number" || typeof record.unit !== "string") {
58
+ return children;
59
+ }
60
+ const quantity = {
61
+ ...children
62
+ };
63
+ delete quantity.system;
64
+ delete quantity.code;
65
+ const unitCode = (0, _convertGenericHealthData.getUcumCode)(record.unit, typeIdentifier);
66
+ return {
67
+ ...quantity,
68
+ ...(unitCode ? {
69
+ system: UCUM_SYSTEM,
70
+ code: unitCode
71
+ } : {})
72
+ };
73
+ };
74
+ //# sourceMappingURL=normalize-core-health-observation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_convertGenericHealthData","require","LOINC_SYSTEM","UCUM_SYSTEM","hasConfiguredNonLoincCoding","typeIdentifier","typeIdentifierCodes","typeIdentifierCodeSystems","hasConfiguredCoding","undefined","Object","prototype","hasOwnProperty","call","exports","normalizeCoreHealthObservation","observation","coding","normalized","normalizeLoincQuantities","code","system","applyCatalogCoding","component","length","hasMember","codingEntry","typeIdentifierCodeDisplays","display","filter","entry","value","Array","isArray","map","record","children","fromEntries","entries","key","child","unit","quantity","unitCode","getUcumCode"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/utils/normalize-core-health-observation.ts"],"mappings":";;;;;;AAEA,IAAAA,yBAAA,GAAAC,OAAA;AAEA,MAAMC,YAAY,GAAG,kBAAkB;AACvC,MAAMC,WAAW,GAAG,2BAA2B;AAS/C,MAAMC,2BAA2B,GAAGA,CAAC;EACnCC,cAAc;EACdC,mBAAmB;EACnBC;AACW,CAAC,KAAc;EAC1B,IAAI,CAACF,cAAc,EAAE;IACnB,OAAO,KAAK;EACd;EAEA,MAAMG,mBAAmB,GACtBF,mBAAmB,KAAKG,SAAS,IAChCC,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAClCP,mBAAmB,EACnBD,cACF,CAAC,IACFE,yBAAyB,KAAKE,SAAS,IACtCC,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAClCN,yBAAyB,EACzBF,cACF,CAAE;EAEN,OACEG,mBAAmB,IACnBD,yBAAyB,GAAGF,cAAc,CAAC,KAAKH,YAAY;AAEhE,CAAC;AAACY,OAAA,CAAAV,2BAAA,GAAAA,2BAAA;AAEF,MAAMW,8BAA8B,GAAGA,CACrCC,WAAwB,EACxBC,MAAsD,KACtC;EAChB,MAAMC,UAAU,GAAGC,wBAAwB,CACzCH,WAAW,EACXC,MAAM,CAACZ,cACT,CAAgB;EAEhB,MAAM;IAAEA;EAAe,CAAC,GAAGY,MAAM;EACjC,MAAMG,IAAI,GAAGf,cAAc,IAAIY,MAAM,CAACX,mBAAmB,GAAGD,cAAc,CAAC;EAE3E,MAAMgB,MAAM,GACVhB,cAAc,IA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MAAM,CAAC4B,OAAO,CAACH,MAAM,CAAC,CAACD,GAAG,CAAC,CAAC,CAACK,GAAG,EAAEC,KAAK,CAAC,KAAK,CAC3CD,GAAG,EACHpB,wBAAwB,CAACqB,KAAK,EAAEnC,cAAc,CAAC,CAChD,CACH,CAAC;EAED,IACE8B,MAAM,CAACd,MAAM,KAAKnB,YAAY,IAC9B,OAAOiC,MAAM,CAACJ,KAAK,KAAK,QAAQ,IAChC,OAAOI,MAAM,CAACM,IAAI,KAAK,QAAQ,EAC/B;IACA,OAAOL,QAAQ;EACjB;EAEA,MAAMM,QAAQ,GAAG;IAAE,GAAGN;EAAS,CAA4B;EAE3D,OAAOM,QAAQ,CAACrB,MAAM;EACtB,OAAOqB,QAAQ,CAACtB,IAAI;EACpB,MAAMuB,QAAQ,GAAG,IAAAC,qCAAW,EAACT,MAAM,CAACM,IAAI,EAAEpC,cAAc,CAAC;EAEzD,OAAO;IACL,GAAGqC,QAAQ;IACX,IAAIC,QAAQ,GAAG;MAAEtB,MAAM,EAAElB,WAAW;MAAEiB,IAAI,EAAEuB;IAAS,CAAC,GAAG,CAAC,CAAC;EAC7D,CAAC;AACH,CAAC","ignoreList":[]}
@@ -28,12 +28,18 @@ const FormField = exports.FormField = /*#__PURE__*/React.memo(({
28
28
  const {
29
29
  values,
30
30
  errors,
31
- touched,
31
+ initialValues,
32
+ submitCount,
32
33
  handleChange,
33
34
  handleBlur
34
35
  } = React.useContext(context);
36
+ const [hasChanged, setHasChanged] = React.useState(false);
35
37
  const value = React.useMemo(() => (0, _formik.getIn)(values, name), [values, name]);
36
- const error = React.useMemo(() => (0, _formik.getIn)(touched, name) && (0, _formik.getIn)(errors, name), [touched, errors, name]);
38
+ const initialValue = (0, _formik.getIn)(initialValues, name);
39
+ React.useEffect(() => {
40
+ setHasChanged(false);
41
+ }, [initialValue, name]);
42
+ const error = React.useMemo(() => submitCount > 0 || hasChanged ? (0, _formik.getIn)(errors, name) : undefined, [errors, hasChanged, name, submitCount]);
37
43
  const onBlur = e => {
38
44
  handleBlur(name)(e);
39
45
  props.onBlur?.(e);
@@ -54,7 +60,10 @@ const FormField = exports.FormField = /*#__PURE__*/React.memo(({
54
60
  ...props.theme
55
61
  },
56
62
  error: !!error,
57
- onChangeText: onChangeText ?? handleChange(name)
63
+ onChangeText: nextValue => {
64
+ setHasChanged(true);
65
+ (onChangeText ?? handleChange(name))(nextValue);
66
+ }
58
67
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
59
68
  ,
60
69
  onBlur: onBlur,
@@ -1 +1 @@
1
- {"version":3,"names":["_formik","require","React","_interopRequireWildcard","_reactI18next","_reactNative","_reactNativePaper","_index","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FormField","exports","memo","name","context","containerStyle","inputRef","testID","onChangeText","props","useTranslation","theme","useAppTheme","values","errors","touched","handleChange","handleBlur","useContext","value","useMemo","getIn","error","onBlur","jsxs","View","style","gap","spacing","children","jsx","TextInput","autoCapitalize","ref","mode","roundness","borderRadius","onFocus","undefined","HelperText","type"],"sourceRoot":"../../../../../src","sources":["modules/helpers/form-items/form-field.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAMA,IAAAK,iBAAA,GAAAL,OAAA;AAEA,IAAAM,MAAA,GAAAN,OAAA;AAA0C,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAE,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,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,gBACJ,IAAA1C,WAAA,CAAAkD,GAAA,EAACpD,iBAAA,CAAA6D,UAAU;MACTC,IAAI,EAAC,OAAO;MACZjC,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,QAAQ,GAAG+B,SAAU;MAAAT,QAAA,EAE9C/C,CAAC,CAACwC,KAAK;IAAC,CACC,CAAC,GACX,IAAI;EAAA,CACJ,CAAC;AAEX,CACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_formik","require","React","_interopRequireWildcard","_reactI18next","_reactNative","_reactNativePaper","_index","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FormField","exports","memo","name","context","containerStyle","inputRef","testID","onChangeText","props","useTranslation","theme","useAppTheme","values","errors","initialValues","submitCount","handleChange","handleBlur","useContext","hasChanged","setHasChanged","useState","value","useMemo","getIn","initialValue","useEffect","error","undefined","onBlur","jsxs","View","style","gap","spacing","children","jsx","TextInput","autoCapitalize","ref","mode","roundness","borderRadius","nextValue","onFocus","HelperText","type"],"sourceRoot":"../../../../../src","sources":["modules/helpers/form-items/form-field.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAMA,IAAAK,iBAAA,GAAAL,OAAA;AAEA,IAAAM,MAAA,GAAAN,OAAA;AAA0C,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAE,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA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;QAChC,GAAGlC,KAAK,CAACE;MACX,CAAE;MACFiB,KAAK,EAAE,CAAC,CAACA,KAAM;MACfpB,YAAY,EAAGoC,SAAS,IAAK;QAC3BvB,aAAa,CAAC,IAAI,CAAC;QACnB,CAACb,YAAY,IAAIS,YAAY,CAACd,IAAI,CAAC,EAAEyC,SAAS,CAAC;MACjD;MACA;MAAA;MACAd,MAAM,EAAEA,MAAc;MACtBe,OAAO,EAAEpC,KAAK,CAACoC,OAAQ;MACvBtC,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,QAAQ,GAAGsB;IAAU,CAChD,CAAC,EACDD,KAAK,gBACJ,IAAAhD,WAAA,CAAAyD,GAAA,EAAC3D,iBAAA,CAAAoE,UAAU;MACTC,IAAI,EAAC,OAAO;MACZxC,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,QAAQ,GAAGsB,SAAU;MAAAO,QAAA,EAE9CtD,CAAC,CAAC8C,KAAK;IAAC,CACC,CAAC,GACX,IAAI;EAAA,CACJ,CAAC;AAEX,CACF,CAAC","ignoreList":[]}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ValueWheelPicker = void 0;
7
+ var React = _interopRequireWildcard(require("react"));
8
+ var _wheelPicker = require("./wheel-picker.js");
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
11
+ const getSelectedIndex = (options, value, defaultIndex, getOptionKey) => {
12
+ const valueIndex = value === null || value === undefined ? -1 : options.findIndex(option => getOptionKey ? getOptionKey(option.value) === getOptionKey(value) : Object.is(option.value, value));
13
+ if (valueIndex !== -1) {
14
+ return valueIndex;
15
+ }
16
+ return options.length ? Math.max(0, Math.min(defaultIndex, options.length - 1)) : 0;
17
+ };
18
+ const ValueWheelPicker = ({
19
+ options,
20
+ value,
21
+ defaultIndex = 0,
22
+ getOptionKey,
23
+ onChange,
24
+ ...wheelPickerProps
25
+ }) => {
26
+ const selectedIndex = React.useMemo(() => getSelectedIndex(options, value, defaultIndex, getOptionKey), [options, value, defaultIndex, getOptionKey]);
27
+ const handleChange = React.useCallback(index => {
28
+ const selectedOption = options[index];
29
+ if (selectedOption) {
30
+ onChange(selectedOption.value);
31
+ }
32
+ }, [onChange, options]);
33
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_wheelPicker.WheelPicker, {
34
+ ...wheelPickerProps,
35
+ selectedIndex: selectedIndex,
36
+ options: options.map(option => option.label),
37
+ onChange: handleChange
38
+ });
39
+ };
40
+ exports.ValueWheelPicker = ValueWheelPicker;
41
+ //# sourceMappingURL=value-wheel-picker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","_interopRequireWildcard","require","_wheelPicker","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","getSelectedIndex","options","value","defaultIndex","getOptionKey","valueIndex","undefined","findIndex","option","is","length","Math","max","min","ValueWheelPicker","onChange","wheelPickerProps","selectedIndex","useMemo","handleChange","useCallback","index","selectedOption","jsx","WheelPicker","map","label","exports"],"sourceRoot":"../../../../../src","sources":["modules/picker-sheet/components/value-wheel-picker.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAAoE,IAAAE,WAAA,GAAAF,OA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AA,gBAAA","ignoreList":[]}
@@ -27,7 +27,12 @@ const WheelPicker = exports.WheelPicker = /*#__PURE__*/React.memo(({
27
27
  itemHeight = 40,
28
28
  visibleItems = 5,
29
29
  decelerationRate = "fast",
30
- containerProps
30
+ containerProps,
31
+ accessibilityLabel,
32
+ accessibilityHint,
33
+ nestedScrollEnabled = true,
34
+ accessibilityIncrementLabel,
35
+ accessibilityDecrementLabel
31
36
  }) => {
32
37
  const theme = (0, _index.useAppTheme)();
33
38
 
@@ -49,7 +54,8 @@ const WheelPicker = exports.WheelPicker = /*#__PURE__*/React.memo(({
49
54
  }, [options, paddingItems]);
50
55
 
51
56
  // Calculate container height
52
- const containerHeight = itemHeight * Math.min(visibleItems, paddedOptions.length);
57
+ const containerHeight = itemCount ? itemHeight * Math.min(visibleItems, paddedOptions.length) : 0;
58
+ const safeSelectedIndex = Math.max(0, Math.min(selectedIndex, Math.max(itemCount - 1, 0)));
53
59
 
54
60
  // Calculate the offset to center the selected item
55
61
  const centerOffset = Math.floor(visibleItems / 2) * itemHeight;
@@ -63,22 +69,24 @@ const WheelPicker = exports.WheelPicker = /*#__PURE__*/React.memo(({
63
69
  isScrolling.value = true;
64
70
  },
65
71
  onMomentumEnd: event => {
72
+ const userInitiatedScroll = isScrolling.value;
66
73
  isScrolling.value = false;
74
+ if (!itemCount) {
75
+ return;
76
+ }
67
77
  const offsetY = event.contentOffset.y;
68
- const rawIndex = Math.round(offsetY / itemHeight);
69
-
70
- // Since we're using initialScrollIndex which already accounts for padding,
71
- // we need to keep the same logic here
78
+ const rawIndex = Math.round(offsetY / itemHeight) - paddingItems;
72
79
  const clampedIndex = Math.max(0, Math.min(rawIndex, itemCount - 1));
73
80
 
74
81
  // Ensure perfect snap position first
75
- const targetY = rawIndex * itemHeight;
82
+ const targetY = (clampedIndex + paddingItems) * itemHeight;
76
83
  if (targetY !== offsetY) {
77
84
  (0, _reactNativeReanimated.scrollTo)(flatListRef, 0, targetY, true);
78
85
  }
79
86
 
80
- // Call onChange after ensuring the position is correct
81
- if (clampedIndex !== selectedIndex) {
87
+ // A user can deliberately confirm the value currently displayed as a
88
+ // default. Programmatic scrolls do not count as user selections.
89
+ if (userInitiatedScroll) {
82
90
  (0, _reactNativeReanimated.runOnJS)(onChange)(clampedIndex);
83
91
  }
84
92
  }
@@ -95,7 +103,7 @@ const WheelPicker = exports.WheelPicker = /*#__PURE__*/React.memo(({
95
103
  React.useEffect(() => {
96
104
  if (!mountedRef.current) {
97
105
  mountedRef.current = true;
98
- const initialY = (selectedIndex + paddingItems) * itemHeight;
106
+ const initialY = (safeSelectedIndex + paddingItems) * itemHeight;
99
107
  requestAnimationFrame(() => {
100
108
  if (flatListRef.current) {
101
109
  (0, _reactNativeReanimated.scrollTo)(flatListRef, 0, initialY, false);
@@ -103,14 +111,14 @@ const WheelPicker = exports.WheelPicker = /*#__PURE__*/React.memo(({
103
111
  }
104
112
  });
105
113
  }
106
- }, [flatListRef, selectedIndex, paddingItems, itemHeight, scrollPosition]);
114
+ }, [flatListRef, safeSelectedIndex, paddingItems, itemHeight, scrollPosition]);
107
115
 
108
116
  // Scroll to selected index when it changes
109
117
  React.useEffect(() => {
110
118
  if (!isInitialized.current) {
111
119
  return;
112
120
  }
113
- if (selectedIndex < 0 || selectedIndex >= options.length) {
121
+ if (!itemCount || selectedIndex < 0 || selectedIndex >= itemCount) {
114
122
  // Log warning instead of throwing error for better UX
115
123
  // eslint-disable-next-line no-console
116
124
  console.warn(`Selected index ${selectedIndex} is out of bounds [0, ${options.length - 1}]`);
@@ -120,7 +128,7 @@ const WheelPicker = exports.WheelPicker = /*#__PURE__*/React.memo(({
120
128
  const targetY = (selectedIndex + paddingItems) * itemHeight;
121
129
  (0, _reactNativeReanimated.scrollTo)(flatListRef, 0, targetY, true);
122
130
  }
123
- }, [flatListRef, selectedIndex, paddingItems, itemHeight, options.length, isScrolling]);
131
+ }, [flatListRef, selectedIndex, paddingItems, itemHeight, itemCount, options.length, isScrolling]);
124
132
 
125
133
  // Render item
126
134
  const renderItem = React.useCallback(({
@@ -137,10 +145,42 @@ const WheelPicker = exports.WheelPicker = /*#__PURE__*/React.memo(({
137
145
  }, `${index}-${option}`), [itemHeight, itemStyle, itemTextStyle, scrollPosition, visibleItems]);
138
146
  const keyExtractor = React.useCallback((item, index) => `item-${item}-${index}`, []);
139
147
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
148
+ ...containerProps,
140
149
  style: [styles.container, {
141
150
  height: containerHeight
142
151
  }, containerStyle],
143
- ...containerProps,
152
+ accessible: itemCount > 0,
153
+ accessibilityRole: "adjustable",
154
+ accessibilityLabel: accessibilityLabel,
155
+ accessibilityHint: accessibilityHint,
156
+ accessibilityValue: itemCount ? {
157
+ min: 1,
158
+ max: itemCount,
159
+ now: safeSelectedIndex + 1,
160
+ text: options[safeSelectedIndex]
161
+ } : undefined,
162
+ accessibilityActions: [{
163
+ name: "increment",
164
+ label: accessibilityIncrementLabel
165
+ }, {
166
+ name: "decrement",
167
+ label: accessibilityDecrementLabel
168
+ }],
169
+ onAccessibilityAction: ({
170
+ nativeEvent
171
+ }) => {
172
+ if (nativeEvent.actionName === "increment") {
173
+ const nextIndex = Math.min(safeSelectedIndex + 1, itemCount - 1);
174
+ if (nextIndex !== safeSelectedIndex) {
175
+ onChange(nextIndex);
176
+ }
177
+ } else if (nativeEvent.actionName === "decrement") {
178
+ const previousIndex = Math.max(safeSelectedIndex - 1, 0);
179
+ if (previousIndex !== safeSelectedIndex) {
180
+ onChange(previousIndex);
181
+ }
182
+ }
183
+ },
144
184
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
145
185
  style: [styles.selectedIndicator, {
146
186
  backgroundColor: theme.colors.surfaceVariant,
@@ -165,7 +205,8 @@ const WheelPicker = exports.WheelPicker = /*#__PURE__*/React.memo(({
165
205
  renderItem: renderItem,
166
206
  keyExtractor: keyExtractor,
167
207
  getItemLayout: getItemLayout,
168
- initialScrollIndex: selectedIndex,
208
+ initialScrollIndex: safeSelectedIndex + paddingItems,
209
+ nestedScrollEnabled: nestedScrollEnabled,
169
210
  initialNumToRender: visibleItems * 2,
170
211
  maxToRenderPerBatch: visibleItems * 2,
171
212
  windowSize: 7,
@@ -1 +1 @@
1
- {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativeGestureHandler","_reactNativeReanimated","_index","_wheelPickerItem","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","AnimatedFlatList","Animated","createAnimatedComponent","FlatList","AnimatedScrollView","ScrollView","WheelPicker","exports","memo","selectedIndex","options","onChange","selectedIndicatorStyle","containerStyle","itemStyle","itemTextStyle","itemHeight","visibleItems","decelerationRate","containerProps","theme","useAppTheme","flatListRef","useAnimatedRef","isInitialized","useRef","mountedRef","scrollPosition","useSharedValue","itemCount","length","isScrolling","paddingItems","Math","floor","paddedOptions","useMemo","padding","Array","fill","containerHeight","min","centerOffset","handleScroll","useAnimatedScrollHandler","onScroll","event","value","contentOffset","y","onBeginDrag","onMomentumEnd","offsetY","rawIndex","round","clampedIndex","max","targetY","scrollTo","runOnJS","getItemLayout","useCallback","_","index","offset","useEffect","current","initialY","requestAnimationFrame","console","warn","renderItem","item","option","jsx","WheelPickerItem","height","position","style","textStyle","keyExtractor","jsxs","View","styles","container","children","selectedIndicator","backgroundColor","colors","surfaceVariant","borderRadius","top","transform","ref","scrollView","contentContainerStyle","contentContainer","showsVerticalScrollIndicator","scrollEventThrottle","snapToInterval","snapToAlignment","overScrollMode","removeClippedSubviews","data","initialScrollIndex","initialNumToRender","maxToRenderPerBatch","windowSize","updateCellsBatchingPeriod","maintainVisibleContentPosition","minIndexForVisible","autoscrollToTopThreshold","renderScrollComponent","props","StyleSheet","create","overflow","paddingVertical","width","zIndex","flex"],"sourceRoot":"../../../../../src","sources":["modules/picker-sheet/components/wheel-picker.tsx"],"mappings":";;;;;;AACA,IAAAA,KA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C","ignoreList":[]}
1
+ {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativeGestureHandler","_reactNativeReanimated","_index","_wheelPickerItem","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","AnimatedFlatList","Animated","createAnimatedComponent","FlatList","AnimatedScrollView","ScrollView","WheelPicker","exports","memo","selectedIndex","options","onChange","selectedIndicatorStyle","containerStyle","itemStyle","itemTextStyle","itemHeight","visibleItems","decelerationRate","containerProps","accessibilityLabel","accessibilityHint","nestedScrollEnabled","accessibilityIncrementLabel","accessibilityDecrementLabel","theme","useAppTheme","flatListRef","useAnimatedRef","isInitialized","useRef","mountedRef","scrollPosition","useSharedValue","itemCount","length","isScrolling","paddingItems","Math","floor","paddedOptions","useMemo","padding","Array","fill","containerHeight","min","safeSelectedIndex","max","centerOffset","handleScroll","useAnimatedScrollHandler","onScroll","event","value","contentOffset","y","onBeginDrag","onMomentumEnd","userInitiatedScroll","offsetY","rawIndex","round","clampedIndex","targetY","scrollTo","runOnJS","getItemLayout","useCallback","_","index","offset","useEffect","current","initialY","requestAnimationFrame","console","warn","renderItem","item","option","jsx","WheelPickerItem","height","position","style","textStyle","keyExtractor","jsxs","View","styles","container","accessible","accessibilityRole","accessibilityValue","now","text","undefined","accessibilityActions","name","label","onAccessibilityAction","nativeEvent","actionName","nextIndex","previousIndex","children","selectedIndicator","backgroundColor","colors","surfaceVariant","borderRadius","top","transform","ref","scrollView","contentContainerStyle","contentContainer","showsVerticalScrollIndicator","scrollEventThrottle","snapToInterval","snapToAlignment","overScrollMode","removeClippedSubviews","data","initialScrollIndex","initialNumToRender","maxToRenderPerBatch","windowSize","updateCellsBatchingPeriod","maintainVisibleContentPosition","minIndexForVisible","autoscrollToTopThreshold","renderScrollComponent","props","StyleSheet","create","overflow","paddingVertical","width","zIndex","flex"],"sourceRoot":"../../../../../src","sources":["modules/picker-sheet/components/wheel-pic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uBAAU,CAACC,MAAM,CAAC;EAC/B7C,SAAS,EAAE;IACTP,QAAQ,EAAE,UAAU;IACpBqD,QAAQ,EAAE;EACZ,CAAC;EACDpB,gBAAgB,EAAE;IAChBqB,eAAe,EAAE;EACnB,CAAC;EACD/B,iBAAiB,EAAE;IACjBvB,QAAQ,EAAE,UAAU;IACpBuD,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,CAAC;EACX,CAAC;EACDzB,UAAU,EAAE;IACV0B,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
@@ -14,6 +14,17 @@ Object.keys(_wheelPicker).forEach(function (key) {
14
14
  }
15
15
  });
16
16
  });
17
+ var _valueWheelPicker = require("./components/value-wheel-picker.js");
18
+ Object.keys(_valueWheelPicker).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _valueWheelPicker[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _valueWheelPicker[key];
25
+ }
26
+ });
27
+ });
17
28
  var _pickerSheet = require("./components/picker-sheet.js");
18
29
  Object.keys(_pickerSheet).forEach(function (key) {
19
30
  if (key === "default" || key === "__esModule") return;
@@ -1 +1 @@
1
- {"version":3,"names":["_wheelPicker","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_pickerSheet"],"sourceRoot":"../../../../src","sources":["modules/picker-sheet/index.ts"],"mappings":";;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,YAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,YAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,YAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AAEA,IAAAK,YAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,YAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,YAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,YAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["_wheelPicker","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_valueWheelPicker","_pickerSheet"],"sourceRoot":"../../../../src","sources":["modules/picker-sheet/index.ts"],"mappings":";;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,YAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,YAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,YAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,iBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,iBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,iBAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,iBAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AAEA,IAAAM,YAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,YAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,YAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,YAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -64,22 +64,72 @@ const MyComponent = () => {
64
64
 
65
65
  ## Props
66
66
 
67
- | Prop | Type | Description |
68
- | ------------- | ---------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
69
- | questionnaire | Questionnaire | The FHIR Questionnaire resource to render |
70
- | onSubmit | (values: QuestionnaireFormValues, formikHelpers?: FormikHelpers<QuestionnaireFormValues>) => Promise<void> | Optional callback for form submission |
71
- | onSuccess | (response: QuestionnaireResponse) => void | Optional callback when form is submitted successfully |
72
- | onError | (error: Error) => void | Optional callback when form submission fails |
73
- | initialValues | Partial<QuestionnaireFormValues> | Optional initial values for the form |
74
- | children | ReactNode | Child components for custom layout |
75
- | style | ViewStyle | Optional styles for the container |
76
- | testID | string | Test ID for testing |
67
+ | Prop | Type | Description |
68
+ | ------------------------------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
69
+ | questionnaire | Questionnaire | The FHIR Questionnaire resource to render |
70
+ | onSubmit | (values: QuestionnaireFormValues, formikHelpers?: FormikHelpers<QuestionnaireFormValues>) => Promise<void> | Optional callback for form submission |
71
+ | onSuccess | (response: QuestionnaireResponse) => void | Optional callback when form is submitted successfully |
72
+ | onError | (error: Error) => void | Optional callback when form submission fails |
73
+ | initialValues | Partial<QuestionnaireFormValues> | Optional initial values for the form |
74
+ | renderItem | QuestionnaireItemRenderer | Optional host control for any non-group FHIR item |
75
+ | resolveQuestionnaireConstraint | QuestionnaireConstraintResolver | Resolves SDC calculated min/max values with the host's expression context |
76
+ | resolveQuestionnaireUnitOptions | QuestionnaireUnitOptionsResolver | Supplies a cached expansion for an SDC `unitValueSet` canonical |
77
+ | children | ReactNode | Child components for custom layout |
78
+ | style | ViewStyle | Optional styles for the container |
79
+ | testID | string | Test ID for testing |
77
80
 
78
81
  Choose either the host-owned `onSubmit(values, formikHelpers?)` mode or the SDK-managed
79
82
  `onSuccess(response)` mode. `onError(error)` is optional in the SDK-managed mode. The
80
- SDK-managed path requires the active `@ovok/core` client/profile context, creates a
81
- completed `QuestionnaireResponse`, adds the patient subject and a stable identifier,
82
- and persists it with `createResourceIfNoneExist`.
83
+ SDK-managed path requires the active `@ovok/core` client/profile context, adds the
84
+ patient subject and a stable identifier, and persists the `QuestionnaireResponse` with
85
+ `createResourceIfNoneExist`.
86
+
87
+ When the Questionnaire or one of its items carries the standard SDC
88
+ `sdc-questionnaire-observationExtract` extension set to `true`, SDK-managed submission
89
+ also calls OVOK's `QuestionnaireResponse/$extract` operation. The Questionnaire's
90
+ FHIR mappings define the extracted Observations; the SDK does not infer codes or
91
+ profile mappings from labels. It saves the response as `in-progress`, then submits the
92
+ extracted Observations and changes the response to `completed` in one FHIR transaction.
93
+ The Medplum project must have the `transaction-bundles` feature enabled. If it is not
94
+ enabled, the SDK fails before creating the response rather than leaving partial data.
95
+ The SDK retains the submission identifier for a mapped form instance and adds a
96
+ conditional identifier to extracted Observations, so retrying the same submission does
97
+ not create duplicates. A response is reported as successful only after the transaction
98
+ succeeds and the completed response can be read back. Unmapped SDK-managed forms keep
99
+ their existing behavior and can create a new response on a later submit.
100
+
101
+ This orchestration applies only to SDK-managed `onSuccess(response)` submission.
102
+ When `onSubmit` is provided, the host owns persistence and extraction. The extraction
103
+ operation currently persists mapped Observations; it does not imply arbitrary Patient
104
+ demographic fields are updated. Those mappings and any other resource writes must be
105
+ supported by the Questionnaire and backend operation.
106
+
107
+ Custom `renderItem` controls receive a `constraints` object with `minValue`,
108
+ `maxValue`, `minQuantity`, `maxQuantity`, `step`, `minLength`, `maxLength`,
109
+ `unitOptions`, `unitValueSet`, and `unitOpen`. This lets an app use its own
110
+ controls and terminology cache without coupling the SDK to an expression or
111
+ terminology service. Implement `resolveQuestionnaireConstraint` for calculated
112
+ SDC bounds and `resolveQuestionnaireUnitOptions` for cached ValueSet expansions;
113
+ both callbacks are synchronous. If a calculated bound or unit ValueSet is not
114
+ resolved, a non-empty answer using it is not accepted as valid. Quantity bounds
115
+ are compared only when the answer and bound use the same UCUM code; convert
116
+ units in the host control before returning the answer when conversions are
117
+ needed.
118
+
119
+ Static date/dateTime bounds are passed to the date picker, numeric bounds and
120
+ steps are checked on navigation and submission, and simple-type length limits
121
+ are checked before submission. Bounded integer items and decimal items with an
122
+ explicit step use a touch wheel when the generated range contains at most 1,000
123
+ values; unconstrained, invalid, or larger ranges retain text entry. A displayed
124
+ wheel default is not saved until the person changes the selection. The typed
125
+ `ValueWheelPicker<T>` in `@ovok/native/picker-sheet` can render `unitOptions`;
126
+ use its `value` prop for the committed selection and `defaultIndex` only for a
127
+ display-only initial position.
128
+
129
+ Host-rendered quantity and duration controls can combine `minQuantity`,
130
+ `maxQuantity`, `unitOptions`, and the host-resolved `unitValueSet` in one or
131
+ more typed wheels. This keeps UCUM conversion and terminology lookup in the
132
+ host app while reusing the same generic picker in different forms and styles.
83
133
 
84
134
  ## Extended Properties
85
135
 
@@ -168,6 +218,15 @@ The form supports various field types through specialized components:
168
218
  - **QuestionnaireDateField**: Date picker
169
219
  - **QuestionnaireItemRenderer**: Dynamic field type renderer
170
220
 
221
+ The optional `renderItem` callback can provide host-designed controls for item
222
+ types without a built-in control, including `url`, `open-choice`, `quantity`,
223
+ `attachment`, and `reference`. Its `onChange` accepts either a primitive value
224
+ for built-in types or a typed FHIR answer value such as
225
+ `{ valueQuantity: { value: 2, unit: "mg" } }`. This preserves the corresponding
226
+ FHIR `value[x]` field in SDK-created responses and makes required custom items
227
+ participate in validation. Without a custom renderer, unsupported items show a
228
+ fallback and do not prevent continuing through the form.
229
+
171
230
  ## Context and Hooks
172
231
 
173
232
  The form provides a context and hooks for advanced customization:
@@ -253,16 +312,16 @@ const MyComponent = () => {
253
312
 
254
313
  #### QuestionnaireForm Props
255
314
 
256
- | Prop | Type | Description |
257
- | ------------- | ----------------------------------------- | ----------------------------------- |
258
- | questionnaire | Questionnaire | The questionnaire object to render |
259
- | onSubmit | (values: QuestionnaireFormValues, formikHelpers?) => Promise<void> | Host-owned submit callback |
260
- | onSuccess | (response: QuestionnaireResponse) => void | Called after SDK-managed persistence |
261
- | onError | (error: Error) => void | Called when SDK-managed persistence fails |
262
- | initialValues | Partial<QuestionnaireFormValues> | Initial values for the form |
263
- | paged | boolean | Whether to show one item at a time; defaults to true |
264
- | style | StyleProp<ViewStyle> | Style for the container |
265
- | testID | string | Test ID for the component |
315
+ | Prop | Type | Description |
316
+ | ------------- | ------------------------------------------------------------------ | ---------------------------------------------------- |
317
+ | questionnaire | Questionnaire | The questionnaire object to render |
318
+ | onSubmit | (values: QuestionnaireFormValues, formikHelpers?) => Promise<void> | Host-owned submit callback |
319
+ | onSuccess | (response: QuestionnaireResponse) => void | Called after SDK-managed persistence |
320
+ | onError | (error: Error) => void | Called when SDK-managed persistence fails |
321
+ | initialValues | Partial<QuestionnaireFormValues> | Initial values for the form |
322
+ | paged | boolean | Whether to show one item at a time; defaults to true |
323
+ | style | StyleProp<ViewStyle> | Style for the container |
324
+ | testID | string | Test ID for the component |
266
325
 
267
326
  #### QuestionnaireForm.Header Props
268
327