@arquimedes.co/eureka-forms 1.9.58 → 1.9.60
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/dist/FormComponents/Step/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.js +4 -1
- package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +4 -1
- package/dist/FormComponents/Step/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.module.css +1 -2
- package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js +3 -1
- package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +5 -1
- package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.module.css +0 -1
- package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +4 -1
- package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.js +4 -1
- package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js +4 -1
- package/package.json +1 -1
|
@@ -34,7 +34,10 @@ function CheckBox(_a) {
|
|
|
34
34
|
width: widthStats.currentBreakPoint <= step.size
|
|
35
35
|
? '100%'
|
|
36
36
|
: calcStepWidth(step.size, form.size),
|
|
37
|
-
minHeight: step.description ||
|
|
37
|
+
minHeight: step.description ||
|
|
38
|
+
(!postview && editable && step.required)
|
|
39
|
+
? '55px'
|
|
40
|
+
: '43px',
|
|
38
41
|
} }, { children: [_jsxs("div", __assign({ className: styles.labelCheckBoxContainer }, { children: [step.label && (_jsxs("div", __assign({ className: styles.checkboxLbl }, { children: [step.label, step.required ? ' *' : '', ":"] }))), _jsx(RoundedCheckBox, { onChange: onChange, onBlur: onBlur, "data-testid": step.id, inputRef: inputRef, padding: "0px", size: "1.6rem", error: !!errors[step.id], cantEdit: !editable || postview, checkedColor: formStyle.primaryColor, uncheckedColor: formStyle.outlineColor, checked: value })] })), (step.description || !!errors[step.id]) && (_jsx("div", __assign({ className: styles.descriptionPar, style: {
|
|
39
42
|
color: !!errors[step.id]
|
|
40
43
|
? formStyle.errorColor
|
|
@@ -70,7 +70,10 @@ function ClassifierSelector(_a) {
|
|
|
70
70
|
width: widthStats.currentBreakPoint <= step.size
|
|
71
71
|
? '100%'
|
|
72
72
|
: calcStepWidth(step.size, form.size),
|
|
73
|
-
minHeight: step.description ||
|
|
73
|
+
minHeight: step.description ||
|
|
74
|
+
(!postview && editable && step.required)
|
|
75
|
+
? '55px'
|
|
76
|
+
: '43px',
|
|
74
77
|
} }, { children: _jsx(RoundedSmartSelect, { value: value, onBlur: onBlur, disabled: false, loading: false, options: options, inputRef: inputRef, cantEdit: !editable || postview, fullWidth: true, backgroundColor: "transparent", innerBackgroundColor: (_a = formStyle.stepBackgroundColor) !== null && _a !== void 0 ? _a : 'white', label: step.label ? step.label : classifier.name, required: step.required, height: '31px', searchable: step.searchable, icon: undefined, helperTextColor: formStyle.descriptionTextColor, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, errorColor: formStyle.errorColor, color: formStyle.textColor, containerMargin: "0px", handleUpdate: function (value) {
|
|
75
78
|
onChange(value);
|
|
76
79
|
sizeChange();
|
package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js
CHANGED
|
@@ -31,7 +31,9 @@ function DatePickerStep(_a) {
|
|
|
31
31
|
width: widthStats.currentBreakPoint <= step.size
|
|
32
32
|
? '100%'
|
|
33
33
|
: calcStepWidth(step.size, form.size),
|
|
34
|
-
minHeight: step.description ||
|
|
34
|
+
minHeight: step.description || (!postview && editable && step.required)
|
|
35
|
+
? '55px'
|
|
36
|
+
: '43px',
|
|
35
37
|
} }, { children: _jsx(Controller, { name: step.id, control: control, defaultValue: defaultValue, rules: {
|
|
36
38
|
required: step.required
|
|
37
39
|
? 'Este campo es obligatorio'
|
package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js
CHANGED
|
@@ -202,7 +202,11 @@ function FileUploadStep(_a) {
|
|
|
202
202
|
return '';
|
|
203
203
|
};
|
|
204
204
|
return (_jsxs("div", __assign({ className: styles.container +
|
|
205
|
-
(error || !!errors[step.id] ? ' EF-error' : ''),
|
|
205
|
+
(error || !!errors[step.id] ? ' EF-error' : ''), style: editable == false || postview
|
|
206
|
+
? {}
|
|
207
|
+
: {
|
|
208
|
+
minHeight: '100px',
|
|
209
|
+
}, "data-testid": step.id }, { children: [_jsx("div", __assign({ className: styles.labelLabel }, { children: step.label })), step.description && (_jsx("div", __assign({ className: styles.stepDescriptionLabel, style: { color: formStyle.descriptionTextColor } }, { children: step.description }))), _jsx("input", { type: "file", ref: inputRef, className: styles.filesInput, onChange: function (e) {
|
|
206
210
|
var files = e.target.files;
|
|
207
211
|
if (files) {
|
|
208
212
|
var filesArray = Array.from(files);
|
|
@@ -46,7 +46,10 @@ function Selector(_a) {
|
|
|
46
46
|
width: widthStats.currentBreakPoint <= step.size
|
|
47
47
|
? '100%'
|
|
48
48
|
: calcStepWidth(step.size, form.size),
|
|
49
|
-
minHeight: step.description ||
|
|
49
|
+
minHeight: step.description ||
|
|
50
|
+
(!postview && editable && step.required)
|
|
51
|
+
? '55px'
|
|
52
|
+
: '43px',
|
|
50
53
|
} }, { children: _jsx(RoundedSmartSelect, { value: value, onBlur: onBlur, disabled: false, loading: false, options: step.options, inputRef: inputRef, cantEdit: !editable || postview, fullWidth: true, backgroundColor: "transparent", innerBackgroundColor: (_a = formStyle.stepBackgroundColor) !== null && _a !== void 0 ? _a : 'white', label: step.label, required: step.required, height: '31px', searchable: step.searchable, icon: undefined, helperTextColor: formStyle.descriptionTextColor, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, errorColor: formStyle.errorColor, color: formStyle.textColor, containerMargin: "0px", handleUpdate: function (value) {
|
|
51
54
|
onChange(value);
|
|
52
55
|
}, getOptionSelected: function (option, value) {
|
package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.js
CHANGED
|
@@ -179,7 +179,10 @@ function SmartSelect(_a) {
|
|
|
179
179
|
width: widthStats.currentBreakPoint <= step.size
|
|
180
180
|
? '100%'
|
|
181
181
|
: calcStepWidth(step.size, form.size),
|
|
182
|
-
minHeight: step.description ||
|
|
182
|
+
minHeight: step.description ||
|
|
183
|
+
(!postview && editable && step.required)
|
|
184
|
+
? '55px'
|
|
185
|
+
: '43px',
|
|
183
186
|
}, onClick: function () {
|
|
184
187
|
if (options === null && !(!editable || postview)) {
|
|
185
188
|
handleMissingDep();
|
package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js
CHANGED
|
@@ -33,7 +33,10 @@ function TextInputStep(_a) {
|
|
|
33
33
|
width: widthStats.currentBreakPoint <= step.size
|
|
34
34
|
? '100%'
|
|
35
35
|
: calcStepWidth(step.size, form.size),
|
|
36
|
-
minHeight:
|
|
36
|
+
minHeight: (!postview &&
|
|
37
|
+
editable &&
|
|
38
|
+
(step.required || step.validation)) ||
|
|
39
|
+
step.description
|
|
37
40
|
? '55px'
|
|
38
41
|
: '43px',
|
|
39
42
|
} }, { children: _jsx(Controller, { name: step.id, control: control, defaultValue: defaultValue, rules: {
|