@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,143 +0,0 @@
1
- namespace Fable.Form.Simple.Bulma
2
-
3
- open Feliz
4
- open Fable.Form
5
- open Fable.Form.Simple
6
-
7
- /// <summary>
8
- /// DUs used to represents the different of Field supported by Fable.Form.Studio
9
- /// </summary>
10
- type IField<'Values> =
11
-
12
- abstract MapFieldValues: update: ('Values -> 'NewValues) -> IField<'NewValues>
13
-
14
- and FilledField<'Values> = Base.FilledField<IField<'Values>>
15
-
16
- /// <summary>
17
- /// Represents a form using Fable.Form.Studio representation
18
- /// </summary>
19
- type Form<'Values, 'Output> = Base.Form<'Values, 'Output, IField<'Values>>
20
-
21
- [<NoComparison; NoEquality>]
22
- type StandardRenderFieldConfig<'Value, 'Attributes> =
23
- {
24
- OnChange: 'Value -> unit
25
- OnBlur: (unit -> unit) option
26
- Disabled: bool
27
- IsReadOnly: bool
28
- Value: 'Value
29
- Error: Error.Error option
30
- ShowError: bool
31
- Attributes: 'Attributes
32
- }
33
-
34
- (***
35
-
36
- Fable cannot type test against interfaces, so we need to use abstract classes.
37
-
38
- However, when type testing against classes:
39
-
40
- ```fs
41
- match field.State with
42
- | :? IStandardField<'Values, 'Value, 'Attributes> as standardField ->
43
- // Do something with standardField
44
-
45
- | :? IGenericField<'Values> as genericField ->
46
- // Do something with genericField
47
-
48
- | _ ->
49
- // Invalid type
50
- ```
51
-
52
- Fable generate a warning 'Generic args are ignored in type testing'.
53
- Unfortunately, we cannot suppress this warning, and it is emitted once per compilation.
54
-
55
- This means that any Fable.Form.Simple.Bulma user will see this warning...
56
-
57
- To work around this issue, it possible to dynimcally cast the instance:
58
-
59
- ```fs
60
- try
61
- let standardField = field.State :?> IStandardField<'Values, 'Value, 'Attributes>
62
-
63
- let attributes = standardField.InnerField.Attributes
64
-
65
- let config = ...
66
-
67
- standardField.RenderField config
68
-
69
- with _ ->
70
- try
71
- let genericField = field.State :?> IGenericField<'Values>
72
-
73
- genericField.RenderField dispatch fieldConfig field
74
-
75
- with _ ->
76
- // Invalid type
77
- ```
78
-
79
- The code above will not generate any warning, and works if we call an API that is specific to
80
- the casted type.
81
-
82
- In the case above, `InnerField` only exists in `IStandardField`, so if we get an instance of `IGenericField`,
83
- we will get an exception which then have a chance to handle, and so on.
84
-
85
- However, I am not a fan of this approach, as it feels dirty to use exceptions for control flow.
86
-
87
- The solution I found, is to use a DU that we get access to via implementing a class `IRendererField`.
88
-
89
- And then, we make the abstract class `IStandardField` and `IGenericField` inherit from `IRendererField`
90
- and specify the type of field renderer they are.
91
-
92
- This makes the code feel cleaner, emit no warning and closer to type testing against classes/interfaces.
93
-
94
- ```fsharp
95
- try
96
- let rendererField = field.State :?> IRendererField
97
-
98
- match rendererField.FieldRendererType with
99
- | FieldRendererType.Standard ->
100
-
101
- let standardField = field.State :?> IStandardField<'Values, 'Value, 'Attributes>
102
-
103
- let attributes = standardField.InnerField.Attributes
104
-
105
- let config = ...
106
-
107
- standardField.RenderField config
108
-
109
- | FieldRendererType.Generic ->
110
- let genericField = field.State :?> IGenericField<'Values>
111
-
112
- genericField.RenderField dispatch fieldConfig field
113
-
114
- with _ ->
115
- failwith "Field not implemented, please implement the field `IStandardField<'Values>` or `IGenericField<'Values>`"
116
- ```
117
- *)
118
-
119
- [<RequireQualifiedAccess>]
120
- [<Fable.Core.EraseAttribute>]
121
- type FieldRendererType =
122
- | Standard
123
- | Generic
124
-
125
- type IRendererField(rendererType) =
126
- member _.FieldRendererType: FieldRendererType = rendererType
127
-
128
- [<AbstractClass>]
129
- type IStandardField<'Values, 'Value, 'Attributes when 'Attributes :> Field.IAttributes>
130
- (innerField: Field.Field<'Attributes, 'Value, 'Values>)
131
- =
132
- inherit IRendererField(FieldRendererType.Standard)
133
-
134
- abstract RenderField: StandardRenderFieldConfig<'Value, 'Attributes> -> ReactElement
135
-
136
- member _.InnerField: Field.Field<'Attributes, 'Value, 'Values> = innerField
137
-
138
- [<AbstractClass>]
139
- type IGenericField<'Values>() =
140
- inherit IRendererField(FieldRendererType.Generic)
141
-
142
- abstract RenderField:
143
- Form.View.FieldConfig<'Values, 'Msg> -> FilledField<'Values> -> ReactElement
@@ -1 +0,0 @@
1
- {"version":3,"sources":["./Types.fs"],"names":["rendererType","_","innerField"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4HoB,4BAAAA;;;;;;;;;;;;;WACgC,AAAAC;;;;;;;AAI/C,0BAAAC;;;;;;;;;;;;;WAMgE,AAAAD","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -1,36 +0,0 @@
1
- namespace Fable.Form.Simple.Fields.Html
2
-
3
- open Fable.Form
4
-
5
- module CheckboxField =
6
-
7
- [<NoComparison>]
8
- type Attributes =
9
- {
10
- FieldId: string
11
- Text: string
12
- }
13
-
14
- interface Field.IAttributes with
15
- member this.GetFieldId() = this.FieldId
16
-
17
- type InnerField<'Values> = Field.Field<Attributes, bool, 'Values>
18
-
19
- let form<'Values, 'Field, 'Output>
20
- : ((InnerField<'Values> -> 'Field)
21
- -> Base.FieldConfig<Attributes, bool, 'Values, 'Output>
22
- -> Base.Form<'Values, 'Output, 'Field>) =
23
- Base.field (fun _ -> false)
24
-
25
- type CheckboxField =
26
-
27
- static member create(fieldId: string) : CheckboxField.Attributes =
28
- {
29
- FieldId = fieldId
30
- Text = ""
31
- }
32
-
33
- static member withText (text: string) (attributes: CheckboxField.Attributes) =
34
- { attributes with
35
- Text = text
36
- }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["./CheckboxField.fs"],"names":["this","build","config","fieldId","attributes","text"],"mappings":";;;;;;;;;;;;;;;AAcmBA,sDAAAA;AAAoB,eAAA,AAAAA;;;;;;;;;0UAQ/B,kGAAqB,OAArBC,OAAAC;;;;;;;;;;;;;WAKA,mCACcC,SACH;;;;WAIX,mCAAA,AAAAC,oBACWC","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -1,49 +0,0 @@
1
- namespace Fable.Form.Simple.Fields.Html
2
-
3
- open Fable.Form
4
-
5
- module ColorField =
6
-
7
- [<NoComparison>]
8
- type Attributes =
9
- {
10
- FieldId: string
11
- /// <summary>
12
- /// Label to display
13
- /// </summary>
14
- Label: string
15
- /// <summary>
16
- /// List of predefined colors to display
17
- /// </summary>
18
- Suggestions: string list option
19
- }
20
-
21
- interface Field.IAttributes with
22
- member this.GetFieldId() = this.FieldId
23
-
24
- type InnerField<'Values> = Field.Field<Attributes, string, 'Values>
25
-
26
- let form<'Values, 'Field, 'Output>
27
- : ((InnerField<'Values> -> 'Field)
28
- -> Base.FieldConfig<Attributes, string, 'Values, 'Output>
29
- -> Base.Form<'Values, 'Output, 'Field>) =
30
- Base.field System.String.IsNullOrEmpty
31
-
32
- type ColorField =
33
-
34
- static member create(fieldId: string) : ColorField.Attributes =
35
- {
36
- FieldId = fieldId
37
- Label = ""
38
- Suggestions = None
39
- }
40
-
41
- static member withLabel (label: string) (attributes: ColorField.Attributes) =
42
- { attributes with
43
- Label = label
44
- }
45
-
46
- static member withSuggestions (suggestions: string list) (attributes: ColorField.Attributes) =
47
- { attributes with
48
- Suggestions = Some suggestions
49
- }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["./ColorField.fs"],"names":["this","build","config","fieldId","attributes","label","suggestions"],"mappings":";;;;;;;;;;;;;;;;;;;;AAqBmBA,mDAAAA;AAAoB,eAAA,AAAAA;;;;;;;;;8TAQ/B,iFAAAC,OAAAC;;;;;;;;;;;;;WAKA,gCACcC,SACF,IACM;;;;WAIlB,gCAAA,AAAAC,oBACYC,OADZ,AAAAD;;;;WAKA,gCAAA,AAAAA,oBAAA,AAAAA,kBACuBE","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -1,67 +0,0 @@
1
- namespace Fable.Form.Simple.Fields.Html
2
-
3
- open Fable.Form
4
-
5
- module DateField =
6
-
7
- [<NoComparison>]
8
- type Attributes =
9
- {
10
- FieldId: string
11
- /// <summary>
12
- /// Label to display
13
- /// </summary>
14
- Label: string
15
- Max: System.DateTime option
16
- Min: System.DateTime option
17
- Step: int option
18
- AutoFocus: bool
19
- }
20
-
21
- interface Field.IAttributes with
22
- member this.GetFieldId() = this.FieldId
23
-
24
- type InnerField<'Values> = Field.Field<Attributes, string, 'Values>
25
-
26
- let form<'Values, 'Field, 'Output>
27
- : ((InnerField<'Values> -> 'Field)
28
- -> Base.FieldConfig<Attributes, string, 'Values, 'Output>
29
- -> Base.Form<'Values, 'Output, 'Field>) =
30
- Base.field System.String.IsNullOrEmpty
31
-
32
- type DateField =
33
-
34
- static member create(fieldId: string) : DateField.Attributes =
35
- {
36
- FieldId = fieldId
37
- Label = ""
38
- Max = None
39
- Min = None
40
- Step = None
41
- AutoFocus = false
42
- }
43
-
44
- static member withLabel (label: string) (attributes: DateField.Attributes) =
45
- { attributes with
46
- Label = label
47
- }
48
-
49
- static member withMax (max: System.DateTime) (attributes: DateField.Attributes) =
50
- { attributes with
51
- Max = Some max
52
- }
53
-
54
- static member withMin (min: System.DateTime) (attributes: DateField.Attributes) =
55
- { attributes with
56
- Min = Some min
57
- }
58
-
59
- static member withStep (step: int) (attributes: DateField.Attributes) =
60
- { attributes with
61
- Step = Some step
62
- }
63
-
64
- static member withAutoFocus(attributes: DateField.Attributes) =
65
- { attributes with
66
- AutoFocus = true
67
- }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["./DateField.fs"],"names":["this","build","config","fieldId","attributes","label","max","min","step"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAqBmBA,kDAAAA;AAAoB,eAAA,AAAAA;;;;;;;;;2TAQ/B,gFAAAC,OAAAC;;;;;;;;;;;;;WAKA,\u002BBACcC,SACF,IACF,WACA,WACC,WACK;;;;WAIhB,\u002BBAAA,AAAAC,oBACYC,OADZ,AAAAD,gBAAA,AAAAA,gBAAA,AAAAA,iBAAA,AAAAA;;;;WAKA,\u002BBAAA,AAAAA,oBAAA,AAAAA,kBACeE,KADf,AAAAF,gBAAA,AAAAA,iBAAA,AAAAA;;;;WAKA,\u002BBAAA,AAAAA,oBAAA,AAAAA,kBAAA,AAAAA,gBACeG,KADf,AAAAH,iBAAA,AAAAA;;;;WAKA,\u002BBAAA,AAAAA,oBAAA,AAAAA,kBAAA,AAAAA,gBAAA,AAAAA,gBACgBI,MADhB,AAAAJ;;;;WAKA,\u002BBAAA,AAAAA,oBAAA,AAAAA,kBAAA,AAAAA,gBAAA,AAAAA,gBAAA,AAAAA,iBACgB","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -1,70 +0,0 @@
1
- namespace Fable.Form.Simple.Fields.Html
2
-
3
- open Fable.Form
4
-
5
- module DateTimeLocalField =
6
-
7
- [<NoComparison>]
8
- type Attributes =
9
- {
10
- FieldId: string
11
- /// <summary>
12
- /// Label to display
13
- /// </summary>
14
- Label: string
15
- /// <summary>
16
- /// A list of HTML attributes to add to the generated field
17
- /// </summary>
18
- Max: System.DateTime option
19
- Min: System.DateTime option
20
- Step: int option
21
- AutoFocus: bool
22
- }
23
-
24
- interface Field.IAttributes with
25
- member this.GetFieldId() = this.FieldId
26
-
27
- type InnerField<'Values> = Field.Field<Attributes, string, 'Values>
28
-
29
- let form<'Values, 'Field, 'Output>
30
- : ((InnerField<'Values> -> 'Field)
31
- -> Base.FieldConfig<Attributes, string, 'Values, 'Output>
32
- -> Base.Form<'Values, 'Output, 'Field>) =
33
- Base.field System.String.IsNullOrEmpty
34
-
35
- type DateTimeLocalField =
36
-
37
- static member create(fieldId: string) : DateTimeLocalField.Attributes =
38
- {
39
- FieldId = fieldId
40
- Label = ""
41
- Max = None
42
- Min = None
43
- Step = None
44
- AutoFocus = false
45
- }
46
-
47
- static member withLabel (label: string) (attributes: DateTimeLocalField.Attributes) =
48
- { attributes with
49
- Label = label
50
- }
51
-
52
- static member withMax (max: System.DateTime) (attributes: DateTimeLocalField.Attributes) =
53
- { attributes with
54
- Max = Some max
55
- }
56
-
57
- static member withMin (min: System.DateTime) (attributes: DateTimeLocalField.Attributes) =
58
- { attributes with
59
- Min = Some min
60
- }
61
-
62
- static member withStep (step: int) (attributes: DateTimeLocalField.Attributes) =
63
- { attributes with
64
- Step = Some step
65
- }
66
-
67
- static member withAutoFocus(attributes: DateTimeLocalField.Attributes) =
68
- { attributes with
69
- AutoFocus = true
70
- }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["./DateTimeLocalField.fs"],"names":["this","build","config","fieldId","attributes","label","max","min","step"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAwBmBA,2DAAAA;AAAoB,eAAA,AAAAA;;;;;;;;;sVAQ/B,yFAAAC,OAAAC;;;;;;;;;;;;;WAKA,wCACcC,SACF,IACF,WACA,WACC,WACK;;;;WAIhB,wCAAA,AAAAC,oBACYC,OADZ,AAAAD,gBAAA,AAAAA,gBAAA,AAAAA,iBAAA,AAAAA;;;;WAKA,wCAAA,AAAAA,oBAAA,AAAAA,kBACeE,KADf,AAAAF,gBAAA,AAAAA,iBAAA,AAAAA;;;;WAKA,wCAAA,AAAAA,oBAAA,AAAAA,kBAAA,AAAAA,gBACeG,KADf,AAAAH,iBAAA,AAAAA;;;;WAKA,wCAAA,AAAAA,oBAAA,AAAAA,kBAAA,AAAAA,gBAAA,AAAAA,gBACgBI,MADhB,AAAAJ;;;;WAKA,wCAAA,AAAAA,oBAAA,AAAAA,kBAAA,AAAAA,gBAAA,AAAAA,gBAAA,AAAAA,iBACgB","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -1,76 +0,0 @@
1
- namespace Fable.Form.Simple.Fields.Html
2
-
3
- open Fable.Form
4
-
5
- module EmailField =
6
-
7
- [<NoComparison>]
8
- type Attributes =
9
- {
10
- FieldId: string
11
- /// <summary>
12
- /// Label to display
13
- /// </summary>
14
- Label: string
15
- /// <summary>
16
- /// Placeholder to display when the field is empty
17
- /// </summary>
18
- Placeholder: string option
19
- /// <summary>
20
- /// A list of HTML attributes to add to the generated field
21
- /// </summary>
22
- AutoComplete: string option
23
- Multiple: bool option
24
- AutoFocus: bool
25
- }
26
-
27
- interface Field.IAttributes with
28
- member this.GetFieldId() = this.FieldId
29
-
30
- type InnerField<'Values> = Field.Field<Attributes, string, 'Values>
31
-
32
- let form<'Values, 'Field, 'Output>
33
- : ((InnerField<'Values> -> 'Field)
34
- -> Base.FieldConfig<Attributes, string, 'Values, 'Output>
35
- -> Base.Form<'Values, 'Output, 'Field>) =
36
- Base.field System.String.IsNullOrEmpty
37
-
38
- type EmailField =
39
-
40
- static member create(fieldId: string) : EmailField.Attributes =
41
- {
42
- FieldId = fieldId
43
- Label = ""
44
- Placeholder = None
45
- AutoComplete = None
46
- Multiple = None
47
- AutoFocus = false
48
- }
49
-
50
- static member inline withLabel (label: string) (attributes: EmailField.Attributes) =
51
- { attributes with
52
- Label = label
53
- }
54
-
55
- static member inline withPlaceholder (placeholder: string) (attributes: EmailField.Attributes) =
56
- { attributes with
57
- Placeholder = Some placeholder
58
- }
59
-
60
- static member inline withAutoComplete
61
- (autoComplete: string)
62
- (attributes: EmailField.Attributes)
63
- =
64
- { attributes with
65
- AutoComplete = Some autoComplete
66
- }
67
-
68
- static member inline withMultiple (multiple: bool) (attributes: EmailField.Attributes) =
69
- { attributes with
70
- Multiple = Some multiple
71
- }
72
-
73
- static member inline withAutoFocus(attributes: EmailField.Attributes) =
74
- { attributes with
75
- AutoFocus = true
76
- }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["./EmailField.fs"],"names":["this","build","config","fieldId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA2BmBA,mDAAAA;AAAoB,eAAA,AAAAA;;;;;;;;;8TAQ/B,iFAAAC,OAAAC;;;;;;;;;;;;;WAKA,gCACcC,SACF,IACM,WACC,WACJ,WACC","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -1,45 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <Project Sdk="Microsoft.NET.Sdk">
3
- <PropertyGroup>
4
- <TargetFramework>netstandard2.1</TargetFramework>
5
- <Description>
6
- Contains shared API betweens Fable.Form.Simple libraries.
7
-
8
- It can be used has a standalone library if you want to build your own fields or
9
- you can use Fable.Form.Simple.Bulma, Fable.Form.Simple.Sutil.Bulma to have a ready to use libraries made for Bulma CSS framework.
10
- </Description>
11
- <FablePackageType>library</FablePackageType>
12
- <PackageTags>fable-javascript</PackageTags>
13
- </PropertyGroup>
14
- <ItemGroup>
15
- <Compile Include="CheckboxField.fs" />
16
- <Compile Include="ColorField.fs" />
17
- <Compile Include="DateField.fs" />
18
- <Compile Include="DateTimeLocalField.fs" />
19
- <Compile Include="EmailField.fs" />
20
- <Compile Include="NumberField.fs" />
21
- <Compile Include="PasswordField.fs" />
22
- <Compile Include="RadioField.fs" />
23
- <Compile Include="RangeField.fs" />
24
- <Compile Include="SearchField.fs" />
25
- <Compile Include="SelectField.fs" />
26
- <Compile Include="TelField.fs" />
27
- <Compile Include="TextareaField.fs" />
28
- <Compile Include="TextField.fs" />
29
- <Compile Include="TimeField.fs" />
30
- </ItemGroup>
31
- <ItemGroup>
32
- <ProjectReference Include="..\Fable.Form\Fable.Form.fsproj" />
33
- </ItemGroup>
34
- <ItemGroup>
35
- <PackageReference Include="EasyBuild.PackageReleaseNotes.Tasks">
36
- <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
37
- <PrivateAssets>all</PrivateAssets>
38
- </PackageReference>
39
- <PackageReference Include="Fable.Package.SDK">
40
- <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
41
- <PrivateAssets>all</PrivateAssets>
42
- </PackageReference>
43
- <PackageReference Include="FSharp.Core" />
44
- </ItemGroup>
45
- </Project>
@@ -1,105 +0,0 @@
1
- namespace Fable.Form.Simple.Fields.Html
2
-
3
- open Fable.Form
4
-
5
- module NumberField =
6
-
7
- [<NoComparison>]
8
- type Attributes =
9
- {
10
- FieldId: string
11
- /// <summary>
12
- /// Label to display
13
- /// </summary>
14
- Label: string
15
- /// <summary>
16
- /// Placeholder to display when the field is empty
17
- /// </summary>
18
- Placeholder: string option
19
- AutoComplete: string option
20
- Max: float option
21
- Min: float option
22
- Step: float option
23
- AutoFocus: bool
24
- }
25
-
26
- interface Field.IAttributes with
27
- member this.GetFieldId() = this.FieldId
28
-
29
- type InnerField<'Values> = Field.Field<Attributes, string, 'Values>
30
-
31
- let form<'Values, 'Field, 'Output>
32
- : ((InnerField<'Values> -> 'Field)
33
- -> Base.FieldConfig<Attributes, string, 'Values, 'Output>
34
- -> Base.Form<'Values, 'Output, 'Field>) =
35
- Base.field System.String.IsNullOrEmpty
36
-
37
- type NumberField =
38
-
39
- static member create(fieldId: string) : NumberField.Attributes =
40
- {
41
- FieldId = fieldId
42
- Label = ""
43
- Placeholder = None
44
- AutoComplete = None
45
- Max = None
46
- Min = None
47
- Step = None
48
- AutoFocus = false
49
- }
50
-
51
- static member withLabel (label: string) (attributes: NumberField.Attributes) =
52
- { attributes with
53
- Label = label
54
- }
55
-
56
- static member withPlaceholder (placeholder: string) (attributes: NumberField.Attributes) =
57
- { attributes with
58
- Placeholder = Some placeholder
59
- }
60
-
61
- static member withAutoComplete (autoComplete: string) (attributes: NumberField.Attributes) =
62
- { attributes with
63
- AutoComplete = Some autoComplete
64
- }
65
-
66
- static member withMax(max: float) =
67
- fun (attributes: NumberField.Attributes) ->
68
- { attributes with
69
- Max = Some max
70
- }
71
-
72
- static member withMax(max: int) =
73
- fun (attributes: NumberField.Attributes) ->
74
- { attributes with
75
- Max = Some(float max)
76
- }
77
-
78
- static member withMin(min: float) =
79
- fun (attributes: NumberField.Attributes) ->
80
- { attributes with
81
- Min = Some min
82
- }
83
-
84
- static member withMin(min: int) =
85
- fun (attributes: NumberField.Attributes) ->
86
- { attributes with
87
- Min = Some(float min)
88
- }
89
-
90
- static member withStep(step: float) =
91
- fun (attributes: NumberField.Attributes) ->
92
- { attributes with
93
- Step = Some step
94
- }
95
-
96
- static member withStep(step: int) =
97
- fun (attributes: NumberField.Attributes) ->
98
- { attributes with
99
- Step = Some(float step)
100
- }
101
-
102
- static member withAutoFocus (autoFocus: bool) (attributes: NumberField.Attributes) =
103
- { attributes with
104
- AutoFocus = autoFocus
105
- }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["./NumberField.fs"],"names":["this","build","config","fieldId","attributes","label","placeholder","autoComplete","max","min","step","autoFocus"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BmBA,oDAAAA;AAAoB,eAAA,AAAAA;;;;;;;;;iUAQ/B,kFAAAC,OAAAC;;;;;;;;;;;;;WAKA,iCACcC,SACF,IACM,WACC,WACT,WACA,WACC,WACK;;;;WAIhB,iCAAA,AAAAC,oBACYC,OADZ,AAAAD,wBAAA,AAAAA,yBAAA,AAAAA,gBAAA,AAAAA,gBAAA,AAAAA,iBAAA,AAAAA;;;;WAKA,iCAAA,AAAAA,oBAAA,AAAAA,kBACuBE,aADvB,AAAAF,yBAAA,AAAAA,gBAAA,AAAAA,gBAAA,AAAAA,iBAAA,AAAAA;;;;WAKA,iCAAA,AAAAA,oBAAA,AAAAA,kBAAA,AAAAA,wBACwBG,cADxB,AAAAH,gBAAA,AAAAA,gBAAA,AAAAA,iBAAA,AAAAA;;;;wFAMI,iCAAA,AAAAA,oBAAA,AAAAA,kBAAA,AAAAA,wBAAA,AAAAA,yBACeI,KADf,AAAAJ,gBAAA,AAAAA,iBAAA,AAAAA;;;;wFAMA,iCAAA,AAAAA,oBAAA,AAAAA,kBAAA,AAAAA,wBAAA,AAAAA,yBACqBI,KADrB,AAAAJ,gBAAA,AAAAA,iBAAA,AAAAA;;;;wFAMA,iCAAA,AAAAA,oBAAA,AAAAA,kBAAA,AAAAA,wBAAA,AAAAA,yBAAA,AAAAA,gBACeK,KADf,AAAAL,iBAAA,AAAAA;;;;wFAMA,iCAAA,AAAAA,oBAAA,AAAAA,kBAAA,AAAAA,wBAAA,AAAAA,yBAAA,AAAAA,gBACqBK,KADrB,AAAAL,iBAAA,AAAAA;;;;wFAMA,iCAAA,AAAAA,oBAAA,AAAAA,kBAAA,AAAAA,wBAAA,AAAAA,yBAAA,AAAAA,gBAAA,AAAAA,gBACgBM,MADhB,AAAAN;;;;wFAMA,iCAAA,AAAAA,oBAAA,AAAAA,kBAAA,AAAAA,wBAAA,AAAAA,yBAAA,AAAAA,gBAAA,AAAAA,gBACsBM,MADtB,AAAAN;;;;WAKJ,iCAAA,AAAAA,oBAAA,AAAAA,kBAAA,AAAAA,wBAAA,AAAAA,yBAAA,AAAAA,gBAAA,AAAAA,gBAAA,AAAAA,iBACgBO","file":null,"sourcesContent":null,"sourceRoot":null}