@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.
- package/FormSpec.FS/Components/HelloComponent.d.ts.map +1 -0
- package/FormSpec.FS/Designer.d.ts.map +1 -0
- package/FormSpec.FS/FormSpec.d.ts.map +1 -0
- package/FormSpec.FS/FormSpecHelpers.d.ts.map +1 -0
- package/FormSpec.FS/FormSpecValues.d.ts.map +1 -0
- package/FormSpec.FS/Helpers.d.ts.map +1 -0
- package/FormSpec.FS/Interfaces.d.ts.map +1 -0
- package/FormSpec.FS/Interop/FormSpec.Api.Helpers.d.ts.map +1 -0
- package/FormSpec.FS/Interop/FormSpec.Api.Option.d.ts.map +1 -0
- package/FormSpec.FS/Interop/FormSpec.Values.Api.Option.d.ts.map +1 -0
- package/FormSpec.FS/Logging/LogTypes.d.ts.map +1 -0
- package/FormSpec.FS/Migrator.d.ts.map +1 -0
- package/FormSpec.FS/PathwayDataExtractor.d.ts.map +1 -0
- package/FormSpec.FS/PathwayExecutor.d.ts.map +1 -0
- package/FormSpec.FS/PathwayValidator.d.ts.map +1 -0
- package/FormSpec.FS/PluginInterface.d.ts.map +1 -0
- package/FormSpec.FS/Prelude.d.ts.map +1 -0
- package/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.d.ts.map +1 -0
- package/FormSpec.FS/Renderers/MermaidRenderer.d.ts.map +1 -0
- package/FormSpec.FS/Renderers/PathwayRenderers.d.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Components/HelloComponent.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Components/HelloComponent.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Designer.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Designer.ts.map +1 -0
- package/FormSpec.TS/{FormSpec.js.map → FormSpec.FS/FormSpec.js.map} +1 -1
- package/FormSpec.TS/{FormSpec.ts.map → FormSpec.FS/FormSpec.ts.map} +1 -1
- package/FormSpec.TS/{FormSpecHelpers.js → FormSpec.FS/FormSpecHelpers.js} +1 -1
- package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/FormSpecValues.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/FormSpecValues.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Helpers.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Helpers.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Interfaces.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Interfaces.ts.map +1 -0
- package/FormSpec.TS/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Helpers.js +2 -2
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.ts.map +1 -0
- package/FormSpec.TS/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Option.js +2 -2
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.ts.map +1 -0
- package/FormSpec.TS/{Interop → FormSpec.FS/Interop}/FormSpec.Values.Api.Option.js +2 -2
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Logging/LogTypes.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Logging/LogTypes.ts.map +1 -0
- package/FormSpec.TS/{Migrator.js → FormSpec.FS/Migrator.js} +1 -1
- package/FormSpec.TS/FormSpec.FS/Migrator.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Migrator.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/PathwayDataExtractor.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/PathwayDataExtractor.ts.map +1 -0
- package/FormSpec.TS/{PathwayExecutor.js → FormSpec.FS/PathwayExecutor.js} +1 -1
- package/FormSpec.TS/FormSpec.FS/PathwayExecutor.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/PathwayExecutor.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/PathwayValidator.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/PathwayValidator.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/PluginInterface.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/PluginInterface.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Prelude.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Prelude.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Renderers/MermaidRenderer.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Renderers/MermaidRenderer.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Renderers/PathwayRenderers.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Renderers/PathwayRenderers.ts.map +1 -0
- package/FormSpec.TS/PathwayExecutor.withPlugins.js +28 -0
- package/FormSpec.TS/PathwayExecutor.withPlugins.js.map +1 -0
- package/FormSpec.TS/PluginRegistration.js +18 -0
- package/FormSpec.TS/PluginRegistration.js.map +1 -0
- package/FormSpec.TS/PluginRegistration.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs +47 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs.js +93 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs +49 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs.js +127 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs +52 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs.js +105 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs +54 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs.js +105 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs +48 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs.js +83 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Fable.Form.Simple.Bulma.fableproj +53 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs +132 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs.js +276 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs +537 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs.js +263 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs +361 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs.js +576 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs +52 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs.js +73 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs +246 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.js +226 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs +52 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs.js +116 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs +56 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs.js +95 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs +46 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs.js +77 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs +51 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs.js +103 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs +49 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs.js +87 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs +60 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs.js +69 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs +79 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs.js +134 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs +44 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs.js +77 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs +49 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs.js +87 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs +59 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs.js +87 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs +44 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs.js +77 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs +143 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.js +154 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs +36 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs.js +76 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs +49 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs.js +88 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs +67 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs.js +121 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs +70 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs.js +121 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs +76 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs.js +91 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/Fable.Form.Simple.Fields.Html.fableproj +45 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs +105 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs.js +161 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs +66 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs.js +110 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs +72 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs.js +108 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs +102 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs.js +157 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs +83 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs.js +164 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs +83 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs.js +119 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs +63 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs.js +110 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs +83 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs.js +164 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs +92 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs.js +149 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs +108 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs.js +161 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Colors.fs.js.map +1 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs +52 -0
- package/FormSpec.TS/fable_modules/{Feliz.2.7.0/Interop.fs.js → Feliz.2.8.0/DateParsing.fs.js} +27 -37
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Feliz.fableproj +14 -3
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs +11 -0
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs.js +25 -0
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs +176 -0
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs.js +179 -0
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs +29 -0
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs.js +19 -0
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Key.fs.js.map +1 -1
- package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Length.fs +55 -1
- package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Properties.fs +5 -0
- package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Properties.fs.js.map +1 -1
- package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/React.fs +77 -239
- package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactDOM.fs.js.map +1 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactInterop.fs +20 -0
- package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactInterop.js.map +1 -1
- package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactTypes.fs +3 -2
- package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactTypes.fs.js.map +1 -1
- package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/StyleTypes.fs +4 -0
- package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/StyleTypes.fs.js.map +1 -1
- package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Styles.fs +646 -8
- package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Svg.fs.js.map +1 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/TransitionTimingFunction.fs +62 -0
- package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Types.fs.js.map +1 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Types.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Bulma.fs +990 -0
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs +179 -0
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.js +51 -0
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Feliz.Bulma.fableproj +32 -0
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs +1986 -0
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs.js +27 -0
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs +7 -0
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs.js +31 -0
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/PropertyBuilders.fs +8 -0
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Exports.fs +14 -0
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Glutinum.Feliz.ReactSignaturePadWrapper.fableproj +18 -0
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Interop.fs +6 -0
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/ReactSignaturePadWrapper.fs +32 -0
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs +3 -0
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.js +7 -0
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.js.map +1 -1
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.ts.map +1 -1
- package/FormSpec.TS/fable_modules/project_cracked.json +1 -1
- package/FormSpec.TS/plugins/bmi/src/BMIField.js +823 -0
- package/FormSpec.TS/plugins/bmi/src/BMIField.js.map +1 -0
- package/FormSpec.TS/plugins/bmi/src/BMIField.ts.map +1 -0
- package/FormSpec.TS/plugins/likert/src/LikertField.js +638 -0
- package/FormSpec.TS/plugins/likert/src/LikertField.js.map +1 -0
- package/FormSpec.TS/plugins/likert/src/LikertField.ts.map +1 -0
- package/FormSpec.TS/plugins/signature/src/SignatureField.js +294 -0
- package/FormSpec.TS/plugins/signature/src/SignatureField.js.map +1 -0
- package/FormSpec.TS/plugins/signature/src/SignatureField.ts.map +1 -0
- package/FormSpec.TS/plugins/vitals/src/VitalsField.js +1150 -0
- package/FormSpec.TS/plugins/vitals/src/VitalsField.js.map +1 -0
- package/FormSpec.TS/plugins/vitals/src/VitalsField.ts.map +1 -0
- package/PathwayExecutor.withPlugins.d.ts +11 -0
- package/PathwayExecutor.withPlugins.d.ts.map +1 -0
- package/PluginRegistration.d.ts +2 -0
- package/PluginRegistration.d.ts.map +1 -0
- package/README.md +7 -7
- package/fable_modules/Fable.Form.3.0.0/Base.fs.d.ts +147 -0
- package/fable_modules/Fable.Form.3.0.0/Base.fs.d.ts.map +1 -0
- package/fable_modules/Fable.Form.3.0.0/Error.fs.d.ts +19 -0
- package/fable_modules/Fable.Form.3.0.0/Error.fs.d.ts.map +1 -0
- package/fable_modules/Fable.Form.3.0.0/Extensions.fs.d.ts +14 -0
- package/fable_modules/Fable.Form.3.0.0/Extensions.fs.d.ts.map +1 -0
- package/fable_modules/Fable.Form.3.0.0/Field.fs.d.ts +14 -0
- package/fable_modules/Fable.Form.3.0.0/Field.fs.d.ts.map +1 -0
- package/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.d.ts +113 -0
- package/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.d.ts.map +1 -0
- package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.d.ts +17 -0
- package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.d.ts.map +1 -0
- package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.d.ts +41 -0
- package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.d.ts.map +1 -0
- package/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.d.ts +73 -0
- package/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.d.ts.map +1 -0
- package/fable_modules/Feliz.2.8.0/Colors.fs.d.ts +9 -0
- package/fable_modules/Feliz.2.8.0/Colors.fs.d.ts.map +1 -0
- package/fable_modules/Feliz.2.8.0/Interop.fs.d.ts +3 -0
- package/fable_modules/Feliz.2.8.0/Interop.fs.d.ts.map +1 -0
- package/fable_modules/Feliz.2.8.0/ReactInterop.d.ts +6 -0
- package/fable_modules/Feliz.2.8.0/ReactInterop.d.ts.map +1 -0
- package/fable_modules/Feliz.2.8.0/ReactTypes.fs.d.ts +36 -0
- package/fable_modules/Feliz.2.8.0/ReactTypes.fs.d.ts.map +1 -0
- package/fable_modules/Feliz.2.8.0/Types.fs.d.ts +7 -0
- package/fable_modules/Feliz.2.8.0/Types.fs.d.ts.map +1 -0
- package/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.d.ts +5 -0
- package/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.d.ts.map +1 -0
- package/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.d.ts +3 -0
- package/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.d.ts.map +1 -0
- package/package.json +15 -15
- package/plugins/bmi/src/BMIField.d.ts +52 -0
- package/plugins/bmi/src/BMIField.d.ts.map +1 -0
- package/plugins/likert/src/LikertField.d.ts +60 -0
- package/plugins/likert/src/LikertField.d.ts.map +1 -0
- package/plugins/signature/src/SignatureField.d.ts +34 -0
- package/plugins/signature/src/SignatureField.d.ts.map +1 -0
- package/plugins/vitals/src/VitalsField.d.ts +82 -0
- package/plugins/vitals/src/VitalsField.d.ts.map +1 -0
- package/src/{FormSpecHelpers.ts → FormSpec.FS/FormSpecHelpers.ts} +1 -1
- package/src/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Helpers.ts +4 -4
- package/src/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Option.ts +2 -2
- package/src/{Interop → FormSpec.FS/Interop}/FormSpec.Values.Api.Option.ts +2 -2
- package/src/{Migrator.ts → FormSpec.FS/Migrator.ts} +1 -1
- package/src/{PathwayExecutor.ts → FormSpec.FS/PathwayExecutor.ts} +1 -1
- package/src/PathwayExecutor.withPlugins.ts +10 -0
- package/src/PluginRegistration.ts +16 -0
- package/src/plugins/bmi/src/BMIField.ts +494 -0
- package/src/plugins/likert/src/LikertField.ts +420 -0
- package/src/plugins/signature/src/SignatureField.ts +185 -0
- package/src/plugins/vitals/src/VitalsField.ts +665 -0
- package/Components/HelloComponent.d.ts.map +0 -1
- package/Designer.d.ts.map +0 -1
- package/FormSpec.TS/Components/HelloComponent.js.map +0 -1
- package/FormSpec.TS/Components/HelloComponent.ts.map +0 -1
- package/FormSpec.TS/Designer.js.map +0 -1
- package/FormSpec.TS/Designer.ts.map +0 -1
- package/FormSpec.TS/FormSpecHelpers.js.map +0 -1
- package/FormSpec.TS/FormSpecHelpers.ts.map +0 -1
- package/FormSpec.TS/FormSpecValues.js.map +0 -1
- package/FormSpec.TS/FormSpecValues.ts.map +0 -1
- package/FormSpec.TS/Helpers.js.map +0 -1
- package/FormSpec.TS/Helpers.ts.map +0 -1
- package/FormSpec.TS/Interfaces.js.map +0 -1
- package/FormSpec.TS/Interfaces.ts.map +0 -1
- package/FormSpec.TS/Interop/FormSpec.Api.Helpers.js.map +0 -1
- package/FormSpec.TS/Interop/FormSpec.Api.Helpers.ts.map +0 -1
- package/FormSpec.TS/Interop/FormSpec.Api.Option.js.map +0 -1
- package/FormSpec.TS/Interop/FormSpec.Api.Option.ts.map +0 -1
- package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.js.map +0 -1
- package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.ts.map +0 -1
- package/FormSpec.TS/Logging/LogTypes.js.map +0 -1
- package/FormSpec.TS/Logging/LogTypes.ts.map +0 -1
- package/FormSpec.TS/Migrator.js.map +0 -1
- package/FormSpec.TS/Migrator.ts.map +0 -1
- package/FormSpec.TS/PathwayDataExtractor.js.map +0 -1
- package/FormSpec.TS/PathwayDataExtractor.ts.map +0 -1
- package/FormSpec.TS/PathwayExecutor.js.map +0 -1
- package/FormSpec.TS/PathwayExecutor.ts.map +0 -1
- package/FormSpec.TS/PathwayValidator.js.map +0 -1
- package/FormSpec.TS/PathwayValidator.ts.map +0 -1
- package/FormSpec.TS/PluginInterface.js.map +0 -1
- package/FormSpec.TS/PluginInterface.ts.map +0 -1
- package/FormSpec.TS/Prelude.js.map +0 -1
- package/FormSpec.TS/Prelude.ts.map +0 -1
- package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.js.map +0 -1
- package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.ts.map +0 -1
- package/FormSpec.TS/Renderers/MermaidRenderer.js.map +0 -1
- package/FormSpec.TS/Renderers/MermaidRenderer.ts.map +0 -1
- package/FormSpec.TS/Renderers/PathwayRenderers.js.map +0 -1
- package/FormSpec.TS/Renderers/PathwayRenderers.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs +0 -83
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.js.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.js +0 -561
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.js.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.ts.map +0 -1
- package/FormSpec.d.ts.map +0 -1
- package/FormSpecHelpers.d.ts.map +0 -1
- package/FormSpecValues.d.ts.map +0 -1
- package/Helpers.d.ts.map +0 -1
- package/Interfaces.d.ts.map +0 -1
- package/Interop/FormSpec.Api.Helpers.d.ts.map +0 -1
- package/Interop/FormSpec.Api.Option.d.ts.map +0 -1
- package/Interop/FormSpec.Values.Api.Option.d.ts.map +0 -1
- package/Logging/LogTypes.d.ts.map +0 -1
- package/Migrator.d.ts.map +0 -1
- package/PathwayDataExtractor.d.ts.map +0 -1
- package/PathwayExecutor.d.ts.map +0 -1
- package/PathwayValidator.d.ts.map +0 -1
- package/PluginInterface.d.ts.map +0 -1
- package/Prelude.d.ts.map +0 -1
- package/Renderers/FormSpecMarkdownRenderer.d.ts.map +0 -1
- package/Renderers/MermaidRenderer.d.ts.map +0 -1
- package/Renderers/PathwayRenderers.d.ts.map +0 -1
- /package/{Components → FormSpec.FS/Components}/HelloComponent.d.ts +0 -0
- /package/{Designer.d.ts → FormSpec.FS/Designer.d.ts} +0 -0
- /package/{FormSpec.d.ts → FormSpec.FS/FormSpec.d.ts} +0 -0
- /package/{FormSpecHelpers.d.ts → FormSpec.FS/FormSpecHelpers.d.ts} +0 -0
- /package/{FormSpecValues.d.ts → FormSpec.FS/FormSpecValues.d.ts} +0 -0
- /package/{Helpers.d.ts → FormSpec.FS/Helpers.d.ts} +0 -0
- /package/{Interfaces.d.ts → FormSpec.FS/Interfaces.d.ts} +0 -0
- /package/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Helpers.d.ts +0 -0
- /package/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Option.d.ts +0 -0
- /package/{Interop → FormSpec.FS/Interop}/FormSpec.Values.Api.Option.d.ts +0 -0
- /package/{Logging → FormSpec.FS/Logging}/LogTypes.d.ts +0 -0
- /package/{Migrator.d.ts → FormSpec.FS/Migrator.d.ts} +0 -0
- /package/{PathwayDataExtractor.d.ts → FormSpec.FS/PathwayDataExtractor.d.ts} +0 -0
- /package/{PathwayExecutor.d.ts → FormSpec.FS/PathwayExecutor.d.ts} +0 -0
- /package/{PathwayValidator.d.ts → FormSpec.FS/PathwayValidator.d.ts} +0 -0
- /package/{PluginInterface.d.ts → FormSpec.FS/PluginInterface.d.ts} +0 -0
- /package/{Prelude.d.ts → FormSpec.FS/Prelude.d.ts} +0 -0
- /package/{Renderers → FormSpec.FS/Renderers}/FormSpecMarkdownRenderer.d.ts +0 -0
- /package/{Renderers → FormSpec.FS/Renderers}/MermaidRenderer.d.ts +0 -0
- /package/{Renderers → FormSpec.FS/Renderers}/PathwayRenderers.d.ts +0 -0
- /package/FormSpec.TS/{Components → FormSpec.FS/Components}/HelloComponent.js +0 -0
- /package/FormSpec.TS/{Designer.js → FormSpec.FS/Designer.js} +0 -0
- /package/FormSpec.TS/{FormSpec.js → FormSpec.FS/FormSpec.js} +0 -0
- /package/FormSpec.TS/{FormSpecValues.js → FormSpec.FS/FormSpecValues.js} +0 -0
- /package/FormSpec.TS/{Helpers.js → FormSpec.FS/Helpers.js} +0 -0
- /package/FormSpec.TS/{Interfaces.js → FormSpec.FS/Interfaces.js} +0 -0
- /package/FormSpec.TS/{Logging → FormSpec.FS/Logging}/LogTypes.js +0 -0
- /package/FormSpec.TS/{PathwayDataExtractor.js → FormSpec.FS/PathwayDataExtractor.js} +0 -0
- /package/FormSpec.TS/{PathwayValidator.js → FormSpec.FS/PathwayValidator.js} +0 -0
- /package/FormSpec.TS/{PluginInterface.js → FormSpec.FS/PluginInterface.js} +0 -0
- /package/FormSpec.TS/{Prelude.js → FormSpec.FS/Prelude.js} +0 -0
- /package/FormSpec.TS/{Renderers → FormSpec.FS/Renderers}/FormSpecMarkdownRenderer.js +0 -0
- /package/FormSpec.TS/{Renderers → FormSpec.FS/Renderers}/MermaidRenderer.js +0 -0
- /package/FormSpec.TS/{Renderers → FormSpec.FS/Renderers}/PathwayRenderers.js +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/BorderStyle.fs +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Colors.fs +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Colors.fs.js +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Colors.fs.ts.map +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Fonts.fs +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/GridTypes.fs +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Html.fs +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0/ReactTypes.fs.ts.map → Feliz.2.8.0/Interop.fs.ts.map} +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Key.fs +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Key.fs.js +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Key.fs.ts.map +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Locale.fs +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Properties.fs.js +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Properties.fs.ts.map +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactDOM.fs +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactDOM.fs.js +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactDOM.fs.ts.map +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactInterop.js +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/ReactTypes.fs.js +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0/StyleTypes.fs.ts.map → Feliz.2.8.0/ReactTypes.fs.ts.map} +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/StyleTypes.fs.js +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0/Svg.fs.ts.map → Feliz.2.8.0/StyleTypes.fs.ts.map} +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Svg.fs +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Svg.fs.js +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0/Types.fs.ts.map → Feliz.2.8.0/Svg.fs.ts.map} +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/TextDecorationLine.fs +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/TextDecorationStyle.fs +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Transform.fs +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/TransformOrigin.fs +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/TransitionProperty.fs +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Types.fs +0 -0
- /package/FormSpec.TS/fable_modules/{Feliz.2.7.0 → Feliz.2.8.0}/Types.fs.js +0 -0
- /package/src/{Components → FormSpec.FS/Components}/HelloComponent.ts +0 -0
- /package/src/{Designer.ts → FormSpec.FS/Designer.ts} +0 -0
- /package/src/{FormSpec.ts → FormSpec.FS/FormSpec.ts} +0 -0
- /package/src/{FormSpecValues.ts → FormSpec.FS/FormSpecValues.ts} +0 -0
- /package/src/{Helpers.ts → FormSpec.FS/Helpers.ts} +0 -0
- /package/src/{Interfaces.ts → FormSpec.FS/Interfaces.ts} +0 -0
- /package/src/{Logging → FormSpec.FS/Logging}/LogTypes.ts +0 -0
- /package/src/{PathwayDataExtractor.ts → FormSpec.FS/PathwayDataExtractor.ts} +0 -0
- /package/src/{PathwayValidator.ts → FormSpec.FS/PathwayValidator.ts} +0 -0
- /package/src/{PluginInterface.ts → FormSpec.FS/PluginInterface.ts} +0 -0
- /package/src/{Prelude.ts → FormSpec.FS/Prelude.ts} +0 -0
- /package/src/{Renderers → FormSpec.FS/Renderers}/FormSpecMarkdownRenderer.ts +0 -0
- /package/src/{Renderers → FormSpec.FS/Renderers}/MermaidRenderer.ts +0 -0
- /package/src/{Renderers → FormSpec.FS/Renderers}/PathwayRenderers.ts +0 -0
|
@@ -0,0 +1,823 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
get BMIField_Attributes () {
|
|
13
|
+
return BMIField_Attributes;
|
|
14
|
+
},
|
|
15
|
+
get BMIField_Attributes_$reflection () {
|
|
16
|
+
return BMIField_Attributes_$reflection;
|
|
17
|
+
},
|
|
18
|
+
get BMIField_BMIData () {
|
|
19
|
+
return BMIField_BMIData;
|
|
20
|
+
},
|
|
21
|
+
get BMIField_BMIData_$reflection () {
|
|
22
|
+
return BMIField_BMIData_$reflection;
|
|
23
|
+
},
|
|
24
|
+
get BMIField_BMIFieldComponent () {
|
|
25
|
+
return BMIField_BMIFieldComponent;
|
|
26
|
+
},
|
|
27
|
+
get BMIField_Field$1 () {
|
|
28
|
+
return BMIField_Field$1;
|
|
29
|
+
},
|
|
30
|
+
get BMIField_Field$1_$ctor_Z1543D607 () {
|
|
31
|
+
return BMIField_Field$1_$ctor_Z1543D607;
|
|
32
|
+
},
|
|
33
|
+
get BMIField_Field$1_$reflection () {
|
|
34
|
+
return BMIField_Field$1_$reflection;
|
|
35
|
+
},
|
|
36
|
+
get BMIField_calculateBMI () {
|
|
37
|
+
return BMIField_calculateBMI;
|
|
38
|
+
},
|
|
39
|
+
get BMIField_form () {
|
|
40
|
+
return BMIField_form;
|
|
41
|
+
},
|
|
42
|
+
get BMIField_getBMICategory () {
|
|
43
|
+
return BMIField_getBMICategory;
|
|
44
|
+
},
|
|
45
|
+
get BMIField_parseBMIData () {
|
|
46
|
+
return BMIField_parseBMIData;
|
|
47
|
+
},
|
|
48
|
+
get BMIField_serializeBMIData () {
|
|
49
|
+
return BMIField_serializeBMIData;
|
|
50
|
+
},
|
|
51
|
+
get Form_PropertyKeys_BMI () {
|
|
52
|
+
return Form_PropertyKeys_BMI;
|
|
53
|
+
},
|
|
54
|
+
get Form_PropertyKeys_Category () {
|
|
55
|
+
return Form_PropertyKeys_Category;
|
|
56
|
+
},
|
|
57
|
+
get Form_PropertyKeys_Height () {
|
|
58
|
+
return Form_PropertyKeys_Height;
|
|
59
|
+
},
|
|
60
|
+
get Form_PropertyKeys_Weight () {
|
|
61
|
+
return Form_PropertyKeys_Weight;
|
|
62
|
+
},
|
|
63
|
+
get Form_bmiField () {
|
|
64
|
+
return Form_bmiField;
|
|
65
|
+
},
|
|
66
|
+
get Form_designerPreview () {
|
|
67
|
+
return Form_designerPreview;
|
|
68
|
+
},
|
|
69
|
+
get Form_enhancedBMIConverter () {
|
|
70
|
+
return Form_enhancedBMIConverter;
|
|
71
|
+
},
|
|
72
|
+
get Form_markdownRenderer () {
|
|
73
|
+
return Form_markdownRenderer;
|
|
74
|
+
},
|
|
75
|
+
get Form_pluginConfig () {
|
|
76
|
+
return Form_pluginConfig;
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
const _Types = require("@fable-org/fable-library-js/Types.js");
|
|
80
|
+
const _Option = require("@fable-org/fable-library-js/Option.js");
|
|
81
|
+
const _Util = require("@fable-org/fable-library-js/Util.js");
|
|
82
|
+
const _Reflection = require("@fable-org/fable-library-js/Reflection.js");
|
|
83
|
+
const _Fieldfs = require("../../../fable_modules/Fable.Form.3.0.0/Field.fs.js");
|
|
84
|
+
const _Basefs = require("../../../fable_modules/Fable.Form.3.0.0/Base.fs.js");
|
|
85
|
+
const _String = require("@fable-org/fable-library-js/String.js");
|
|
86
|
+
const _Double = require("@fable-org/fable-library-js/Double.js");
|
|
87
|
+
const _Array = require("@fable-org/fable-library-js/Array.js");
|
|
88
|
+
const _react = require("react");
|
|
89
|
+
const _Interopfs = require("../../../fable_modules/Feliz.2.8.0/Interop.fs.js");
|
|
90
|
+
const _HtmlViewfs = require("../../../fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.js");
|
|
91
|
+
const _Seq = require("@fable-org/fable-library-js/Seq.js");
|
|
92
|
+
const _ElementBuildersfs = require("../../../fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.js");
|
|
93
|
+
const _List = require("@fable-org/fable-library-js/List.js");
|
|
94
|
+
const _Typesfs = require("../../../fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.js");
|
|
95
|
+
const _FormSpec = require("../../../FormSpec.FS/FormSpec.js");
|
|
96
|
+
const _Result = require("@fable-org/fable-library-js/Result.js");
|
|
97
|
+
const _PluginInterface = require("../../../FormSpec.FS/PluginInterface.js");
|
|
98
|
+
class BMIField_BMIData extends _Types.Record {
|
|
99
|
+
constructor(Height, Weight, BMI, Category){
|
|
100
|
+
super();
|
|
101
|
+
this.Height = Height;
|
|
102
|
+
this.Weight = Weight;
|
|
103
|
+
this.BMI = BMI;
|
|
104
|
+
this.Category = Category;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
function BMIField_BMIData_$reflection() {
|
|
108
|
+
return (0, _Reflection.record_type)("Fable.Form.Simple.Bulma.Fields.BMIField.BMIField.BMIData", [], BMIField_BMIData, ()=>[
|
|
109
|
+
[
|
|
110
|
+
"Height",
|
|
111
|
+
_Reflection.float64_type
|
|
112
|
+
],
|
|
113
|
+
[
|
|
114
|
+
"Weight",
|
|
115
|
+
_Reflection.float64_type
|
|
116
|
+
],
|
|
117
|
+
[
|
|
118
|
+
"BMI",
|
|
119
|
+
(0, _Reflection.option_type)(_Reflection.float64_type)
|
|
120
|
+
],
|
|
121
|
+
[
|
|
122
|
+
"Category",
|
|
123
|
+
(0, _Reflection.option_type)(_Reflection.string_type)
|
|
124
|
+
]
|
|
125
|
+
]);
|
|
126
|
+
}
|
|
127
|
+
class BMIField_Attributes extends _Types.Record {
|
|
128
|
+
GetFieldId() {
|
|
129
|
+
const this$ = this;
|
|
130
|
+
return this$.FieldId;
|
|
131
|
+
}
|
|
132
|
+
constructor(FieldId, Label){
|
|
133
|
+
super();
|
|
134
|
+
this.FieldId = FieldId;
|
|
135
|
+
this.Label = Label;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function BMIField_Attributes_$reflection() {
|
|
139
|
+
return (0, _Reflection.record_type)("Fable.Form.Simple.Bulma.Fields.BMIField.BMIField.Attributes", [], BMIField_Attributes, ()=>[
|
|
140
|
+
[
|
|
141
|
+
"FieldId",
|
|
142
|
+
_Reflection.string_type
|
|
143
|
+
],
|
|
144
|
+
[
|
|
145
|
+
"Label",
|
|
146
|
+
_Reflection.string_type
|
|
147
|
+
]
|
|
148
|
+
]);
|
|
149
|
+
}
|
|
150
|
+
function BMIField_form() {
|
|
151
|
+
return (build)=>(config)=>(0, _Basefs.field)(_String.isNullOrEmpty, build, config);
|
|
152
|
+
}
|
|
153
|
+
function BMIField_calculateBMI(height, weight) {
|
|
154
|
+
if (height > 0 && weight > 0) {
|
|
155
|
+
const heightInM = height / 100;
|
|
156
|
+
return weight / (heightInM * heightInM);
|
|
157
|
+
} else {
|
|
158
|
+
return 0;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
function BMIField_getBMICategory(bmi) {
|
|
162
|
+
let bmi_2, bmi_3;
|
|
163
|
+
if (bmi < 18.5) {
|
|
164
|
+
return "Underweight";
|
|
165
|
+
} else if (bmi_2 = bmi, bmi_2 >= 18.5 && bmi_2 < 25) {
|
|
166
|
+
return "Normal weight";
|
|
167
|
+
} else if (bmi_3 = bmi, bmi_3 >= 25 && bmi_3 < 30) {
|
|
168
|
+
return "Overweight";
|
|
169
|
+
} else if (bmi >= 30) {
|
|
170
|
+
return "Obese";
|
|
171
|
+
} else {
|
|
172
|
+
return "Invalid";
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
function BMIField_parseBMIData(value) {
|
|
176
|
+
try {
|
|
177
|
+
if ((0, _String.isNullOrWhiteSpace)(value)) {
|
|
178
|
+
return new BMIField_BMIData(0, 0, undefined, undefined);
|
|
179
|
+
} else {
|
|
180
|
+
const parts = (0, _String.split)(value, [
|
|
181
|
+
"|"
|
|
182
|
+
], undefined, 0);
|
|
183
|
+
if (parts.length >= 2) {
|
|
184
|
+
const height = (0, _Double.parse)((0, _Array.item)(0, parts));
|
|
185
|
+
const weight = (0, _Double.parse)((0, _Array.item)(1, parts));
|
|
186
|
+
const bmi = BMIField_calculateBMI(height, weight);
|
|
187
|
+
return new BMIField_BMIData(height, weight, bmi, bmi > 0 ? BMIField_getBMICategory(bmi) : undefined);
|
|
188
|
+
} else {
|
|
189
|
+
return new BMIField_BMIData(0, 0, undefined, undefined);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
} catch (matchValue) {
|
|
193
|
+
return new BMIField_BMIData(0, 0, undefined, undefined);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
function BMIField_serializeBMIData(bmiData) {
|
|
197
|
+
return (0, _String.toText)((0, _String.interpolate)("%.1f%P()|%.1f%P()", [
|
|
198
|
+
bmiData.Height,
|
|
199
|
+
bmiData.Weight
|
|
200
|
+
]));
|
|
201
|
+
}
|
|
202
|
+
function BMIField_BMIFieldComponent(config) {
|
|
203
|
+
let elems_12;
|
|
204
|
+
const bmiData = BMIField_parseBMIData(config.Value);
|
|
205
|
+
let patternInput;
|
|
206
|
+
const initial = bmiData.Height > 0 ? bmiData.Height.toString() : "";
|
|
207
|
+
patternInput = _Interopfs.reactApi.useState(initial);
|
|
208
|
+
const height = patternInput[0];
|
|
209
|
+
let patternInput_1;
|
|
210
|
+
const initial_1 = bmiData.Weight > 0 ? bmiData.Weight.toString() : "";
|
|
211
|
+
patternInput_1 = _Interopfs.reactApi.useState(initial_1);
|
|
212
|
+
const weight = patternInput_1[0];
|
|
213
|
+
const dependencies = [
|
|
214
|
+
height,
|
|
215
|
+
weight
|
|
216
|
+
];
|
|
217
|
+
_Interopfs.reactApi.useEffect(()=>{
|
|
218
|
+
let heightVal;
|
|
219
|
+
let matchValue;
|
|
220
|
+
let outArg = 0;
|
|
221
|
+
matchValue = [
|
|
222
|
+
(0, _Double.tryParse)(height, new _Types.FSharpRef(()=>outArg, (v)=>{
|
|
223
|
+
outArg = v;
|
|
224
|
+
})),
|
|
225
|
+
outArg
|
|
226
|
+
];
|
|
227
|
+
let matchResult;
|
|
228
|
+
if (matchValue[0]) {
|
|
229
|
+
if (matchValue[1] > 0) {
|
|
230
|
+
matchResult = 0;
|
|
231
|
+
} else {
|
|
232
|
+
matchResult = 1;
|
|
233
|
+
}
|
|
234
|
+
} else {
|
|
235
|
+
matchResult = 1;
|
|
236
|
+
}
|
|
237
|
+
switch(matchResult){
|
|
238
|
+
case 0:
|
|
239
|
+
{
|
|
240
|
+
heightVal = matchValue[1];
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
default:
|
|
244
|
+
heightVal = 0;
|
|
245
|
+
}
|
|
246
|
+
let weightVal;
|
|
247
|
+
let matchValue_1;
|
|
248
|
+
let outArg_1 = 0;
|
|
249
|
+
matchValue_1 = [
|
|
250
|
+
(0, _Double.tryParse)(weight, new _Types.FSharpRef(()=>outArg_1, (v_3)=>{
|
|
251
|
+
outArg_1 = v_3;
|
|
252
|
+
})),
|
|
253
|
+
outArg_1
|
|
254
|
+
];
|
|
255
|
+
let matchResult_1;
|
|
256
|
+
if (matchValue_1[0]) {
|
|
257
|
+
if (matchValue_1[1] > 0) {
|
|
258
|
+
matchResult_1 = 0;
|
|
259
|
+
} else {
|
|
260
|
+
matchResult_1 = 1;
|
|
261
|
+
}
|
|
262
|
+
} else {
|
|
263
|
+
matchResult_1 = 1;
|
|
264
|
+
}
|
|
265
|
+
switch(matchResult_1){
|
|
266
|
+
case 0:
|
|
267
|
+
{
|
|
268
|
+
weightVal = matchValue_1[1];
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
default:
|
|
272
|
+
weightVal = 0;
|
|
273
|
+
}
|
|
274
|
+
config.OnChange(BMIField_serializeBMIData(new BMIField_BMIData(heightVal, weightVal, heightVal > 0 && weightVal > 0 ? BMIField_calculateBMI(heightVal, weightVal) : undefined, heightVal > 0 && weightVal > 0 ? BMIField_getBMICategory(BMIField_calculateBMI(heightVal, weightVal)) : undefined)));
|
|
275
|
+
}, dependencies);
|
|
276
|
+
let currentBMI;
|
|
277
|
+
let matchValue_2;
|
|
278
|
+
let outArg_2 = 0;
|
|
279
|
+
matchValue_2 = [
|
|
280
|
+
(0, _Double.tryParse)(height, new _Types.FSharpRef(()=>outArg_2, (v_6)=>{
|
|
281
|
+
outArg_2 = v_6;
|
|
282
|
+
})),
|
|
283
|
+
outArg_2
|
|
284
|
+
];
|
|
285
|
+
let matchValue_3;
|
|
286
|
+
let outArg_3 = 0;
|
|
287
|
+
matchValue_3 = [
|
|
288
|
+
(0, _Double.tryParse)(weight, new _Types.FSharpRef(()=>outArg_3, (v_7)=>{
|
|
289
|
+
outArg_3 = v_7;
|
|
290
|
+
})),
|
|
291
|
+
outArg_3
|
|
292
|
+
];
|
|
293
|
+
let matchResult_2;
|
|
294
|
+
if (matchValue_2[0]) {
|
|
295
|
+
if (matchValue_3[0]) {
|
|
296
|
+
if (matchValue_2[1] > 0 && matchValue_3[1] > 0) {
|
|
297
|
+
matchResult_2 = 0;
|
|
298
|
+
} else {
|
|
299
|
+
matchResult_2 = 1;
|
|
300
|
+
}
|
|
301
|
+
} else {
|
|
302
|
+
matchResult_2 = 1;
|
|
303
|
+
}
|
|
304
|
+
} else {
|
|
305
|
+
matchResult_2 = 1;
|
|
306
|
+
}
|
|
307
|
+
switch(matchResult_2){
|
|
308
|
+
case 0:
|
|
309
|
+
{
|
|
310
|
+
const bmi = BMIField_calculateBMI(matchValue_2[1], matchValue_3[1]);
|
|
311
|
+
currentBMI = [
|
|
312
|
+
bmi,
|
|
313
|
+
BMIField_getBMICategory(bmi)
|
|
314
|
+
];
|
|
315
|
+
break;
|
|
316
|
+
}
|
|
317
|
+
default:
|
|
318
|
+
currentBMI = undefined;
|
|
319
|
+
}
|
|
320
|
+
return (0, _HtmlViewfs.withLabelAndError)(config.Attributes.Label, config.ShowError, config.Error, (0, _react.createElement)("div", (0, _Util.createObj)((0, _List.ofArray)([
|
|
321
|
+
[
|
|
322
|
+
"className",
|
|
323
|
+
"bmi-calculator"
|
|
324
|
+
],
|
|
325
|
+
(elems_12 = (0, _Seq.toList)((0, _Seq.delay)(()=>{
|
|
326
|
+
let children_5, children_4, elems_2, children_1, children, elems_5, children_3, children_2;
|
|
327
|
+
return (0, _Seq.append)((0, _Seq.singleton)((children_5 = [
|
|
328
|
+
(children_4 = [
|
|
329
|
+
(0, _react.createElement)("div", (0, _Util.createObj)((0, _ElementBuildersfs.Helpers_combineClasses)("column", (0, _List.ofArray)([
|
|
330
|
+
[
|
|
331
|
+
"className",
|
|
332
|
+
"is-half"
|
|
333
|
+
],
|
|
334
|
+
(elems_2 = [
|
|
335
|
+
(children_1 = [
|
|
336
|
+
(0, _react.createElement)("label", (0, _Util.createObj)((0, _ElementBuildersfs.Helpers_combineClasses)("label", (0, _List.singleton)([
|
|
337
|
+
"children",
|
|
338
|
+
"Height (cm)"
|
|
339
|
+
])))),
|
|
340
|
+
(children = [
|
|
341
|
+
(0, _react.createElement)("input", (0, _Util.createObj)((0, _List.cons)([
|
|
342
|
+
"type",
|
|
343
|
+
"number"
|
|
344
|
+
], (0, _ElementBuildersfs.Helpers_combineClasses)("input", (0, _Seq.toList)((0, _Seq.delay)(()=>(0, _Seq.append)((0, _Seq.singleton)([
|
|
345
|
+
"value",
|
|
346
|
+
height
|
|
347
|
+
]), (0, _Seq.delay)(()=>(0, _Seq.append)((0, _Seq.singleton)([
|
|
348
|
+
"placeholder",
|
|
349
|
+
"Enter height in cm"
|
|
350
|
+
]), (0, _Seq.delay)(()=>(0, _Seq.append)((0, _Seq.singleton)([
|
|
351
|
+
"disabled",
|
|
352
|
+
config.Disabled ? true : config.IsReadOnly
|
|
353
|
+
]), (0, _Seq.delay)(()=>(0, _Seq.append)((0, _Seq.singleton)([
|
|
354
|
+
"onChange",
|
|
355
|
+
(ev)=>{
|
|
356
|
+
patternInput[1](ev.target.value);
|
|
357
|
+
}
|
|
358
|
+
]), (0, _Seq.delay)(()=>config.ShowError && config.Error != null ? (0, _Seq.singleton)([
|
|
359
|
+
"className",
|
|
360
|
+
"is-danger"
|
|
361
|
+
]) : (0, _Seq.empty)()))))))))))))))
|
|
362
|
+
], (0, _react.createElement)("div", {
|
|
363
|
+
className: "control",
|
|
364
|
+
children: _Interopfs.reactApi.Children.toArray(Array.from(children))
|
|
365
|
+
}))
|
|
366
|
+
], (0, _react.createElement)("div", {
|
|
367
|
+
className: "field",
|
|
368
|
+
children: _Interopfs.reactApi.Children.toArray(Array.from(children_1))
|
|
369
|
+
}))
|
|
370
|
+
], [
|
|
371
|
+
"children",
|
|
372
|
+
_Interopfs.reactApi.Children.toArray(Array.from(elems_2))
|
|
373
|
+
])
|
|
374
|
+
])))),
|
|
375
|
+
(0, _react.createElement)("div", (0, _Util.createObj)((0, _ElementBuildersfs.Helpers_combineClasses)("column", (0, _List.ofArray)([
|
|
376
|
+
[
|
|
377
|
+
"className",
|
|
378
|
+
"is-half"
|
|
379
|
+
],
|
|
380
|
+
(elems_5 = [
|
|
381
|
+
(children_3 = [
|
|
382
|
+
(0, _react.createElement)("label", (0, _Util.createObj)((0, _ElementBuildersfs.Helpers_combineClasses)("label", (0, _List.singleton)([
|
|
383
|
+
"children",
|
|
384
|
+
"Weight (kg)"
|
|
385
|
+
])))),
|
|
386
|
+
(children_2 = [
|
|
387
|
+
(0, _react.createElement)("input", (0, _Util.createObj)((0, _List.cons)([
|
|
388
|
+
"type",
|
|
389
|
+
"number"
|
|
390
|
+
], (0, _ElementBuildersfs.Helpers_combineClasses)("input", (0, _Seq.toList)((0, _Seq.delay)(()=>(0, _Seq.append)((0, _Seq.singleton)([
|
|
391
|
+
"value",
|
|
392
|
+
weight
|
|
393
|
+
]), (0, _Seq.delay)(()=>(0, _Seq.append)((0, _Seq.singleton)([
|
|
394
|
+
"placeholder",
|
|
395
|
+
"Enter weight in kg"
|
|
396
|
+
]), (0, _Seq.delay)(()=>(0, _Seq.append)((0, _Seq.singleton)([
|
|
397
|
+
"disabled",
|
|
398
|
+
config.Disabled ? true : config.IsReadOnly
|
|
399
|
+
]), (0, _Seq.delay)(()=>(0, _Seq.append)((0, _Seq.singleton)([
|
|
400
|
+
"onChange",
|
|
401
|
+
(ev_1)=>{
|
|
402
|
+
patternInput_1[1](ev_1.target.value);
|
|
403
|
+
}
|
|
404
|
+
]), (0, _Seq.delay)(()=>config.ShowError && config.Error != null ? (0, _Seq.singleton)([
|
|
405
|
+
"className",
|
|
406
|
+
"is-danger"
|
|
407
|
+
]) : (0, _Seq.empty)()))))))))))))))
|
|
408
|
+
], (0, _react.createElement)("div", {
|
|
409
|
+
className: "control",
|
|
410
|
+
children: _Interopfs.reactApi.Children.toArray(Array.from(children_2))
|
|
411
|
+
}))
|
|
412
|
+
], (0, _react.createElement)("div", {
|
|
413
|
+
className: "field",
|
|
414
|
+
children: _Interopfs.reactApi.Children.toArray(Array.from(children_3))
|
|
415
|
+
}))
|
|
416
|
+
], [
|
|
417
|
+
"children",
|
|
418
|
+
_Interopfs.reactApi.Children.toArray(Array.from(elems_5))
|
|
419
|
+
])
|
|
420
|
+
]))))
|
|
421
|
+
], (0, _react.createElement)("div", {
|
|
422
|
+
className: "columns",
|
|
423
|
+
children: _Interopfs.reactApi.Children.toArray(Array.from(children_4))
|
|
424
|
+
}))
|
|
425
|
+
], (0, _react.createElement)("div", {
|
|
426
|
+
className: "field",
|
|
427
|
+
children: _Interopfs.reactApi.Children.toArray(Array.from(children_5))
|
|
428
|
+
}))), (0, _Seq.delay)(()=>{
|
|
429
|
+
let children_6, elems_10, elems_9, elems_8;
|
|
430
|
+
const matchValue_5 = currentBMI;
|
|
431
|
+
if (matchValue_5 == null) {
|
|
432
|
+
return (0, _Seq.singleton)((0, _react.createElement)("div", {
|
|
433
|
+
className: "has-text-grey-light has-text-centered",
|
|
434
|
+
style: {
|
|
435
|
+
padding: 20
|
|
436
|
+
},
|
|
437
|
+
children: "Enter height and weight to calculate BMI"
|
|
438
|
+
}));
|
|
439
|
+
} else {
|
|
440
|
+
const category = (0, _Option.value)(matchValue_5)[1];
|
|
441
|
+
const bmi_1 = (0, _Option.value)(matchValue_5)[0];
|
|
442
|
+
return (0, _Seq.singleton)((children_6 = [
|
|
443
|
+
(0, _react.createElement)("label", (0, _Util.createObj)((0, _ElementBuildersfs.Helpers_combineClasses)("label", (0, _List.singleton)([
|
|
444
|
+
"children",
|
|
445
|
+
"BMI Result"
|
|
446
|
+
])))),
|
|
447
|
+
(0, _react.createElement)("div", (0, _Util.createObj)((0, _ElementBuildersfs.Helpers_combineClasses)("box", (0, _List.ofArray)([
|
|
448
|
+
[
|
|
449
|
+
"style",
|
|
450
|
+
{
|
|
451
|
+
backgroundColor: "#f0f9ff",
|
|
452
|
+
border: 1 + "px " + "solid" + " " + "#0ea5e9"
|
|
453
|
+
}
|
|
454
|
+
],
|
|
455
|
+
(elems_10 = [
|
|
456
|
+
(0, _react.createElement)("div", (0, _Util.createObj)((0, _List.ofArray)([
|
|
457
|
+
[
|
|
458
|
+
"className",
|
|
459
|
+
"has-text-centered"
|
|
460
|
+
],
|
|
461
|
+
(elems_9 = [
|
|
462
|
+
(0, _react.createElement)("p", {
|
|
463
|
+
className: "is-size-4 has-text-weight-bold",
|
|
464
|
+
style: {
|
|
465
|
+
color: "#0ea5e9"
|
|
466
|
+
},
|
|
467
|
+
children: (0, _String.toText)((0, _String.interpolate)("BMI: %.1f%P()", [
|
|
468
|
+
bmi_1
|
|
469
|
+
]))
|
|
470
|
+
}),
|
|
471
|
+
(0, _react.createElement)("p", {
|
|
472
|
+
className: "is-size-6",
|
|
473
|
+
children: `Category: ${category}`,
|
|
474
|
+
style: {
|
|
475
|
+
color: category === "Underweight" ? "#f59e0b" : category === "Normal weight" ? "#10b981" : category === "Overweight" ? "#f59e0b" : category === "Obese" ? "#ef4444" : "#6b7280"
|
|
476
|
+
}
|
|
477
|
+
}),
|
|
478
|
+
(0, _react.createElement)("hr", {}),
|
|
479
|
+
(0, _react.createElement)("div", (0, _Util.createObj)((0, _List.ofArray)([
|
|
480
|
+
[
|
|
481
|
+
"className",
|
|
482
|
+
"is-size-7"
|
|
483
|
+
],
|
|
484
|
+
(elems_8 = [
|
|
485
|
+
(0, _react.createElement)("p", {
|
|
486
|
+
children: "BMI Categories:"
|
|
487
|
+
}),
|
|
488
|
+
(0, _react.createElement)("p", {
|
|
489
|
+
children: "• Underweight: < 18.5"
|
|
490
|
+
}),
|
|
491
|
+
(0, _react.createElement)("p", {
|
|
492
|
+
children: "• Normal weight: 18.5-24.9"
|
|
493
|
+
}),
|
|
494
|
+
(0, _react.createElement)("p", {
|
|
495
|
+
children: "• Overweight: 25.0-29.9"
|
|
496
|
+
}),
|
|
497
|
+
(0, _react.createElement)("p", {
|
|
498
|
+
children: "• Obese: ≥ 30.0"
|
|
499
|
+
})
|
|
500
|
+
], [
|
|
501
|
+
"children",
|
|
502
|
+
_Interopfs.reactApi.Children.toArray(Array.from(elems_8))
|
|
503
|
+
])
|
|
504
|
+
])))
|
|
505
|
+
], [
|
|
506
|
+
"children",
|
|
507
|
+
_Interopfs.reactApi.Children.toArray(Array.from(elems_9))
|
|
508
|
+
])
|
|
509
|
+
])))
|
|
510
|
+
], [
|
|
511
|
+
"children",
|
|
512
|
+
_Interopfs.reactApi.Children.toArray(Array.from(elems_10))
|
|
513
|
+
])
|
|
514
|
+
]))))
|
|
515
|
+
], (0, _react.createElement)("div", {
|
|
516
|
+
className: "field",
|
|
517
|
+
children: _Interopfs.reactApi.Children.toArray(Array.from(children_6))
|
|
518
|
+
})));
|
|
519
|
+
}
|
|
520
|
+
}));
|
|
521
|
+
})), [
|
|
522
|
+
"children",
|
|
523
|
+
_Interopfs.reactApi.Children.toArray(Array.from(elems_12))
|
|
524
|
+
])
|
|
525
|
+
]))));
|
|
526
|
+
}
|
|
527
|
+
class BMIField_Field$1 extends _Typesfs.IStandardField$3 {
|
|
528
|
+
"Fable.Form.Simple.Bulma.IStandardField`3.RenderFieldZ43FEF6DC"(config) {
|
|
529
|
+
return (0, _react.createElement)(BMIField_BMIFieldComponent, config);
|
|
530
|
+
}
|
|
531
|
+
MapFieldValues(update) {
|
|
532
|
+
const _ = this;
|
|
533
|
+
return BMIField_Field$1_$ctor_Z1543D607((0, _Fieldfs.mapValues)(update, _.innerField_1));
|
|
534
|
+
}
|
|
535
|
+
constructor(innerField){
|
|
536
|
+
super(innerField);
|
|
537
|
+
this.innerField_1 = innerField;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
function BMIField_Field$1_$reflection(gen0) {
|
|
541
|
+
return (0, _Reflection.class_type)("Fable.Form.Simple.Bulma.Fields.BMIField.BMIField.Field`1", [
|
|
542
|
+
gen0
|
|
543
|
+
], BMIField_Field$1, (0, _Typesfs.IStandardField$3_$reflection)(gen0, _Reflection.string_type, BMIField_Attributes_$reflection()));
|
|
544
|
+
}
|
|
545
|
+
function BMIField_Field$1_$ctor_Z1543D607(innerField) {
|
|
546
|
+
return new BMIField_Field$1(innerField);
|
|
547
|
+
}
|
|
548
|
+
function Form_bmiField(config) {
|
|
549
|
+
return BMIField_form()(BMIField_Field$1_$ctor_Z1543D607)(config);
|
|
550
|
+
}
|
|
551
|
+
const Form_pluginConfig = new _FormSpec.Spec_PluginFieldConfig("Fable.Form.Simple.Bulma.Fields.BMIField");
|
|
552
|
+
const Form_PropertyKeys_Height = new _FormSpec.Shared_PluginPropertyKey("276106c7-09ce-44cf-9076-4a4985775a90");
|
|
553
|
+
const Form_PropertyKeys_Weight = new _FormSpec.Shared_PluginPropertyKey("2b7fd0c7-08e1-4072-9dd9-73a4183eea40");
|
|
554
|
+
const Form_PropertyKeys_BMI = new _FormSpec.Shared_PluginPropertyKey("6ca28396-8bea-4939-afb0-2fc7abf1cd5e");
|
|
555
|
+
const Form_PropertyKeys_Category = new _FormSpec.Shared_PluginPropertyKey("b26d5b2b-f1c9-4a56-8c41-8288fc9e1a84");
|
|
556
|
+
const Form_enhancedBMIConverter = new _PluginInterface.IPluginValueConverter((fieldKey, pluginValue)=>{
|
|
557
|
+
const bmiData = pluginValue;
|
|
558
|
+
let calculatedBMI;
|
|
559
|
+
if (bmiData.Height > 0 && bmiData.Weight > 0) {
|
|
560
|
+
const heightM = bmiData.Height / 100;
|
|
561
|
+
calculatedBMI = bmiData.Weight / (heightM * heightM);
|
|
562
|
+
} else {
|
|
563
|
+
calculatedBMI = undefined;
|
|
564
|
+
}
|
|
565
|
+
const calculatedCategory = (0, _Option.map)(BMIField_getBMICategory, calculatedBMI);
|
|
566
|
+
return (0, _FormSpec.Shared_FieldValue_PluginData)((0, _List.ofArray)([
|
|
567
|
+
new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Height, "height", "float", bmiData.Height.toString(), "Height", "cm", "Patient height in centimeters"),
|
|
568
|
+
new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Weight, "weight", "float", bmiData.Weight.toString(), "Weight", "kg", "Patient weight in kilograms"),
|
|
569
|
+
new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_BMI, "bmi", "float", (0, _Option.defaultArg)((0, _Option.map)((value)=>value.toString(), calculatedBMI), ""), "BMI Score", "kg/m²", "Body Mass Index: weight divided by height squared"),
|
|
570
|
+
new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Category, "category", "string", (0, _Option.defaultArg)(calculatedCategory, ""), "BMI Category", undefined, "WHO BMI classification (Underweight/Normal/Overweight/Obese)")
|
|
571
|
+
]));
|
|
572
|
+
}, (fieldValue)=>{
|
|
573
|
+
switch(fieldValue.tag){
|
|
574
|
+
case /* PluginData */ 3:
|
|
575
|
+
{
|
|
576
|
+
const properties = fieldValue.fields[0];
|
|
577
|
+
return (0, _Option.some)(new BMIField_BMIData((0, _Option.defaultArg)((0, _Option.bind)((tupledArg)=>{
|
|
578
|
+
if (tupledArg[0]) {
|
|
579
|
+
return tupledArg[1];
|
|
580
|
+
} else {
|
|
581
|
+
return undefined;
|
|
582
|
+
}
|
|
583
|
+
}, (0, _Option.map)((p_1)=>{
|
|
584
|
+
let outArg = 0;
|
|
585
|
+
return [
|
|
586
|
+
(0, _Double.tryParse)(p_1.Value, new _Types.FSharpRef(()=>outArg, (v)=>{
|
|
587
|
+
outArg = v;
|
|
588
|
+
})),
|
|
589
|
+
outArg
|
|
590
|
+
];
|
|
591
|
+
}, (0, _List.tryFind)((p)=>p.Name === "height", properties))), 0), (0, _Option.defaultArg)((0, _Option.bind)((tupledArg_1)=>{
|
|
592
|
+
if (tupledArg_1[0]) {
|
|
593
|
+
return tupledArg_1[1];
|
|
594
|
+
} else {
|
|
595
|
+
return undefined;
|
|
596
|
+
}
|
|
597
|
+
}, (0, _Option.map)((p_3)=>{
|
|
598
|
+
let outArg_1 = 0;
|
|
599
|
+
return [
|
|
600
|
+
(0, _Double.tryParse)(p_3.Value, new _Types.FSharpRef(()=>outArg_1, (v_1)=>{
|
|
601
|
+
outArg_1 = v_1;
|
|
602
|
+
})),
|
|
603
|
+
outArg_1
|
|
604
|
+
];
|
|
605
|
+
}, (0, _List.tryFind)((p_2)=>p_2.Name === "weight", properties))), 0), undefined, undefined));
|
|
606
|
+
}
|
|
607
|
+
case /* Single */ 0:
|
|
608
|
+
return (0, _Option.some)(BMIField_parseBMIData(fieldValue.fields[0].Value));
|
|
609
|
+
default:
|
|
610
|
+
return undefined;
|
|
611
|
+
}
|
|
612
|
+
}, ()=>undefined, ()=>(0, _List.ofArray)([
|
|
613
|
+
"height",
|
|
614
|
+
"weight",
|
|
615
|
+
"bmi",
|
|
616
|
+
"category"
|
|
617
|
+
]), (propertyName)=>propertyName === "height" ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Height, "height", "float", "", "Height", "cm", "Patient height in centimeters") : propertyName === "weight" ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Weight, "weight", "float", "", "Weight", "kg", "Patient weight in kilograms") : propertyName === "bmi" ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_BMI, "bmi", "float", "", "BMI Score", "kg/m²", "Body Mass Index calculation") : propertyName === "category" ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Category, "category", "string", "", "BMI Category", undefined, "BMI classification category") : undefined, (propertyKey)=>(0, _Util.equals)(propertyKey, Form_PropertyKeys_Height) ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Height, "height", "float", "", "Height", "cm", "Patient height in centimeters") : (0, _Util.equals)(propertyKey, Form_PropertyKeys_Weight) ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Weight, "weight", "float", "", "Weight", "kg", "Patient weight in kilograms") : (0, _Util.equals)(propertyKey, Form_PropertyKeys_BMI) ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_BMI, "bmi", "float", "", "BMI Score", "kg/m²", "Body Mass Index calculation") : (0, _Util.equals)(propertyKey, Form_PropertyKeys_Category) ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Category, "category", "string", "", "BMI Category", undefined, "BMI classification category") : undefined, (propertyName_1, fieldValue_1)=>{
|
|
618
|
+
switch(fieldValue_1.tag){
|
|
619
|
+
case /* PluginData */ 3:
|
|
620
|
+
return (0, _List.tryFind)((p_4)=>p_4.Name === propertyName_1, fieldValue_1.fields[0]);
|
|
621
|
+
case /* Single */ 0:
|
|
622
|
+
{
|
|
623
|
+
const bmiData_1 = BMIField_parseBMIData(fieldValue_1.fields[0].Value);
|
|
624
|
+
return propertyName_1 === "height" ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Height, "height", "float", bmiData_1.Height.toString(), "Height", "cm", "Patient height in centimeters") : propertyName_1 === "weight" ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Weight, "weight", "float", bmiData_1.Weight.toString(), "Weight", "kg", "Patient weight in kilograms") : propertyName_1 === "bmi" ? (0, _Option.map)((v_2)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_BMI, "bmi", "float", v_2.toString(), "BMI", "kg/m²", "Body Mass Index calculation"), bmiData_1.BMI) : propertyName_1 === "category" ? (0, _Option.map)((v_3)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Category, "category", "string", v_3, "Category", undefined, "BMI classification category"), bmiData_1.Category) : undefined;
|
|
625
|
+
}
|
|
626
|
+
default:
|
|
627
|
+
return undefined;
|
|
628
|
+
}
|
|
629
|
+
}, (propertyKey_1, fieldValue_2)=>{
|
|
630
|
+
switch(fieldValue_2.tag){
|
|
631
|
+
case /* PluginData */ 3:
|
|
632
|
+
return (0, _List.tryFind)((p_5)=>(0, _Util.equals)(p_5.PropertyKey, propertyKey_1), fieldValue_2.fields[0]);
|
|
633
|
+
case /* Single */ 0:
|
|
634
|
+
{
|
|
635
|
+
const bmiData_2 = BMIField_parseBMIData(fieldValue_2.fields[0].Value);
|
|
636
|
+
return (0, _Util.equals)(propertyKey_1, Form_PropertyKeys_Height) ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Height, "height", "float", bmiData_2.Height.toString(), "Height", "cm", "Patient height in centimeters") : (0, _Util.equals)(propertyKey_1, Form_PropertyKeys_Weight) ? new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Weight, "weight", "float", bmiData_2.Weight.toString(), "Weight", "kg", "Patient weight in kilograms") : (0, _Util.equals)(propertyKey_1, Form_PropertyKeys_BMI) ? (0, _Option.map)((v_4)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_BMI, "bmi", "float", v_4.toString(), "BMI", "kg/m²", "Body Mass Index calculation"), bmiData_2.BMI) : (0, _Util.equals)(propertyKey_1, Form_PropertyKeys_Category) ? (0, _Option.map)((v_5)=>new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Category, "category", "string", v_5, "Category", undefined, "BMI classification category"), bmiData_2.Category) : undefined;
|
|
637
|
+
}
|
|
638
|
+
default:
|
|
639
|
+
return undefined;
|
|
640
|
+
}
|
|
641
|
+
}, (propertyName_2, value_7)=>{
|
|
642
|
+
let v_7, v_11;
|
|
643
|
+
switch(propertyName_2){
|
|
644
|
+
case "height":
|
|
645
|
+
{
|
|
646
|
+
let matchValue;
|
|
647
|
+
let outArg_2 = 0;
|
|
648
|
+
matchValue = [
|
|
649
|
+
(0, _Double.tryParse)(value_7, new _Types.FSharpRef(()=>outArg_2, (v_6)=>{
|
|
650
|
+
outArg_2 = v_6;
|
|
651
|
+
})),
|
|
652
|
+
outArg_2
|
|
653
|
+
];
|
|
654
|
+
return matchValue[0] ? (v_7 = matchValue[1], v_7 >= 50 && v_7 <= 250) ? (0, _Result.FSharpResult$2_Ok)(undefined) : (0, _Result.FSharpResult$2_Error)(`Height must be between 50-250 cm, got ${matchValue[1]}`) : (0, _Result.FSharpResult$2_Error)("Height must be a valid number");
|
|
655
|
+
}
|
|
656
|
+
case "weight":
|
|
657
|
+
{
|
|
658
|
+
let matchValue_1;
|
|
659
|
+
let outArg_3 = 0;
|
|
660
|
+
matchValue_1 = [
|
|
661
|
+
(0, _Double.tryParse)(value_7, new _Types.FSharpRef(()=>outArg_3, (v_10)=>{
|
|
662
|
+
outArg_3 = v_10;
|
|
663
|
+
})),
|
|
664
|
+
outArg_3
|
|
665
|
+
];
|
|
666
|
+
return matchValue_1[0] ? (v_11 = matchValue_1[1], v_11 >= 1 && v_11 <= 300) ? (0, _Result.FSharpResult$2_Ok)(undefined) : (0, _Result.FSharpResult$2_Error)(`Weight must be between 1-300 kg, got ${matchValue_1[1]}`) : (0, _Result.FSharpResult$2_Error)("Weight must be a valid number");
|
|
667
|
+
}
|
|
668
|
+
case "bmi":
|
|
669
|
+
case "category":
|
|
670
|
+
return (0, _Result.FSharpResult$2_Error)("BMI and category are calculated fields and cannot be set directly");
|
|
671
|
+
default:
|
|
672
|
+
return (0, _Result.FSharpResult$2_Error)(`Unknown property: ${propertyName_2}`);
|
|
673
|
+
}
|
|
674
|
+
}, (fieldValue_3)=>{
|
|
675
|
+
switch(fieldValue_3.tag){
|
|
676
|
+
case /* PluginData */ 3:
|
|
677
|
+
return fieldValue_3.fields[0];
|
|
678
|
+
case /* Single */ 0:
|
|
679
|
+
{
|
|
680
|
+
const bmiData_3 = BMIField_parseBMIData(fieldValue_3.fields[0].Value);
|
|
681
|
+
return (0, _List.ofArray)([
|
|
682
|
+
new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Height, "height", "float", bmiData_3.Height.toString(), "Height", "cm", "Patient height in centimeters"),
|
|
683
|
+
new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Weight, "weight", "float", bmiData_3.Weight.toString(), "Weight", "kg", "Patient weight in kilograms"),
|
|
684
|
+
new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_BMI, "bmi", "float", (0, _Option.defaultArg)((0, _Option.map)((value_8)=>value_8.toString(), bmiData_3.BMI), ""), "BMI", "kg/m²", "Body Mass Index calculation"),
|
|
685
|
+
new _FormSpec.Shared_PluginDataProperty(Form_PropertyKeys_Category, "category", "string", (0, _Option.defaultArg)(bmiData_3.Category, ""), "Category", undefined, "BMI classification category")
|
|
686
|
+
]);
|
|
687
|
+
}
|
|
688
|
+
default:
|
|
689
|
+
return (0, _List.empty)();
|
|
690
|
+
}
|
|
691
|
+
});
|
|
692
|
+
function Form_designerPreview(props) {
|
|
693
|
+
let elems_3, elems_2, elems, elems_1;
|
|
694
|
+
const children = [
|
|
695
|
+
(0, _react.createElement)("div", (0, _Util.createObj)((0, _ElementBuildersfs.Helpers_combineClasses)("box", (0, _List.ofArray)([
|
|
696
|
+
[
|
|
697
|
+
"style",
|
|
698
|
+
{
|
|
699
|
+
border: 1 + "px " + "dashed" + " " + "hsl(0, 0%, 86%)",
|
|
700
|
+
backgroundColor: "hsl(0, 0%, 98%)",
|
|
701
|
+
textAlign: "center",
|
|
702
|
+
padding: 20
|
|
703
|
+
}
|
|
704
|
+
],
|
|
705
|
+
(elems_3 = [
|
|
706
|
+
(0, _react.createElement)("div", {
|
|
707
|
+
className: "has-text-weight-bold",
|
|
708
|
+
children: "📊 BMI Calculator",
|
|
709
|
+
style: {
|
|
710
|
+
marginBottom: 10
|
|
711
|
+
}
|
|
712
|
+
}),
|
|
713
|
+
(0, _react.createElement)("div", (0, _Util.createObj)((0, _ElementBuildersfs.Helpers_combineClasses)("columns", (0, _List.ofArray)([
|
|
714
|
+
[
|
|
715
|
+
"className",
|
|
716
|
+
"is-gapless"
|
|
717
|
+
],
|
|
718
|
+
[
|
|
719
|
+
"className",
|
|
720
|
+
"is-mobile"
|
|
721
|
+
],
|
|
722
|
+
(elems_2 = [
|
|
723
|
+
(0, _react.createElement)("div", (0, _Util.createObj)((0, _ElementBuildersfs.Helpers_combineClasses)("column", (0, _List.singleton)((elems = [
|
|
724
|
+
(0, _react.createElement)("input", (0, _Util.createObj)((0, _List.cons)([
|
|
725
|
+
"type",
|
|
726
|
+
"text"
|
|
727
|
+
], (0, _ElementBuildersfs.Helpers_combineClasses)("input", (0, _List.ofArray)([
|
|
728
|
+
[
|
|
729
|
+
"readOnly",
|
|
730
|
+
true
|
|
731
|
+
],
|
|
732
|
+
[
|
|
733
|
+
"placeholder",
|
|
734
|
+
"Height (cm)"
|
|
735
|
+
],
|
|
736
|
+
[
|
|
737
|
+
"style",
|
|
738
|
+
{
|
|
739
|
+
fontSize: 12 + "px"
|
|
740
|
+
}
|
|
741
|
+
]
|
|
742
|
+
])))))
|
|
743
|
+
], [
|
|
744
|
+
"children",
|
|
745
|
+
_Interopfs.reactApi.Children.toArray(Array.from(elems))
|
|
746
|
+
]))))),
|
|
747
|
+
(0, _react.createElement)("div", (0, _Util.createObj)((0, _ElementBuildersfs.Helpers_combineClasses)("column", (0, _List.singleton)((elems_1 = [
|
|
748
|
+
(0, _react.createElement)("input", (0, _Util.createObj)((0, _List.cons)([
|
|
749
|
+
"type",
|
|
750
|
+
"text"
|
|
751
|
+
], (0, _ElementBuildersfs.Helpers_combineClasses)("input", (0, _List.ofArray)([
|
|
752
|
+
[
|
|
753
|
+
"readOnly",
|
|
754
|
+
true
|
|
755
|
+
],
|
|
756
|
+
[
|
|
757
|
+
"placeholder",
|
|
758
|
+
"Weight (kg)"
|
|
759
|
+
],
|
|
760
|
+
[
|
|
761
|
+
"style",
|
|
762
|
+
{
|
|
763
|
+
fontSize: 12 + "px"
|
|
764
|
+
}
|
|
765
|
+
]
|
|
766
|
+
])))))
|
|
767
|
+
], [
|
|
768
|
+
"children",
|
|
769
|
+
_Interopfs.reactApi.Children.toArray(Array.from(elems_1))
|
|
770
|
+
])))))
|
|
771
|
+
], [
|
|
772
|
+
"children",
|
|
773
|
+
_Interopfs.reactApi.Children.toArray(Array.from(elems_2))
|
|
774
|
+
])
|
|
775
|
+
])))),
|
|
776
|
+
(0, _react.createElement)("div", {
|
|
777
|
+
style: {
|
|
778
|
+
fontSize: 10 + "px",
|
|
779
|
+
color: "hsl(0, 0%, 60%)",
|
|
780
|
+
marginTop: 5
|
|
781
|
+
},
|
|
782
|
+
children: "Automatically calculates BMI and category"
|
|
783
|
+
})
|
|
784
|
+
], [
|
|
785
|
+
"children",
|
|
786
|
+
_Interopfs.reactApi.Children.toArray(Array.from(elems_3))
|
|
787
|
+
])
|
|
788
|
+
]))))
|
|
789
|
+
];
|
|
790
|
+
return (0, _react.createElement)("div", {
|
|
791
|
+
className: "control",
|
|
792
|
+
children: _Interopfs.reactApi.Children.toArray(Array.from(children))
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
function Form_markdownRenderer(field, fieldDetails) {
|
|
796
|
+
let matchValue_1;
|
|
797
|
+
let value;
|
|
798
|
+
const matchValue = fieldDetails.FieldValue;
|
|
799
|
+
value = matchValue.tag === /* Single */ 0 ? matchValue.fields[0].Value : "";
|
|
800
|
+
if ((0, _String.isNullOrWhiteSpace)(value)) {
|
|
801
|
+
return `**${field.Label}:** *[No data entered]*`;
|
|
802
|
+
} else {
|
|
803
|
+
try {
|
|
804
|
+
const bmiData = BMIField_parseBMIData(value);
|
|
805
|
+
return bmiData.Height > 0 && bmiData.Weight > 0 && bmiData.BMI != null && bmiData.Category != null ? (0, _String.join)("\n", [
|
|
806
|
+
`**${field.Label}** ${(matchValue_1 = (0, _Option.value)(bmiData.Category), matchValue_1 === "Underweight" ? "⚖️" : matchValue_1 === "Normal weight" ? "✅" : matchValue_1 === "Overweight" ? "⚠️" : matchValue_1 === "Obese" ? "🚨" : "📊")}`,
|
|
807
|
+
"",
|
|
808
|
+
"| Metric | Value |",
|
|
809
|
+
"|--------|-------|",
|
|
810
|
+
`| **Height** | %P(F1) cm |`,
|
|
811
|
+
`| **Weight** | %P(F1) kg |`,
|
|
812
|
+
`| **BMI** | **%P(F1)** |`,
|
|
813
|
+
`| **Category** | **${(0, _Option.value)(bmiData.Category)}** |`,
|
|
814
|
+
"",
|
|
815
|
+
"> 💡 *BMI is calculated as weight (kg) divided by height (m) squared*"
|
|
816
|
+
]) : `**${field.Label}:** *[Incomplete data: Height=%P(F1)cm, Weight=%P(F1)kg]*`;
|
|
817
|
+
} catch (ex) {
|
|
818
|
+
return `**${field.Label}:** *[Error processing data: ${ex.message}]*`;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
} //# sourceMappingURL=BMIField.ts.map
|
|
822
|
+
|
|
823
|
+
//# sourceMappingURL=BMIField.js.map
|