@f1studio/form-spec 5.0.0-alpha.149 → 5.0.0-alpha.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.d.ts.map +1 -1
- package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.d.ts +5 -3
- package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.d.ts.map +1 -1
- package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.d.ts +19 -0
- package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.d.ts.map +1 -0
- package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.d.ts +39 -2
- package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.d.ts.map +1 -1
- package/FormSpec.FS/Interop/Facade/BlueprintFilledForm.d.ts +16 -0
- package/FormSpec.FS/Interop/Facade/BlueprintFilledForm.d.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js +3 -3
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js +2 -2
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js +23 -21
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js +16 -7
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.js +580 -0
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js +199 -8
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.js +25 -1
- package/FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.js.map +1 -1
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.js.map +1 -1
- package/README.md +7 -7
- package/package.json +13 -15
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.ts +3 -3
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts +3 -3
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.ts +1 -1
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts +25 -23
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.ts +19 -13
- package/src/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.ts +545 -0
- package/src/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts +120 -14
- package/src/FormSpec.FS/Interop/Facade/BlueprintFilledForm.ts +29 -1
- package/FormSpec.TS/FormSpec.FS/BitmaskHelpers.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/BlueprintValidation.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Components/HelloComponent.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Designer.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/FormSpec.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/FormSpecValues.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Helpers.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRAdapter.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFormSpecValidator.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSectioning.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSemanticReportBuilder.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRStepsBuilder.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateMapper.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/FormSpecToCoreMRInsert.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/FormSystemAdapter.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/ReactHookForm/ReactHookFormAdapter.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/ReactHookForm/ReactHookFormTypes.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/CoreMRTypes.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateDecodeTypes.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Interfaces.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Interop/Facade/FormAnswersGate.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Logging/LogTypes.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Migrator.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/PathwayDataExtractor.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/PathwayExecutor.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/PathwayValidator.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/PluginInterface.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Prelude.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Provenance.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Renderers/MermaidRenderer.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Renderers/PathwayRenderers.ts.map +0 -1
- package/FormSpec.TS/PluginRegistration.ts.map +0 -1
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.ts.map +0 -1
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.ts.map +0 -1
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Extra.ts.map +0 -1
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Types.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs +0 -511
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs +0 -16
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs +0 -50
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Fable.Form.fableproj +0 -28
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs +0 -24
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Fable.Form.Simple.fableproj +0 -31
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs +0 -178
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs +0 -47
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs +0 -49
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs +0 -52
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs +0 -54
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs +0 -48
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Fable.Form.Simple.Bulma.fableproj +0 -53
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs +0 -132
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs +0 -537
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs +0 -361
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs +0 -52
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs +0 -246
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs +0 -52
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs +0 -56
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs +0 -46
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs +0 -51
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs +0 -49
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs +0 -60
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs +0 -79
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs +0 -44
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs +0 -49
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs +0 -59
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs +0 -44
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs +0 -143
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs +0 -36
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs +0 -49
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs +0 -67
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs +0 -70
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs +0 -76
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/Fable.Form.Simple.Fields.Html.fableproj +0 -45
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs +0 -105
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs +0 -66
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs +0 -72
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs +0 -102
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs +0 -83
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs +0 -83
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs +0 -63
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs +0 -83
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs +0 -92
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs +0 -108
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +0 -57
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +0 -20
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs +0 -766
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +0 -31
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Extensions.fs +0 -17
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs +0 -152
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Types.fableproj +0 -28
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs +0 -218
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.Types.fableproj +0 -27
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs +0 -82
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/BorderStyle.fs +0 -59
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Colors.fs +0 -154
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Colors.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs +0 -52
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Feliz.fableproj +0 -53
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Fonts.fs +0 -240
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/GridTypes.fs +0 -24
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs +0 -11
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Html.fs +0 -826
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs +0 -176
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs +0 -29
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Key.fs +0 -65
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Key.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Length.fs +0 -145
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Locale.fs +0 -876
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Properties.fs +0 -4085
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Properties.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/React.fs +0 -494
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactDOM.fs +0 -25
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactDOM.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactInterop.fs +0 -20
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactTypes.fs +0 -42
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactTypes.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/StyleTypes.fs +0 -57
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/StyleTypes.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Styles.fs +0 -6378
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Svg.fs +0 -1455
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Svg.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/TextDecorationLine.fs +0 -13
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/TextDecorationStyle.fs +0 -33
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Transform.fs +0 -181
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/TransformOrigin.fs +0 -17
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/TransitionProperty.fs +0 -162
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/TransitionTimingFunction.fs +0 -62
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Types.fs +0 -13
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Types.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Bulma.fs +0 -990
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs +0 -179
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Feliz.Bulma.fableproj +0 -32
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs +0 -1986
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs +0 -7
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/PropertyBuilders.fs +0 -8
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Exports.fs +0 -14
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Glutinum.Feliz.ReactSignaturePadWrapper.fableproj +0 -18
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Interop.fs +0 -6
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/ReactSignaturePadWrapper.fs +0 -32
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs +0 -3
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/project_cracked.json +0 -1
- package/FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.ts.map +0 -1
- package/FormSpec.TS/plugins/allergyfinder/src/AllergyLogic.ts.map +0 -1
- package/FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.ts.map +0 -1
- package/FormSpec.TS/plugins/bmi/src/BMIField.ts.map +0 -1
- package/FormSpec.TS/plugins/demographics/src/DemographicsField.ts.map +0 -1
- package/FormSpec.TS/plugins/likert/src/LikertField.ts.map +0 -1
- package/FormSpec.TS/plugins/signature/src/SignatureField.ts.map +0 -1
- package/FormSpec.TS/plugins/vitals/src/VitalsField.ts.map +0 -1
- package/FormSpec.TS/plugins/vitals/src/VitalsLogic.ts.map +0 -1
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Project Sdk="Microsoft.NET.Sdk">
|
|
3
|
-
<PropertyGroup>
|
|
4
|
-
<TargetFramework>netstandard2.1</TargetFramework>
|
|
5
|
-
<Description>
|
|
6
|
-
Contains the global logic of how a form should behave.
|
|
7
|
-
|
|
8
|
-
It can be used has a standalone library if you want to build your own fields or
|
|
9
|
-
you can use Fable.Form.Simple.Bulma to have a ready to use fields made for Bulma CSS framework.
|
|
10
|
-
</Description>
|
|
11
|
-
<FablePackageType>library</FablePackageType>
|
|
12
|
-
<PackageTags>fable-javascript</PackageTags>
|
|
13
|
-
</PropertyGroup>
|
|
14
|
-
<ItemGroup>
|
|
15
|
-
<Compile Include="Form.fs" />
|
|
16
|
-
</ItemGroup>
|
|
17
|
-
<ItemGroup>
|
|
18
|
-
<ProjectReference Include="..\Fable.Form\Fable.Form.fsproj" />
|
|
19
|
-
</ItemGroup>
|
|
20
|
-
<ItemGroup>
|
|
21
|
-
<PackageReference Include="EasyBuild.PackageReleaseNotes.Tasks">
|
|
22
|
-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
23
|
-
<PrivateAssets>all</PrivateAssets>
|
|
24
|
-
</PackageReference>
|
|
25
|
-
<PackageReference Include="Fable.Package.SDK">
|
|
26
|
-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
27
|
-
<PrivateAssets>all</PrivateAssets>
|
|
28
|
-
</PackageReference>
|
|
29
|
-
<PackageReference Include="FSharp.Core" />
|
|
30
|
-
</ItemGroup>
|
|
31
|
-
</Project>
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
namespace Fable.Form.Simple
|
|
2
|
-
|
|
3
|
-
open Fable.Form
|
|
4
|
-
|
|
5
|
-
[<RequireQualifiedAccess>]
|
|
6
|
-
module Form =
|
|
7
|
-
|
|
8
|
-
module View =
|
|
9
|
-
|
|
10
|
-
[<NoEquality; NoComparison>]
|
|
11
|
-
type OnSubmit = OnSubmit of (unit -> unit)
|
|
12
|
-
|
|
13
|
-
type State =
|
|
14
|
-
| Idle
|
|
15
|
-
| Loading
|
|
16
|
-
| ReadOnly
|
|
17
|
-
| Error of string
|
|
18
|
-
| Success of string
|
|
19
|
-
|
|
20
|
-
type ErrorTracking =
|
|
21
|
-
| ErrorTracking of
|
|
22
|
-
{|
|
|
23
|
-
ShowAllErrors: bool
|
|
24
|
-
ShowFieldError: Set<string>
|
|
25
|
-
|}
|
|
26
|
-
|
|
27
|
-
type Model<'Values> =
|
|
28
|
-
{
|
|
29
|
-
Values: 'Values
|
|
30
|
-
State: State
|
|
31
|
-
ErrorTracking: ErrorTracking
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
type Validation =
|
|
35
|
-
| ValidateOnBlur
|
|
36
|
-
| ValidateOnSubmit
|
|
37
|
-
|
|
38
|
-
[<RequireQualifiedAccess; NoComparison; NoEquality>]
|
|
39
|
-
type Action<'ViewNode> =
|
|
40
|
-
| SubmitOnly of string
|
|
41
|
-
| Custom of (State -> 'ViewNode)
|
|
42
|
-
|
|
43
|
-
[<NoComparison; NoEquality>]
|
|
44
|
-
type ViewConfig<'Values, 'Output, 'ViewNode> =
|
|
45
|
-
{
|
|
46
|
-
OnChange: Model<'Values> -> unit
|
|
47
|
-
OnSubmit: 'Output -> unit
|
|
48
|
-
Action: Action<'ViewNode>
|
|
49
|
-
Validation: Validation
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
[<NoComparison; NoEquality>]
|
|
53
|
-
type FormConfig<'Output, 'ViewNode> =
|
|
54
|
-
{
|
|
55
|
-
OnSubmit: OnSubmit option
|
|
56
|
-
State: State
|
|
57
|
-
Action: Action<'ViewNode>
|
|
58
|
-
Fields: 'ViewNode list
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
let idle (values: 'Values) =
|
|
62
|
-
{
|
|
63
|
-
Values = values
|
|
64
|
-
State = Idle
|
|
65
|
-
ErrorTracking =
|
|
66
|
-
ErrorTracking
|
|
67
|
-
{|
|
|
68
|
-
ShowAllErrors = false
|
|
69
|
-
ShowFieldError = Set.empty
|
|
70
|
-
|}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
let setLoading (formModel: Model<'Values>) =
|
|
74
|
-
{ formModel with
|
|
75
|
-
State = Loading
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
[<NoComparison; NoEquality>]
|
|
79
|
-
type FieldConfig<'Values, 'Value> =
|
|
80
|
-
{
|
|
81
|
-
OnChange: 'Values -> unit
|
|
82
|
-
OnBlur: (string -> unit) option
|
|
83
|
-
Disabled: bool
|
|
84
|
-
IsReadOnly: bool
|
|
85
|
-
ShowError: string -> bool
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
let errorToString (error: Error.Error) =
|
|
89
|
-
match error with
|
|
90
|
-
| Error.RequiredFieldIsEmpty -> "This field is required"
|
|
91
|
-
|
|
92
|
-
| Error.ValidationFailed validationError -> validationError
|
|
93
|
-
|
|
94
|
-
| Error.External externalError -> externalError
|
|
95
|
-
|
|
96
|
-
let custom
|
|
97
|
-
(viewConfig: ViewConfig<'Values, 'Output, 'ViewNode>)
|
|
98
|
-
(renderForm: FormConfig<'Output, 'ViewNode> -> 'ViewNode)
|
|
99
|
-
(renderField: FieldConfig<'Values, 'Output> -> Base.FilledField<'Field> -> 'ViewNode)
|
|
100
|
-
(form: Base.Form<'Values, 'Output, 'Field>)
|
|
101
|
-
(model: Model<'Values>)
|
|
102
|
-
=
|
|
103
|
-
|
|
104
|
-
let (fields, result) =
|
|
105
|
-
let res = Base.fill form model.Values
|
|
106
|
-
|
|
107
|
-
res.Fields, res.Result
|
|
108
|
-
|
|
109
|
-
let (ErrorTracking errorTracking) = model.ErrorTracking
|
|
110
|
-
|
|
111
|
-
let onSubmit =
|
|
112
|
-
match result with
|
|
113
|
-
| Ok msg ->
|
|
114
|
-
if model.State = Loading then
|
|
115
|
-
None
|
|
116
|
-
|
|
117
|
-
else
|
|
118
|
-
(fun () -> viewConfig.OnSubmit msg) |> OnSubmit |> Some
|
|
119
|
-
|
|
120
|
-
| Result.Error _ ->
|
|
121
|
-
if errorTracking.ShowAllErrors then
|
|
122
|
-
None
|
|
123
|
-
|
|
124
|
-
else
|
|
125
|
-
fun () ->
|
|
126
|
-
viewConfig.OnChange
|
|
127
|
-
{ model with
|
|
128
|
-
ErrorTracking =
|
|
129
|
-
ErrorTracking
|
|
130
|
-
{| errorTracking with
|
|
131
|
-
ShowAllErrors = true
|
|
132
|
-
|}
|
|
133
|
-
}
|
|
134
|
-
|> OnSubmit
|
|
135
|
-
|> Some
|
|
136
|
-
|
|
137
|
-
let onBlur =
|
|
138
|
-
match viewConfig.Validation with
|
|
139
|
-
| ValidateOnSubmit -> None
|
|
140
|
-
|
|
141
|
-
| ValidateOnBlur ->
|
|
142
|
-
Some(fun label ->
|
|
143
|
-
viewConfig.OnChange
|
|
144
|
-
{ model with
|
|
145
|
-
ErrorTracking =
|
|
146
|
-
ErrorTracking
|
|
147
|
-
{| errorTracking with
|
|
148
|
-
ShowFieldError =
|
|
149
|
-
Set.add label errorTracking.ShowFieldError
|
|
150
|
-
|}
|
|
151
|
-
}
|
|
152
|
-
)
|
|
153
|
-
|
|
154
|
-
let showError (label: string) =
|
|
155
|
-
errorTracking.ShowAllErrors || Set.contains label errorTracking.ShowFieldError
|
|
156
|
-
|
|
157
|
-
let fieldToElement =
|
|
158
|
-
renderField
|
|
159
|
-
{
|
|
160
|
-
OnChange =
|
|
161
|
-
fun values ->
|
|
162
|
-
viewConfig.OnChange
|
|
163
|
-
{ model with
|
|
164
|
-
Values = values
|
|
165
|
-
}
|
|
166
|
-
OnBlur = onBlur
|
|
167
|
-
Disabled = model.State = Loading
|
|
168
|
-
IsReadOnly = model.State = ReadOnly
|
|
169
|
-
ShowError = showError
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
renderForm
|
|
173
|
-
{
|
|
174
|
-
OnSubmit = onSubmit
|
|
175
|
-
Action = viewConfig.Action
|
|
176
|
-
State = model.State
|
|
177
|
-
Fields = List.map fieldToElement fields
|
|
178
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["./Form.fs"],"names":["values","formModel","error","msg","patternInput","res","form","model","result","errorTracking","renderForm","viewConfig","renderField","label"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA6DY,YACaA,sBAGL;uBAEwB;wBACC;;;;;;;WAKjC,YAAA,AAAAC,mCAAA,AAAAA;;;;;;;;;;;;;;;;;;;;;;;;YAeMC;;AAGsC,mBAAA,AAAAA;;AAEV,mBAAA,AAAAA;;mBAJF;;;;;QAuBvBC;AATLC;AACIC,6CAAM,4BAAUC,MAAK,AAAAC;AADzBH,qBAGA,AAAAC,YAAY,AAAAA;AAHHG,8FAAT,AAAAJ;AAKeK,yFAAf,AAAgC,AAAAF;AA\u002BDpC,WAAA,AAAAG,WACI,iBA7DM,CAAA,AAAAF,iCASF,AAAG,AAAAC,8BACC,aAYG;AARC,AAAAE,4BACI,YAAA,AAAAJ,cAAA,AAAAA,aAEQ;2BAEwB;4BADjB,AAAHE;;aAjBvBN,MACD,AAAAK,kBAAA,AAAG,OAAA,AAAAD,gCACC,aAGuC;AAA5B,AAAAI,4BAAoBR;WA0D3B,AAAAI,aADC,AAAAI,mBAEA,2CAnBbC,aACI;AAGY,AAAAD,4BACI,YACaX,QADb,AAAAO,aAAA,AAAAA;OAzBd,CAAA,AAAAI;AAKE,AAAAA,4BACI,YAAA,AAAAJ,cAAA,AAAAA,aAEQ;2BACO,AAAHE;4BAEQ,YAAQI,OAAM,AAAAJ;;SAVxB,WA4BH,OAAA,AAAAF,\u002BBACE,OAAA,AAAAA;AAbrB,YAAA,AAAAE;mBAAA;;;AAA\u002BB,mBAAA,iBAAaI,SAAM,AAAAJ;;SAnDlD,AAAAL","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -1,47 +0,0 @@
|
|
|
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 CheckboxField =
|
|
10
|
-
|
|
11
|
-
type Field<'Values>(innerField: CheckboxField.InnerField<'Values>) =
|
|
12
|
-
|
|
13
|
-
inherit IStandardField<'Values, bool, CheckboxField.Attributes>(innerField)
|
|
14
|
-
|
|
15
|
-
interface IField<'Values> with
|
|
16
|
-
|
|
17
|
-
member _.MapFieldValues(update: 'Values -> 'NewValues) : IField<'NewValues> =
|
|
18
|
-
|
|
19
|
-
Field(Field.mapValues update innerField)
|
|
20
|
-
|
|
21
|
-
override _.RenderField(config: StandardRenderFieldConfig<bool, CheckboxField.Attributes>) =
|
|
22
|
-
|
|
23
|
-
Bulma.control.div [
|
|
24
|
-
Bulma.input.labels.checkbox [
|
|
25
|
-
prop.children [
|
|
26
|
-
Bulma.input.checkbox [
|
|
27
|
-
// Checkbox can't really be set to readonly in HTML
|
|
28
|
-
// So we need to not listen to the onChange event
|
|
29
|
-
prop.readOnly config.IsReadOnly
|
|
30
|
-
if not config.IsReadOnly then
|
|
31
|
-
prop.onChange config.OnChange
|
|
32
|
-
|
|
33
|
-
match config.OnBlur with
|
|
34
|
-
| Some onBlur -> prop.onBlur (fun _ -> onBlur ())
|
|
35
|
-
|
|
36
|
-
| None -> ()
|
|
37
|
-
prop.disabled config.Disabled
|
|
38
|
-
|
|
39
|
-
prop.isChecked config.Value
|
|
40
|
-
]
|
|
41
|
-
|
|
42
|
-
Html.text config.Attributes.Text
|
|
43
|
-
]
|
|
44
|
-
]
|
|
45
|
-
]
|
|
46
|
-
|> List.singleton
|
|
47
|
-
|> Html.View.wrapInFieldContainer
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["./CheckboxField.fs","../Feliz.Bulma.3.0.0/ElementBuilders.fs","../Feliz.2.8.0/Properties.fs","../Feliz.2.8.0/Interop.fs","../Feliz.2.8.0/Html.fs","../Feliz.Bulma.3.0.0/Bulma.fs"],"names":["innerField","children","elems","config","ev","matchValue","onBlur","_","\u0060\u0060.ctor\u0060\u0060","update"],"mappings":";;;;;;;;;;;;;;;;;;cAYwEA;AAFhD,4BAAAA;;;YCmBaC,kCCoZFC;eFnYpB,qBADA,aChBsBD,YEpB\u002BB,mBC0aV,mBH5Xc,uBIk5BM,YLl7BlC,aE0ZTC,SCxaiC,mBC0ZV,mBHpWtC,MC81HmC,QAAO,8BD91HnC,uBIm4BuD,YLz6BrC,uBAGjB,sDAAA,uBAAA,2BEy8CqC,YFz8CvB,AAAAC,sCACd,sDAAA,uBAAA,AAAG,CAAI,AAAAA,oBACH,2BEw/B2C;AAA\u002BB,AFx/B5D,AAAAA,4BEw/BuE,AAAAC;\u002BBFz/BzF,yBAGA;gBAAMC,kCACCC;mBADP,wBAAMD,aAAA,AAAAF,eAAA,CAAA,AAAAE,uBAGI,6BAFHC,kBAAUD,aAAA,2BEw\u002BBkC;AFx\u002BBZ,AAAAC;qCAGvC,sDAAA,uBAAA,2BE4hBqC,YF5hBvB,AAAAH,oCAEd,sDAAA,2BEkxBsC,WFlxBvB,AAAAA;qBAGT,AAAAA,0BEwYuD,YAAY,qCAA\u002BCD,iCCxahF,mBCuLZ;uBCkbkC;sBHjMW,qCDpZUD;;;;ADb5FM,mCAAAA;AAEH,eAAA,AAAAC,4BAAM,\u002BDAAgBC,QAAO,AAAAF","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -1,49 +0,0 @@
|
|
|
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 ColorField =
|
|
10
|
-
|
|
11
|
-
type Field<'Values>(innerField: ColorField.InnerField<'Values>) =
|
|
12
|
-
inherit IStandardField<'Values, string, ColorField.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, ColorField.Attributes>) =
|
|
21
|
-
React.fragment [
|
|
22
|
-
|
|
23
|
-
InputField.renderField
|
|
24
|
-
{
|
|
25
|
-
OnChange = config.OnChange
|
|
26
|
-
OnBlur = config.OnBlur
|
|
27
|
-
Disabled = config.Disabled
|
|
28
|
-
IsReadOnly = config.IsReadOnly
|
|
29
|
-
Value = config.Value
|
|
30
|
-
Error = config.Error
|
|
31
|
-
ShowError = config.ShowError
|
|
32
|
-
Label = config.Attributes.Label
|
|
33
|
-
InputFunc = Bulma.input.text
|
|
34
|
-
ExtraInputProps =
|
|
35
|
-
[
|
|
36
|
-
match config.Attributes.Suggestions with
|
|
37
|
-
| Some _ -> prop.list config.Attributes.FieldId
|
|
38
|
-
| None -> ()
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
match config.Attributes.Suggestions with
|
|
43
|
-
| Some suggestions ->
|
|
44
|
-
Html.datalist [
|
|
45
|
-
prop.id config.Attributes.FieldId
|
|
46
|
-
suggestions |> List.map Html.option |> prop.children
|
|
47
|
-
]
|
|
48
|
-
| None -> Html.none
|
|
49
|
-
]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["./ColorField.fs","../Feliz.2.8.0/React.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","xs","config","props","elems","matchValue","children","_","\u0060\u0060.ctor\u0060\u0060","update"],"mappings":";;;;;;;;;;;;;;;;;;;cAWuEA;AAD/C,4BAAAA;;;ACOUC,6CDGP,qBAEX,kDAAA,qBAAA,wBAAA,YACI,WACe,AAAAC,iBACF,AAAAA,eACE,AAAAA,iBACE,AAAAA,mBACL,AAAAA,cACA,AAAAA,cACI,AAAAA,kBACJ,AAAAA,8EEtBoC,mBC0ZV,mBCpWtC,MCg4H\u002BB,QAAO,0BDh4H/B,uBEs3BmD,SNr5B1CC,WAER,uBACU;AAAA,gBAAA,AAAAD;AAEI,uBAAA;;;AADE,uBAAA,2BK\u002B3BoB,QL/3BV,AAAAA;;gBAKhC;gBKwYaE;ALxYbC,6DAAA,AAAAH;AAAA,mBAAA,CAAA,AAAAG,wBAMI,wBG8c2B,eHldjC,wBElCgD,mBCoIP,sBHlG3B,UK4vB2B,ML3vB7B,AAAAH,8CKqYGE,ULpYI,8DEpC6B,mBCmgBY;2BH/dhCE;wBAF5BD,iBKsYqE,YAAY,qCAA\u002BCD;;AJ/Z5I,eAAA,oBAA8C,uBAAiDH;;;ADHpFM,mCAAAA;AAEH,eAAA,AAAAC,2BAAM,2DAAgBC,QAAO,AAAAF","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -1,52 +0,0 @@
|
|
|
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 DateField =
|
|
10
|
-
|
|
11
|
-
type Field<'Values>(innerField: DateField.InnerField<'Values>) =
|
|
12
|
-
inherit IStandardField<'Values, string, DateField.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, DateField.Attributes>) =
|
|
21
|
-
Bulma.input.date [
|
|
22
|
-
prop.onChange config.OnChange
|
|
23
|
-
|
|
24
|
-
match config.OnBlur with
|
|
25
|
-
| Some onBlur -> prop.onBlur (fun _ -> onBlur ())
|
|
26
|
-
| None -> ()
|
|
27
|
-
|
|
28
|
-
prop.disabled config.Disabled
|
|
29
|
-
prop.readOnly config.IsReadOnly
|
|
30
|
-
|
|
31
|
-
// For date field we need to use uncontrolled input, otherwise it will not work
|
|
32
|
-
// properly when using the keyboard to input the date
|
|
33
|
-
prop.defaultValue config.Value
|
|
34
|
-
|
|
35
|
-
if config.ShowError && config.Error.IsSome then
|
|
36
|
-
color.isDanger
|
|
37
|
-
|
|
38
|
-
match config.Attributes.Max with
|
|
39
|
-
| Some max -> prop.max max
|
|
40
|
-
| None -> ()
|
|
41
|
-
|
|
42
|
-
match config.Attributes.Min with
|
|
43
|
-
| Some min -> prop.min min
|
|
44
|
-
| None -> ()
|
|
45
|
-
|
|
46
|
-
match config.Attributes.Step with
|
|
47
|
-
| Some step -> prop.step step
|
|
48
|
-
| None -> ()
|
|
49
|
-
|
|
50
|
-
prop.autoFocus config.Attributes.AutoFocus
|
|
51
|
-
]
|
|
52
|
-
|> Html.View.withLabelAndError config.Attributes.Label config.ShowError config.Error
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["./DateField.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","../Feliz.Bulma.3.0.0/PropertyBuilders.fs","../Feliz.Bulma.3.0.0/Modifiers.fs"],"names":["innerField","config","ev","matchValue","onBlur","_","\u0060\u0060.ctor\u0060\u0060","update"],"mappings":";;;;;;;;;;;;;;;;;;;cAWsEA;AAD9C,4BAAAA;;;eAyCT,kBAA4B,AAAAC,yBAAwB,AAAAA,kBAAiB,AAAAA,cC1ChB,mBC0ZV,mBCpWtC,MCk2H\u002BB,QAAO,0BDl2H/B,uBEy3BmD,SLp6BjD,uBACb,sDAAA,uBAAA,2BIkhC6D;AAA\u002BB,AJlhC9E,AAAAA,4BIkhCyF,AAAAC;8BJhhCvG;gBAAMC,kCACCC;mBADP,wBAAMD,aAAA,AAAAF,eAAA,CAAA,AAAAE,uBAEI,6BADHC,kBAAUD,aAAA,2BIi/B8C;AJj/BxB,AAAAC;qCAGvC,sDAAA,uBAAA,2BIqiBiD,YJriBnC,AAAAH,oCACd,sDAAA,uBAAA,2BIy8CiD,YJz8CnC,AAAAA,sCAId,sDAAA,uBAAA,2BI2fuD,gBJ3frC,AAAAA,iCAElB,sDAAA,uBAAA,CAAG,AAAAA,qBAAoB,AAAAA,yBACnB,2BM/B\u002BB,aCgrCU,iCPlpC7C,yBAGA;oBAAME;uBAAN,wBAAMA,eAAA,AAAAF,uBAAA,CAAA,AAAAE,yBAEI,2BADI,2BIi5BkC,OAAO,kBJj5BzCA,eIi5BwD,mCJ94BtE;wBAAMA;2BAAN,wBAAMA,eAAA,AAAAF,uBAAA,CAAA,AAAAE,yBAEI,2BADI,2BI06BkC,OAAO,kBJ16BzCA,eI06BwD,mCJv6BtE;4BAAMA;\u002BBAAN,wBAAMA,eAAA,AAAAF,wBAAA,CAAA,AAAAE,yBAEI,2BADK,2BImnD6B,iBJnnD7BA,mCAGf,sDAAA,2BIoUkD,aJpUnC,AAAAF;;;;;;;AAlCZI,mCAAAA;AAEH,eAAA,AAAAC,2BAAM,0DAAgBC,QAAO,AAAAF","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -1,54 +0,0 @@
|
|
|
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 DateTimeLocalField =
|
|
10
|
-
|
|
11
|
-
type Field<'Values>(innerField: DateTimeLocalField.InnerField<'Values>) =
|
|
12
|
-
inherit IStandardField<'Values, string, DateTimeLocalField.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, DateTimeLocalField.Attributes>)
|
|
22
|
-
=
|
|
23
|
-
Bulma.input.datetimeLocal [
|
|
24
|
-
prop.onChange config.OnChange
|
|
25
|
-
|
|
26
|
-
match config.OnBlur with
|
|
27
|
-
| Some onBlur -> prop.onBlur (fun _ -> onBlur ())
|
|
28
|
-
| None -> ()
|
|
29
|
-
|
|
30
|
-
prop.disabled config.Disabled
|
|
31
|
-
prop.readOnly config.IsReadOnly
|
|
32
|
-
|
|
33
|
-
// For date field we need to use uncontrolled input, otherwise it will not work
|
|
34
|
-
// properly when using the keyboard to input the date
|
|
35
|
-
prop.defaultValue config.Value
|
|
36
|
-
|
|
37
|
-
if config.ShowError && config.Error.IsSome then
|
|
38
|
-
color.isDanger
|
|
39
|
-
|
|
40
|
-
match config.Attributes.Max with
|
|
41
|
-
| Some max -> prop.max max
|
|
42
|
-
| None -> ()
|
|
43
|
-
|
|
44
|
-
match config.Attributes.Min with
|
|
45
|
-
| Some min -> prop.min min
|
|
46
|
-
| None -> ()
|
|
47
|
-
|
|
48
|
-
match config.Attributes.Step with
|
|
49
|
-
| Some step -> prop.step step
|
|
50
|
-
| None -> ()
|
|
51
|
-
|
|
52
|
-
prop.autoFocus config.Attributes.AutoFocus
|
|
53
|
-
]
|
|
54
|
-
|> Html.View.withLabelAndError config.Attributes.Label config.ShowError config.Error
|
package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["./DateTimeLocalField.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","../Feliz.Bulma.3.0.0/PropertyBuilders.fs","../Feliz.Bulma.3.0.0/Modifiers.fs"],"names":["innerField","config","ev","matchValue","onBlur","_","\u0060\u0060.ctor\u0060\u0060","update"],"mappings":";;;;;;;;;;;;;;;;;;;cAW\u002BEA;AADvD,4BAAAA;;;eA2CT,kBAA4B,AAAAC,yBAAwB,AAAAA,kBAAiB,AAAAA,cC5ChB,mBC0ZV,mBCpWtC,MCo2HwC,QAAO,oCDp2HxC,uBEw3B4D,SLj6BjD,uBACtB,sDAAA,uBAAA,2BIghC6D;AAA\u002BB,AJhhC9E,AAAAA,4BIghCyF,AAAAC;8BJ9gCvG;gBAAMC,kCACCC;mBADP,wBAAMD,aAAA,AAAAF,eAAA,CAAA,AAAAE,uBAEI,6BADHC,kBAAUD,aAAA,2BI\u002B\u002BB8C;AJ/\u002BBxB,AAAAC;qCAGvC,sDAAA,uBAAA,2BImiBiD,YJniBnC,AAAAH,oCACd,sDAAA,uBAAA,2BIu8CiD,YJv8CnC,AAAAA,sCAId,sDAAA,uBAAA,2BIyfuD,gBJzfrC,AAAAA,iCAElB,sDAAA,uBAAA,CAAG,AAAAA,qBAAoB,AAAAA,yBACnB,2BMjC\u002BB,aCgrCU,iCPhpC7C,yBAGA;oBAAME;uBAAN,wBAAMA,eAAA,AAAAF,uBAAA,CAAA,AAAAE,yBAEI,2BADI,2BI\u002B4BkC,OAAO,kBJ/4BzCA,eI\u002B4BwD,mCJ54BtE;wBAAMA;2BAAN,wBAAMA,eAAA,AAAAF,uBAAA,CAAA,AAAAE,yBAEI,2BADI,2BIw6BkC,OAAO,kBJx6BzCA,eIw6BwD,mCJr6BtE;4BAAMA;\u002BBAAN,wBAAMA,eAAA,AAAAF,wBAAA,CAAA,AAAAE,yBAEI,2BADK,2BIinD6B,iBJjnD7BA,mCAGf,sDAAA,2BIkUkD,aJlUnC,AAAAF;;;;;;;AApCZI,mCAAAA;AAEH,eAAA,AAAAC,4BAAM,mEAAgBC,QAAO,AAAAF","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -1,48 +0,0 @@
|
|
|
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 EmailField =
|
|
10
|
-
|
|
11
|
-
type Field<'Values>(innerField: EmailField.InnerField<'Values>) =
|
|
12
|
-
inherit IStandardField<'Values, string, EmailField.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, EmailField.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.email
|
|
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
|
-
match config.Attributes.Multiple with
|
|
45
|
-
| Some multiple -> prop.multiple multiple
|
|
46
|
-
| None -> ()
|
|
47
|
-
]
|
|
48
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["./EmailField.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":";;;;;;;;;;;;;;;;;cAWuEA;AAD/C,4BAAAA;;;eAUZ,YACI,WACe,AAAAC,iBACF,AAAAA,eACE,AAAAA,iBACE,AAAAA,mBACL,AAAAA,cACA,AAAAA,cACI,AAAAA,kBACJ,AAAAA,8ECpBwC,mBC0ZV,mBCpWtC,MCs2HgC,QAAO,2BDt2HhC,uBEg4BoD,SLj6B/CC,WAER,uBACI,sDAAA,uBAAA,2BIoVsC,aJpVvB,AAAAD,gDAEf;gBAAME;mBAAN,wBAAMA,aAAA,AAAAF,\u002BBAAA,CAAA,AAAAE,uBAEI,2BADY,2BIs2CoB,uBJt2CpBA,iCAGtB;oBAAMA;uBAAN,wBAAMA,eAAA,AAAAF,gCAAA,CAAA,AAAAE,yBAEI,2BADa,2BI0UoB,wBJ1UpBA,mCAGjB;AAAAA,0DAAA,AAAAF;AAAA,wBAAA,AAAAE;AAEI,\u002BBAAA;;;AADS,\u002BBAAA,2BI86BkB,oBJ96BlBA;;;;;;;AA7B5BC,mCAAAA;AAEH,eAAA,AAAAC,4BAAM,2DAAgBC,QAAO,AAAAF","file":null,"sourcesContent":null,"sourceRoot":null}
|
package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Fable.Form.Simple.Bulma.fableproj
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Project Sdk="Microsoft.NET.Sdk">
|
|
3
|
-
<PropertyGroup>
|
|
4
|
-
<TargetFramework>netstandard2.1</TargetFramework>
|
|
5
|
-
<Description>
|
|
6
|
-
React implementation of standard fields using Bulma CSS framework, to be used with Fable.Form.Simple.
|
|
7
|
-
</Description>
|
|
8
|
-
<FablePackageType>library</FablePackageType>
|
|
9
|
-
<PackageTags>fable-javascript</PackageTags>
|
|
10
|
-
</PropertyGroup>
|
|
11
|
-
<ItemGroup>
|
|
12
|
-
<Compile Include="Types.fs" />
|
|
13
|
-
<Compile Include="Html.View.fs" />
|
|
14
|
-
<Compile Include="InputField.fs" />
|
|
15
|
-
<Compile Include="TextField.fs" />
|
|
16
|
-
<Compile Include="ColorField.fs" />
|
|
17
|
-
<Compile Include="DateField.fs" />
|
|
18
|
-
<Compile Include="DateTimeLocalField.fs" />
|
|
19
|
-
<Compile Include="EmailField.fs" />
|
|
20
|
-
<Compile Include="NumberField.fs" />
|
|
21
|
-
<Compile Include="PasswordField.fs" />
|
|
22
|
-
<Compile Include="TextareaField.fs" />
|
|
23
|
-
<Compile Include="CheckboxField.fs" />
|
|
24
|
-
<Compile Include="SearchField.fs" />
|
|
25
|
-
<Compile Include="RadioField.fs" />
|
|
26
|
-
<Compile Include="SelectField.fs" />
|
|
27
|
-
<Compile Include="TelField.fs" />
|
|
28
|
-
<Compile Include="TimeField.fs" />
|
|
29
|
-
<Compile Include="FileField.fs" />
|
|
30
|
-
<Compile Include="FormList.fs" />
|
|
31
|
-
<Compile Include="Section.fs" />
|
|
32
|
-
<Compile Include="Group.fs" />
|
|
33
|
-
<Compile Include="Form.fs" />
|
|
34
|
-
</ItemGroup>
|
|
35
|
-
<ItemGroup>
|
|
36
|
-
<ProjectReference Include="..\Fable.Form\Fable.Form.fsproj" />
|
|
37
|
-
<ProjectReference Include="..\Fable.Form.Simple\Fable.Form.Simple.fsproj" />
|
|
38
|
-
<ProjectReference Include="..\Fable.Form.Simple.Fields.Html\Fable.Form.Simple.Fields.Html.fsproj" />
|
|
39
|
-
</ItemGroup>
|
|
40
|
-
<ItemGroup>
|
|
41
|
-
<PackageReference Include="EasyBuild.PackageReleaseNotes.Tasks">
|
|
42
|
-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
43
|
-
<PrivateAssets>all</PrivateAssets>
|
|
44
|
-
</PackageReference>
|
|
45
|
-
<PackageReference Include="Fable.Package.SDK">
|
|
46
|
-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
47
|
-
<PrivateAssets>all</PrivateAssets>
|
|
48
|
-
</PackageReference>
|
|
49
|
-
<PackageReference Include="Feliz" />
|
|
50
|
-
<PackageReference Include="Feliz.Bulma" />
|
|
51
|
-
<PackageReference Include="FSharp.Core" />
|
|
52
|
-
</ItemGroup>
|
|
53
|
-
</Project>
|