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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/FormSpec.FS/Components/HelloComponent.d.ts.map +1 -0
  2. package/FormSpec.FS/Designer.d.ts.map +1 -0
  3. package/FormSpec.FS/FormSpec.d.ts.map +1 -0
  4. package/FormSpec.FS/FormSpecHelpers.d.ts.map +1 -0
  5. package/FormSpec.FS/FormSpecValues.d.ts.map +1 -0
  6. package/FormSpec.FS/Helpers.d.ts.map +1 -0
  7. package/FormSpec.FS/Interfaces.d.ts.map +1 -0
  8. package/FormSpec.FS/Interop/FormSpec.Api.Helpers.d.ts.map +1 -0
  9. package/FormSpec.FS/Interop/FormSpec.Api.Option.d.ts.map +1 -0
  10. package/FormSpec.FS/Interop/FormSpec.Values.Api.Option.d.ts.map +1 -0
  11. package/FormSpec.FS/Logging/LogTypes.d.ts.map +1 -0
  12. package/FormSpec.FS/Migrator.d.ts.map +1 -0
  13. package/FormSpec.FS/PathwayDataExtractor.d.ts.map +1 -0
  14. package/FormSpec.FS/PathwayExecutor.d.ts.map +1 -0
  15. package/FormSpec.FS/PathwayValidator.d.ts.map +1 -0
  16. package/FormSpec.FS/PluginInterface.d.ts.map +1 -0
  17. package/FormSpec.FS/Prelude.d.ts.map +1 -0
  18. package/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.d.ts.map +1 -0
  19. package/FormSpec.FS/Renderers/MermaidRenderer.d.ts.map +1 -0
  20. package/FormSpec.FS/Renderers/PathwayRenderers.d.ts.map +1 -0
  21. package/FormSpec.TS/FormSpec.FS/Components/HelloComponent.js.map +1 -0
  22. package/FormSpec.TS/FormSpec.FS/Components/HelloComponent.ts.map +1 -0
  23. package/FormSpec.TS/FormSpec.FS/Designer.js.map +1 -0
  24. package/FormSpec.TS/FormSpec.FS/Designer.ts.map +1 -0
  25. package/FormSpec.TS/{FormSpec.js.map → FormSpec.FS/FormSpec.js.map} +1 -1
  26. package/FormSpec.TS/{FormSpec.ts.map → FormSpec.FS/FormSpec.ts.map} +1 -1
  27. package/FormSpec.TS/{FormSpecHelpers.js → FormSpec.FS/FormSpecHelpers.js} +1 -1
  28. package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.js.map +1 -0
  29. package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.ts.map +1 -0
  30. package/FormSpec.TS/FormSpec.FS/FormSpecValues.js.map +1 -0
  31. package/FormSpec.TS/FormSpec.FS/FormSpecValues.ts.map +1 -0
  32. package/FormSpec.TS/FormSpec.FS/Helpers.js.map +1 -0
  33. package/FormSpec.TS/FormSpec.FS/Helpers.ts.map +1 -0
  34. package/FormSpec.TS/FormSpec.FS/Interfaces.js.map +1 -0
  35. package/FormSpec.TS/FormSpec.FS/Interfaces.ts.map +1 -0
  36. package/FormSpec.TS/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Helpers.js +2 -2
  37. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.js.map +1 -0
  38. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.ts.map +1 -0
  39. package/FormSpec.TS/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Option.js +2 -2
  40. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.js.map +1 -0
  41. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.ts.map +1 -0
  42. package/FormSpec.TS/{Interop → FormSpec.FS/Interop}/FormSpec.Values.Api.Option.js +2 -2
  43. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.js.map +1 -0
  44. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.ts.map +1 -0
  45. package/FormSpec.TS/FormSpec.FS/Logging/LogTypes.js.map +1 -0
  46. package/FormSpec.TS/FormSpec.FS/Logging/LogTypes.ts.map +1 -0
  47. package/FormSpec.TS/{Migrator.js → FormSpec.FS/Migrator.js} +1 -1
  48. package/FormSpec.TS/FormSpec.FS/Migrator.js.map +1 -0
  49. package/FormSpec.TS/FormSpec.FS/Migrator.ts.map +1 -0
  50. package/FormSpec.TS/FormSpec.FS/PathwayDataExtractor.js.map +1 -0
  51. package/FormSpec.TS/FormSpec.FS/PathwayDataExtractor.ts.map +1 -0
  52. package/FormSpec.TS/{PathwayExecutor.js → FormSpec.FS/PathwayExecutor.js} +1 -1
  53. package/FormSpec.TS/FormSpec.FS/PathwayExecutor.js.map +1 -0
  54. package/FormSpec.TS/FormSpec.FS/PathwayExecutor.ts.map +1 -0
  55. package/FormSpec.TS/FormSpec.FS/PathwayValidator.js.map +1 -0
  56. package/FormSpec.TS/FormSpec.FS/PathwayValidator.ts.map +1 -0
  57. package/FormSpec.TS/FormSpec.FS/PluginInterface.js.map +1 -0
  58. package/FormSpec.TS/FormSpec.FS/PluginInterface.ts.map +1 -0
  59. package/FormSpec.TS/FormSpec.FS/Prelude.js.map +1 -0
  60. package/FormSpec.TS/FormSpec.FS/Prelude.ts.map +1 -0
  61. package/FormSpec.TS/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.js.map +1 -0
  62. package/FormSpec.TS/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.ts.map +1 -0
  63. package/FormSpec.TS/FormSpec.FS/Renderers/MermaidRenderer.js.map +1 -0
  64. package/FormSpec.TS/FormSpec.FS/Renderers/MermaidRenderer.ts.map +1 -0
  65. package/FormSpec.TS/FormSpec.FS/Renderers/PathwayRenderers.js.map +1 -0
  66. package/FormSpec.TS/FormSpec.FS/Renderers/PathwayRenderers.ts.map +1 -0
  67. package/FormSpec.TS/PathwayExecutor.withPlugins.js +28 -0
  68. package/FormSpec.TS/PathwayExecutor.withPlugins.js.map +1 -0
  69. package/FormSpec.TS/PluginRegistration.js +18 -0
  70. package/FormSpec.TS/PluginRegistration.js.map +1 -0
  71. package/FormSpec.TS/PluginRegistration.ts.map +1 -0
  72. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs +47 -0
  73. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs.js +93 -0
  74. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs.js.map +1 -0
  75. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs.ts.map +1 -0
  76. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs +49 -0
  77. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs.js +127 -0
  78. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs.js.map +1 -0
  79. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs.ts.map +1 -0
  80. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs +52 -0
  81. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs.js +105 -0
  82. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs.js.map +1 -0
  83. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs.ts.map +1 -0
  84. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs +54 -0
  85. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs.js +105 -0
  86. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs.js.map +1 -0
  87. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs.ts.map +1 -0
  88. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs +48 -0
  89. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs.js +83 -0
  90. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs.js.map +1 -0
  91. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs.ts.map +1 -0
  92. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Fable.Form.Simple.Bulma.fableproj +53 -0
  93. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs +132 -0
  94. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs.js +276 -0
  95. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs.js.map +1 -0
  96. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs.ts.map +1 -0
  97. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs +537 -0
  98. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs.js +263 -0
  99. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs.js.map +1 -0
  100. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs.ts.map +1 -0
  101. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs +361 -0
  102. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs.js +576 -0
  103. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs.js.map +1 -0
  104. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs.ts.map +1 -0
  105. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs +52 -0
  106. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs.js +73 -0
  107. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs.js.map +1 -0
  108. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs.ts.map +1 -0
  109. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs +246 -0
  110. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.js +226 -0
  111. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.js.map +1 -0
  112. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.ts.map +1 -0
  113. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs +52 -0
  114. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs.js +116 -0
  115. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs.js.map +1 -0
  116. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs.ts.map +1 -0
  117. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs +56 -0
  118. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs.js +95 -0
  119. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs.js.map +1 -0
  120. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs.ts.map +1 -0
  121. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs +46 -0
  122. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs.js +77 -0
  123. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs.js.map +1 -0
  124. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs.ts.map +1 -0
  125. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs +51 -0
  126. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs.js +103 -0
  127. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs.js.map +1 -0
  128. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs.ts.map +1 -0
  129. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs +49 -0
  130. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs.js +87 -0
  131. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs.js.map +1 -0
  132. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs.ts.map +1 -0
  133. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs +60 -0
  134. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs.js +69 -0
  135. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs.js.map +1 -0
  136. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs.ts.map +1 -0
  137. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs +79 -0
  138. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs.js +134 -0
  139. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs.js.map +1 -0
  140. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs.ts.map +1 -0
  141. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs +44 -0
  142. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs.js +77 -0
  143. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs.js.map +1 -0
  144. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs.ts.map +1 -0
  145. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs +49 -0
  146. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs.js +87 -0
  147. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs.js.map +1 -0
  148. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs.ts.map +1 -0
  149. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs +59 -0
  150. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs.js +87 -0
  151. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs.js.map +1 -0
  152. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs.ts.map +1 -0
  153. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs +44 -0
  154. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs.js +77 -0
  155. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs.js.map +1 -0
  156. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs.ts.map +1 -0
  157. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs +143 -0
  158. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.js +154 -0
  159. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.js.map +1 -0
  160. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.ts.map +1 -0
  161. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs +36 -0
  162. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs.js +76 -0
  163. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs.js.map +1 -0
  164. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs.ts.map +1 -0
  165. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs +49 -0
  166. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs.js +88 -0
  167. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs.js.map +1 -0
  168. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs.ts.map +1 -0
  169. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs +67 -0
  170. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs.js +121 -0
  171. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs.js.map +1 -0
  172. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs.ts.map +1 -0
  173. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs +70 -0
  174. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs.js +121 -0
  175. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs.js.map +1 -0
  176. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs.ts.map +1 -0
  177. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs +76 -0
  178. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs.js +91 -0
  179. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs.js.map +1 -0
  180. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs.ts.map +1 -0
  181. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/Fable.Form.Simple.Fields.Html.fableproj +45 -0
  182. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs +105 -0
  183. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs.js +161 -0
  184. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs.js.map +1 -0
  185. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs.ts.map +1 -0
  186. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs +66 -0
  187. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs.js +110 -0
  188. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs.js.map +1 -0
  189. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs.ts.map +1 -0
  190. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs +72 -0
  191. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs.js +108 -0
  192. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs.js.map +1 -0
  193. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs.ts.map +1 -0
  194. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs +102 -0
  195. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs.js +157 -0
  196. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs.js.map +1 -0
  197. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs.ts.map +1 -0
  198. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs +83 -0
  199. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs.js +164 -0
  200. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs.js.map +1 -0
  201. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs.ts.map +1 -0
  202. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs +83 -0
  203. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs.js +119 -0
  204. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs.js.map +1 -0
  205. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs.ts.map +1 -0
  206. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs +63 -0
  207. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs.js +110 -0
  208. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs.js.map +1 -0
  209. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs.ts.map +1 -0
  210. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs +83 -0
  211. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs.js +164 -0
  212. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs.js.map +1 -0
  213. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs.ts.map +1 -0
  214. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs +92 -0
  215. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs.js +149 -0
  216. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs.js.map +1 -0
  217. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs.ts.map +1 -0
  218. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs +108 -0
  219. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs.js +161 -0
  220. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs.js.map +1 -0
  221. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs.ts.map +1 -0
  222. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Colors.fs.js.map +1 -1
  223. package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs +52 -0
  224. package/FormSpec.TS/fable_modules/{Feliz.2.7.0/Interop.fs.js → Feliz.2.8.0/DateParsing.fs.js} +27 -37
  225. package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.js.map +1 -0
  226. package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.ts.map +1 -0
  227. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Feliz.fableproj +14 -3
  228. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs +11 -0
  229. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs.js +25 -0
  230. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs.js.map +1 -0
  231. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs.ts.map +1 -0
  232. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs +176 -0
  233. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs.js +179 -0
  234. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs.js.map +1 -0
  235. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs.ts.map +1 -0
  236. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs +29 -0
  237. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs.js +19 -0
  238. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs.js.map +1 -0
  239. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Key.fs.js.map +1 -1
  240. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Length.fs +55 -1
  241. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Properties.fs +5 -0
  242. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Properties.fs.js.map +1 -1
  243. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/React.fs +77 -239
  244. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactDOM.fs.js.map +1 -1
  245. package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactInterop.fs +20 -0
  246. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactInterop.js.map +1 -1
  247. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactTypes.fs +3 -2
  248. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactTypes.fs.js.map +1 -1
  249. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/StyleTypes.fs +4 -0
  250. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/StyleTypes.fs.js.map +1 -1
  251. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Styles.fs +646 -8
  252. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Svg.fs.js.map +1 -1
  253. package/FormSpec.TS/fable_modules/Feliz.2.8.0/TransitionTimingFunction.fs +62 -0
  254. package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Types.fs.js.map +1 -1
  255. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Types.fs.ts.map +1 -0
  256. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Bulma.fs +990 -0
  257. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs +179 -0
  258. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.js +51 -0
  259. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.js.map +1 -0
  260. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.ts.map +1 -0
  261. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Feliz.Bulma.fableproj +32 -0
  262. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs +1986 -0
  263. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs.js +27 -0
  264. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs.js.map +1 -0
  265. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs.ts.map +1 -0
  266. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs +7 -0
  267. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs.js +31 -0
  268. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs.js.map +1 -0
  269. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs.ts.map +1 -0
  270. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/PropertyBuilders.fs +8 -0
  271. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Exports.fs +14 -0
  272. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Glutinum.Feliz.ReactSignaturePadWrapper.fableproj +18 -0
  273. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Interop.fs +6 -0
  274. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/ReactSignaturePadWrapper.fs +32 -0
  275. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs +3 -0
  276. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.js +7 -0
  277. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.js.map +1 -0
  278. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.ts.map +1 -0
  279. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.js.map +1 -1
  280. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.ts.map +1 -1
  281. package/FormSpec.TS/fable_modules/project_cracked.json +1 -1
  282. package/FormSpec.TS/plugins/bmi/src/BMIField.js +823 -0
  283. package/FormSpec.TS/plugins/bmi/src/BMIField.js.map +1 -0
  284. package/FormSpec.TS/plugins/bmi/src/BMIField.ts.map +1 -0
  285. package/FormSpec.TS/plugins/likert/src/LikertField.js +638 -0
  286. package/FormSpec.TS/plugins/likert/src/LikertField.js.map +1 -0
  287. package/FormSpec.TS/plugins/likert/src/LikertField.ts.map +1 -0
  288. package/FormSpec.TS/plugins/signature/src/SignatureField.js +294 -0
  289. package/FormSpec.TS/plugins/signature/src/SignatureField.js.map +1 -0
  290. package/FormSpec.TS/plugins/signature/src/SignatureField.ts.map +1 -0
  291. package/FormSpec.TS/plugins/vitals/src/VitalsField.js +1150 -0
  292. package/FormSpec.TS/plugins/vitals/src/VitalsField.js.map +1 -0
  293. package/FormSpec.TS/plugins/vitals/src/VitalsField.ts.map +1 -0
  294. package/PathwayExecutor.withPlugins.d.ts +11 -0
  295. package/PathwayExecutor.withPlugins.d.ts.map +1 -0
  296. package/PluginRegistration.d.ts +2 -0
  297. package/PluginRegistration.d.ts.map +1 -0
  298. package/README.md +7 -7
  299. package/fable_modules/Fable.Form.3.0.0/Base.fs.d.ts +147 -0
  300. package/fable_modules/Fable.Form.3.0.0/Base.fs.d.ts.map +1 -0
  301. package/fable_modules/Fable.Form.3.0.0/Error.fs.d.ts +19 -0
  302. package/fable_modules/Fable.Form.3.0.0/Error.fs.d.ts.map +1 -0
  303. package/fable_modules/Fable.Form.3.0.0/Extensions.fs.d.ts +14 -0
  304. package/fable_modules/Fable.Form.3.0.0/Extensions.fs.d.ts.map +1 -0
  305. package/fable_modules/Fable.Form.3.0.0/Field.fs.d.ts +14 -0
  306. package/fable_modules/Fable.Form.3.0.0/Field.fs.d.ts.map +1 -0
  307. package/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.d.ts +113 -0
  308. package/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.d.ts.map +1 -0
  309. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.d.ts +17 -0
  310. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.d.ts.map +1 -0
  311. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.d.ts +41 -0
  312. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.d.ts.map +1 -0
  313. package/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.d.ts +73 -0
  314. package/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.d.ts.map +1 -0
  315. package/fable_modules/Feliz.2.8.0/Colors.fs.d.ts +9 -0
  316. package/fable_modules/Feliz.2.8.0/Colors.fs.d.ts.map +1 -0
  317. package/fable_modules/Feliz.2.8.0/Interop.fs.d.ts +3 -0
  318. package/fable_modules/Feliz.2.8.0/Interop.fs.d.ts.map +1 -0
  319. package/fable_modules/Feliz.2.8.0/ReactInterop.d.ts +6 -0
  320. package/fable_modules/Feliz.2.8.0/ReactInterop.d.ts.map +1 -0
  321. package/fable_modules/Feliz.2.8.0/ReactTypes.fs.d.ts +36 -0
  322. package/fable_modules/Feliz.2.8.0/ReactTypes.fs.d.ts.map +1 -0
  323. package/fable_modules/Feliz.2.8.0/Types.fs.d.ts +7 -0
  324. package/fable_modules/Feliz.2.8.0/Types.fs.d.ts.map +1 -0
  325. package/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.d.ts +5 -0
  326. package/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.d.ts.map +1 -0
  327. package/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.d.ts +3 -0
  328. package/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.d.ts.map +1 -0
  329. package/package.json +15 -15
  330. package/plugins/bmi/src/BMIField.d.ts +52 -0
  331. package/plugins/bmi/src/BMIField.d.ts.map +1 -0
  332. package/plugins/likert/src/LikertField.d.ts +60 -0
  333. package/plugins/likert/src/LikertField.d.ts.map +1 -0
  334. package/plugins/signature/src/SignatureField.d.ts +34 -0
  335. package/plugins/signature/src/SignatureField.d.ts.map +1 -0
  336. package/plugins/vitals/src/VitalsField.d.ts +82 -0
  337. package/plugins/vitals/src/VitalsField.d.ts.map +1 -0
  338. package/src/{FormSpecHelpers.ts → FormSpec.FS/FormSpecHelpers.ts} +1 -1
  339. package/src/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Helpers.ts +4 -4
  340. package/src/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Option.ts +2 -2
  341. package/src/{Interop → FormSpec.FS/Interop}/FormSpec.Values.Api.Option.ts +2 -2
  342. package/src/{Migrator.ts → FormSpec.FS/Migrator.ts} +1 -1
  343. package/src/{PathwayExecutor.ts → FormSpec.FS/PathwayExecutor.ts} +1 -1
  344. package/src/PathwayExecutor.withPlugins.ts +10 -0
  345. package/src/PluginRegistration.ts +16 -0
  346. package/src/plugins/bmi/src/BMIField.ts +494 -0
  347. package/src/plugins/likert/src/LikertField.ts +420 -0
  348. package/src/plugins/signature/src/SignatureField.ts +185 -0
  349. package/src/plugins/vitals/src/VitalsField.ts +665 -0
  350. package/Components/HelloComponent.d.ts.map +0 -1
  351. package/Designer.d.ts.map +0 -1
  352. package/FormSpec.TS/Components/HelloComponent.js.map +0 -1
  353. package/FormSpec.TS/Components/HelloComponent.ts.map +0 -1
  354. package/FormSpec.TS/Designer.js.map +0 -1
  355. package/FormSpec.TS/Designer.ts.map +0 -1
  356. package/FormSpec.TS/FormSpecHelpers.js.map +0 -1
  357. package/FormSpec.TS/FormSpecHelpers.ts.map +0 -1
  358. package/FormSpec.TS/FormSpecValues.js.map +0 -1
  359. package/FormSpec.TS/FormSpecValues.ts.map +0 -1
  360. package/FormSpec.TS/Helpers.js.map +0 -1
  361. package/FormSpec.TS/Helpers.ts.map +0 -1
  362. package/FormSpec.TS/Interfaces.js.map +0 -1
  363. package/FormSpec.TS/Interfaces.ts.map +0 -1
  364. package/FormSpec.TS/Interop/FormSpec.Api.Helpers.js.map +0 -1
  365. package/FormSpec.TS/Interop/FormSpec.Api.Helpers.ts.map +0 -1
  366. package/FormSpec.TS/Interop/FormSpec.Api.Option.js.map +0 -1
  367. package/FormSpec.TS/Interop/FormSpec.Api.Option.ts.map +0 -1
  368. package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.js.map +0 -1
  369. package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.ts.map +0 -1
  370. package/FormSpec.TS/Logging/LogTypes.js.map +0 -1
  371. package/FormSpec.TS/Logging/LogTypes.ts.map +0 -1
  372. package/FormSpec.TS/Migrator.js.map +0 -1
  373. package/FormSpec.TS/Migrator.ts.map +0 -1
  374. package/FormSpec.TS/PathwayDataExtractor.js.map +0 -1
  375. package/FormSpec.TS/PathwayDataExtractor.ts.map +0 -1
  376. package/FormSpec.TS/PathwayExecutor.js.map +0 -1
  377. package/FormSpec.TS/PathwayExecutor.ts.map +0 -1
  378. package/FormSpec.TS/PathwayValidator.js.map +0 -1
  379. package/FormSpec.TS/PathwayValidator.ts.map +0 -1
  380. package/FormSpec.TS/PluginInterface.js.map +0 -1
  381. package/FormSpec.TS/PluginInterface.ts.map +0 -1
  382. package/FormSpec.TS/Prelude.js.map +0 -1
  383. package/FormSpec.TS/Prelude.ts.map +0 -1
  384. package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.js.map +0 -1
  385. package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.ts.map +0 -1
  386. package/FormSpec.TS/Renderers/MermaidRenderer.js.map +0 -1
  387. package/FormSpec.TS/Renderers/MermaidRenderer.ts.map +0 -1
  388. package/FormSpec.TS/Renderers/PathwayRenderers.js.map +0 -1
  389. package/FormSpec.TS/Renderers/PathwayRenderers.ts.map +0 -1
  390. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs +0 -83
  391. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.js.map +0 -1
  392. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.ts.map +0 -1
  393. package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.js +0 -561
  394. package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.js.map +0 -1
  395. package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.ts.map +0 -1
  396. package/FormSpec.d.ts.map +0 -1
  397. package/FormSpecHelpers.d.ts.map +0 -1
  398. package/FormSpecValues.d.ts.map +0 -1
  399. package/Helpers.d.ts.map +0 -1
  400. package/Interfaces.d.ts.map +0 -1
  401. package/Interop/FormSpec.Api.Helpers.d.ts.map +0 -1
  402. package/Interop/FormSpec.Api.Option.d.ts.map +0 -1
  403. package/Interop/FormSpec.Values.Api.Option.d.ts.map +0 -1
  404. package/Logging/LogTypes.d.ts.map +0 -1
  405. package/Migrator.d.ts.map +0 -1
  406. package/PathwayDataExtractor.d.ts.map +0 -1
  407. package/PathwayExecutor.d.ts.map +0 -1
  408. package/PathwayValidator.d.ts.map +0 -1
  409. package/PluginInterface.d.ts.map +0 -1
  410. package/Prelude.d.ts.map +0 -1
  411. package/Renderers/FormSpecMarkdownRenderer.d.ts.map +0 -1
  412. package/Renderers/MermaidRenderer.d.ts.map +0 -1
  413. package/Renderers/PathwayRenderers.d.ts.map +0 -1
  414. /package/{Components → FormSpec.FS/Components}/HelloComponent.d.ts +0 -0
  415. /package/{Designer.d.ts → FormSpec.FS/Designer.d.ts} +0 -0
  416. /package/{FormSpec.d.ts → FormSpec.FS/FormSpec.d.ts} +0 -0
  417. /package/{FormSpecHelpers.d.ts → FormSpec.FS/FormSpecHelpers.d.ts} +0 -0
  418. /package/{FormSpecValues.d.ts → FormSpec.FS/FormSpecValues.d.ts} +0 -0
  419. /package/{Helpers.d.ts → FormSpec.FS/Helpers.d.ts} +0 -0
  420. /package/{Interfaces.d.ts → FormSpec.FS/Interfaces.d.ts} +0 -0
  421. /package/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Helpers.d.ts +0 -0
  422. /package/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Option.d.ts +0 -0
  423. /package/{Interop → FormSpec.FS/Interop}/FormSpec.Values.Api.Option.d.ts +0 -0
  424. /package/{Logging → FormSpec.FS/Logging}/LogTypes.d.ts +0 -0
  425. /package/{Migrator.d.ts → FormSpec.FS/Migrator.d.ts} +0 -0
  426. /package/{PathwayDataExtractor.d.ts → FormSpec.FS/PathwayDataExtractor.d.ts} +0 -0
  427. /package/{PathwayExecutor.d.ts → FormSpec.FS/PathwayExecutor.d.ts} +0 -0
  428. /package/{PathwayValidator.d.ts → FormSpec.FS/PathwayValidator.d.ts} +0 -0
  429. /package/{PluginInterface.d.ts → FormSpec.FS/PluginInterface.d.ts} +0 -0
  430. /package/{Prelude.d.ts → FormSpec.FS/Prelude.d.ts} +0 -0
  431. /package/{Renderers → FormSpec.FS/Renderers}/FormSpecMarkdownRenderer.d.ts +0 -0
  432. /package/{Renderers → FormSpec.FS/Renderers}/MermaidRenderer.d.ts +0 -0
  433. /package/{Renderers → FormSpec.FS/Renderers}/PathwayRenderers.d.ts +0 -0
  434. /package/FormSpec.TS/{Components → FormSpec.FS/Components}/HelloComponent.js +0 -0
  435. /package/FormSpec.TS/{Designer.js → FormSpec.FS/Designer.js} +0 -0
  436. /package/FormSpec.TS/{FormSpec.js → FormSpec.FS/FormSpec.js} +0 -0
  437. /package/FormSpec.TS/{FormSpecValues.js → FormSpec.FS/FormSpecValues.js} +0 -0
  438. /package/FormSpec.TS/{Helpers.js → FormSpec.FS/Helpers.js} +0 -0
  439. /package/FormSpec.TS/{Interfaces.js → FormSpec.FS/Interfaces.js} +0 -0
  440. /package/FormSpec.TS/{Logging → FormSpec.FS/Logging}/LogTypes.js +0 -0
  441. /package/FormSpec.TS/{PathwayDataExtractor.js → FormSpec.FS/PathwayDataExtractor.js} +0 -0
  442. /package/FormSpec.TS/{PathwayValidator.js → FormSpec.FS/PathwayValidator.js} +0 -0
  443. /package/FormSpec.TS/{PluginInterface.js → FormSpec.FS/PluginInterface.js} +0 -0
  444. /package/FormSpec.TS/{Prelude.js → FormSpec.FS/Prelude.js} +0 -0
  445. /package/FormSpec.TS/{Renderers → FormSpec.FS/Renderers}/FormSpecMarkdownRenderer.js +0 -0
  446. /package/FormSpec.TS/{Renderers → FormSpec.FS/Renderers}/MermaidRenderer.js +0 -0
  447. /package/FormSpec.TS/{Renderers → FormSpec.FS/Renderers}/PathwayRenderers.js +0 -0
  448. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/BorderStyle.fs +0 -0
  449. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Colors.fs +0 -0
  450. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Colors.fs.js +0 -0
  451. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Colors.fs.ts.map +0 -0
  452. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Fonts.fs +0 -0
  453. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/GridTypes.fs +0 -0
  454. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Html.fs +0 -0
  455. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0/ReactTypes.fs.ts.map → Feliz.2.8.0/Interop.fs.ts.map} +0 -0
  456. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Key.fs +0 -0
  457. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Key.fs.js +0 -0
  458. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Key.fs.ts.map +0 -0
  459. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Locale.fs +0 -0
  460. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Properties.fs.js +0 -0
  461. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Properties.fs.ts.map +0 -0
  462. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactDOM.fs +0 -0
  463. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactDOM.fs.js +0 -0
  464. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactDOM.fs.ts.map +0 -0
  465. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactInterop.js +0 -0
  466. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactTypes.fs.js +0 -0
  467. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0/StyleTypes.fs.ts.map → Feliz.2.8.0/ReactTypes.fs.ts.map} +0 -0
  468. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/StyleTypes.fs.js +0 -0
  469. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0/Svg.fs.ts.map → Feliz.2.8.0/StyleTypes.fs.ts.map} +0 -0
  470. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Svg.fs +0 -0
  471. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Svg.fs.js +0 -0
  472. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0/Types.fs.ts.map → Feliz.2.8.0/Svg.fs.ts.map} +0 -0
  473. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/TextDecorationLine.fs +0 -0
  474. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/TextDecorationStyle.fs +0 -0
  475. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Transform.fs +0 -0
  476. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/TransformOrigin.fs +0 -0
  477. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/TransitionProperty.fs +0 -0
  478. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Types.fs +0 -0
  479. /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Types.fs.js +0 -0
  480. /package/src/{Components → FormSpec.FS/Components}/HelloComponent.ts +0 -0
  481. /package/src/{Designer.ts → FormSpec.FS/Designer.ts} +0 -0
  482. /package/src/{FormSpec.ts → FormSpec.FS/FormSpec.ts} +0 -0
  483. /package/src/{FormSpecValues.ts → FormSpec.FS/FormSpecValues.ts} +0 -0
  484. /package/src/{Helpers.ts → FormSpec.FS/Helpers.ts} +0 -0
  485. /package/src/{Interfaces.ts → FormSpec.FS/Interfaces.ts} +0 -0
  486. /package/src/{Logging → FormSpec.FS/Logging}/LogTypes.ts +0 -0
  487. /package/src/{PathwayDataExtractor.ts → FormSpec.FS/PathwayDataExtractor.ts} +0 -0
  488. /package/src/{PathwayValidator.ts → FormSpec.FS/PathwayValidator.ts} +0 -0
  489. /package/src/{PluginInterface.ts → FormSpec.FS/PluginInterface.ts} +0 -0
  490. /package/src/{Prelude.ts → FormSpec.FS/Prelude.ts} +0 -0
  491. /package/src/{Renderers → FormSpec.FS/Renderers}/FormSpecMarkdownRenderer.ts +0 -0
  492. /package/src/{Renderers → FormSpec.FS/Renderers}/MermaidRenderer.ts +0 -0
  493. /package/src/{Renderers → FormSpec.FS/Renderers}/PathwayRenderers.ts +0 -0
