@f1studio/form-spec 5.0.0-alpha.106 → 5.0.0-alpha.108
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/{Interop → FormSpec.FS/Interop}/FormSpec.Api.Helpers.d.ts +8 -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 +15 -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 +21 -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.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,87 @@
|
|
|
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 Field$1 () {
|
|
13
|
+
return Field$1;
|
|
14
|
+
},
|
|
15
|
+
get Field$1_$ctor_Z22C30168 () {
|
|
16
|
+
return Field$1_$ctor_Z22C30168;
|
|
17
|
+
},
|
|
18
|
+
get Field$1_$reflection () {
|
|
19
|
+
return Field$1_$reflection;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const _InputFieldfs = require("./InputField.fs.js");
|
|
23
|
+
const _react = require("react");
|
|
24
|
+
const _Util = require("@fable-org/fable-library-js/Util.js");
|
|
25
|
+
const _ElementBuildersfs = require("../Feliz.Bulma.3.0.0/ElementBuilders.fs.js");
|
|
26
|
+
const _List = require("@fable-org/fable-library-js/List.js");
|
|
27
|
+
const _Seq = require("@fable-org/fable-library-js/Seq.js");
|
|
28
|
+
const _Types = require("@fable-org/fable-library-js/Types.js");
|
|
29
|
+
const _Option = require("@fable-org/fable-library-js/Option.js");
|
|
30
|
+
const _TextFieldfs = require("../Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs.js");
|
|
31
|
+
const _Typesfs = require("./Types.fs.js");
|
|
32
|
+
const _Fieldfs = require("../Fable.Form.3.0.0/Field.fs.js");
|
|
33
|
+
const _Reflection = require("@fable-org/fable-library-js/Reflection.js");
|
|
34
|
+
class Field$1 extends _Typesfs.IStandardField$3 {
|
|
35
|
+
"Fable.Form.Simple.Bulma.IStandardField`3.RenderFieldZ43FEF6DC"(config) {
|
|
36
|
+
return (0, _InputFieldfs.renderField)(new _InputFieldfs.Config(config.OnChange, config.OnBlur, config.Disabled, config.IsReadOnly, config.Value, config.Error, config.ShowError, config.Attributes.Label, (props)=>(0, _react.createElement)("input", (0, _Util.createObj)((0, _List.cons)([
|
|
37
|
+
"type",
|
|
38
|
+
"text"
|
|
39
|
+
], (0, _ElementBuildersfs.Helpers_combineClasses)("input", props)))), (0, _Seq.toList)((0, _Seq.delay)(()=>{
|
|
40
|
+
let matchValue;
|
|
41
|
+
return (0, _Seq.append)((matchValue = config.Attributes.SpellCheck, matchValue.tag === /* True */ 1 ? (0, _Seq.singleton)([
|
|
42
|
+
"spellcheck",
|
|
43
|
+
(0, _Types.toString)(true)
|
|
44
|
+
]) : matchValue.tag === /* False */ 2 ? (0, _Seq.singleton)([
|
|
45
|
+
"spellcheck",
|
|
46
|
+
(0, _Types.toString)(false)
|
|
47
|
+
]) : (0, _Seq.empty)()), (0, _Seq.delay)(()=>(0, _Seq.append)((0, _Seq.singleton)([
|
|
48
|
+
"autoFocus",
|
|
49
|
+
config.Attributes.AutoFocus
|
|
50
|
+
]), (0, _Seq.delay)(()=>{
|
|
51
|
+
let matchValue_1;
|
|
52
|
+
return (0, _Seq.append)((matchValue_1 = config.Attributes.Placeholder, matchValue_1 == null ? (0, _Seq.empty)() : (0, _Seq.singleton)([
|
|
53
|
+
"placeholder",
|
|
54
|
+
(0, _Option.value)(matchValue_1)
|
|
55
|
+
])), (0, _Seq.delay)(()=>{
|
|
56
|
+
const matchValue_2 = config.Attributes.AutoComplete;
|
|
57
|
+
if (matchValue_2 == null) {
|
|
58
|
+
return (0, _Seq.empty)();
|
|
59
|
+
} else {
|
|
60
|
+
return (0, _Seq.singleton)([
|
|
61
|
+
"autoComplete",
|
|
62
|
+
(0, _Option.value)(matchValue_2)
|
|
63
|
+
]);
|
|
64
|
+
}
|
|
65
|
+
}));
|
|
66
|
+
}))));
|
|
67
|
+
}))));
|
|
68
|
+
}
|
|
69
|
+
MapFieldValues(update) {
|
|
70
|
+
const _ = this;
|
|
71
|
+
return Field$1_$ctor_Z22C30168((0, _Fieldfs.mapValues)(update, _.innerField_1));
|
|
72
|
+
}
|
|
73
|
+
constructor(innerField){
|
|
74
|
+
super(innerField);
|
|
75
|
+
this.innerField_1 = innerField;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function Field$1_$reflection(gen0) {
|
|
79
|
+
return (0, _Reflection.class_type)("Fable.Form.Simple.Bulma.Fields.TextField.Field`1", [
|
|
80
|
+
gen0
|
|
81
|
+
], Field$1, (0, _Typesfs.IStandardField$3_$reflection)(gen0, _Reflection.string_type, (0, _TextFieldfs.TextFieldModule_Attributes_$reflection)()));
|
|
82
|
+
}
|
|
83
|
+
function Field$1_$ctor_Z22C30168(innerField) {
|
|
84
|
+
return new Field$1(innerField);
|
|
85
|
+
} //# sourceMappingURL=TextField.fs.ts.map
|
|
86
|
+
|
|
87
|
+
//# sourceMappingURL=TextField.fs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs.ts","../Feliz.2.8.0/Interop.fs","../Feliz.2.8.0/Html.fs","../Feliz.Bulma.3.0.0/ElementBuilders.fs","../Feliz.2.8.0/Properties.fs","../Feliz.Bulma.3.0.0/Bulma.fs"],"names":["innerField","config","props","matchValue","_","``.ctor``","update"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAoBY,yBAAA,EACI,IAAA,oBAAA,CACeC,OAAAA,QAAAA,EACFA,OAAAA,MAAAA,EACEA,OAAAA,QAAAA,EACEA,OAAAA,UAAAA,EACLA,OAAAA,KAAAA,EACAA,OAAAA,KAAAA,EACIA,OAAAA,SAAAA,EACJA,OAAAA,UAAAA,CAAAA,KAAAA,EAAAA,CAAAA,YCpBwC,oBAAA,EC0ZV,SAAA,IAAA,eAAA,MCpWtC,UAAA,EAAA;gBCg4H+B;gBAAO;aAAA,EDh4H/B,6CAAA,EEs3BmD,SLv5B9CC,eAER,WAAA,MACI,UAAA,EAAA;gBAAMC;mBAAN,eAAA,GAAMA,aAAAF,OAAAA,UAAAA,CAAAA,UAAAA,EAAAE,AAAA,WAAAA,GAAAA,KAAAA,QAAAA,GAAAA,QAEyB,cAAA,EAAA;gBI4kDQ;oBAAc,eAAA,EJ5kDN;aAAA,IAFzC,AAAAA,WAAAA,GAAAA,KAAAA,SAAAA,GAAAA,QAG0B,cAAA,EAAA;gBI2kDO;oBAAc,eAAA,EJ3kDL;aAAA,QAFd,UAAA,GAAA,OAIlC,UAAA,EAAA,QAAA,WAAA,MAAA,cAAA,EAAA;oBI+UsC;oBJ/UvBF,OAAAA,UAAAA,CAAAA,SAAAA;iBAAAA,OAEf,UAAA,EAAA;wBAAME;+BAAN,WAAA,GAAMA,eAAAF,OAAAA,UAAAA,CAAAA,WAAAA,EAAA,AAAAE,gBAAAA,WAEI,UAAA,UADY,cAAA,EAAA;wBIi2CoB;wBAAA,IAAA,aAAA,EJj2CpBA;qBAAAA,CAAAA,OAGhB,UAAA,EAAA;wBAAAA,MAAAA,eAAAF,OAAAA,UAAAA,CAAAA,YAAAA;wBAAA,IAAAE,gBAAAA,MAAAA;4BAEI,WAAA,UAAA;;4BADa,WAAA,cAAA,EAAA;gCIqUoB;gCAAA,IAAA,aAAA,EJrUpBA;6BAAAA;;;;;;;QA9BhCC,MAAAA,IAAAA,IAAAA;QAEH,OAAAC,4BAAM,kBAAA,EAAgBC,QAAOF,EAAAA,YAAAA;;;cANyBJ;QAD9C,IAAA,CAAA,YAAA,GAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["./TextField.fs","../Feliz.2.8.0/Interop.fs","../Feliz.2.8.0/Html.fs","../Feliz.Bulma.3.0.0/ElementBuilders.fs","../Feliz.2.8.0/Properties.fs","../Feliz.Bulma.3.0.0/Bulma.fs"],"names":["innerField","config","props","matchValue","_","\u0060\u0060.ctor\u0060\u0060","update"],"mappings":";;;;;;;;;;;;;;;;;;cAWsEA;AAD9C,4BAAAA;;;eAUZ,YACI,WACe,AAAAC,iBACF,AAAAA,eACE,AAAAA,iBACE,AAAAA,mBACL,AAAAA,cACA,AAAAA,cACI,AAAAA,kBACJ,AAAAA,8ECpBwC,mBC0ZV,mBCpWtC,MCg4H\u002BB,QAAO,0BDh4H/B,uBEs3BmD,SLv5B9CC,WAER,uBACI;gBAAMC;mBAAN,wBAAMA,aAAA,AAAAF,8BAAA,CAAA,AAAAE,mCAEyB,2BI4kDQ,cAAc,SJ5kDN,4BAFzC,CAAA,AAAAA,oCAG0B,2BI2kDO,cAAc,SJ3kDL,6BAFd,4BAIlC,sDAAA,uBAAA,2BI\u002BUsC,aJ/UvB,AAAAF,gDAEf;oBAAME;uBAAN,wBAAMA,eAAA,AAAAF,\u002BBAAA,CAAA,AAAAE,yBAEI,2BADY,2BIi2CoB,wBJj2CpBA,mCAGhB;AAAAA,yDAAA,AAAAF;AAAA,wBAAA,AAAAE;AAEI,\u002BBAAA;;;AADa,\u002BBAAA,2BIqUoB,yBJrUpBA;;;;;;;AA9BhCC,mCAAAA;AAEH,eAAA,AAAAC,4BAAM,0DAAgBC,QAAO,AAAAF","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
namespace Fable.Form.Simple.Bulma.Fields
|
|
2
|
+
|
|
3
|
+
open Fable.Form
|
|
4
|
+
open Feliz
|
|
5
|
+
open Feliz.Bulma
|
|
6
|
+
open Fable.Form.Simple.Fields.Html
|
|
7
|
+
open Fable.Form.Simple.Bulma
|
|
8
|
+
|
|
9
|
+
module TextareaField =
|
|
10
|
+
|
|
11
|
+
type Field<'Values>(innerField: TextareaField.InnerField<'Values>) =
|
|
12
|
+
inherit IStandardField<'Values, string, TextareaField.Attributes>(innerField)
|
|
13
|
+
|
|
14
|
+
interface IField<'Values> with
|
|
15
|
+
|
|
16
|
+
member _.MapFieldValues(update: 'Values -> 'NewValues) : IField<'NewValues> =
|
|
17
|
+
|
|
18
|
+
Field(Field.mapValues update innerField)
|
|
19
|
+
|
|
20
|
+
override _.RenderField
|
|
21
|
+
(config: StandardRenderFieldConfig<string, TextareaField.Attributes>)
|
|
22
|
+
=
|
|
23
|
+
|
|
24
|
+
InputField.renderField
|
|
25
|
+
{
|
|
26
|
+
OnChange = config.OnChange
|
|
27
|
+
OnBlur = config.OnBlur
|
|
28
|
+
Disabled = config.Disabled
|
|
29
|
+
IsReadOnly = config.IsReadOnly
|
|
30
|
+
Value = config.Value
|
|
31
|
+
Error = config.Error
|
|
32
|
+
ShowError = config.ShowError
|
|
33
|
+
Label = config.Attributes.Label
|
|
34
|
+
InputFunc = Bulma.textarea
|
|
35
|
+
ExtraInputProps =
|
|
36
|
+
[
|
|
37
|
+
match config.Attributes.Placeholder with
|
|
38
|
+
| Some placeholder -> prop.placeholder placeholder
|
|
39
|
+
| None -> ()
|
|
40
|
+
|
|
41
|
+
match config.Attributes.AutoComplete with
|
|
42
|
+
| Some value -> prop.autoComplete value
|
|
43
|
+
| None -> ()
|
|
44
|
+
|
|
45
|
+
prop.autoFocus config.Attributes.AutoFocus
|
|
46
|
+
|
|
47
|
+
match config.Attributes.Rows with
|
|
48
|
+
| Some value -> prop.rows value
|
|
49
|
+
| None -> ()
|
|
50
|
+
|
|
51
|
+
match config.Attributes.Cols with
|
|
52
|
+
| Some value -> prop.cols value
|
|
53
|
+
| None -> ()
|
|
54
|
+
|
|
55
|
+
match config.Attributes.IsWrapHard with
|
|
56
|
+
| true -> prop.wrap.hard
|
|
57
|
+
| false -> prop.wrap.soft
|
|
58
|
+
]
|
|
59
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 Field$1 () {
|
|
13
|
+
return Field$1;
|
|
14
|
+
},
|
|
15
|
+
get Field$1_$ctor_3B5F9EAF () {
|
|
16
|
+
return Field$1_$ctor_3B5F9EAF;
|
|
17
|
+
},
|
|
18
|
+
get Field$1_$reflection () {
|
|
19
|
+
return Field$1_$reflection;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const _InputFieldfs = require("./InputField.fs.js");
|
|
23
|
+
const _react = require("react");
|
|
24
|
+
const _Util = require("@fable-org/fable-library-js/Util.js");
|
|
25
|
+
const _ElementBuildersfs = require("../Feliz.Bulma.3.0.0/ElementBuilders.fs.js");
|
|
26
|
+
const _Seq = require("@fable-org/fable-library-js/Seq.js");
|
|
27
|
+
const _Option = require("@fable-org/fable-library-js/Option.js");
|
|
28
|
+
const _Typesfs = require("./Types.fs.js");
|
|
29
|
+
const _TextareaFieldfs = require("../Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs.js");
|
|
30
|
+
const _Fieldfs = require("../Fable.Form.3.0.0/Field.fs.js");
|
|
31
|
+
const _Reflection = require("@fable-org/fable-library-js/Reflection.js");
|
|
32
|
+
class Field$1 extends _Typesfs.IStandardField$3 {
|
|
33
|
+
"Fable.Form.Simple.Bulma.IStandardField`3.RenderFieldZ43FEF6DC"(config) {
|
|
34
|
+
return (0, _InputFieldfs.renderField)(new _InputFieldfs.Config(config.OnChange, config.OnBlur, config.Disabled, config.IsReadOnly, config.Value, config.Error, config.ShowError, config.Attributes.Label, (elm)=>(0, _react.createElement)("textarea", (0, _Util.createObj)((0, _ElementBuildersfs.Helpers_combineClasses)("textarea", elm))), (0, _Seq.toList)((0, _Seq.delay)(()=>{
|
|
35
|
+
let matchValue;
|
|
36
|
+
return (0, _Seq.append)((matchValue = config.Attributes.Placeholder, matchValue == null ? (0, _Seq.empty)() : (0, _Seq.singleton)([
|
|
37
|
+
"placeholder",
|
|
38
|
+
(0, _Option.value)(matchValue)
|
|
39
|
+
])), (0, _Seq.delay)(()=>{
|
|
40
|
+
let matchValue_1;
|
|
41
|
+
return (0, _Seq.append)((matchValue_1 = config.Attributes.AutoComplete, matchValue_1 == null ? (0, _Seq.empty)() : (0, _Seq.singleton)([
|
|
42
|
+
"autoComplete",
|
|
43
|
+
(0, _Option.value)(matchValue_1)
|
|
44
|
+
])), (0, _Seq.delay)(()=>(0, _Seq.append)((0, _Seq.singleton)([
|
|
45
|
+
"autoFocus",
|
|
46
|
+
config.Attributes.AutoFocus
|
|
47
|
+
]), (0, _Seq.delay)(()=>{
|
|
48
|
+
let matchValue_2;
|
|
49
|
+
return (0, _Seq.append)((matchValue_2 = config.Attributes.Rows, matchValue_2 == null ? (0, _Seq.empty)() : (0, _Seq.singleton)([
|
|
50
|
+
"rows",
|
|
51
|
+
(0, _Option.value)(matchValue_2)
|
|
52
|
+
])), (0, _Seq.delay)(()=>{
|
|
53
|
+
let matchValue_3;
|
|
54
|
+
return (0, _Seq.append)((matchValue_3 = config.Attributes.Cols, matchValue_3 == null ? (0, _Seq.empty)() : (0, _Seq.singleton)([
|
|
55
|
+
"cols",
|
|
56
|
+
(0, _Option.value)(matchValue_3)
|
|
57
|
+
])), (0, _Seq.delay)(()=>config.Attributes.IsWrapHard ? (0, _Seq.singleton)([
|
|
58
|
+
"wrap",
|
|
59
|
+
"hard"
|
|
60
|
+
]) : (0, _Seq.singleton)([
|
|
61
|
+
"wrap",
|
|
62
|
+
"soft"
|
|
63
|
+
])));
|
|
64
|
+
}));
|
|
65
|
+
}))));
|
|
66
|
+
}));
|
|
67
|
+
}))));
|
|
68
|
+
}
|
|
69
|
+
MapFieldValues(update) {
|
|
70
|
+
const _ = this;
|
|
71
|
+
return Field$1_$ctor_3B5F9EAF((0, _Fieldfs.mapValues)(update, _.innerField_1));
|
|
72
|
+
}
|
|
73
|
+
constructor(innerField){
|
|
74
|
+
super(innerField);
|
|
75
|
+
this.innerField_1 = innerField;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function Field$1_$reflection(gen0) {
|
|
79
|
+
return (0, _Reflection.class_type)("Fable.Form.Simple.Bulma.Fields.TextareaField.Field`1", [
|
|
80
|
+
gen0
|
|
81
|
+
], Field$1, (0, _Typesfs.IStandardField$3_$reflection)(gen0, _Reflection.string_type, (0, _TextareaFieldfs.TextareaFieldModule_Attributes_$reflection)()));
|
|
82
|
+
}
|
|
83
|
+
function Field$1_$ctor_3B5F9EAF(innerField) {
|
|
84
|
+
return new Field$1(innerField);
|
|
85
|
+
} //# sourceMappingURL=TextareaField.fs.ts.map
|
|
86
|
+
|
|
87
|
+
//# sourceMappingURL=TextareaField.fs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs.ts","../Feliz.2.8.0/Interop.fs","../Feliz.2.8.0/Html.fs","../Feliz.Bulma.3.0.0/ElementBuilders.fs","../Feliz.Bulma.3.0.0/Bulma.fs","../Feliz.2.8.0/Properties.fs"],"names":["innerField","config","elm","matchValue","_","``.ctor``","update"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAuBY,yBAAA,EACI,IAAA,oBAAA,CACeC,OAAAA,QAAAA,EACFA,OAAAA,MAAAA,EACEA,OAAAA,QAAAA,EACEA,OAAAA,UAAAA,EACLA,OAAAA,KAAAA,EACAA,OAAAA,KAAAA,EACIA,OAAAA,SAAAA,EACJA,OAAAA,UAAAA,CAAAA,KAAAA,EAAAA,CAAAA,UCvBwC,oBAAA,EC6uBP,YAAA,IAAA,eAAA,ECprBc,6CAAA,EC6LF,YJ9NzCC,YAER,WAAA,MACI,UAAA,EAAA;gBAAMC;uBAAN,WAAA,GAAMA,aAAAF,OAAAA,UAAAA,CAAAA,WAAAA,EAAA,AAAAE,cAAAA,WAEI,UAAA,UADY,cAAA,EAAA;gBKq2CoB;gBAAA,IAAA,aAAA,ELr2CpBA;aAAAA,CAAAA,OAGtB,UAAA,EAAA;oBAAMA;2BAAN,WAAA,GAAMA,eAAAF,OAAAA,UAAAA,CAAAA,YAAAA,EAAA,AAAAE,gBAAAA,WAEI,UAAA,UADM,cAAA,EAAA;oBKyU2B;oBAAA,IAAA,aAAA,ELzU3BA;iBAAAA,CAAAA,OAGhB,UAAA,EAAA,QAAA,WAAA,EAAA,kBAAA,EAAA;wBKyUsC;wBLzUvBF,OAAAA,UAAAA,CAAAA,SAAAA;qBAAAA,OAEf,UAAA,EAAA;4BAAME;mCAAN,WAAA,GAAMA,eAAAF,OAAAA,UAAAA,CAAAA,IAAAA,EAAAE,AAAA,gBAAAA,WAEI,UAAA,UADM,cAAA,EAAA;4BK09CgB;4BAAA,IAAA,aAAA,EL19ChBA;yBAAAA,CAAAA,GAGhB,cAAA,EAAA;gCAAMA;uCAAN,WAAA,EAAMA,gBAAAF,OAAAA,UAAAA,CAAAA,IAAAA,EAAA,AAAAE,gBAAAA,WAEI,UAAA,UADM,cAAA,EAAA;gCKqZgB;gCAAA,IAAA,aAAA,ELrZhBA;6BAAAA,CAAAA,OAGV,UAAA,EAAA,IAAAF,OAAAA,UAAAA,CAAAA,UAAAA,GACI,kBAAA,EAAA;oCKy5Ha;oCAAO;iCAAA,QLx5HnB,cAAA,EAAA;oCKo5HY;oCAAO;iCAAA;;;;;;;QL77HvCG,MAAAA,IAAAA,IAAAA;QAEH,OAAAC,2BAAM,kBAAA,EAAgBC,QAAOF,EAAAA,YAAAA;;;cAN6BJ;QADlD,IAAA,CAAA,YAAA,GAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["./TextareaField.fs","../Feliz.2.8.0/Interop.fs","../Feliz.2.8.0/Html.fs","../Feliz.Bulma.3.0.0/ElementBuilders.fs","../Feliz.Bulma.3.0.0/Bulma.fs","../Feliz.2.8.0/Properties.fs"],"names":["innerField","config","elm","matchValue","_","\u0060\u0060.ctor\u0060\u0060","update"],"mappings":";;;;;;;;;;;;;;;;;;cAW0EA;AADlD,4BAAAA;;;eAaZ,YACI,WACe,AAAAC,iBACF,AAAAA,eACE,AAAAA,iBACE,AAAAA,mBACL,AAAAA,cACA,AAAAA,cACI,AAAAA,kBACJ,AAAAA,4ECvBwC,mBC6uBP,sBCprBc,uBC6LF,YJ9NzCC,QAER,uBACI;gBAAMC;mBAAN,wBAAMA,aAAA,AAAAF,\u002BBAAA,CAAA,AAAAE,uBAEI,2BADY,2BKq2CoB,wBLr2CpBA,iCAGtB;oBAAMA;uBAAN,wBAAMA,eAAA,AAAAF,gCAAA,CAAA,AAAAE,yBAEI,2BADM,2BKyU2B,yBLzU3BA,mCAGhB,sDAAA,uBAAA,2BKyUsC,aLzUvB,AAAAF,gDAEf;wBAAME;2BAAN,wBAAMA,eAAA,AAAAF,wBAAA,CAAA,AAAAE,yBAEI,2BADM,2BK09CgB,iBL19ChBA,mCAGhB;4BAAMA;\u002BBAAN,wBAAMA,eAAA,AAAAF,wBAAA,CAAA,AAAAE,yBAEI,2BADM,2BKqZgB,iBLrZhBA,mCAGV,uDAAA,AAAAF,\u002BBACI,2BKy5Ha,QAAO,4BLx5HnB,2BKo5HY,QAAO;;;;;;;AL77HvCG,mCAAAA;AAEH,eAAA,AAAAC,2BAAM,8DAAgBC,QAAO,AAAAF","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
namespace Fable.Form.Simple.Bulma.Fields
|
|
2
|
+
|
|
3
|
+
open Fable.Form
|
|
4
|
+
open Feliz
|
|
5
|
+
open Feliz.Bulma
|
|
6
|
+
open Fable.Form.Simple.Fields.Html
|
|
7
|
+
open Fable.Form.Simple.Bulma
|
|
8
|
+
|
|
9
|
+
module TimeField =
|
|
10
|
+
|
|
11
|
+
type Field<'Values>(innerField: TimeField.InnerField<'Values>) =
|
|
12
|
+
inherit IStandardField<'Values, string, TimeField.Attributes>(innerField)
|
|
13
|
+
|
|
14
|
+
interface IField<'Values> with
|
|
15
|
+
|
|
16
|
+
member _.MapFieldValues(update: 'Values -> 'NewValues) : IField<'NewValues> =
|
|
17
|
+
|
|
18
|
+
Field(Field.mapValues update innerField)
|
|
19
|
+
|
|
20
|
+
override _.RenderField(config: StandardRenderFieldConfig<string, TimeField.Attributes>) =
|
|
21
|
+
InputField.renderField
|
|
22
|
+
{
|
|
23
|
+
OnChange = config.OnChange
|
|
24
|
+
OnBlur = config.OnBlur
|
|
25
|
+
Disabled = config.Disabled
|
|
26
|
+
IsReadOnly = config.IsReadOnly
|
|
27
|
+
Value = config.Value
|
|
28
|
+
Error = config.Error
|
|
29
|
+
ShowError = config.ShowError
|
|
30
|
+
Label = config.Attributes.Label
|
|
31
|
+
InputFunc = Bulma.input.text
|
|
32
|
+
ExtraInputProps =
|
|
33
|
+
[
|
|
34
|
+
prop.autoFocus config.Attributes.AutoFocus
|
|
35
|
+
|
|
36
|
+
match config.Attributes.Placeholder with
|
|
37
|
+
| Some placeholder -> prop.placeholder placeholder
|
|
38
|
+
| None -> ()
|
|
39
|
+
|
|
40
|
+
match config.Attributes.AutoComplete with
|
|
41
|
+
| Some autoComplete -> prop.autoComplete autoComplete
|
|
42
|
+
| None -> ()
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 Field$1 () {
|
|
13
|
+
return Field$1;
|
|
14
|
+
},
|
|
15
|
+
get Field$1_$ctor_1236A5B0 () {
|
|
16
|
+
return Field$1_$ctor_1236A5B0;
|
|
17
|
+
},
|
|
18
|
+
get Field$1_$reflection () {
|
|
19
|
+
return Field$1_$reflection;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const _InputFieldfs = require("./InputField.fs.js");
|
|
23
|
+
const _react = require("react");
|
|
24
|
+
const _Util = require("@fable-org/fable-library-js/Util.js");
|
|
25
|
+
const _ElementBuildersfs = require("../Feliz.Bulma.3.0.0/ElementBuilders.fs.js");
|
|
26
|
+
const _List = require("@fable-org/fable-library-js/List.js");
|
|
27
|
+
const _Seq = require("@fable-org/fable-library-js/Seq.js");
|
|
28
|
+
const _Option = require("@fable-org/fable-library-js/Option.js");
|
|
29
|
+
const _Typesfs = require("./Types.fs.js");
|
|
30
|
+
const _TimeFieldfs = require("../Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs.js");
|
|
31
|
+
const _Fieldfs = require("../Fable.Form.3.0.0/Field.fs.js");
|
|
32
|
+
const _Reflection = require("@fable-org/fable-library-js/Reflection.js");
|
|
33
|
+
class Field$1 extends _Typesfs.IStandardField$3 {
|
|
34
|
+
"Fable.Form.Simple.Bulma.IStandardField`3.RenderFieldZ43FEF6DC"(config) {
|
|
35
|
+
return (0, _InputFieldfs.renderField)(new _InputFieldfs.Config(config.OnChange, config.OnBlur, config.Disabled, config.IsReadOnly, config.Value, config.Error, config.ShowError, config.Attributes.Label, (props)=>(0, _react.createElement)("input", (0, _Util.createObj)((0, _List.cons)([
|
|
36
|
+
"type",
|
|
37
|
+
"text"
|
|
38
|
+
], (0, _ElementBuildersfs.Helpers_combineClasses)("input", props)))), (0, _Seq.toList)((0, _Seq.delay)(()=>(0, _Seq.append)((0, _Seq.singleton)([
|
|
39
|
+
"autoFocus",
|
|
40
|
+
config.Attributes.AutoFocus
|
|
41
|
+
]), (0, _Seq.delay)(()=>{
|
|
42
|
+
let matchValue;
|
|
43
|
+
return (0, _Seq.append)((matchValue = config.Attributes.Placeholder, matchValue == null ? (0, _Seq.empty)() : (0, _Seq.singleton)([
|
|
44
|
+
"placeholder",
|
|
45
|
+
(0, _Option.value)(matchValue)
|
|
46
|
+
])), (0, _Seq.delay)(()=>{
|
|
47
|
+
const matchValue_1 = config.Attributes.AutoComplete;
|
|
48
|
+
if (matchValue_1 == null) {
|
|
49
|
+
return (0, _Seq.empty)();
|
|
50
|
+
} else {
|
|
51
|
+
return (0, _Seq.singleton)([
|
|
52
|
+
"autoComplete",
|
|
53
|
+
(0, _Option.value)(matchValue_1)
|
|
54
|
+
]);
|
|
55
|
+
}
|
|
56
|
+
}));
|
|
57
|
+
}))))));
|
|
58
|
+
}
|
|
59
|
+
MapFieldValues(update) {
|
|
60
|
+
const _ = this;
|
|
61
|
+
return Field$1_$ctor_1236A5B0((0, _Fieldfs.mapValues)(update, _.innerField_1));
|
|
62
|
+
}
|
|
63
|
+
constructor(innerField){
|
|
64
|
+
super(innerField);
|
|
65
|
+
this.innerField_1 = innerField;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function Field$1_$reflection(gen0) {
|
|
69
|
+
return (0, _Reflection.class_type)("Fable.Form.Simple.Bulma.Fields.TimeField.Field`1", [
|
|
70
|
+
gen0
|
|
71
|
+
], Field$1, (0, _Typesfs.IStandardField$3_$reflection)(gen0, _Reflection.string_type, (0, _TimeFieldfs.TimeFieldModule_Attributes_$reflection)()));
|
|
72
|
+
}
|
|
73
|
+
function Field$1_$ctor_1236A5B0(innerField) {
|
|
74
|
+
return new Field$1(innerField);
|
|
75
|
+
} //# sourceMappingURL=TimeField.fs.ts.map
|
|
76
|
+
|
|
77
|
+
//# sourceMappingURL=TimeField.fs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs.ts","../Feliz.2.8.0/Interop.fs","../Feliz.2.8.0/Html.fs","../Feliz.Bulma.3.0.0/ElementBuilders.fs","../Feliz.2.8.0/Properties.fs","../Feliz.Bulma.3.0.0/Bulma.fs"],"names":["innerField","config","props","matchValue","_","``.ctor``","update"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAoBY,yBAAA,EACI,IAAA,oBAAA,CACeC,OAAAA,QAAAA,EACFA,OAAAA,MAAAA,EACEA,OAAAA,QAAAA,EACEA,OAAAA,UAAAA,EACLA,OAAAA,KAAAA,EACAA,OAAAA,KAAAA,EACIA,OAAAA,SAAAA,EACJA,OAAAA,UAAAA,CAAAA,KAAAA,EAAAA,CAAAA,YCpBwC,oBAAA,EC0ZV,SAAA,IAAA,eAAA,MCpWtC,UAAA,EAAA;gBCg4H+B;gBAAO;aAAA,MDh4H/B,yCAAA,EEs3BmD,SLv5B9CC,eAER,WAAA,MACI,UAAA,EAAA,QAAA,WAAA,MAAA,cAAA,EAAA;gBIoVsC;gBJpVvBD,OAAAA,UAAAA,CAAAA,SAAAA;aAAAA,OAEf,UAAA,EAAA;oBAAME;2BAAN,WAAA,GAAMA,aAAAF,OAAAA,UAAAA,CAAAA,WAAAA,EAAA,AAAAE,cAAAA,WAEI,UAAA,UADY,cAAA,EAAA;oBIs2CoB;oBAAA,IAAA,aAAA,EJt2CpBA;iBAAAA,CAAAA,OAGhB,UAAA,EAAA;oBAAAA,MAAAA,eAAAF,OAAAA,UAAAA,CAAAA,YAAAA;oBAAA,IAAAE,gBAAAA,MAAAA;wBAEI,OAAA,cAAA;;wBADa,WAAA,cAAA,EAAA;4BI0UoB;4BAAA,IAAA,aAAA,EJ1UpBA;yBAAAA;;;;;;QAzBhCC,MAAAA,IAAAA,IAAAA;QAEH,OAAAC,uBAAM,sBAAA,EAAgBC,QAAOF,EAAAA,YAAAA;;;cANyBJ;QAD9C,IAAA,CAAA,YAAA,GAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["./TimeField.fs","../Feliz.2.8.0/Interop.fs","../Feliz.2.8.0/Html.fs","../Feliz.Bulma.3.0.0/ElementBuilders.fs","../Feliz.2.8.0/Properties.fs","../Feliz.Bulma.3.0.0/Bulma.fs"],"names":["innerField","config","props","matchValue","_","\u0060\u0060.ctor\u0060\u0060","update"],"mappings":";;;;;;;;;;;;;;;;;cAWsEA;AAD9C,4BAAAA;;;eAUZ,YACI,WACe,AAAAC,iBACF,AAAAA,eACE,AAAAA,iBACE,AAAAA,mBACL,AAAAA,cACA,AAAAA,cACI,AAAAA,kBACJ,AAAAA,8ECpBwC,mBC0ZV,mBCpWtC,MCg4H\u002BB,QAAO,0BDh4H/B,uBEs3BmD,SLv5B9CC,WAER,uBACI,sDAAA,uBAAA,2BIoVsC,aJpVvB,AAAAD,gDAEf;gBAAME;mBAAN,wBAAMA,aAAA,AAAAF,\u002BBAAA,CAAA,AAAAE,uBAEI,2BADY,2BIs2CoB,uBJt2CpBA,iCAGhB;AAAAA,qDAAA,AAAAF;AAAA,oBAAA,AAAAE;AAEI,2BAAA;;;AADa,2BAAA,2BI0UoB,wBJ1UpBA;;;;;;AAzBhCC,mCAAAA;AAEH,eAAA,AAAAC,2BAAM,0DAAgBC,QAAO,AAAAF","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
namespace Fable.Form.Simple.Bulma
|
|
2
|
+
|
|
3
|
+
open Feliz
|
|
4
|
+
open Fable.Form
|
|
5
|
+
open Fable.Form.Simple
|
|
6
|
+
|
|
7
|
+
/// <summary>
|
|
8
|
+
/// DUs used to represents the different of Field supported by Fable.Form.Studio
|
|
9
|
+
/// </summary>
|
|
10
|
+
type IField<'Values> =
|
|
11
|
+
|
|
12
|
+
abstract MapFieldValues: update: ('Values -> 'NewValues) -> IField<'NewValues>
|
|
13
|
+
|
|
14
|
+
and FilledField<'Values> = Base.FilledField<IField<'Values>>
|
|
15
|
+
|
|
16
|
+
/// <summary>
|
|
17
|
+
/// Represents a form using Fable.Form.Studio representation
|
|
18
|
+
/// </summary>
|
|
19
|
+
type Form<'Values, 'Output> = Base.Form<'Values, 'Output, IField<'Values>>
|
|
20
|
+
|
|
21
|
+
[<NoComparison; NoEquality>]
|
|
22
|
+
type StandardRenderFieldConfig<'Value, 'Attributes> =
|
|
23
|
+
{
|
|
24
|
+
OnChange: 'Value -> unit
|
|
25
|
+
OnBlur: (unit -> unit) option
|
|
26
|
+
Disabled: bool
|
|
27
|
+
IsReadOnly: bool
|
|
28
|
+
Value: 'Value
|
|
29
|
+
Error: Error.Error option
|
|
30
|
+
ShowError: bool
|
|
31
|
+
Attributes: 'Attributes
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
(***
|
|
35
|
+
|
|
36
|
+
Fable cannot type test against interfaces, so we need to use abstract classes.
|
|
37
|
+
|
|
38
|
+
However, when type testing against classes:
|
|
39
|
+
|
|
40
|
+
```fs
|
|
41
|
+
match field.State with
|
|
42
|
+
| :? IStandardField<'Values, 'Value, 'Attributes> as standardField ->
|
|
43
|
+
// Do something with standardField
|
|
44
|
+
|
|
45
|
+
| :? IGenericField<'Values> as genericField ->
|
|
46
|
+
// Do something with genericField
|
|
47
|
+
|
|
48
|
+
| _ ->
|
|
49
|
+
// Invalid type
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Fable generate a warning 'Generic args are ignored in type testing'.
|
|
53
|
+
Unfortunately, we cannot suppress this warning, and it is emitted once per compilation.
|
|
54
|
+
|
|
55
|
+
This means that any Fable.Form.Simple.Bulma user will see this warning...
|
|
56
|
+
|
|
57
|
+
To work around this issue, it possible to dynimcally cast the instance:
|
|
58
|
+
|
|
59
|
+
```fs
|
|
60
|
+
try
|
|
61
|
+
let standardField = field.State :?> IStandardField<'Values, 'Value, 'Attributes>
|
|
62
|
+
|
|
63
|
+
let attributes = standardField.InnerField.Attributes
|
|
64
|
+
|
|
65
|
+
let config = ...
|
|
66
|
+
|
|
67
|
+
standardField.RenderField config
|
|
68
|
+
|
|
69
|
+
with _ ->
|
|
70
|
+
try
|
|
71
|
+
let genericField = field.State :?> IGenericField<'Values>
|
|
72
|
+
|
|
73
|
+
genericField.RenderField dispatch fieldConfig field
|
|
74
|
+
|
|
75
|
+
with _ ->
|
|
76
|
+
// Invalid type
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
The code above will not generate any warning, and works if we call an API that is specific to
|
|
80
|
+
the casted type.
|
|
81
|
+
|
|
82
|
+
In the case above, `InnerField` only exists in `IStandardField`, so if we get an instance of `IGenericField`,
|
|
83
|
+
we will get an exception which then have a chance to handle, and so on.
|
|
84
|
+
|
|
85
|
+
However, I am not a fan of this approach, as it feels dirty to use exceptions for control flow.
|
|
86
|
+
|
|
87
|
+
The solution I found, is to use a DU that we get access to via implementing a class `IRendererField`.
|
|
88
|
+
|
|
89
|
+
And then, we make the abstract class `IStandardField` and `IGenericField` inherit from `IRendererField`
|
|
90
|
+
and specify the type of field renderer they are.
|
|
91
|
+
|
|
92
|
+
This makes the code feel cleaner, emit no warning and closer to type testing against classes/interfaces.
|
|
93
|
+
|
|
94
|
+
```fsharp
|
|
95
|
+
try
|
|
96
|
+
let rendererField = field.State :?> IRendererField
|
|
97
|
+
|
|
98
|
+
match rendererField.FieldRendererType with
|
|
99
|
+
| FieldRendererType.Standard ->
|
|
100
|
+
|
|
101
|
+
let standardField = field.State :?> IStandardField<'Values, 'Value, 'Attributes>
|
|
102
|
+
|
|
103
|
+
let attributes = standardField.InnerField.Attributes
|
|
104
|
+
|
|
105
|
+
let config = ...
|
|
106
|
+
|
|
107
|
+
standardField.RenderField config
|
|
108
|
+
|
|
109
|
+
| FieldRendererType.Generic ->
|
|
110
|
+
let genericField = field.State :?> IGenericField<'Values>
|
|
111
|
+
|
|
112
|
+
genericField.RenderField dispatch fieldConfig field
|
|
113
|
+
|
|
114
|
+
with _ ->
|
|
115
|
+
failwith "Field not implemented, please implement the field `IStandardField<'Values>` or `IGenericField<'Values>`"
|
|
116
|
+
```
|
|
117
|
+
*)
|
|
118
|
+
|
|
119
|
+
[<RequireQualifiedAccess>]
|
|
120
|
+
[<Fable.Core.EraseAttribute>]
|
|
121
|
+
type FieldRendererType =
|
|
122
|
+
| Standard
|
|
123
|
+
| Generic
|
|
124
|
+
|
|
125
|
+
type IRendererField(rendererType) =
|
|
126
|
+
member _.FieldRendererType: FieldRendererType = rendererType
|
|
127
|
+
|
|
128
|
+
[<AbstractClass>]
|
|
129
|
+
type IStandardField<'Values, 'Value, 'Attributes when 'Attributes :> Field.IAttributes>
|
|
130
|
+
(innerField: Field.Field<'Attributes, 'Value, 'Values>)
|
|
131
|
+
=
|
|
132
|
+
inherit IRendererField(FieldRendererType.Standard)
|
|
133
|
+
|
|
134
|
+
abstract RenderField: StandardRenderFieldConfig<'Value, 'Attributes> -> ReactElement
|
|
135
|
+
|
|
136
|
+
member _.InnerField: Field.Field<'Attributes, 'Value, 'Values> = innerField
|
|
137
|
+
|
|
138
|
+
[<AbstractClass>]
|
|
139
|
+
type IGenericField<'Values>() =
|
|
140
|
+
inherit IRendererField(FieldRendererType.Generic)
|
|
141
|
+
|
|
142
|
+
abstract RenderField:
|
|
143
|
+
Form.View.FieldConfig<'Values, 'Msg> -> FilledField<'Values> -> ReactElement
|