@f1studio/form-spec 5.0.0-alpha.101 → 5.0.0-alpha.103
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/Components/HelloComponent.d.ts +20 -0
- package/Components/HelloComponent.d.ts.map +1 -0
- package/Designer.d.ts.map +1 -0
- package/FormSpec.TS/Designer.js +2 -2
- package/FormSpec.TS/Designer.js.map +1 -1
- package/FormSpec.TS/Designer.ts.map +1 -1
- package/FormSpec.TS/FormSpec.js +210 -143
- package/FormSpec.TS/FormSpec.js.map +1 -1
- package/FormSpec.TS/FormSpec.ts.map +1 -1
- package/FormSpec.TS/FormSpecHelpers.js +62 -40
- package/FormSpec.TS/FormSpecHelpers.js.map +1 -1
- package/FormSpec.TS/FormSpecHelpers.ts.map +1 -1
- package/FormSpec.TS/FormSpecValues.js +207 -0
- package/FormSpec.TS/FormSpecValues.js.map +1 -0
- package/FormSpec.TS/FormSpecValues.ts.map +1 -0
- package/FormSpec.TS/Helpers.js +26 -25
- package/FormSpec.TS/Helpers.js.map +1 -1
- package/FormSpec.TS/Helpers.ts.map +1 -1
- package/FormSpec.TS/Interop/FormSpec.Api.Helpers.js +85 -125
- package/FormSpec.TS/Interop/FormSpec.Api.Helpers.js.map +1 -1
- package/FormSpec.TS/Interop/FormSpec.Api.Helpers.ts.map +1 -1
- package/FormSpec.TS/Interop/FormSpec.Api.Option.js +37 -7
- package/FormSpec.TS/Interop/FormSpec.Api.Option.js.map +1 -1
- package/FormSpec.TS/Interop/FormSpec.Api.Option.ts.map +1 -1
- package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.js +103 -80
- package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.js.map +1 -1
- package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.ts.map +1 -1
- package/FormSpec.TS/PathwayExecutor.js +371 -125
- package/FormSpec.TS/PathwayExecutor.js.map +1 -1
- package/FormSpec.TS/PathwayExecutor.ts.map +1 -1
- package/FormSpec.TS/PathwayValidator.js +14 -26
- package/FormSpec.TS/PathwayValidator.js.map +1 -1
- package/FormSpec.TS/PathwayValidator.ts.map +1 -1
- package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.ts.map +1 -1
- package/FormSpec.TS/Renderers/PathwayRenderers.js +35 -26
- package/FormSpec.TS/Renderers/PathwayRenderers.js.map +1 -1
- package/FormSpec.TS/Renderers/PathwayRenderers.ts.map +1 -1
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs +0 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs +0 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs +0 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Fable.Form.fableproj +0 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs +0 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Fable.Form.Simple.fableproj +0 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs +0 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Extensions.fs +0 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs +0 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Types.fableproj +0 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs +0 -0
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.Types.fableproj +0 -0
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/BorderStyle.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Feliz.fableproj +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Fonts.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/GridTypes.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Html.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Length.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Locale.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactInterop.js +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactInterop.js.map +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Styles.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/TextDecorationLine.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/TextDecorationStyle.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Transform.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/TransformOrigin.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/TransitionProperty.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs +0 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs +0 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs +0 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.js.map +1 -1
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.ts.map +1 -1
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs +0 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Thoth.Json.fableproj +0 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs +0 -0
- package/FormSpec.TS/fable_modules/project_cracked.json +1 -1
- package/FormSpec.d.ts +56 -43
- package/FormSpec.d.ts.map +1 -0
- package/FormSpecHelpers.d.ts +18 -12
- package/FormSpecHelpers.d.ts.map +1 -0
- package/FormSpecValues.d.ts +62 -0
- package/FormSpecValues.d.ts.map +1 -0
- package/Helpers.d.ts +11 -10
- package/Helpers.d.ts.map +1 -0
- package/Interfaces.d.ts.map +1 -0
- package/Interop/FormSpec.Api.Helpers.d.ts +25 -28
- package/Interop/FormSpec.Api.Helpers.d.ts.map +1 -1
- package/Interop/FormSpec.Api.Option.d.ts +10 -6
- package/Interop/FormSpec.Api.Option.d.ts.map +1 -1
- package/Interop/FormSpec.Values.Api.Option.d.ts +35 -22
- package/Interop/FormSpec.Values.Api.Option.d.ts.map +1 -1
- package/Logging/LogTypes.d.ts +112 -0
- package/Logging/LogTypes.d.ts.map +1 -0
- package/Migrator.d.ts.map +1 -0
- package/PathwayDataExtractor.d.ts.map +1 -0
- package/PathwayExecutor.d.ts +63 -33
- package/PathwayExecutor.d.ts.map +1 -0
- package/PathwayValidator.d.ts.map +1 -0
- package/PluginInterface.d.ts.map +1 -0
- package/Prelude.d.ts.map +1 -0
- package/README.TS.md +621 -621
- package/README.md +98 -85
- package/Renderers/FormSpecMarkdownRenderer.d.ts +11 -0
- package/Renderers/FormSpecMarkdownRenderer.d.ts.map +1 -0
- package/Renderers/MermaidRenderer.d.ts +48 -0
- package/Renderers/MermaidRenderer.d.ts.map +1 -0
- package/Renderers/PathwayRenderers.d.ts +59 -0
- package/Renderers/PathwayRenderers.d.ts.map +1 -0
- package/fable_modules/Thoth.Json.10.4.1/Decode.fs.d.ts +126 -0
- package/fable_modules/Thoth.Json.10.4.1/Decode.fs.d.ts.map +1 -0
- package/fable_modules/Thoth.Json.10.4.1/Encode.fs.d.ts +163 -0
- package/fable_modules/Thoth.Json.10.4.1/Encode.fs.d.ts.map +1 -0
- package/fable_modules/Thoth.Json.10.4.1/Types.fs.d.ts +66 -0
- package/fable_modules/Thoth.Json.10.4.1/Types.fs.d.ts.map +1 -0
- package/package.json +53 -39
- package/src/Components/HelloComponent.ts +48 -48
- package/src/Designer.ts +389 -389
- package/src/FormSpec.ts +3154 -3114
- package/src/FormSpecHelpers.ts +397 -374
- package/src/FormSpecValues.ts +158 -0
- package/src/Helpers.ts +766 -765
- package/src/Interfaces.ts +166 -166
- package/src/Interop/FormSpec.Api.Helpers.ts +835 -872
- package/src/Interop/FormSpec.Api.Option.ts +1637 -1618
- package/src/Interop/FormSpec.Values.Api.Option.ts +1241 -1214
- package/src/Logging/LogTypes.ts +212 -212
- package/src/Migrator.ts +156 -156
- package/src/PathwayDataExtractor.ts +290 -290
- package/src/PathwayExecutor.ts +1379 -1102
- package/src/PathwayValidator.ts +238 -244
- package/src/PluginInterface.ts +79 -79
- package/src/Prelude.ts +21 -21
- package/src/Renderers/FormSpecMarkdownRenderer.ts +875 -874
- package/src/Renderers/MermaidRenderer.ts +218 -218
- package/src/Renderers/PathwayRenderers.ts +208 -200
- package/src/Components/HelloComponent.ts.map +0 -1
- package/src/Designer.ts.map +0 -1
- package/src/FormSpec.ts.map +0 -1
- package/src/FormSpecHelpers.ts.map +0 -1
- package/src/Helpers.ts.map +0 -1
- package/src/Interfaces.ts.map +0 -1
- package/src/Interop/FormSpec.Api.Helpers.ts.map +0 -1
- package/src/Interop/FormSpec.Api.Option.ts.map +0 -1
- package/src/Interop/FormSpec.Values.Api.Option.ts.map +0 -1
- package/src/Logging/LogTypes.ts.map +0 -1
- package/src/Migrator.ts.map +0 -1
- package/src/PathwayDataExtractor.ts.map +0 -1
- package/src/PathwayExecutor.ts.map +0 -1
- package/src/PathwayValidator.ts.map +0 -1
- package/src/PluginInterface.ts.map +0 -1
- package/src/Prelude.ts.map +0 -1
- package/src/Renderers/FormSpecMarkdownRenderer.ts.map +0 -1
- package/src/Renderers/MermaidRenderer.ts.map +0 -1
- package/src/Renderers/PathwayRenderers.ts.map +0 -1
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { decimal as decimal_1 } from "@fable-org/fable-library-js/Decimal.js";
|
|
2
|
+
import { FSharpList } from "@fable-org/fable-library-js/List.js";
|
|
3
|
+
import { FSharpMap } from "@fable-org/fable-library-js/Map.js";
|
|
4
|
+
import { uint64 as uint64_1, int64 as int64_1 } from "@fable-org/fable-library-js/BigInt.js";
|
|
5
|
+
import { Option } from "@fable-org/fable-library-js/Option.js";
|
|
6
|
+
import { int32 } from "@fable-org/fable-library-js/Int32.js";
|
|
7
|
+
import { TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
|
|
8
|
+
import { ExtraCoders, CaseStrategy_$union } from "./Types.fs.js";
|
|
9
|
+
/**
|
|
10
|
+
* **Description**
|
|
11
|
+
* Encode a GUID
|
|
12
|
+
*
|
|
13
|
+
* **Parameters**
|
|
14
|
+
* * `value` - parameter of type `System.Guid`
|
|
15
|
+
*
|
|
16
|
+
* **Output Type**
|
|
17
|
+
* * `Value`
|
|
18
|
+
*
|
|
19
|
+
* **Exceptions**
|
|
20
|
+
*/
|
|
21
|
+
export declare function guid(value: string): any;
|
|
22
|
+
/**
|
|
23
|
+
* **Description**
|
|
24
|
+
* Encode a Decimal.
|
|
25
|
+
*
|
|
26
|
+
* **Parameters**
|
|
27
|
+
* * `value` - parameter of type `decimal`
|
|
28
|
+
*
|
|
29
|
+
* **Output Type**
|
|
30
|
+
* * `Value`
|
|
31
|
+
*
|
|
32
|
+
* **Exceptions**
|
|
33
|
+
*/
|
|
34
|
+
export declare function decimal(value: decimal_1): any;
|
|
35
|
+
export declare const nil: any;
|
|
36
|
+
/**
|
|
37
|
+
* **Description**
|
|
38
|
+
* Encode an object
|
|
39
|
+
*
|
|
40
|
+
* **Parameters**
|
|
41
|
+
* * `values` - parameter of type `(string * Value) list`
|
|
42
|
+
*
|
|
43
|
+
* **Output Type**
|
|
44
|
+
* * `Value`
|
|
45
|
+
*
|
|
46
|
+
* **Exceptions**
|
|
47
|
+
*/
|
|
48
|
+
export declare function object(values: Iterable<[string, any]>): any;
|
|
49
|
+
/**
|
|
50
|
+
* **Description**
|
|
51
|
+
* Encode a list
|
|
52
|
+
* **Parameters**
|
|
53
|
+
* * `values` - parameter of type `Value list`
|
|
54
|
+
*
|
|
55
|
+
* **Output Type**
|
|
56
|
+
* * `Value`
|
|
57
|
+
*
|
|
58
|
+
* **Exceptions**
|
|
59
|
+
*/
|
|
60
|
+
export declare function list(values: FSharpList<any>): any;
|
|
61
|
+
export declare function seq(values: Iterable<any>): any;
|
|
62
|
+
/**
|
|
63
|
+
* **Description**
|
|
64
|
+
* Encode a dictionary
|
|
65
|
+
* **Parameters**
|
|
66
|
+
* * `values` - parameter of type `Map<string, Value>`
|
|
67
|
+
*
|
|
68
|
+
* **Output Type**
|
|
69
|
+
* * `Value`
|
|
70
|
+
*
|
|
71
|
+
* **Exceptions**
|
|
72
|
+
*/
|
|
73
|
+
export declare function dict(values: FSharpMap<string, any>): any;
|
|
74
|
+
export declare function bigint(value: bigint): any;
|
|
75
|
+
export declare function datetimeOffset(value: Date): any;
|
|
76
|
+
/**
|
|
77
|
+
* **Description**
|
|
78
|
+
* Encode a timespan
|
|
79
|
+
* **Parameters**
|
|
80
|
+
* * `value` - parameter of type `System.TimeSpan`
|
|
81
|
+
*
|
|
82
|
+
* **Output Type**
|
|
83
|
+
* * `Value`
|
|
84
|
+
*
|
|
85
|
+
* **Exceptions**
|
|
86
|
+
*/
|
|
87
|
+
export declare function timespan(value: number): any;
|
|
88
|
+
export declare function int64(value: int64_1): any;
|
|
89
|
+
export declare function uint64(value: uint64_1): any;
|
|
90
|
+
export declare function unit(): any;
|
|
91
|
+
export declare function tuple2<T1, T2>(enc1: ((arg0: T1) => any), enc2: ((arg0: T2) => any), v1: T1, v2: T2): any;
|
|
92
|
+
export declare function tuple3<T1, T2, T3>(enc1: ((arg0: T1) => any), enc2: ((arg0: T2) => any), enc3: ((arg0: T3) => any), v1: T1, v2: T2, v3: T3): any;
|
|
93
|
+
export declare function tuple4<T1, T2, T3, T4>(enc1: ((arg0: T1) => any), enc2: ((arg0: T2) => any), enc3: ((arg0: T3) => any), enc4: ((arg0: T4) => any), v1: T1, v2: T2, v3: T3, v4: T4): any;
|
|
94
|
+
export declare function tuple5<T1, T2, T3, T4, T5>(enc1: ((arg0: T1) => any), enc2: ((arg0: T2) => any), enc3: ((arg0: T3) => any), enc4: ((arg0: T4) => any), enc5: ((arg0: T5) => any), v1: T1, v2: T2, v3: T3, v4: T4, v5: T5): any;
|
|
95
|
+
export declare function tuple6<T1, T2, T3, T4, T5, T6>(enc1: ((arg0: T1) => any), enc2: ((arg0: T2) => any), enc3: ((arg0: T3) => any), enc4: ((arg0: T4) => any), enc5: ((arg0: T5) => any), enc6: ((arg0: T6) => any), v1: T1, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6): any;
|
|
96
|
+
export declare function tuple7<T1, T2, T3, T4, T5, T6, T7>(enc1: ((arg0: T1) => any), enc2: ((arg0: T2) => any), enc3: ((arg0: T3) => any), enc4: ((arg0: T4) => any), enc5: ((arg0: T5) => any), enc6: ((arg0: T6) => any), enc7: ((arg0: T7) => any), v1: T1, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6, v7: T7): any;
|
|
97
|
+
export declare function tuple8<T1, T2, T3, T4, T5, T6, T7, T8>(enc1: ((arg0: T1) => any), enc2: ((arg0: T2) => any), enc3: ((arg0: T3) => any), enc4: ((arg0: T4) => any), enc5: ((arg0: T5) => any), enc6: ((arg0: T6) => any), enc7: ((arg0: T7) => any), enc8: ((arg0: T8) => any), v1: T1, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6, v7: T7, v8: T8): any;
|
|
98
|
+
export declare function map<key, value>(keyEncoder: ((arg0: key) => any), valueEncoder: ((arg0: value) => any), values: FSharpMap<key, value>): any;
|
|
99
|
+
export declare function Enum_byte<TEnum>(value: TEnum): any;
|
|
100
|
+
export declare function Enum_sbyte<TEnum>(value: TEnum): any;
|
|
101
|
+
export declare function Enum_int16<TEnum>(value: TEnum): any;
|
|
102
|
+
export declare function Enum_uint16<TEnum>(value: TEnum): any;
|
|
103
|
+
export declare function Enum_int<TEnum>(value: TEnum): any;
|
|
104
|
+
export declare function Enum_uint32<TEnum>(value: TEnum): any;
|
|
105
|
+
/**
|
|
106
|
+
* **Description**
|
|
107
|
+
*
|
|
108
|
+
* The DateTime is always encoded using UTC representation
|
|
109
|
+
*
|
|
110
|
+
* **Parameters**
|
|
111
|
+
* * `value` - parameter of type `System.DateTime`
|
|
112
|
+
*
|
|
113
|
+
* **Output Type**
|
|
114
|
+
* * `Value`
|
|
115
|
+
*
|
|
116
|
+
* **Exceptions**
|
|
117
|
+
*/
|
|
118
|
+
export declare function datetime(value: Date): any;
|
|
119
|
+
/**
|
|
120
|
+
* **Description**
|
|
121
|
+
* Convert a `Value` into a prettified string.
|
|
122
|
+
* **Parameters**
|
|
123
|
+
* * `space` - parameter of type `int` - Amount of indentation
|
|
124
|
+
* * `value` - parameter of type `obj` - Value to convert
|
|
125
|
+
*
|
|
126
|
+
* **Output Type**
|
|
127
|
+
* * `string`
|
|
128
|
+
*
|
|
129
|
+
* **Exceptions**
|
|
130
|
+
*/
|
|
131
|
+
export declare function toString(space: int32, value: any): string;
|
|
132
|
+
/**
|
|
133
|
+
* **Description**
|
|
134
|
+
* Encode an option
|
|
135
|
+
* **Parameters**
|
|
136
|
+
* * `encoder` - parameter of type `'a -> Value`
|
|
137
|
+
*
|
|
138
|
+
* **Output Type**
|
|
139
|
+
* * `'a option -> Value`
|
|
140
|
+
*
|
|
141
|
+
* **Exceptions**
|
|
142
|
+
*/
|
|
143
|
+
export declare function option<a>(encoder: ((arg0: a) => any)): ((arg0: Option<a>) => any);
|
|
144
|
+
export declare class Auto {
|
|
145
|
+
constructor();
|
|
146
|
+
}
|
|
147
|
+
export declare function Auto_$reflection(): TypeInfo;
|
|
148
|
+
export declare function Auto_generateBoxedEncoderCached_437914C6(t: any, caseStrategy?: CaseStrategy_$union, extra?: ExtraCoders, skipNullField?: boolean): ((arg0: any) => any);
|
|
149
|
+
export declare function Auto_generateBoxedEncoder_437914C6(t: any, caseStrategy?: CaseStrategy_$union, extra?: ExtraCoders, skipNullField?: boolean): ((arg0: any) => any);
|
|
150
|
+
/**
|
|
151
|
+
* **Description**
|
|
152
|
+
* Convert a `Value` into a prettified string.
|
|
153
|
+
* **Parameters**
|
|
154
|
+
* * `space` - parameter of type `int` - Amount of indentation
|
|
155
|
+
* * `value` - parameter of type `obj` - Value to convert
|
|
156
|
+
*
|
|
157
|
+
* **Output Type**
|
|
158
|
+
* * `string`
|
|
159
|
+
*
|
|
160
|
+
* **Exceptions**
|
|
161
|
+
*/
|
|
162
|
+
export declare function encode(space: int32, value: any): string;
|
|
163
|
+
//# sourceMappingURL=Encode.fs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Encode.fs.d.ts","sourceRoot":"","sources":["../../../FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAA0B,MAAM,wCAAwC,CAAC;AAEtG,OAAO,EAAgB,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAqC,SAAS,EAAU,MAAM,oCAAoC,CAAC;AAC1G,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAE,KAAK,IAAI,OAAO,EAA0B,MAAM,uCAAuC,CAAC;AAGrH,OAAO,EAAiC,MAAM,EAAsC,MAAM,uCAAuC,CAAC;AAClI,OAAO,EAAwD,KAAK,EAAE,MAAM,sCAAsC,CAAC;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AgB,wCAAwC,CAAC,CAAC,EAAE,GAAG,EAAE,YAAY,CAAC,EAAE,mBAAmB,EAAE,KAAK,CAAC,EAAE,WAAW,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC,CAKvK;AAED,wBAAgB,kCAAkC,CAAC,CAAC,EAAE,GAAG,EAAE,YAAY,CAAC,EAAE,mBAAmB,EAAE,KAAK,CAAC,EAAE,WAAW,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC,CAIjK;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,GAAG,MAAM,CAEvD"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Record, Union } from "@fable-org/fable-library-js/Types.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 { FSharpMap } from "@fable-org/fable-library-js/Map.js";
|
|
5
|
+
import { FSharpResult$2_$union } from "@fable-org/fable-library-js/Result.js";
|
|
6
|
+
import { IMap } from "@fable-org/fable-library-js/Util.js";
|
|
7
|
+
export type ErrorReason_$union = ErrorReason<0> | ErrorReason<1> | ErrorReason<2> | ErrorReason<3> | ErrorReason<4> | ErrorReason<5> | ErrorReason<6> | ErrorReason<7>;
|
|
8
|
+
export type ErrorReason_$cases = {
|
|
9
|
+
0: ["BadPrimitive", [string, any]];
|
|
10
|
+
1: ["BadPrimitiveExtra", [string, any, string]];
|
|
11
|
+
2: ["BadType", [string, any]];
|
|
12
|
+
3: ["BadField", [string, any]];
|
|
13
|
+
4: ["BadPath", [string, any, string]];
|
|
14
|
+
5: ["TooSmallArray", [string, any]];
|
|
15
|
+
6: ["FailMessage", [string]];
|
|
16
|
+
7: ["BadOneOf", [FSharpList<string>]];
|
|
17
|
+
};
|
|
18
|
+
export declare function ErrorReason_BadPrimitive(Item1: string, Item2: any): ErrorReason<0>;
|
|
19
|
+
export declare function ErrorReason_BadPrimitiveExtra(Item1: string, Item2: any, Item3: string): ErrorReason<1>;
|
|
20
|
+
export declare function ErrorReason_BadType(Item1: string, Item2: any): ErrorReason<2>;
|
|
21
|
+
export declare function ErrorReason_BadField(Item1: string, Item2: any): ErrorReason<3>;
|
|
22
|
+
export declare function ErrorReason_BadPath(Item1: string, Item2: any, Item3: string): ErrorReason<4>;
|
|
23
|
+
export declare function ErrorReason_TooSmallArray(Item1: string, Item2: any): ErrorReason<5>;
|
|
24
|
+
export declare function ErrorReason_FailMessage(Item: string): ErrorReason<6>;
|
|
25
|
+
export declare function ErrorReason_BadOneOf(Item: FSharpList<string>): ErrorReason<7>;
|
|
26
|
+
export declare class ErrorReason<Tag extends keyof ErrorReason_$cases> extends Union<Tag, ErrorReason_$cases[Tag][0]> {
|
|
27
|
+
readonly tag: Tag;
|
|
28
|
+
readonly fields: ErrorReason_$cases[Tag][1];
|
|
29
|
+
constructor(tag: Tag, fields: ErrorReason_$cases[Tag][1]);
|
|
30
|
+
cases(): string[];
|
|
31
|
+
}
|
|
32
|
+
export declare function ErrorReason_$reflection(): TypeInfo;
|
|
33
|
+
export type CaseStrategy_$union = CaseStrategy<0> | CaseStrategy<1> | CaseStrategy<2>;
|
|
34
|
+
export type CaseStrategy_$cases = {
|
|
35
|
+
0: ["PascalCase", []];
|
|
36
|
+
1: ["CamelCase", []];
|
|
37
|
+
2: ["SnakeCase", []];
|
|
38
|
+
};
|
|
39
|
+
export declare function CaseStrategy_PascalCase(): CaseStrategy<0>;
|
|
40
|
+
export declare function CaseStrategy_CamelCase(): CaseStrategy<1>;
|
|
41
|
+
export declare function CaseStrategy_SnakeCase(): CaseStrategy<2>;
|
|
42
|
+
export declare class CaseStrategy<Tag extends keyof CaseStrategy_$cases> extends Union<Tag, CaseStrategy_$cases[Tag][0]> {
|
|
43
|
+
readonly tag: Tag;
|
|
44
|
+
readonly fields: CaseStrategy_$cases[Tag][1];
|
|
45
|
+
constructor(tag: Tag, fields: CaseStrategy_$cases[Tag][1]);
|
|
46
|
+
cases(): string[];
|
|
47
|
+
}
|
|
48
|
+
export declare function CaseStrategy_$reflection(): TypeInfo;
|
|
49
|
+
export declare class ExtraCoders extends Record {
|
|
50
|
+
readonly Hash: string;
|
|
51
|
+
readonly Coders: FSharpMap<string, [((arg0: any) => any), ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))]>;
|
|
52
|
+
constructor(Hash: string, Coders: FSharpMap<string, [((arg0: any) => any), ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))]>);
|
|
53
|
+
}
|
|
54
|
+
export declare function ExtraCoders_$reflection(): TypeInfo;
|
|
55
|
+
export declare class Util_Cache$1<Value> {
|
|
56
|
+
readonly cache: IMap<string, Value>;
|
|
57
|
+
constructor();
|
|
58
|
+
}
|
|
59
|
+
export declare function Util_Cache$1_$reflection(gen0: TypeInfo): TypeInfo;
|
|
60
|
+
export declare function Util_Cache$1_$ctor<Value>(): Util_Cache$1<Value>;
|
|
61
|
+
export declare function Util_Cache$1__GetOrAdd_43981464<Value>(__: Util_Cache$1<Value>, key: string, factory: (() => Value)): Value;
|
|
62
|
+
export declare const Util_CachedEncoders: Util_Cache$1<((arg0: any) => any)>;
|
|
63
|
+
export declare const Util_CachedDecoders: Util_Cache$1<((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))>;
|
|
64
|
+
export declare function Util_Casing_lowerFirst(str: string): string;
|
|
65
|
+
export declare function Util_Casing_convert(caseStrategy: CaseStrategy_$union, fieldName: string): string;
|
|
66
|
+
//# sourceMappingURL=Types.fs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Types.fs.d.ts","sourceRoot":"","sources":["../../../FormSpec.TS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|
5
|
-
"main": "./FormSpec.TS/Interop/FormSpec.Api.Option.js",
|
|
6
|
-
"types": "./Interop/FormSpec.Api.Option.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./Interop/FormSpec.Api.Option.d.ts",
|
|
10
|
-
"default": "./FormSpec.TS/Interop/FormSpec.Api.Option.js"
|
|
11
|
-
},
|
|
12
|
-
"./
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
"./
|
|
17
|
-
"types": "./Interop/FormSpec.Api.
|
|
18
|
-
"default": "./FormSpec.TS/Interop/FormSpec.Api.
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@f1studio/form-spec",
|
|
3
|
+
"version": "5.0.0-alpha.103",
|
|
4
|
+
"description": "F1 Core - Form specification and types",
|
|
5
|
+
"main": "./FormSpec.TS/Interop/FormSpec.Api.Option.js",
|
|
6
|
+
"types": "./Interop/FormSpec.Api.Option.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./Interop/FormSpec.Api.Option.d.ts",
|
|
10
|
+
"default": "./FormSpec.TS/Interop/FormSpec.Api.Option.js"
|
|
11
|
+
},
|
|
12
|
+
"./FormSpec": {
|
|
13
|
+
"types": "./FormSpec.d.ts",
|
|
14
|
+
"default": "./FormSpec.TS/FormSpec.js"
|
|
15
|
+
},
|
|
16
|
+
"./Interop/FormSpec.Api.Option": {
|
|
17
|
+
"types": "./Interop/FormSpec.Api.Option.d.ts",
|
|
18
|
+
"default": "./FormSpec.TS/Interop/FormSpec.Api.Option.js"
|
|
19
|
+
},
|
|
20
|
+
"./Interop/FormSpec.Values.Api.Option": {
|
|
21
|
+
"types": "./Interop/FormSpec.Values.Api.Option.d.ts",
|
|
22
|
+
"default": "./FormSpec.TS/Interop/FormSpec.Values.Api.Option.js"
|
|
23
|
+
},
|
|
24
|
+
"./Interop/FormSpec.Api.Helpers": {
|
|
25
|
+
"types": "./Interop/FormSpec.Api.Helpers.d.ts",
|
|
26
|
+
"default": "./FormSpec.TS/Interop/FormSpec.Api.Helpers.js"
|
|
27
|
+
},
|
|
28
|
+
"./PathwayExecutor": {
|
|
29
|
+
"types": "./PathwayExecutor.d.ts",
|
|
30
|
+
"default": "./FormSpec.TS/PathwayExecutor.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"README.md",
|
|
35
|
+
"README.TS.md",
|
|
36
|
+
"**/*.js",
|
|
37
|
+
"**/*.js.map",
|
|
38
|
+
"**/*.d.ts",
|
|
39
|
+
"**/*.d.ts.map",
|
|
40
|
+
"src/**/*.ts",
|
|
41
|
+
"FormSpec.TS/**/*",
|
|
42
|
+
"Interop/**/*"
|
|
43
|
+
],
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@fable-org/fable-library-js": "1.11.0"
|
|
46
|
+
},
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "git+https://github.com/f1-studio/f1-monorepo.git"
|
|
50
|
+
},
|
|
51
|
+
"author": "LuisFX",
|
|
52
|
+
"license": "MIT"
|
|
53
|
+
}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { Record } from "@fable-org/fable-library-js/Types.js";
|
|
2
|
-
import { value, Option } from "@fable-org/fable-library-js/Option.js";
|
|
3
|
-
import { record_type, lambda_type, unit_type, option_type, string_type, TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
|
|
4
|
-
import { printf, toText } from "@fable-org/fable-library-js/String.js";
|
|
5
|
-
|
|
6
|
-
export class HelloComponentProps extends Record {
|
|
7
|
-
readonly name: string;
|
|
8
|
-
readonly message: Option<string>;
|
|
9
|
-
readonly onButtonClick: Option<((arg0: string) => void)>;
|
|
10
|
-
constructor(name: string, message: Option<string>, onButtonClick: Option<((arg0: string) => void)>) {
|
|
11
|
-
super();
|
|
12
|
-
this.name = name;
|
|
13
|
-
this.message = message;
|
|
14
|
-
this.onButtonClick = onButtonClick;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function HelloComponentProps_$reflection(): TypeInfo {
|
|
19
|
-
return record_type("FormSpec.Components.HelloComponent.HelloComponentProps", [], HelloComponentProps, () => [["name", string_type], ["message", option_type(string_type)], ["onButtonClick", option_type(lambda_type(string_type, unit_type))]]);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Generate greeting message from props
|
|
24
|
-
* This pure F# function will be compiled to TypeScript
|
|
25
|
-
*/
|
|
26
|
-
export function getGreetingMessage(props: HelloComponentProps): string {
|
|
27
|
-
const matchValue: Option<string> = props.message;
|
|
28
|
-
if (matchValue == null) {
|
|
29
|
-
return toText(printf("Hello from F#! Welcome, %s"))(props.name);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
return value(matchValue);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Handle button click
|
|
38
|
-
*/
|
|
39
|
-
export function handleButtonClick(props: HelloComponentProps): void {
|
|
40
|
-
const matchValue: Option<((arg0: string) => void)> = props.onButtonClick;
|
|
41
|
-
if (matchValue == null) {
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
value(matchValue)(props.name);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
//# sourceMappingURL=HelloComponent.ts.map
|
|
1
|
+
import { Record } from "@fable-org/fable-library-js/Types.js";
|
|
2
|
+
import { value, Option } from "@fable-org/fable-library-js/Option.js";
|
|
3
|
+
import { record_type, lambda_type, unit_type, option_type, string_type, TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
|
|
4
|
+
import { printf, toText } from "@fable-org/fable-library-js/String.js";
|
|
5
|
+
|
|
6
|
+
export class HelloComponentProps extends Record {
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly message: Option<string>;
|
|
9
|
+
readonly onButtonClick: Option<((arg0: string) => void)>;
|
|
10
|
+
constructor(name: string, message: Option<string>, onButtonClick: Option<((arg0: string) => void)>) {
|
|
11
|
+
super();
|
|
12
|
+
this.name = name;
|
|
13
|
+
this.message = message;
|
|
14
|
+
this.onButtonClick = onButtonClick;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function HelloComponentProps_$reflection(): TypeInfo {
|
|
19
|
+
return record_type("FormSpec.Components.HelloComponent.HelloComponentProps", [], HelloComponentProps, () => [["name", string_type], ["message", option_type(string_type)], ["onButtonClick", option_type(lambda_type(string_type, unit_type))]]);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Generate greeting message from props
|
|
24
|
+
* This pure F# function will be compiled to TypeScript
|
|
25
|
+
*/
|
|
26
|
+
export function getGreetingMessage(props: HelloComponentProps): string {
|
|
27
|
+
const matchValue: Option<string> = props.message;
|
|
28
|
+
if (matchValue == null) {
|
|
29
|
+
return toText(printf("Hello from F#! Welcome, %s"))(props.name);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
return value(matchValue);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Handle button click
|
|
38
|
+
*/
|
|
39
|
+
export function handleButtonClick(props: HelloComponentProps): void {
|
|
40
|
+
const matchValue: Option<((arg0: string) => void)> = props.onButtonClick;
|
|
41
|
+
if (matchValue == null) {
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
value(matchValue)(props.name);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=HelloComponent.ts.map
|