@@ -0,0 +1,420 @@
1
+ import { FSharpRef, Record } from "@fable-org/fable-library-js/Types.js";
2
+ import { equals, int32ToString, createObj, IComparable, IEquatable } from "@fable-org/fable-library-js/Util.js";
3
+ import { class_type, list_type, record_type, string_type, TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
4
+ import { choose, sum, map as map_1, append as append_1, empty as empty_1, singleton as singleton_1, sumBy, length, ofArray, isEmpty as isEmpty_2, FSharpList } from "@fable-org/fable-library-js/List.js";
5
+ import { mapValues, Field$3, IAttributes } from "../../../fable_modules/Fable.Form.3.0.0/Field.fs.js";
6
+ import { Form$3, FieldConfig$4, field as field_1 } from "../../../fable_modules/Fable.Form.3.0.0/Base.fs.js";
7
+ import { toList as toList_1, FSharpMap__get_Count, add, remove, tryFind, FSharpMap, isEmpty as isEmpty_1 } from "@fable-org/fable-library-js/Map.js";
8
+ import { createElement } from "react";
9
+ import React from "react";
10
+ import { withLabelAndError } from "../../../fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.js";
11
+ import { map, empty, collect, singleton, append, delay, toList } from "@fable-org/fable-library-js/Seq.js";
12
+ import { ReactElement } from "../../../fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.js";
13
+ import { value as value_123, Option } from "@fable-org/fable-library-js/Option.js";
14
+ import { IStyleAttribute } from "../../../fable_modules/Feliz.2.8.0/Types.fs.js";
15
+ import { rgba } from "../../../fable_modules/Feliz.2.8.0/Colors.fs.js";
16
+ import { tryParse, int32, float64 } from "@fable-org/fable-library-js/Int32.js";
17
+ import { reactApi } from "../../../fable_modules/Feliz.2.8.0/Interop.fs.js";
18
+ import { IStandardField$3_$reflection, IStandardField$3, IField$1, StandardRenderFieldConfig$2 } from "../../../fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.js";
19
+ import { Spec_FormField$1, Spec_FieldType_$union, Shared_MatrixAnswer, Shared_MatrixItemKey, Shared_FieldOption, Shared_FieldValue_$union, Shared_FieldKey, Shared_FieldValue_PluginData, Shared_PluginDataProperty, Shared_PluginPropertyKey, Spec_PluginFieldConfig } from "../../../FormSpec.FS/FormSpec.js";
20
+ import { FSharpResult$2_$union, FSharpResult$2_Ok } from "@fable-org/fable-library-js/Result.js";
21
+ import { IPluginValueConverter } from "../../../FormSpec.FS/PluginInterface.js";
22
+ import { rangeDouble } from "@fable-org/fable-library-js/Range.js";
23
+ import { RenderPreviewProps$1 } from "../../../FormSpec.FS/Interfaces.js";
24
+ import { substring, join } from "@fable-org/fable-library-js/String.js";
25
+ import { FieldDetails } from "../../../FormSpec.FS/Designer.js";
26
+
27
+ export class LikertField_LikertItemConfig extends Record implements IEquatable<LikertField_LikertItemConfig>, IComparable<LikertField_LikertItemConfig> {
28
+ readonly Key: string;
29
+ readonly Label: string;
30
+ constructor(Key: string, Label: string) {
31
+ super();
32
+ this.Key = Key;
33
+ this.Label = Label;
34
+ }
35
+ }
36
+
37
+ export function LikertField_LikertItemConfig_$reflection(): TypeInfo {
38
+ return record_type("Fable.Form.Simple.Bulma.Fields.LikertField.LikertField.LikertItemConfig", [], LikertField_LikertItemConfig, () => [["Key", string_type], ["Label", string_type]]);
39
+ }
40
+
41
+ export class LikertField_LikertOptionConfig extends Record implements IEquatable<LikertField_LikertOptionConfig>, IComparable<LikertField_LikertOptionConfig> {
42
+ readonly Value: string;
43
+ readonly Label: string;
44
+ readonly Description: string;
45
+ constructor(Value: string, Label: string, Description: string) {
46
+ super();
47
+ this.Value = Value;
48
+ this.Label = Label;
49
+ this.Description = Description;
50
+ }
51
+ }
52
+
53
+ export function LikertField_LikertOptionConfig_$reflection(): TypeInfo {
54
+ return record_type("Fable.Form.Simple.Bulma.Fields.LikertField.LikertField.LikertOptionConfig", [], LikertField_LikertOptionConfig, () => [["Value", string_type], ["Label", string_type], ["Description", string_type]]);
55
+ }
56
+
57
+ export class LikertField_Attributes extends Record implements IEquatable<LikertField_Attributes>, IComparable<LikertField_Attributes>, IAttributes {
58
+ readonly FieldId: string;
59
+ readonly Label: string;
60
+ readonly Items: FSharpList<LikertField_LikertItemConfig>;
61
+ readonly Options: FSharpList<LikertField_LikertOptionConfig>;
62
+ constructor(FieldId: string, Label: string, Items: FSharpList<LikertField_LikertItemConfig>, Options: FSharpList<LikertField_LikertOptionConfig>) {
63
+ super();
64
+ this.FieldId = FieldId;
65
+ this.Label = Label;
66
+ this.Items = Items;
67
+ this.Options = Options;
68
+ }
69
+ GetFieldId(): string {
70
+ const this$: LikertField_Attributes = this;
71
+ return this$.FieldId;
72
+ }
73
+ }
74
+
75
+ export function LikertField_Attributes_$reflection(): TypeInfo {
76
+ return record_type("Fable.Form.Simple.Bulma.Fields.LikertField.LikertField.Attributes", [], LikertField_Attributes, () => [["FieldId", string_type], ["Label", string_type], ["Items", list_type(LikertField_LikertItemConfig_$reflection())], ["Options", list_type(LikertField_LikertOptionConfig_$reflection())]]);
77
+ }
78
+
79
+ export function LikertField_form<Values, Field, Output>(): ((arg0: ((arg0: Field$3<LikertField_Attributes, FSharpMap<string, string>, Values>) => Field)) => ((arg0: FieldConfig$4<LikertField_Attributes, FSharpMap<string, string>, Values, Output>) => Form$3<Values, Output, Field>)) {
80
+ return (build: ((arg0: Field$3<LikertField_Attributes, FSharpMap<string, string>, Values>) => Field)): ((arg0: FieldConfig$4<LikertField_Attributes, FSharpMap<string, string>, Values, Output>) => Form$3<Values, Output, Field>) => ((config: FieldConfig$4<LikertField_Attributes, FSharpMap<string, string>, Values, Output>): Form$3<Values, Output, Field> => field_1<FSharpMap<string, string>, LikertField_Attributes, Values, Field, Output>(isEmpty_1, build, config));
81
+ }
82
+
83
+ export function LikertField_LikertFieldComponent(config: StandardRenderFieldConfig$2<FSharpMap<string, string>, LikertField_Attributes>): ReactElement {
84
+ let elems_5: Iterable<ReactElement>;
85
+ const value: FSharpMap<string, string> = config.Value;
86
+ return withLabelAndError(config.Attributes.Label, config.ShowError, config.Error, createElement<any>("div", createObj(ofArray([["className", "likert-field"] as [string, any], (elems_5 = toList<ReactElement>(delay<ReactElement>((): Iterable<ReactElement> => {
87
+ let elems_3: Iterable<ReactElement>;
88
+ return append<ReactElement>(singleton<ReactElement>(createElement<any>("div", createObj(ofArray([["className", "likert-container"] as [string, any], ["style", {
89
+ width: 100 + "%",
90
+ }] as [string, any], (elems_3 = toList<ReactElement>(delay<ReactElement>((): Iterable<ReactElement> => (isEmpty_2(config.Attributes.Items) ? singleton<ReactElement>(createElement<any>("div", {
91
+ className: "likert-empty-message",
92
+ style: {
93
+ padding: 2 + "rem",
94
+ textAlign: "center",
95
+ color: "#7a7a7a",
96
+ fontStyle: "italic",
97
+ },
98
+ children: "No items configured. Please add items to this Likert scale.",
99
+ })) : collect<LikertField_LikertItemConfig, Iterable<ReactElement>, ReactElement>((item: LikertField_LikertItemConfig): Iterable<ReactElement> => {
100
+ let elems_2: Iterable<ReactElement>, elems: Iterable<ReactElement>, elems_1: Iterable<ReactElement>;
101
+ const selectedValue: Option<string> = tryFind<string, string>(item.Key, value);
102
+ return singleton<ReactElement>(createElement<any>("div", createObj(ofArray([["className", "likert-item"] as [string, any], ["style", {
103
+ marginBottom: 1.5 + "rem",
104
+ padding: 1 + "rem",
105
+ backgroundColor: "#fafafa",
106
+ borderRadius: 8 + "px",
107
+ border: (((1 + "px ") + "solid") + " ") + "#e8e8e8",
108
+ }] as [string, any], (elems_2 = [createElement<any>("div", {
109
+ className: "likert-item-label",
110
+ style: {
111
+ marginBottom: 0.75 + "rem",
112
+ fontWeight: 500,
113
+ fontSize: 1 + "rem",
114
+ color: "#363636",
115
+ },
116
+ children: item.Label,
117
+ }), createElement<any>("div", createObj(ofArray([["className", "likert-options"] as [string, any], ["style", {
118
+ display: "flex",
119
+ justifyContent: "space-between",
120
+ gap: 0.5 + "rem",
121
+ flexWrap: "wrap",
122
+ }] as [string, any], (elems = toList<ReactElement>(delay<ReactElement>((): Iterable<ReactElement> => collect<LikertField_LikertOptionConfig, Iterable<ReactElement>, ReactElement>((option: LikertField_LikertOptionConfig): Iterable<ReactElement> => {
123
+ const isSelected: boolean = (selectedValue == null) ? false : (value_123(selectedValue) === option.Value);
124
+ return singleton<ReactElement>(createElement<any>("button", {
125
+ type: "button",
126
+ className: isSelected ? "button is-primary is-selected" : "button is-light",
127
+ style: createObj(toList<IStyleAttribute>(delay<IStyleAttribute>((): Iterable<IStyleAttribute> => append<IStyleAttribute>(singleton<IStyleAttribute>(["flexGrow", 1] as [string, any]), delay<IStyleAttribute>((): Iterable<IStyleAttribute> => append<IStyleAttribute>(singleton<IStyleAttribute>(["flexBasis", 0] as [string, any]), delay<IStyleAttribute>((): Iterable<IStyleAttribute> => append<IStyleAttribute>(singleton<IStyleAttribute>(["minWidth", 60 + "px"] as [string, any]), delay<IStyleAttribute>((): Iterable<IStyleAttribute> => append<IStyleAttribute>(singleton<IStyleAttribute>(["margin", 2 + "px"] as [string, any]), delay<IStyleAttribute>((): Iterable<IStyleAttribute> => append<IStyleAttribute>(singleton<IStyleAttribute>(["transitionDuration", 200 + "ms"] as [string, any]), delay<IStyleAttribute>((): Iterable<IStyleAttribute> => (isSelected ? append<IStyleAttribute>(singleton<IStyleAttribute>(["fontWeight", "bold"] as [string, any]), delay<IStyleAttribute>((): Iterable<IStyleAttribute> => singleton<IStyleAttribute>(["boxShadow", (((((0 + "px ") + 2) + "px ") + 8) + "px ") + rgba<float64>(0, 0, 0, 0.15)] as [string, any]))) : empty<IStyleAttribute>())))))))))))))),
128
+ children: option.Value,
129
+ title: option.Label,
130
+ disabled: config.Disabled ? true : config.IsReadOnly,
131
+ onClick: (_arg: MouseEvent): void => {
132
+ if (!config.Disabled && !config.IsReadOnly) {
133
+ config.OnChange(isSelected ? remove<string, string>(item.Key, value) : add<string, string>(item.Key, option.Value, value));
134
+ }
135
+ },
136
+ }));
137
+ }, config.Attributes.Options))), ["children", reactApi.Children.toArray(Array.from(elems))] as [string, any])]))), createElement<any>("div", createObj(ofArray([["className", "likert-labels"] as [string, any], ["style", {
138
+ display: "flex",
139
+ justifyContent: "space-between",
140
+ fontSize: 0.7 + "rem",
141
+ color: "#7a7a7a",
142
+ marginTop: 0.35 + "rem",
143
+ }] as [string, any], (elems_1 = toList<ReactElement>(delay<ReactElement>((): Iterable<ReactElement> => map<LikertField_LikertOptionConfig, ReactElement>((option_1: LikertField_LikertOptionConfig): ReactElement => createElement<any>("span", {
144
+ style: {
145
+ flexGrow: 1,
146
+ flexBasis: 0,
147
+ textAlign: "center",
148
+ padding: 2 + "px",
149
+ },
150
+ children: option_1.Label,
151
+ }), config.Attributes.Options))), ["children", reactApi.Children.toArray(Array.from(elems_1))] as [string, any])])))], ["children", reactApi.Children.toArray(Array.from(elems_2))] as [string, any])]))));
152
+ }, config.Attributes.Items)))), ["children", reactApi.Children.toArray(Array.from(elems_3))] as [string, any])])))), delay<ReactElement>((): Iterable<ReactElement> => {
153
+ let elems_4: Iterable<ReactElement>;
154
+ const completedCount: int32 = FSharpMap__get_Count(value) | 0;
155
+ const totalCount: int32 = length(config.Attributes.Items) | 0;
156
+ return (totalCount > 0) ? singleton<ReactElement>(createElement<any>("div", createObj(ofArray([["className", "likert-progress"] as [string, any], ["style", {
157
+ marginTop: 1 + "rem",
158
+ fontSize: 0.85 + "rem",
159
+ color: (completedCount === totalCount) ? "#48c774" : "#7a7a7a",
160
+ textAlign: "right",
161
+ }] as [string, any], (elems_4 = toList<ReactElement>(delay<ReactElement>((): Iterable<ReactElement> => append<ReactElement>(singleton<ReactElement>(`Answered: ${completedCount} / ${totalCount}`), delay<ReactElement>((): Iterable<ReactElement> => ((completedCount === totalCount) ? singleton<ReactElement>(createElement<any>("span", {
162
+ style: {
163
+ marginLeft: 0.5 + "rem",
164
+ },
165
+ children: "✓",
166
+ })) : empty<ReactElement>()))))), ["children", reactApi.Children.toArray(Array.from(elems_4))] as [string, any])])))) : empty<ReactElement>();
167
+ }));
168
+ })), ["children", reactApi.Children.toArray(Array.from(elems_5))] as [string, any])]))));
169
+ }
170
+
171
+ export class LikertField_Field$1<Values> extends IStandardField$3<Values, FSharpMap<string, string>, LikertField_Attributes> implements IField$1<Values> {
172
+ readonly innerField_1: Field$3<LikertField_Attributes, FSharpMap<string, string>, Values>;
173
+ constructor(innerField: Field$3<LikertField_Attributes, FSharpMap<string, string>, Values>) {
174
+ super(innerField);
175
+ this.innerField_1 = innerField;
176
+ }
177
+ "Fable.Form.Simple.Bulma.IStandardField`3.RenderFieldZ43FEF6DC"(config: StandardRenderFieldConfig$2<FSharpMap<string, string>, LikertField_Attributes>): ReactElement {
178
+ return createElement(LikertField_LikertFieldComponent, config);
179
+ }
180
+ MapFieldValues<NewValues>(update: ((arg0: Values) => $a)): IField$1<$a> {
181
+ const _: LikertField_Field$1<Values> = this;
182
+ return LikertField_Field$1_$ctor_3DBAD33C<$a>(mapValues<Values, $a, LikertField_Attributes, FSharpMap<string, string>>(update, _.innerField_1));
183
+ }
184
+ }
185
+
186
+ export function LikertField_Field$1_$reflection(gen0: TypeInfo): TypeInfo {
187
+ return class_type("Fable.Form.Simple.Bulma.Fields.LikertField.LikertField.Field`1", [gen0], LikertField_Field$1, IStandardField$3_$reflection(gen0, class_type("Microsoft.FSharp.Collections.FSharpMap`2", [string_type, string_type]), LikertField_Attributes_$reflection()));
188
+ }
189
+
190
+ export function LikertField_Field$1_$ctor_3DBAD33C<Values>(innerField: Field$3<LikertField_Attributes, FSharpMap<string, string>, Values>): LikertField_Field$1<Values> {
191
+ return new LikertField_Field$1(innerField);
192
+ }
193
+
194
+ /**
195
+ * Create a Likert scale field
196
+ */
197
+ export function Form_likertField<Values, Output>(config: FieldConfig$4<LikertField_Attributes, FSharpMap<string, string>, Values, Output>): Form$3<Values, Output, IField$1<Values>> {
198
+ return LikertField_form<Values, IField$1<Values>, Output>()(LikertField_Field$1_$ctor_3DBAD33C)(config);
199
+ }
200
+
201
+ export const Form_pluginConfig: Spec_PluginFieldConfig = new Spec_PluginFieldConfig("Fable.Form.Simple.Bulma.Fields.LikertField");
202
+
203
+ export const Form_likertConverter: IPluginValueConverter = (() => {
204
+ const totalScoreKey: Shared_PluginPropertyKey = new Shared_PluginPropertyKey("a1a1a1a1-2222-3333-4444-555555555555");
205
+ const totalScoreMeta = (): Shared_PluginDataProperty => (new Shared_PluginDataProperty(totalScoreKey, "TotalScore", "int", "", "Total Score", undefined, "Sum of all Likert item ratings"));
206
+ return new IPluginValueConverter((_arg: Shared_FieldKey, v: any): Option<Shared_FieldValue_$union> => {
207
+ let p: Shared_PluginDataProperty;
208
+ const total: int32 = sumBy<[string, string], int32>((tupledArg: [string, string]): int32 => {
209
+ let matchValue: [boolean, int32];
210
+ let outArg = 0;
211
+ matchValue = ([tryParse(tupledArg[1].trim(), 511, false, 32, new FSharpRef<int32>((): int32 => outArg, (v_2: int32): void => {
212
+ outArg = (v_2 | 0);
213
+ })), outArg] as [boolean, int32]);
214
+ if (matchValue[0]) {
215
+ return matchValue[1] | 0;
216
+ }
217
+ else {
218
+ return 0;
219
+ }
220
+ }, toList_1<string, string>(v), {
221
+ GetZero: (): int32 => 0,
222
+ Add: (x: int32, y: int32): int32 => (x + y),
223
+ }) | 0;
224
+ return Shared_FieldValue_PluginData(singleton_1((p = totalScoreMeta(), new Shared_PluginDataProperty(p.PropertyKey, p.Name, p.DataType, int32ToString(total), p.DisplayName, p.Unit, p.Description))));
225
+ }, (_arg_2: Shared_FieldValue_$union): Option<any> => undefined, (): Option<FSharpList<Shared_FieldOption>> => undefined, (): FSharpList<string> => singleton_1("TotalScore"), (n_1: string): Option<Shared_PluginDataProperty> => ((n_1 === "TotalScore") ? totalScoreMeta() : undefined), (_arg_3: Shared_PluginPropertyKey): Option<Shared_PluginDataProperty> => totalScoreMeta(), (n_2: string, fv: Shared_FieldValue_$union): Option<Shared_PluginDataProperty> => {
226
+ let bind$0040: Shared_PluginDataProperty, ma: Shared_MatrixAnswer;
227
+ let matchResult: int32, ma_1: Shared_MatrixAnswer;
228
+ if (fv.tag === /* Matrix */ 2) {
229
+ if ((ma = fv.fields[0], n_2 === "TotalScore")) {
230
+ matchResult = 0;
231
+ ma_1 = fv.fields[0];
232
+ }
233
+ else {
234
+ matchResult = 1;
235
+ }
236
+ }
237
+ else {
238
+ matchResult = 1;
239
+ }
240
+ switch (matchResult) {
241
+ case 0: {
242
+ const total_1: int32 = sumBy<[Shared_MatrixItemKey, string], int32>((tupledArg_1: [Shared_MatrixItemKey, string]): int32 => {
243
+ let matchValue_1: [boolean, int32];
244
+ let outArg_1 = 0;
245
+ matchValue_1 = ([tryParse(tupledArg_1[1].trim(), 511, false, 32, new FSharpRef<int32>((): int32 => outArg_1, (v_4: int32): void => {
246
+ outArg_1 = (v_4 | 0);
247
+ })), outArg_1] as [boolean, int32]);
248
+ if (matchValue_1[0]) {
249
+ return matchValue_1[1] | 0;
250
+ }
251
+ else {
252
+ return 0;
253
+ }
254
+ }, toList_1<Shared_MatrixItemKey, string>(ma_1!.Values), {
255
+ GetZero: (): int32 => 0,
256
+ Add: (x_1: int32, y_1: int32): int32 => (x_1 + y_1),
257
+ }) | 0;
258
+ return (bind$0040 = totalScoreMeta(), new Shared_PluginDataProperty(bind$0040.PropertyKey, bind$0040.Name, bind$0040.DataType, int32ToString(total_1), bind$0040.DisplayName, bind$0040.Unit, bind$0040.Description));
259
+ }
260
+ default:
261
+ return undefined;
262
+ }
263
+ }, (k: Shared_PluginPropertyKey, fv_1: Shared_FieldValue_$union): Option<Shared_PluginDataProperty> => {
264
+ let bind$0040_1: Shared_PluginDataProperty, ma_2: Shared_MatrixAnswer;
265
+ let matchResult_1: int32, ma_3: Shared_MatrixAnswer;
266
+ if (fv_1.tag === /* Matrix */ 2) {
267
+ if ((ma_2 = fv_1.fields[0], equals(k, totalScoreKey))) {
268
+ matchResult_1 = 0;
269
+ ma_3 = fv_1.fields[0];
270
+ }
271
+ else {
272
+ matchResult_1 = 1;
273
+ }
274
+ }
275
+ else {
276
+ matchResult_1 = 1;
277
+ }
278
+ switch (matchResult_1) {
279
+ case 0: {
280
+ const total_2: int32 = sumBy<[Shared_MatrixItemKey, string], int32>((tupledArg_2: [Shared_MatrixItemKey, string]): int32 => {
281
+ let matchValue_2: [boolean, int32];
282
+ let outArg_2 = 0;
283
+ matchValue_2 = ([tryParse(tupledArg_2[1].trim(), 511, false, 32, new FSharpRef<int32>((): int32 => outArg_2, (v_6: int32): void => {
284
+ outArg_2 = (v_6 | 0);
285
+ })), outArg_2] as [boolean, int32]);
286
+ if (matchValue_2[0]) {
287
+ return matchValue_2[1] | 0;
288
+ }
289
+ else {
290
+ return 0;
291
+ }
292
+ }, toList_1<Shared_MatrixItemKey, string>(ma_3!.Values), {
293
+ GetZero: (): int32 => 0,
294
+ Add: (x_2: int32, y_2: int32): int32 => (x_2 + y_2),
295
+ }) | 0;
296
+ return (bind$0040_1 = totalScoreMeta(), new Shared_PluginDataProperty(bind$0040_1.PropertyKey, bind$0040_1.Name, bind$0040_1.DataType, int32ToString(total_2), bind$0040_1.DisplayName, bind$0040_1.Unit, bind$0040_1.Description));
297
+ }
298
+ default:
299
+ return undefined;
300
+ }
301
+ }, (_arg_6: string, _arg_7: string): FSharpResult$2_$union<void, string> => FSharpResult$2_Ok<void, string>(undefined), (fv_2: Shared_FieldValue_$union): FSharpList<Shared_PluginDataProperty> => {
302
+ let bind$0040_2: Shared_PluginDataProperty;
303
+ if (fv_2.tag === /* Matrix */ 2) {
304
+ const total_3: int32 = sumBy<[Shared_MatrixItemKey, string], int32>((tupledArg_3: [Shared_MatrixItemKey, string]): int32 => {
305
+ let matchValue_3: [boolean, int32];
306
+ let outArg_3 = 0;
307
+ matchValue_3 = ([tryParse(tupledArg_3[1].trim(), 511, false, 32, new FSharpRef<int32>((): int32 => outArg_3, (v_8: int32): void => {
308
+ outArg_3 = (v_8 | 0);
309
+ })), outArg_3] as [boolean, int32]);
310
+ if (matchValue_3[0]) {
311
+ return matchValue_3[1] | 0;
312
+ }
313
+ else {
314
+ return 0;
315
+ }
316
+ }, toList_1<Shared_MatrixItemKey, string>(fv_2.fields[0].Values), {
317
+ GetZero: (): int32 => 0,
318
+ Add: (x_3: int32, y_3: int32): int32 => (x_3 + y_3),
319
+ }) | 0;
320
+ return singleton_1((bind$0040_2 = totalScoreMeta(), new Shared_PluginDataProperty(bind$0040_2.PropertyKey, bind$0040_2.Name, bind$0040_2.DataType, int32ToString(total_3), bind$0040_2.DisplayName, bind$0040_2.Unit, bind$0040_2.Description)));
321
+ }
322
+ else {
323
+ return empty_1<Shared_PluginDataProperty>();
324
+ }
325
+ });
326
+ })();
327
+
328
+ /**
329
+ * Designer preview for the Likert field
330
+ */
331
+ export function Form_designerPreview(props: RenderPreviewProps$1<Spec_FieldType_$union>): ReactElement {
332
+ let elems_2: Iterable<ReactElement>, elems: Iterable<ReactElement>, elems_1: Iterable<ReactElement>;
333
+ return createElement<any>("div", createObj(ofArray([["className", "likert-designer-preview"] as [string, any], ["style", {
334
+ padding: 1 + "rem",
335
+ backgroundColor: "#fafafa",
336
+ borderRadius: 8 + "px",
337
+ border: (((1 + "px ") + "dashed") + " ") + "#dbdbdb",
338
+ }] as [string, any], (elems_2 = [createElement<any>("div", {
339
+ style: {
340
+ marginBottom: 0.75 + "rem",
341
+ fontWeight: 500,
342
+ color: "#4a4a4a",
343
+ },
344
+ children: "📊 Likert Scale Preview",
345
+ }), createElement<any>("div", createObj(ofArray([["style", {
346
+ display: "flex",
347
+ justifyContent: "space-between",
348
+ gap: 0.25 + "rem",
349
+ }] as [string, any], (elems = toList<ReactElement>(delay<ReactElement>((): Iterable<ReactElement> => map<int32, ReactElement>((i: int32): ReactElement => createElement<any>("span", {
350
+ className: "button is-small is-light",
351
+ style: {
352
+ flexGrow: 1,
353
+ textAlign: "center",
354
+ fontSize: 0.75 + "rem",
355
+ },
356
+ children: int32ToString(i),
357
+ }), rangeDouble(1, 1, 5)))), ["children", reactApi.Children.toArray(Array.from(elems))] as [string, any])]))), createElement<any>("div", createObj(ofArray([["style", {
358
+ display: "flex",
359
+ justifyContent: "space-between",
360
+ fontSize: 0.65 + "rem",
361
+ color: "#7a7a7a",
362
+ marginTop: 0.25 + "rem",
363
+ }] as [string, any], (elems_1 = [createElement<any>("span", {
364
+ children: "Disagree",
365
+ }), createElement<any>("span", {
366
+ children: "Neutral",
367
+ }), createElement<any>("span", {
368
+ children: "Agree",
369
+ })], ["children", reactApi.Children.toArray(Array.from(elems_1))] as [string, any])]))), createElement<any>("div", {
370
+ style: {
371
+ fontSize: 0.75 + "rem",
372
+ color: "#7a7a7a",
373
+ textAlign: "center",
374
+ marginTop: 0.75 + "rem",
375
+ },
376
+ children: "Multiple items can be rated using the same scale",
377
+ })], ["children", reactApi.Children.toArray(Array.from(elems_2))] as [string, any])])));
378
+ }
379
+
380
+ /**
381
+ * Render Likert field results as Markdown
382
+ */
383
+ export function Form_markdownRenderer(field: Spec_FormField$1<Spec_FieldType_$union>, fieldDetails: FieldDetails): string {
384
+ const matchValue: Shared_FieldValue_$union = fieldDetails.FieldValue;
385
+ switch (matchValue.tag) {
386
+ case /* Single */ 0:
387
+ return `**${field.Label}:** ${matchValue.fields[0].Value}`;
388
+ case /* Multiple */ 1:
389
+ return `**${field.Label}:** *Multiple values (unexpected format)*`;
390
+ case /* PluginData */ 3:
391
+ return `**${field.Label}:** *Plugin data (use plugin-specific export)*`;
392
+ default: {
393
+ const matrixAnswer: Shared_MatrixAnswer = matchValue.fields[0];
394
+ const itemCount: int32 = FSharpMap__get_Count(matrixAnswer.Values) | 0;
395
+ if (itemCount === 0) {
396
+ return `**${field.Label}:** *No responses provided*`;
397
+ }
398
+ else {
399
+ return join("\n", append_1(ofArray([`**${field.Label}** 📊`, "", "| Item | Rating |", "|------|--------|"]), append_1(map_1<[Shared_MatrixItemKey, string], string>((tupledArg: [Shared_MatrixItemKey, string]): string => (`| ${substring(tupledArg[0].fields[0], 0, 8)} | **${tupledArg[1]}** |`), toList_1<Shared_MatrixItemKey, string>(matrixAnswer.Values)), ofArray(["", `> **Total Score:** ${sum<int32>(choose<[Shared_MatrixItemKey, string], int32>((tupledArg_1: [Shared_MatrixItemKey, string]): Option<int32> => {
400
+ let matchValue_1: [boolean, int32];
401
+ let outArg = 0;
402
+ matchValue_1 = ([tryParse(tupledArg_1[1], 511, false, 32, new FSharpRef<int32>((): int32 => outArg, (v_1: int32): void => {
403
+ outArg = (v_1 | 0);
404
+ })), outArg] as [boolean, int32]);
405
+ if (matchValue_1[0]) {
406
+ return matchValue_1[1];
407
+ }
408
+ else {
409
+ return undefined;
410
+ }
411
+ }, toList_1<Shared_MatrixItemKey, string>(matrixAnswer.Values)), {
412
+ GetZero: (): int32 => 0,
413
+ Add: (x: int32, y: int32): int32 => (x + y),
414
+ })} (${itemCount} items rated)`]))));
415
+ }
416
+ }
417
+ }
418
+ }
419
+
420
+ //# sourceMappingURL=LikertField.ts.map
@@ -0,0 +1,185 @@
1
+ import { Record } from "@fable-org/fable-library-js/Types.js";
2
+ import { equals, createObj, IDisposable, IComparable, IEquatable } from "@fable-org/fable-library-js/Util.js";
3
+ import { mapValues, Field$3, IAttributes } from "../../../fable_modules/Fable.Form.3.0.0/Field.fs.js";
4
+ import { class_type, record_type, string_type, TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
5
+ import { Form$3, FieldConfig$4, field as field_1 } from "../../../fable_modules/Fable.Form.3.0.0/Base.fs.js";
6
+ import { join, isNullOrWhiteSpace, isNullOrEmpty } from "@fable-org/fable-library-js/String.js";
7
+ import { createElement } from "react";
8
+ import React from "react";
9
+ import { reactApi } from "../../../fable_modules/Feliz.2.8.0/Interop.fs.js";
10
+ import { ReactElement, IRefValue$1 } from "../../../fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.js";
11
+ import { defaultArg, some, value as value_22, Option } from "@fable-org/fable-library-js/Option.js";
12
+ import { useEffectWithDeps } from "../../../fable_modules/Feliz.2.8.0/ReactInterop.js";
13
+ import { int32 } from "@fable-org/fable-library-js/Int32.js";
14
+ import { withLabelAndError } from "../../../fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.js";
15
+ import { empty, singleton, append, delay, toList } from "@fable-org/fable-library-js/Seq.js";
16
+ import { IStyleAttribute } from "../../../fable_modules/Feliz.2.8.0/Types.fs.js";
17
+ import { cons, empty as empty_1, singleton as singleton_1, FSharpList, ofArray } from "@fable-org/fable-library-js/List.js";
18
+ import { reactApi as reactApi_1 } from "../../../fable_modules/Feliz.2.8.0/Interop.fs.js";
19
+ import react_signature_pad_wrapper from "react-signature-pad-wrapper";
20
+ import { IStandardField$3_$reflection, IStandardField$3, IField$1, StandardRenderFieldConfig$2 } from "../../../fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.js";
21
+ import { ISignaturePadProperty } from "../../../fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.js";
22
+ import { Spec_FormField$1, Spec_FieldType_$union, Shared_FieldOption, Shared_FieldValue_$union, Shared_FieldKey, Shared_FieldValue_Single, Shared_FieldAnswer, Shared_PluginDataProperty, Shared_PluginPropertyKey, Spec_PluginFieldConfig } from "../../../FormSpec.FS/FormSpec.js";
23
+ import { FSharpResult$2_$union, FSharpResult$2_Ok } from "@fable-org/fable-library-js/Result.js";
24
+ import { IPluginValueConverter } from "../../../FormSpec.FS/PluginInterface.js";
25
+ import { Helpers_combineClasses } from "../../../fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.js";
26
+ import { RenderPreviewProps$1 } from "../../../FormSpec.FS/Interfaces.js";
27
+ import { now, toString } from "@fable-org/fable-library-js/Date.js";
28
+ import { FieldDetails } from "../../../FormSpec.FS/Designer.js";
29
+
30
+ export class SignatureField_Attributes extends Record implements IEquatable<SignatureField_Attributes>, IComparable<SignatureField_Attributes>, IAttributes {
31
+ readonly FieldId: string;
32
+ readonly Label: string;
33
+ constructor(FieldId: string, Label: string) {
34
+ super();
35
+ this.FieldId = FieldId;
36
+ this.Label = Label;
37
+ }
38
+ GetFieldId(): string {
39
+ const this$: SignatureField_Attributes = this;
40
+ return this$.FieldId;
41
+ }
42
+ }
43
+
44
+ export function SignatureField_Attributes_$reflection(): TypeInfo {
45
+ return record_type("Fable.Form.Simple.Bulma.Fields.SignatureField.SignatureField.Attributes", [], SignatureField_Attributes, () => [["FieldId", string_type], ["Label", string_type]]);
46
+ }
47
+
48
+ export function SignatureField_form<Values, Field, Output>(): ((arg0: ((arg0: Field$3<SignatureField_Attributes, string, Values>) => Field)) => ((arg0: FieldConfig$4<SignatureField_Attributes, string, Values, Output>) => Form$3<Values, Output, Field>)) {
49
+ return (build: ((arg0: Field$3<SignatureField_Attributes, string, Values>) => Field)): ((arg0: FieldConfig$4<SignatureField_Attributes, string, Values, Output>) => Form$3<Values, Output, Field>) => ((config: FieldConfig$4<SignatureField_Attributes, string, Values, Output>): Form$3<Values, Output, Field> => field_1<string, SignatureField_Attributes, Values, Field, Output>(isNullOrEmpty, build, config));
50
+ }
51
+
52
+ export function SignatureField_SignatureFieldComponent(config: StandardRenderFieldConfig$2<string, SignatureField_Attributes>): ReactElement {
53
+ let children: Iterable<ReactElement>, properties_2: FSharpList<ISignaturePadProperty>;
54
+ const signaturePadRef: IRefValue$1<Option<any>> = reactApi.useRef(undefined);
55
+ const timerRef: IRefValue$1<Option<any>> = reactApi.useRef(undefined);
56
+ useEffectWithDeps((): IDisposable => {
57
+ const timerId: int32 = setInterval((): void => {
58
+ const matchValue: Option<any> = signaturePadRef.current;
59
+ if (matchValue == null) {
60
+ }
61
+ else {
62
+ const pad: any = value_22(matchValue);
63
+ try {
64
+ if (!pad.isEmpty()) {
65
+ config.OnChange(pad.toDataURL());
66
+ }
67
+ }
68
+ catch (ex: any) {
69
+ console.error(some("Error capturing signature:"), ex);
70
+ }
71
+ }
72
+ }, 1000) | 0;
73
+ timerRef.current = some(timerId);
74
+ return {
75
+ Dispose(): void {
76
+ const matchValue_1: Option<any> = timerRef.current;
77
+ if (matchValue_1 == null) {
78
+ }
79
+ else {
80
+ clearInterval(value_22(matchValue_1));
81
+ }
82
+ },
83
+ };
84
+ }, [config.OnChange]);
85
+ const dependencies_1: any[] = [config.Value];
86
+ reactApi.useEffect((): void => {
87
+ const matchValue_2: Option<any> = signaturePadRef.current;
88
+ if (matchValue_2 == null) {
89
+ }
90
+ else {
91
+ const signaturePad: any = value_22(matchValue_2);
92
+ try {
93
+ signaturePad.clear();
94
+ if (!isNullOrWhiteSpace(config.Value)) {
95
+ signaturePad.fromDataURL(config.Value);
96
+ }
97
+ }
98
+ catch (ex_1: any) {
99
+ console.error(some("Error setting signature data:"), ex_1);
100
+ }
101
+ }
102
+ }, dependencies_1);
103
+ return withLabelAndError(config.Attributes.Label, config.ShowError, config.Error, (children = [(properties_2 = ofArray([["ref", signaturePadRef] as [string, any], ["redrawOnResize", true] as [string, any], ["canvasProps", {
104
+ style: createObj(toList<IStyleAttribute>(delay<IStyleAttribute>((): Iterable<IStyleAttribute> => append<IStyleAttribute>(singleton<IStyleAttribute>(["margin", "auto"] as [string, any]), delay<IStyleAttribute>((): Iterable<IStyleAttribute> => append<IStyleAttribute>(singleton<IStyleAttribute>(["display", "block"] as [string, any]), delay<IStyleAttribute>((): Iterable<IStyleAttribute> => append<IStyleAttribute>(singleton<IStyleAttribute>(["borderRadius", 5 + "px"] as [string, any]), delay<IStyleAttribute>((): Iterable<IStyleAttribute> => append<IStyleAttribute>(singleton<IStyleAttribute>(["border", (((1 + "px ") + "solid") + " ") + "hsl(0, 0%, 86%)"] as [string, any]), delay<IStyleAttribute>((): Iterable<IStyleAttribute> => ((config.Disabled ? true : config.IsReadOnly) ? append<IStyleAttribute>(singleton<IStyleAttribute>(["backgroundColor", "hsl(0, 0%, 96%)"] as [string, any]), delay<IStyleAttribute>((): Iterable<IStyleAttribute> => singleton<IStyleAttribute>(["pointerEvents", "none"] as [string, any]))) : empty<IStyleAttribute>())))))))))))),
105
+ }] as [string, any], ["height", 200] as [string, any], ["width", 600] as [string, any]]), reactApi_1.createElement(react_signature_pad_wrapper, createObj(properties_2)))], createElement<any>("div", {
106
+ className: "control",
107
+ children: reactApi.Children.toArray(Array.from(children)),
108
+ })));
109
+ }
110
+
111
+ export class SignatureField_Field$1<Values> extends IStandardField$3<Values, string, SignatureField_Attributes> implements IField$1<Values> {
112
+ readonly innerField_1: Field$3<SignatureField_Attributes, string, Values>;
113
+ constructor(innerField: Field$3<SignatureField_Attributes, string, Values>) {
114
+ super(innerField);
115
+ this.innerField_1 = innerField;
116
+ }
117
+ "Fable.Form.Simple.Bulma.IStandardField`3.RenderFieldZ43FEF6DC"(config: StandardRenderFieldConfig$2<string, SignatureField_Attributes>): ReactElement {
118
+ return createElement(SignatureField_SignatureFieldComponent, config);
119
+ }
120
+ MapFieldValues<NewValues>(update: ((arg0: Values) => $a)): IField$1<$a> {
121
+ const _: SignatureField_Field$1<Values> = this;
122
+ return SignatureField_Field$1_$ctor_Z4A53DCC7<$a>(mapValues<Values, $a, SignatureField_Attributes, string>(update, _.innerField_1));
123
+ }
124
+ }
125
+
126
+ export function SignatureField_Field$1_$reflection(gen0: TypeInfo): TypeInfo {
127
+ return class_type("Fable.Form.Simple.Bulma.Fields.SignatureField.SignatureField.Field`1", [gen0], SignatureField_Field$1, IStandardField$3_$reflection(gen0, string_type, SignatureField_Attributes_$reflection()));
128
+ }
129
+
130
+ export function SignatureField_Field$1_$ctor_Z4A53DCC7<Values>(innerField: Field$3<SignatureField_Attributes, string, Values>): SignatureField_Field$1<Values> {
131
+ return new SignatureField_Field$1(innerField);
132
+ }
133
+
134
+ export function Form_signatureField<Values, Output>(config: FieldConfig$4<SignatureField_Attributes, string, Values, Output>): Form$3<Values, Output, IField$1<Values>> {
135
+ return SignatureField_form<Values, IField$1<Values>, Output>()(SignatureField_Field$1_$ctor_Z4A53DCC7)(config);
136
+ }
137
+
138
+ export const Form_pluginConfig: Spec_PluginFieldConfig = new Spec_PluginFieldConfig("Fable.Form.Simple.Bulma.Fields.SignatureField");
139
+
140
+ export const Form_signatureConverter: IPluginValueConverter = (() => {
141
+ const valueKey: Shared_PluginPropertyKey = new Shared_PluginPropertyKey("b2b2b2b2-3333-4444-5555-666666666666");
142
+ const valueMeta = (v: Option<string>): Shared_PluginDataProperty => (new Shared_PluginDataProperty(valueKey, "value", "string", defaultArg<string>(v, ""), "Signature Data", undefined, "Digital signature data URL"));
143
+ return new IPluginValueConverter((fieldKey: Shared_FieldKey, v_1: any): Option<Shared_FieldValue_$union> => Shared_FieldValue_Single(new Shared_FieldAnswer(fieldKey, "", v_1)), (fv: Shared_FieldValue_$union): Option<any> => ((fv.tag === /* Single */ 0) ? some(fv.fields[0].Value) : undefined), (): Option<FSharpList<Shared_FieldOption>> => undefined, (): FSharpList<string> => singleton_1("value"), (n: string): Option<Shared_PluginDataProperty> => ((n === "value") ? valueMeta(undefined) : undefined), (k: Shared_PluginPropertyKey): Option<Shared_PluginDataProperty> => (equals(k, valueKey) ? valueMeta(undefined) : undefined), (n_1: string, fv_1: Shared_FieldValue_$union): Option<Shared_PluginDataProperty> => {
144
+ let a_1: Shared_FieldAnswer, a_2: Shared_FieldAnswer;
145
+ return (fv_1.tag === /* Single */ 0) ? (((a_1 = fv_1.fields[0], n_1 === "value")) ? ((a_2 = fv_1.fields[0], valueMeta(a_2.Value))) : undefined) : undefined;
146
+ }, (k_1: Shared_PluginPropertyKey, fv_2: Shared_FieldValue_$union): Option<Shared_PluginDataProperty> => {
147
+ let a_3: Shared_FieldAnswer, a_4: Shared_FieldAnswer;
148
+ return (fv_2.tag === /* Single */ 0) ? (((a_3 = fv_2.fields[0], equals(k_1, valueKey))) ? ((a_4 = fv_2.fields[0], valueMeta(a_4.Value))) : undefined) : undefined;
149
+ }, (_arg: string, _arg_1: string): FSharpResult$2_$union<void, string> => FSharpResult$2_Ok<void, string>(undefined), (fv_3: Shared_FieldValue_$union): FSharpList<Shared_PluginDataProperty> => ((fv_3.tag === /* Single */ 0) ? singleton_1(valueMeta(fv_3.fields[0].Value)) : empty_1<Shared_PluginDataProperty>()));
150
+ })();
151
+
152
+ export function Form_designerPreview(props: RenderPreviewProps$1<Spec_FieldType_$union>): ReactElement {
153
+ const children: Iterable<ReactElement> = [createElement<any>("input", createObj(cons(["type", "text"] as [string, any], Helpers_combineClasses("input", ofArray([["readOnly", true] as [string, any], ["placeholder", "✍️ Signature Pad Preview"] as [string, any], ["style", {
154
+ border: (((1 + "px ") + "dashed") + " ") + "hsl(0, 0%, 86%)",
155
+ backgroundColor: "hsl(0, 0%, 98%)",
156
+ textAlign: "center",
157
+ padding: 20,
158
+ }] as [string, any]]))))), createElement<any>("div", {
159
+ style: {
160
+ fontSize: 12 + "px",
161
+ color: "hsl(0, 0%, 60%)",
162
+ textAlign: "center",
163
+ marginTop: 5,
164
+ },
165
+ children: "✍️ Digital signature drawing area",
166
+ })];
167
+ return createElement<any>("div", {
168
+ className: "control",
169
+ children: reactApi.Children.toArray(Array.from(children)),
170
+ });
171
+ }
172
+
173
+ export function Form_markdownRenderer(field: Spec_FormField$1<Spec_FieldType_$union>, fieldDetails: FieldDetails): string {
174
+ let value: string;
175
+ const matchValue: Shared_FieldValue_$union = fieldDetails.FieldValue;
176
+ value = ((matchValue.tag === /* Single */ 0) ? matchValue.fields[0].Value : "");
177
+ if (isNullOrWhiteSpace(value)) {
178
+ return `**${field.Label}:** ❌ *[No signature provided]*`;
179
+ }
180
+ else {
181
+ return join("\n", [`**${field.Label}** ✍️`, "", "| Status | Details |", "|--------|---------|", "| **Signature** | ✅ **Captured** |", `| **Timestamp** | ${toString(now(), "yyyy-MM-dd HH:mm")} |`, `| **Data Size** | ${value.length} characters |`, "| **Format** | Digital signature |", "", "> 🔒 *Digital signature has been securely captured and stored*", ">", "> 📋 *This signature serves as electronic consent and acknowledgment*"]);
182
+ }
183
+ }
184
+
185
+ //# sourceMappingURL=SignatureField.ts.map