@f1studio/form-spec 5.0.0-alpha.107 → 5.0.0-alpha.109

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 (493) hide show
  1. package/FormSpec.FS/Components/HelloComponent.d.ts.map +1 -0
  2. package/FormSpec.FS/Designer.d.ts.map +1 -0
  3. package/FormSpec.FS/FormSpec.d.ts.map +1 -0
  4. package/FormSpec.FS/FormSpecHelpers.d.ts.map +1 -0
  5. package/FormSpec.FS/FormSpecValues.d.ts.map +1 -0
  6. package/FormSpec.FS/Helpers.d.ts.map +1 -0
  7. package/FormSpec.FS/Interfaces.d.ts.map +1 -0
  8. package/FormSpec.FS/Interop/FormSpec.Api.Helpers.d.ts.map +1 -0
  9. package/FormSpec.FS/Interop/FormSpec.Api.Option.d.ts.map +1 -0
  10. package/FormSpec.FS/Interop/FormSpec.Values.Api.Option.d.ts.map +1 -0
  11. package/FormSpec.FS/Logging/LogTypes.d.ts.map +1 -0
  12. package/FormSpec.FS/Migrator.d.ts.map +1 -0
  13. package/FormSpec.FS/PathwayDataExtractor.d.ts.map +1 -0
  14. package/FormSpec.FS/PathwayExecutor.d.ts.map +1 -0
  15. package/FormSpec.FS/PathwayValidator.d.ts.map +1 -0
  16. package/FormSpec.FS/PluginInterface.d.ts.map +1 -0
  17. package/FormSpec.FS/Prelude.d.ts.map +1 -0
  18. package/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.d.ts.map +1 -0
  19. package/FormSpec.FS/Renderers/MermaidRenderer.d.ts.map +1 -0
  20. package/FormSpec.FS/Renderers/PathwayRenderers.d.ts.map +1 -0
  21. package/FormSpec.TS/FormSpec.FS/Components/HelloComponent.js.map +1 -0
  22. package/FormSpec.TS/FormSpec.FS/Components/HelloComponent.ts.map +1 -0
  23. package/FormSpec.TS/FormSpec.FS/Designer.js.map +1 -0
  24. package/FormSpec.TS/FormSpec.FS/Designer.ts.map +1 -0
  25. package/FormSpec.TS/{FormSpec.js.map → FormSpec.FS/FormSpec.js.map} +1 -1
  26. package/FormSpec.TS/{FormSpec.ts.map → FormSpec.FS/FormSpec.ts.map} +1 -1
  27. package/FormSpec.TS/{FormSpecHelpers.js → FormSpec.FS/FormSpecHelpers.js} +1 -1
  28. package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.js.map +1 -0
  29. package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.ts.map +1 -0
  30. package/FormSpec.TS/FormSpec.FS/FormSpecValues.js.map +1 -0
  31. package/FormSpec.TS/FormSpec.FS/FormSpecValues.ts.map +1 -0
  32. package/FormSpec.TS/FormSpec.FS/Helpers.js.map +1 -0
  33. package/FormSpec.TS/FormSpec.FS/Helpers.ts.map +1 -0
  34. package/FormSpec.TS/FormSpec.FS/Interfaces.js.map +1 -0
  35. package/FormSpec.TS/FormSpec.FS/Interfaces.ts.map +1 -0
  36. package/FormSpec.TS/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Helpers.js +2 -2
  37. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.js.map +1 -0
  38. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.ts.map +1 -0
  39. package/FormSpec.TS/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Option.js +2 -2
  40. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.js.map +1 -0
  41. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.ts.map +1 -0
  42. package/FormSpec.TS/{Interop → FormSpec.FS/Interop}/FormSpec.Values.Api.Option.js +2 -2
  43. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.js.map +1 -0
  44. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.ts.map +1 -0
  45. package/FormSpec.TS/FormSpec.FS/Logging/LogTypes.js.map +1 -0
  46. package/FormSpec.TS/FormSpec.FS/Logging/LogTypes.ts.map +1 -0
  47. package/FormSpec.TS/{Migrator.js → FormSpec.FS/Migrator.js} +1 -1
  48. package/FormSpec.TS/FormSpec.FS/Migrator.js.map +1 -0
  49. package/FormSpec.TS/FormSpec.FS/Migrator.ts.map +1 -0
  50. package/FormSpec.TS/FormSpec.FS/PathwayDataExtractor.js.map +1 -0
  51. package/FormSpec.TS/FormSpec.FS/PathwayDataExtractor.ts.map +1 -0
  52. package/FormSpec.TS/{PathwayExecutor.js → FormSpec.FS/PathwayExecutor.js} +1 -1
  53. package/FormSpec.TS/FormSpec.FS/PathwayExecutor.js.map +1 -0
  54. package/FormSpec.TS/FormSpec.FS/PathwayExecutor.ts.map +1 -0
  55. package/FormSpec.TS/FormSpec.FS/PathwayValidator.js.map +1 -0
  56. package/FormSpec.TS/FormSpec.FS/PathwayValidator.ts.map +1 -0
  57. package/FormSpec.TS/FormSpec.FS/PluginInterface.js.map +1 -0
  58. package/FormSpec.TS/FormSpec.FS/PluginInterface.ts.map +1 -0
  59. package/FormSpec.TS/FormSpec.FS/Prelude.js.map +1 -0
  60. package/FormSpec.TS/FormSpec.FS/Prelude.ts.map +1 -0
  61. package/FormSpec.TS/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.js.map +1 -0
  62. package/FormSpec.TS/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.ts.map +1 -0
  63. package/FormSpec.TS/FormSpec.FS/Renderers/MermaidRenderer.js.map +1 -0
  64. package/FormSpec.TS/FormSpec.FS/Renderers/MermaidRenderer.ts.map +1 -0
  65. package/FormSpec.TS/FormSpec.FS/Renderers/PathwayRenderers.js.map +1 -0
  66. package/FormSpec.TS/FormSpec.FS/Renderers/PathwayRenderers.ts.map +1 -0
  67. package/FormSpec.TS/PathwayExecutor.withPlugins.js +28 -0
  68. package/FormSpec.TS/PathwayExecutor.withPlugins.js.map +1 -0
  69. package/FormSpec.TS/PluginRegistration.js +18 -0
  70. package/FormSpec.TS/PluginRegistration.js.map +1 -0
  71. package/FormSpec.TS/PluginRegistration.ts.map +1 -0
  72. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs +47 -0
  73. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs.js +93 -0
  74. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs.js.map +1 -0
  75. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs.ts.map +1 -0
  76. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs +49 -0
  77. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs.js +127 -0
  78. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs.js.map +1 -0
  79. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs.ts.map +1 -0
  80. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs +52 -0
  81. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs.js +105 -0
  82. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs.js.map +1 -0
  83. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs.ts.map +1 -0
  84. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs +54 -0
  85. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs.js +105 -0
  86. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs.js.map +1 -0
  87. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs.ts.map +1 -0
  88. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs +48 -0
  89. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs.js +83 -0
  90. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs.js.map +1 -0
  91. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs.ts.map +1 -0
  92. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Fable.Form.Simple.Bulma.fableproj +53 -0
  93. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs +132 -0
  94. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs.js +276 -0
  95. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs.js.map +1 -0
  96. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs.ts.map +1 -0
  97. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs +537 -0
  98. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs.js +263 -0
  99. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs.js.map +1 -0
  100. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs.ts.map +1 -0
  101. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs +361 -0
  102. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs.js +576 -0
  103. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs.js.map +1 -0
  104. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs.ts.map +1 -0
  105. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs +52 -0
  106. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs.js +73 -0
  107. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs.js.map +1 -0
  108. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs.ts.map +1 -0
  109. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs +246 -0
  110. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.js +226 -0
  111. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.js.map +1 -0
  112. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.ts.map +1 -0
  113. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs +52 -0
  114. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs.js +116 -0
  115. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs.js.map +1 -0
  116. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs.ts.map +1 -0
  117. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs +56 -0
  118. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs.js +95 -0
  119. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs.js.map +1 -0
  120. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs.ts.map +1 -0
  121. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs +46 -0
  122. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs.js +77 -0
  123. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs.js.map +1 -0
  124. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs.ts.map +1 -0
  125. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs +51 -0
  126. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs.js +103 -0
  127. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs.js.map +1 -0
  128. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs.ts.map +1 -0
  129. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs +49 -0
  130. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs.js +87 -0
  131. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs.js.map +1 -0
  132. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs.ts.map +1 -0
  133. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs +60 -0
  134. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs.js +69 -0
  135. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs.js.map +1 -0
  136. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs.ts.map +1 -0
  137. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs +79 -0
  138. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs.js +134 -0
  139. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs.js.map +1 -0
  140. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs.ts.map +1 -0
  141. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs +44 -0
  142. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs.js +77 -0
  143. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs.js.map +1 -0
  144. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs.ts.map +1 -0
  145. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs +49 -0
  146. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs.js +87 -0
  147. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs.js.map +1 -0
  148. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs.ts.map +1 -0
  149. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs +59 -0
  150. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs.js +87 -0
  151. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs.js.map +1 -0
  152. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs.ts.map +1 -0
  153. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs +44 -0
  154. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs.js +77 -0
  155. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs.js.map +1 -0
  156. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs.ts.map +1 -0
  157. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs +143 -0
  158. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.js +154 -0
  159. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.js.map +1 -0
  160. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.ts.map +1 -0
  161. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs +36 -0
  162. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs.js +76 -0
  163. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs.js.map +1 -0
  164. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs.ts.map +1 -0
  165. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs +49 -0
  166. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs.js +88 -0
  167. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs.js.map +1 -0
  168. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs.ts.map +1 -0
  169. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs +67 -0
  170. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs.js +121 -0
  171. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs.js.map +1 -0
  172. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs.ts.map +1 -0
  173. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs +70 -0
  174. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs.js +121 -0
  175. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs.js.map +1 -0
  176. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs.ts.map +1 -0
  177. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs +76 -0
  178. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs.js +91 -0
  179. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs.js.map +1 -0
  180. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs.ts.map +1 -0
  181. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/Fable.Form.Simple.Fields.Html.fableproj +45 -0
  182. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs +105 -0
  183. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs.js +161 -0
  184. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs.js.map +1 -0
  185. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs.ts.map +1 -0
  186. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs +66 -0
  187. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs.js +110 -0
  188. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs.js.map +1 -0
  189. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs.ts.map +1 -0
  190. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs +72 -0
  191. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs.js +108 -0
  192. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs.js.map +1 -0
  193. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs.ts.map +1 -0
  194. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs +102 -0
  195. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs.js +157 -0
  196. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs.js.map +1 -0
  197. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs.ts.map +1 -0
  198. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs +83 -0
  199. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs.js +164 -0
  200. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs.js.map +1 -0
  201. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs.ts.map +1 -0
  202. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs +83 -0
  203. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs.js +119 -0
  204. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs.js.map +1 -0
  205. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs.ts.map +1 -0
  206. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs +63 -0
  207. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs.js +110 -0
  208. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs.js.map +1 -0
  209. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs.ts.map +1 -0
  210. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs +83 -0
  211. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs.js +164 -0
  212. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs.js.map +1 -0
  213. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs.ts.map +1 -0
  214. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs +92 -0
  215. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs.js +149 -0
  216. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs.js.map +1 -0
  217. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs.ts.map +1 -0
  218. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs +108 -0
  219. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs.js +161 -0
  220. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs.js.map +1 -0
  221. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs.ts.map +1 -0
  222. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Colors.fs.js.map +1 -1
  223. package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs +52 -0
  224. package/FormSpec.TS/fable_modules/{Feliz.2.7.0/Interop.fs.js → Feliz.2.8.0/DateParsing.fs.js} +27 -37
  225. package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.js.map +1 -0
  226. package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.ts.map +1 -0
  227. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Feliz.fableproj +14 -3
  228. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs +11 -0
  229. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs.js +25 -0
  230. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs.js.map +1 -0
  231. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs.ts.map +1 -0
  232. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs +176 -0
  233. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs.js +179 -0
  234. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs.js.map +1 -0
  235. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs.ts.map +1 -0
  236. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs +29 -0
  237. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs.js +19 -0
  238. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs.js.map +1 -0
  239. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Key.fs.js.map +1 -1
  240. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Length.fs +55 -1
  241. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Properties.fs +5 -0
  242. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Properties.fs.js.map +1 -1
  243. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/React.fs +77 -239
  244. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactDOM.fs.js.map +1 -1
  245. package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactInterop.fs +20 -0
  246. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactInterop.js.map +1 -1
  247. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactTypes.fs +3 -2
  248. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactTypes.fs.js.map +1 -1
  249. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/StyleTypes.fs +4 -0
  250. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/StyleTypes.fs.js.map +1 -1
  251. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Styles.fs +646 -8
  252. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Svg.fs.js.map +1 -1
  253. package/FormSpec.TS/fable_modules/Feliz.2.8.0/TransitionTimingFunction.fs +62 -0
  254. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Types.fs.js.map +1 -1
  255. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Types.fs.ts.map +1 -0
  256. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Bulma.fs +990 -0
  257. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs +179 -0
  258. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.js +51 -0
  259. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.js.map +1 -0
  260. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.ts.map +1 -0
  261. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Feliz.Bulma.fableproj +32 -0
  262. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs +1986 -0
  263. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs.js +27 -0
  264. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs.js.map +1 -0
  265. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs.ts.map +1 -0
  266. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs +7 -0
  267. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs.js +31 -0
  268. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs.js.map +1 -0
  269. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs.ts.map +1 -0
  270. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/PropertyBuilders.fs +8 -0
  271. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Exports.fs +14 -0
  272. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Glutinum.Feliz.ReactSignaturePadWrapper.fableproj +18 -0
  273. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Interop.fs +6 -0
  274. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/ReactSignaturePadWrapper.fs +32 -0
  275. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs +3 -0
  276. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.js +7 -0
  277. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.js.map +1 -0
  278. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.ts.map +1 -0
  279. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.js.map +1 -1
  280. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.ts.map +1 -1
  281. package/FormSpec.TS/fable_modules/project_cracked.json +1 -1
  282. package/FormSpec.TS/plugins/bmi/src/BMIField.js +823 -0
  283. package/FormSpec.TS/plugins/bmi/src/BMIField.js.map +1 -0
  284. package/FormSpec.TS/plugins/bmi/src/BMIField.ts.map +1 -0
  285. package/FormSpec.TS/plugins/likert/src/LikertField.js +638 -0
  286. package/FormSpec.TS/plugins/likert/src/LikertField.js.map +1 -0
  287. package/FormSpec.TS/plugins/likert/src/LikertField.ts.map +1 -0
  288. package/FormSpec.TS/plugins/signature/src/SignatureField.js +294 -0
  289. package/FormSpec.TS/plugins/signature/src/SignatureField.js.map +1 -0
  290. package/FormSpec.TS/plugins/signature/src/SignatureField.ts.map +1 -0
  291. package/FormSpec.TS/plugins/vitals/src/VitalsField.js +1150 -0
  292. package/FormSpec.TS/plugins/vitals/src/VitalsField.js.map +1 -0
  293. package/FormSpec.TS/plugins/vitals/src/VitalsField.ts.map +1 -0
  294. package/PathwayExecutor.withPlugins.d.ts +11 -0
  295. package/PathwayExecutor.withPlugins.d.ts.map +1 -0
  296. package/PluginRegistration.d.ts +2 -0
  297. package/PluginRegistration.d.ts.map +1 -0
  298. package/README.md +7 -7
  299. package/fable_modules/Fable.Form.3.0.0/Base.fs.d.ts +147 -0
  300. package/fable_modules/Fable.Form.3.0.0/Base.fs.d.ts.map +1 -0
  301. package/fable_modules/Fable.Form.3.0.0/Error.fs.d.ts +19 -0
  302. package/fable_modules/Fable.Form.3.0.0/Error.fs.d.ts.map +1 -0
  303. package/fable_modules/Fable.Form.3.0.0/Extensions.fs.d.ts +14 -0
  304. package/fable_modules/Fable.Form.3.0.0/Extensions.fs.d.ts.map +1 -0
  305. package/fable_modules/Fable.Form.3.0.0/Field.fs.d.ts +14 -0
  306. package/fable_modules/Fable.Form.3.0.0/Field.fs.d.ts.map +1 -0
  307. package/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.d.ts +113 -0
  308. package/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.d.ts.map +1 -0
  309. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.d.ts +17 -0
  310. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.d.ts.map +1 -0
  311. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.d.ts +41 -0
  312. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.d.ts.map +1 -0
  313. package/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.d.ts +73 -0
  314. package/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.d.ts.map +1 -0
  315. package/fable_modules/Feliz.2.8.0/Colors.fs.d.ts +9 -0
  316. package/fable_modules/Feliz.2.8.0/Colors.fs.d.ts.map +1 -0
  317. package/fable_modules/Feliz.2.8.0/Interop.fs.d.ts +3 -0
  318. package/fable_modules/Feliz.2.8.0/Interop.fs.d.ts.map +1 -0
  319. package/fable_modules/Feliz.2.8.0/ReactInterop.d.ts +6 -0
  320. package/fable_modules/Feliz.2.8.0/ReactInterop.d.ts.map +1 -0
  321. package/fable_modules/Feliz.2.8.0/ReactTypes.fs.d.ts +36 -0
  322. package/fable_modules/Feliz.2.8.0/ReactTypes.fs.d.ts.map +1 -0
  323. package/fable_modules/Feliz.2.8.0/Types.fs.d.ts +7 -0
  324. package/fable_modules/Feliz.2.8.0/Types.fs.d.ts.map +1 -0
  325. package/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.d.ts +5 -0
  326. package/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.d.ts.map +1 -0
  327. package/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.d.ts +3 -0
  328. package/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.d.ts.map +1 -0
  329. package/package.json +15 -15
  330. package/plugins/bmi/src/BMIField.d.ts +52 -0
  331. package/plugins/bmi/src/BMIField.d.ts.map +1 -0
  332. package/plugins/likert/src/LikertField.d.ts +60 -0
  333. package/plugins/likert/src/LikertField.d.ts.map +1 -0
  334. package/plugins/signature/src/SignatureField.d.ts +34 -0
  335. package/plugins/signature/src/SignatureField.d.ts.map +1 -0
  336. package/plugins/vitals/src/VitalsField.d.ts +82 -0
  337. package/plugins/vitals/src/VitalsField.d.ts.map +1 -0
  338. package/src/{FormSpecHelpers.ts → FormSpec.FS/FormSpecHelpers.ts} +1 -1
  339. package/src/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Helpers.ts +4 -4
  340. package/src/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Option.ts +2 -2
  341. package/src/{Interop → FormSpec.FS/Interop}/FormSpec.Values.Api.Option.ts +2 -2
  342. package/src/{Migrator.ts → FormSpec.FS/Migrator.ts} +1 -1
  343. package/src/{PathwayExecutor.ts → FormSpec.FS/PathwayExecutor.ts} +1 -1
  344. package/src/PathwayExecutor.withPlugins.ts +10 -0
  345. package/src/PluginRegistration.ts +16 -0
  346. package/src/plugins/bmi/src/BMIField.ts +494 -0
  347. package/src/plugins/likert/src/LikertField.ts +420 -0
  348. package/src/plugins/signature/src/SignatureField.ts +185 -0
  349. package/src/plugins/vitals/src/VitalsField.ts +665 -0
  350. package/Components/HelloComponent.d.ts.map +0 -1
  351. package/Designer.d.ts.map +0 -1
  352. package/FormSpec.TS/Components/HelloComponent.js.map +0 -1
  353. package/FormSpec.TS/Components/HelloComponent.ts.map +0 -1
  354. package/FormSpec.TS/Designer.js.map +0 -1
  355. package/FormSpec.TS/Designer.ts.map +0 -1
  356. package/FormSpec.TS/FormSpecHelpers.js.map +0 -1
  357. package/FormSpec.TS/FormSpecHelpers.ts.map +0 -1
  358. package/FormSpec.TS/FormSpecValues.js.map +0 -1
  359. package/FormSpec.TS/FormSpecValues.ts.map +0 -1
  360. package/FormSpec.TS/Helpers.js.map +0 -1
  361. package/FormSpec.TS/Helpers.ts.map +0 -1
  362. package/FormSpec.TS/Interfaces.js.map +0 -1
  363. package/FormSpec.TS/Interfaces.ts.map +0 -1
  364. package/FormSpec.TS/Interop/FormSpec.Api.Helpers.js.map +0 -1
  365. package/FormSpec.TS/Interop/FormSpec.Api.Helpers.ts.map +0 -1
  366. package/FormSpec.TS/Interop/FormSpec.Api.Option.js.map +0 -1
  367. package/FormSpec.TS/Interop/FormSpec.Api.Option.ts.map +0 -1
  368. package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.js.map +0 -1
  369. package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.ts.map +0 -1
  370. package/FormSpec.TS/Logging/LogTypes.js.map +0 -1
  371. package/FormSpec.TS/Logging/LogTypes.ts.map +0 -1
  372. package/FormSpec.TS/Migrator.js.map +0 -1
  373. package/FormSpec.TS/Migrator.ts.map +0 -1
  374. package/FormSpec.TS/PathwayDataExtractor.js.map +0 -1
  375. package/FormSpec.TS/PathwayDataExtractor.ts.map +0 -1
  376. package/FormSpec.TS/PathwayExecutor.js.map +0 -1
  377. package/FormSpec.TS/PathwayExecutor.ts.map +0 -1
  378. package/FormSpec.TS/PathwayValidator.js.map +0 -1
  379. package/FormSpec.TS/PathwayValidator.ts.map +0 -1
  380. package/FormSpec.TS/PluginInterface.js.map +0 -1
  381. package/FormSpec.TS/PluginInterface.ts.map +0 -1
  382. package/FormSpec.TS/Prelude.js.map +0 -1
  383. package/FormSpec.TS/Prelude.ts.map +0 -1
  384. package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.js.map +0 -1
  385. package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.ts.map +0 -1
  386. package/FormSpec.TS/Renderers/MermaidRenderer.js.map +0 -1
  387. package/FormSpec.TS/Renderers/MermaidRenderer.ts.map +0 -1
  388. package/FormSpec.TS/Renderers/PathwayRenderers.js.map +0 -1
  389. package/FormSpec.TS/Renderers/PathwayRenderers.ts.map +0 -1
  390. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs +0 -83
  391. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.js.map +0 -1
  392. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.ts.map +0 -1
  393. package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.js +0 -561
  394. package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.js.map +0 -1
  395. package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.ts.map +0 -1
  396. package/FormSpec.d.ts.map +0 -1
  397. package/FormSpecHelpers.d.ts.map +0 -1
  398. package/FormSpecValues.d.ts.map +0 -1
  399. package/Helpers.d.ts.map +0 -1
  400. package/Interfaces.d.ts.map +0 -1
  401. package/Interop/FormSpec.Api.Helpers.d.ts.map +0 -1
  402. package/Interop/FormSpec.Api.Option.d.ts.map +0 -1
  403. package/Interop/FormSpec.Values.Api.Option.d.ts.map +0 -1
  404. package/Logging/LogTypes.d.ts.map +0 -1
  405. package/Migrator.d.ts.map +0 -1
  406. package/PathwayDataExtractor.d.ts.map +0 -1
  407. package/PathwayExecutor.d.ts.map +0 -1
  408. package/PathwayValidator.d.ts.map +0 -1
  409. package/PluginInterface.d.ts.map +0 -1
  410. package/Prelude.d.ts.map +0 -1
  411. package/Renderers/FormSpecMarkdownRenderer.d.ts.map +0 -1
  412. package/Renderers/MermaidRenderer.d.ts.map +0 -1
  413. package/Renderers/PathwayRenderers.d.ts.map +0 -1
  414. /package/{Components → FormSpec.FS/Components}/HelloComponent.d.ts +0 -0
  415. /package/{Designer.d.ts → FormSpec.FS/Designer.d.ts} +0 -0
  416. /package/{FormSpec.d.ts → FormSpec.FS/FormSpec.d.ts} +0 -0
  417. /package/{FormSpecHelpers.d.ts → FormSpec.FS/FormSpecHelpers.d.ts} +0 -0
  418. /package/{FormSpecValues.d.ts → FormSpec.FS/FormSpecValues.d.ts} +0 -0
  419. /package/{Helpers.d.ts → FormSpec.FS/Helpers.d.ts} +0 -0
  420. /package/{Interfaces.d.ts → FormSpec.FS/Interfaces.d.ts} +0 -0
  421. /package/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Helpers.d.ts +0 -0
  422. /package/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Option.d.ts +0 -0
  423. /package/{Interop → FormSpec.FS/Interop}/FormSpec.Values.Api.Option.d.ts +0 -0
  424. /package/{Logging → FormSpec.FS/Logging}/LogTypes.d.ts +0 -0
  425. /package/{Migrator.d.ts → FormSpec.FS/Migrator.d.ts} +0 -0
  426. /package/{PathwayDataExtractor.d.ts → FormSpec.FS/PathwayDataExtractor.d.ts} +0 -0
  427. /package/{PathwayExecutor.d.ts → FormSpec.FS/PathwayExecutor.d.ts} +0 -0
  428. /package/{PathwayValidator.d.ts → FormSpec.FS/PathwayValidator.d.ts} +0 -0
  429. /package/{PluginInterface.d.ts → FormSpec.FS/PluginInterface.d.ts} +0 -0
  430. /package/{Prelude.d.ts → FormSpec.FS/Prelude.d.ts} +0 -0
  431. /package/{Renderers → FormSpec.FS/Renderers}/FormSpecMarkdownRenderer.d.ts +0 -0
  432. /package/{Renderers → FormSpec.FS/Renderers}/MermaidRenderer.d.ts +0 -0
  433. /package/{Renderers → FormSpec.FS/Renderers}/PathwayRenderers.d.ts +0 -0
  434. /package/FormSpec.TS/{Components → FormSpec.FS/Components}/HelloComponent.js +0 -0
  435. /package/FormSpec.TS/{Designer.js → FormSpec.FS/Designer.js} +0 -0
  436. /package/FormSpec.TS/{FormSpec.js → FormSpec.FS/FormSpec.js} +0 -0
  437. /package/FormSpec.TS/{FormSpecValues.js → FormSpec.FS/FormSpecValues.js} +0 -0
  438. /package/FormSpec.TS/{Helpers.js → FormSpec.FS/Helpers.js} +0 -0
  439. /package/FormSpec.TS/{Interfaces.js → FormSpec.FS/Interfaces.js} +0 -0
  440. /package/FormSpec.TS/{Logging → FormSpec.FS/Logging}/LogTypes.js +0 -0
  441. /package/FormSpec.TS/{PathwayDataExtractor.js → FormSpec.FS/PathwayDataExtractor.js} +0 -0
  442. /package/FormSpec.TS/{PathwayValidator.js → FormSpec.FS/PathwayValidator.js} +0 -0
  443. /package/FormSpec.TS/{PluginInterface.js → FormSpec.FS/PluginInterface.js} +0 -0
  444. /package/FormSpec.TS/{Prelude.js → FormSpec.FS/Prelude.js} +0 -0
  445. /package/FormSpec.TS/{Renderers → FormSpec.FS/Renderers}/FormSpecMarkdownRenderer.js +0 -0
  446. /package/FormSpec.TS/{Renderers → FormSpec.FS/Renderers}/MermaidRenderer.js +0 -0
  447. /package/FormSpec.TS/{Renderers → FormSpec.FS/Renderers}/PathwayRenderers.js +0 -0
  448. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/BorderStyle.fs +0 -0
  449. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Colors.fs +0 -0
  450. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Colors.fs.js +0 -0
  451. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Colors.fs.ts.map +0 -0
  452. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Fonts.fs +0 -0
  453. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/GridTypes.fs +0 -0
  454. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Html.fs +0 -0
  455. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0/ReactTypes.fs.ts.map → Feliz.2.8.0/Interop.fs.ts.map} +0 -0
  456. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Key.fs +0 -0
  457. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Key.fs.js +0 -0
  458. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Key.fs.ts.map +0 -0
  459. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Locale.fs +0 -0
  460. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Properties.fs.js +0 -0
  461. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Properties.fs.ts.map +0 -0
  462. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactDOM.fs +0 -0
  463. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactDOM.fs.js +0 -0
  464. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactDOM.fs.ts.map +0 -0
  465. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactInterop.js +0 -0
  466. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactTypes.fs.js +0 -0
  467. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0/StyleTypes.fs.ts.map → Feliz.2.8.0/ReactTypes.fs.ts.map} +0 -0
  468. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/StyleTypes.fs.js +0 -0
  469. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0/Svg.fs.ts.map → Feliz.2.8.0/StyleTypes.fs.ts.map} +0 -0
  470. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Svg.fs +0 -0
  471. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Svg.fs.js +0 -0
  472. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0/Types.fs.ts.map → Feliz.2.8.0/Svg.fs.ts.map} +0 -0
  473. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/TextDecorationLine.fs +0 -0
  474. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/TextDecorationStyle.fs +0 -0
  475. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Transform.fs +0 -0
  476. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/TransformOrigin.fs +0 -0
  477. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/TransitionProperty.fs +0 -0
  478. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Types.fs +0 -0
  479. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Types.fs.js +0 -0
  480. /package/src/{Components → FormSpec.FS/Components}/HelloComponent.ts +0 -0
  481. /package/src/{Designer.ts → FormSpec.FS/Designer.ts} +0 -0
  482. /package/src/{FormSpec.ts → FormSpec.FS/FormSpec.ts} +0 -0
  483. /package/src/{FormSpecValues.ts → FormSpec.FS/FormSpecValues.ts} +0 -0
  484. /package/src/{Helpers.ts → FormSpec.FS/Helpers.ts} +0 -0
  485. /package/src/{Interfaces.ts → FormSpec.FS/Interfaces.ts} +0 -0
  486. /package/src/{Logging → FormSpec.FS/Logging}/LogTypes.ts +0 -0
  487. /package/src/{PathwayDataExtractor.ts → FormSpec.FS/PathwayDataExtractor.ts} +0 -0
  488. /package/src/{PathwayValidator.ts → FormSpec.FS/PathwayValidator.ts} +0 -0
  489. /package/src/{PluginInterface.ts → FormSpec.FS/PluginInterface.ts} +0 -0
  490. /package/src/{Prelude.ts → FormSpec.FS/Prelude.ts} +0 -0
  491. /package/src/{Renderers → FormSpec.FS/Renderers}/FormSpecMarkdownRenderer.ts +0 -0
  492. /package/src/{Renderers → FormSpec.FS/Renderers}/MermaidRenderer.ts +0 -0
  493. /package/src/{Renderers → FormSpec.FS/Renderers}/PathwayRenderers.ts +0 -0
