@f1studio/form-spec 5.0.0-alpha.149 → 5.0.0-alpha.152

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 (255) hide show
  1. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.d.ts.map +1 -1
  2. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.d.ts +5 -3
  3. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.d.ts.map +1 -1
  4. package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.d.ts +19 -0
  5. package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.d.ts.map +1 -0
  6. package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.d.ts +39 -2
  7. package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.d.ts.map +1 -1
  8. package/FormSpec.FS/Interop/Facade/BlueprintFilledForm.d.ts +16 -0
  9. package/FormSpec.FS/Interop/Facade/BlueprintFilledForm.d.ts.map +1 -1
  10. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js +3 -3
  11. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js.map +1 -1
  12. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js +2 -2
  13. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js.map +1 -1
  14. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js +1 -1
  15. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js.map +1 -1
  16. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js +23 -21
  17. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js.map +1 -1
  18. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js +16 -7
  19. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js.map +1 -1
  20. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.js +580 -0
  21. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.js.map +1 -0
  22. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js +199 -8
  23. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js.map +1 -1
  24. package/FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.js +25 -1
  25. package/FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.js.map +1 -1
  26. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.js.map +1 -1
  27. package/README.md +7 -7
  28. package/package.json +13 -15
  29. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.ts +3 -3
  30. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts +3 -3
  31. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.ts +1 -1
  32. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts +25 -23
  33. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.ts +19 -13
  34. package/src/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.ts +545 -0
  35. package/src/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts +120 -14
  36. package/src/FormSpec.FS/Interop/Facade/BlueprintFilledForm.ts +29 -1
  37. package/FormSpec.TS/FormSpec.FS/BitmaskHelpers.ts.map +0 -1
  38. package/FormSpec.TS/FormSpec.FS/BlueprintValidation.ts.map +0 -1
  39. package/FormSpec.TS/FormSpec.FS/Components/HelloComponent.ts.map +0 -1
  40. package/FormSpec.TS/FormSpec.FS/Designer.ts.map +0 -1
  41. package/FormSpec.TS/FormSpec.FS/FormSpec.ts.map +0 -1
  42. package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.ts.map +0 -1
  43. package/FormSpec.TS/FormSpec.FS/FormSpecValues.ts.map +0 -1
  44. package/FormSpec.TS/FormSpec.FS/Helpers.ts.map +0 -1
  45. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRAdapter.ts.map +0 -1
  46. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.ts.map +0 -1
  47. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts.map +0 -1
  48. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFormSpecValidator.ts.map +0 -1
  49. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSectioning.ts.map +0 -1
  50. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSemanticReportBuilder.ts.map +0 -1
  51. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRStepsBuilder.ts.map +0 -1
  52. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateMapper.ts.map +0 -1
  53. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.ts.map +0 -1
  54. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.ts.map +0 -1
  55. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts.map +0 -1
  56. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.ts.map +0 -1
  57. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/FormSpecToCoreMRInsert.ts.map +0 -1
  58. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/FormSystemAdapter.ts.map +0 -1
  59. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/ReactHookForm/ReactHookFormAdapter.ts.map +0 -1
  60. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/ReactHookForm/ReactHookFormTypes.ts.map +0 -1
  61. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/CoreMRTypes.ts.map +0 -1
  62. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateDecodeTypes.ts.map +0 -1
  63. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts.map +0 -1
  64. package/FormSpec.TS/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.ts.map +0 -1
  65. package/FormSpec.TS/FormSpec.FS/Interfaces.ts.map +0 -1
  66. package/FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.ts.map +0 -1
  67. package/FormSpec.TS/FormSpec.FS/Interop/Facade/FormAnswersGate.ts.map +0 -1
  68. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.ts.map +0 -1
  69. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.ts.map +0 -1
  70. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.ts.map +0 -1
  71. package/FormSpec.TS/FormSpec.FS/Logging/LogTypes.ts.map +0 -1
  72. package/FormSpec.TS/FormSpec.FS/Migrator.ts.map +0 -1
  73. package/FormSpec.TS/FormSpec.FS/PathwayDataExtractor.ts.map +0 -1
  74. package/FormSpec.TS/FormSpec.FS/PathwayExecutor.ts.map +0 -1
  75. package/FormSpec.TS/FormSpec.FS/PathwayValidator.ts.map +0 -1
  76. package/FormSpec.TS/FormSpec.FS/PluginInterface.ts.map +0 -1
  77. package/FormSpec.TS/FormSpec.FS/Prelude.ts.map +0 -1
  78. package/FormSpec.TS/FormSpec.FS/Provenance.ts.map +0 -1
  79. package/FormSpec.TS/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.ts.map +0 -1
  80. package/FormSpec.TS/FormSpec.FS/Renderers/MermaidRenderer.ts.map +0 -1
  81. package/FormSpec.TS/FormSpec.FS/Renderers/PathwayRenderers.ts.map +0 -1
  82. package/FormSpec.TS/PluginRegistration.ts.map +0 -1
  83. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.ts.map +0 -1
  84. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.ts.map +0 -1
  85. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Extra.ts.map +0 -1
  86. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Types.ts.map +0 -1
  87. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs +0 -511
  88. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs.ts.map +0 -1
  89. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs +0 -16
  90. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs.ts.map +0 -1
  91. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs +0 -50
  92. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs.ts.map +0 -1
  93. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Fable.Form.fableproj +0 -28
  94. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs +0 -24
  95. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs.ts.map +0 -1
  96. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Fable.Form.Simple.fableproj +0 -31
  97. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs +0 -178
  98. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.ts.map +0 -1
  99. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs +0 -47
  100. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs.ts.map +0 -1
  101. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs +0 -49
  102. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs.ts.map +0 -1
  103. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs +0 -52
  104. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs.ts.map +0 -1
  105. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs +0 -54
  106. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs.ts.map +0 -1
  107. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs +0 -48
  108. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs.ts.map +0 -1
  109. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Fable.Form.Simple.Bulma.fableproj +0 -53
  110. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs +0 -132
  111. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs.ts.map +0 -1
  112. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs +0 -537
  113. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs.ts.map +0 -1
  114. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs +0 -361
  115. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs.ts.map +0 -1
  116. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs +0 -52
  117. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs.ts.map +0 -1
  118. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs +0 -246
  119. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.ts.map +0 -1
  120. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs +0 -52
  121. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs.ts.map +0 -1
  122. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs +0 -56
  123. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs.ts.map +0 -1
  124. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs +0 -46
  125. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs.ts.map +0 -1
  126. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs +0 -51
  127. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs.ts.map +0 -1
  128. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs +0 -49
  129. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs.ts.map +0 -1
  130. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs +0 -60
  131. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs.ts.map +0 -1
  132. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs +0 -79
  133. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs.ts.map +0 -1
  134. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs +0 -44
  135. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs.ts.map +0 -1
  136. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs +0 -49
  137. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs.ts.map +0 -1
  138. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs +0 -59
  139. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs.ts.map +0 -1
  140. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs +0 -44
  141. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs.ts.map +0 -1
  142. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs +0 -143
  143. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.ts.map +0 -1
  144. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs +0 -36
  145. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs.ts.map +0 -1
  146. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs +0 -49
  147. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs.ts.map +0 -1
  148. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs +0 -67
  149. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs.ts.map +0 -1
  150. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs +0 -70
  151. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs.ts.map +0 -1
  152. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs +0 -76
  153. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs.ts.map +0 -1
  154. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/Fable.Form.Simple.Fields.Html.fableproj +0 -45
  155. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs +0 -105
  156. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs.ts.map +0 -1
  157. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs +0 -66
  158. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs.ts.map +0 -1
  159. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs +0 -72
  160. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs.ts.map +0 -1
  161. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs +0 -102
  162. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs.ts.map +0 -1
  163. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs +0 -83
  164. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs.ts.map +0 -1
  165. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs +0 -83
  166. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs.ts.map +0 -1
  167. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs +0 -63
  168. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs.ts.map +0 -1
  169. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs +0 -83
  170. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs.ts.map +0 -1
  171. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs +0 -92
  172. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs.ts.map +0 -1
  173. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs +0 -108
  174. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs.ts.map +0 -1
  175. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +0 -57
  176. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.ts.map +0 -1
  177. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +0 -20
  178. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs +0 -766
  179. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.ts.map +0 -1
  180. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +0 -31
  181. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.ts.map +0 -1
  182. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Extensions.fs +0 -17
  183. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs +0 -152
  184. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.ts.map +0 -1
  185. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Types.fableproj +0 -28
  186. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs +0 -218
  187. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.ts.map +0 -1
  188. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.Types.fableproj +0 -27
  189. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs +0 -82
  190. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.ts.map +0 -1
  191. package/FormSpec.TS/fable_modules/Feliz.2.8.0/BorderStyle.fs +0 -59
  192. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Colors.fs +0 -154
  193. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Colors.fs.ts.map +0 -1
  194. package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs +0 -52
  195. package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.ts.map +0 -1
  196. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Feliz.fableproj +0 -53
  197. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Fonts.fs +0 -240
  198. package/FormSpec.TS/fable_modules/Feliz.2.8.0/GridTypes.fs +0 -24
  199. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs +0 -11
  200. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs.ts.map +0 -1
  201. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Html.fs +0 -826
  202. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs +0 -176
  203. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs.ts.map +0 -1
  204. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs +0 -29
  205. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs.ts.map +0 -1
  206. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Key.fs +0 -65
  207. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Key.fs.ts.map +0 -1
  208. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Length.fs +0 -145
  209. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Locale.fs +0 -876
  210. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Properties.fs +0 -4085
  211. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Properties.fs.ts.map +0 -1
  212. package/FormSpec.TS/fable_modules/Feliz.2.8.0/React.fs +0 -494
  213. package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactDOM.fs +0 -25
  214. package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactDOM.fs.ts.map +0 -1
  215. package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactInterop.fs +0 -20
  216. package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactTypes.fs +0 -42
  217. package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactTypes.fs.ts.map +0 -1
  218. package/FormSpec.TS/fable_modules/Feliz.2.8.0/StyleTypes.fs +0 -57
  219. package/FormSpec.TS/fable_modules/Feliz.2.8.0/StyleTypes.fs.ts.map +0 -1
  220. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Styles.fs +0 -6378
  221. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Svg.fs +0 -1455
  222. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Svg.fs.ts.map +0 -1
  223. package/FormSpec.TS/fable_modules/Feliz.2.8.0/TextDecorationLine.fs +0 -13
  224. package/FormSpec.TS/fable_modules/Feliz.2.8.0/TextDecorationStyle.fs +0 -33
  225. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Transform.fs +0 -181
  226. package/FormSpec.TS/fable_modules/Feliz.2.8.0/TransformOrigin.fs +0 -17
  227. package/FormSpec.TS/fable_modules/Feliz.2.8.0/TransitionProperty.fs +0 -162
  228. package/FormSpec.TS/fable_modules/Feliz.2.8.0/TransitionTimingFunction.fs +0 -62
  229. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Types.fs +0 -13
  230. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Types.fs.ts.map +0 -1
  231. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Bulma.fs +0 -990
  232. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs +0 -179
  233. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.ts.map +0 -1
  234. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Feliz.Bulma.fableproj +0 -32
  235. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs +0 -1986
  236. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs.ts.map +0 -1
  237. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs +0 -7
  238. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs.ts.map +0 -1
  239. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/PropertyBuilders.fs +0 -8
  240. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Exports.fs +0 -14
  241. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Glutinum.Feliz.ReactSignaturePadWrapper.fableproj +0 -18
  242. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Interop.fs +0 -6
  243. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/ReactSignaturePadWrapper.fs +0 -32
  244. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs +0 -3
  245. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.ts.map +0 -1
  246. package/FormSpec.TS/fable_modules/project_cracked.json +0 -1
  247. package/FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.ts.map +0 -1
  248. package/FormSpec.TS/plugins/allergyfinder/src/AllergyLogic.ts.map +0 -1
  249. package/FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.ts.map +0 -1
  250. package/FormSpec.TS/plugins/bmi/src/BMIField.ts.map +0 -1
  251. package/FormSpec.TS/plugins/demographics/src/DemographicsField.ts.map +0 -1
  252. package/FormSpec.TS/plugins/likert/src/LikertField.ts.map +0 -1
  253. package/FormSpec.TS/plugins/signature/src/SignatureField.ts.map +0 -1
  254. package/FormSpec.TS/plugins/vitals/src/VitalsField.ts.map +0 -1
  255. package/FormSpec.TS/plugins/vitals/src/VitalsLogic.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["./Promise.fs"],"names":["a","fn","x","result","e","pr","p","enumerator","seq","body","guard","While","this","compensation","er","generator","onSuccess","onError","TryFinally","binder","resource","copyOfStruct"],"mappings":";;;;;;;;;;;;;;;;;;;;;WA4LS,AAALA;AAAmB,AAAAC,WAAGC;eAAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA6YzB,AAAgBF;;;;;;;;;;;;;;;;;;;WAwBX,AAALA,iFAAU,sBAAAC,IAAAE;;;;;;;;;;;;;;;;;;;;;;;;WA8BL,AAALH;AACU,YAAA,AAAAA;AAGEI,yBACJ,AAAAJ;AAAA,mBAAA,4CAAYI;;;AAFJC,oCAAR,AAAAJ,GAAA,AAAAD;AAAQ,mBAAA,AAAAK;;;;;;;;;;;;;;;;;;;;;WA0BX,AAALL,iFAAU,2BAAAC,IAAAE;;;;;;;;;;;;;;;;;QA4BQE;AAFFC,2BAAI,gBAAK;AACZC,uCAAA,cAAAC;AAAT;AAAA,eAAS,AAAAD;AAALP,yBAAK,AAAAO;AACL,AAAAD,kBAAUD,KAALC,GAAK,AAAAD,6BAAgB,AAAAI,KAAKT;;;;AADnC,oBAASO;;WAETD;;;;AAMA,QAAG,AAAAI;AACE,eAAA,AAAsCJ,4BAAtB,AAAAK,8BAAAC,OAAWF,OAAOJ;;;AAClC,eAAA,gBAAI;;;;;WAYT,AAA\u002BEA;AAAxD,AAAAO;eAAgBX;;AAAc,AAAAW;AAAgB,cAAMC;;;;;;;AAUnE;AAAI,uBAAA,AAAAC,sBAAqBC,WAAWC;;;AAEhC,oBAAG,AAAWA;AAAc,2BAAA,eAAOH;;;AAE/B;AAAkBd,uCAAd,AAAAiB,QAAQH;AAAM,\u002BBAAA,gBAAAd;;;AACP,\u002BBAAA,eAAOc;;;;;;AAE1B;AAAI,uBAAA,AAAAC,kBAAkBE;;;AAElB;AAAkBjB,mCAAd,AAAAiB,UAAQH;AAAM,2BAAA,gBAAAd;;;AACP,2BAAA,eAAOc;;;;;;;;WAIe,AAAAR,uBAAWJ;;;;WAGxD,AAAAgB,wCAAAN,OAAgB,AAAAO,OAAOC;AAAqBC,\u002BBAAAD;AAAA,oBAAAC","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -1,31 +0,0 @@
