@f1studio/form-spec 5.0.0-alpha.139 → 5.0.0-alpha.141
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/FormSpec.d.ts +5 -4
- package/FormSpec.FS/FormSpec.d.ts.map +1 -1
- package/FormSpec.FS/FormSpecValues.d.ts +0 -5
- package/FormSpec.FS/FormSpecValues.d.ts.map +1 -1
- package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.d.ts +3 -2
- package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.d.ts.map +1 -1
- package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.d.ts.map +1 -1
- package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.d.ts.map +1 -1
- package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.d.ts +1 -1
- package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.d.ts.map +1 -1
- package/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.d.ts +74 -0
- package/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.d.ts.map +1 -0
- package/FormSpec.FS/Interop/Facade/BlueprintFilledForm.d.ts +106 -0
- package/FormSpec.FS/Interop/Facade/BlueprintFilledForm.d.ts.map +1 -0
- package/FormSpec.FS/Interop/Facade/FormAnswersGate.d.ts +105 -0
- package/FormSpec.FS/Interop/Facade/FormAnswersGate.d.ts.map +1 -0
- package/FormSpec.FS/Interop/FormSpec.Api.Helpers.d.ts +26 -13
- package/FormSpec.FS/Interop/FormSpec.Api.Helpers.d.ts.map +1 -1
- package/FormSpec.FS/Interop/FormSpec.Api.Option.d.ts +1 -2
- package/FormSpec.FS/Interop/FormSpec.Api.Option.d.ts.map +1 -1
- package/FormSpec.FS/Interop/FormSpec.Values.Api.Option.d.ts +5 -3
- package/FormSpec.FS/Interop/FormSpec.Values.Api.Option.d.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/BlueprintValidation.js +1 -1
- package/FormSpec.TS/FormSpec.FS/BlueprintValidation.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/BlueprintValidation.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Designer.js +1 -1
- package/FormSpec.TS/FormSpec.FS/Designer.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Designer.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/FormSpec.js +13 -8
- package/FormSpec.TS/FormSpec.FS/FormSpec.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/FormSpec.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.js +5 -5
- package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/FormSpecValues.js +2 -21
- package/FormSpec.TS/FormSpec.FS/FormSpecValues.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/FormSpecValues.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Helpers.js +12 -12
- package/FormSpec.TS/FormSpec.FS/Helpers.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Helpers.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js +36 -30
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js +5 -20
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRStepsBuilder.js +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRStepsBuilder.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRStepsBuilder.ts.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/CorEMRTemplateToFormSpec.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js +24 -10
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/FormSpecToCoreMRInsert.js +2 -2
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.js +282 -0
- package/FormSpec.TS/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.js +184 -0
- package/FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Interop/Facade/FormAnswersGate.js +752 -0
- package/FormSpec.TS/FormSpec.FS/Interop/Facade/FormAnswersGate.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Interop/Facade/FormAnswersGate.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.js +317 -81
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.js +5 -10
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.js +20 -10
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Migrator.js +1 -1
- package/FormSpec.TS/FormSpec.FS/Migrator.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Migrator.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/PathwayExecutor.js +3 -3
- package/FormSpec.TS/FormSpec.FS/PathwayExecutor.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/PathwayExecutor.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/PathwayValidator.js +1 -1
- package/FormSpec.TS/FormSpec.FS/PathwayValidator.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/PathwayValidator.ts.map +1 -1
- package/FormSpec.TS/PluginRegistration.js +2 -0
- package/FormSpec.TS/PluginRegistration.js.map +1 -1
- package/FormSpec.TS/PluginRegistration.ts.map +1 -1
- package/FormSpec.TS/{libs/Thoth.Json → Thoth.Json}/packages/Thoth.Json/Decode.js +63 -69
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.js.map +1 -0
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.ts.map +1 -0
- package/FormSpec.TS/{libs/Thoth.Json → Thoth.Json}/packages/Thoth.Json/Encode.js +6 -10
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.js.map +1 -0
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.ts.map +1 -0
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Extra.js.map +1 -0
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Extra.ts.map +1 -0
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Types.js.map +1 -0
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Types.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +57 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +119 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +20 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs +766 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +165 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +31 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +32 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.js.map +1 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.ts.map +1 -1
- package/FormSpec.TS/fable_modules/project_cracked.json +1 -1
- package/FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.js +2431 -0
- package/FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.js.map +1 -0
- package/FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.ts.map +1 -0
- package/FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.js +107 -0
- package/FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.js.map +1 -0
- package/FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.ts.map +1 -0
- package/FormSpec.TS/plugins/signature/src/SignatureField.js +1 -1
- package/FormSpec.TS/plugins/signature/src/SignatureField.js.map +1 -1
- package/FormSpec.TS/plugins/signature/src/SignatureField.ts.map +1 -1
- package/FormSpec.TS/plugins/vitals/src/VitalsField.js +29 -312
- package/FormSpec.TS/plugins/vitals/src/VitalsField.js.map +1 -1
- package/FormSpec.TS/plugins/vitals/src/VitalsField.ts.map +1 -1
- package/FormSpec.TS/plugins/vitals/src/VitalsLogic.js +506 -0
- package/FormSpec.TS/plugins/vitals/src/VitalsLogic.js.map +1 -0
- package/FormSpec.TS/plugins/vitals/src/VitalsLogic.ts.map +1 -0
- package/README.md +7 -7
- package/{libs/Thoth.Json → Thoth.Json}/packages/Thoth.Json/Decode.d.ts +2 -2
- package/Thoth.Json/packages/Thoth.Json/Decode.d.ts.map +1 -0
- package/Thoth.Json/packages/Thoth.Json/Encode.d.ts.map +1 -0
- package/Thoth.Json/packages/Thoth.Json/Extra.d.ts.map +1 -0
- package/Thoth.Json/packages/Thoth.Json/Types.d.ts.map +1 -0
- package/fable_modules/Fable.Promise.3.2.0/Promise.fs.d.ts +112 -0
- package/fable_modules/Fable.Promise.3.2.0/Promise.fs.d.ts.map +1 -0
- package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.d.ts +8 -0
- package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.d.ts.map +1 -0
- package/package.json +9 -1
- package/plugins/allergyfinder/src/AllergyFinderField.d.ts +116 -0
- package/plugins/allergyfinder/src/AllergyFinderField.d.ts.map +1 -0
- package/plugins/allergyfinder/src/OpenFdaClient.d.ts +5 -0
- package/plugins/allergyfinder/src/OpenFdaClient.d.ts.map +1 -0
- package/plugins/vitals/src/VitalsField.d.ts +4 -43
- package/plugins/vitals/src/VitalsField.d.ts.map +1 -1
- package/plugins/vitals/src/VitalsLogic.d.ts +72 -0
- package/plugins/vitals/src/VitalsLogic.d.ts.map +1 -0
- package/src/FormSpec.FS/BlueprintValidation.ts +1 -1
- package/src/FormSpec.FS/Designer.ts +1 -1
- package/src/FormSpec.FS/FormSpec.ts +10 -8
- package/src/FormSpec.FS/FormSpecHelpers.ts +5 -5
- package/src/FormSpec.FS/FormSpecValues.ts +2 -25
- package/src/FormSpec.FS/Helpers.ts +12 -12
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.ts +35 -32
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts +6 -23
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRStepsBuilder.ts +1 -1
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.ts +1 -1
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts +27 -11
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.ts +1 -1
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/FormSpecToCoreMRInsert.ts +3 -3
- package/src/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts +3 -3
- package/src/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.ts +160 -0
- package/src/FormSpec.FS/Interop/Facade/BlueprintFilledForm.ts +244 -0
- package/src/FormSpec.FS/Interop/Facade/FormAnswersGate.ts +508 -0
- package/src/FormSpec.FS/Interop/FormSpec.Api.Helpers.ts +376 -128
- package/src/FormSpec.FS/Interop/FormSpec.Api.Option.ts +6 -8
- package/src/FormSpec.FS/Interop/FormSpec.Values.Api.Option.ts +17 -13
- package/src/FormSpec.FS/Migrator.ts +1 -1
- package/src/FormSpec.FS/PathwayExecutor.ts +3 -3
- package/src/FormSpec.FS/PathwayValidator.ts +1 -1
- package/src/PluginRegistration.ts +2 -0
- package/src/{libs/Thoth.Json → Thoth.Json}/packages/Thoth.Json/Decode.ts +38 -55
- package/src/{libs/Thoth.Json → Thoth.Json}/packages/Thoth.Json/Encode.ts +10 -16
- package/src/plugins/allergyfinder/src/AllergyFinderField.ts +1341 -0
- package/src/plugins/allergyfinder/src/OpenFdaClient.ts +103 -0
- package/src/plugins/signature/src/SignatureField.ts +1 -1
- package/src/plugins/vitals/src/VitalsField.ts +35 -244
- package/src/plugins/vitals/src/VitalsLogic.ts +360 -0
- package/FormSpec.TS/libs/Thoth.Json/packages/Thoth.Json/Decode.js.map +0 -1
- package/FormSpec.TS/libs/Thoth.Json/packages/Thoth.Json/Decode.ts.map +0 -1
- package/FormSpec.TS/libs/Thoth.Json/packages/Thoth.Json/Encode.js.map +0 -1
- package/FormSpec.TS/libs/Thoth.Json/packages/Thoth.Json/Encode.ts.map +0 -1
- package/FormSpec.TS/libs/Thoth.Json/packages/Thoth.Json/Extra.js.map +0 -1
- package/FormSpec.TS/libs/Thoth.Json/packages/Thoth.Json/Extra.ts.map +0 -1
- package/FormSpec.TS/libs/Thoth.Json/packages/Thoth.Json/Types.js.map +0 -1
- package/FormSpec.TS/libs/Thoth.Json/packages/Thoth.Json/Types.ts.map +0 -1
- package/libs/Thoth.Json/packages/Thoth.Json/Decode.d.ts.map +0 -1
- package/libs/Thoth.Json/packages/Thoth.Json/Encode.d.ts.map +0 -1
- package/libs/Thoth.Json/packages/Thoth.Json/Extra.d.ts.map +0 -1
- package/libs/Thoth.Json/packages/Thoth.Json/Types.d.ts.map +0 -1
- /package/FormSpec.TS/{libs/Thoth.Json → Thoth.Json}/packages/Thoth.Json/Extra.js +0 -0
- /package/FormSpec.TS/{libs/Thoth.Json → Thoth.Json}/packages/Thoth.Json/Types.js +0 -0
- /package/{libs/Thoth.Json → Thoth.Json}/packages/Thoth.Json/Encode.d.ts +0 -0
- /package/{libs/Thoth.Json → Thoth.Json}/packages/Thoth.Json/Extra.d.ts +0 -0
- /package/{libs/Thoth.Json → Thoth.Json}/packages/Thoth.Json/Types.d.ts +0 -0
- /package/src/{libs/Thoth.Json → Thoth.Json}/packages/Thoth.Json/Extra.ts +0 -0
- /package/src/{libs/Thoth.Json → Thoth.Json}/packages/Thoth.Json/Types.ts +0 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Option } from "@fable-org/fable-library-js/Option.js";
|
|
2
|
+
import { FSharpResult$2_$union } from "@fable-org/fable-library-js/Result.js";
|
|
3
|
+
import { TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
|
|
4
|
+
import { IDisposable } from "@fable-org/fable-library-js/Util.js";
|
|
5
|
+
/**
|
|
6
|
+
* This is an identity function, it calls the given function and return the promise value untouched.
|
|
7
|
+
* <example>
|
|
8
|
+
* <code lang="fsharp">
|
|
9
|
+
* fetchUser ()
|
|
10
|
+
* |> Promise.tap (fun user ->
|
|
11
|
+
* // Do something
|
|
12
|
+
* console.log "The user has been received"
|
|
13
|
+
* )
|
|
14
|
+
* |> Promise.map (fun user ->
|
|
15
|
+
* // user value is available here untouched
|
|
16
|
+
* )
|
|
17
|
+
* </code>
|
|
18
|
+
* </example>
|
|
19
|
+
*/
|
|
20
|
+
export declare function tap<T>(fn: ((arg0: T) => void), a: Promise<T>): Promise<T>;
|
|
21
|
+
export type SettledStatus = "fulfilled" | "rejected";
|
|
22
|
+
export interface SettledValue$1<T> {
|
|
23
|
+
reason?: Error;
|
|
24
|
+
status: SettledStatus;
|
|
25
|
+
value?: Option<T>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Map the <c>Promise</c> result into a <c>Result</c> type.
|
|
29
|
+
* <example>
|
|
30
|
+
* <code lang="fsharp">
|
|
31
|
+
* Success example
|
|
32
|
+
* Promise.lift 42
|
|
33
|
+
* |> Promise.result
|
|
34
|
+
* |> Promise.map (fun value ->
|
|
35
|
+
* // value = Ok 42
|
|
36
|
+
* )
|
|
37
|
+
*
|
|
38
|
+
* // Fail example
|
|
39
|
+
* Promise.reject "Invalid value"
|
|
40
|
+
* |> Promise.result
|
|
41
|
+
* |> Promise.map (fun value ->
|
|
42
|
+
* // value = Error "Invalid value"
|
|
43
|
+
* )
|
|
44
|
+
* </code>
|
|
45
|
+
* </example>
|
|
46
|
+
*/
|
|
47
|
+
export declare function result<T>(a: Promise<T>): Promise<FSharpResult$2_$union<T, Error>>;
|
|
48
|
+
/**
|
|
49
|
+
* Evaluates to `myPromise |> Promise.map (Result.map fn)`
|
|
50
|
+
* <example>
|
|
51
|
+
* <code lang="fsharp">
|
|
52
|
+
* Promise.lift 42
|
|
53
|
+
* |> Promise.result
|
|
54
|
+
* |> Promise.mapResult (fun value ->
|
|
55
|
+
* value + 10
|
|
56
|
+
* )
|
|
57
|
+
* |> Promise.map (fun value ->
|
|
58
|
+
* // value = Ok 52
|
|
59
|
+
* )
|
|
60
|
+
* </code>
|
|
61
|
+
* </example>
|
|
62
|
+
*/
|
|
63
|
+
export declare function mapResult<T1, T2, E>(fn: ((arg0: T1) => T2), a: Promise<FSharpResult$2_$union<T1, E>>): Promise<FSharpResult$2_$union<T2, E>>;
|
|
64
|
+
/**
|
|
65
|
+
* Transform the success part of a result promise into another promise.
|
|
66
|
+
* <example>
|
|
67
|
+
* <code lang="fsharp">
|
|
68
|
+
* let multiplyBy2 (value : int) =
|
|
69
|
+
* Promise.create (fun resolve reject ->
|
|
70
|
+
* resolve (value * 2)
|
|
71
|
+
* )
|
|
72
|
+
*
|
|
73
|
+
* Promise.lift 42
|
|
74
|
+
* |> Promise.result
|
|
75
|
+
* |> Promise.bindResult (fun value ->
|
|
76
|
+
* multiplyBy2 value
|
|
77
|
+
* )
|
|
78
|
+
* |> Promise.map (fun value ->
|
|
79
|
+
* // value = Ok 84
|
|
80
|
+
* )
|
|
81
|
+
* </code>
|
|
82
|
+
* </example>
|
|
83
|
+
*/
|
|
84
|
+
export declare function bindResult<T1, T2, E>(fn: ((arg0: T1) => Promise<T2>), a: Promise<FSharpResult$2_$union<T1, E>>): Promise<FSharpResult$2_$union<T2, E>>;
|
|
85
|
+
/**
|
|
86
|
+
* Evaluates to <c>myPromise |> Promise.map (Result.map fn)</c>
|
|
87
|
+
* <example>
|
|
88
|
+
* <code lang="fsharp">
|
|
89
|
+
* Promise.reject -1
|
|
90
|
+
* |> Promise.result
|
|
91
|
+
* |> Promise.mapResultError (fun value ->
|
|
92
|
+
* $"%s{value} is not a valid value"
|
|
93
|
+
* )
|
|
94
|
+
* |> Promise.map (fun value ->
|
|
95
|
+
* // value = Error "-1 is not a valid value"
|
|
96
|
+
* )
|
|
97
|
+
* </code>
|
|
98
|
+
* </example>
|
|
99
|
+
*/
|
|
100
|
+
export declare function mapResultError<E1, E2, T>(fn: ((arg0: E1) => E2), a: Promise<FSharpResult$2_$union<T, E1>>): Promise<FSharpResult$2_$union<T, E2>>;
|
|
101
|
+
export declare class PromiseBuilder {
|
|
102
|
+
constructor();
|
|
103
|
+
}
|
|
104
|
+
export declare function PromiseBuilder_$reflection(): TypeInfo;
|
|
105
|
+
export declare function PromiseBuilder_$ctor(): PromiseBuilder;
|
|
106
|
+
export declare function PromiseBuilder__For_1565554B<T>(_: PromiseBuilder, seq: Iterable<T>, body: ((arg0: T) => Promise<void>)): Promise<void>;
|
|
107
|
+
export declare function PromiseBuilder__While_2044D34(this$: PromiseBuilder, guard: (() => boolean), p: Promise<void>): Promise<void>;
|
|
108
|
+
export declare function PromiseBuilder__TryFinally_7D49A2FD<T>(_: PromiseBuilder, p: Promise<T>, compensation: (() => void)): Promise<T>;
|
|
109
|
+
export declare function PromiseBuilder__Delay_62FBFDE1<T>(_: PromiseBuilder, generator: (() => Promise<T>)): any;
|
|
110
|
+
export declare function PromiseBuilder__Run_212F1D4B<T>(_: PromiseBuilder, p: Promise<T>): Promise<T>;
|
|
111
|
+
export declare function PromiseBuilder__Using_74F7E79D<T1 extends IDisposable, T2>(this$: PromiseBuilder, resource: T1, binder: ((arg0: T1) => Promise<T2>)): Promise<T2>;
|
|
112
|
+
//# sourceMappingURL=Promise.fs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Promise.fs.d.ts","sourceRoot":"","sources":["../../../FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAqD,qBAAqB,EAAqB,MAAM,uCAAuC,CAAC;AACpJ,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,WAAW,EAA2C,MAAM,qCAAqC,CAAC;AAE3G;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAKzE;AAED,MAAM,MAAM,aAAa,GACnB,WAAW,GACX,UAAU,CAAA;AAEhB,MAAM,WAAW,cAAc,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"./Promise.fs.js";
|
|
2
|
+
import { FSharpResult$2_$union } from "@fable-org/fable-library-js/Result.js";
|
|
3
|
+
export declare const promise: PromiseBuilder;
|
|
4
|
+
/**
|
|
5
|
+
* Helper functionm to convert a settled result into an F# result
|
|
6
|
+
*/
|
|
7
|
+
export declare function SettledValue_toResult<T>(p: SettledValue$1<T>): FSharpResult$2_$union<T, Error>;
|
|
8
|
+
//# sourceMappingURL=PromiseImpl.fs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromiseImpl.fs.d.ts","sourceRoot":"","sources":["../../../FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAiB,cAAc,EAAwB,MAAM,iBAAiB,CAAC;AAEtG,OAAO,EAAE,qBAAqB,EAA2C,MAAM,uCAAuC,CAAC;AAEvH,eAAO,MAAM,OAAO,EAAE,cAAuC,CAAC;AAE9D;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,qBAAqB,CAAC,CAAC,EAAE,KAAK,CAAC,CAQ9F"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@f1studio/form-spec",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.141",
|
|
4
4
|
"description": "F1 Core - Form specification and types",
|
|
5
5
|
"main": "./FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.js",
|
|
6
6
|
"types": "./FormSpec.FS/Interop/FormSpec.Api.Option.d.ts",
|
|
@@ -25,6 +25,14 @@
|
|
|
25
25
|
"types": "./FormSpec.FS/Interop/FormSpec.Api.Helpers.d.ts",
|
|
26
26
|
"default": "./FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.js"
|
|
27
27
|
},
|
|
28
|
+
"./Interop/Facade/BlueprintFilledForm": {
|
|
29
|
+
"types": "./FormSpec.FS/Interop/Facade/BlueprintFilledForm.d.ts",
|
|
30
|
+
"default": "./FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.js"
|
|
31
|
+
},
|
|
32
|
+
"./Interop/Facade/FormAnswersGate": {
|
|
33
|
+
"types": "./FormSpec.FS/Interop/Facade/FormAnswersGate.d.ts",
|
|
34
|
+
"default": "./FormSpec.TS/FormSpec.FS/Interop/Facade/FormAnswersGate.js"
|
|
35
|
+
},
|
|
28
36
|
"./PathwayExecutor": {
|
|
29
37
|
"types": "./PathwayExecutor.withPlugins.d.ts",
|
|
30
38
|
"default": "./FormSpec.TS/PathwayExecutor.withPlugins.js"
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { Record, Union } from "@fable-org/fable-library-js/Types.js";
|
|
2
|
+
import { TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
|
|
3
|
+
import { OpenFdaSearchResult, AllergyCategory_$union } from "../../../FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.js";
|
|
4
|
+
import { Option } from "@fable-org/fable-library-js/Option.js";
|
|
5
|
+
import { FSharpList } from "@fable-org/fable-library-js/List.js";
|
|
6
|
+
import { IComparable, IEquatable } from "@fable-org/fable-library-js/Util.js";
|
|
7
|
+
import { Field$3, IAttributes } from "../../../fable_modules/Fable.Form.3.0.0/Field.fs.js";
|
|
8
|
+
import { Form$3, FieldConfig$4 } from "../../../fable_modules/Fable.Form.3.0.0/Base.fs.js";
|
|
9
|
+
import { ReactElement } from "../../../fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.js";
|
|
10
|
+
import { IStandardField$3, IField$1, StandardRenderFieldConfig$2 } from "../../../fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.js";
|
|
11
|
+
import { Spec_FormField$1, Spec_FieldType_$union, Shared_PluginPropertyKey, Spec_PluginFieldConfig } from "../../../FormSpec.FS/FormSpec.js";
|
|
12
|
+
import { IPluginValueConverter } from "../../../FormSpec.FS/PluginInterface.js";
|
|
13
|
+
import { RenderPreviewProps$1 } from "../../../FormSpec.FS/Interfaces.js";
|
|
14
|
+
import { FieldDetails } from "../../../FormSpec.FS/Designer.js";
|
|
15
|
+
export type AllergyFinderField_AllergySeverity_$union = AllergyFinderField_AllergySeverity<0> | AllergyFinderField_AllergySeverity<1> | AllergyFinderField_AllergySeverity<2> | AllergyFinderField_AllergySeverity<3> | AllergyFinderField_AllergySeverity<4>;
|
|
16
|
+
export type AllergyFinderField_AllergySeverity_$cases = {
|
|
17
|
+
0: ["Unknown", []];
|
|
18
|
+
1: ["Mild", []];
|
|
19
|
+
2: ["Moderate", []];
|
|
20
|
+
3: ["Severe", []];
|
|
21
|
+
4: ["LifeThreatening", []];
|
|
22
|
+
};
|
|
23
|
+
export declare function AllergyFinderField_AllergySeverity_Unknown(): AllergyFinderField_AllergySeverity<0>;
|
|
24
|
+
export declare function AllergyFinderField_AllergySeverity_Mild(): AllergyFinderField_AllergySeverity<1>;
|
|
25
|
+
export declare function AllergyFinderField_AllergySeverity_Moderate(): AllergyFinderField_AllergySeverity<2>;
|
|
26
|
+
export declare function AllergyFinderField_AllergySeverity_Severe(): AllergyFinderField_AllergySeverity<3>;
|
|
27
|
+
export declare function AllergyFinderField_AllergySeverity_LifeThreatening(): AllergyFinderField_AllergySeverity<4>;
|
|
28
|
+
export declare class AllergyFinderField_AllergySeverity<Tag extends keyof AllergyFinderField_AllergySeverity_$cases> extends Union<Tag, AllergyFinderField_AllergySeverity_$cases[Tag][0]> {
|
|
29
|
+
readonly tag: Tag;
|
|
30
|
+
readonly fields: AllergyFinderField_AllergySeverity_$cases[Tag][1];
|
|
31
|
+
constructor(tag: Tag, fields: AllergyFinderField_AllergySeverity_$cases[Tag][1]);
|
|
32
|
+
cases(): string[];
|
|
33
|
+
}
|
|
34
|
+
export declare function AllergyFinderField_AllergySeverity_$reflection(): TypeInfo;
|
|
35
|
+
export declare function AllergyFinderField_severityToString(_arg: AllergyFinderField_AllergySeverity_$union): string;
|
|
36
|
+
export declare function AllergyFinderField_severityFromString(_arg: string): AllergyFinderField_AllergySeverity_$union;
|
|
37
|
+
export declare function AllergyFinderField_severityLabel(_arg: AllergyFinderField_AllergySeverity_$union): string;
|
|
38
|
+
export declare function AllergyFinderField_severityColor(_arg: AllergyFinderField_AllergySeverity_$union): string;
|
|
39
|
+
export declare function AllergyFinderField_severityBorderColor(_arg: AllergyFinderField_AllergySeverity_$union): string;
|
|
40
|
+
export declare function AllergyFinderField_categoryToString(cat: AllergyCategory_$union): string;
|
|
41
|
+
export declare function AllergyFinderField_categoryFromString(_arg: string): AllergyCategory_$union;
|
|
42
|
+
export declare function AllergyFinderField_categoryLabel(cat: AllergyCategory_$union): string;
|
|
43
|
+
export declare class AllergyFinderField_AllergyEntry extends Record implements IEquatable<AllergyFinderField_AllergyEntry>, IComparable<AllergyFinderField_AllergyEntry> {
|
|
44
|
+
readonly Id: string;
|
|
45
|
+
readonly Name: string;
|
|
46
|
+
readonly SubstanceName: string;
|
|
47
|
+
readonly NdcCode: Option<string>;
|
|
48
|
+
readonly Category: AllergyCategory_$union;
|
|
49
|
+
readonly Severity: AllergyFinderField_AllergySeverity_$union;
|
|
50
|
+
readonly Reactions: FSharpList<string>;
|
|
51
|
+
readonly Remedy: Option<string>;
|
|
52
|
+
readonly OnsetTiming: Option<string>;
|
|
53
|
+
readonly StaffOnly: boolean;
|
|
54
|
+
readonly Notes: Option<string>;
|
|
55
|
+
constructor(Id: string, Name: string, SubstanceName: string, NdcCode: Option<string>, Category: AllergyCategory_$union, Severity: AllergyFinderField_AllergySeverity_$union, Reactions: FSharpList<string>, Remedy: Option<string>, OnsetTiming: Option<string>, StaffOnly: boolean, Notes: Option<string>);
|
|
56
|
+
}
|
|
57
|
+
export declare function AllergyFinderField_AllergyEntry_$reflection(): TypeInfo;
|
|
58
|
+
export declare const AllergyFinderField_commonReactions: string[];
|
|
59
|
+
export declare function AllergyFinderField_serializeAllergies(allergies: FSharpList<AllergyFinderField_AllergyEntry>): string;
|
|
60
|
+
export declare function AllergyFinderField_parseAllergies(value: string): FSharpList<AllergyFinderField_AllergyEntry>;
|
|
61
|
+
export declare class AllergyFinderField_Attributes extends Record implements IAttributes {
|
|
62
|
+
readonly FieldId: string;
|
|
63
|
+
readonly Label: string;
|
|
64
|
+
readonly ApiFetch: ((arg0: string) => Promise<string>);
|
|
65
|
+
constructor(FieldId: string, Label: string, ApiFetch: ((arg0: string) => Promise<string>));
|
|
66
|
+
GetFieldId(): string;
|
|
67
|
+
}
|
|
68
|
+
export declare function AllergyFinderField_Attributes_$reflection(): TypeInfo;
|
|
69
|
+
export declare function AllergyFinderField_form<Values, Field, Output>(): ((arg0: ((arg0: Field$3<AllergyFinderField_Attributes, string, Values>) => Field)) => ((arg0: FieldConfig$4<AllergyFinderField_Attributes, string, Values, Output>) => Form$3<Values, Output, Field>));
|
|
70
|
+
export type AllergyFinderField_DetailModalState_$union = AllergyFinderField_DetailModalState<0> | AllergyFinderField_DetailModalState<1> | AllergyFinderField_DetailModalState<2>;
|
|
71
|
+
export type AllergyFinderField_DetailModalState_$cases = {
|
|
72
|
+
0: ["Closed", []];
|
|
73
|
+
1: ["Adding", [Option<OpenFdaSearchResult>]];
|
|
74
|
+
2: ["Editing", [AllergyFinderField_AllergyEntry]];
|
|
75
|
+
};
|
|
76
|
+
export declare function AllergyFinderField_DetailModalState_Closed(): AllergyFinderField_DetailModalState<0>;
|
|
77
|
+
export declare function AllergyFinderField_DetailModalState_Adding(Item: Option<OpenFdaSearchResult>): AllergyFinderField_DetailModalState<1>;
|
|
78
|
+
export declare function AllergyFinderField_DetailModalState_Editing(Item: AllergyFinderField_AllergyEntry): AllergyFinderField_DetailModalState<2>;
|
|
79
|
+
export declare class AllergyFinderField_DetailModalState<Tag extends keyof AllergyFinderField_DetailModalState_$cases> extends Union<Tag, AllergyFinderField_DetailModalState_$cases[Tag][0]> {
|
|
80
|
+
readonly tag: Tag;
|
|
81
|
+
readonly fields: AllergyFinderField_DetailModalState_$cases[Tag][1];
|
|
82
|
+
constructor(tag: Tag, fields: AllergyFinderField_DetailModalState_$cases[Tag][1]);
|
|
83
|
+
cases(): string[];
|
|
84
|
+
}
|
|
85
|
+
export declare function AllergyFinderField_DetailModalState_$reflection(): TypeInfo;
|
|
86
|
+
/**
|
|
87
|
+
* Severity badge
|
|
88
|
+
*/
|
|
89
|
+
export declare function AllergyFinderField_SeverityBadge(allergyFinderField_SeverityBadgeInputProps: any): ReactElement;
|
|
90
|
+
/**
|
|
91
|
+
* Category badge
|
|
92
|
+
*/
|
|
93
|
+
export declare function AllergyFinderField_CategoryBadge(allergyFinderField_CategoryBadgeInputProps: any): ReactElement;
|
|
94
|
+
export declare function AllergyFinderField_FdaInsightsPanel(allergyFinderField_FdaInsightsPanelInputProps: any): ReactElement;
|
|
95
|
+
export declare function AllergyFinderField_ReactionCheckboxes(allergyFinderField_ReactionCheckboxesInputProps: any): ReactElement;
|
|
96
|
+
export declare function AllergyFinderField_AllergyDetailModal(allergyFinderField_AllergyDetailModalInputProps: any): ReactElement;
|
|
97
|
+
export declare function AllergyFinderField_AllergySearchPopover(allergyFinderField_AllergySearchPopoverInputProps: any): ReactElement;
|
|
98
|
+
export declare function AllergyFinderField_AllergyCard(allergyFinderField_AllergyCardInputProps: any): ReactElement;
|
|
99
|
+
export declare function AllergyFinderField_AllergyFinderFieldComponent(config: StandardRenderFieldConfig$2<string, AllergyFinderField_Attributes>): ReactElement;
|
|
100
|
+
export declare class AllergyFinderField_Field$1<Values> extends IStandardField$3<Values, string, AllergyFinderField_Attributes> implements IField$1<Values> {
|
|
101
|
+
readonly innerField_1: Field$3<AllergyFinderField_Attributes, string, Values>;
|
|
102
|
+
constructor(innerField: Field$3<AllergyFinderField_Attributes, string, Values>);
|
|
103
|
+
"Fable.Form.Simple.Bulma.IStandardField`3.RenderFieldZ43FEF6DC"(config: StandardRenderFieldConfig$2<string, AllergyFinderField_Attributes>): ReactElement;
|
|
104
|
+
MapFieldValues<NewValues>(update: ((arg0: Values) => $a)): IField$1<$a>;
|
|
105
|
+
}
|
|
106
|
+
export declare function AllergyFinderField_Field$1_$reflection(gen0: TypeInfo): TypeInfo;
|
|
107
|
+
export declare function AllergyFinderField_Field$1_$ctor_2F8EC839<Values>(innerField: Field$3<AllergyFinderField_Attributes, string, Values>): AllergyFinderField_Field$1<Values>;
|
|
108
|
+
export declare function Form_allergyFinderField<Values, Output>(config: FieldConfig$4<AllergyFinderField_Attributes, string, Values, Output>): Form$3<Values, Output, IField$1<Values>>;
|
|
109
|
+
export declare const Form_pluginConfig: Spec_PluginFieldConfig;
|
|
110
|
+
export declare const Form_PropertyKeys_AllergyCount: Shared_PluginPropertyKey;
|
|
111
|
+
export declare const Form_PropertyKeys_HasSevereAllergy: Shared_PluginPropertyKey;
|
|
112
|
+
export declare const Form_PropertyKeys_AllergiesJson: Shared_PluginPropertyKey;
|
|
113
|
+
export declare const Form_enhancedAllergyConverter: IPluginValueConverter;
|
|
114
|
+
export declare function Form_designerPreview(props: RenderPreviewProps$1<Spec_FieldType_$union>): ReactElement;
|
|
115
|
+
export declare function Form_markdownRenderer(field: Spec_FormField$1<Spec_FieldType_$union>, fieldDetails: FieldDetails): string;
|
|
116
|
+
//# sourceMappingURL=AllergyFinderField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AllergyFinderField.d.ts","sourceRoot":"","sources":["../../../../FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,MAAM,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AACxG,OAAO,EAAoG,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACvK,OAAO,EAAiF,mBAAmB,EAAkI,sBAAsB,EAAE,MAAM,2DAA2D,CAAC;AACvU,OAAO,EAAgG,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC7J,OAAO,EAA6J,UAAU,EAAE,MAAM,qC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/List.js";
|
|
3
|
+
export declare function searchAllergens(apiFetch: ((arg0: string) => Promise<string>), query: string): Promise<FSharpList<OpenFdaSearchResult>>;
|
|
4
|
+
export declare function getAllergenInsights(apiFetch: ((arg0: string) => Promise<string>), substanceName: string): Promise<AllergenInsights>;
|
|
5
|
+
//# sourceMappingURL=OpenFdaClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenFdaClient.d.ts","sourceRoot":"","sources":["../../../../FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAA8B,mBAAmB,EAA6H,MAAM,2DAA2D,CAAC;AAIzQ,OAAO,EAAoB,UAAU,EAAE,MAAM,qCAAqC,CAAC;AA+CnF,wBAAgB,eAAe,CAAC,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC,CAsBtI;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAuBnI"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Record } from "@fable-org/fable-library-js/Types.js";
|
|
2
|
-
import {
|
|
3
|
-
import { float64 } from "@fable-org/fable-library-js/Int32.js";
|
|
2
|
+
import { VitalsConfig } from "./VitalsLogic.js";
|
|
4
3
|
import { IComparable, IEquatable } from "@fable-org/fable-library-js/Util.js";
|
|
5
|
-
import { TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
|
|
6
4
|
import { Field$3, IAttributes } from "../../../fable_modules/Fable.Form.3.0.0/Field.fs.js";
|
|
5
|
+
import { TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
|
|
7
6
|
import { Form$3, FieldConfig$4 } from "../../../fable_modules/Fable.Form.3.0.0/Base.fs.js";
|
|
8
7
|
import { ReactElement } from "../../../fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.js";
|
|
9
8
|
import { IStandardField$3, IField$1, StandardRenderFieldConfig$2 } from "../../../fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.js";
|
|
@@ -11,53 +10,15 @@ import { Spec_FormField$1, Spec_FieldType_$union, Shared_PluginPropertyKey, Spec
|
|
|
11
10
|
import { IPluginValueConverter } from "../../../FormSpec.FS/PluginInterface.js";
|
|
12
11
|
import { RenderPreviewProps$1 } from "../../../FormSpec.FS/Interfaces.js";
|
|
13
12
|
import { FieldDetails } from "../../../FormSpec.FS/Designer.js";
|
|
14
|
-
export declare class VitalsField_VitalsData extends Record implements IEquatable<VitalsField_VitalsData>, IComparable<VitalsField_VitalsData> {
|
|
15
|
-
readonly Temperature: Option<float64>;
|
|
16
|
-
readonly SystolicBP: Option<float64>;
|
|
17
|
-
readonly DiastolicBP: Option<float64>;
|
|
18
|
-
readonly Pulse: Option<float64>;
|
|
19
|
-
readonly Respiration: Option<float64>;
|
|
20
|
-
readonly OxygenSaturation: Option<float64>;
|
|
21
|
-
readonly PainScale: Option<float64>;
|
|
22
|
-
constructor(Temperature: Option<float64>, SystolicBP: Option<float64>, DiastolicBP: Option<float64>, Pulse: Option<float64>, Respiration: Option<float64>, OxygenSaturation: Option<float64>, PainScale: Option<float64>);
|
|
23
|
-
}
|
|
24
|
-
export declare function VitalsField_VitalsData_$reflection(): TypeInfo;
|
|
25
|
-
export declare class VitalsField_VitalsConfig extends Record implements IEquatable<VitalsField_VitalsConfig>, IComparable<VitalsField_VitalsConfig> {
|
|
26
|
-
readonly IncludeTemperature: boolean;
|
|
27
|
-
readonly IncludeBP: boolean;
|
|
28
|
-
readonly IncludePulse: boolean;
|
|
29
|
-
readonly IncludeRespiration: boolean;
|
|
30
|
-
readonly IncludeOxygenSat: boolean;
|
|
31
|
-
readonly IncludePainScale: boolean;
|
|
32
|
-
constructor(IncludeTemperature: boolean, IncludeBP: boolean, IncludePulse: boolean, IncludeRespiration: boolean, IncludeOxygenSat: boolean, IncludePainScale: boolean);
|
|
33
|
-
}
|
|
34
|
-
export declare function VitalsField_VitalsConfig_$reflection(): TypeInfo;
|
|
35
13
|
export declare class VitalsField_Attributes extends Record implements IEquatable<VitalsField_Attributes>, IComparable<VitalsField_Attributes>, IAttributes {
|
|
36
14
|
readonly FieldId: string;
|
|
37
15
|
readonly Label: string;
|
|
38
|
-
readonly Config:
|
|
39
|
-
constructor(FieldId: string, Label: string, Config:
|
|
16
|
+
readonly Config: VitalsConfig;
|
|
17
|
+
constructor(FieldId: string, Label: string, Config: VitalsConfig);
|
|
40
18
|
GetFieldId(): string;
|
|
41
19
|
}
|
|
42
20
|
export declare function VitalsField_Attributes_$reflection(): TypeInfo;
|
|
43
21
|
export declare function VitalsField_form<Values, Field, Output>(): ((arg0: ((arg0: Field$3<VitalsField_Attributes, string, Values>) => Field)) => ((arg0: FieldConfig$4<VitalsField_Attributes, string, Values, Output>) => Form$3<Values, Output, Field>));
|
|
44
|
-
export declare function VitalsField_isValidTemperature(temp: float64): boolean;
|
|
45
|
-
export declare function VitalsField_isValidSystolicBP(sys: float64): boolean;
|
|
46
|
-
export declare function VitalsField_isValidDiastolicBP(dia: float64): boolean;
|
|
47
|
-
export declare function VitalsField_isValidPulse(pulse: float64): boolean;
|
|
48
|
-
export declare function VitalsField_isValidRespiration(resp: float64): boolean;
|
|
49
|
-
export declare function VitalsField_isValidOxygenSat(sat: float64): boolean;
|
|
50
|
-
export declare function VitalsField_isValidPainScale(pain: float64): boolean;
|
|
51
|
-
export declare function VitalsField_isCriticalTemperature(temp: float64): boolean;
|
|
52
|
-
export declare function VitalsField_isNormalTemperature(temp: float64): boolean;
|
|
53
|
-
export declare function VitalsField_isCriticalSystolicBP(sys: float64): boolean;
|
|
54
|
-
export declare function VitalsField_isCriticalDiastolicBP(dia: float64): boolean;
|
|
55
|
-
export declare function VitalsField_isCriticalPulse(pulse: float64): boolean;
|
|
56
|
-
export declare function VitalsField_isCriticalRespiration(resp: float64): boolean;
|
|
57
|
-
export declare function VitalsField_isCriticalOxygenSat(sat: float64): boolean;
|
|
58
|
-
export declare function VitalsField_parseVitalsData(value: string): VitalsField_VitalsData;
|
|
59
|
-
export declare function VitalsField_serializeVitalsData(vitalsData: VitalsField_VitalsData): string;
|
|
60
|
-
export declare function VitalsField_getVitalStatus(value: Option<float64>, isValid: ((arg0: float64) => boolean), isCritical: ((arg0: float64) => boolean), isNormal: Option<((arg0: float64) => boolean)>): string;
|
|
61
22
|
export declare function VitalsField_VitalsFieldComponent(config: StandardRenderFieldConfig$2<string, VitalsField_Attributes>): ReactElement;
|
|
62
23
|
export declare class VitalsField_Field$1<Values> extends IStandardField$3<Values, string, VitalsField_Attributes> implements IField$1<Values> {
|
|
63
24
|
readonly innerField_1: Field$3<VitalsField_Attributes, string, Values>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VitalsField.d.ts","sourceRoot":"","sources":["../../../../FormSpec.TS/plugins/vitals/src/VitalsField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,
|
|
1
|
+
{"version":3,"file":"VitalsField.d.ts","sourceRoot":"","sources":["../../../../FormSpec.TS/plugins/vitals/src/VitalsField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAqX,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACna,OAAO,EAAqB,WAAW,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjG,OAAO,EAAa,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AACtG,OAAO,EAAwC,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC3G,OAAO,EAAE,MAAM,EAAE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AA+F,CAAC;AAE5I,eAAO,MAAM,kCAAkC,EAAE,wBAA+F,CAAC;AAEjJ,eAAO,MAAM,2BAA2B,EAAE,wBAA+F,CAAC;AAE1I,eAAO,MAAM,4BAA4B,EAAE,qBAyHzC,CAAC;AAEH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,oBAAoB,CAAC,qBAAqB,CAAC,GAAG,YAAY,CA+BrG;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,gBAAgB,CAAC,qBAAqB,CAAC,EAAE,YAAY,EAAE,YAAY,GAAG,MAAM,CAsDxH"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Record } from "@fable-org/fable-library-js/Types.js";
|
|
2
|
+
import { Option } from "@fable-org/fable-library-js/Option.js";
|
|
3
|
+
import { float64 } from "@fable-org/fable-library-js/Int32.js";
|
|
4
|
+
import { IComparable, IEquatable } from "@fable-org/fable-library-js/Util.js";
|
|
5
|
+
import { TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
|
|
6
|
+
import { FSharpList } from "@fable-org/fable-library-js/List.js";
|
|
7
|
+
import { Shared_PluginDataProperty } from "../../../FormSpec.FS/FormSpec.js";
|
|
8
|
+
export declare class VitalsData extends Record implements IEquatable<VitalsData>, IComparable<VitalsData> {
|
|
9
|
+
readonly Temperature: Option<float64>;
|
|
10
|
+
readonly SystolicBP: Option<float64>;
|
|
11
|
+
readonly DiastolicBP: Option<float64>;
|
|
12
|
+
readonly Pulse: Option<float64>;
|
|
13
|
+
readonly Respiration: Option<float64>;
|
|
14
|
+
readonly OxygenSaturation: Option<float64>;
|
|
15
|
+
readonly PainScale: Option<float64>;
|
|
16
|
+
constructor(Temperature: Option<float64>, SystolicBP: Option<float64>, DiastolicBP: Option<float64>, Pulse: Option<float64>, Respiration: Option<float64>, OxygenSaturation: Option<float64>, PainScale: Option<float64>);
|
|
17
|
+
}
|
|
18
|
+
export declare function VitalsData_$reflection(): TypeInfo;
|
|
19
|
+
export declare class VitalsConfig extends Record implements IEquatable<VitalsConfig>, IComparable<VitalsConfig> {
|
|
20
|
+
readonly IncludeTemperature: boolean;
|
|
21
|
+
readonly IncludeBP: boolean;
|
|
22
|
+
readonly IncludePulse: boolean;
|
|
23
|
+
readonly IncludeRespiration: boolean;
|
|
24
|
+
readonly IncludeOxygenSat: boolean;
|
|
25
|
+
readonly IncludePainScale: boolean;
|
|
26
|
+
constructor(IncludeTemperature: boolean, IncludeBP: boolean, IncludePulse: boolean, IncludeRespiration: boolean, IncludeOxygenSat: boolean, IncludePainScale: boolean);
|
|
27
|
+
}
|
|
28
|
+
export declare function VitalsConfig_$reflection(): TypeInfo;
|
|
29
|
+
export declare function isValidTemperature(temp: float64): boolean;
|
|
30
|
+
export declare function isValidSystolicBP(sys: float64): boolean;
|
|
31
|
+
export declare function isValidDiastolicBP(dia: float64): boolean;
|
|
32
|
+
export declare function isValidPulse(pulse: float64): boolean;
|
|
33
|
+
export declare function isValidRespiration(resp: float64): boolean;
|
|
34
|
+
export declare function isValidOxygenSat(sat: float64): boolean;
|
|
35
|
+
export declare function isValidPainScale(pain: float64): boolean;
|
|
36
|
+
export declare function isCriticalTemperature(temp: float64): boolean;
|
|
37
|
+
export declare function isCriticalSystolicBP(sys: float64): boolean;
|
|
38
|
+
export declare function isCriticalDiastolicBP(dia: float64): boolean;
|
|
39
|
+
export declare function isCriticalPulse(pulse: float64): boolean;
|
|
40
|
+
export declare function isCriticalRespiration(resp: float64): boolean;
|
|
41
|
+
export declare function isCriticalOxygenSat(sat: float64): boolean;
|
|
42
|
+
export declare function isNormalTemperature(temp: float64): boolean;
|
|
43
|
+
export declare function parseVitalsData(value: string): VitalsData;
|
|
44
|
+
export declare function serializeVitalsData(vitalsData: VitalsData): string;
|
|
45
|
+
export declare function getVitalStatus(value: Option<float64>, isValid: ((arg0: float64) => boolean), isCritical: ((arg0: float64) => boolean), isNormal: Option<((arg0: float64) => boolean)>): string;
|
|
46
|
+
export declare class VitalPropertyValidation extends Record implements IEquatable<VitalPropertyValidation>, IComparable<VitalPropertyValidation> {
|
|
47
|
+
readonly PropertyName: string;
|
|
48
|
+
readonly DisplayName: string;
|
|
49
|
+
readonly Unit: string;
|
|
50
|
+
readonly Value: string;
|
|
51
|
+
readonly IsValid: boolean;
|
|
52
|
+
readonly ClinicalStatus: string;
|
|
53
|
+
readonly Message: string;
|
|
54
|
+
constructor(PropertyName: string, DisplayName: string, Unit: string, Value: string, IsValid: boolean, ClinicalStatus: string, Message: string);
|
|
55
|
+
}
|
|
56
|
+
export declare function VitalPropertyValidation_$reflection(): TypeInfo;
|
|
57
|
+
export declare class VitalsValidationResult extends Record implements IEquatable<VitalsValidationResult>, IComparable<VitalsValidationResult> {
|
|
58
|
+
readonly IsValid: boolean;
|
|
59
|
+
readonly HasCriticalValues: boolean;
|
|
60
|
+
readonly Properties: VitalPropertyValidation[];
|
|
61
|
+
constructor(IsValid: boolean, HasCriticalValues: boolean, Properties: VitalPropertyValidation[]);
|
|
62
|
+
}
|
|
63
|
+
export declare function VitalsValidationResult_$reflection(): TypeInfo;
|
|
64
|
+
/**
|
|
65
|
+
* Validate a single vital property by name and raw string value.
|
|
66
|
+
*/
|
|
67
|
+
export declare function validateVitalsProperty(propertyName: string, rawValue: string): VitalPropertyValidation;
|
|
68
|
+
/**
|
|
69
|
+
* Validate a full set of vitals plugin data. Returns per-property clinical results.
|
|
70
|
+
*/
|
|
71
|
+
export declare function validateVitalsPluginData(properties: FSharpList<Shared_PluginDataProperty>): VitalsValidationResult;
|
|
72
|
+
//# sourceMappingURL=VitalsLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VitalsLogic.d.ts","sourceRoot":"","sources":["../../../../FormSpec.TS/plugins/vitals/src/VitalsLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAqC,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAClG,OAAO,EAAE,OAAO,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CAAC,sBAAsB,CAAC,EAAE,WAAW,CAAC,sBAAsB,CAAC;IACjI,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,uBAAuB,EAAE,CAAC;gBACnC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,UAAU,EAAE,uBAAuB,EAAE;CAMlG;AAED,wBAAgB,kCAAkC,IAAI,QAAQ,CAE7D;AA4BD;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,uBAAuB,CAkCtG;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,UAAU,CAAC,yBAAyB,CAAC,GAAG,sBAAsB,CAWlH"}
|
|
@@ -6,7 +6,7 @@ import { Spec_FormSpec$1, Spec_MatrixInfo, Spec_MultiChoiceInfo, Spec_SingleChoi
|
|
|
6
6
|
import { int32 } from "@fable-org/fable-library-js/Int32.js";
|
|
7
7
|
import { FSharpResult$2_$union, FSharpResult$2_Ok, FSharpResult$2_Error } from "@fable-org/fable-library-js/Result.js";
|
|
8
8
|
import { FSharpMap, empty as empty_1, add } from "@fable-org/fable-library-js/Map.js";
|
|
9
|
-
import { Auto_generateBoxedEncoder_437914C6, toString } from "../
|
|
9
|
+
import { Auto_generateBoxedEncoder_437914C6, toString } from "../Thoth.Json/packages/Thoth.Json/Encode.js";
|
|
10
10
|
import { list_type, string_type } from "@fable-org/fable-library-js/Reflection.js";
|
|
11
11
|
import { comparePrimitives } from "@fable-org/fable-library-js/Util.js";
|
|
12
12
|
|
|
@@ -379,7 +379,7 @@ export function Converters_formSpecFromLibrary<UserField>(spec: Spec_FormSpec$1<
|
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
export function Converters_createFormField<UserField>(order: int32, label: string, fieldType: UserField): Spec_FormField$1<UserField> {
|
|
382
|
-
return new Spec_FormField$1(order, new Shared_FieldKey(newGuid()), label, undefined, undefined, false, false, false,
|
|
382
|
+
return new Spec_FormField$1(order, new Shared_FieldKey(newGuid()), label, undefined, undefined, false, false, false, fieldType, undefined);
|
|
383
383
|
}
|
|
384
384
|
|
|
385
385
|
export function Converters_fieldToDetails<UserField>(field: Spec_FormField$1<UserField>, value: Shared_FieldValue_$union, options: FSharpList<Shared_FieldOption>): FieldDetails {
|
|
@@ -135,32 +135,36 @@ export class Shared_FieldAnswer extends Record implements IEquatable<Shared_Fiel
|
|
|
135
135
|
readonly FieldKey: Shared_FieldKey;
|
|
136
136
|
readonly Description: string;
|
|
137
137
|
readonly Value: string;
|
|
138
|
-
|
|
138
|
+
readonly Documentation: Option<string>;
|
|
139
|
+
constructor(FieldKey: Shared_FieldKey, Description: string, Value: string, Documentation: Option<string>) {
|
|
139
140
|
super();
|
|
140
141
|
this.FieldKey = FieldKey;
|
|
141
142
|
this.Description = Description;
|
|
142
143
|
this.Value = Value;
|
|
144
|
+
this.Documentation = Documentation;
|
|
143
145
|
}
|
|
144
146
|
}
|
|
145
147
|
|
|
146
148
|
export function Shared_FieldAnswer_$reflection(): TypeInfo {
|
|
147
|
-
return record_type("F1.Studio.Shared.FieldAnswer", [], Shared_FieldAnswer, () => [["FieldKey", Shared_FieldKey_$reflection()], ["Description", string_type], ["Value", string_type]]);
|
|
149
|
+
return record_type("F1.Studio.Shared.FieldAnswer", [], Shared_FieldAnswer, () => [["FieldKey", Shared_FieldKey_$reflection()], ["Description", string_type], ["Value", string_type], ["Documentation", option_type(string_type)]]);
|
|
148
150
|
}
|
|
149
151
|
|
|
150
152
|
export class Shared_MatrixAnswer extends Record implements IEquatable<Shared_MatrixAnswer>, IComparable<Shared_MatrixAnswer> {
|
|
151
153
|
readonly FieldKey: Shared_FieldKey;
|
|
152
154
|
readonly Description: string;
|
|
153
155
|
readonly Values: FSharpMap<Shared_MatrixItemKey, string>;
|
|
154
|
-
|
|
156
|
+
readonly Documentation: Option<string>;
|
|
157
|
+
constructor(FieldKey: Shared_FieldKey, Description: string, Values: FSharpMap<Shared_MatrixItemKey, string>, Documentation: Option<string>) {
|
|
155
158
|
super();
|
|
156
159
|
this.FieldKey = FieldKey;
|
|
157
160
|
this.Description = Description;
|
|
158
161
|
this.Values = Values;
|
|
162
|
+
this.Documentation = Documentation;
|
|
159
163
|
}
|
|
160
164
|
}
|
|
161
165
|
|
|
162
166
|
export function Shared_MatrixAnswer_$reflection(): TypeInfo {
|
|
163
|
-
return record_type("F1.Studio.Shared.MatrixAnswer", [], Shared_MatrixAnswer, () => [["FieldKey", Shared_FieldKey_$reflection()], ["Description", string_type], ["Values", class_type("Microsoft.FSharp.Collections.FSharpMap`2", [Shared_MatrixItemKey_$reflection(), string_type])]]);
|
|
167
|
+
return record_type("F1.Studio.Shared.MatrixAnswer", [], Shared_MatrixAnswer, () => [["FieldKey", Shared_FieldKey_$reflection()], ["Description", string_type], ["Values", class_type("Microsoft.FSharp.Collections.FSharpMap`2", [Shared_MatrixItemKey_$reflection(), string_type])], ["Documentation", option_type(string_type)]]);
|
|
164
168
|
}
|
|
165
169
|
|
|
166
170
|
export class Shared_PluginDataProperty extends Record implements IEquatable<Shared_PluginDataProperty>, IComparable<Shared_PluginDataProperty> {
|
|
@@ -1174,10 +1178,9 @@ export class Spec_FormField$1<FieldType> extends Record implements IEquatable<Sp
|
|
|
1174
1178
|
readonly IsOptional: boolean;
|
|
1175
1179
|
readonly IsDeprecated: boolean;
|
|
1176
1180
|
readonly NeedsDocumentation: boolean;
|
|
1177
|
-
readonly Documentation: Option<string>;
|
|
1178
1181
|
readonly FieldType: FieldType;
|
|
1179
1182
|
readonly Value: Option<Shared_FieldValue_$union>;
|
|
1180
|
-
constructor(FieldOrder: int32, FieldKey: Shared_FieldKey, Label: string, Notes: Option<string>, DependsOn: Option<Spec_DependsOn>, IsOptional: boolean, IsDeprecated: boolean, NeedsDocumentation: boolean,
|
|
1183
|
+
constructor(FieldOrder: int32, FieldKey: Shared_FieldKey, Label: string, Notes: Option<string>, DependsOn: Option<Spec_DependsOn>, IsOptional: boolean, IsDeprecated: boolean, NeedsDocumentation: boolean, FieldType: FieldType, Value: Option<Shared_FieldValue_$union>) {
|
|
1181
1184
|
super();
|
|
1182
1185
|
this.FieldOrder = (FieldOrder | 0);
|
|
1183
1186
|
this.FieldKey = FieldKey;
|
|
@@ -1187,14 +1190,13 @@ export class Spec_FormField$1<FieldType> extends Record implements IEquatable<Sp
|
|
|
1187
1190
|
this.IsOptional = IsOptional;
|
|
1188
1191
|
this.IsDeprecated = IsDeprecated;
|
|
1189
1192
|
this.NeedsDocumentation = NeedsDocumentation;
|
|
1190
|
-
this.Documentation = Documentation;
|
|
1191
1193
|
this.FieldType = FieldType;
|
|
1192
1194
|
this.Value = Value;
|
|
1193
1195
|
}
|
|
1194
1196
|
}
|
|
1195
1197
|
|
|
1196
1198
|
export function Spec_FormField$1_$reflection(gen0: TypeInfo): TypeInfo {
|
|
1197
|
-
return record_type("F1.Studio.Spec.FormField`1", [gen0], Spec_FormField$1, () => [["FieldOrder", int32_type], ["FieldKey", Shared_FieldKey_$reflection()], ["Label", string_type], ["Notes", option_type(string_type)], ["DependsOn", option_type(Spec_DependsOn_$reflection())], ["IsOptional", bool_type], ["IsDeprecated", bool_type], ["NeedsDocumentation", bool_type], ["
|
|
1199
|
+
return record_type("F1.Studio.Spec.FormField`1", [gen0], Spec_FormField$1, () => [["FieldOrder", int32_type], ["FieldKey", Shared_FieldKey_$reflection()], ["Label", string_type], ["Notes", option_type(string_type)], ["DependsOn", option_type(Spec_DependsOn_$reflection())], ["IsOptional", bool_type], ["IsDeprecated", bool_type], ["NeedsDocumentation", bool_type], ["FieldType", gen0], ["Value", option_type(Shared_FieldValue_$reflection())]]);
|
|
1198
1200
|
}
|
|
1199
1201
|
|
|
1200
1202
|
export class Spec_FormStep$1<FieldType> extends Record implements IEquatable<Spec_FormStep$1<FieldType>>, IComparable<Spec_FormStep$1<FieldType>> {
|
|
@@ -8,7 +8,7 @@ import { newGuid } from "@fable-org/fable-library-js/Guid.js";
|
|
|
8
8
|
import { orElse, map as map_1, filter, defaultArg, value as value_2, Option, bind } from "@fable-org/fable-library-js/Option.js";
|
|
9
9
|
import { isNullOrEmpty, join } from "@fable-org/fable-library-js/String.js";
|
|
10
10
|
import { map as map_2, toList as toList_1 } from "@fable-org/fable-library-js/Set.js";
|
|
11
|
-
import { Auto_generateBoxedEncoder_437914C6, toString } from "../
|
|
11
|
+
import { Auto_generateBoxedEncoder_437914C6, toString } from "../Thoth.Json/packages/Thoth.Json/Encode.js";
|
|
12
12
|
import { list_type } from "@fable-org/fable-library-js/Reflection.js";
|
|
13
13
|
import { tryParse } from "@fable-org/fable-library-js/Double.js";
|
|
14
14
|
import { FSharpRef } from "@fable-org/fable-library-js/Types.js";
|
|
@@ -24,7 +24,7 @@ export function buildFormSpecFromResultStepsMap(details: FormSpecMetadata, steps
|
|
|
24
24
|
const stepOrder: int32 = tupledArg_1[0].fields[0] | 0;
|
|
25
25
|
return new Spec_FormStep$1(stepOrder, `Step ${stepOrder}`, mapIndexed<[Shared_FieldKey, FieldDetails$1<Spec_FieldType_$union>], Spec_FormField$1<Spec_FieldType_$union>>((i: int32, tupledArg_3: [Shared_FieldKey, FieldDetails$1<Spec_FieldType_$union>]): Spec_FormField$1<Spec_FieldType_$union> => {
|
|
26
26
|
const fd_1: FieldDetails$1<Spec_FieldType_$union> = tupledArg_3[1];
|
|
27
|
-
return new Spec_FormField$1(i + 1, tupledArg_3[0], fd_1.Label, undefined, undefined, false, false, false,
|
|
27
|
+
return new Spec_FormField$1(i + 1, tupledArg_3[0], fd_1.Label, undefined, undefined, false, false, false, fd_1.FieldType, fd_1.FieldValue);
|
|
28
28
|
}, sortBy<[Shared_FieldKey, FieldDetails$1<Spec_FieldType_$union>], int32>((tupledArg_2: [Shared_FieldKey, FieldDetails$1<Spec_FieldType_$union>]): int32 => tupledArg_2[1].FieldOrder, toList<Shared_FieldKey, FieldDetails$1<Spec_FieldType_$union>>(tupledArg_1[1]), {
|
|
29
29
|
Compare: comparePrimitives,
|
|
30
30
|
})));
|
|
@@ -560,15 +560,15 @@ export function fieldValueToConditionValue(fieldValue: Shared_FieldValue_$union)
|
|
|
560
560
|
export function conditionValueToFieldValue(conditionValue: Shared_ConditionValue_$union, fieldKey: Shared_FieldKey, fieldLabel: string): Shared_FieldValue_$union {
|
|
561
561
|
switch (conditionValue.tag) {
|
|
562
562
|
case /* Multiple */ 1:
|
|
563
|
-
return Shared_FieldValue_Multiple(map_2<string, Shared_FieldAnswer>((value_1: string): Shared_FieldAnswer => (new Shared_FieldAnswer(fieldKey, fieldLabel, value_1)), conditionValue.fields[0], {
|
|
563
|
+
return Shared_FieldValue_Multiple(map_2<string, Shared_FieldAnswer>((value_1: string): Shared_FieldAnswer => (new Shared_FieldAnswer(fieldKey, fieldLabel, value_1, undefined)), conditionValue.fields[0], {
|
|
564
564
|
Compare: compare,
|
|
565
565
|
}));
|
|
566
566
|
case /* Matrix */ 2:
|
|
567
|
-
return Shared_FieldValue_Matrix(new Shared_MatrixAnswer(fieldKey, fieldLabel, conditionValue.fields[0]));
|
|
567
|
+
return Shared_FieldValue_Matrix(new Shared_MatrixAnswer(fieldKey, fieldLabel, conditionValue.fields[0], undefined));
|
|
568
568
|
case /* PluginData */ 3:
|
|
569
569
|
return Shared_FieldValue_PluginData(singleton(conditionValue.fields[0]));
|
|
570
570
|
default:
|
|
571
|
-
return Shared_FieldValue_Single(new Shared_FieldAnswer(fieldKey, fieldLabel, conditionValue.fields[0]));
|
|
571
|
+
return Shared_FieldValue_Single(new Shared_FieldAnswer(fieldKey, fieldLabel, conditionValue.fields[0], undefined));
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
|