@arquimedes.co/eureka-forms 1.9.15 → 1.9.17-test
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/App.js +98 -205
- package/dist/AxiosAPI.js +3 -3
- package/dist/AxiosWidget.js +4 -4
- package/dist/FormComponents/Form/ColumnForm/ColumnForm.js +104 -207
- package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.js +5 -17
- package/dist/FormComponents/Form/Form.js +29 -56
- package/dist/FormComponents/Form/StepperForm/StepperForm.js +1 -1
- package/dist/FormComponents/Section/MaterialSection/MaterialSection.js +7 -30
- package/dist/FormComponents/Section/Section.js +2 -13
- package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/CBRIncidentsStep.js +2 -13
- package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.js +9 -32
- package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.js +47 -64
- package/dist/FormComponents/Step/@Construction/CBRLocativasStep/CBRLocativasStep.js +41 -102
- package/dist/FormComponents/Step/@Construction/CBRPropertyStep/CBRPropertyStep.js +37 -92
- package/dist/FormComponents/Step/AYFStepMapper.js +23 -75
- package/dist/FormComponents/Step/CBRStepMapper.js +56 -144
- package/dist/FormComponents/Step/CheckBoxStep/CheckBoxStep.js +3 -26
- package/dist/FormComponents/Step/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.js +6 -21
- package/dist/FormComponents/Step/ClassifierSelectorStep/ClassifierSelectorStep.js +3 -26
- package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +32 -65
- package/dist/FormComponents/Step/DatePickerStep/DatePickerStep.js +2 -13
- package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js +6 -21
- package/dist/FormComponents/Step/FileUploadStep/FileUploadStep.js +2 -13
- package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.js +27 -88
- package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +81 -171
- package/dist/FormComponents/Step/RatingStep/MaterialRatingStep/MaterialRatingStep.js +15 -41
- package/dist/FormComponents/Step/RatingStep/RatingStep.js +2 -13
- package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +25 -52
- package/dist/FormComponents/Step/SelectorStep/SelectorStep.js +3 -26
- package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.js +1 -2
- package/dist/FormComponents/Step/SeparatorStep/SeparatorStep.js +3 -26
- package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.js +83 -145
- package/dist/FormComponents/Step/SmartSelectStep/SmartSelectStep.js +2 -13
- package/dist/FormComponents/Step/Step.js +19 -39
- package/dist/FormComponents/Step/StepFunctions.js +14 -16
- package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +43 -62
- package/dist/FormComponents/Step/TextAreaStep/TextAreaStep.js +2 -13
- package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js +6 -21
- package/dist/FormComponents/Step/TextInputStep/TextInputStep.js +2 -13
- package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.js +3 -15
- package/dist/FormComponents/Step/TitleStep/TitleStep.js +3 -26
- package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.js +19 -35
- package/dist/FormComponents/Term/Term.js +2 -13
- package/dist/Widget.js +13 -25
- package/dist/constants/Files/FileExtensions.js +3 -3
- package/dist/constants/Files/FileMaxSize.js +1 -1
- package/dist/constants/InternalFormStyle.js +1 -1
- package/dist/constants/MaterialClassNameSeed.js +1 -1
- package/dist/controllers/FileService.js +29 -86
- package/dist/index.js +4 -15
- package/dist/shared/Loader/Loader.js +5 -17
- package/dist/shared/Navbar/Navbar.js +2 -14
- package/dist/shared/Rating/Rating.js +4 -27
- package/dist/shared/Rating/Ratings/LikeRating.js +9 -21
- package/dist/shared/Rating/Ratings/SatisfactionRating.js +15 -27
- package/dist/shared/Rating/Ratings/ScaleRating.js +22 -49
- package/dist/shared/RoundedButton/RoundedButton.js +12 -24
- package/dist/shared/RoundedCheckBox/RoundedCheckBox.js +39 -84
- package/dist/shared/RoundedDatePicker/RoundedDatePicker.js +235 -286
- package/dist/shared/RoundedSelect/RoundedSelect.js +103 -152
- package/dist/shared/RoundedSmartSelect/RoundedSmartSelect.js +125 -160
- package/dist/shared/RoundedTextField/RoundedTextField.js +92 -137
- package/dist/utils/CbrFunctions.js +30 -30
- package/package.json +4 -4
|
@@ -1,101 +1,56 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
var __assign = (this && this.__assign) || function () {
|
|
17
|
-
__assign = Object.assign || function(t) {
|
|
18
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
-
s = arguments[i];
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
return __assign.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
28
|
-
var t = {};
|
|
29
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
30
|
-
t[p] = s[p];
|
|
31
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
32
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
33
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
34
|
-
t[p[i]] = s[p[i]];
|
|
35
|
-
}
|
|
36
|
-
return t;
|
|
37
|
-
};
|
|
38
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
39
2
|
import React from 'react';
|
|
40
3
|
import { Checkbox, makeStyles } from '@material-ui/core';
|
|
41
4
|
import CheckBoxRoundedIcon from '@material-ui/icons/CheckBoxRounded';
|
|
42
5
|
import CheckBoxOutlineBlankRoundedIcon from '@material-ui/icons/CheckBoxOutlineBlankRounded';
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
color: props.checkedColor,
|
|
51
|
-
},
|
|
52
|
-
'&.Mui-checked:hover': {
|
|
53
|
-
backgroundColor: props.checkedHoverColor,
|
|
54
|
-
},
|
|
55
|
-
'&.Mui-disabled': {
|
|
56
|
-
cursor: 'default',
|
|
57
|
-
pointerEvents: 'all !important',
|
|
58
|
-
color: props.cantEdit
|
|
59
|
-
? props.disabledColor
|
|
60
|
-
: props.checkedColor,
|
|
61
|
-
},
|
|
62
|
-
'&:hover': {
|
|
63
|
-
backgroundColor: props.cantEdit
|
|
64
|
-
? 'transparent'
|
|
65
|
-
: props.checkedHoverColor,
|
|
66
|
-
},
|
|
6
|
+
const useCheckBoxStyles = (props) => makeStyles(() => ({
|
|
7
|
+
root: {
|
|
8
|
+
padding: props.padding,
|
|
9
|
+
fontSize: props.size,
|
|
10
|
+
color: props.error ? props.errorColor : props.uncheckedColor,
|
|
11
|
+
'&.Mui-checked': {
|
|
12
|
+
color: props.checkedColor,
|
|
67
13
|
},
|
|
68
|
-
|
|
69
|
-
|
|
14
|
+
'&.Mui-checked:hover': {
|
|
15
|
+
backgroundColor: props.checkedHoverColor,
|
|
16
|
+
},
|
|
17
|
+
'&.Mui-disabled': {
|
|
18
|
+
cursor: 'default',
|
|
19
|
+
pointerEvents: 'all !important',
|
|
20
|
+
color: props.cantEdit
|
|
21
|
+
? props.disabledColor
|
|
22
|
+
: props.checkedColor,
|
|
23
|
+
},
|
|
24
|
+
'&:hover': {
|
|
25
|
+
backgroundColor: props.cantEdit
|
|
26
|
+
? 'transparent'
|
|
27
|
+
: props.checkedHoverColor,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
}));
|
|
70
31
|
/**
|
|
71
32
|
* Generic rounded checkbox
|
|
72
33
|
*/
|
|
73
|
-
function CustomCheckBox(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
uncheckedColor: uncheckedColor,
|
|
34
|
+
function CustomCheckBox({ padding = '9px', onChange, error = false, size = '1.5rem', checkedColor = '#3d5a7f', uncheckedColor = '#787878', disabledColor = '#A0A0A0', errorColor = '#cc2936', cantEdit = false, checked, ...others }) {
|
|
35
|
+
const classes = useCheckBoxStyles({
|
|
36
|
+
size,
|
|
37
|
+
error,
|
|
38
|
+
padding,
|
|
39
|
+
cantEdit,
|
|
40
|
+
errorColor,
|
|
41
|
+
checkedColor,
|
|
42
|
+
disabledColor,
|
|
43
|
+
uncheckedColor,
|
|
84
44
|
checkedHoverColor: checkedColor + '0a',
|
|
85
45
|
})();
|
|
86
|
-
return (_jsx(Checkbox,
|
|
46
|
+
return (_jsx(Checkbox, { ...others, disabled: cantEdit, classes: classes, checked: checked, onChange: onChange, required: true, icon: _jsx(CheckBoxOutlineBlankRoundedIcon, { fontSize: "inherit" }), checkedIcon: _jsx(CheckBoxRoundedIcon, { fontSize: "inherit" }) }));
|
|
87
47
|
}
|
|
88
48
|
/**
|
|
89
49
|
* Generic datepicker with apps designs. Is class do to the use in the react-hook-forms library
|
|
90
50
|
*/
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
51
|
+
class RoundedCheckBox extends React.Component {
|
|
52
|
+
render() {
|
|
53
|
+
return _jsx(CustomCheckBox, { ...this.props });
|
|
95
54
|
}
|
|
96
|
-
|
|
97
|
-
return _jsx(CustomCheckBox, __assign({}, this.props));
|
|
98
|
-
};
|
|
99
|
-
return RoundedCheckBox;
|
|
100
|
-
}(React.Component));
|
|
55
|
+
}
|
|
101
56
|
export default RoundedCheckBox;
|