case-editor-tools 1.0.8 → 1.1.1
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.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": "github:case-framework/case-editor-tools",
|
package/surveys/survey-items.js
CHANGED
|
@@ -212,6 +212,9 @@ const generateTextInputQuestion = (props) => {
|
|
|
212
212
|
if (props.inputMaxWidth !== undefined) {
|
|
213
213
|
style.push({ key: 'inputMaxWidth', value: props.inputMaxWidth });
|
|
214
214
|
}
|
|
215
|
+
if (props.transformLetterCaseTo) {
|
|
216
|
+
style.push({ key: 'transformCase', value: props.transformLetterCaseTo });
|
|
217
|
+
}
|
|
215
218
|
const rg_inner = {
|
|
216
219
|
key: constants_keyDefinitions.inputKey, role: 'input',
|
|
217
220
|
content: props.inputLabel ? surveys_utils_simpleGenerators.generateLocStrings(props.inputLabel) : undefined,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"survey-items.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"survey-items.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -97,6 +97,7 @@ export interface TextInputProps {
|
|
|
97
97
|
className?: string;
|
|
98
98
|
maxLength?: number;
|
|
99
99
|
disabled?: Expression;
|
|
100
|
+
transformLetterCaseTo?: 'upper' | 'lower';
|
|
100
101
|
}
|
|
101
102
|
export declare type TextInputQuestionProps = TextInputProps & GenericQuestionProps;
|
|
102
103
|
export interface MultiLineTextInput extends GenericQuestionProps {
|
|
@@ -69,6 +69,9 @@ const textInput = (props) => {
|
|
|
69
69
|
if (props.alignText) {
|
|
70
70
|
style.push({ key: 'alignInputText', value: props.alignText });
|
|
71
71
|
}
|
|
72
|
+
if (props.transformLetterCaseTo) {
|
|
73
|
+
style.push({ key: 'transformCase', value: props.transformLetterCaseTo });
|
|
74
|
+
}
|
|
72
75
|
return {
|
|
73
76
|
key: props.key,
|
|
74
77
|
role: 'input',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optionDefGenerators.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"optionDefGenerators.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|