@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,184 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
get BlueprintFilledForm_answer () {
|
|
13
|
+
return BlueprintFilledForm_answer;
|
|
14
|
+
},
|
|
15
|
+
get BlueprintFilledForm_matrix () {
|
|
16
|
+
return BlueprintFilledForm_matrix;
|
|
17
|
+
},
|
|
18
|
+
get BlueprintFilledForm_multiple () {
|
|
19
|
+
return BlueprintFilledForm_multiple;
|
|
20
|
+
},
|
|
21
|
+
get BlueprintFilledForm_pluginData () {
|
|
22
|
+
return BlueprintFilledForm_pluginData;
|
|
23
|
+
},
|
|
24
|
+
get BlueprintFilledForm_pluginProp () {
|
|
25
|
+
return BlueprintFilledForm_pluginProp;
|
|
26
|
+
},
|
|
27
|
+
get BlueprintFilledForm_single () {
|
|
28
|
+
return BlueprintFilledForm_single;
|
|
29
|
+
},
|
|
30
|
+
get Convert_domainKeyToTs () {
|
|
31
|
+
return Convert_domainKeyToTs;
|
|
32
|
+
},
|
|
33
|
+
get Convert_domainMatrixItemKeyToTs () {
|
|
34
|
+
return Convert_domainMatrixItemKeyToTs;
|
|
35
|
+
},
|
|
36
|
+
get Convert_fieldAnswerToTs () {
|
|
37
|
+
return Convert_fieldAnswerToTs;
|
|
38
|
+
},
|
|
39
|
+
get Convert_fieldValueToTs () {
|
|
40
|
+
return Convert_fieldValueToTs;
|
|
41
|
+
},
|
|
42
|
+
get Convert_tsKeyToDomain () {
|
|
43
|
+
return Convert_tsKeyToDomain;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
const _Option = require("@fable-org/fable-library-js/Option.js");
|
|
47
|
+
const _FormSpec = require("../../FormSpec.js");
|
|
48
|
+
const _Guid = require("@fable-org/fable-library-js/Guid.js");
|
|
49
|
+
const _Set = require("@fable-org/fable-library-js/Set.js");
|
|
50
|
+
const _Array = require("@fable-org/fable-library-js/Array.js");
|
|
51
|
+
const _List = require("@fable-org/fable-library-js/List.js");
|
|
52
|
+
const _Util = require("@fable-org/fable-library-js/Util.js");
|
|
53
|
+
const _Map = require("@fable-org/fable-library-js/Map.js");
|
|
54
|
+
function BlueprintFilledForm_single(fieldKey, description, value, documentation) {
|
|
55
|
+
return {
|
|
56
|
+
description: description,
|
|
57
|
+
documentation: (0, _Option.unwrap)(documentation),
|
|
58
|
+
fieldKey: fieldKey,
|
|
59
|
+
kind: "single",
|
|
60
|
+
value: value
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function BlueprintFilledForm_multiple(fieldKey, description, values, documentation) {
|
|
64
|
+
return {
|
|
65
|
+
description: description,
|
|
66
|
+
documentation: (0, _Option.unwrap)(documentation),
|
|
67
|
+
fieldKey: fieldKey,
|
|
68
|
+
kind: "multiple",
|
|
69
|
+
values: values
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function BlueprintFilledForm_matrix(fieldKey, description, values, documentation) {
|
|
73
|
+
return {
|
|
74
|
+
description: description,
|
|
75
|
+
documentation: (0, _Option.unwrap)(documentation),
|
|
76
|
+
fieldKey: fieldKey,
|
|
77
|
+
kind: "matrix",
|
|
78
|
+
values: values
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function BlueprintFilledForm_pluginData(properties) {
|
|
82
|
+
return {
|
|
83
|
+
kind: "pluginData",
|
|
84
|
+
properties: properties
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function BlueprintFilledForm_answer(fieldKey, description, value, documentation) {
|
|
88
|
+
return {
|
|
89
|
+
description: description,
|
|
90
|
+
documentation: (0, _Option.unwrap)(documentation),
|
|
91
|
+
fieldKey: fieldKey,
|
|
92
|
+
value: value
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function BlueprintFilledForm_pluginProp(key, name, dataType, value) {
|
|
96
|
+
return {
|
|
97
|
+
dataType: dataType,
|
|
98
|
+
name: name,
|
|
99
|
+
propertyKey: key,
|
|
100
|
+
value: value
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function Convert_domainKeyToTs(_arg) {
|
|
104
|
+
const guid = _arg.fields[0];
|
|
105
|
+
return guid;
|
|
106
|
+
}
|
|
107
|
+
function Convert_tsKeyToDomain(tsKey) {
|
|
108
|
+
return new _FormSpec.Shared_FieldKey((0, _Guid.parse)(tsKey));
|
|
109
|
+
}
|
|
110
|
+
function Convert_domainMatrixItemKeyToTs(_arg) {
|
|
111
|
+
const guid = _arg.fields[0];
|
|
112
|
+
return guid;
|
|
113
|
+
}
|
|
114
|
+
function Convert_fieldAnswerToTs(fa) {
|
|
115
|
+
const guid = fa.FieldKey.fields[0];
|
|
116
|
+
return {
|
|
117
|
+
description: fa.Description,
|
|
118
|
+
documentation: (0, _Option.unwrap)(fa.Documentation),
|
|
119
|
+
fieldKey: guid,
|
|
120
|
+
value: fa.Value
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
function Convert_fieldValueToTs(fv) {
|
|
124
|
+
switch(fv.tag){
|
|
125
|
+
case /* Multiple */ 1:
|
|
126
|
+
{
|
|
127
|
+
const fas = fv.fields[0];
|
|
128
|
+
const answers = (0, _Array.map)(Convert_fieldAnswerToTs, (0, _Set.toArray)(fas));
|
|
129
|
+
const firstFk = (0, _Set.minElement)(fas).FieldKey;
|
|
130
|
+
return {
|
|
131
|
+
description: "",
|
|
132
|
+
documentation: (0, _Option.unwrap)((0, _Option.bind)((fa_2)=>fa_2.Documentation, (0, _List.tryHead)((0, _Set.toList)(fas)))),
|
|
133
|
+
fieldKey: Convert_domainKeyToTs(firstFk),
|
|
134
|
+
kind: "multiple",
|
|
135
|
+
values: answers
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
case /* Matrix */ 2:
|
|
139
|
+
{
|
|
140
|
+
const ma = fv.fields[0];
|
|
141
|
+
const valuesObj = (0, _Util.createObj)((0, _List.ofArray)((0, _Array.map)((tupledArg)=>[
|
|
142
|
+
tupledArg[0].fields[0],
|
|
143
|
+
tupledArg[1]
|
|
144
|
+
], (0, _Map.toArray)(ma.Values))));
|
|
145
|
+
return {
|
|
146
|
+
description: ma.Description,
|
|
147
|
+
documentation: (0, _Option.unwrap)(ma.Documentation),
|
|
148
|
+
fieldKey: Convert_domainKeyToTs(ma.FieldKey),
|
|
149
|
+
kind: "matrix",
|
|
150
|
+
values: valuesObj
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
case /* PluginData */ 3:
|
|
154
|
+
return {
|
|
155
|
+
kind: "pluginData",
|
|
156
|
+
properties: (0, _Array.map)((p)=>{
|
|
157
|
+
let matchValue;
|
|
158
|
+
const guid = p.PropertyKey.fields[0];
|
|
159
|
+
return {
|
|
160
|
+
dataType: (matchValue = p.DataType.toLowerCase(), matchValue === "string" ? "string" : matchValue === "int" ? "int" : matchValue === "float" ? "float" : matchValue === "bool" ? "bool" : matchValue === "datetime" ? "datetime" : "string"),
|
|
161
|
+
description: (0, _Option.unwrap)(p.Description),
|
|
162
|
+
displayName: (0, _Option.unwrap)(p.DisplayName),
|
|
163
|
+
name: p.Name,
|
|
164
|
+
propertyKey: guid,
|
|
165
|
+
unit: (0, _Option.unwrap)(p.Unit),
|
|
166
|
+
value: p.Value
|
|
167
|
+
};
|
|
168
|
+
}, (0, _List.toArray)(fv.fields[0]))
|
|
169
|
+
};
|
|
170
|
+
default:
|
|
171
|
+
{
|
|
172
|
+
const fa = fv.fields[0];
|
|
173
|
+
return {
|
|
174
|
+
description: fa.Description,
|
|
175
|
+
documentation: (0, _Option.unwrap)(fa.Documentation),
|
|
176
|
+
fieldKey: Convert_domainKeyToTs(fa.FieldKey),
|
|
177
|
+
kind: "single",
|
|
178
|
+
value: fa.Value
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
} //# sourceMappingURL=BlueprintFilledForm.ts.map
|
|
183
|
+
|
|
184
|
+
//# sourceMappingURL=BlueprintFilledForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.ts"],"names":["description","documentation","fieldKey","value","values","properties","dataType","name","key","guid","_arg1","tsKey","fa","fv","fas","answers","fieldAnswerToTs","firstFk","domainKeyToTs","ma","valuesObj","tupledArg","matchValue","p"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA+L0BA;2CAAkBC;kBAA3BC;;eAAqBC;;;;;qBAI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AAAA,MAAAA,CAAAA,EAAAA;;mCAErBD,aAAAC,EAAAA,QAAAA,CAAAA,WAAAA,IAAA,AAAAD,eAAA,WAAA,WAAA,AAAAA,eAAA,QAAA,QAAA,AAAAA,eAAA,UAAA,UAAA,AAAAA,eAAA,SAAA,SAAA,AAAAA,eAAA,aAAA,aAAA,QAAA;yDASgBC,EAAAA,WAAAA;yDAFIA,EAAAA,WAAAA;8BAIlBA,EAAAA,IAAAA;qCAD6Bd;kDAFlBc,EAAAA,IAAAA;+BAKVA,EAAAA,KAAAA;;uBAjBd,aAAA,EAFHV,GAAAA,MAAAA,CAAAA,EAAAA;;;;gBAnBQD,MAAAA,KACZC,GAAAA,MAAAA,CAAAA,EAAAA;;iCAA0CD,GAAAA,WAAAA;uDAAwBA,GAAAA,aAAAA;8BAAnDM,sBAAcN,GAAAA,QAAAA;;2BAA4BA,GAAAA,KAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../FormSpec.FS/Interop/Facade/BlueprintFilledForm.fs"],"names":["description","documentation","fieldKey","value","values","properties","dataType","name","key","guid","_arg1","tsKey","fa","fv","fas","answers","fieldAnswerToTs","firstFk","domainKeyToTs","ma","valuesObj","tupledArg","matchValue","p"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA\u002BL0BA;8BAAkBC;kBAA3BC;;eAAqBC;;;;;;;;;qBAIVH;8BAAmBC;kBAA5BC;;gBAAqBE;;;;;;;;;qBAIdJ;8BAAmBC;kBAA5BC;;gBAAqBE;;;;;;;;;;oBAIjBC;;;;;;;;;qBAI2BL;8BAA4CC;kBAApEC;eAA6CC;;;;;;;;;kBAW7CG;cADJC;qBADOC;eAGNL;;;;;AAWWM,yBAAT,AAAAC;AACf,WAAA,AAAiBD;;;;WAGjB,0BAA2B,AAAUE;;;;AAEEF,yBAAd,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