case-editor-tools 1.0.0-beta.22 → 1.0.0-beta.23
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "case-editor-tools",
|
|
3
3
|
"description": "Javascript tools to simplify survey and study coding for CASE.",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.23",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": "github:case-framework/case-editor-tools",
|
|
@@ -22,6 +22,7 @@ interface NumericSliderProps extends GenericQuestionProps {
|
|
|
22
22
|
}
|
|
23
23
|
interface CustomResponseItem extends ResponseComponent {
|
|
24
24
|
mapToRole?: 'singleChoiceGroup' | 'multipleChoiceGroup' | 'input';
|
|
25
|
+
items?: ItemComponent[];
|
|
25
26
|
}
|
|
26
27
|
interface CustomQuestionProps extends GenericQuestionProps {
|
|
27
28
|
responseItemDefs: CustomResponseItem[];
|
package/surveys/survey-items.js
CHANGED
|
@@ -203,6 +203,7 @@ const generateCustomQuestion = (props) => {
|
|
|
203
203
|
props.responseItemDefs.forEach(item => {
|
|
204
204
|
const rolePrefix = item.mapToRole !== undefined ? `${item.mapToRole}` : '';
|
|
205
205
|
const role = `${rolePrefix}:${item.role}`;
|
|
206
|
+
delete item['mapToRole'];
|
|
206
207
|
const rg_inner = Object.assign(Object.assign({}, item), { role: role });
|
|
207
208
|
items.push(rg_inner);
|
|
208
209
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"survey-items.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"survey-items.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|