1
- [<AutoOpen>]
2
- module PromiseImpl
3
-
4
- let promise = Promise.PromiseBuilder()
5
-
6
- [<RequireQualifiedAccess>]
7
- module SettledValue =
8
-
9
- /// <summary>
10
- /// Helper functionm to convert a settled result into an F# result
11
- /// </summary>
12
- /// <param name="p">The settled result</param>
13
- /// <typeparam name="'T"></typeparam>
14
- /// <returns>The F# result</returns>
15
- /// <example>
16
- /// <code lang="fsharp">
17
- /// Promise.allSettled [success; rejection]
18
- /// |> Promise.iter (fun results ->
19
- /// for result in results do
20
- /// match SettledValue.toResult result with
21
- /// | Ok value ->
22
- /// printfn "Success: %A" value
23
- /// | Error err ->
24
- /// eprintfn "Error: %O" err
25
- /// )
26
- /// </code>
27
- /// </example>
28
- let toResult (p: Promise.SettledValue<'T>) =
29
- match p.status with
30
- | Promise.Fulfilled -> Ok p.value.Value
31
- | Promise.Rejected -> Error p.reason.Value
@@ -1 +0,0 @@
1
- {"version":3,"sources":["./PromiseImpl.fs"],"names":["matchValue","p"],"mappings":";;;;uCAGc;;;;;;AAyBAA,sCAAA,AAAAC;AAAA,QAAA,AAAAD;8CAEsB,MAAA,AAAAC;;;2CADF,MAAA,AAAAA","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -1,17 +0,0 @@
1
- [<AutoOpen>]
2
- module Fable.React.Extensions
3
-
4
- open Fable.Core
5
-
6
- type Browser.Types.Event with
7
- /// Access the value from target
8
- /// Equivalent to `(this.target :?> HTMLInputElement).value`
9
- [<Emit("$0.target.value")>]
10
- member this.Value: string =
11
- (this.target :?> Browser.Types.HTMLInputElement).value
12
-
13
- /// Access the checked property from target
14
- /// Equivalent to `(this.target :?> HTMLInputElement).checked`
15
- [<Emit("$0.target.checked")>]
16
- member this.Checked: bool =
17
- (this.target :?> Browser.Types.HTMLInputElement).``checked``
@@ -1,152 +0,0 @@
1
- namespace Fable.React
2
-
3
- open Fable.Core
4
-
5
- type IStateHook<'T> =
6
- [<Emit("$0[0]")>]
7
- abstract current: 'T
8
- [<Emit("$0[1]($1)")>]
9
- abstract update: 'T -> unit
10
- [<Emit("$0[1]($1)")>]
11
- abstract update: ('T -> 'T) -> unit
12
-
13
- // Alias kept for backwards compatibility
14
- type IRefHook<'T> = IRefValue<'T>
15
-
16
- type IReducerHook<'State,'Msg> =
17
- [<Emit("$0[0]")>]
18
- abstract current: 'State
19
- [<Emit("$0[1]($1)")>]
20
- abstract update: 'Msg -> unit
21
-
22
- type ITransitionHook =
23
- [<Emit("$0[0]")>]
24
- abstract isPending: bool
25
- [<Emit("$0[1]($1)")>]
26
- abstract startTransition: callback: (unit -> unit) -> unit
27
-
28
- type IHooks =
29
- /// Returns the current state with a function to update it.
30
- /// More info at https://reactjs.org/docs/hooks-reference.html#usestate
31
- abstract useState: initialState: 'T -> IStateHook<'T>
32
-
33
- /// Returns the current state with a function to update it.
34
- /// More info at https://reactjs.org/docs/hooks-reference.html#usestate
35
- [<Emit("$0.useState($1)")>]
36
- abstract useStateLazy: initialState: (unit->'T) -> IStateHook<'T>
37
-
38
- /// Accepts a function that contains imperative, possibly effectful code.
39
- /// More info at https://reactjs.org/docs/hooks-reference.html#useeffect
40
- abstract useEffect: effect: (unit->unit) * ?dependencies: obj[] -> unit
41
-
42
- /// Accepts a function that contains imperative, possibly effectful code.
43
- /// The signature is identical to useEffect, but it fires synchronously after
44
- /// all DOM mutations. Use this to read layout from the DOM and synchronously
45
- /// re-render. Updates scheduled inside useLayoutEffect will be flushed
46
- /// synchronously, before the browser has a chance to paint.
47
- /// More info at https://reactjs.org/docs/hooks-reference.html#uselayouteffect
48
- abstract useLayoutEffect: effect: (unit->unit) * ?dependencies: obj[] -> unit
49
-
50
- /// Accepts a function that contains effectful code and returns a disposable for clean-up
51
- /// More info at https://reactjs.org/docs/hooks-reference.html#useeffect
52
- [<Emit("""$0.useEffect(() => {
53
- const disp = $1();
54
- return () => disp.Dispose();
55
- }{{, $2}})""")>]
56
- abstract useEffectDisposable: effect: (unit->System.IDisposable) * ?dependencies: obj[] -> unit
57
-
58
- // abstract useCallback (callback: unit -> unit, dependencies: obj[]): unit -> unit
59
-
60
- /// Accepts a "create" function and an array of dependencies and returns a memoized value
61
- /// More info at https://reactjs.org/docs/hooks-reference.html#usememo
62
- abstract useMemo: callback: (unit->'T) * dependencies: obj[] -> 'T
63
-
64
- /// The returned object will persist for the full lifetime of the component.
65
- /// More info at https://reactjs.org/docs/hooks-reference.html#useref
66
- abstract useRef: initialValue: 'T -> IRefValue<'T>
67
-
68
- /// Accepts a context object (the value returned from createContext) and
69
- /// returns the current context value for that context. The current context
70
- /// value is determined by the value prop of the nearest <MyContext.Provider>
71
- /// above the calling component in the tree.
72
- /// More info at https://reactjs.org/docs/hooks-reference.html#usecontext
73
- abstract useContext: ctx: IContext<'T> -> 'T
74
-
75
- /// Display a label for custom hooks in React DevTools.
76
- /// More info at https://reactjs.org/docs/hooks-reference.html#usedebugvalue
77
- abstract useDebugValue: label: string -> unit
78
-
79
- /// Defers formatting of debug value until the Hook is actually inspected
80
- /// More info at https://reactjs.org/docs/hooks-reference.html#usedebugvalue
81
- abstract useDebugValue: value: 'T * format: ('T->string) -> unit
82
-
83
- /// An alternative to useState. Accepts a reducer of type (state, action) => newState, and returns the current state paired with a dispatch method.
84
- /// More info at https://reactjs.org/docs/hooks-reference.html#usereducer
85
- abstract useReducer: reducer: ('State -> 'Msg -> 'State) * initialState: 'State -> IReducerHook<'State, 'Msg>
86
-
87
- /// An alternative to useState. Accepts a reducer of type (state, action) => newState, and returns the current state paired with a dispatch method.
88
- /// More info at https://reactjs.org/docs/hooks-reference.html#usereducer
89
- abstract useReducer: reducer: ('State -> 'Msg -> 'State) * initialArg: 'I * init: ('I -> 'State) -> IReducerHook<'State, 'Msg>
90
-
91
- /// Returns a stateful value for the pending state of the transition, and a function to start it.
92
- /// More info at https://reactjs.org/docs/hooks-reference.html#usetransition
93
- /// Requires React 18.
94
- abstract useTransition: unit -> ITransitionHook
95
-
96
- /// useId is a hook for generating unique IDs that are stable across the server and client, while avoiding hydration mismatches.
97
- /// More info at https://reactjs.org/docs/hooks-reference.html#useid
98
- /// Requires React 18.
99
- abstract useId: unit -> string
100
-
101
- /// useDeferredValue accepts a value and returns a new copy of the value that will defer to more urgent updates. If the current render is the result of an urgent update, like user input, React will return the previous value and then render the new value after the urgent render has completed.
102
- /// More info at https://reactjs.org/docs/hooks-reference.html#usedeferredvalue
103
- /// Requires React 18.
104
- abstract useDeferredValue: 'T -> 'T
105
-
106
- [<AutoOpen>]
107
- module HookBindings =
108
- let private makeDummyStateHook value =
109
- { new IStateHook<'T> with
110
- member __.current = value
111
- member __.update(x: 'T) = ()
112
- member __.update(f: 'T->'T) = () }
113
-
114
- let private makeDummyReducerHook state =
115
- { new IReducerHook<'State,'Msg> with
116
- member __.current = state
117
- member __.update(msg: 'Msg) = () }
118
-
119
- let private makeDummyTransitionHook () =
120
- { new ITransitionHook with
121
- member __.isPending = false
122
- member __.startTransition callback = () }
123
-
124
- #if FABLE_REPL_LIB
125
- [<Global("React")>]
126
- #else
127
- [<Import("*", "react")>]
128
- #endif
129
- let Hooks: IHooks =
130
- // Placeholder for SSR
131
- { new IHooks with
132
- member __.useState(initialState: 'T) =
133
- makeDummyStateHook initialState
134
- member __.useStateLazy(initialState) =
135
- makeDummyStateHook (initialState())
136
- member __.useEffect(effect, dependencies) = ()
137
- member __.useEffectDisposable(effect, dependencies) = ()
138
- member __.useMemo(callback, dependencies) = callback()
139
- member __.useRef(initialValue) =
140
- { new IRefValue<_> with
141
- member __.current with get() = initialValue and set _ = () }
142
- member __.useContext ctx =
143
- (ctx :?> ISSRContext<_>).DefaultValue
144
- member __.useDebugValue(label): unit = ()
145
- member __.useDebugValue(value, format): unit = ()
146
- member __.useReducer(reducer,initialState) = makeDummyReducerHook initialState
147
- member __.useReducer(reducer, initialArgument, init) = makeDummyReducerHook (init initialArgument)
148
- member __.useTransition() = makeDummyTransitionHook()
149
- member __.useDeferredValue value = value
150
- member __.useId() = ""
151
- member __.useLayoutEffect(effect, dependencies) = ()
152
- }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["./Fable.React.Hooks.fs"],"names":["value","state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6GgCA;;;;;;;;;;iBAMAC;;;;;;;;mBAKE","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -1,28 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <Project Sdk="Microsoft.NET.Sdk">
3
- <PropertyGroup>
4
- <Version>18.3.0</Version>
5
- <PackageVersion>18.3.0</PackageVersion>
6
- <TargetFramework>netstandard2.0</TargetFramework>
7
- <!-- <DefineConstants>$(DefineConstants);FABLE_COMPILER</DefineConstants> -->
8
- <PackageTags>fsharp;fable;javascript;f#;js;react;fable-binding;fable-javascript</PackageTags>
9
- </PropertyGroup>
10
- <PropertyGroup>
11
- <NpmDependencies>
12
- <NpmPackage Name="react" Version="gte 18.0.0 lt 19.0.0" ResolutionStrategy="Max" />
13
- </NpmDependencies>
14
- </PropertyGroup>
15
- <ItemGroup>
16
- <Compile Include="Fable.React.fs" />
17
- <Compile Include="Fable.React.Hooks.fs" />
18
- <Compile Include="Fable.React.Extensions.fs" />
19
- </ItemGroup>
20
- <ItemGroup>
21
- <PackageReference Include="Fable.Core" Version="3.2.7" />
22
- <PackageReference Include="Fable.Browser.Dom" Version="2.4.4" />
23
- <PackageReference Update="FSharp.Core" Version="4.7.2" />
24
- </ItemGroup>
25
- <ItemGroup>
26
- <Content Include="*.fsproj; *.fs" PackagePath="fable\" />
27
- </ItemGroup>
28
- </Project>
@@ -1,218 +0,0 @@
1
- namespace Fable.React
2
-
3
- open System
4
- open Fable.Core
5
-
6
- type [<AllowNullLiteral>] ReactElement =
7
- interface end
8
-
9
- type ReactElementType =
10
- interface end
11
-
12
- type ReactElementType<'props> =
13
- inherit ReactElementType
14
-
15
- type IRefValue<'T> =
16
- abstract current: 'T with get, set
17
-
18
- type IContext<'T> =
19
- interface end
20
-
21
- type ISSRContext<'T> =
22
- inherit IContext<'T>
23
- abstract DefaultValue: 'T
24
-
25
- type IReactExports =
26
- /// Create and return a new React element of the given type. The type argument can be either a tag name string (such as 'div' or 'span'), a React component type (a class or a function), or a React fragment type.
27
- abstract createElement: comp: obj * props: obj * [<ParamList>] children: ReactElement seq -> ReactElement
28
-
29
- /// Creates a Context object. When React renders a component that subscribes to this Context object it will read the current context value from the closest matching Provider above it in the tree.
30
- abstract createContext: defaultValue: 'T -> IContext<'T>
31
-
32
- /// React.createRef creates a ref that can be attached to React elements via the ref attribute.
33
- abstract createRef: initialValue: 'T -> IRefValue<'T>
34
-
35
- /// React.forwardRef creates a React component that forwards the ref attribute it receives to another component below in the tree.
36
- abstract forwardRef: fn: ('props -> IRefValue<'T> option -> ReactElement) -> ReactElementType<'props>
37
-
38
- /// If your component renders the same result given the same props, you can wrap it in a call to React.memo for a performance boost in some cases by memoizing the result. This means that React will skip rendering the component, and reuse the last rendered result.
39
- abstract memo: render: ('props -> ReactElement) * areEqual: ('props -> 'props -> bool) -> ReactElementType<'props>
40
-
41
- /// The React.Fragment component lets you return multiple elements in a render() method without creating an additional DOM element.
42
- abstract Fragment: ReactElementType<obj>
43
-
44
- /// React.Suspense lets you specify the loading indicator in case some components in the tree below it are not yet ready to render. In the future we plan to let Suspense handle more scenarios such as data fetching.
45
- abstract Suspense: ReactElementType<obj>
46
-
47
- /// React.lazy() lets you define a component that is loaded dynamically. This helps reduce the bundle size to delay loading components that aren’t used during the initial render.
48
- abstract ``lazy``: f: (unit -> JS.Promise<'TIn>) -> 'TOut
49
-
50
- /// React.startTransition lets you mark updates inside the provided callback as transitions. This method is designed to be used when React.useTransition is not available.
51
- /// Requires React 18.
52
- abstract startTransition: callback: (unit -> unit) -> unit
53
-
54
- /// The React version.
55
- abstract version: string
56
-
57
- module ReactBindings =
58
- /// Mainly intended for internal use
59
- #if FABLE_REPL_LIB
60
- [<Global("React")>]
61
- #else
62
- [<Import("*", "react")>]
63
- #endif
64
- let React: IReactExports = jsNative
65
-
66
- /// Create a React component by inheriting this class as follows
67
- ///
68
- /// ```
69
- /// type MyComponent(initialProps) =
70
- /// inherit React.Component<MyProps, MyState>(initialProps)
71
- /// base.setInitState({ value = 5 })
72
- ///
73
- /// override this.render() =
74
- /// // Don't use captured `initialProps` from constructor,
75
- /// // use `this.props` instead (updated version)
76
- /// let msg = sprintf "Hello %s, you have %i €"
77
- /// this.props.name this.state.value
78
- /// div [] [ofString msg]
79
- /// ```
80
- type [<AbstractClass; Import("Component", "react")>] Component<'P,'S>(initProps: 'P) =
81
- [<Emit("$0.props")>]
82
- member __.props: 'P = initProps
83
-
84
- [<Emit("Array.prototype.concat($0.props.children || [])")>]
85
- member val children: ReactElement array = [| |] with get, set
86
-
87
- [<Emit("$0.state")>]
88
- member val state: 'S = Unchecked.defaultof<'S> with get, set
89
-
90
- /// ATTENTION: Within the constructor, use `setInitState`
91
- /// Enqueues changes to the component state and tells React that this component and its children need to be re-rendered with the updated state. This is the primary method you use to update the user interface in response to event handlers and server responses.
92
- /// Think of setState() as a request rather than an immediate command to update the component. For better perceived performance, React may delay it, and then update several components in a single pass. React does not guarantee that the state changes are applied immediately.
93
- /// setState() does not always immediately update the component. It may batch or defer the update until later. This makes reading this.state right after calling setState() a potential pitfall. Instead, use componentDidUpdate or a setState callback (setState(updater, callback)), either of which are guaranteed to fire after the update has been applied. If you need to set the state based on the previous state, read about the updater argument below.
94
- /// setState() will always lead to a re-render unless shouldComponentUpdate() returns false. If mutable objects are being used and conditional rendering logic cannot be implemented in shouldComponentUpdate(), calling setState() only when the new state differs from the previous state will avoid unnecessary re-renders.
95
- [<Obsolete("This overload is unsafe because it forces use of this.state. Use this.setState(updater: 'S->'P->'S) instead.")>]
96
- [<Emit("$0.setState($1)")>]
97
- member x.setState(value: 'S): unit = x.state <- value
98
-
99
- /// Overload of `setState` accepting updater function with the signature: `(prevState, props) => stateChange`
100
- /// prevState is a reference to the previous state. It should not be directly mutated. Instead, changes should be represented by building a new object based on the input from prevState and props.
101
- /// Both prevState and props received by the updater function are guaranteed to be up-to-date. The output of the updater is shallowly merged with prevState.
102
- [<Emit("$0.setState($1)")>]
103
- member x.setState(updater: 'S->'P->'S): unit = x.state <- updater x.state x.props
104
-
105
- /// This method can only be called in the constructor
106
- [<Emit("this.state = $1")>]
107
- member x.setInitState(value: 'S): unit = x.state <- value
108
-
109
- /// By default, when your component’s state or props change, your component will re-render. If your render() method depends on some other data, you can tell React that the component needs re-rendering by calling forceUpdate().
110
- /// Calling forceUpdate() will cause render() to be called on the component, skipping shouldComponentUpdate(). This will trigger the normal lifecycle methods for child components, including the shouldComponentUpdate() method of each child. React will still only update the DOM if the markup changes.
111
- /// Normally you should try to avoid all uses of forceUpdate() and only read from this.props and this.state in render().
112
- [<Emit("$0.forceUpdate($1)")>]
113
- member __.forceUpdate(?callBack: unit->unit): unit = ()
114
-
115
- [<Emit("$0.isMounted()")>]
116
- member __.isMounted(): bool = false
117
-
118
- /// Invoked immediately before mounting occurs. It is called before render(), therefore calling setState() synchronously in this method will not trigger an extra rendering. Generally, we recommend using the constructor() instead.
119
- /// Avoid introducing any side-effects or subscriptions in this method. For those use cases, use componentDidMount() instead.
120
- /// This is the only lifecycle hook called on server rendering.
121
- abstract componentWillMount: unit -> unit
122
- default __.componentWillMount () = ()
123
-
124
- /// Invoked immediately after a component is mounted. Initialization that requires DOM nodes should go here. If you need to load data from a remote endpoint, this is a good place to instantiate the network request.
125
- /// This method is a good place to set up any subscriptions. If you do that, don’t forget to unsubscribe in componentWillUnmount().
126
- /// Calling setState() in this method will trigger an extra rendering, but it is guaranteed to flush during the same tick. This guarantees that even though the render() will be called twice in this case, the user won’t see the intermediate state. Use this pattern with caution because it often causes performance issues. It can, however, be necessary for cases like modals and tooltips when you need to measure a DOM node before rendering something that depends on its size or position.
127
- abstract componentDidMount: unit -> unit
128
- default __.componentDidMount () = ()
129
-
130
- /// Invoked before a mounted component receives new props. If you need to update the state in response to prop changes (for example, to reset it), you may compare this.props and nextProps and perform state transitions using this.setState() in this method.
131
- /// Note that React may call this method even if the props have not changed, so make sure to compare the current and next values if you only want to handle changes. This may occur when the parent component causes your component to re-render.
132
- /// React doesn’t call componentWillReceiveProps() with initial props during mounting. It only calls this method if some of component’s props may update. Calling this.setState() generally doesn’t trigger componentWillReceiveProps().
133
- abstract componentWillReceiveProps: nextProps: 'P -> unit
134
- default __.componentWillReceiveProps (_) = ()
135
-
136
- /// Use shouldComponentUpdate() to let React know if a component’s output is not affected by the current change in state or props. The default behavior is to re-render on every state change, and in the vast majority of cases you should rely on the default behavior.
137
- /// shouldComponentUpdate() is invoked before rendering when new props or state are being received. Defaults to true. This method is not called for the initial render or when forceUpdate() is used.
138
- /// Returning false does not prevent child components from re-rendering when their state changes.
139
- /// Currently, if shouldComponentUpdate() returns false, then componentWillUpdate(), render(), and componentDidUpdate() will not be invoked. Note that in the future React may treat shouldComponentUpdate() as a hint rather than a strict directive, and returning false may still result in a re-rendering of the component.
140
- /// If you determine a specific component is slow after profiling, you may change it to inherit from React.PureComponent which implements shouldComponentUpdate() with a shallow prop and state comparison. If you are confident you want to write it by hand, you may compare this.props with nextProps and this.state with nextState and return false to tell React the update can be skipped.
141
- /// We do not recommend doing deep equality checks or using JSON.stringify() in shouldComponentUpdate(). It is very inefficient and will harm performance.
142
- abstract shouldComponentUpdate: nextProps: 'P * nextState: 'S -> bool
143
- default __.shouldComponentUpdate (_, _) = true
144
-
145
- /// Invoked immediately before rendering when new props or state are being received. Use this as an opportunity to perform preparation before an update occurs. This method is not called for the initial render.
146
- /// Note that you cannot call this.setState() here; nor should you do anything else (e.g. dispatch a Redux action) that would trigger an update to a React component before componentWillUpdate() returns.
147
- /// If you need to update state in response to props changes, use componentWillReceiveProps() instead.
148
- /// > componentWillUpdate() will not be invoked if shouldComponentUpdate() returns false.
149
- abstract componentWillUpdate: nextProps: 'P * nextState: 'S -> unit
150
- default __.componentWillUpdate (_, _) = ()
151
-
152
- /// Invoked immediately after updating occurs. This method is not called for the initial render.
153
- /// Use this as an opportunity to operate on the DOM when the component has been updated. This is also a good place to do network requests as long as you compare the current props to previous props (e.g. a network request may not be necessary if the props have not changed).
154
- /// > componentDidUpdate() will not be invoked if shouldComponentUpdate() returns false.
155
- abstract componentDidUpdate: prevProps: 'P * prevState: 'S -> unit
156
- default __.componentDidUpdate (_, _) = ()
157
-
158
- /// Invoked immediately before a component is unmounted and destroyed. Perform any necessary cleanup in this method, such as invalidating timers, canceling network requests, or cleaning up any subscriptions that were created in componentDidMount().
159
- abstract componentWillUnmount: unit -> unit
160
- default __.componentWillUnmount () = ()
161
-
162
- /// Error boundaries are React components that catch JavaScript errors anywhere in their child component tree, log those errors, and display a fallback UI instead of the component tree that crashed. Error boundaries catch errors during rendering, in lifecycle methods, and in constructors of the whole tree below them.
163
- /// A class component becomes an error boundary if it defines this lifecycle method. Calling setState() in it lets you capture an unhandled JavaScript error in the below tree and display a fallback UI. Only use error boundaries for recovering from unexpected exceptions; don’t try to use them for control flow.
164
- /// For more details, see [Error Handling in React 16](https://reactjs.org/blog/2017/07/26/error-handling-in-react-16.html).
165
- /// > Error boundaries only catch errors in the components below them in the tree. An error boundary can’t catch an error within itself.
166
- abstract componentDidCatch: error: Exception * info: obj -> unit
167
- default __.componentDidCatch (_, _) = ()
168
-
169
- /// This function should be pure, meaning that it does not modify component state, it returns the same result each time it’s invoked, and it does not directly interact with the browser. If you need to interact with the browser, perform your work in componentDidMount() or the other lifecycle methods instead. Keeping render() pure makes components easier to think about.
170
- /// > render() will not be invoked if shouldComponentUpdate() returns false.
171
- abstract render: unit -> ReactElement
172
-
173
- interface ReactElement
174
-
175
- /// A react component that implements `shouldComponentUpdate()` with a shallow prop and state comparison.
176
- ///
177
- /// Usage:
178
- /// ```
179
- /// type MyComponent(initialProps) =
180
- /// inherit React.PureComponent<MyProps, MyState>(initialProps)
181
- /// base.setInitState({ value = 5 })
182
- /// override this.render() =
183
- /// let msg = sprintf "Hello %s, you have %i €"
184
- /// this.props.name this.state.value
185
- /// div [] [ofString msg]
186
- /// ```
187
- type [<AbstractClass; Import("PureComponent", "react")>] PureComponent<'P, 'S>(props: 'P) =
188
- inherit Component<'P, 'S>(props)
189
-
190
- /// A react component that implements `shouldComponentUpdate()` with a shallow prop comparison.
191
- ///
192
- /// Usage:
193
- /// ```
194
- /// type MyComponent(initialProps) =
195
- /// inherit React.PureStatelessComponent<MyProps>(initialProps)
196
- /// override this.render() =
197
- /// let msg = sprintf "Hello %s, you have %i €"
198
- /// this.props.name this.props.value
199
- /// div [] [ofString msg]
200
- /// ```
201
- type [<AbstractClass; Import("PureComponent", "react")>] PureStatelessComponent<'P>(props: 'P) =
202
- inherit Component<'P, obj>(props)
203
-
204
- type FragmentProps = { key: string }
205
-
206
- type [<Import("Fragment", "react")>] Fragment(props: FragmentProps) =
207
- interface ReactElement
208
-
209
- // These are not React interfaces but we add them here in case other Fable libraries need them
210
-
211
- type IProp =
212
- interface end
213
-
214
- type IHTMLProp =
215
- inherit IProp
216
-
217
- type IFragmentProp =
218
- inherit IProp
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -1,27 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <Project Sdk="Microsoft.NET.Sdk">
3
- <PropertyGroup>
4
- <Version>18.2.0</Version>
5
- <PackageVersion>18.2.0</PackageVersion>
6
- <TargetFramework>netstandard2.0</TargetFramework>
7
- <!-- <DefineConstants>$(DefineConstants);FABLE_COMPILER</DefineConstants> -->
8
- <PackageTags>fsharp;fable;javascript;f#;js;react;fable-binding;fable-javascript</PackageTags>
9
- </PropertyGroup>
10
- <PropertyGroup>
11
- <NpmDependencies>
12
- <NpmPackage Name="react-dom" Version="gte 18.0.0 lt 19.0.0" ResolutionStrategy="Max" />
13
- </NpmDependencies>
14
- </PropertyGroup>
15
- <ItemGroup>
16
- <Compile Include="Fable.ReactDom.fs" />
17
- </ItemGroup>
18
- <ItemGroup>
19
- <PackageReference Update="FSharp.Core" Version="4.7.2" />
20
- </ItemGroup>
21
- <ItemGroup>
22
- <ProjectReference Include="..\Fable.React.Types\Fable.React.Types.fsproj" />
23
- </ItemGroup>
24
- <ItemGroup>
25
- <Content Include="*.fsproj; *.fs" PackagePath="fable\" />
26
- </ItemGroup>
27
- </Project>
@@ -1,82 +0,0 @@
1
- namespace Fable.React
2
-
3
- open Fable.Core
4
- open Fable.React
5
- open Browser.Types
6
-
7
- type IReactRoot =
8
- /// Render a React element into the root.
9
- abstract render: element: ReactElement -> unit
10
-
11
- /// Remove the root from the DOM.
12
- abstract unmount: unit -> unit
13
-
14
- type IRootOptions =
15
- /// Optional callback called when React automatically recovers from errors.
16
- abstract onRecoverableError: (obj -> unit) with get, set
17
-
18
- /// Optional prefix React uses for ids generated by React.useId. Useful to avoid conflicts when using multiple roots on the same page. Must be the same prefix used on the server.
19
- abstract identifierPrefix: string with get, set
20
-
21
- type ICreateRootOptions =
22
- inherit IRootOptions
23
-
24
- type IHydrateRootOptions =
25
- inherit IRootOptions
26
-
27
- type IReactDom =
28
- /// Render a React element into the DOM in the supplied container.
29
- /// If the React element was previously rendered into container, this will perform an update on it and only mutate the DOM as necessary to reflect the latest React element.
30
- /// If the optional callback is provided, it will be executed after the component is rendered or updated.
31
- abstract render: element: ReactElement * container: Element * ?callback: (unit->unit) -> unit
32
-
33
- /// Same as render(), but is used to hydrate a container whose HTML contents were rendered by ReactDOMServer. React will attempt to attach event listeners to the existing markup.
34
- abstract hydrate: element: ReactElement * container: Element * ?callback: (unit->unit) -> unit
35
-
36
- /// Remove a mounted React component from the DOM and clean up its event handlers and state. If no component was mounted in the container, calling this function does nothing. Returns true if a component was unmounted and false if there was no component to unmount.
37
- abstract unmountComponentAtNode: container: Element -> bool
38
-
39
- /// Creates a portal. Portals provide a way to render children into a DOM node that exists outside the hierarchy of the DOM component.
40
- abstract createPortal: child: ReactElement * container: Element -> ReactElement
41
-
42
- /// Force React to flush any updates inside the provided callback synchronously. This ensures that the DOM is updated immediately.
43
- abstract flushSync: callback: (unit -> unit) -> unit
44
-
45
- type IReactDomClient =
46
- /// Create a React root for the supplied container and return the root. The root can be used to render a React element into the DOM with render.
47
- /// Requires React 18.
48
- abstract createRoot: container: Element * ?options: ICreateRootOptions -> IReactRoot
49
-
50
- /// Same as createRoot(), but is used to hydrate a container whose HTML contents were rendered by ReactDOMServer. React will attempt to attach event listeners to the existing markup.
51
- /// Requires React 18.
52
- abstract hydrateRoot: container: Element * element: ReactElement * ?options: IHydrateRootOptions -> IReactRoot
53
-
54
- type IReactDomServer =
55
- /// Render a React element to its initial HTML. This should only be used on the server. React will return an HTML string. You can use this method to generate HTML on the server and send the markup down on the initial request for faster page loads and to allow search engines to crawl your pages for SEO purposes.
56
- /// If you call ReactDOM.render() on a node that already has this server-rendered markup, React will preserve it and only attach event handlers, allowing you to have a very performant first-load experience.
57
- abstract renderToString: element: ReactElement -> string
58
-
59
- /// Similar to renderToString, except this doesn't create extra DOM attributes such as data-reactid, that React uses internally. This is useful if you want to use React as a simple static page generator, as stripping away the extra attributes can save lots of bytes.
60
- abstract renderToStaticMarkup: element: ReactElement -> string
61
-
62
- [<AutoOpen>]
63
- module ReactDomBindings =
64
- #if FABLE_REPL_LIB
65
- [<Global("ReactDOM")>]
66
- #else
67
- [<Import("*", "react-dom")>]
68
- #endif
69
- let ReactDom: IReactDom = jsNative
70
-
71
- /// Requires React 18.
72
- #if FABLE_REPL_LIB
73
- [<Global("ReactDOM")>]
74
- #else
75
- [<Import("*", "react-dom/client")>]
76
- #endif
77
- let ReactDomClient: IReactDomClient = jsNative
78
-
79
- #if !FABLE_REPL_LIB
80
- [<Import("default", "react-dom/server")>]
81
- let ReactDomServer: IReactDomServer = jsNative
82
- #endif
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -1,59 +0,0 @@
1
- namespace Feliz
2
-
3
- open Fable.Core
4
- open Feliz.Styles
5
-
6
- [<Erase>]
7
- type borderStyle =
8
- /// Specifies a dashed border.
9
- ///
10
- /// See example https://www.w3schools.com/cssref/playit.asp?filename=playcss_border-style&preval=dashed
11
- static member inline dashed : IBorderStyle = unbox "dashed"
12
- /// Specifies a dotted border.
13
- ///
14
- /// See example https://www.w3schools.com/cssref/playit.asp?filename=playcss_border-style&preval=dotted
15
- static member inline dotted : IBorderStyle = unbox "dotted"
16
- /// Specifies a double border.
17
- ///
18
- /// See example https://www.w3schools.com/cssref/playit.asp?filename=playcss_border-style&preval=double
19
- static member inline double : IBorderStyle = unbox "double"
20
- /// Specifies a 3D grooved border. The effect depends on the border-color value.
21
- ///
22
- /// See example https://www.w3schools.com/cssref/playit.asp?filename=playcss_border-style&preval=groove
23
- static member inline groove : IBorderStyle = unbox "groove"
24
- /// The same as "none", except in border conflict resolution for table elements.
25
- ///
26
- /// See example https://www.w3schools.com/cssref/playit.asp?filename=playcss_border-style&preval=hidden
27
- static member inline hidden : IBorderStyle = unbox "hidden"
28
- /// Inherits this property from its parent element.
29
- ///
30
- /// See example https://www.w3schools.com/cssref/playit.asp?filename=playcss_border-style&preval=inherit
31
- ///
32
- /// Read about inherit https://www.w3schools.com/cssref/css_inherit.asp
33
- static member inline inheritFromParent : IBorderStyle = unbox "inherit"
34
- /// Sets this property to its default value.
35
- ///
36
- /// See example https://www.w3schools.com/cssref/playit.asp?filename=playcss_border-style&preval=initial
37
- ///
38
- /// Read about initial value https://www.w3schools.com/cssref/css_initial.asp
39
- static member inline initial : IBorderStyle = unbox "initial"
40
- /// Specifies a 3D inset border. The effect depends on the border-color value.
41
- ///
42
- /// See example https://www.w3schools.com/cssref/playit.asp?filename=playcss_border-style&preval=inset
43
- static member inline inset : IBorderStyle = unbox "inset"
44
- /// Default value. Specifies no border.
45
- ///
46
- /// See example https://www.w3schools.com/cssref/playit.asp?filename=playcss_border-style&preval=none
47
- static member inline none : IBorderStyle = unbox "none"
48
- /// Specifies a 3D outset border. The effect depends on the border-color value.
49
- ///
50
- /// See example https://www.w3schools.com/cssref/playit.asp?filename=playcss_border-style&preval=outset
51
- static member inline outset : IBorderStyle = unbox "outset"
52
- /// Specifies a 3D ridged border. The effect depends on the border-color value.
53
- ///
54
- /// See example https://www.w3schools.com/cssref/playit.asp?filename=playcss_border-style&preval=ridge
55
- static member inline ridge : IBorderStyle = unbox "ridge"
56
- /// Specifies a solid border.
57
- ///
58
- /// See example https://www.w3schools.com/cssref/playit.asp?filename=playcss_border-style&preval=solid
59
- static member inline solid : IBorderStyle = unbox "solid"