@@ -0,0 +1,1150 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get Form_PropertyKeys_DiastolicBP () {
13
+ return Form_PropertyKeys_DiastolicBP;
14
+ },
15
+ get Form_PropertyKeys_OxygenSaturation () {
16
+ return Form_PropertyKeys_OxygenSaturation;
17
+ },
18
+ get Form_PropertyKeys_PainScale () {
19
+ return Form_PropertyKeys_PainScale;
20
+ },
21
+ get Form_PropertyKeys_Pulse () {
22
+ return Form_PropertyKeys_Pulse;
23
+ },
24
+ get Form_PropertyKeys_Respiration () {
25
+ return Form_PropertyKeys_Respiration;
26
+ },
27
+ get Form_PropertyKeys_SystolicBP () {
28
+ return Form_PropertyKeys_SystolicBP;
29
+ },
30
+ get Form_PropertyKeys_Temperature () {
31
+ return Form_PropertyKeys_Temperature;
32
+ },
33
+ get Form_designerPreview () {
34
+ return Form_designerPreview;
35
+ },
36
+ get Form_enhancedVitalsConverter () {
37
+ return Form_enhancedVitalsConverter;
38
+ },
39
+ get Form_markdownRenderer () {
40
+ return Form_markdownRenderer;
41
+ },
42
+ get Form_pluginConfig () {
43
+ return Form_pluginConfig;
44
+ },
45
+ get Form_vitalsField () {
46
+ return Form_vitalsField;
47
+ },
48
+ get VitalsField_Attributes () {
49
+ return VitalsField_Attributes;
50
+ },
51
+ get VitalsField_Attributes_$reflection () {
52
+ return VitalsField_Attributes_$reflection;
53
+ },
54
+ get VitalsField_Field$1 () {
55
+ return VitalsField_Field$1;
56
+ },
57
+ get VitalsField_Field$1_$ctor_Z521739C7 () {
58
+ return VitalsField_Field$1_$ctor_Z521739C7;
59
+ },
60
+ get VitalsField_Field$1_$reflection () {
61
+ return VitalsField_Field$1_$reflection;
62
+ },
63
+ get VitalsField_VitalsConfig () {
64
+ return VitalsField_VitalsConfig;
65
+ },
66
+ get VitalsField_VitalsConfig_$reflection () {
67
+ return VitalsField_VitalsConfig_$reflection;
68
+ },
69
+ get VitalsField_VitalsData () {
70
+ return VitalsField_VitalsData;
71
+ },
72
+ get VitalsField_VitalsData_$reflection () {
73
+ return VitalsField_VitalsData_$reflection;
74
+ },
75
+ get VitalsField_VitalsFieldComponent () {
76
+ return VitalsField_VitalsFieldComponent;
77
+ },
78
+ get VitalsField_form () {
79
+ return VitalsField_form;
80
+ },
81
+ get VitalsField_getVitalStatus () {
82
+ return VitalsField_getVitalStatus;
83
+ },
84
+ get VitalsField_isCriticalDiastolicBP () {
85
+ return VitalsField_isCriticalDiastolicBP;
86
+ },
87
+ get VitalsField_isCriticalOxygenSat () {
88
+ return VitalsField_isCriticalOxygenSat;
89
+ },
90
+ get VitalsField_isCriticalPulse () {
91
+ return VitalsField_isCriticalPulse;
92
+ },
93
+ get VitalsField_isCriticalRespiration () {
94
+ return VitalsField_isCriticalRespiration;
95
+ },
96
+ get VitalsField_isCriticalSystolicBP () {
97
+ return VitalsField_isCriticalSystolicBP;
98
+ },
99
+ get VitalsField_isCriticalTemperature () {
100
+ return VitalsField_isCriticalTemperature;
101
+ },
102
+ get VitalsField_isNormalTemperature () {
103
+ return VitalsField_isNormalTemperature;
104
+ },
105
+ get VitalsField_isValidDiastolicBP () {
106
+ return VitalsField_isValidDiastolicBP;
107
+ },
108
+ get VitalsField_isValidOxygenSat () {
109
+ return VitalsField_isValidOxygenSat;
110
+ },
111
+ get VitalsField_isValidPainScale () {
112
+ return VitalsField_isValidPainScale;
113
+ },
114
+ get VitalsField_isValidPulse () {
115
+ return VitalsField_isValidPulse;
116
+ },
117
+ get VitalsField_isValidRespiration () {
118
+ return VitalsField_isValidRespiration;
119
+ },
120
+ get VitalsField_isValidSystolicBP () {
121
+ return VitalsField_isValidSystolicBP;
122
+ },
123
+ get VitalsField_isValidTemperature () {
124
+ return VitalsField_isValidTemperature;
125
+ },
126
+ get VitalsField_parseVitalsData () {
127
+ return VitalsField_parseVitalsData;
128
+ },
129
+ get VitalsField_serializeVitalsData () {
130
+ return VitalsField_serializeVitalsData;
131
+ }
132
+ });
133
+ const _Types = require("@fable-org/fable-library-js/Types.js");
134
+ const _Option = require("@fable-org/fable-library-js/Option.js");
135
+ const _Util = require("@fable-org/fable-library-js/Util.js");
136
+ const _Reflection = require("@fable-org/fable-library-js/Reflection.js");
137
+ const _Fieldfs = require("../../../fable_modules/Fable.Form.3.0.0/Field.fs.js");
138
+ const _Basefs = require("../../../fable_modules/Fable.Form.3.0.0/Base.fs.js");
139
+ const _String = require("@fable-org/fable-library-js/String.js");
140
+ const _Array = require("@fable-org/fable-library-js/Array.js");
141
+ const _Double = require("@fable-org/fable-library-js/Double.js");
142
+ const _react = require("react");
143
+ const _Interopfs = require("../../../fable_modules/Feliz.2.8.0/Interop.fs.js");
144
+ const _List = require("@fable-org/fable-library-js/List.js");
145
+ const _HtmlViewfs = require("../../../fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.js");
146
+ const _Seq = require("@fable-org/fable-library-js/Seq.js");
147
+ const _Typesfs = require("../../../fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.js");
148
+ const _FormSpec = require("../../../FormSpec.FS/FormSpec.js");
149
+ const _Result = require("@fable-org/fable-library-js/Result.js");
150
+ const _PluginInterface = require("../../../FormSpec.FS/PluginInterface.js");
151
+ const _ElementBuildersfs = require("../../../fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.js");
152
+ class VitalsField_VitalsData extends _Types.Record {
153
+ constructor(Temperature, SystolicBP, DiastolicBP, Pulse, Respiration, OxygenSaturation, PainScale){
154
+ super();
155
+ this.Temperature = Temperature;
156
+ this.SystolicBP = SystolicBP;
157
+ this.DiastolicBP = DiastolicBP;
158
+ this.Pulse = Pulse;
159
+ this.Respiration = Respiration;
160
+ this.OxygenSaturation = OxygenSaturation;
161
+ this.PainScale = PainScale;
162
+ }
163
+ }
164
+ function VitalsField_VitalsData_$reflection() {
165
+ return (0, _Reflection.record_type)("Fable.Form.Simple.Bulma.Fields.VitalsField.VitalsField.VitalsData", [], VitalsField_VitalsData, ()=>[
166
+ [
167
+ "Temperature",
168
+ (0, _Reflection.option_type)(_Reflection.float64_type)
169
+ ],
170
+ [
171
+ "SystolicBP",
172
+ (0, _Reflection.option_type)(_Reflection.float64_type)
173
+ ],
174
+ [
175
+ "DiastolicBP",
176
+ (0, _Reflection.option_type)(_Reflection.float64_type)
177
+ ],
178
+ [
179
+ "Pulse",
180
+ (0, _Reflection.option_type)(_Reflection.float64_type)
181
+ ],
182
+ [
183
+ "Respiration",
184
+ (0, _Reflection.option_type)(_Reflection.float64_type)
185
+ ],
186
+ [
187
+ "OxygenSaturation",
188
+ (0, _Reflection.option_type)(_Reflection.float64_type)
189
+ ],
190
+ [
191
+ "PainScale",
192
+ (0, _Reflection.option_type)(_Reflection.float64_type)
193
+ ]
194
+ ]);
195
+ }
196
+ class VitalsField_VitalsConfig extends _Types.Record {
197
+ constructor(IncludeTemperature, IncludeBP, IncludePulse, IncludeRespiration, IncludeOxygenSat, IncludePainScale){
198
+ super();
199
+ this.IncludeTemperature = IncludeTemperature;
200
+ this.IncludeBP = IncludeBP;
201
+ this.IncludePulse = IncludePulse;
202
+ this.IncludeRespiration = IncludeRespiration;
203
+ this.IncludeOxygenSat = IncludeOxygenSat;
204
+ this.IncludePainScale = IncludePainScale;
205
+ }
206
+ }
207
+ function VitalsField_VitalsConfig_$reflection() {
208
+ return (0, _Reflection.record_type)("Fable.Form.Simple.Bulma.Fields.VitalsField.VitalsField.VitalsConfig", [], VitalsField_VitalsConfig, ()=>[
209
+ [
210
+ "IncludeTemperature",
211
+ _Reflection.bool_type
212
+ ],
213
+ [
214
+ "IncludeBP",
215
+ _Reflection.bool_type
216
+ ],
217
+ [
218
+ "IncludePulse",
219
+ _Reflection.bool_type
220
+ ],
221
+ [
222
+ "IncludeRespiration",
223
+ _Reflection.bool_type
224
+ ],
225
+ [
226
+ "IncludeOxygenSat",
227
+ _Reflection.bool_type
228
+ ],
229
+ [
230
+ "IncludePainScale",
231
+ _Reflection.bool_type
232
+ ]
233
+ ]);
234
+ }
235
+ class VitalsField_Attributes extends _Types.Record {
236
+ GetFieldId() {
237
+ const this$ = this;
238
+ return this$.FieldId;
239
+ }
240
+ constructor(FieldId, Label, Config){
241
+ super();
242
+ this.FieldId = FieldId;
243
+ this.Label = Label;
244
+ this.Config = Config;
245
+ }
246
+ }
247
+ function VitalsField_Attributes_$reflection() {
248
+ return (0, _Reflection.record_type)("Fable.Form.Simple.Bulma.Fields.VitalsField.VitalsField.Attributes", [], VitalsField_Attributes, ()=>[
249
+ [
250
+ "FieldId",
251
+ _Reflection.string_type
252
+ ],
253
+ [
254
+ "Label",
255
+ _Reflection.string_type
256
+ ],
257
+ [
258
+ "Config",
259
+ VitalsField_VitalsConfig_$reflection()
260
+ ]
261
+ ]);
262
+ }
263
+ function VitalsField_form() {
264
+ return (build)=>(config)=>(0, _Basefs.field)(_String.isNullOrEmpty, build, config);
265
+ }
266
+ function VitalsField_isValidTemperature(temp) {
267
+ if (temp >= 95) {
268
+ return temp <= 108;
269
+ } else {
270
+ return false;
271
+ }
272
+ }
273
+ function VitalsField_isValidSystolicBP(sys) {
274
+ if (sys >= 60) {
275
+ return sys <= 200;
276
+ } else {
277
+ return false;
278
+ }
279
+ }
280
+ function VitalsField_isValidDiastolicBP(dia) {
281
+ if (dia >= 40) {
282
+ return dia <= 120;
283
+ } else {
284
+ return false;
285
+ }
286
+ }
287
+ function VitalsField_isValidPulse(pulse) {
288
+ if (pulse >= 40) {
289
+ return pulse <= 180;
290
+ } else {
291
+ return false;
292
+ }
293
+ }
294
+ function VitalsField_isValidRespiration(resp) {
295
+ if (resp >= 8) {
296
+ return resp <= 35;
297
+ } else {
298
+ return false;
299
+ }
300
+ }
301
+ function VitalsField_isValidOxygenSat(sat) {
302
+ if (sat >= 70) {
303
+ return sat <= 100;
304
+ } else {
305
+ return false;
306
+ }
307
+ }
308
+ function VitalsField_isValidPainScale(pain) {
309
+ if (pain >= 0) {
310
+ return pain <= 10;
311
+ } else {
312
+ return false;
313
+ }
314
+ }
315
+ function VitalsField_isCriticalTemperature(temp) {
316
+ if (temp < 96) {
317
+ return true;
318
+ } else {
319
+ return temp > 104;
320
+ }
321
+ }
322
+ function VitalsField_isNormalTemperature(temp) {
323
+ if (temp >= 97) {
324
+ return temp <= 99;
325
+ } else {
326
+ return false;
327
+ }
328
+ }
329
+ function VitalsField_isCriticalSystolicBP(sys) {
330
+ if (sys < 90) {
331
+ return true;
332
+ } else {
333
+ return sys > 180;
334
+ }
335
+ }
336
+ function VitalsField_isCriticalDiastolicBP(dia) {
337
+ if (dia < 60) {
338
+ return true;
339
+ } else {
340
+ return dia > 110;
341
+ }
342
+ }
343
+ function VitalsField_isCriticalPulse(pulse) {
344
+ if (pulse < 50) {
345
+ return true;
346
+ } else {
347
+ return pulse > 120;
348
+ }
349
+ }
350
+ function VitalsField_isCriticalRespiration(resp) {
351
+ if (resp < 12) {
352
+ return true;
353
+ } else {
354
+ return resp > 25;
355
+ }
356
+ }
357
+ function VitalsField_isCriticalOxygenSat(sat) {
358
+ return sat < 95;
359
+ }
360
+ function VitalsField_parseVitalsData(value) {
361
+ try {
362
+ if ((0, _String.isNullOrWhiteSpace)(value)) {
363
+ return new VitalsField_VitalsData(undefined, undefined, undefined, undefined, undefined, undefined, undefined);
364
+ } else {
365
+ const parts = (0, _String.split)(value, [
366
+ "|"
367
+ ], undefined, 0);
368
+ return new VitalsField_VitalsData(parts.length > 0 && !(0, _String.isNullOrWhiteSpace)((0, _Array.item)(0, parts)) ? (0, _Double.parse)((0, _Array.item)(0, parts)) : undefined, parts.length > 1 && !(0, _String.isNullOrWhiteSpace)((0, _Array.item)(1, parts)) ? (0, _Double.parse)((0, _Array.item)(1, parts)) : undefined, parts.length > 2 && !(0, _String.isNullOrWhiteSpace)((0, _Array.item)(2, parts)) ? (0, _Double.parse)((0, _Array.item)(2, parts)) : undefined, parts.length > 3 && !(0, _String.isNullOrWhiteSpace)((0, _Array.item)(3, parts)) ? (0, _Double.parse)((0, _Array.item)(3, parts)) : undefined, parts.length > 4 && !(0, _String.isNullOrWhiteSpace)((0, _Array.item)(4, parts)) ? (0, _Double.parse)((0, _Array.item)(4, parts)) : undefined, parts.length > 5 && !(0, _String.isNullOrWhiteSpace)((0, _Array.item)(5, parts)) ? (0, _Double.parse)((0, _Array.item)(5, parts)) : undefined, parts.length > 6 && !(0, _String.isNullOrWhiteSpace)((0, _Array.item)(6, parts)) ? (0, _Double.parse)((0, _Array.item)(6, parts)) : undefined);
369
+ }
370
+ } catch (matchValue) {
371
+ return new VitalsField_VitalsData(undefined, undefined, undefined, undefined, undefined, undefined, undefined);
372
+ }
373
+ }
374
+ function VitalsField_serializeVitalsData(vitalsData) {
375
+ const optToString = (opt)=>(0, _Option.defaultArg)((0, _Option.map)((value)=>value.toString(), opt), "");
376
+ return (0, _String.join)("|", [
377
+ optToString(vitalsData.Temperature),
378
+ optToString(vitalsData.SystolicBP),
379
+ optToString(vitalsData.DiastolicBP),
380
+ optToString(vitalsData.Pulse),
381
+ optToString(vitalsData.Respiration),
382
+ optToString(vitalsData.OxygenSaturation),
383
+ optToString(vitalsData.PainScale)
384
+ ]);
385
+ }
386
+ function VitalsField_getVitalStatus(value, isValid, isCritical, isNormal) {
387
+ let v_2;
388
+ if (value == null) {
389
+ return "empty";
390
+ } else if (isCritical((0, _Option.value)(value))) {
391
+ const v_3 = (0, _Option.value)(value);
392
+ return "critical";
393
+ } else if (!isValid((0, _Option.value)(value))) {
394
+ const v_4 = (0, _Option.value)(value);
395
+ return "abnormal";
396
+ } else if (v_2 = (0, _Option.value)(value), isNormal != null && !(0, _Option.value)(isNormal)(v_2)) {
397
+ const v_5 = (0, _Option.value)(value);
398
+ return "abnormal";
399
+ } else {
400
+ return "normal";
401
+ }
402
+ }
403
+ function VitalsField_VitalsFieldComponent(config) {
404
+ let elems_12;
405
+ const vitalsData = VitalsField_parseVitalsData(config.Value);
406
+ const vitalsConfig = config.Attributes.Config;
407
+ let patternInput;
408
+ const initial = (0, _Option.defaultArg)((0, _Option.map)((value)=>value.toString(), vitalsData.Temperature), "");
409
+ patternInput = _Interopfs.reactApi.useState(initial);
410
+ const temperature = patternInput[0];
411
+ let patternInput_1;
412
+ const initial_1 = (0, _Option.defaultArg)((0, _Option.map)((value_2)=>value_2.toString(), vitalsData.SystolicBP), "");
413
+ patternInput_1 = _Interopfs.reactApi.useState(initial_1);
414
+ const systolicBP = patternInput_1[0];
415
+ let patternInput_2;
416
+ const initial_2 = (0, _Option.defaultArg)((0, _Option.map)((value_4)=>value_4.toString(), vitalsData.DiastolicBP), "");
417
+ patternInput_2 = _Interopfs.reactApi.useState(initial_2);
418
+ const diastolicBP = patternInput_2[0];
419
+ let patternInput_3;
420
+ const initial_3 = (0, _Option.defaultArg)((0, _Option.map)((value_6)=>value_6.toString(), vitalsData.Pulse), "");
421
+ patternInput_3 = _Interopfs.reactApi.useState(initial_3);
422
+ const pulse = patternInput_3[0];
423
+ let patternInput_4;
424
+ const initial_4 = (0, _Option.defaultArg)((0, _Option.map)((value_8)=>value_8.toString(), vitalsData.Respiration), "");
425
+ patternInput_4 = _Interopfs.reactApi.useState(initial_4);
426
+ const respiration = patternInput_4[0];
427
+ let patternInput_5;
428
+ const initial_5 = (0, _Option.defaultArg)((0, _Option.map)((value_10)=>value_10.toString(), vitalsData.OxygenSaturation), "");
429
+ patternInput_5 = _Interopfs.reactApi.useState(initial_5);
430
+ const oxygenSat = patternInput_5[0];
431
+ let patternInput_6;
432
+ const initial_6 = (0, _Option.defaultArg)((0, _Option.map)((value_12)=>value_12.toString(), vitalsData.PainScale), "");
433
+ patternInput_6 = _Interopfs.reactApi.useState(initial_6);
434
+ const painScale = patternInput_6[0];
435
+ const dependencies = [
436
+ temperature,
437
+ systolicBP,
438
+ diastolicBP,
439
+ pulse,
440
+ respiration,
441
+ oxygenSat,
442
+ painScale
443
+ ];
444
+ _Interopfs.reactApi.useEffect(()=>{
445
+ const parseOpt = (s)=>{
446
+ if ((0, _String.isNullOrWhiteSpace)(s)) {
447
+ return undefined;
448
+ } else {
449
+ let matchValue;
450
+ let outArg = 0;
451
+ matchValue = [
452
+ (0, _Double.tryParse)(s, new _Types.FSharpRef(()=>outArg, (v)=>{
453
+ outArg = v;
454
+ })),
455
+ outArg
456
+ ];
457
+ if (matchValue[0]) {
458
+ return matchValue[1];
459
+ } else {
460
+ return undefined;
461
+ }
462
+ }
463
+ };
464
+ config.OnChange(VitalsField_serializeVitalsData(new VitalsField_VitalsData(parseOpt(temperature), parseOpt(systolicBP), parseOpt(diastolicBP), parseOpt(pulse), parseOpt(respiration), parseOpt(oxygenSat), parseOpt(painScale))));
465
+ }, dependencies);
466
+ const parseNumeric = (raw)=>{
467
+ if ((0, _String.isNullOrWhiteSpace)(raw)) {
468
+ return undefined;
469
+ } else {
470
+ let matchValue_1;
471
+ let outArg_1 = 0;
472
+ matchValue_1 = [
473
+ (0, _Double.tryParse)(raw, new _Types.FSharpRef(()=>outArg_1, (v_2)=>{
474
+ outArg_1 = v_2;
475
+ })),
476
+ outArg_1
477
+ ];
478
+ if (matchValue_1[0]) {
479
+ return matchValue_1[1];
480
+ } else {
481
+ return undefined;
482
+ }
483
+ }
484
+ };
485
+ const statusBadge = (status)=>(0, _react.createElement)("span", {
486
+ className: `inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium ${status === "critical" ? "bg-red-100 text-red-700 border border-red-200" : status === "abnormal" ? "bg-amber-100 text-amber-700 border border-amber-200" : status === "normal" ? "bg-emerald-100 text-emerald-700 border border-emerald-200" : "bg-slate-100 text-slate-600 border border-slate-200"}`,
487
+ children: status === "critical" ? "Critical" : status === "abnormal" ? "Abnormal" : status === "normal" ? "Normal" : "Pending"
488
+ });
489
+ const createVitalInput = (label_1, value_18, setValue, unitText, placeholder, isValid, isCritical, isNormal)=>{
490
+ let elems_1, elems;
491
+ const vitalStatus = VitalsField_getVitalStatus(parseNumeric(value_18), isValid, isCritical, isNormal);
492
+ let inputClass;
493
+ const baseClass = "mt-1 block w-full rounded-md border bg-white px-2.5 py-1.5 text-sm text-slate-900 shadow-sm transition placeholder:text-slate-400 focus:outline-none focus:ring-2 disabled:cursor-not-allowed disabled:bg-slate-100 disabled:text-slate-500";
494
+ inputClass = config.ShowError && config.Error != null ? `${baseClass} border-red-400 focus:border-red-500 focus:ring-red-500/30` : `${baseClass} ${vitalStatus === "critical" ? "border-red-300 focus:border-red-500 focus:ring-red-500/30" : vitalStatus === "abnormal" ? "border-amber-300 focus:border-amber-500 focus:ring-amber-500/30" : "border-slate-300 focus:border-sky-500 focus:ring-sky-500/30"}`;
495
+ return (0, _react.createElement)("div", (0, _Util.createObj)((0, _List.ofArray)([
496
+ [
497
+ "className",
498
+ "rounded-lg border border-slate-200 bg-white p-2.5 shadow-sm"
499
+ ],
500
+ (elems_1 = [
501
+ (0, _react.createElement)("div", (0, _Util.createObj)((0, _List.ofArray)([
502
+ [
503
+ "className",
504
+ "flex items-center justify-between gap-3"
505
+ ],
506
+ (elems = [
507
+ (0, _react.createElement)("label", {
508
+ className: "text-xs font-semibold uppercase tracking-wide text-slate-700",
509
+ children: label_1
510
+ }),
511
+ statusBadge(vitalStatus)
512
+ ], [
513
+ "children",
514
+ _Interopfs.reactApi.Children.toArray(Array.from(elems))
515
+ ])
516
+ ]))),
517
+ (0, _react.createElement)("input", {
518
+ type: "number",
519
+ className: inputClass,
520
+ value: value_18,
521
+ placeholder: placeholder,
522
+ disabled: config.Disabled ? true : config.IsReadOnly,
523
+ onChange: (ev)=>{
524
+ setValue(ev.target.value);
525
+ }
526
+ }),
527
+ (0, _react.createElement)("p", {
528
+ className: "mt-1 text-[11px] text-slate-500",
529
+ children: unitText
530
+ })
531
+ ], [
532
+ "children",
533
+ _Interopfs.reactApi.Children.toArray(Array.from(elems_1))
534
+ ])
535
+ ])));
536
+ };
537
+ return (0, _HtmlViewfs.withLabelAndError)(config.Attributes.Label, config.ShowError, config.Error, (0, _react.createElement)("div", (0, _Util.createObj)((0, _List.ofArray)([
538
+ [
539
+ "className",
540
+ "space-y-2.5"
541
+ ],
542
+ (elems_12 = (0, _Seq.toList)((0, _Seq.delay)(()=>{
543
+ let elems_8;
544
+ return (0, _Seq.append)((0, _Seq.singleton)((0, _react.createElement)("div", (0, _Util.createObj)((0, _List.ofArray)([
545
+ [
546
+ "className",
547
+ "grid grid-cols-1 auto-rows-min content-start items-start gap-2 md:grid-cols-2 lg:grid-cols-3"
548
+ ],
549
+ (elems_8 = (0, _Seq.toList)((0, _Seq.delay)(()=>(0, _Seq.append)(vitalsConfig.IncludeTemperature ? (0, _Seq.singleton)(createVitalInput("Temperature", temperature, patternInput[1], "Normal: 97-99°F", "98.6", VitalsField_isValidTemperature, VitalsField_isCriticalTemperature, VitalsField_isNormalTemperature)) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>{
550
+ let systolicStatus, diastolicStatus, elems_7, elems_3, elems_2, elems_6, elems_4, value_66, elems_5, value_85;
551
+ return (0, _Seq.append)(vitalsConfig.IncludeBP ? (systolicStatus = VitalsField_getVitalStatus(parseNumeric(systolicBP), VitalsField_isValidSystolicBP, VitalsField_isCriticalSystolicBP, undefined), diastolicStatus = VitalsField_getVitalStatus(parseNumeric(diastolicBP), VitalsField_isValidDiastolicBP, VitalsField_isCriticalDiastolicBP, undefined), (0, _Seq.singleton)((0, _react.createElement)("div", (0, _Util.createObj)((0, _List.ofArray)([
552
+ [
553
+ "className",
554
+ "rounded-lg border border-slate-200 bg-white p-2.5 shadow-sm"
555
+ ],
556
+ (elems_7 = [
557
+ (0, _react.createElement)("div", (0, _Util.createObj)((0, _List.ofArray)([
558
+ [
559
+ "className",
560
+ "flex items-center justify-between gap-3"
561
+ ],
562
+ (elems_3 = [
563
+ (0, _react.createElement)("label", {
564
+ className: "text-xs font-semibold uppercase tracking-wide text-slate-700",
565
+ children: "Blood Pressure"
566
+ }),
567
+ (0, _react.createElement)("div", (0, _Util.createObj)((0, _List.ofArray)([
568
+ [
569
+ "className",
570
+ "inline-flex gap-2"
571
+ ],
572
+ (elems_2 = [
573
+ statusBadge(systolicStatus),
574
+ statusBadge(diastolicStatus)
575
+ ], [
576
+ "children",
577
+ _Interopfs.reactApi.Children.toArray(Array.from(elems_2))
578
+ ])
579
+ ])))
580
+ ], [
581
+ "children",
582
+ _Interopfs.reactApi.Children.toArray(Array.from(elems_3))
583
+ ])
584
+ ]))),
585
+ (0, _react.createElement)("div", (0, _Util.createObj)((0, _List.ofArray)([
586
+ [
587
+ "className",
588
+ "mt-1 grid grid-cols-[1fr_auto_1fr] items-center gap-1.5"
589
+ ],
590
+ (elems_6 = [
591
+ (0, _react.createElement)("div", (0, _Util.createObj)((0, _List.singleton)((elems_4 = [
592
+ (0, _react.createElement)("label", {
593
+ className: "text-[11px] font-medium text-slate-600",
594
+ children: "Systolic"
595
+ }),
596
+ (0, _react.createElement)("input", (0, _Util.createObj)((0, _List.ofArray)([
597
+ [
598
+ "type",
599
+ "number"
600
+ ],
601
+ (value_66 = "mt-1 block w-full rounded-md border border-slate-300 bg-white px-2.5 py-1.5 text-sm shadow-sm placeholder:text-slate-400 focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-500/30 disabled:cursor-not-allowed disabled:bg-slate-100 disabled:text-slate-500", [
602
+ "className",
603
+ value_66
604
+ ]),
605
+ [
606
+ "value",
607
+ systolicBP
608
+ ],
609
+ [
610
+ "placeholder",
611
+ "120"
612
+ ],
613
+ [
614
+ "disabled",
615
+ config.Disabled ? true : config.IsReadOnly
616
+ ],
617
+ [
618
+ "onChange",
619
+ (ev_1)=>{
620
+ patternInput_1[1](ev_1.target.value);
621
+ }
622
+ ]
623
+ ])))
624
+ ], [
625
+ "children",
626
+ _Interopfs.reactApi.Children.toArray(Array.from(elems_4))
627
+ ])))),
628
+ (0, _react.createElement)("div", {
629
+ className: "pt-4 text-base font-semibold text-slate-500",
630
+ children: "/"
631
+ }),
632
+ (0, _react.createElement)("div", (0, _Util.createObj)((0, _List.singleton)((elems_5 = [
633
+ (0, _react.createElement)("label", {
634
+ className: "text-[11px] font-medium text-slate-600",
635
+ children: "Diastolic"
636
+ }),
637
+ (0, _react.createElement)("input", (0, _Util.createObj)((0, _List.ofArray)([
638
+ [
639
+ "type",
640
+ "number"
641
+ ],
642
+ (value_85 = "mt-1 block w-full rounded-md border border-slate-300 bg-white px-2.5 py-1.5 text-sm shadow-sm placeholder:text-slate-400 focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-500/30 disabled:cursor-not-allowed disabled:bg-slate-100 disabled:text-slate-500", [
643
+ "className",
644
+ value_85
645
+ ]),
646
+ [
647
+ "value",
648
+ diastolicBP
649
+ ],
650
+ [
651
+ "placeholder",
652
+ "80"
653
+ ],
654
+ [
655
+ "disabled",
656
+ config.Disabled ? true : config.IsReadOnly
657
+ ],
658
+ [
659
+ "onChange",
660
+ (ev_2)=>{
661
+ patternInput_2[1](ev_2.target.value);
662
+ }
663
+ ]
664
+ ])))
665
+ ], [
666
+ "children",
667
+ _Interopfs.reactApi.Children.toArray(Array.from(elems_5))
668
+ ]))))
669
+ ], [
670
+ "children",
671
+ _Interopfs.reactApi.Children.toArray(Array.from(elems_6))
672
+ ])
673
+ ]))),
674
+ (0, _react.createElement)("p", {
675
+ className: "mt-1 text-[11px] text-slate-500",
676
+ children: "mmHg"
677
+ })
678
+ ], [
679
+ "children",
680
+ _Interopfs.reactApi.Children.toArray(Array.from(elems_7))
681
+ ])
682
+ ]))))) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>(0, _Seq.append)(vitalsConfig.IncludePulse ? (0, _Seq.singleton)(createVitalInput("Pulse Rate", pulse, patternInput_3[1], "BPM", "72", VitalsField_isValidPulse, VitalsField_isCriticalPulse, undefined)) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>(0, _Seq.append)(vitalsConfig.IncludeRespiration ? (0, _Seq.singleton)(createVitalInput("Respiration Rate", respiration, patternInput_4[1], "per minute", "16", VitalsField_isValidRespiration, VitalsField_isCriticalRespiration, undefined)) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>(0, _Seq.append)(vitalsConfig.IncludeOxygenSat ? (0, _Seq.singleton)(createVitalInput("Oxygen Saturation", oxygenSat, patternInput_5[1], "%", "98", VitalsField_isValidOxygenSat, VitalsField_isCriticalOxygenSat, undefined)) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>vitalsConfig.IncludePainScale ? (0, _Seq.singleton)(createVitalInput("Pain Scale", painScale, patternInput_6[1], "0-10 scale", "0", VitalsField_isValidPainScale, (_arg)=>false, undefined)) : (0, _Seq.empty)()))))))));
683
+ })))), [
684
+ "children",
685
+ _Interopfs.reactApi.Children.toArray(Array.from(elems_8))
686
+ ])
687
+ ])))), (0, _Seq.delay)(()=>{
688
+ let elems_11, elems_10, elems_9;
689
+ return (0, _List.exists)((s_1)=>!(0, _String.isNullOrWhiteSpace)(s_1), (0, _List.ofArray)([
690
+ temperature,
691
+ systolicBP,
692
+ diastolicBP,
693
+ pulse,
694
+ respiration,
695
+ oxygenSat,
696
+ painScale
697
+ ])) ? (0, _Seq.singleton)((0, _react.createElement)("div", (0, _Util.createObj)((0, _List.ofArray)([
698
+ [
699
+ "className",
700
+ "rounded-lg border border-sky-200 bg-sky-50/60 p-2.5 shadow-sm"
701
+ ],
702
+ (elems_11 = [
703
+ (0, _react.createElement)("h6", {
704
+ className: "text-xs font-semibold uppercase tracking-wide text-sky-900",
705
+ children: "📋 Vital Signs Summary"
706
+ }),
707
+ (0, _react.createElement)("div", (0, _Util.createObj)((0, _List.ofArray)([
708
+ [
709
+ "className",
710
+ "mt-1.5 text-xs text-slate-700"
711
+ ],
712
+ (elems_10 = [
713
+ (0, _react.createElement)("div", (0, _Util.createObj)((0, _List.ofArray)([
714
+ [
715
+ "className",
716
+ "flex flex-wrap gap-1.5"
717
+ ],
718
+ (elems_9 = (0, _Seq.toList)((0, _Seq.delay)(()=>(0, _Seq.append)(vitalsConfig.IncludeTemperature && !(0, _String.isNullOrWhiteSpace)(temperature) ? (0, _Seq.singleton)((0, _react.createElement)("span", {
719
+ className: "rounded-md bg-white/80 px-2 py-0.5",
720
+ children: "🌡️ Temp " + temperature + "°F"
721
+ })) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>(0, _Seq.append)(vitalsConfig.IncludeBP && (!(0, _String.isNullOrWhiteSpace)(systolicBP) ? true : !(0, _String.isNullOrWhiteSpace)(diastolicBP)) ? (0, _Seq.singleton)((0, _react.createElement)("span", {
722
+ className: "rounded-md bg-white/80 px-2 py-0.5",
723
+ children: "💓 BP " + systolicBP + "/" + diastolicBP + " mmHg"
724
+ })) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>(0, _Seq.append)(vitalsConfig.IncludePulse && !(0, _String.isNullOrWhiteSpace)(pulse) ? (0, _Seq.singleton)((0, _react.createElement)("span", {
725
+ className: "rounded-md bg-white/80 px-2 py-0.5",
726
+ children: "💗 Pulse " + pulse + " BPM"
727
+ })) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>(0, _Seq.append)(vitalsConfig.IncludeRespiration && !(0, _String.isNullOrWhiteSpace)(respiration) ? (0, _Seq.singleton)((0, _react.createElement)("span", {
728
+ className: "rounded-md bg-white/80 px-2 py-0.5",
729
+ children: "🫁 Resp " + respiration + " RPM"
730
+ })) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>(0, _Seq.append)(vitalsConfig.IncludeOxygenSat && !(0, _String.isNullOrWhiteSpace)(oxygenSat) ? (0, _Seq.singleton)((0, _react.createElement)("span", {
731
+ className: "rounded-md bg-white/80 px-2 py-0.5",
732
+ children: "🩸 O2 " + oxygenSat + "%"
733
+ })) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>vitalsConfig.IncludePainScale && !(0, _String.isNullOrWhiteSpace)(painScale) ? (0, _Seq.singleton)((0, _react.createElement)("span", {
734
+ className: "rounded-md bg-white/80 px-2 py-0.5",
735
+ children: "😖 Pain " + painScale + "/10"
736
+ })) : (0, _Seq.empty)())))))))))))), [
737
+ "children",
738
+ _Interopfs.reactApi.Children.toArray(Array.from(elems_9))
739
+ ])
740
+ ])))
741
+ ], [
742
+ "children",
743
+ _Interopfs.reactApi.Children.toArray(Array.from(elems_10))
744
+ ])
745
+ ])))
746
+ ], [
747
+ "children",
748
+ _Interopfs.reactApi.Children.toArray(Array.from(elems_11))
749
+ ])
750
+ ])))) : (0, _Seq.empty)();
751
+ }));
752
+ })), [
753
+ "children",
754
+ _Interopfs.reactApi.Children.toArray(Array.from(elems_12))
755
+ ])
756
+ ]))));
757
+ }
758
+ class VitalsField_Field$1 extends _Typesfs.IStandardField$3 {
759
+ "Fable.Form.Simple.Bulma.IStandardField`3.RenderFieldZ43FEF6DC"(config) {
760
+ return (0, _react.createElement)(VitalsField_VitalsFieldComponent, config);
761
+ }
762
+ MapFieldValues(update) {
763
+ const _ = this;
764
+ return VitalsField_Field$1_$ctor_Z521739C7((0, _Fieldfs.mapValues)(update, _.innerField_1));
765
+ }
766
+ constructor(innerField){
767
+ super(innerField);
768
+ this.innerField_1 = innerField;
769
+ }
770
+ }
771
+ function VitalsField_Field$1_$reflection(gen0) {
772
+ return (0, _Reflection.class_type)("Fable.Form.Simple.Bulma.Fields.VitalsField.VitalsField.Field`1", [
773
+ gen0
774
+ ], VitalsField_Field$1, (0, _Typesfs.IStandardField$3_$reflection)(gen0, _Reflection.string_type, VitalsField_Attributes_$reflection()));
775
+ }
776
+ function VitalsField_Field$1_$ctor_Z521739C7(innerField) {
777
+ return new VitalsField_Field$1(innerField);
778
+ }
779
+ function Form_vitalsField(config) {
780
+ return VitalsField_form()(VitalsField_Field$1_$ctor_Z521739C7)(config);
781
+ }
782
+ const Form_pluginConfig = new _FormSpec.Spec_PluginFieldConfig("Fable.Form.Simple.Bulma.Fields.VitalsField");
783
+ const Form_PropertyKeys_Temperature = new _FormSpec.Shared_PluginPropertyKey("a1b2c3d4-5e6f-7890-abcd-ef1234567890");
784
+ const Form_PropertyKeys_SystolicBP = new _FormSpec.Shared_PluginPropertyKey("b2c3d4e5-6f78-90ab-cdef-123456789012");
785
+ const Form_PropertyKeys_DiastolicBP = new _FormSpec.Shared_PluginPropertyKey("c3d4e5f6-7890-abcd-ef12-345678901234");
786
+ const Form_PropertyKeys_Pulse = new _FormSpec.Shared_PluginPropertyKey("d4e5f678-90ab-cdef-1234-56789012345a");
787
+ const Form_PropertyKeys_Respiration = new _FormSpec.Shared_PluginPropertyKey("e5f67890-abcd-ef12-3456-789012345abc");
788
+ const Form_PropertyKeys_OxygenSaturation = new _FormSpec.Shared_PluginPropertyKey("f6789012-3456-789a-bcde-f012345678de");
789
+ const Form_PropertyKeys_PainScale = new _FormSpec.Shared_PluginPropertyKey("67890123-4567-89ab-cdef-0123456789ef");
790
+ const Form_enhancedVitalsConverter = new _PluginInterface.IPluginValueConverter((fieldKey, pluginValue)=>{
791
+ const vitalsData = pluginValue;
792
+ return (0, _FormSpec.Shared_FieldValue_PluginData)((0, _Seq.toList)((0, _Seq.delay)(()=>(0, _Seq.append)(vitalsData.Temperature != null ? (0, _Seq.singleton)(new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Temperature, "temperature", "float", (0, _Option.value)(vitalsData.Temperature).toString(), "Temperature", "°F", "Body temperature in Fahrenheit")) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>(0, _Seq.append)(vitalsData.SystolicBP != null ? (0, _Seq.singleton)(new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_SystolicBP, "systolic_bp", "float", (0, _Option.value)(vitalsData.SystolicBP).toString(), "Systolic BP", "mmHg", "Systolic blood pressure")) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>(0, _Seq.append)(vitalsData.DiastolicBP != null ? (0, _Seq.singleton)(new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_DiastolicBP, "diastolic_bp", "float", (0, _Option.value)(vitalsData.DiastolicBP).toString(), "Diastolic BP", "mmHg", "Diastolic blood pressure")) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>(0, _Seq.append)(vitalsData.Pulse != null ? (0, _Seq.singleton)(new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Pulse, "pulse", "float", (0, _Option.value)(vitalsData.Pulse).toString(), "Pulse Rate", "BPM", "Heart rate in beats per minute")) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>(0, _Seq.append)(vitalsData.Respiration != null ? (0, _Seq.singleton)(new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Respiration, "respiration", "float", (0, _Option.value)(vitalsData.Respiration).toString(), "Respiration Rate", "RPM", "Respiratory rate per minute")) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>(0, _Seq.append)(vitalsData.OxygenSaturation != null ? (0, _Seq.singleton)(new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_OxygenSaturation, "oxygen_saturation", "float", (0, _Option.value)(vitalsData.OxygenSaturation).toString(), "O2 Saturation", "%", "Oxygen saturation percentage")) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>vitalsData.PainScale != null ? (0, _Seq.singleton)(new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_PainScale, "pain_scale", "float", (0, _Option.value)(vitalsData.PainScale).toString(), "Pain Level", "/10", "Pain scale from 0 to 10")) : (0, _Seq.empty)())))))))))))))));
793
+ }, (fieldValue)=>{
794
+ switch(fieldValue.tag){
795
+ case /* PluginData */ 3:
796
+ {
797
+ const properties = fieldValue.fields[0];
798
+ const getPropertyValue = (name)=>(0, _Option.bind)((p_1)=>{
799
+ let matchValue;
800
+ let outArg = 0;
801
+ matchValue = [
802
+ (0, _Double.tryParse)(p_1.Value, new _Types.FSharpRef(()=>outArg, (v)=>{
803
+ outArg = v;
804
+ })),
805
+ outArg
806
+ ];
807
+ if (matchValue[0]) {
808
+ return matchValue[1];
809
+ } else {
810
+ return undefined;
811
+ }
812
+ }, (0, _List.tryFind)((p)=>p.Name === name, properties));
813
+ return (0, _Option.some)(new VitalsField_VitalsData(getPropertyValue("temperature"), getPropertyValue("systolic_bp"), getPropertyValue("diastolic_bp"), getPropertyValue("pulse"), getPropertyValue("respiration"), getPropertyValue("oxygen_saturation"), getPropertyValue("pain_scale")));
814
+ }
815
+ case /* Single */ 0:
816
+ return (0, _Option.some)(VitalsField_parseVitalsData(fieldValue.fields[0].Value));
817
+ default:
818
+ return undefined;
819
+ }
820
+ }, ()=>undefined, ()=>(0, _List.ofArray)([
821
+ "temperature",
822
+ "systolic_bp",
823
+ "diastolic_bp",
824
+ "pulse",
825
+ "respiration",
826
+ "oxygen_saturation",
827
+ "pain_scale"
828
+ ]), (propertyName)=>propertyName === "temperature" ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Temperature, "temperature", "float", "", "Temperature", "°F", "Body temperature in Fahrenheit") : propertyName === "systolic_bp" ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_SystolicBP, "systolic_bp", "float", "", "Systolic BP", "mmHg", "Systolic blood pressure") : propertyName === "diastolic_bp" ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_DiastolicBP, "diastolic_bp", "float", "", "Diastolic BP", "mmHg", "Diastolic blood pressure") : propertyName === "pulse" ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Pulse, "pulse", "float", "", "Pulse Rate", "BPM", "Heart rate in beats per minute") : propertyName === "respiration" ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Respiration, "respiration", "float", "", "Respiration Rate", "RPM", "Respiratory rate per minute") : propertyName === "oxygen_saturation" ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_OxygenSaturation, "oxygen_saturation", "float", "", "O2 Saturation", "%", "Oxygen saturation percentage") : propertyName === "pain_scale" ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_PainScale, "pain_scale", "float", "", "Pain Level", "/10", "Pain scale from 0 to 10") : undefined, (propertyKey)=>(0, _Util.equals)(propertyKey, Form_PropertyKeys_Temperature) ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Temperature, "temperature", "float", "", "Temperature", "°F", "Body temperature in Fahrenheit") : (0, _Util.equals)(propertyKey, Form_PropertyKeys_SystolicBP) ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_SystolicBP, "systolic_bp", "float", "", "Systolic BP", "mmHg", "Systolic blood pressure") : (0, _Util.equals)(propertyKey, Form_PropertyKeys_DiastolicBP) ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_DiastolicBP, "diastolic_bp", "float", "", "Diastolic BP", "mmHg", "Diastolic blood pressure") : (0, _Util.equals)(propertyKey, Form_PropertyKeys_Pulse) ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Pulse, "pulse", "float", "", "Pulse Rate", "BPM", "Heart rate in beats per minute") : (0, _Util.equals)(propertyKey, Form_PropertyKeys_Respiration) ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Respiration, "respiration", "float", "", "Respiration Rate", "RPM", "Respiratory rate per minute") : (0, _Util.equals)(propertyKey, Form_PropertyKeys_OxygenSaturation) ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_OxygenSaturation, "oxygen_saturation", "float", "", "O2 Saturation", "%", "Oxygen saturation percentage") : (0, _Util.equals)(propertyKey, Form_PropertyKeys_PainScale) ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_PainScale, "pain_scale", "float", "", "Pain Level", "/10", "Pain scale from 0 to 10") : undefined, (propertyName_1, fieldValue_1)=>{
829
+ switch(fieldValue_1.tag){
830
+ case /* PluginData */ 3:
831
+ return (0, _List.tryFind)((p_2)=>p_2.Name === propertyName_1, fieldValue_1.fields[0]);
832
+ case /* Single */ 0:
833
+ {
834
+ const vitalsData_1 = VitalsField_parseVitalsData(fieldValue_1.fields[0].Value);
835
+ return propertyName_1 === "temperature" ? (0, _Option.map)((v_1)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Temperature, "temperature", "float", v_1.toString(), "Temperature", "°F", "Body temperature in Fahrenheit"), vitalsData_1.Temperature) : propertyName_1 === "systolic_bp" ? (0, _Option.map)((v_2)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_SystolicBP, "systolic_bp", "float", v_2.toString(), "Systolic BP", "mmHg", "Systolic blood pressure"), vitalsData_1.SystolicBP) : propertyName_1 === "diastolic_bp" ? (0, _Option.map)((v_3)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_DiastolicBP, "diastolic_bp", "float", v_3.toString(), "Diastolic BP", "mmHg", "Diastolic blood pressure"), vitalsData_1.DiastolicBP) : propertyName_1 === "pulse" ? (0, _Option.map)((v_4)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Pulse, "pulse", "float", v_4.toString(), "Pulse Rate", "BPM", "Heart rate in beats per minute"), vitalsData_1.Pulse) : propertyName_1 === "respiration" ? (0, _Option.map)((v_5)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Respiration, "respiration", "float", v_5.toString(), "Respiration Rate", "RPM", "Respiratory rate per minute"), vitalsData_1.Respiration) : propertyName_1 === "oxygen_saturation" ? (0, _Option.map)((v_6)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_OxygenSaturation, "oxygen_saturation", "float", v_6.toString(), "O2 Saturation", "%", "Oxygen saturation percentage"), vitalsData_1.OxygenSaturation) : propertyName_1 === "pain_scale" ? (0, _Option.map)((v_7)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_PainScale, "pain_scale", "float", v_7.toString(), "Pain Level", "/10", "Pain scale from 0 to 10"), vitalsData_1.PainScale) : undefined;
836
+ }
837
+ default:
838
+ return undefined;
839
+ }
840
+ }, (propertyKey_1, fieldValue_2)=>{
841
+ switch(fieldValue_2.tag){
842
+ case /* PluginData */ 3:
843
+ return (0, _List.tryFind)((p_3)=>(0, _Util.equals)(p_3.PropertyKey, propertyKey_1), fieldValue_2.fields[0]);
844
+ case /* Single */ 0:
845
+ {
846
+ const vitalsData_2 = VitalsField_parseVitalsData(fieldValue_2.fields[0].Value);
847
+ return (0, _Util.equals)(propertyKey_1, Form_PropertyKeys_Temperature) ? (0, _Option.map)((v_8)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Temperature, "temperature", "float", v_8.toString(), "Temperature", "°F", "Body temperature in Fahrenheit"), vitalsData_2.Temperature) : (0, _Util.equals)(propertyKey_1, Form_PropertyKeys_SystolicBP) ? (0, _Option.map)((v_9)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_SystolicBP, "systolic_bp", "float", v_9.toString(), "Systolic BP", "mmHg", "Systolic blood pressure"), vitalsData_2.SystolicBP) : (0, _Util.equals)(propertyKey_1, Form_PropertyKeys_DiastolicBP) ? (0, _Option.map)((v_10)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_DiastolicBP, "diastolic_bp", "float", v_10.toString(), "Diastolic BP", "mmHg", "Diastolic blood pressure"), vitalsData_2.DiastolicBP) : (0, _Util.equals)(propertyKey_1, Form_PropertyKeys_Pulse) ? (0, _Option.map)((v_11)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Pulse, "pulse", "float", v_11.toString(), "Pulse Rate", "BPM", "Heart rate in beats per minute"), vitalsData_2.Pulse) : (0, _Util.equals)(propertyKey_1, Form_PropertyKeys_Respiration) ? (0, _Option.map)((v_12)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Respiration, "respiration", "float", v_12.toString(), "Respiration Rate", "RPM", "Respiratory rate per minute"), vitalsData_2.Respiration) : (0, _Util.equals)(propertyKey_1, Form_PropertyKeys_OxygenSaturation) ? (0, _Option.map)((v_13)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_OxygenSaturation, "oxygen_saturation", "float", v_13.toString(), "O2 Saturation", "%", "Oxygen saturation percentage"), vitalsData_2.OxygenSaturation) : (0, _Util.equals)(propertyKey_1, Form_PropertyKeys_PainScale) ? (0, _Option.map)((v_14)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_PainScale, "pain_scale", "float", v_14.toString(), "Pain Level", "/10", "Pain scale from 0 to 10"), vitalsData_2.PainScale) : undefined;
848
+ }
849
+ default:
850
+ return undefined;
851
+ }
852
+ }, (propertyName_2, value_1)=>{
853
+ switch(propertyName_2){
854
+ case "temperature":
855
+ {
856
+ let matchValue_1;
857
+ let outArg_1 = 0;
858
+ matchValue_1 = [
859
+ (0, _Double.tryParse)(value_1, new _Types.FSharpRef(()=>outArg_1, (v_15)=>{
860
+ outArg_1 = v_15;
861
+ })),
862
+ outArg_1
863
+ ];
864
+ return matchValue_1[0] ? VitalsField_isValidTemperature(matchValue_1[1]) ? (0, _Result.FSharpResult$2_Ok)(undefined) : (0, _Result.FSharpResult$2_Error)("Temperature must be between 95-108°F, got " + matchValue_1[1].toString() + "°F") : (0, _Result.FSharpResult$2_Error)("Temperature must be a valid number");
865
+ }
866
+ case "systolic_bp":
867
+ {
868
+ let matchValue_2;
869
+ let outArg_2 = 0;
870
+ matchValue_2 = [
871
+ (0, _Double.tryParse)(value_1, new _Types.FSharpRef(()=>outArg_2, (v_19)=>{
872
+ outArg_2 = v_19;
873
+ })),
874
+ outArg_2
875
+ ];
876
+ return matchValue_2[0] ? VitalsField_isValidSystolicBP(matchValue_2[1]) ? (0, _Result.FSharpResult$2_Ok)(undefined) : (0, _Result.FSharpResult$2_Error)("Systolic BP must be between 60-200 mmHg, got " + matchValue_2[1].toString()) : (0, _Result.FSharpResult$2_Error)("Systolic BP must be a valid number");
877
+ }
878
+ case "diastolic_bp":
879
+ {
880
+ let matchValue_3;
881
+ let outArg_3 = 0;
882
+ matchValue_3 = [
883
+ (0, _Double.tryParse)(value_1, new _Types.FSharpRef(()=>outArg_3, (v_23)=>{
884
+ outArg_3 = v_23;
885
+ })),
886
+ outArg_3
887
+ ];
888
+ return matchValue_3[0] ? VitalsField_isValidDiastolicBP(matchValue_3[1]) ? (0, _Result.FSharpResult$2_Ok)(undefined) : (0, _Result.FSharpResult$2_Error)("Diastolic BP must be between 40-120 mmHg, got " + matchValue_3[1].toString()) : (0, _Result.FSharpResult$2_Error)("Diastolic BP must be a valid number");
889
+ }
890
+ case "pulse":
891
+ {
892
+ let matchValue_4;
893
+ let outArg_4 = 0;
894
+ matchValue_4 = [
895
+ (0, _Double.tryParse)(value_1, new _Types.FSharpRef(()=>outArg_4, (v_27)=>{
896
+ outArg_4 = v_27;
897
+ })),
898
+ outArg_4
899
+ ];
900
+ return matchValue_4[0] ? VitalsField_isValidPulse(matchValue_4[1]) ? (0, _Result.FSharpResult$2_Ok)(undefined) : (0, _Result.FSharpResult$2_Error)("Pulse must be between 40-180 BPM, got " + matchValue_4[1].toString()) : (0, _Result.FSharpResult$2_Error)("Pulse must be a valid number");
901
+ }
902
+ case "respiration":
903
+ {
904
+ let matchValue_5;
905
+ let outArg_5 = 0;
906
+ matchValue_5 = [
907
+ (0, _Double.tryParse)(value_1, new _Types.FSharpRef(()=>outArg_5, (v_31)=>{
908
+ outArg_5 = v_31;
909
+ })),
910
+ outArg_5
911
+ ];
912
+ return matchValue_5[0] ? VitalsField_isValidRespiration(matchValue_5[1]) ? (0, _Result.FSharpResult$2_Ok)(undefined) : (0, _Result.FSharpResult$2_Error)("Respiration rate must be between 8-35 RPM, got " + matchValue_5[1].toString()) : (0, _Result.FSharpResult$2_Error)("Respiration rate must be a valid number");
913
+ }
914
+ case "oxygen_saturation":
915
+ {
916
+ let matchValue_6;
917
+ let outArg_6 = 0;
918
+ matchValue_6 = [
919
+ (0, _Double.tryParse)(value_1, new _Types.FSharpRef(()=>outArg_6, (v_35)=>{
920
+ outArg_6 = v_35;
921
+ })),
922
+ outArg_6
923
+ ];
924
+ return matchValue_6[0] ? VitalsField_isValidOxygenSat(matchValue_6[1]) ? (0, _Result.FSharpResult$2_Ok)(undefined) : (0, _Result.FSharpResult$2_Error)("Oxygen saturation must be between 70-100%, got " + matchValue_6[1].toString() + "%") : (0, _Result.FSharpResult$2_Error)("Oxygen saturation must be a valid number");
925
+ }
926
+ case "pain_scale":
927
+ {
928
+ let matchValue_7;
929
+ let outArg_7 = 0;
930
+ matchValue_7 = [
931
+ (0, _Double.tryParse)(value_1, new _Types.FSharpRef(()=>outArg_7, (v_39)=>{
932
+ outArg_7 = v_39;
933
+ })),
934
+ outArg_7
935
+ ];
936
+ return matchValue_7[0] ? VitalsField_isValidPainScale(matchValue_7[1]) ? (0, _Result.FSharpResult$2_Ok)(undefined) : (0, _Result.FSharpResult$2_Error)("Pain scale must be between 0-10, got " + matchValue_7[1].toString()) : (0, _Result.FSharpResult$2_Error)("Pain scale must be a valid number");
937
+ }
938
+ default:
939
+ return (0, _Result.FSharpResult$2_Error)("Unknown property: " + propertyName_2);
940
+ }
941
+ }, (fieldValue_3)=>{
942
+ switch(fieldValue_3.tag){
943
+ case /* PluginData */ 3:
944
+ return fieldValue_3.fields[0];
945
+ case /* Single */ 0:
946
+ {
947
+ const vitalsData_3 = VitalsField_parseVitalsData(fieldValue_3.fields[0].Value);
948
+ return (0, _Seq.toList)((0, _Seq.delay)(()=>(0, _Seq.append)(vitalsData_3.Temperature != null ? (0, _Seq.singleton)(new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Temperature, "temperature", "float", (0, _Option.value)(vitalsData_3.Temperature).toString(), "Temperature", "°F", "Body temperature in Fahrenheit")) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>(0, _Seq.append)(vitalsData_3.SystolicBP != null ? (0, _Seq.singleton)(new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_SystolicBP, "systolic_bp", "float", (0, _Option.value)(vitalsData_3.SystolicBP).toString(), "Systolic BP", "mmHg", "Systolic blood pressure")) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>(0, _Seq.append)(vitalsData_3.DiastolicBP != null ? (0, _Seq.singleton)(new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_DiastolicBP, "diastolic_bp", "float", (0, _Option.value)(vitalsData_3.DiastolicBP).toString(), "Diastolic BP", "mmHg", "Diastolic blood pressure")) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>(0, _Seq.append)(vitalsData_3.Pulse != null ? (0, _Seq.singleton)(new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Pulse, "pulse", "float", (0, _Option.value)(vitalsData_3.Pulse).toString(), "Pulse Rate", "BPM", "Heart rate in beats per minute")) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>(0, _Seq.append)(vitalsData_3.Respiration != null ? (0, _Seq.singleton)(new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Respiration, "respiration", "float", (0, _Option.value)(vitalsData_3.Respiration).toString(), "Respiration Rate", "RPM", "Respiratory rate per minute")) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>(0, _Seq.append)(vitalsData_3.OxygenSaturation != null ? (0, _Seq.singleton)(new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_OxygenSaturation, "oxygen_saturation", "float", (0, _Option.value)(vitalsData_3.OxygenSaturation).toString(), "O2 Saturation", "%", "Oxygen saturation percentage")) : (0, _Seq.empty)(), (0, _Seq.delay)(()=>vitalsData_3.PainScale != null ? (0, _Seq.singleton)(new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_PainScale, "pain_scale", "float", (0, _Option.value)(vitalsData_3.PainScale).toString(), "Pain Level", "/10", "Pain scale from 0 to 10")) : (0, _Seq.empty)()))))))))))))));
949
+ }
950
+ default:
951
+ return (0, _List.empty)();
952
+ }
953
+ });
954
+ function Form_designerPreview(props) {
955
+ let elems_4, elems_3, elems, elems_1, elems_2;
956
+ const children = [
957
+ (0, _react.createElement)("div", (0, _Util.createObj)((0, _ElementBuildersfs.Helpers_combineClasses)("box", (0, _List.ofArray)([
958
+ [
959
+ "style",
960
+ {
961
+ border: 1 + "px " + "dashed" + " " + "hsl(0, 0%, 86%)",
962
+ backgroundColor: "hsl(0, 0%, 98%)",
963
+ textAlign: "center",
964
+ padding: 20
965
+ }
966
+ ],
967
+ (elems_4 = [
968
+ (0, _react.createElement)("div", {
969
+ className: "has-text-weight-bold",
970
+ children: "🩺 Vital Signs",
971
+ style: {
972
+ marginBottom: 10
973
+ }
974
+ }),
975
+ (0, _react.createElement)("div", (0, _Util.createObj)((0, _ElementBuildersfs.Helpers_combineClasses)("columns", (0, _List.ofArray)([
976
+ [
977
+ "className",
978
+ "is-gapless"
979
+ ],
980
+ [
981
+ "className",
982
+ "is-mobile"
983
+ ],
984
+ (elems_3 = [
985
+ (0, _react.createElement)("div", (0, _Util.createObj)((0, _ElementBuildersfs.Helpers_combineClasses)("column", (0, _List.singleton)((elems = [
986
+ (0, _react.createElement)("input", (0, _Util.createObj)((0, _List.cons)([
987
+ "type",
988
+ "text"
989
+ ], (0, _ElementBuildersfs.Helpers_combineClasses)("input", (0, _List.ofArray)([
990
+ [
991
+ "readOnly",
992
+ true
993
+ ],
994
+ [
995
+ "placeholder",
996
+ "Temp °F"
997
+ ],
998
+ [
999
+ "style",
1000
+ {
1001
+ fontSize: 10 + "px"
1002
+ }
1003
+ ]
1004
+ ])))))
1005
+ ], [
1006
+ "children",
1007
+ _Interopfs.reactApi.Children.toArray(Array.from(elems))
1008
+ ]))))),
1009
+ (0, _react.createElement)("div", (0, _Util.createObj)((0, _ElementBuildersfs.Helpers_combineClasses)("column", (0, _List.singleton)((elems_1 = [
1010
+ (0, _react.createElement)("input", (0, _Util.createObj)((0, _List.cons)([
1011
+ "type",
1012
+ "text"
1013
+ ], (0, _ElementBuildersfs.Helpers_combineClasses)("input", (0, _List.ofArray)([
1014
+ [
1015
+ "readOnly",
1016
+ true
1017
+ ],
1018
+ [
1019
+ "placeholder",
1020
+ "BP"
1021
+ ],
1022
+ [
1023
+ "style",
1024
+ {
1025
+ fontSize: 10 + "px"
1026
+ }
1027
+ ]
1028
+ ])))))
1029
+ ], [
1030
+ "children",
1031
+ _Interopfs.reactApi.Children.toArray(Array.from(elems_1))
1032
+ ]))))),
1033
+ (0, _react.createElement)("div", (0, _Util.createObj)((0, _ElementBuildersfs.Helpers_combineClasses)("column", (0, _List.singleton)((elems_2 = [
1034
+ (0, _react.createElement)("input", (0, _Util.createObj)((0, _List.cons)([
1035
+ "type",
1036
+ "text"
1037
+ ], (0, _ElementBuildersfs.Helpers_combineClasses)("input", (0, _List.ofArray)([
1038
+ [
1039
+ "readOnly",
1040
+ true
1041
+ ],
1042
+ [
1043
+ "placeholder",
1044
+ "Pulse"
1045
+ ],
1046
+ [
1047
+ "style",
1048
+ {
1049
+ fontSize: 10 + "px"
1050
+ }
1051
+ ]
1052
+ ])))))
1053
+ ], [
1054
+ "children",
1055
+ _Interopfs.reactApi.Children.toArray(Array.from(elems_2))
1056
+ ])))))
1057
+ ], [
1058
+ "children",
1059
+ _Interopfs.reactApi.Children.toArray(Array.from(elems_3))
1060
+ ])
1061
+ ])))),
1062
+ (0, _react.createElement)("div", {
1063
+ style: {
1064
+ fontSize: 10 + "px",
1065
+ color: "hsl(0, 0%, 60%)",
1066
+ marginTop: 5
1067
+ },
1068
+ children: "Clinical-grade vital signs capture with validation"
1069
+ })
1070
+ ], [
1071
+ "children",
1072
+ _Interopfs.reactApi.Children.toArray(Array.from(elems_4))
1073
+ ])
1074
+ ]))))
1075
+ ];
1076
+ return (0, _react.createElement)("div", {
1077
+ className: "control",
1078
+ children: _Interopfs.reactApi.Children.toArray(Array.from(children))
1079
+ });
1080
+ }
1081
+ function Form_markdownRenderer(field, fieldDetails) {
1082
+ let value;
1083
+ const matchValue = fieldDetails.FieldValue;
1084
+ value = matchValue.tag === /* Single */ 0 ? matchValue.fields[0].Value : "";
1085
+ if ((0, _String.isNullOrWhiteSpace)(value)) {
1086
+ return `**${field.Label}:** *[No vital signs recorded]*`;
1087
+ } else {
1088
+ try {
1089
+ const vitalsData = VitalsField_parseVitalsData(value);
1090
+ if ((0, _List.exists)((option)=>option != null, (0, _List.ofArray)([
1091
+ vitalsData.Temperature,
1092
+ vitalsData.SystolicBP,
1093
+ vitalsData.DiastolicBP,
1094
+ vitalsData.Pulse,
1095
+ vitalsData.Respiration,
1096
+ vitalsData.OxygenSaturation,
1097
+ vitalsData.PainScale
1098
+ ]))) {
1099
+ let rows = (0, _List.ofArray)([
1100
+ "**" + field.Label + "** 🩺",
1101
+ "",
1102
+ "| Vital Sign | Value | Status |",
1103
+ "|------------|-------|--------|"
1104
+ ]);
1105
+ if (vitalsData.Temperature != null) {
1106
+ const temp = (0, _Option.value)(vitalsData.Temperature);
1107
+ const status = VitalsField_isCriticalTemperature(temp) ? "🚨 CRITICAL" : !VitalsField_isValidTemperature(temp) ? "⚠️ ABNORMAL" : !VitalsField_isNormalTemperature(temp) ? "⚠️ ABNORMAL" : "✅ Normal";
1108
+ rows = (0, _List.append)(rows, (0, _List.singleton)("| **Temperature** | " + (0, _String.toText)((0, _String.printf)("%.1f"))(temp) + "°F | " + status + " |"));
1109
+ }
1110
+ if (vitalsData.SystolicBP != null && vitalsData.DiastolicBP != null) {
1111
+ const sys = (0, _Option.value)(vitalsData.SystolicBP);
1112
+ const dia = (0, _Option.value)(vitalsData.DiastolicBP);
1113
+ const status_1 = (VitalsField_isCriticalSystolicBP(sys) ? true : VitalsField_isCriticalDiastolicBP(dia)) ? "🚨 CRITICAL" : (!VitalsField_isValidSystolicBP(sys) ? true : !VitalsField_isValidDiastolicBP(dia)) ? "⚠️ ABNORMAL" : "✅ Normal";
1114
+ rows = (0, _List.append)(rows, (0, _List.singleton)("| **Blood Pressure** | " + (0, _String.toText)((0, _String.printf)("%.0f"))(sys) + "/" + (0, _String.toText)((0, _String.printf)("%.0f"))(dia) + " mmHg | " + status_1 + " |"));
1115
+ }
1116
+ if (vitalsData.Pulse != null) {
1117
+ const pulse = (0, _Option.value)(vitalsData.Pulse);
1118
+ const status_2 = VitalsField_isCriticalPulse(pulse) ? "🚨 CRITICAL" : !VitalsField_isValidPulse(pulse) ? "⚠️ ABNORMAL" : "✅ Normal";
1119
+ rows = (0, _List.append)(rows, (0, _List.singleton)("| **Pulse Rate** | " + (0, _String.toText)((0, _String.printf)("%.0f"))(pulse) + " BPM | " + status_2 + " |"));
1120
+ }
1121
+ if (vitalsData.Respiration != null) {
1122
+ const resp = (0, _Option.value)(vitalsData.Respiration);
1123
+ const status_3 = VitalsField_isCriticalRespiration(resp) ? "🚨 CRITICAL" : !VitalsField_isValidRespiration(resp) ? "⚠️ ABNORMAL" : "✅ Normal";
1124
+ rows = (0, _List.append)(rows, (0, _List.singleton)("| **Respiration** | " + (0, _String.toText)((0, _String.printf)("%.0f"))(resp) + " RPM | " + status_3 + " |"));
1125
+ }
1126
+ if (vitalsData.OxygenSaturation != null) {
1127
+ const sat = (0, _Option.value)(vitalsData.OxygenSaturation);
1128
+ const status_4 = VitalsField_isCriticalOxygenSat(sat) ? "🚨 CRITICAL" : !VitalsField_isValidOxygenSat(sat) ? "⚠️ ABNORMAL" : "✅ Normal";
1129
+ rows = (0, _List.append)(rows, (0, _List.singleton)("| **O2 Saturation** | " + (0, _String.toText)((0, _String.printf)("%.0f"))(sat) + "% | " + status_4 + " |"));
1130
+ }
1131
+ if (vitalsData.PainScale != null) {
1132
+ const pain = (0, _Option.value)(vitalsData.PainScale);
1133
+ const status_5 = pain >= 7 ? "🔴 Severe" : pain >= 4 ? "🟡 Moderate" : "🟢 Mild";
1134
+ rows = (0, _List.append)(rows, (0, _List.singleton)("| **Pain Scale** | " + (0, _String.toText)((0, _String.printf)("%.0f"))(pain) + "/10 | " + status_5 + " |"));
1135
+ }
1136
+ rows = (0, _List.append)(rows, (0, _List.ofArray)([
1137
+ "",
1138
+ "> 📋 *Vital signs recorded with clinical validation and alerts*"
1139
+ ]));
1140
+ return (0, _String.join)("\n", rows);
1141
+ } else {
1142
+ return "**" + field.Label + ":** *[No complete vital signs recorded]*";
1143
+ }
1144
+ } catch (ex) {
1145
+ return "**" + field.Label + ":** *[Error processing vital signs data: " + ex.message + "]*";
1146
+ }
1147
+ }
1148
+ } //# sourceMappingURL=VitalsField.ts.map
1149
+
1150
+ //# sourceMappingURL=VitalsField.js.map