case-editor-tools 1.0.0-beta.40 → 1.0.0-beta.41
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.41",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": "github:case-framework/case-editor-tools",
|
|
@@ -4,6 +4,10 @@ import { LikertGroupRow } from "./responseTypeGenerators/likertGroupComponents";
|
|
|
4
4
|
interface OptionQuestionProps extends GenericQuestionProps {
|
|
5
5
|
responseOptions: Array<OptionDef>;
|
|
6
6
|
}
|
|
7
|
+
interface DropDownQuestionProps extends GenericQuestionProps {
|
|
8
|
+
responseOptions: Array<OptionDef>;
|
|
9
|
+
placeholder?: Map<string, string>;
|
|
10
|
+
}
|
|
7
11
|
interface LikertGroupQuestionProps extends GenericQuestionProps {
|
|
8
12
|
rows: Array<LikertGroupRow>;
|
|
9
13
|
scaleOptions: Array<{
|
|
@@ -56,7 +60,7 @@ export declare const SurveyItems: {
|
|
|
56
60
|
clozeQuestion: (props: ClozeQuestionProps) => SurveyItem;
|
|
57
61
|
numericInput: (props: NumericInputQuestionProps) => SurveyItem;
|
|
58
62
|
multilineTextInput: (props: MultiLineTextInput) => SurveyItem;
|
|
59
|
-
dropDown: (props:
|
|
63
|
+
dropDown: (props: DropDownQuestionProps) => SurveyItem;
|
|
60
64
|
numericSlider: (props: NumericSliderProps) => SurveyItem;
|
|
61
65
|
display: (props: DisplayProps) => SurveyItem;
|
|
62
66
|
surveyEnd: (parentKey: string, content: Map<string, string>, condition?: Expression | undefined) => SurveyItem;
|
package/surveys/survey-items.js
CHANGED
|
@@ -74,7 +74,7 @@ const generateSingleChoiceQuestion = (props) => {
|
|
|
74
74
|
return commonQuestionGenerator(props, rg_inner);
|
|
75
75
|
};
|
|
76
76
|
const generateDropDownQuestion = (props) => {
|
|
77
|
-
const rg_inner = surveys_responseTypeGenerators_optionGroupComponents.initDropdownGroup(constants_keyDefinitions.dropDownKey, props.responseOptions);
|
|
77
|
+
const rg_inner = surveys_responseTypeGenerators_optionGroupComponents.initDropdownGroup(constants_keyDefinitions.dropDownKey, props.responseOptions, undefined, undefined, undefined, props.placeholder);
|
|
78
78
|
return commonQuestionGenerator(props, rg_inner);
|
|
79
79
|
};
|
|
80
80
|
const generateMultipleChoiceQuestion = (props) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optionDefGenerators.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"optionDefGenerators.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|