@f1studio/form-spec 5.0.0-alpha.101
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/Designer.d.ts +89 -0
- package/FormSpec.TS/Components/HelloComponent.js +68 -0
- package/FormSpec.TS/Components/HelloComponent.js.map +1 -0
- package/FormSpec.TS/Components/HelloComponent.ts.map +1 -0
- package/FormSpec.TS/Designer.js +526 -0
- package/FormSpec.TS/Designer.js.map +1 -0
- package/FormSpec.TS/Designer.ts.map +1 -0
- package/FormSpec.TS/FormSpec.js +5400 -0
- package/FormSpec.TS/FormSpec.js.map +1 -0
- package/FormSpec.TS/FormSpec.ts.map +1 -0
- package/FormSpec.TS/FormSpecHelpers.js +382 -0
- package/FormSpec.TS/FormSpecHelpers.js.map +1 -0
- package/FormSpec.TS/FormSpecHelpers.ts.map +1 -0
- package/FormSpec.TS/Helpers.js +732 -0
- package/FormSpec.TS/Helpers.js.map +1 -0
- package/FormSpec.TS/Helpers.ts.map +1 -0
- package/FormSpec.TS/Interfaces.js +257 -0
- package/FormSpec.TS/Interfaces.js.map +1 -0
- package/FormSpec.TS/Interfaces.ts.map +1 -0
- package/FormSpec.TS/Interop/FormSpec.Api.Helpers.js +854 -0
- package/FormSpec.TS/Interop/FormSpec.Api.Helpers.js.map +1 -0
- package/FormSpec.TS/Interop/FormSpec.Api.Helpers.ts.map +1 -0
- package/FormSpec.TS/Interop/FormSpec.Api.Option.js +1961 -0
- package/FormSpec.TS/Interop/FormSpec.Api.Option.js.map +1 -0
- package/FormSpec.TS/Interop/FormSpec.Api.Option.ts.map +1 -0
- package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.js +1367 -0
- package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.js.map +1 -0
- package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.ts.map +1 -0
- package/FormSpec.TS/Logging/LogTypes.js +347 -0
- package/FormSpec.TS/Logging/LogTypes.js.map +1 -0
- package/FormSpec.TS/Logging/LogTypes.ts.map +1 -0
- package/FormSpec.TS/Migrator.js +230 -0
- package/FormSpec.TS/Migrator.js.map +1 -0
- package/FormSpec.TS/Migrator.ts.map +1 -0
- package/FormSpec.TS/PathwayDataExtractor.js +361 -0
- package/FormSpec.TS/PathwayDataExtractor.js.map +1 -0
- package/FormSpec.TS/PathwayDataExtractor.ts.map +1 -0
- package/FormSpec.TS/PathwayExecutor.js +1321 -0
- package/FormSpec.TS/PathwayExecutor.js.map +1 -0
- package/FormSpec.TS/PathwayExecutor.ts.map +1 -0
- package/FormSpec.TS/PathwayValidator.js +346 -0
- package/FormSpec.TS/PathwayValidator.js.map +1 -0
- package/FormSpec.TS/PathwayValidator.ts.map +1 -0
- package/FormSpec.TS/PluginInterface.js +171 -0
- package/FormSpec.TS/PluginInterface.js.map +1 -0
- package/FormSpec.TS/PluginInterface.ts.map +1 -0
- package/FormSpec.TS/Prelude.js +59 -0
- package/FormSpec.TS/Prelude.js.map +1 -0
- package/FormSpec.TS/Prelude.ts.map +1 -0
- package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.js +958 -0
- package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.js.map +1 -0
- package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.ts.map +1 -0
- package/FormSpec.TS/Renderers/MermaidRenderer.js +228 -0
- package/FormSpec.TS/Renderers/MermaidRenderer.js.map +1 -0
- package/FormSpec.TS/Renderers/MermaidRenderer.ts.map +1 -0
- package/FormSpec.TS/Renderers/PathwayRenderers.js +190 -0
- package/FormSpec.TS/Renderers/PathwayRenderers.js.map +1 -0
- package/FormSpec.TS/Renderers/PathwayRenderers.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs +511 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs.js +437 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs +16 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs.js +73 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs +50 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs.js +72 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Fable.Form.fableproj +28 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs +24 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs.js +56 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Fable.Form.Simple.fableproj +31 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs +178 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.js +464 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Extensions.fs +17 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs +152 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.js +25 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Types.fableproj +28 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs +218 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.js +37 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.Types.fableproj +27 -0
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs +82 -0
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.js +7 -0
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/BorderStyle.fs +59 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs +154 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs.js +32 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Feliz.fableproj +42 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Fonts.fs +240 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/GridTypes.fs +24 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Html.fs +826 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs +83 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.js +292 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs +65 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs.js +229 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Length.fs +91 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Locale.fs +876 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs +4080 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs.js +133 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs +656 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.js +561 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs +25 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs.js +46 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactInterop.js +63 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactInterop.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs +41 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs.js +7 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs +53 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs.js +7 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Styles.fs +5740 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs +1455 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs.js +39 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/TextDecorationLine.fs +13 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/TextDecorationStyle.fs +33 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Transform.fs +181 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/TransformOrigin.fs +17 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/TransitionProperty.fs +162 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs +13 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs.js +7 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs +1768 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs.js +2337 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs +811 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.js +465 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs +47 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs.js +18 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Thoth.Json.fableproj +34 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs +68 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs.js +355 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/project_cracked.json +1 -0
- package/FormSpec.d.ts +1257 -0
- package/FormSpecHelpers.d.ts +50 -0
- package/Helpers.d.ts +147 -0
- package/Interfaces.d.ts +70 -0
- package/Interop/FormSpec.Api.Helpers.d.ts +247 -0
- package/Interop/FormSpec.Api.Helpers.d.ts.map +1 -0
- package/Interop/FormSpec.Api.Option.d.ts +384 -0
- package/Interop/FormSpec.Api.Option.d.ts.map +1 -0
- package/Interop/FormSpec.Values.Api.Option.d.ts +324 -0
- package/Interop/FormSpec.Values.Api.Option.d.ts.map +1 -0
- package/Migrator.d.ts +59 -0
- package/PathwayDataExtractor.d.ts +19 -0
- package/PathwayExecutor.d.ts +210 -0
- package/PathwayValidator.d.ts +52 -0
- package/PluginInterface.d.ts +36 -0
- package/Prelude.d.ts +11 -0
- package/README.TS.md +622 -0
- package/README.md +85 -0
- package/package.json +39 -0
- package/src/Components/HelloComponent.ts +48 -0
- package/src/Components/HelloComponent.ts.map +1 -0
- package/src/Designer.ts +389 -0
- package/src/Designer.ts.map +1 -0
- package/src/FormSpec.ts +3114 -0
- package/src/FormSpec.ts.map +1 -0
- package/src/FormSpecHelpers.ts +374 -0
- package/src/FormSpecHelpers.ts.map +1 -0
- package/src/Helpers.ts +765 -0
- package/src/Helpers.ts.map +1 -0
- package/src/Interfaces.ts +166 -0
- package/src/Interfaces.ts.map +1 -0
- package/src/Interop/FormSpec.Api.Helpers.ts +872 -0
- package/src/Interop/FormSpec.Api.Helpers.ts.map +1 -0
- package/src/Interop/FormSpec.Api.Option.ts +1618 -0
- package/src/Interop/FormSpec.Api.Option.ts.map +1 -0
- package/src/Interop/FormSpec.Values.Api.Option.ts +1214 -0
- package/src/Interop/FormSpec.Values.Api.Option.ts.map +1 -0
- package/src/Logging/LogTypes.ts +212 -0
- package/src/Logging/LogTypes.ts.map +1 -0
- package/src/Migrator.ts +156 -0
- package/src/Migrator.ts.map +1 -0
- package/src/PathwayDataExtractor.ts +290 -0
- package/src/PathwayDataExtractor.ts.map +1 -0
- package/src/PathwayExecutor.ts +1102 -0
- package/src/PathwayExecutor.ts.map +1 -0
- package/src/PathwayValidator.ts +244 -0
- package/src/PathwayValidator.ts.map +1 -0
- package/src/PluginInterface.ts +79 -0
- package/src/PluginInterface.ts.map +1 -0
- package/src/Prelude.ts +21 -0
- package/src/Prelude.ts.map +1 -0
- package/src/Renderers/FormSpecMarkdownRenderer.ts +874 -0
- package/src/Renderers/FormSpecMarkdownRenderer.ts.map +1 -0
- package/src/Renderers/MermaidRenderer.ts +218 -0
- package/src/Renderers/MermaidRenderer.ts.map +1 -0
- package/src/Renderers/PathwayRenderers.ts +200 -0
- package/src/Renderers/PathwayRenderers.ts.map +1 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Option } from "@fable-org/fable-library-js/Option.js";
|
|
2
|
+
import { Spec_FormSpec$1, ClinicalPathway_TransitionCondition_$union, Shared_ConditionValue_$union, ClinicalPathway_FieldEvaluator_$union, Values_DynamicFormResultData$1, Shared_FieldKey, Spec_FieldType_$union, Shared_FieldValue_$union } from "./FormSpec.js";
|
|
3
|
+
import { FSharpList } from "@fable-org/fable-library-js/List.js";
|
|
4
|
+
import { float64 } from "@fable-org/fable-library-js/Int32.js";
|
|
5
|
+
import { FSharpResult$2_$union } from "@fable-org/fable-library-js/Result.js";
|
|
6
|
+
/**
|
|
7
|
+
* Extract a field value as a string from form data
|
|
8
|
+
*/
|
|
9
|
+
export declare function getFieldValue(fieldKey: Shared_FieldKey, formData: Values_DynamicFormResultData$1<Spec_FieldType_$union>): Option<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Check if a field has a specific value
|
|
12
|
+
*/
|
|
13
|
+
export declare function fieldHasValue(fieldKey: Shared_FieldKey, expectedValue: string, formData: Values_DynamicFormResultData$1<Spec_FieldType_$union>): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Check if a field value is greater than a threshold
|
|
16
|
+
*/
|
|
17
|
+
export declare function fieldGreaterThan(fieldKey: Shared_FieldKey, threshold: float64, formData: Values_DynamicFormResultData$1<Spec_FieldType_$union>): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Check if a field value is less than a threshold
|
|
20
|
+
*/
|
|
21
|
+
export declare function fieldLessThan(fieldKey: Shared_FieldKey, threshold: float64, formData: Values_DynamicFormResultData$1<Spec_FieldType_$union>): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Evaluate a single field condition (string-based, for backward compatibility)
|
|
24
|
+
*/
|
|
25
|
+
export declare function evaluateFieldCondition(fieldKey: Shared_FieldKey, evaluator: ClinicalPathway_FieldEvaluator_$union, expectedValue: string, formData: Values_DynamicFormResultData$1<Spec_FieldType_$union>): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Recursively evaluate a transition condition
|
|
28
|
+
*/
|
|
29
|
+
export declare function evaluateCondition(formData: Values_DynamicFormResultData$1<Spec_FieldType_$union>, condition: ClinicalPathway_TransitionCondition_$union): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Validate that a FormSpec only uses GUID field keys
|
|
32
|
+
*/
|
|
33
|
+
export declare function validateFormSpecFieldKeys(formSpec: Spec_FormSpec$1<Spec_FieldType_$union>): FSharpResult$2_$union<void, FSharpList<string>>;
|
|
34
|
+
/**
|
|
35
|
+
* Validate that form data only contains GUID field keys
|
|
36
|
+
*/
|
|
37
|
+
export declare function validateFormDataFieldKeys(formData: Values_DynamicFormResultData$1<Spec_FieldType_$union>): FSharpResult$2_$union<void, FSharpList<string>>;
|
|
38
|
+
/**
|
|
39
|
+
* Comprehensive validation that ensures FormSpec only works with GUID keys
|
|
40
|
+
*/
|
|
41
|
+
export declare function validateGuidOnlyFormSpec(formSpec: Spec_FormSpec$1<Spec_FieldType_$union>, formData: Option<Values_DynamicFormResultData$1<Spec_FieldType_$union>>): FSharpResult$2_$union<void, FSharpList<string>>;
|
|
42
|
+
/**
|
|
43
|
+
* Convert FieldValue to ConditionValue (extracts just the values, no FieldAnswer wrapper)
|
|
44
|
+
*/
|
|
45
|
+
export declare function fieldValueToConditionValue(fieldValue: Shared_FieldValue_$union): Shared_ConditionValue_$union;
|
|
46
|
+
/**
|
|
47
|
+
* Convert ConditionValue to FieldValue (for evaluation - needs fieldKey for FieldAnswer)
|
|
48
|
+
*/
|
|
49
|
+
export declare function conditionValueToFieldValue(conditionValue: Shared_ConditionValue_$union, fieldKey: Shared_FieldKey, fieldLabel: string): Shared_FieldValue_$union;
|
|
50
|
+
//# sourceMappingURL=FormSpecHelpers.d.ts.map
|
package/Helpers.d.ts
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { Values_StepOrder, Values_FieldDetails$1, Shared_FieldOption, Spec_FieldType_$union, Spec_FormSpec$1, Spec_FormField$1, Spec_FormStep$1, Shared_FieldKey } from "./FormSpec.js";
|
|
2
|
+
import { int32 } from "@fable-org/fable-library-js/Int32.js";
|
|
3
|
+
import { Option } from "@fable-org/fable-library-js/Option.js";
|
|
4
|
+
import { FSharpList } from "@fable-org/fable-library-js/List.js";
|
|
5
|
+
import { FSharpResult$2_$union } from "@fable-org/fable-library-js/Result.js";
|
|
6
|
+
import { FSharpMap } from "@fable-org/fable-library-js/Map.js";
|
|
7
|
+
import { FSharpSet } from "@fable-org/fable-library-js/Set.js";
|
|
8
|
+
export declare function Converters_fieldKeyToString(key: Shared_FieldKey): string;
|
|
9
|
+
export declare function Converters_stringToFieldKey(s: string): Shared_FieldKey;
|
|
10
|
+
/**
|
|
11
|
+
* Canonicalize a field label or key to snake_case for consistent field key generation
|
|
12
|
+
* Converts: "Patient Refused Administration of test" → "patient_refused_administration_of_test"
|
|
13
|
+
* This is the single source of truth for field name canonicalization
|
|
14
|
+
*/
|
|
15
|
+
export declare function Helpers_canonicalizeFieldKey(input: string): string;
|
|
16
|
+
export declare function Helpers_generateDeterministicGuid(fieldName: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Finds a form field by its label string in a specific step.
|
|
19
|
+
*/
|
|
20
|
+
export declare function Helpers_FieldFinders_findFormFieldInStepByLabelString<FieldType>(label: string, stepNumber: int32, formSpec: Spec_FormSpec$1<FieldType>): FSharpList<[Spec_FormStep$1<FieldType>, Spec_FormField$1<FieldType>]>;
|
|
21
|
+
/**
|
|
22
|
+
* Finds a form field by its label string across all steps in the form.
|
|
23
|
+
*/
|
|
24
|
+
export declare function Helpers_FieldFinders_findFormFieldInFormByLabelString<FieldType>(label: string, formSpec: Spec_FormSpec$1<FieldType>): FSharpList<[Spec_FormStep$1<FieldType>, Spec_FormField$1<FieldType>]>;
|
|
25
|
+
/**
|
|
26
|
+
* Finds a unique form field by its label string in a specific step.
|
|
27
|
+
* Returns Ok with the field if exactly one is found, Error otherwise.
|
|
28
|
+
*/
|
|
29
|
+
export declare function Helpers_FieldFinders_findUniqueFormFieldInStepByLabelString<FieldType>(label: string, stepNumber: int32, formSpec: Spec_FormSpec$1<FieldType>): FSharpResult$2_$union<[Spec_FormStep$1<FieldType>, Spec_FormField$1<FieldType>], string>;
|
|
30
|
+
/**
|
|
31
|
+
* Finds a unique form field by its label string across all steps in the form.
|
|
32
|
+
* Returns Ok with the field if exactly one is found, Error otherwise.
|
|
33
|
+
*/
|
|
34
|
+
export declare function Helpers_FieldFinders_findUniqueFormFieldInFormByLabelString<FieldType>(label: string, formSpec: Spec_FormSpec$1<FieldType>): FSharpResult$2_$union<[Spec_FormStep$1<FieldType>, Spec_FormField$1<FieldType>], string>;
|
|
35
|
+
/**
|
|
36
|
+
* Finds a form field by its FieldKey across all steps in a FormSpec.
|
|
37
|
+
*/
|
|
38
|
+
export declare function Helpers_FieldFinders_tryFindFieldByKey<UserField>(fieldKey: Shared_FieldKey, formSpec: Spec_FormSpec$1<UserField>): Option<Spec_FormField$1<UserField>>;
|
|
39
|
+
/**
|
|
40
|
+
* Finds a form step by its step number.
|
|
41
|
+
*/
|
|
42
|
+
export declare function Helpers_FieldFinders_tryFindFormStepByStepNumber<UserField>(stepNumber: int32, formSpec: Spec_FormSpec$1<UserField>): Option<Spec_FormStep$1<UserField>>;
|
|
43
|
+
/**
|
|
44
|
+
* Finds a form field by its field order number within a specific step.
|
|
45
|
+
*/
|
|
46
|
+
export declare function Helpers_FieldFinders_tryFindFieldInSpec<UserField>(fieldNumber: int32, stepNumber: int32, formSpec: Spec_FormSpec$1<UserField>): Option<Spec_FormField$1<UserField>>;
|
|
47
|
+
/**
|
|
48
|
+
* Gets all unique field labels from a FormSpec.
|
|
49
|
+
*/
|
|
50
|
+
export declare function Helpers_FieldFinders_getAllFieldNames<UserField>(formSpec: Spec_FormSpec$1<UserField>): FSharpList<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Gets all step names/identifiers from a FormSpec.
|
|
53
|
+
*/
|
|
54
|
+
export declare function Helpers_FieldFinders_getAllStepNames<UserField>(formSpec: Spec_FormSpec$1<UserField>): FSharpList<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Converts a FieldType discriminated union to its string representation.
|
|
57
|
+
*/
|
|
58
|
+
export declare function Helpers_FieldTypeUtils_getFieldTypeName(fieldType: any): string;
|
|
59
|
+
/**
|
|
60
|
+
* Checks if two FieldType values match by discriminated union case name.
|
|
61
|
+
* This allows matching field types with different data content (e.g., Message fields with different Heading/Message).
|
|
62
|
+
*/
|
|
63
|
+
export declare function Helpers_FieldTypeUtils_fieldTypesMatchByCaseName(fieldType1: any, fieldType2: any): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Updates a form field within a specific step in a FormSpec.
|
|
66
|
+
*/
|
|
67
|
+
export declare function Helpers_FormSpecMutators_updateFormFieldInFormSpecStep<UserField>(inField: Spec_FormField$1<UserField>, formStep: Spec_FormStep$1<UserField>, formSpec: Spec_FormSpec$1<UserField>): Spec_FormSpec$1<UserField>;
|
|
68
|
+
/**
|
|
69
|
+
* Updates a form step within a FormSpec.
|
|
70
|
+
*/
|
|
71
|
+
export declare function Helpers_FormSpecMutators_updateFormStepInFormSpec<UserField>(formStep: Spec_FormStep$1<UserField>, formSpec: Spec_FormSpec$1<UserField>): Spec_FormSpec$1<UserField>;
|
|
72
|
+
/**
|
|
73
|
+
* Adds a form field to a specific step in a FormSpec.
|
|
74
|
+
*/
|
|
75
|
+
export declare function Helpers_FormSpecMutators_addFormFieldToStep<UserField>(formStep: Spec_FormStep$1<UserField>, formSpec: Spec_FormSpec$1<UserField>, formField: Spec_FormField$1<UserField>): Spec_FormSpec$1<UserField>;
|
|
76
|
+
/**
|
|
77
|
+
* Removes a form field from a specific step in a FormSpec.
|
|
78
|
+
*/
|
|
79
|
+
export declare function Helpers_FormSpecMutators_removeFormFieldFromFormSpec<UserField>(formStepOrder: int32, formField: Spec_FormField$1<UserField>, formSpec: Spec_FormSpec$1<UserField>): Spec_FormSpec$1<UserField>;
|
|
80
|
+
/**
|
|
81
|
+
* Inserts a form field at a specific position within a step.
|
|
82
|
+
*/
|
|
83
|
+
export declare function Helpers_FormSpecMutators_insertFormFieldToStepAt<UserField>(formStep: Spec_FormStep$1<UserField>, newPositionFieldOrder: int32, fieldKey: Shared_FieldKey): FSharpList<Spec_FormField$1<UserField>>;
|
|
84
|
+
/**
|
|
85
|
+
* Moves a form field up in order within a step.
|
|
86
|
+
*/
|
|
87
|
+
export declare function Helpers_FormSpecMutators_moveFormFieldUpInFormSpec<UserField>(formStepOrder: int32, formField: Spec_FormField$1<UserField>, formSpec: Spec_FormSpec$1<UserField>): Spec_FormSpec$1<UserField>;
|
|
88
|
+
/**
|
|
89
|
+
* Moves a form field down in order within a step.
|
|
90
|
+
*/
|
|
91
|
+
export declare function Helpers_FormSpecMutators_moveFormFieldDownInFormSpec<UserField>(formStepOrder: int32, formField: Spec_FormField$1<UserField>, formSpec: Spec_FormSpec$1<UserField>): Spec_FormSpec$1<UserField>;
|
|
92
|
+
/**
|
|
93
|
+
* Moves a form field to a specific position within a step by its FieldKey.
|
|
94
|
+
*/
|
|
95
|
+
export declare function Helpers_FormSpecMutators_moveFieldByKeyToPositionInFormStepSpec<UserField>(fieldKey: Shared_FieldKey, newPositionFieldOrder: int32, formStepOrder: int32, formSpec: Spec_FormSpec$1<UserField>): Spec_FormSpec$1<UserField>;
|
|
96
|
+
/**
|
|
97
|
+
* Moves a form step up in order.
|
|
98
|
+
*/
|
|
99
|
+
export declare function Helpers_FormSpecMutators_moveFormStepUpInFormSpec<UserField>(formStepOrder: int32, formSpec: Spec_FormSpec$1<UserField>): Spec_FormSpec$1<UserField>;
|
|
100
|
+
/**
|
|
101
|
+
* Moves a form step down in order.
|
|
102
|
+
*/
|
|
103
|
+
export declare function Helpers_FormSpecMutators_moveFormStepDownInFormSpec<UserField>(formStepOrder: int32, formSpec: Spec_FormSpec$1<UserField>): Spec_FormSpec$1<UserField>;
|
|
104
|
+
/**
|
|
105
|
+
* Removes a form step from a FormSpec.
|
|
106
|
+
*/
|
|
107
|
+
export declare function Helpers_FormSpecMutators_removeFormStepFromFormSpec<UserField>(formStepOrder: int32, formSpec: Spec_FormSpec$1<UserField>): Spec_FormSpec$1<UserField>;
|
|
108
|
+
/**
|
|
109
|
+
* Flattens a multi-step FormSpec into a single step with all fields.
|
|
110
|
+
* Field orders are adjusted to be unique across all steps.
|
|
111
|
+
*/
|
|
112
|
+
export declare function Helpers_FormSpecTransformers_flattenSpecSteps<UserField>(formSpec: Spec_FormSpec$1<UserField>): Spec_FormSpec$1<UserField>;
|
|
113
|
+
/**
|
|
114
|
+
* Validates that all steps in a FormSpec have at least one field.
|
|
115
|
+
*/
|
|
116
|
+
export declare function Helpers_FormSpecValidators_allStepsHaveFields<UserField>(formSpec: Spec_FormSpec$1<UserField>): boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Checks if a FormSpec has a ClinicalPathway configured.
|
|
119
|
+
*/
|
|
120
|
+
export declare function Helpers_FormSpecValidators_hasClinicalPathway<UserField>(formSpec: Spec_FormSpec$1<UserField>): boolean;
|
|
121
|
+
export declare function Helpers_specFieldOptionsToValueOptions(options: FSharpList<Shared_FieldOption>): FSharpList<Shared_FieldOption>;
|
|
122
|
+
export declare function Helpers_optionsFromSpecField(field: Spec_FormField$1<Spec_FieldType_$union>): FSharpList<Shared_FieldOption>;
|
|
123
|
+
export declare function Helpers_readValue<FieldType>(field: Spec_FormField$1<FieldType>, values: FSharpMap<Shared_FieldKey, Values_FieldDetails$1<FieldType>>): string;
|
|
124
|
+
export declare function Helpers_readManyValue<FieldType>(fieldKey: Shared_FieldKey, values: FSharpMap<Shared_FieldKey, Values_FieldDetails$1<FieldType>>): FSharpSet<string>;
|
|
125
|
+
export declare function Helpers_updateSingleFunc(formatter: ((arg0: string) => string), specField: Spec_FormField$1<Spec_FieldType_$union>, newValue: string, values: FSharpMap<Shared_FieldKey, Values_FieldDetails$1<Spec_FieldType_$union>>): FSharpMap<Shared_FieldKey, Values_FieldDetails$1<Spec_FieldType_$union>>;
|
|
126
|
+
export declare function Helpers_updateManyFunc(formatter: ((arg0: string) => string), specField: Spec_FormField$1<Spec_FieldType_$union>, newValue: FSharpSet<string>, values: FSharpMap<Shared_FieldKey, Values_FieldDetails$1<Spec_FieldType_$union>>): FSharpMap<Shared_FieldKey, Values_FieldDetails$1<Spec_FieldType_$union>>;
|
|
127
|
+
/**
|
|
128
|
+
* It adds OR updates a form field's value based on its type
|
|
129
|
+
* Returns the updated DynamicStepValues
|
|
130
|
+
*/
|
|
131
|
+
export declare function Helpers_updateFormFieldValue(field: Spec_FormField$1<Spec_FieldType_$union>, newValue: any, values: FSharpMap<Shared_FieldKey, Values_FieldDetails$1<Spec_FieldType_$union>>): FSharpMap<Shared_FieldKey, Values_FieldDetails$1<Spec_FieldType_$union>>;
|
|
132
|
+
/**
|
|
133
|
+
* Updates a form's values with a new field value
|
|
134
|
+
* Returns the updated form
|
|
135
|
+
*/
|
|
136
|
+
export declare function Helpers_updateFormValuesWithField<T>(fieldKeyAndValue_: Shared_FieldKey, fieldKeyAndValue__1: Values_FieldDetails$1<Spec_FieldType_$union>, form: T, getSteps: ((arg0: T) => FSharpMap<Values_StepOrder, FSharpMap<Shared_FieldKey, Values_FieldDetails$1<Spec_FieldType_$union>>>), setSteps: ((arg0: FSharpMap<Values_StepOrder, FSharpMap<Shared_FieldKey, Values_FieldDetails$1<Spec_FieldType_$union>>>, arg1: T) => T)): T;
|
|
137
|
+
/**
|
|
138
|
+
* Finds and updates a form field's value by its label string in a specific step
|
|
139
|
+
* Returns Ok with the updated form if successful, Error otherwise
|
|
140
|
+
*/
|
|
141
|
+
export declare function Helpers_findAndUpdateFormField<T>(label: string, stepNumber: int32, newValue: any, formSpec: Spec_FormSpec$1<Spec_FieldType_$union>, form: T, getSteps: ((arg0: T) => FSharpMap<Values_StepOrder, FSharpMap<Shared_FieldKey, Values_FieldDetails$1<Spec_FieldType_$union>>>), setSteps: ((arg0: FSharpMap<Values_StepOrder, FSharpMap<Shared_FieldKey, Values_FieldDetails$1<Spec_FieldType_$union>>>, arg1: T) => T)): FSharpResult$2_$union<T, string>;
|
|
142
|
+
/**
|
|
143
|
+
* Finds and updates a form field's value by its label string across all steps
|
|
144
|
+
* Returns Ok with the updated form if successful, Error otherwise
|
|
145
|
+
*/
|
|
146
|
+
export declare function Helpers_findAndUpdateFormFieldInAnyStep<T>(label: string, newValue: any, formSpec: Spec_FormSpec$1<Spec_FieldType_$union>, form: T, getSteps: ((arg0: T) => FSharpMap<Values_StepOrder, FSharpMap<Shared_FieldKey, Values_FieldDetails$1<Spec_FieldType_$union>>>), setSteps: ((arg0: FSharpMap<Values_StepOrder, FSharpMap<Shared_FieldKey, Values_FieldDetails$1<Spec_FieldType_$union>>>, arg1: T) => T)): FSharpResult$2_$union<T, string>;
|
|
147
|
+
//# sourceMappingURL=Helpers.d.ts.map
|
package/Interfaces.d.ts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Union, Record } from "@fable-org/fable-library-js/Types.js";
|
|
2
|
+
import { Values_DynamicForm$1, Spec_FormField$1, Spec_FormStep$1, Spec_FormSpec$1 } from "./FormSpec.js";
|
|
3
|
+
import { ActiveField } from "./Designer.js";
|
|
4
|
+
import { TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
|
|
5
|
+
import { FSharpMap } from "@fable-org/fable-library-js/Map.js";
|
|
6
|
+
import { FSharpList } from "@fable-org/fable-library-js/List.js";
|
|
7
|
+
import { IComparable, IEquatable } from "@fable-org/fable-library-js/Util.js";
|
|
8
|
+
import { int32 } from "@fable-org/fable-library-js/Int32.js";
|
|
9
|
+
import { Option } from "@fable-org/fable-library-js/Option.js";
|
|
10
|
+
export declare class RenderPreviewProps$1<UserField> extends Record {
|
|
11
|
+
readonly FormSpec: Spec_FormSpec$1<UserField>;
|
|
12
|
+
readonly FormStep: Spec_FormStep$1<UserField>;
|
|
13
|
+
readonly FormField: Spec_FormField$1<UserField>;
|
|
14
|
+
readonly ActiveField: ActiveField;
|
|
15
|
+
readonly SetActiveField: ((arg0: ActiveField) => void);
|
|
16
|
+
readonly OnChange: ((arg0: Spec_FormSpec$1<UserField>) => void);
|
|
17
|
+
constructor(FormSpec: Spec_FormSpec$1<UserField>, FormStep: Spec_FormStep$1<UserField>, FormField: Spec_FormField$1<UserField>, ActiveField: ActiveField, SetActiveField: ((arg0: ActiveField) => void), OnChange: ((arg0: Spec_FormSpec$1<UserField>) => void));
|
|
18
|
+
}
|
|
19
|
+
export declare function RenderPreviewProps$1_$reflection(gen0: TypeInfo): TypeInfo;
|
|
20
|
+
export interface IDesignerField$1<UserField> {
|
|
21
|
+
Category: string;
|
|
22
|
+
FieldType: UserField;
|
|
23
|
+
Icon: string;
|
|
24
|
+
Key: string;
|
|
25
|
+
RenderDesignerPreview(arg0: RenderPreviewProps$1<UserField>): any;
|
|
26
|
+
}
|
|
27
|
+
export declare class RegisteredFields$1<UserField> {
|
|
28
|
+
readonly fields: FSharpList<IDesignerField$1<UserField>>;
|
|
29
|
+
readonly cachedMap: FSharpMap<string, IDesignerField$1<UserField>>;
|
|
30
|
+
readonly typeMap: FSharpMap<UserField, IDesignerField$1<UserField>>;
|
|
31
|
+
constructor(fields: FSharpList<IDesignerField$1<UserField>>);
|
|
32
|
+
}
|
|
33
|
+
export declare function RegisteredFields$1_$reflection(gen0: TypeInfo): TypeInfo;
|
|
34
|
+
export declare function RegisteredFields$1_$ctor_Z317E95AF<UserField>(fields: FSharpList<IDesignerField$1<UserField>>): RegisteredFields$1<UserField>;
|
|
35
|
+
export declare function RegisteredFields$1__get_AsList<UserField>(_: RegisteredFields$1<UserField>): FSharpList<IDesignerField$1<UserField>>;
|
|
36
|
+
export declare function RegisteredFields$1__TryGetByKey_Z721C83C5<UserField>(_: RegisteredFields$1<UserField>, key: string): Option<IDesignerField$1<UserField>>;
|
|
37
|
+
export declare function RegisteredFields$1__GetByKey_Z721C83C5<UserField>(_: RegisteredFields$1<UserField>, key: string): IDesignerField$1<UserField>;
|
|
38
|
+
export declare function RegisteredFields$1__get_AsMap<UserField>(_: RegisteredFields$1<UserField>): FSharpMap<string, IDesignerField$1<UserField>>;
|
|
39
|
+
export declare function RegisteredFields$1__TryGetByFieldType_2B595<UserField>(_: RegisteredFields$1<UserField>, fieldType: UserField): Option<IDesignerField$1<UserField>>;
|
|
40
|
+
export declare function RegisteredFields$1__tryMatchByCaseName<UserField>(this$: RegisteredFields$1<UserField>, fieldType: UserField, registeredFields: FSharpList<IDesignerField$1<UserField>>): Option<IDesignerField$1<UserField>>;
|
|
41
|
+
export type FormComposeMode_$union = FormComposeMode<0> | FormComposeMode<1>;
|
|
42
|
+
export type FormComposeMode_$cases = {
|
|
43
|
+
0: ["Editable", []];
|
|
44
|
+
1: ["ReadOnly", []];
|
|
45
|
+
};
|
|
46
|
+
export declare function FormComposeMode_Editable(): FormComposeMode<0>;
|
|
47
|
+
export declare function FormComposeMode_ReadOnly(): FormComposeMode<1>;
|
|
48
|
+
export declare class FormComposeMode<Tag extends keyof FormComposeMode_$cases> extends Union<Tag, FormComposeMode_$cases[Tag][0]> {
|
|
49
|
+
readonly tag: Tag;
|
|
50
|
+
readonly fields: FormComposeMode_$cases[Tag][1];
|
|
51
|
+
constructor(tag: Tag, fields: FormComposeMode_$cases[Tag][1]);
|
|
52
|
+
cases(): string[];
|
|
53
|
+
}
|
|
54
|
+
export declare function FormComposeMode_$reflection(): TypeInfo;
|
|
55
|
+
export declare class FormComposeState$2<UserField, FableFormModel> extends Record implements IEquatable<FormComposeState$2<UserField, FableFormModel>>, IComparable<FormComposeState$2<UserField, FableFormModel>> {
|
|
56
|
+
readonly ResultViewMode: FormComposeMode_$union;
|
|
57
|
+
readonly FormSpec: Spec_FormSpec$1<UserField>;
|
|
58
|
+
readonly DynamicForm: Values_DynamicForm$1<FableFormModel>;
|
|
59
|
+
readonly CurrentStep: int32;
|
|
60
|
+
readonly FormSaved: boolean;
|
|
61
|
+
constructor(ResultViewMode: FormComposeMode_$union, FormSpec: Spec_FormSpec$1<UserField>, DynamicForm: Values_DynamicForm$1<FableFormModel>, CurrentStep: int32, FormSaved: boolean);
|
|
62
|
+
}
|
|
63
|
+
export declare function FormComposeState$2_$reflection(gen0: TypeInfo, gen1: TypeInfo): TypeInfo;
|
|
64
|
+
export declare class FormProcessor$2<UserField, FableFormModel> extends Record {
|
|
65
|
+
readonly Result: ((arg0: [int32, boolean]) => any);
|
|
66
|
+
readonly Calculator: ((arg0: FormComposeState$2<UserField, FableFormModel>) => [int32, boolean]);
|
|
67
|
+
constructor(Result: ((arg0: [int32, boolean]) => any), Calculator: ((arg0: FormComposeState$2<UserField, FableFormModel>) => [int32, boolean]));
|
|
68
|
+
}
|
|
69
|
+
export declare function FormProcessor$2_$reflection(gen0: TypeInfo, gen1: TypeInfo): TypeInfo;
|
|
70
|
+
//# sourceMappingURL=Interfaces.d.ts.map
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { Option } from "@fable-org/fable-library-js/Option.js";
|
|
2
|
+
import { FSharpList } from "@fable-org/fable-library-js/List.js";
|
|
3
|
+
import { TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
|
|
4
|
+
import { IMap } from "@fable-org/fable-library-js/Util.js";
|
|
5
|
+
import { ClinicalPathway_ActionInfo_$union, ClinicalPathway_ClinicalPathwaySpec, ClinicalPathway_TransitionDefinition, ClinicalPathway_StateDefinition, Shared_FieldKey, Shared_FieldOption, Spec_FormStep$1, Spec_FormField$1, Values_DynamicFormResultData$1, Spec_FieldType_$union, Spec_FormSpec$1 } from "../FormSpec.js";
|
|
6
|
+
import { Union } from "@fable-org/fable-library-js/Types.js";
|
|
7
|
+
import { int32 } from "@fable-org/fable-library-js/Int32.js";
|
|
8
|
+
/**
|
|
9
|
+
* Get value from Option or return default (SAFE - recommended)
|
|
10
|
+
* TypeScript: <T>(opt: Option<T>, defaultValue: T) => T
|
|
11
|
+
* Usage: Api.defaultArg(formSpec.Code, "unknown")
|
|
12
|
+
*/
|
|
13
|
+
export declare function defaultArg<T>(opt: Option<T>, defaultValue: T): T;
|
|
14
|
+
/**
|
|
15
|
+
* Get value from Option or compute default using function (SAFE - recommended)
|
|
16
|
+
* TypeScript: <T>(opt: Option<T>, defThunk: () => T) => T
|
|
17
|
+
* Usage: Api.defaultArgWith(formSpec.Code, () => "unknown")
|
|
18
|
+
*/
|
|
19
|
+
export declare function defaultArgWith<T>(opt: Option<T>, defThunk: (() => T)): T;
|
|
20
|
+
/**
|
|
21
|
+
* Check if Option is Some
|
|
22
|
+
* TypeScript: <T>(opt: Option<T>) => boolean
|
|
23
|
+
* Usage: if (Api.isSome(formSpec.Code)) { ... }
|
|
24
|
+
*/
|
|
25
|
+
export declare function isSome<T>(opt: Option<T>): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Check if Option is None
|
|
28
|
+
* TypeScript: <T>(opt: Option<T>) => boolean
|
|
29
|
+
* Usage: if (Api.isNone(formSpec.Code)) { ... }
|
|
30
|
+
*/
|
|
31
|
+
export declare function isNone<T>(opt: Option<T>): boolean;
|
|
32
|
+
export declare function listToArray<T>(list: FSharpList<T>): T[];
|
|
33
|
+
export declare function serializeFormSpec(formSpec: any): string;
|
|
34
|
+
export declare function deserializeFormSpec(json: string): Option<Spec_FormSpec$1<Spec_FieldType_$union>>;
|
|
35
|
+
export declare function serializeDynamicFormResultData(data: Values_DynamicFormResultData$1<Spec_FieldType_$union>): string;
|
|
36
|
+
export declare function deserializeDynamicFormResultData(json: string): Option<Values_DynamicFormResultData$1<Spec_FieldType_$union>>;
|
|
37
|
+
/**
|
|
38
|
+
* Find FormField by its FieldKey string representation
|
|
39
|
+
*/
|
|
40
|
+
export declare function findFieldByKey(spec: Spec_FormSpec$1<Spec_FieldType_$union>, fieldKeyString: string): Option<Spec_FormField$1<Spec_FieldType_$union>>;
|
|
41
|
+
export type ExpectedFieldValueType_$union = ExpectedFieldValueType<0> | ExpectedFieldValueType<1> | ExpectedFieldValueType<2> | ExpectedFieldValueType<3>;
|
|
42
|
+
export type ExpectedFieldValueType_$cases = {
|
|
43
|
+
0: ["SingleValue", []];
|
|
44
|
+
1: ["MultipleValues", []];
|
|
45
|
+
2: ["MatrixValue", []];
|
|
46
|
+
3: ["PluginDataValue", []];
|
|
47
|
+
};
|
|
48
|
+
export declare function ExpectedFieldValueType_SingleValue(): ExpectedFieldValueType<0>;
|
|
49
|
+
export declare function ExpectedFieldValueType_MultipleValues(): ExpectedFieldValueType<1>;
|
|
50
|
+
export declare function ExpectedFieldValueType_MatrixValue(): ExpectedFieldValueType<2>;
|
|
51
|
+
export declare function ExpectedFieldValueType_PluginDataValue(): ExpectedFieldValueType<3>;
|
|
52
|
+
export declare class ExpectedFieldValueType<Tag extends keyof ExpectedFieldValueType_$cases> extends Union<Tag, ExpectedFieldValueType_$cases[Tag][0]> {
|
|
53
|
+
readonly tag: Tag;
|
|
54
|
+
readonly fields: ExpectedFieldValueType_$cases[Tag][1];
|
|
55
|
+
constructor(tag: Tag, fields: ExpectedFieldValueType_$cases[Tag][1]);
|
|
56
|
+
cases(): string[];
|
|
57
|
+
}
|
|
58
|
+
export declare function ExpectedFieldValueType_$reflection(): TypeInfo;
|
|
59
|
+
export declare function getExpectedFieldValueType(fieldType: Spec_FieldType_$union): ExpectedFieldValueType_$union;
|
|
60
|
+
export declare function decodeAsString(fieldKey: string, obj: any): string;
|
|
61
|
+
export declare function decodeAsStringArray(fieldKey: string, obj: any): string[];
|
|
62
|
+
export declare function decodeAsMatrixValue(fieldKey: string, obj: any): {
|
|
63
|
+
description: string;
|
|
64
|
+
values: IMap<string, string>;
|
|
65
|
+
};
|
|
66
|
+
export declare function decodeAsPluginDataArray(fieldKey: string, obj: any): {
|
|
67
|
+
dataType: string;
|
|
68
|
+
description?: string;
|
|
69
|
+
displayName?: string;
|
|
70
|
+
name: string;
|
|
71
|
+
propertyKey: string;
|
|
72
|
+
unit?: string;
|
|
73
|
+
value: string;
|
|
74
|
+
}[];
|
|
75
|
+
export declare function createFormFieldData(fieldKey: string, objectValue: any): {
|
|
76
|
+
fieldKey: string;
|
|
77
|
+
objectValue: any;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Build DynamicFormResultData from FormSpec with comprehensive type validation
|
|
81
|
+
* TypeScript: (formSpec: FormSpec, fieldData: FieldInput[]) => DynamicFormResultData
|
|
82
|
+
* Where FieldInput = SingleValueInput | MultipleValueInput | MatrixValueInput | PluginValueInput
|
|
83
|
+
*/
|
|
84
|
+
export declare function buildDynamicFormResultData(formSpec: Spec_FormSpec$1<Spec_FieldType_$union>, fieldData: {
|
|
85
|
+
fieldKey: string;
|
|
86
|
+
objectValue: any;
|
|
87
|
+
}[]): Values_DynamicFormResultData$1<Spec_FieldType_$union>;
|
|
88
|
+
/**
|
|
89
|
+
* Create a checkbox field with the given parameters
|
|
90
|
+
* TypeScript: createCheckboxField(fieldKey: string, label: string, isOptional: boolean)
|
|
91
|
+
*/
|
|
92
|
+
export declare function createCheckboxField(fieldKeyString: string, label: string, isOptional: boolean): Spec_FormField$1<Spec_FieldType_$union>;
|
|
93
|
+
/**
|
|
94
|
+
* Create a checkbox list field with options
|
|
95
|
+
* TypeScript: createCheckboxListField(fieldKey: string, label: string, options: {value: string, description: string, optionKey: string}[])
|
|
96
|
+
*/
|
|
97
|
+
export declare function createCheckboxListField(fieldKeyString: string, label: string, options: {
|
|
98
|
+
description: string;
|
|
99
|
+
optionKey: string;
|
|
100
|
+
value: string;
|
|
101
|
+
}[]): Spec_FormField$1<Spec_FieldType_$union>;
|
|
102
|
+
/**
|
|
103
|
+
* Create a text field
|
|
104
|
+
* TypeScript: createTextField(fieldKey: string, label: string, isOptional: boolean)
|
|
105
|
+
*/
|
|
106
|
+
export declare function createTextField(fieldKeyString: string, label: string, isOptional: boolean): Spec_FormField$1<Spec_FieldType_$union>;
|
|
107
|
+
/**
|
|
108
|
+
* Create a form step with fields
|
|
109
|
+
* TypeScript: createFormStep(stepOrder: number, stepLabel: string, fields: FormField[])
|
|
110
|
+
*/
|
|
111
|
+
export declare function createFormStep(stepOrder: int32, stepLabel: string, fields: Spec_FormField$1<Spec_FieldType_$union>[]): Spec_FormStep$1<Spec_FieldType_$union>;
|
|
112
|
+
/**
|
|
113
|
+
* Create a FormSpec with basic information
|
|
114
|
+
* TypeScript: createFormSpec(id: string, title: string, steps: FormStep[])
|
|
115
|
+
*/
|
|
116
|
+
export declare function createFormSpec(idString: string, title: string, steps: Spec_FormStep$1<Spec_FieldType_$union>[]): Spec_FormSpec$1<Spec_FieldType_$union>;
|
|
117
|
+
/**
|
|
118
|
+
* Create a field option
|
|
119
|
+
* TypeScript: createFieldOption(description: string, value: string, optionKey: string)
|
|
120
|
+
*/
|
|
121
|
+
export declare function createFieldOption(description: string, value: string, optionKeyString: string): Shared_FieldOption;
|
|
122
|
+
/**
|
|
123
|
+
* Create a matrix field
|
|
124
|
+
* TypeScript: createMatrixField(fieldKey: string, label: string, items: FieldOption[], options: FieldOption[])
|
|
125
|
+
*/
|
|
126
|
+
export declare function createMatrixField(fieldKeyString: string, label: string, items: Shared_FieldOption[], options: Shared_FieldOption[]): Spec_FormField$1<Spec_FieldType_$union>;
|
|
127
|
+
/**
|
|
128
|
+
* Create a plugin field
|
|
129
|
+
* TypeScript: createPluginField(fieldKey: string, label: string, config: {pluginId: string, fieldName: string})
|
|
130
|
+
*/
|
|
131
|
+
export declare function createPluginField(fieldKeyString: string, label: string, config: {
|
|
132
|
+
fieldName: string;
|
|
133
|
+
pluginId: string;
|
|
134
|
+
}): Spec_FormField$1<Spec_FieldType_$union>;
|
|
135
|
+
/**
|
|
136
|
+
* Create an action state that executes a task
|
|
137
|
+
* TypeScript: createActionState(stateKey: string, label: string, taskDescription: string, priority?: string)
|
|
138
|
+
*/
|
|
139
|
+
export declare function createActionState(stateKeyString: string, label: string, taskDescription: string, priority: Option<string>): ClinicalPathway_StateDefinition;
|
|
140
|
+
/**
|
|
141
|
+
* Create a terminal state that ends the pathway
|
|
142
|
+
* TypeScript: createTerminalState(stateKey: string, outcome: string)
|
|
143
|
+
*/
|
|
144
|
+
export declare function createTerminalState(stateKeyString: string, outcome: string): ClinicalPathway_StateDefinition;
|
|
145
|
+
/**
|
|
146
|
+
* Create a transition between states based on field condition
|
|
147
|
+
* TypeScript: createTransition(transitionKey: string, fromState: string, toState: string, fieldKey: string, expectedValue: string)
|
|
148
|
+
*/
|
|
149
|
+
export declare function createTransition(transitionKeyString: string, fromStateString: string, toStateString: string, fieldKeyString: string, expectedValue: string): ClinicalPathway_TransitionDefinition;
|
|
150
|
+
/**
|
|
151
|
+
* Create a clinical pathway with states and transitions
|
|
152
|
+
* TypeScript: createClinicalPathway(name: string, states: StateDefinition[], transitions: TransitionDefinition[])
|
|
153
|
+
*/
|
|
154
|
+
export declare function createClinicalPathway(name: string, states: ClinicalPathway_StateDefinition[], transitions: ClinicalPathway_TransitionDefinition[]): ClinicalPathway_ClinicalPathwaySpec;
|
|
155
|
+
/**
|
|
156
|
+
* Add a clinical pathway to an existing FormSpec
|
|
157
|
+
* TypeScript: addPathwayToFormSpec(formSpec: FormSpec, pathway: ClinicalPathwaySpec)
|
|
158
|
+
*/
|
|
159
|
+
export declare function addPathwayToFormSpec(formSpec: Spec_FormSpec$1<Spec_FieldType_$union>, pathway: ClinicalPathway_ClinicalPathwaySpec): Spec_FormSpec$1<Spec_FieldType_$union>;
|
|
160
|
+
/**
|
|
161
|
+
* Extract form field data from DynamicFormResultData in TypeScript-friendly format
|
|
162
|
+
* TypeScript: getFieldDataFromFormResult(formData: DynamicFormResultData, stepOrder: number, fieldKey: string)
|
|
163
|
+
*/
|
|
164
|
+
export declare function getFieldDataFromFormResult(formData: Values_DynamicFormResultData$1<Spec_FieldType_$union>, stepOrder: int32, fieldKeyString: string): Option<any>;
|
|
165
|
+
/**
|
|
166
|
+
* Get all step orders from DynamicFormResultData
|
|
167
|
+
* TypeScript: getFormResultStepOrders(formData: DynamicFormResultData)
|
|
168
|
+
*/
|
|
169
|
+
export declare function getFormResultStepOrders(formData: Values_DynamicFormResultData$1<Spec_FieldType_$union>): int32[];
|
|
170
|
+
/**
|
|
171
|
+
* Get all field keys for a specific step from DynamicFormResultData
|
|
172
|
+
* TypeScript: getFormResultFieldKeys(formData: DynamicFormResultData, stepOrder: number)
|
|
173
|
+
*/
|
|
174
|
+
export declare function getFormResultFieldKeys(formData: Values_DynamicFormResultData$1<Spec_FieldType_$union>, stepOrder: int32): string[];
|
|
175
|
+
/**
|
|
176
|
+
* Get the ResultSteps as a TypeScript-friendly structure
|
|
177
|
+
* TypeScript: getResultSteps(formResult: DynamicFormResultData)
|
|
178
|
+
*/
|
|
179
|
+
export declare function getResultSteps(formData: Values_DynamicFormResultData$1<Spec_FieldType_$union>): any;
|
|
180
|
+
/**
|
|
181
|
+
* Get a specific field value from the result
|
|
182
|
+
* TypeScript: getFieldValue(formResult: DynamicFormResultData, stepOrder: number, fieldKey: string)
|
|
183
|
+
*/
|
|
184
|
+
export declare function getFieldValue(formData: Values_DynamicFormResultData$1<Spec_FieldType_$union>, stepOrder: int32, fieldKeyString: string): Option<any>;
|
|
185
|
+
/**
|
|
186
|
+
* Get complete field details from the result
|
|
187
|
+
* TypeScript: getFieldDetails(formResult: DynamicFormResultData, stepOrder: number, fieldKey: string)
|
|
188
|
+
*/
|
|
189
|
+
export declare function getFieldDetails(formData: Values_DynamicFormResultData$1<Spec_FieldType_$union>, stepOrder: int32, fieldKeyString: string): Option<any>;
|
|
190
|
+
/**
|
|
191
|
+
* Create a complete test FormSpec for buildDynamicFormResultData testing
|
|
192
|
+
* TypeScript: createTestFormSpec()
|
|
193
|
+
*/
|
|
194
|
+
export declare function createTestFormSpec(): Spec_FormSpec$1<Spec_FieldType_$union>;
|
|
195
|
+
/**
|
|
196
|
+
* Safe pathway execution initialization wrapper
|
|
197
|
+
* TypeScript: initializePathwayExecution(formSpec: FormSpec, pathway: ClinicalPathwaySpec, formData: DynamicFormResultData)
|
|
198
|
+
*/
|
|
199
|
+
export declare function initializePathwayExecution(formSpec: Spec_FormSpec$1<Spec_FieldType_$union>, pathway: ClinicalPathway_ClinicalPathwaySpec, formData: Values_DynamicFormResultData$1<Spec_FieldType_$union>): any;
|
|
200
|
+
/**
|
|
201
|
+
* Get field type information in TypeScript-friendly format
|
|
202
|
+
* TypeScript: getFieldTypeInfo(field: FormField) => {typeName: string, isRequired: boolean}
|
|
203
|
+
*/
|
|
204
|
+
export declare function getFieldTypeInfo(field: Spec_FormField$1<Spec_FieldType_$union>): {
|
|
205
|
+
isRequired: boolean;
|
|
206
|
+
typeName: string;
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* Extract choice options from fields that support them
|
|
210
|
+
* TypeScript: getFieldChoiceOptions(field: FormField) => {key: string, label: string, value: string}[] | null
|
|
211
|
+
*/
|
|
212
|
+
export declare function getFieldChoiceOptions(field: Spec_FormField$1<Spec_FieldType_$union>): Option<{
|
|
213
|
+
key: string;
|
|
214
|
+
label: string;
|
|
215
|
+
value: string;
|
|
216
|
+
}[]>;
|
|
217
|
+
/**
|
|
218
|
+
* Extract matrix field structure (items and options)
|
|
219
|
+
* TypeScript: getFieldMatrixInfo(field: FormField) => {items: {key: string, label: string}[], options: {key: string, description: string, value: string}[]} | null
|
|
220
|
+
*/
|
|
221
|
+
export declare function getFieldMatrixInfo(field: Spec_FormField$1<Spec_FieldType_$union>): Option<{
|
|
222
|
+
items: {
|
|
223
|
+
key: string;
|
|
224
|
+
label: string;
|
|
225
|
+
}[];
|
|
226
|
+
options: {
|
|
227
|
+
description: string;
|
|
228
|
+
key: string;
|
|
229
|
+
value: string;
|
|
230
|
+
}[];
|
|
231
|
+
}>;
|
|
232
|
+
/**
|
|
233
|
+
* Extract GUID string from FieldKey (single-case DU)
|
|
234
|
+
* TypeScript: getFieldKeyString(fieldKey: FieldKey) => string
|
|
235
|
+
*/
|
|
236
|
+
export declare function getFieldKeyString(fieldKey: Shared_FieldKey): string;
|
|
237
|
+
/**
|
|
238
|
+
* Convert ClinicalPathway ActionInfo to TypeScript-friendly objects
|
|
239
|
+
* TypeScript: convertActionInfo(action: ActionInfo) => {type: string, description: string, ...}
|
|
240
|
+
*/
|
|
241
|
+
export declare function convertActionInfo(action: ClinicalPathway_ActionInfo_$union): any;
|
|
242
|
+
/**
|
|
243
|
+
* Find the StateKey for a given ActionInfo in a ClinicalPathwaySpec
|
|
244
|
+
* TypeScript: stateKeyForAction(pathway: ClinicalPathwaySpec, action: ActionInfo) => string | null
|
|
245
|
+
*/
|
|
246
|
+
export declare function stateKeyForAction(pathway: ClinicalPathway_ClinicalPathwaySpec, action: ClinicalPathway_ActionInfo_$union): Option<string>;
|
|
247
|
+
//# sourceMappingURL=FormSpec.Api.Helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormSpec.Api.Helpers.d.ts","sourceRoot":"","sources":["../../FormSpec.TS/Interop/FormSpec.Api.Helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqF,MAAM,EAA8B,MAAM,uCAAuC,CAAC;AAC9K,OAAO,EAA0G,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAGzK,OAAO,EAAuC,QAAQ,EAAY,MAAM,2CAA2C,CAAC;AAEpH,OAAO,EAAyE,IAAI,EAAyB,MAAM,qCAAqC,CAAC;AACzJ,OAAO,EAAuJ,iCAAiC,EAA2Z,mCAAmC,EAAqN,oCAAoC,EAAmN,+BAA+B,EAAgf,eAAe,EAA2C,kBAAkB,EAAgT,eAAe,EAAE,gBAAgB,EAAE,8BAA8B,EAA8C,qBAAqB,EAAE,eAAe,EAA2D,MAAM,gBAAgB,CAAC;AAE3rE,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAQ7D,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAK7D;;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