@researchdatabox/sails-ng-common 0.0.1-beta.8936
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/README.md +5 -0
- package/dist/src/config/base-field-component.model.d.ts +26 -0
- package/dist/src/config/base-field-component.model.js +29 -0
- package/dist/src/config/base-field-component.outline.d.ts +100 -0
- package/dist/src/config/base-field-component.outline.js +3 -0
- package/dist/src/config/component/accordion.model.d.ts +103 -0
- package/dist/src/config/component/accordion.model.js +127 -0
- package/dist/src/config/component/accordion.outline.d.ts +150 -0
- package/dist/src/config/component/accordion.outline.js +13 -0
- package/dist/src/config/component/action-row-layout.model.d.ts +28 -0
- package/dist/src/config/component/action-row-layout.model.js +35 -0
- package/dist/src/config/component/action-row-layout.outline.d.ts +36 -0
- package/dist/src/config/component/action-row-layout.outline.js +6 -0
- package/dist/src/config/component/cancel-button.model.d.ts +46 -0
- package/dist/src/config/component/cancel-button.model.js +56 -0
- package/dist/src/config/component/cancel-button.outline.d.ts +69 -0
- package/dist/src/config/component/cancel-button.outline.js +6 -0
- package/dist/src/config/component/checkbox-input.model.d.ts +65 -0
- package/dist/src/config/component/checkbox-input.model.js +78 -0
- package/dist/src/config/component/checkbox-input.outline.d.ts +85 -0
- package/dist/src/config/component/checkbox-input.outline.js +8 -0
- package/dist/src/config/component/checkbox-tree.model.d.ts +66 -0
- package/dist/src/config/component/checkbox-tree.model.js +79 -0
- package/dist/src/config/component/checkbox-tree.outline.d.ts +96 -0
- package/dist/src/config/component/checkbox-tree.outline.js +8 -0
- package/dist/src/config/component/content.model.d.ts +45 -0
- package/dist/src/config/component/content.model.js +55 -0
- package/dist/src/config/component/content.outline.d.ts +64 -0
- package/dist/src/config/component/content.outline.js +6 -0
- package/dist/src/config/component/data-location.model.d.ts +82 -0
- package/dist/src/config/component/data-location.model.js +94 -0
- package/dist/src/config/component/data-location.outline.d.ts +117 -0
- package/dist/src/config/component/data-location.outline.js +6 -0
- package/dist/src/config/component/date-input.model.d.ts +66 -0
- package/dist/src/config/component/date-input.model.js +79 -0
- package/dist/src/config/component/date-input.outline.d.ts +81 -0
- package/dist/src/config/component/date-input.outline.js +8 -0
- package/dist/src/config/component/default-layout.model.d.ts +22 -0
- package/dist/src/config/component/default-layout.model.js +30 -0
- package/dist/src/config/component/default-layout.outline.d.ts +29 -0
- package/dist/src/config/component/default-layout.outline.js +5 -0
- package/dist/src/config/component/delete-button.model.d.ts +46 -0
- package/dist/src/config/component/delete-button.model.js +48 -0
- package/dist/src/config/component/delete-button.outline.d.ts +55 -0
- package/dist/src/config/component/delete-button.outline.js +5 -0
- package/dist/src/config/component/dropdown-input.model.d.ts +64 -0
- package/dist/src/config/component/dropdown-input.model.js +77 -0
- package/dist/src/config/component/dropdown-input.outline.d.ts +84 -0
- package/dist/src/config/component/dropdown-input.outline.js +8 -0
- package/dist/src/config/component/file-upload.model.d.ts +67 -0
- package/dist/src/config/component/file-upload.model.js +81 -0
- package/dist/src/config/component/file-upload.outline.d.ts +93 -0
- package/dist/src/config/component/file-upload.outline.js +8 -0
- package/dist/src/config/component/group.model.d.ts +61 -0
- package/dist/src/config/component/group.model.js +75 -0
- package/dist/src/config/component/group.outline.d.ts +77 -0
- package/dist/src/config/component/group.outline.js +8 -0
- package/dist/src/config/component/inline-layout.model.d.ts +22 -0
- package/dist/src/config/component/inline-layout.model.js +29 -0
- package/dist/src/config/component/inline-layout.outline.d.ts +29 -0
- package/dist/src/config/component/inline-layout.outline.js +5 -0
- package/dist/src/config/component/map.model.d.ts +68 -0
- package/dist/src/config/component/map.model.js +85 -0
- package/dist/src/config/component/map.outline.d.ts +102 -0
- package/dist/src/config/component/map.outline.js +8 -0
- package/dist/src/config/component/pdf-list.model.d.ts +68 -0
- package/dist/src/config/component/pdf-list.model.js +71 -0
- package/dist/src/config/component/pdf-list.outline.d.ts +91 -0
- package/dist/src/config/component/pdf-list.outline.js +6 -0
- package/dist/src/config/component/publish-data-location-refresh.model.d.ts +38 -0
- package/dist/src/config/component/publish-data-location-refresh.model.js +51 -0
- package/dist/src/config/component/publish-data-location-refresh.outline.d.ts +47 -0
- package/dist/src/config/component/publish-data-location-refresh.outline.js +5 -0
- package/dist/src/config/component/publish-data-location-selector.model.d.ts +74 -0
- package/dist/src/config/component/publish-data-location-selector.model.js +100 -0
- package/dist/src/config/component/publish-data-location-selector.outline.d.ts +99 -0
- package/dist/src/config/component/publish-data-location-selector.outline.js +6 -0
- package/dist/src/config/component/question-tree.helper.d.ts +61 -0
- package/dist/src/config/component/question-tree.helper.js +298 -0
- package/dist/src/config/component/question-tree.model.d.ts +64 -0
- package/dist/src/config/component/question-tree.model.js +80 -0
- package/dist/src/config/component/question-tree.outline.d.ts +305 -0
- package/dist/src/config/component/question-tree.outline.js +9 -0
- package/dist/src/config/component/radio-input.model.d.ts +63 -0
- package/dist/src/config/component/radio-input.model.js +76 -0
- package/dist/src/config/component/radio-input.outline.d.ts +83 -0
- package/dist/src/config/component/radio-input.outline.js +8 -0
- package/dist/src/config/component/record-metadata-retriever.model.d.ts +41 -0
- package/dist/src/config/component/record-metadata-retriever.model.js +57 -0
- package/dist/src/config/component/record-metadata-retriever.outline.d.ts +47 -0
- package/dist/src/config/component/record-metadata-retriever.outline.js +5 -0
- package/dist/src/config/component/record-selector.model.d.ts +60 -0
- package/dist/src/config/component/record-selector.model.js +60 -0
- package/dist/src/config/component/record-selector.outline.d.ts +84 -0
- package/dist/src/config/component/record-selector.outline.js +6 -0
- package/dist/src/config/component/repeatable.model.d.ts +90 -0
- package/dist/src/config/component/repeatable.model.js +109 -0
- package/dist/src/config/component/repeatable.outline.d.ts +108 -0
- package/dist/src/config/component/repeatable.outline.js +10 -0
- package/dist/src/config/component/reusable.model.d.ts +42 -0
- package/dist/src/config/component/reusable.model.js +57 -0
- package/dist/src/config/component/reusable.outline.d.ts +49 -0
- package/dist/src/config/component/reusable.outline.js +6 -0
- package/dist/src/config/component/rich-text-editor.model.d.ts +65 -0
- package/dist/src/config/component/rich-text-editor.model.js +79 -0
- package/dist/src/config/component/rich-text-editor.outline.d.ts +86 -0
- package/dist/src/config/component/rich-text-editor.outline.js +8 -0
- package/dist/src/config/component/save-button.model.d.ts +45 -0
- package/dist/src/config/component/save-button.model.js +55 -0
- package/dist/src/config/component/save-button.outline.d.ts +65 -0
- package/dist/src/config/component/save-button.outline.js +6 -0
- package/dist/src/config/component/save-status.model.d.ts +42 -0
- package/dist/src/config/component/save-status.model.js +60 -0
- package/dist/src/config/component/save-status.outline.d.ts +52 -0
- package/dist/src/config/component/save-status.outline.js +6 -0
- package/dist/src/config/component/simple-input.model.d.ts +62 -0
- package/dist/src/config/component/simple-input.model.js +75 -0
- package/dist/src/config/component/simple-input.outline.d.ts +80 -0
- package/dist/src/config/component/simple-input.outline.js +9 -0
- package/dist/src/config/component/tab-content.model.d.ts +63 -0
- package/dist/src/config/component/tab-content.model.js +77 -0
- package/dist/src/config/component/tab-content.outline.d.ts +92 -0
- package/dist/src/config/component/tab-content.outline.js +8 -0
- package/dist/src/config/component/tab-nav-button.model.d.ts +45 -0
- package/dist/src/config/component/tab-nav-button.model.js +55 -0
- package/dist/src/config/component/tab-nav-button.outline.d.ts +64 -0
- package/dist/src/config/component/tab-nav-button.outline.js +6 -0
- package/dist/src/config/component/tab.model.d.ts +71 -0
- package/dist/src/config/component/tab.model.js +84 -0
- package/dist/src/config/component/tab.outline.d.ts +106 -0
- package/dist/src/config/component/tab.outline.js +9 -0
- package/dist/src/config/component/text-area.model.d.ts +63 -0
- package/dist/src/config/component/text-area.model.js +76 -0
- package/dist/src/config/component/text-area.outline.d.ts +81 -0
- package/dist/src/config/component/text-area.outline.js +8 -0
- package/dist/src/config/component/typeahead-input.model.d.ts +78 -0
- package/dist/src/config/component/typeahead-input.model.js +91 -0
- package/dist/src/config/component/typeahead-input.outline.d.ts +107 -0
- package/dist/src/config/component/typeahead-input.outline.js +8 -0
- package/dist/src/config/component/validation-summary.model.d.ts +42 -0
- package/dist/src/config/component/validation-summary.model.js +60 -0
- package/dist/src/config/component/validation-summary.outline.d.ts +57 -0
- package/dist/src/config/component/validation-summary.outline.js +6 -0
- package/dist/src/config/dictionary.model.d.ts +624 -0
- package/dist/src/config/dictionary.model.js +175 -0
- package/dist/src/config/dictionary.outline.d.ts +94 -0
- package/dist/src/config/dictionary.outline.js +3 -0
- package/dist/src/config/field-component.model.d.ts +7 -0
- package/dist/src/config/field-component.model.js +11 -0
- package/dist/src/config/field-component.outline.d.ts +20 -0
- package/dist/src/config/field-component.outline.js +3 -0
- package/dist/src/config/field-layout.model.d.ts +19 -0
- package/dist/src/config/field-layout.model.js +23 -0
- package/dist/src/config/field-layout.outline.d.ts +42 -0
- package/dist/src/config/field-layout.outline.js +3 -0
- package/dist/src/config/field-model.model.d.ts +22 -0
- package/dist/src/config/field-model.model.js +25 -0
- package/dist/src/config/field-model.outline.d.ts +63 -0
- package/dist/src/config/field-model.outline.js +3 -0
- package/dist/src/config/field.model.d.ts +12 -0
- package/dist/src/config/field.model.js +12 -0
- package/dist/src/config/field.outline.d.ts +19 -0
- package/dist/src/config/field.outline.js +3 -0
- package/dist/src/config/form-behaviour.outline.d.ts +128 -0
- package/dist/src/config/form-behaviour.outline.js +40 -0
- package/dist/src/config/form-component.model.d.ts +38 -0
- package/dist/src/config/form-component.model.js +36 -0
- package/dist/src/config/form-component.outline.d.ts +257 -0
- package/dist/src/config/form-component.outline.js +24 -0
- package/dist/src/config/form-config.model.d.ts +33 -0
- package/dist/src/config/form-config.model.js +36 -0
- package/dist/src/config/form-config.outline.d.ts +109 -0
- package/dist/src/config/form-config.outline.js +3 -0
- package/dist/src/config/form-override.model.d.ts +116 -0
- package/dist/src/config/form-override.model.js +1209 -0
- package/dist/src/config/form-override.outline.d.ts +15 -0
- package/dist/src/config/form-override.outline.js +3 -0
- package/dist/src/config/form-types.model.d.ts +6 -0
- package/dist/src/config/form-types.model.js +23 -0
- package/dist/src/config/form-types.outline.d.ts +48 -0
- package/dist/src/config/form-types.outline.js +137 -0
- package/dist/src/config/helpers.d.ts +23 -0
- package/dist/src/config/helpers.js +105 -0
- package/dist/src/config/names/naming-helpers.d.ts +71 -0
- package/dist/src/config/names/naming-helpers.js +72 -0
- package/dist/src/config/names/query-helpers.d.ts +43 -0
- package/dist/src/config/names/query-helpers.js +64 -0
- package/dist/src/config/shared.outline.d.ts +54 -0
- package/dist/src/config/shared.outline.js +41 -0
- package/dist/src/config/visitor/base.model.d.ts +137 -0
- package/dist/src/config/visitor/base.model.js +323 -0
- package/dist/src/config/visitor/base.outline.d.ts +140 -0
- package/dist/src/config/visitor/base.outline.js +3 -0
- package/dist/src/config/visitor/common.model.d.ts +119 -0
- package/dist/src/config/visitor/common.model.js +421 -0
- package/dist/src/handlebars-helpers.d.ts +224 -0
- package/dist/src/handlebars-helpers.js +558 -0
- package/dist/src/index.d.ts +109 -0
- package/dist/src/index.js +136 -0
- package/dist/src/logger.interface.d.ts +14 -0
- package/dist/src/logger.interface.js +3 -0
- package/dist/src/record.model.d.ts +35 -0
- package/dist/src/record.model.js +21 -0
- package/dist/src/report.model.d.ts +21 -0
- package/dist/src/report.model.js +19 -0
- package/dist/src/status.model.d.ts +22 -0
- package/dist/src/status.model.js +28 -0
- package/dist/src/template.outline.d.ts +49 -0
- package/dist/src/template.outline.js +13 -0
- package/dist/src/translation-helpers.d.ts +10 -0
- package/dist/src/translation-helpers.js +30 -0
- package/dist/src/validation/form.model.d.ts +247 -0
- package/dist/src/validation/form.model.js +31 -0
- package/dist/src/validation/helpers.d.ts +14 -0
- package/dist/src/validation/helpers.js +68 -0
- package/dist/src/validation/validators-support.d.ts +41 -0
- package/dist/src/validation/validators-support.js +141 -0
- package/dist/src/validation/validators.d.ts +23 -0
- package/dist/src/validation/validators.js +427 -0
- package/package.json +95 -0
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { AvailableFieldLayoutDefinitionFrames, AvailableFieldLayoutDefinitionOutlines, AvailableFormComponentDefinitionFrames, AvailableFormComponentDefinitionOutlines } from "../dictionary.outline";
|
|
2
|
+
import { FormComponentDefinitionFrame, FormComponentDefinitionOutline } from "../form-component.outline";
|
|
3
|
+
import { FieldModelConfigFrame, FieldModelConfigOutline, FieldModelDefinitionFrame, FieldModelDefinitionOutline } from "../field-model.outline";
|
|
4
|
+
import { FieldComponentConfigFrame, FieldComponentConfigOutline, FieldComponentDefinitionFrame, FieldComponentDefinitionOutline } from "../field-component.outline";
|
|
5
|
+
import { FieldComponentConfigFrameKindType, FieldComponentConfigKindType, FieldComponentDefinitionFrameKindType, FieldComponentDefinitionKindType, FieldModelConfigFrameKindType, FieldModelConfigKindType, FieldModelDefinitionFrameKindType, FieldModelDefinitionKindType, FormComponentDefinitionFrameKindType, FormComponentDefinitionKindType } from "../shared.outline";
|
|
6
|
+
/**
|
|
7
|
+
* The available outcomes for a question tree.
|
|
8
|
+
*/
|
|
9
|
+
export interface QuestionTreeOutcome {
|
|
10
|
+
/**
|
|
11
|
+
* The outcome value.
|
|
12
|
+
*/
|
|
13
|
+
value: QuestionTreeOutcomeValue;
|
|
14
|
+
/**
|
|
15
|
+
* The optional translation message to use as the label, or the actual label text.
|
|
16
|
+
* Leave out or set 'falsy' to use a translation message id of `${question-tree-name}-${outcome-value}`.
|
|
17
|
+
*/
|
|
18
|
+
label?: string | null;
|
|
19
|
+
}
|
|
20
|
+
type QuestionTreeOutcomeValue = string;
|
|
21
|
+
/**
|
|
22
|
+
* The available additional data that can be included with answers and outcomes for a question tree.
|
|
23
|
+
*/
|
|
24
|
+
export interface QuestionTreeMeta {
|
|
25
|
+
/**
|
|
26
|
+
* The available additional metadata property keys.
|
|
27
|
+
*/
|
|
28
|
+
[key: string]: {
|
|
29
|
+
/**
|
|
30
|
+
* The key is an available property value.
|
|
31
|
+
* The optional value is the translation message id.
|
|
32
|
+
* Set value 'falsy' to use a translation message id of `${question-tree-name}-${outcome-meta-property-key}-${outcome-meta-property-value}`.
|
|
33
|
+
*/
|
|
34
|
+
[key: string]: string | null;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The additional metadata for an answer.
|
|
39
|
+
*/
|
|
40
|
+
export interface QuestionTreeAnswerMeta {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* One answer to a question in a question tree.
|
|
45
|
+
*/
|
|
46
|
+
export interface QuestionTreeQuestionAnswer {
|
|
47
|
+
/**
|
|
48
|
+
* The answer value.
|
|
49
|
+
*/
|
|
50
|
+
value: string;
|
|
51
|
+
/**
|
|
52
|
+
* The optional translation message to use as the label, or the actual label text.
|
|
53
|
+
* Leave out or set 'falsy' to use a translation message id of `${question-tree-name}-${question-id}-${answer-id}`.
|
|
54
|
+
*/
|
|
55
|
+
label?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* The optional outcome applied when this answer is selected.
|
|
58
|
+
*
|
|
59
|
+
* The 'outcomes' object specifies the valid keys and values that can be used here.
|
|
60
|
+
* Setting an outcome may not finish the question tree, as it is possible to have multiple outcomes.
|
|
61
|
+
*/
|
|
62
|
+
outcome?: QuestionTreeOutcomeValue;
|
|
63
|
+
/**
|
|
64
|
+
* Optional additional / meta allows including more data with the answer and outcome.
|
|
65
|
+
*/
|
|
66
|
+
meta?: QuestionTreeAnswerMeta;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* A question rule that always matches.
|
|
70
|
+
*/
|
|
71
|
+
export interface QuestionTreeQuestionRuleTrue {
|
|
72
|
+
/**
|
|
73
|
+
* The question rule operation identifier.
|
|
74
|
+
* A question rule that always matches.
|
|
75
|
+
*/
|
|
76
|
+
op: "true";
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* A question rule that combines others rules using 'AND'.
|
|
80
|
+
*/
|
|
81
|
+
export interface QuestionTreeQuestionRuleAnd {
|
|
82
|
+
/**
|
|
83
|
+
* The question rule operation identifier.
|
|
84
|
+
* A question rule that combines others rules using 'AND'.
|
|
85
|
+
*/
|
|
86
|
+
op: "and";
|
|
87
|
+
/**
|
|
88
|
+
* The other rules to combine.
|
|
89
|
+
*/
|
|
90
|
+
args: QuestionTreeQuestionRules[];
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* A question rule that combines others rules using 'OR'.
|
|
94
|
+
*/
|
|
95
|
+
export interface QuestionTreeQuestionRuleOr {
|
|
96
|
+
/**
|
|
97
|
+
* The question rule operation identifier.
|
|
98
|
+
* A question rule that combines others rules using 'OR'.
|
|
99
|
+
*/
|
|
100
|
+
op: "or";
|
|
101
|
+
/**
|
|
102
|
+
* The other rules to combine.
|
|
103
|
+
*/
|
|
104
|
+
args: QuestionTreeQuestionRules[];
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* A question rule that checks whether the question has at least the answer values.
|
|
108
|
+
*/
|
|
109
|
+
export interface QuestionTreeQuestionRuleIn {
|
|
110
|
+
/**
|
|
111
|
+
* The question rule operation identifier.
|
|
112
|
+
* A question rule that checks whether the question has at least the answer values.
|
|
113
|
+
*/
|
|
114
|
+
op: "in";
|
|
115
|
+
/**
|
|
116
|
+
* The question identifier.
|
|
117
|
+
*/
|
|
118
|
+
q: string;
|
|
119
|
+
/**
|
|
120
|
+
* The answer values.
|
|
121
|
+
*/
|
|
122
|
+
a: string[];
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* A question rule that checks whether the question does not have the answer values.
|
|
126
|
+
*/
|
|
127
|
+
export interface QuestionTreeQuestionRuleNotIn {
|
|
128
|
+
/**
|
|
129
|
+
* The question rule operation identifier.
|
|
130
|
+
* A question rule that checks whether the question does not have the answer values.
|
|
131
|
+
*/
|
|
132
|
+
op: "notin";
|
|
133
|
+
/**
|
|
134
|
+
* The question identifier.
|
|
135
|
+
*/
|
|
136
|
+
q: string;
|
|
137
|
+
/**
|
|
138
|
+
* The answer values.
|
|
139
|
+
*/
|
|
140
|
+
a: string[];
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* A question rule that checks whether the question has only the answer values.
|
|
144
|
+
*/
|
|
145
|
+
export interface QuestionTreeQuestionRuleOnly {
|
|
146
|
+
/**
|
|
147
|
+
* The question rule operation identifier.
|
|
148
|
+
* A question rule that checks whether the question has only the answer values.
|
|
149
|
+
*/
|
|
150
|
+
op: "only";
|
|
151
|
+
/**
|
|
152
|
+
* The question identifier.
|
|
153
|
+
*/
|
|
154
|
+
q: string;
|
|
155
|
+
/**
|
|
156
|
+
* The answer values.
|
|
157
|
+
*/
|
|
158
|
+
a: string[];
|
|
159
|
+
}
|
|
160
|
+
export type QuestionTreeQuestionRules = QuestionTreeQuestionRuleTrue | QuestionTreeQuestionRuleAnd | QuestionTreeQuestionRuleOr | QuestionTreeQuestionRuleIn | QuestionTreeQuestionRuleNotIn | QuestionTreeQuestionRuleOnly;
|
|
161
|
+
export declare const QuestionTreeOutcomeInfoKey: "questiontree-outcome-info";
|
|
162
|
+
export type QuestionTreeOutcomeInfo = {
|
|
163
|
+
/**
|
|
164
|
+
* The overall, most important / sensitive outcome.
|
|
165
|
+
*/
|
|
166
|
+
outcome: QuestionTreeOutcome;
|
|
167
|
+
/**
|
|
168
|
+
* An array of all the outcomes and meta produced by the question tree component value selections.
|
|
169
|
+
* This data can be used as the input for the value of other component controls.
|
|
170
|
+
*/
|
|
171
|
+
meta: ({
|
|
172
|
+
outcome: QuestionTreeOutcome;
|
|
173
|
+
[key: string]: QuestionTreeOutcome;
|
|
174
|
+
})[];
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* A question definition.
|
|
178
|
+
*/
|
|
179
|
+
export interface QuestionTreeQuestion {
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
* The question identifier.
|
|
183
|
+
* Used to reference this question and for label and help text translations.
|
|
184
|
+
*/
|
|
185
|
+
id: string;
|
|
186
|
+
/**
|
|
187
|
+
* Optional question label.
|
|
188
|
+
* When set, this value is used directly for the rendered question label.
|
|
189
|
+
*/
|
|
190
|
+
label?: string;
|
|
191
|
+
/**
|
|
192
|
+
* The minimum number of answers that can be supplied.
|
|
193
|
+
* Must be at least 1, up to the maximum or the number of answers.
|
|
194
|
+
*/
|
|
195
|
+
answersMin: number;
|
|
196
|
+
/**
|
|
197
|
+
* The maximum number of answers that can be supplied.
|
|
198
|
+
* Must be at least the minimum, up to the number of answers.
|
|
199
|
+
*/
|
|
200
|
+
answersMax: number;
|
|
201
|
+
/**
|
|
202
|
+
* The possible answers to the question.
|
|
203
|
+
*/
|
|
204
|
+
answers: QuestionTreeQuestionAnswer[];
|
|
205
|
+
/**
|
|
206
|
+
* The rules for showing this question.
|
|
207
|
+
*/
|
|
208
|
+
rules: QuestionTreeQuestionRules;
|
|
209
|
+
}
|
|
210
|
+
export declare const QuestionTreeComponentName: "QuestionTreeComponent";
|
|
211
|
+
export type QuestionTreeComponentNameType = typeof QuestionTreeComponentName;
|
|
212
|
+
export interface QuestionTreeFieldComponentConfigFrame extends FieldComponentConfigFrame {
|
|
213
|
+
/**
|
|
214
|
+
* The available outcome keys and values.
|
|
215
|
+
*
|
|
216
|
+
* The order of the outcomes is the importance / sensitivity,
|
|
217
|
+
* from lowest / least at index 0 to highest / most at index length - 1.
|
|
218
|
+
*
|
|
219
|
+
* Interface only, there is no class for this config property.
|
|
220
|
+
*/
|
|
221
|
+
availableOutcomes: QuestionTreeOutcome[];
|
|
222
|
+
/**
|
|
223
|
+
* The additional data that can be included with outcomes.
|
|
224
|
+
* The additional data has no notion of important / sensitivity.
|
|
225
|
+
* Interface only, there is no class for this config property.
|
|
226
|
+
*/
|
|
227
|
+
availableMeta?: QuestionTreeMeta;
|
|
228
|
+
/**
|
|
229
|
+
* The question definitions.
|
|
230
|
+
* Interface only, there is no class for this config property.
|
|
231
|
+
*/
|
|
232
|
+
questions: QuestionTreeQuestion[];
|
|
233
|
+
componentDefinitions: AvailableFormComponentDefinitionFrames[];
|
|
234
|
+
}
|
|
235
|
+
export interface QuestionTreeFieldComponentConfigOutline extends QuestionTreeFieldComponentConfigFrame, FieldComponentConfigOutline {
|
|
236
|
+
availableOutcomes: QuestionTreeOutcome[];
|
|
237
|
+
availableMeta?: QuestionTreeMeta;
|
|
238
|
+
questions: QuestionTreeQuestion[];
|
|
239
|
+
componentDefinitions: AvailableFormComponentDefinitionOutlines[];
|
|
240
|
+
}
|
|
241
|
+
export interface QuestionTreeFieldComponentDefinitionFrame extends FieldComponentDefinitionFrame {
|
|
242
|
+
class: QuestionTreeComponentNameType;
|
|
243
|
+
config?: QuestionTreeFieldComponentConfigFrame;
|
|
244
|
+
}
|
|
245
|
+
export interface QuestionTreeFieldComponentDefinitionOutline extends QuestionTreeFieldComponentDefinitionFrame, FieldComponentDefinitionOutline {
|
|
246
|
+
class: QuestionTreeComponentNameType;
|
|
247
|
+
config?: QuestionTreeFieldComponentConfigOutline;
|
|
248
|
+
}
|
|
249
|
+
export declare const QuestionTreeModelName: "QuestionTreeModel";
|
|
250
|
+
export type QuestionTreeModelNameType = typeof QuestionTreeModelName;
|
|
251
|
+
export type QuestionTreeModelValueType = Record<string, unknown>;
|
|
252
|
+
export interface QuestionTreeFieldModelConfigFrame extends FieldModelConfigFrame<QuestionTreeModelValueType> {
|
|
253
|
+
}
|
|
254
|
+
export interface QuestionTreeFieldModelConfigOutline extends QuestionTreeFieldModelConfigFrame, FieldModelConfigOutline<QuestionTreeModelValueType> {
|
|
255
|
+
}
|
|
256
|
+
export interface QuestionTreeFieldModelDefinitionFrame extends FieldModelDefinitionFrame<QuestionTreeModelValueType> {
|
|
257
|
+
class: QuestionTreeModelNameType;
|
|
258
|
+
config?: QuestionTreeFieldModelConfigFrame;
|
|
259
|
+
}
|
|
260
|
+
export interface QuestionTreeFieldModelDefinitionOutline extends QuestionTreeFieldModelDefinitionFrame, FieldModelDefinitionOutline<QuestionTreeModelValueType> {
|
|
261
|
+
class: QuestionTreeModelNameType;
|
|
262
|
+
config?: QuestionTreeFieldModelConfigOutline;
|
|
263
|
+
}
|
|
264
|
+
export interface QuestionTreeFormComponentDefinitionFrame extends FormComponentDefinitionFrame {
|
|
265
|
+
component: QuestionTreeFieldComponentDefinitionFrame;
|
|
266
|
+
model?: QuestionTreeFieldModelDefinitionFrame;
|
|
267
|
+
layout?: AvailableFieldLayoutDefinitionFrames;
|
|
268
|
+
}
|
|
269
|
+
export interface QuestionTreeFormComponentDefinitionOutline extends QuestionTreeFormComponentDefinitionFrame, FormComponentDefinitionOutline {
|
|
270
|
+
component: QuestionTreeFieldComponentDefinitionOutline;
|
|
271
|
+
model?: QuestionTreeFieldModelDefinitionOutline;
|
|
272
|
+
layout?: AvailableFieldLayoutDefinitionOutlines;
|
|
273
|
+
}
|
|
274
|
+
export type QuestionTreeTypes = {
|
|
275
|
+
kind: FieldComponentConfigFrameKindType;
|
|
276
|
+
class: QuestionTreeFieldComponentConfigFrame;
|
|
277
|
+
} | {
|
|
278
|
+
kind: FieldComponentDefinitionFrameKindType;
|
|
279
|
+
class: QuestionTreeFieldComponentDefinitionFrame;
|
|
280
|
+
} | {
|
|
281
|
+
kind: FieldModelConfigFrameKindType;
|
|
282
|
+
class: QuestionTreeFieldModelConfigFrame;
|
|
283
|
+
} | {
|
|
284
|
+
kind: FieldModelDefinitionFrameKindType;
|
|
285
|
+
class: QuestionTreeFieldModelDefinitionFrame;
|
|
286
|
+
} | {
|
|
287
|
+
kind: FormComponentDefinitionFrameKindType;
|
|
288
|
+
class: QuestionTreeFormComponentDefinitionFrame;
|
|
289
|
+
} | {
|
|
290
|
+
kind: FieldComponentConfigKindType;
|
|
291
|
+
class: QuestionTreeFieldComponentConfigOutline;
|
|
292
|
+
} | {
|
|
293
|
+
kind: FieldComponentDefinitionKindType;
|
|
294
|
+
class: QuestionTreeFieldComponentDefinitionOutline;
|
|
295
|
+
} | {
|
|
296
|
+
kind: FieldModelConfigKindType;
|
|
297
|
+
class: QuestionTreeFieldModelConfigOutline;
|
|
298
|
+
} | {
|
|
299
|
+
kind: FieldModelDefinitionKindType;
|
|
300
|
+
class: QuestionTreeFieldModelDefinitionOutline;
|
|
301
|
+
} | {
|
|
302
|
+
kind: FormComponentDefinitionKindType;
|
|
303
|
+
class: QuestionTreeFormComponentDefinitionOutline;
|
|
304
|
+
};
|
|
305
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QuestionTreeModelName = exports.QuestionTreeComponentName = exports.QuestionTreeOutcomeInfoKey = void 0;
|
|
4
|
+
exports.QuestionTreeOutcomeInfoKey = 'questiontree-outcome-info';
|
|
5
|
+
/* QuestionTree Component */
|
|
6
|
+
exports.QuestionTreeComponentName = `QuestionTreeComponent`;
|
|
7
|
+
/* QuestionTree Model */
|
|
8
|
+
exports.QuestionTreeModelName = `QuestionTreeModel`;
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlc3Rpb24tdHJlZS5vdXRsaW5lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NvbmZpZy9jb21wb25lbnQvcXVlc3Rpb24tdHJlZS5vdXRsaW5lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQTBNYSxRQUFBLDBCQUEwQixHQUFHLDJCQUFvQyxDQUFDO0FBaUQvRSw0QkFBNEI7QUFFZixRQUFBLHlCQUF5QixHQUFHLHVCQUFnQyxDQUFDO0FBNkMxRSx3QkFBd0I7QUFFWCxRQUFBLHFCQUFxQixHQUFHLG1CQUE0QixDQUFDIn0=
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { FieldModelConfig, FieldModelDefinition } from "../field-model.model";
|
|
2
|
+
import { FormComponentDefinition } from "../form-component.model";
|
|
3
|
+
import { FormConfigVisitorOutline } from "../visitor/base.outline";
|
|
4
|
+
import { FieldComponentConfig, FieldComponentDefinition } from "../field-component.model";
|
|
5
|
+
import { AvailableFieldLayoutDefinitionOutlines } from "../dictionary.outline";
|
|
6
|
+
import { RadioInputFieldComponentConfigOutline, RadioInputFieldComponentDefinitionOutline, RadioInputFieldModelConfigOutline, RadioInputFieldModelDefinitionOutline, RadioInputFormComponentDefinitionOutline, RadioInputModelValueType, RadioOption } from "./radio-input.outline";
|
|
7
|
+
export declare class RadioInputFieldComponentConfig extends FieldComponentConfig implements RadioInputFieldComponentConfigOutline {
|
|
8
|
+
options: RadioOption[];
|
|
9
|
+
vocabRef?: string;
|
|
10
|
+
inlineVocab?: boolean;
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
13
|
+
export declare class RadioInputFieldComponentDefinition extends FieldComponentDefinition implements RadioInputFieldComponentDefinitionOutline {
|
|
14
|
+
class: "RadioInputComponent";
|
|
15
|
+
config?: RadioInputFieldComponentConfigOutline;
|
|
16
|
+
constructor();
|
|
17
|
+
accept(visitor: FormConfigVisitorOutline): void;
|
|
18
|
+
}
|
|
19
|
+
export declare class RadioInputFieldModelConfig extends FieldModelConfig<RadioInputModelValueType> implements RadioInputFieldModelConfigOutline {
|
|
20
|
+
constructor();
|
|
21
|
+
}
|
|
22
|
+
export declare class RadioInputFieldModelDefinition extends FieldModelDefinition<RadioInputModelValueType> implements RadioInputFieldModelDefinitionOutline {
|
|
23
|
+
class: "RadioInputModel";
|
|
24
|
+
config?: RadioInputFieldModelConfigOutline;
|
|
25
|
+
constructor();
|
|
26
|
+
accept(visitor: FormConfigVisitorOutline): void;
|
|
27
|
+
}
|
|
28
|
+
export declare class RadioInputFormComponentDefinition extends FormComponentDefinition implements RadioInputFormComponentDefinitionOutline {
|
|
29
|
+
component: RadioInputFieldComponentDefinitionOutline;
|
|
30
|
+
model?: RadioInputFieldModelDefinitionOutline;
|
|
31
|
+
layout?: AvailableFieldLayoutDefinitionOutlines;
|
|
32
|
+
constructor();
|
|
33
|
+
accept(visitor: FormConfigVisitorOutline): void;
|
|
34
|
+
}
|
|
35
|
+
export declare const RadioInputMap: ({
|
|
36
|
+
kind: "FieldComponentConfigKind";
|
|
37
|
+
def: typeof RadioInputFieldComponentConfig;
|
|
38
|
+
class?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
kind: "FieldComponentDefinitionKind";
|
|
41
|
+
def: typeof RadioInputFieldComponentDefinition;
|
|
42
|
+
class: "RadioInputComponent";
|
|
43
|
+
} | {
|
|
44
|
+
kind: "FieldModelConfigKind";
|
|
45
|
+
def: typeof RadioInputFieldModelConfig;
|
|
46
|
+
class?: undefined;
|
|
47
|
+
} | {
|
|
48
|
+
kind: "FieldModelDefinitionKind";
|
|
49
|
+
def: typeof RadioInputFieldModelDefinition;
|
|
50
|
+
class: "RadioInputModel";
|
|
51
|
+
} | {
|
|
52
|
+
kind: "FormComponentDefinitionKind";
|
|
53
|
+
def: typeof RadioInputFormComponentDefinition;
|
|
54
|
+
class: "RadioInputComponent";
|
|
55
|
+
})[];
|
|
56
|
+
export declare const RadioInputDefaults: {
|
|
57
|
+
FormComponentDefinitionKind: {
|
|
58
|
+
RadioInputComponent: {
|
|
59
|
+
FieldComponentDefinitionKind: "RadioInputComponent";
|
|
60
|
+
FieldModelDefinitionKind: "RadioInputModel";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RadioInputDefaults = exports.RadioInputMap = exports.RadioInputFormComponentDefinition = exports.RadioInputFieldModelDefinition = exports.RadioInputFieldModelConfig = exports.RadioInputFieldComponentDefinition = exports.RadioInputFieldComponentConfig = void 0;
|
|
4
|
+
const field_model_model_1 = require("../field-model.model");
|
|
5
|
+
const form_component_model_1 = require("../form-component.model");
|
|
6
|
+
const shared_outline_1 = require("../shared.outline");
|
|
7
|
+
const field_component_model_1 = require("../field-component.model");
|
|
8
|
+
const radio_input_outline_1 = require("./radio-input.outline");
|
|
9
|
+
/* Radio Input Component */
|
|
10
|
+
class RadioInputFieldComponentConfig extends field_component_model_1.FieldComponentConfig {
|
|
11
|
+
options = [];
|
|
12
|
+
vocabRef;
|
|
13
|
+
inlineVocab;
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.RadioInputFieldComponentConfig = RadioInputFieldComponentConfig;
|
|
19
|
+
class RadioInputFieldComponentDefinition extends field_component_model_1.FieldComponentDefinition {
|
|
20
|
+
class = radio_input_outline_1.RadioInputComponentName;
|
|
21
|
+
config;
|
|
22
|
+
constructor() {
|
|
23
|
+
super();
|
|
24
|
+
}
|
|
25
|
+
accept(visitor) {
|
|
26
|
+
visitor.visitRadioInputFieldComponentDefinition(this);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.RadioInputFieldComponentDefinition = RadioInputFieldComponentDefinition;
|
|
30
|
+
/* Radio Input Model */
|
|
31
|
+
class RadioInputFieldModelConfig extends field_model_model_1.FieldModelConfig {
|
|
32
|
+
constructor() {
|
|
33
|
+
super();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.RadioInputFieldModelConfig = RadioInputFieldModelConfig;
|
|
37
|
+
class RadioInputFieldModelDefinition extends field_model_model_1.FieldModelDefinition {
|
|
38
|
+
class = radio_input_outline_1.RadioInputModelName;
|
|
39
|
+
config;
|
|
40
|
+
constructor() {
|
|
41
|
+
super();
|
|
42
|
+
}
|
|
43
|
+
accept(visitor) {
|
|
44
|
+
visitor.visitRadioInputFieldModelDefinition(this);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.RadioInputFieldModelDefinition = RadioInputFieldModelDefinition;
|
|
48
|
+
/* Radio Input Form Component */
|
|
49
|
+
class RadioInputFormComponentDefinition extends form_component_model_1.FormComponentDefinition {
|
|
50
|
+
component;
|
|
51
|
+
model;
|
|
52
|
+
layout;
|
|
53
|
+
constructor() {
|
|
54
|
+
super();
|
|
55
|
+
}
|
|
56
|
+
accept(visitor) {
|
|
57
|
+
visitor.visitRadioInputFormComponentDefinition(this);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.RadioInputFormComponentDefinition = RadioInputFormComponentDefinition;
|
|
61
|
+
exports.RadioInputMap = [
|
|
62
|
+
{ kind: shared_outline_1.FieldComponentConfigKind, def: RadioInputFieldComponentConfig },
|
|
63
|
+
{ kind: shared_outline_1.FieldComponentDefinitionKind, def: RadioInputFieldComponentDefinition, class: radio_input_outline_1.RadioInputComponentName },
|
|
64
|
+
{ kind: shared_outline_1.FieldModelConfigKind, def: RadioInputFieldModelConfig },
|
|
65
|
+
{ kind: shared_outline_1.FieldModelDefinitionKind, def: RadioInputFieldModelDefinition, class: radio_input_outline_1.RadioInputModelName },
|
|
66
|
+
{ kind: shared_outline_1.FormComponentDefinitionKind, def: RadioInputFormComponentDefinition, class: radio_input_outline_1.RadioInputComponentName },
|
|
67
|
+
];
|
|
68
|
+
exports.RadioInputDefaults = {
|
|
69
|
+
[shared_outline_1.FormComponentDefinitionKind]: {
|
|
70
|
+
[radio_input_outline_1.RadioInputComponentName]: {
|
|
71
|
+
[shared_outline_1.FieldComponentDefinitionKind]: radio_input_outline_1.RadioInputComponentName,
|
|
72
|
+
[shared_outline_1.FieldModelDefinitionKind]: radio_input_outline_1.RadioInputModelName,
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW8taW5wdXQubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29uZmlnL2NvbXBvbmVudC9yYWRpby1pbnB1dC5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw0REFBNEU7QUFDNUUsa0VBQWdFO0FBRWhFLHNEQUsyQjtBQUMzQixvRUFBd0Y7QUFFeEYsK0RBTytCO0FBRS9CLDJCQUEyQjtBQUczQixNQUFhLDhCQUErQixTQUFRLDRDQUFvQjtJQUNwRSxPQUFPLEdBQWtCLEVBQUUsQ0FBQztJQUM1QixRQUFRLENBQVU7SUFDbEIsV0FBVyxDQUFXO0lBRXRCO1FBQ0ksS0FBSyxFQUFFLENBQUM7SUFDWixDQUFDO0NBQ0o7QUFSRCx3RUFRQztBQUdELE1BQWEsa0NBQW1DLFNBQVEsZ0RBQXdCO0lBQzVFLEtBQUssR0FBRyw2Q0FBdUIsQ0FBQztJQUNoQyxNQUFNLENBQXlDO0lBRS9DO1FBQ0ksS0FBSyxFQUFFLENBQUM7SUFDWixDQUFDO0lBRUQsTUFBTSxDQUFDLE9BQWlDO1FBQ3BDLE9BQU8sQ0FBQyx1Q0FBdUMsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUMxRCxDQUFDO0NBQ0o7QUFYRCxnRkFXQztBQUdELHVCQUF1QjtBQUd2QixNQUFhLDBCQUEyQixTQUFRLG9DQUEwQztJQUN0RjtRQUNJLEtBQUssRUFBRSxDQUFDO0lBQ1osQ0FBQztDQUNKO0FBSkQsZ0VBSUM7QUFHRCxNQUFhLDhCQUErQixTQUFRLHdDQUE4QztJQUM5RixLQUFLLEdBQUcseUNBQW1CLENBQUM7SUFDNUIsTUFBTSxDQUFxQztJQUUzQztRQUNJLEtBQUssRUFBRSxDQUFDO0lBQ1osQ0FBQztJQUVELE1BQU0sQ0FBQyxPQUFpQztRQUNwQyxPQUFPLENBQUMsbUNBQW1DLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDdEQsQ0FBQztDQUNKO0FBWEQsd0VBV0M7QUFFRCxnQ0FBZ0M7QUFFaEMsTUFBYSxpQ0FBa0MsU0FBUSw4Q0FBdUI7SUFDbkUsU0FBUyxDQUE2QztJQUN0RCxLQUFLLENBQXlDO0lBQzlDLE1BQU0sQ0FBMEM7SUFFdkQ7UUFDSSxLQUFLLEVBQUUsQ0FBQztJQUNaLENBQUM7SUFFRCxNQUFNLENBQUMsT0FBaUM7UUFDcEMsT0FBTyxDQUFDLHNDQUFzQyxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQ3pELENBQUM7Q0FDSjtBQVpELDhFQVlDO0FBRVksUUFBQSxhQUFhLEdBQUc7SUFDekIsRUFBQyxJQUFJLEVBQUUseUNBQXdCLEVBQUUsR0FBRyxFQUFFLDhCQUE4QixFQUFDO0lBQ3JFLEVBQUMsSUFBSSxFQUFFLDZDQUE0QixFQUFFLEdBQUcsRUFBRSxrQ0FBa0MsRUFBRSxLQUFLLEVBQUUsNkNBQXVCLEVBQUM7SUFDN0csRUFBQyxJQUFJLEVBQUUscUNBQW9CLEVBQUUsR0FBRyxFQUFFLDBCQUEwQixFQUFDO0lBQzdELEVBQUMsSUFBSSxFQUFFLHlDQUF3QixFQUFFLEdBQUcsRUFBRSw4QkFBOEIsRUFBRSxLQUFLLEVBQUUseUNBQW1CLEVBQUM7SUFDakcsRUFBQyxJQUFJLEVBQUUsNENBQTJCLEVBQUUsR0FBRyxFQUFFLGlDQUFpQyxFQUFFLEtBQUssRUFBRSw2Q0FBdUIsRUFBQztDQUM5RyxDQUFDO0FBQ1csUUFBQSxrQkFBa0IsR0FBRztJQUM5QixDQUFDLDRDQUEyQixDQUFDLEVBQUU7UUFDM0IsQ0FBQyw2Q0FBdUIsQ0FBQyxFQUFFO1lBQ3ZCLENBQUMsNkNBQTRCLENBQUMsRUFBRSw2Q0FBdUI7WUFDdkQsQ0FBQyx5Q0FBd0IsQ0FBQyxFQUFFLHlDQUFtQjtTQUNsRDtLQUNKO0NBQ0osQ0FBQyJ9
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { FieldComponentConfigFrameKindType, FieldComponentConfigKindType, FieldComponentDefinitionFrameKindType, FieldComponentDefinitionKindType, FieldModelConfigFrameKindType, FieldModelConfigKindType, FieldModelDefinitionFrameKindType, FieldModelDefinitionKindType, FormComponentDefinitionFrameKindType, FormComponentDefinitionKindType } from "../shared.outline";
|
|
2
|
+
import { FieldComponentConfigFrame, FieldComponentConfigOutline, FieldComponentDefinitionFrame, FieldComponentDefinitionOutline } from "../field-component.outline";
|
|
3
|
+
import { FieldModelConfigFrame, FieldModelConfigOutline, FieldModelDefinitionFrame, FieldModelDefinitionOutline } from "../field-model.outline";
|
|
4
|
+
import { FormComponentDefinitionFrame, FormComponentDefinitionOutline } from "../form-component.outline";
|
|
5
|
+
import { AvailableFieldLayoutDefinitionFrames, AvailableFieldLayoutDefinitionOutlines } from "../dictionary.outline";
|
|
6
|
+
export declare const RadioInputComponentName: "RadioInputComponent";
|
|
7
|
+
export type RadioInputComponentNameType = typeof RadioInputComponentName;
|
|
8
|
+
export interface RadioOption {
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface RadioInputFieldComponentConfigFrame extends FieldComponentConfigFrame {
|
|
14
|
+
options?: RadioOption[];
|
|
15
|
+
vocabRef?: string;
|
|
16
|
+
inlineVocab?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface RadioInputFieldComponentConfigOutline extends RadioInputFieldComponentConfigFrame, FieldComponentConfigOutline {
|
|
19
|
+
}
|
|
20
|
+
export interface RadioInputFieldComponentDefinitionFrame extends FieldComponentDefinitionFrame {
|
|
21
|
+
class: RadioInputComponentNameType;
|
|
22
|
+
config?: RadioInputFieldComponentConfigFrame;
|
|
23
|
+
}
|
|
24
|
+
export interface RadioInputFieldComponentDefinitionOutline extends RadioInputFieldComponentDefinitionFrame, FieldComponentDefinitionOutline {
|
|
25
|
+
class: RadioInputComponentNameType;
|
|
26
|
+
config?: RadioInputFieldComponentConfigOutline;
|
|
27
|
+
}
|
|
28
|
+
export declare const RadioInputModelName: "RadioInputModel";
|
|
29
|
+
export type RadioInputModelNameType = typeof RadioInputModelName;
|
|
30
|
+
export type RadioInputModelValueType = string | null;
|
|
31
|
+
export interface RadioInputFieldModelConfigFrame extends FieldModelConfigFrame<RadioInputModelValueType> {
|
|
32
|
+
}
|
|
33
|
+
export interface RadioInputFieldModelConfigOutline extends RadioInputFieldModelConfigFrame, FieldModelConfigOutline<RadioInputModelValueType> {
|
|
34
|
+
}
|
|
35
|
+
export interface RadioInputFieldModelDefinitionFrame extends FieldModelDefinitionFrame<RadioInputModelValueType> {
|
|
36
|
+
class: RadioInputModelNameType;
|
|
37
|
+
config?: RadioInputFieldModelConfigFrame;
|
|
38
|
+
}
|
|
39
|
+
export interface RadioInputFieldModelDefinitionOutline extends RadioInputFieldModelDefinitionFrame, FieldModelDefinitionOutline<RadioInputModelValueType> {
|
|
40
|
+
class: RadioInputModelNameType;
|
|
41
|
+
config?: RadioInputFieldModelConfigOutline;
|
|
42
|
+
}
|
|
43
|
+
export interface RadioInputFormComponentDefinitionFrame extends FormComponentDefinitionFrame {
|
|
44
|
+
component: RadioInputFieldComponentDefinitionFrame;
|
|
45
|
+
model?: RadioInputFieldModelDefinitionFrame;
|
|
46
|
+
layout?: AvailableFieldLayoutDefinitionFrames;
|
|
47
|
+
}
|
|
48
|
+
export interface RadioInputFormComponentDefinitionOutline extends RadioInputFormComponentDefinitionFrame, FormComponentDefinitionOutline {
|
|
49
|
+
component: RadioInputFieldComponentDefinitionOutline;
|
|
50
|
+
model?: RadioInputFieldModelDefinitionOutline;
|
|
51
|
+
layout?: AvailableFieldLayoutDefinitionOutlines;
|
|
52
|
+
}
|
|
53
|
+
export type RadioInputTypes = {
|
|
54
|
+
kind: FieldComponentConfigFrameKindType;
|
|
55
|
+
class: RadioInputFieldComponentConfigFrame;
|
|
56
|
+
} | {
|
|
57
|
+
kind: FieldComponentDefinitionFrameKindType;
|
|
58
|
+
class: RadioInputFieldComponentDefinitionFrame;
|
|
59
|
+
} | {
|
|
60
|
+
kind: FieldModelConfigFrameKindType;
|
|
61
|
+
class: RadioInputFieldModelConfigFrame;
|
|
62
|
+
} | {
|
|
63
|
+
kind: FieldModelDefinitionFrameKindType;
|
|
64
|
+
class: RadioInputFieldModelDefinitionFrame;
|
|
65
|
+
} | {
|
|
66
|
+
kind: FormComponentDefinitionFrameKindType;
|
|
67
|
+
class: RadioInputFormComponentDefinitionFrame;
|
|
68
|
+
} | {
|
|
69
|
+
kind: FieldComponentConfigKindType;
|
|
70
|
+
class: RadioInputFieldComponentConfigOutline;
|
|
71
|
+
} | {
|
|
72
|
+
kind: FieldComponentDefinitionKindType;
|
|
73
|
+
class: RadioInputFieldComponentDefinitionOutline;
|
|
74
|
+
} | {
|
|
75
|
+
kind: FieldModelConfigKindType;
|
|
76
|
+
class: RadioInputFieldModelConfigOutline;
|
|
77
|
+
} | {
|
|
78
|
+
kind: FieldModelDefinitionKindType;
|
|
79
|
+
class: RadioInputFieldModelDefinitionOutline;
|
|
80
|
+
} | {
|
|
81
|
+
kind: FormComponentDefinitionKindType;
|
|
82
|
+
class: RadioInputFormComponentDefinitionOutline;
|
|
83
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RadioInputModelName = exports.RadioInputComponentName = void 0;
|
|
4
|
+
/* Radio Input Component */
|
|
5
|
+
exports.RadioInputComponentName = "RadioInputComponent";
|
|
6
|
+
/* Radio Input Model */
|
|
7
|
+
exports.RadioInputModelName = "RadioInputModel";
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW8taW5wdXQub3V0bGluZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb25maWcvY29tcG9uZW50L3JhZGlvLWlucHV0Lm91dGxpbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBc0JBLDJCQUEyQjtBQUNkLFFBQUEsdUJBQXVCLEdBQUcscUJBQThCLENBQUM7QUE0QnRFLHVCQUF1QjtBQUNWLFFBQUEsbUJBQW1CLEdBQUcsaUJBQTBCLENBQUMifQ==
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { AvailableFieldLayoutDefinitionOutlines } from '../dictionary.outline';
|
|
2
|
+
import { FieldComponentConfig, FieldComponentDefinition } from '../field-component.model';
|
|
3
|
+
import { FormComponentDefinition } from '../form-component.model';
|
|
4
|
+
import { FormConfigVisitorOutline } from '../visitor/base.outline';
|
|
5
|
+
import { RecordMetadataRetrieverFieldComponentConfigOutline, RecordMetadataRetrieverFieldComponentDefinitionOutline, RecordMetadataRetrieverFormComponentDefinitionOutline } from './record-metadata-retriever.outline';
|
|
6
|
+
export declare class RecordMetadataRetrieverFieldComponentConfig extends FieldComponentConfig implements RecordMetadataRetrieverFieldComponentConfigOutline {
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
9
|
+
export declare class RecordMetadataRetrieverFieldComponentDefinition extends FieldComponentDefinition implements RecordMetadataRetrieverFieldComponentDefinitionOutline {
|
|
10
|
+
class: "RecordMetadataRetrieverComponent";
|
|
11
|
+
config?: RecordMetadataRetrieverFieldComponentConfigOutline;
|
|
12
|
+
constructor();
|
|
13
|
+
accept(visitor: FormConfigVisitorOutline): void;
|
|
14
|
+
}
|
|
15
|
+
export declare class RecordMetadataRetrieverFormComponentDefinition extends FormComponentDefinition implements RecordMetadataRetrieverFormComponentDefinitionOutline {
|
|
16
|
+
component: RecordMetadataRetrieverFieldComponentDefinitionOutline;
|
|
17
|
+
model?: never;
|
|
18
|
+
layout?: AvailableFieldLayoutDefinitionOutlines;
|
|
19
|
+
constructor();
|
|
20
|
+
accept(visitor: FormConfigVisitorOutline): void;
|
|
21
|
+
}
|
|
22
|
+
export declare const RecordMetadataRetrieverMap: ({
|
|
23
|
+
kind: "FieldComponentConfigKind";
|
|
24
|
+
def: typeof RecordMetadataRetrieverFieldComponentConfig;
|
|
25
|
+
class?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
kind: "FieldComponentDefinitionKind";
|
|
28
|
+
def: typeof RecordMetadataRetrieverFieldComponentDefinition;
|
|
29
|
+
class: "RecordMetadataRetrieverComponent";
|
|
30
|
+
} | {
|
|
31
|
+
kind: "FormComponentDefinitionKind";
|
|
32
|
+
def: typeof RecordMetadataRetrieverFormComponentDefinition;
|
|
33
|
+
class: "RecordMetadataRetrieverComponent";
|
|
34
|
+
})[];
|
|
35
|
+
export declare const RecordMetadataRetrieverDefaults: {
|
|
36
|
+
FormComponentDefinitionKind: {
|
|
37
|
+
RecordMetadataRetrieverComponent: {
|
|
38
|
+
FieldComponentDefinitionKind: "RecordMetadataRetrieverComponent";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecordMetadataRetrieverDefaults = exports.RecordMetadataRetrieverMap = exports.RecordMetadataRetrieverFormComponentDefinition = exports.RecordMetadataRetrieverFieldComponentDefinition = exports.RecordMetadataRetrieverFieldComponentConfig = void 0;
|
|
4
|
+
const field_component_model_1 = require("../field-component.model");
|
|
5
|
+
const form_component_model_1 = require("../form-component.model");
|
|
6
|
+
const shared_outline_1 = require("../shared.outline");
|
|
7
|
+
const record_metadata_retriever_outline_1 = require("./record-metadata-retriever.outline");
|
|
8
|
+
class RecordMetadataRetrieverFieldComponentConfig extends field_component_model_1.FieldComponentConfig {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.RecordMetadataRetrieverFieldComponentConfig = RecordMetadataRetrieverFieldComponentConfig;
|
|
14
|
+
class RecordMetadataRetrieverFieldComponentDefinition extends field_component_model_1.FieldComponentDefinition {
|
|
15
|
+
class = record_metadata_retriever_outline_1.RecordMetadataRetrieverComponentName;
|
|
16
|
+
config;
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
}
|
|
20
|
+
accept(visitor) {
|
|
21
|
+
visitor.visitRecordMetadataRetrieverFieldComponentDefinition(this);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.RecordMetadataRetrieverFieldComponentDefinition = RecordMetadataRetrieverFieldComponentDefinition;
|
|
25
|
+
class RecordMetadataRetrieverFormComponentDefinition extends form_component_model_1.FormComponentDefinition {
|
|
26
|
+
component;
|
|
27
|
+
model;
|
|
28
|
+
layout;
|
|
29
|
+
constructor() {
|
|
30
|
+
super();
|
|
31
|
+
}
|
|
32
|
+
accept(visitor) {
|
|
33
|
+
visitor.visitRecordMetadataRetrieverFormComponentDefinition(this);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.RecordMetadataRetrieverFormComponentDefinition = RecordMetadataRetrieverFormComponentDefinition;
|
|
37
|
+
exports.RecordMetadataRetrieverMap = [
|
|
38
|
+
{ kind: shared_outline_1.FieldComponentConfigKind, def: RecordMetadataRetrieverFieldComponentConfig },
|
|
39
|
+
{
|
|
40
|
+
kind: shared_outline_1.FieldComponentDefinitionKind,
|
|
41
|
+
def: RecordMetadataRetrieverFieldComponentDefinition,
|
|
42
|
+
class: record_metadata_retriever_outline_1.RecordMetadataRetrieverComponentName,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
kind: shared_outline_1.FormComponentDefinitionKind,
|
|
46
|
+
def: RecordMetadataRetrieverFormComponentDefinition,
|
|
47
|
+
class: record_metadata_retriever_outline_1.RecordMetadataRetrieverComponentName,
|
|
48
|
+
},
|
|
49
|
+
];
|
|
50
|
+
exports.RecordMetadataRetrieverDefaults = {
|
|
51
|
+
[shared_outline_1.FormComponentDefinitionKind]: {
|
|
52
|
+
[record_metadata_retriever_outline_1.RecordMetadataRetrieverComponentName]: {
|
|
53
|
+
[shared_outline_1.FieldComponentDefinitionKind]: record_metadata_retriever_outline_1.RecordMetadataRetrieverComponentName,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjb3JkLW1ldGFkYXRhLXJldHJpZXZlci5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb25maWcvY29tcG9uZW50L3JlY29yZC1tZXRhZGF0YS1yZXRyaWV2ZXIubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0Esb0VBQTBGO0FBQzFGLGtFQUFrRTtBQUNsRSxzREFJMkI7QUFFM0IsMkZBSzZDO0FBRTdDLE1BQWEsMkNBQ1gsU0FBUSw0Q0FBb0I7SUFHNUI7UUFDRSxLQUFLLEVBQUUsQ0FBQztJQUNWLENBQUM7Q0FDRjtBQVBELGtHQU9DO0FBRUQsTUFBYSwrQ0FDWCxTQUFRLGdEQUF3QjtJQUdoQyxLQUFLLEdBQUcsd0VBQW9DLENBQUM7SUFDN0MsTUFBTSxDQUFzRDtJQUU1RDtRQUNFLEtBQUssRUFBRSxDQUFDO0lBQ1YsQ0FBQztJQUVELE1BQU0sQ0FBQyxPQUFpQztRQUN0QyxPQUFPLENBQUMsb0RBQW9ELENBQUMsSUFBSSxDQUFDLENBQUM7SUFDckUsQ0FBQztDQUNGO0FBZEQsMEdBY0M7QUFFRCxNQUFhLDhDQUNYLFNBQVEsOENBQXVCO0lBRy9CLFNBQVMsQ0FBMEQ7SUFDbkUsS0FBSyxDQUFTO0lBQ2QsTUFBTSxDQUEwQztJQUVoRDtRQUNFLEtBQUssRUFBRSxDQUFDO0lBQ1YsQ0FBQztJQUVELE1BQU0sQ0FBQyxPQUFpQztRQUN0QyxPQUFPLENBQUMsbURBQW1ELENBQUMsSUFBSSxDQUFDLENBQUM7SUFDcEUsQ0FBQztDQUNGO0FBZkQsd0dBZUM7QUFFWSxRQUFBLDBCQUEwQixHQUFHO0lBQ3hDLEVBQUUsSUFBSSxFQUFFLHlDQUF3QixFQUFFLEdBQUcsRUFBRSwyQ0FBMkMsRUFBRTtJQUNwRjtRQUNFLElBQUksRUFBRSw2Q0FBNEI7UUFDbEMsR0FBRyxFQUFFLCtDQUErQztRQUNwRCxLQUFLLEVBQUUsd0VBQW9DO0tBQzVDO0lBQ0Q7UUFDRSxJQUFJLEVBQUUsNENBQTJCO1FBQ2pDLEdBQUcsRUFBRSw4Q0FBOEM7UUFDbkQsS0FBSyxFQUFFLHdFQUFvQztLQUM1QztDQUNGLENBQUM7QUFFVyxRQUFBLCtCQUErQixHQUFHO0lBQzdDLENBQUMsNENBQTJCLENBQUMsRUFBRTtRQUM3QixDQUFDLHdFQUFvQyxDQUFDLEVBQUU7WUFDdEMsQ0FBQyw2Q0FBNEIsQ0FBQyxFQUFFLHdFQUFvQztTQUNyRTtLQUNGO0NBQ0YsQ0FBQyJ9
|