@arquimedes.co/eureka-forms 1.9.14 → 1.9.15

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.
Files changed (63) hide show
  1. package/dist/@Types/AYFFormStep.d.ts +1 -1
  2. package/dist/@Types/CBRFormStep.d.ts +1 -1
  3. package/dist/@Types/Form.d.ts +2 -2
  4. package/dist/@Types/FormStep.d.ts +3 -3
  5. package/dist/App.js +11 -11
  6. package/dist/AxiosWidget.js +1 -1
  7. package/dist/FormComponents/Form/ColumnForm/ColumnForm.js +8 -8
  8. package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.js +2 -2
  9. package/dist/FormComponents/Form/Form.js +8 -8
  10. package/dist/FormComponents/Form/StepperForm/StepperForm.js +1 -1
  11. package/dist/FormComponents/Section/MaterialSection/MaterialSection.js +1 -1
  12. package/dist/FormComponents/Section/Section.js +2 -2
  13. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/CBRIncidentsStep.js +2 -2
  14. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.js +3 -3
  15. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.js +6 -6
  16. package/dist/FormComponents/Step/@Construction/CBRLocativasStep/CBRLocativasStep.js +9 -9
  17. package/dist/FormComponents/Step/@Construction/CBRPropertyStep/CBRPropertyStep.js +7 -7
  18. package/dist/FormComponents/Step/AYFStepMapper.js +9 -7
  19. package/dist/FormComponents/Step/CBRStepMapper.js +22 -22
  20. package/dist/FormComponents/Step/CheckBoxStep/CheckBoxStep.js +2 -2
  21. package/dist/FormComponents/Step/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.js +4 -4
  22. package/dist/FormComponents/Step/ClassifierSelectorStep/ClassifierSelectorStep.js +2 -2
  23. package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +8 -8
  24. package/dist/FormComponents/Step/DatePickerStep/DatePickerStep.js +2 -2
  25. package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js +2 -2
  26. package/dist/FormComponents/Step/FileUploadStep/FileUploadStep.js +2 -2
  27. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.js +11 -11
  28. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +7 -7
  29. package/dist/FormComponents/Step/RatingStep/MaterialRatingStep/MaterialRatingStep.js +5 -5
  30. package/dist/FormComponents/Step/RatingStep/RatingStep.js +2 -2
  31. package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +6 -6
  32. package/dist/FormComponents/Step/SelectorStep/SelectorStep.js +2 -2
  33. package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.js +1 -1
  34. package/dist/FormComponents/Step/SeparatorStep/SeparatorStep.js +2 -2
  35. package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.js +7 -7
  36. package/dist/FormComponents/Step/SmartSelectStep/SmartSelectStep.d.ts +2 -0
  37. package/dist/FormComponents/Step/SmartSelectStep/SmartSelectStep.js +2 -2
  38. package/dist/FormComponents/Step/Step.js +13 -13
  39. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.d.ts +1 -1
  40. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +7 -7
  41. package/dist/FormComponents/Step/TextAreaStep/TextAreaStep.js +2 -2
  42. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js +2 -2
  43. package/dist/FormComponents/Step/TextInputStep/TextInputStep.js +2 -2
  44. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.js +2 -2
  45. package/dist/FormComponents/Step/TitleStep/TitleStep.js +2 -2
  46. package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.js +6 -6
  47. package/dist/FormComponents/Term/Term.js +2 -2
  48. package/dist/Widget.js +1 -1
  49. package/dist/controllers/FileService.js +2 -2
  50. package/dist/index.js +1 -1
  51. package/dist/shared/Loader/Loader.js +1 -1
  52. package/dist/shared/Navbar/Navbar.js +1 -1
  53. package/dist/shared/Rating/Rating.js +4 -4
  54. package/dist/shared/Rating/Ratings/LikeRating.js +3 -3
  55. package/dist/shared/Rating/Ratings/SatisfactionRating.js +5 -5
  56. package/dist/shared/Rating/Ratings/ScaleRating.js +4 -4
  57. package/dist/shared/RoundedButton/RoundedButton.js +1 -1
  58. package/dist/shared/RoundedCheckBox/RoundedCheckBox.js +2 -2
  59. package/dist/shared/RoundedDatePicker/RoundedDatePicker.js +7 -7
  60. package/dist/shared/RoundedSelect/RoundedSelect.js +3 -3
  61. package/dist/shared/RoundedSmartSelect/RoundedSmartSelect.js +5 -5
  62. package/dist/shared/RoundedTextField/RoundedTextField.js +3 -3
  63. package/package.json +2 -2
@@ -43,44 +43,44 @@ function StepComponent(_a) {
43
43
  }
44
44
  switch (step.type) {
45
45
  case Types.TITLE: {
46
- return _jsx(TitleStep, __assign({ step: step }, props), void 0);
46
+ return _jsx(TitleStep, __assign({ step: step }, props));
47
47
  }
48
48
  case Types.SELECTOR: {
49
- return _jsx(SelectorStep, __assign({ step: step }, props), void 0);
49
+ return _jsx(SelectorStep, __assign({ step: step }, props));
50
50
  }
51
51
  case Types.CHECKBOX: {
52
- return _jsx(CheckBoxStep, __assign({ step: step }, props), void 0);
52
+ return _jsx(CheckBoxStep, __assign({ step: step }, props));
53
53
  }
54
54
  case Types.CLASSIFIER_SELECTOR: {
55
- return (_jsx(ClassifierSelectorStep, __assign({ step: step }, props), void 0));
55
+ return (_jsx(ClassifierSelectorStep, __assign({ step: step }, props)));
56
56
  }
57
57
  case Types.TEXTAREA: {
58
- return _jsx(TextAreaStep, __assign({ step: step }, props), void 0);
58
+ return _jsx(TextAreaStep, __assign({ step: step }, props));
59
59
  }
60
60
  case Types.TEXTINPUT: {
61
- return _jsx(TextInputStep, __assign({ step: step }, props), void 0);
61
+ return _jsx(TextInputStep, __assign({ step: step }, props));
62
62
  }
63
63
  case Types.DATEPICKER: {
64
- return _jsx(DatePickerStep, __assign({ step: step }, props), void 0);
64
+ return _jsx(DatePickerStep, __assign({ step: step }, props));
65
65
  }
66
66
  case Types.SEPARATOR: {
67
- return _jsx(SeparatorStep, __assign({ step: step }, props), void 0);
67
+ return _jsx(SeparatorStep, __assign({ step: step }, props));
68
68
  }
69
69
  case Types.FILEUPLOAD: {
70
- return _jsx(FileUploadStep, __assign({ step: step }, props), void 0);
70
+ return _jsx(FileUploadStep, __assign({ step: step }, props));
71
71
  }
72
72
  case Types.RATING: {
73
- return _jsx(RatingStep, __assign({ step: step }, props), void 0);
73
+ return _jsx(RatingStep, __assign({ step: step }, props));
74
74
  }
75
75
  default:
76
76
  break;
77
77
  }
78
78
  if (step.type.startsWith('CBR')) {
79
- return _jsx(CBRStepMapper, __assign({}, props, { step: step }), void 0);
79
+ return _jsx(CBRStepMapper, __assign({}, props, { step: step }));
80
80
  }
81
81
  else if (step.type.startsWith('AYF')) {
82
- return _jsx(AYFStepMapper, __assign({}, props, { step: step }), void 0);
82
+ return _jsx(AYFStepMapper, __assign({}, props, { step: step }));
83
83
  }
84
- return _jsx("div", {}, void 0);
84
+ return _jsx("div", {});
85
85
  }
86
86
  export default StepComponent;
@@ -6,4 +6,4 @@ import { TextAreaStepProps } from '../TextAreaStep';
6
6
  declare function TextAreaStep({ step, errors, partial, control, editable, postview, formStyle, maxLength, originalValues, backgroundColor, }: TextAreaStepProps): JSX.Element;
7
7
  export default TextAreaStep;
8
8
  export declare function stringToDraft(text: string): RawDraftContentState;
9
- export declare const getRawText: (draft?: RawDraftContentState | undefined, text?: string | undefined) => RawDraftContentState;
9
+ export declare const getRawText: (draft?: RawDraftContentState, text?: string) => RawDraftContentState;
@@ -73,7 +73,7 @@ function TextAreaStep(_a) {
73
73
  color: !!errors[step.id]
74
74
  ? formStyle.errorColor
75
75
  : formStyle.textColor,
76
- } }, { children: [step.label, " ", step.required ? ' *' : ''] }), void 0)), _jsx(ClickAwayListener, __assign({ mouseEvent: "onMouseDown", onClickAway: function () {
76
+ } }, { children: [step.label, " ", step.required ? ' *' : ''] }))), _jsx(ClickAwayListener, __assign({ mouseEvent: "onMouseDown", onClickAway: function () {
77
77
  if (canEdit) {
78
78
  setFocus(false);
79
79
  }
@@ -141,10 +141,10 @@ function TextAreaStep(_a) {
141
141
  list: {
142
142
  options: ['unordered'],
143
143
  },
144
- } }, void 0));
145
- } }, void 0) }), void 0) }), void 0), _jsx("div", __assign({ className: styles.errorMsg, style: {
144
+ } }));
145
+ } }) })) })), _jsx("div", __assign({ className: styles.errorMsg, style: {
146
146
  color: formStyle.errorColor,
147
- } }, { children: !!errors[step.id] && 'Este campo es obligatorio' }), void 0)] }), void 0));
147
+ } }, { children: !!errors[step.id] && 'Este campo es obligatorio' }))] })));
148
148
  }
149
149
  else {
150
150
  return (_jsx("div", __assign({ className: styles.container, style: {
@@ -160,11 +160,11 @@ function TextAreaStep(_a) {
160
160
  var field = _a.field;
161
161
  return (_jsxs(React.Fragment, { children: [_jsx("div", __assign({ className: styles.erkTextArea }, { children: _jsx(RoundedTextField, __assign({}, field, { "data-testid": step.id, maxLength: maxLength, label: step.label, inputRef: field.ref, required: step.required, cantEdit: !canEdit, fontWeight: 400, multiline: true, minRows: postview && partial ? undefined : 4, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, textColor: formStyle.textColor, errorColor: formStyle.errorColor, backgroundColor: backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : formStyle.backgroundColor, innerBackgroundColor: formStyle.stepBackgroundColor, helperTextColor: formStyle.descriptionTextColor, helperText: errors[step.id]
162
162
  ? errors[step.id].message
163
- : (_b = step.description) !== null && _b !== void 0 ? _b : (step.required ? ' ' : null), error: !!errors[step.id] }), void 0) }), void 0), postview && (_jsxs("div", __assign({ className: styles.print }, { children: [_jsxs("div", { children: [step.label, ":"] }, void 0), _jsx("p", __assign({ className: styles.printContainer, style: {
163
+ : (_b = step.description) !== null && _b !== void 0 ? _b : (step.required ? ' ' : null), error: !!errors[step.id] })) })), postview && (_jsxs("div", __assign({ className: styles.print }, { children: [_jsxs("div", { children: [step.label, ":"] }), _jsx("p", __assign({ className: styles.printContainer, style: {
164
164
  backgroundColor: formStyle.stepBackgroundColor,
165
165
  borderColor: formStyle.outlineColor,
166
- } }, { children: field.value }), void 0)] }), void 0))] }, void 0));
167
- } }, void 0) }), void 0));
166
+ } }, { children: field.value }))] })))] }));
167
+ } }) })));
168
168
  }
169
169
  }
170
170
  export default TextAreaStep;
@@ -15,10 +15,10 @@ import MaterialTextAreaStep from './MaterialTextAreaStep/MaterialTextAreaStep';
15
15
  function TextAreaStep(props) {
16
16
  switch (props.formStyle.type) {
17
17
  case FormStyleTypes.MATERIAL: {
18
- return _jsx(MaterialTextAreaStep, __assign({}, props), void 0);
18
+ return _jsx(MaterialTextAreaStep, __assign({}, props));
19
19
  }
20
20
  default: {
21
- return _jsx(MaterialTextAreaStep, __assign({}, props), void 0);
21
+ return _jsx(MaterialTextAreaStep, __assign({}, props));
22
22
  }
23
23
  }
24
24
  }
@@ -37,7 +37,7 @@ function TextInputStep(_a) {
37
37
  var field = _a.field;
38
38
  return (_jsx(RoundedTextField, __assign({}, field, { "data-testid": step.id, label: step.label, inputRef: field.ref, cantEdit: !editable || postview, required: step.required, fontWeight: 400, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, textColor: formStyle.textColor, errorColor: formStyle.errorColor, backgroundColor: formStyle.backgroundColor, innerBackgroundColor: formStyle.stepBackgroundColor, helperText: errors[step.id]
39
39
  ? errors[step.id].message
40
- : step.description, helperTextColor: formStyle.descriptionTextColor, error: !!errors[step.id], icon: step.showIcon ? icon : undefined }), void 0));
41
- } }, void 0) }), void 0));
40
+ : step.description, helperTextColor: formStyle.descriptionTextColor, error: !!errors[step.id], icon: step.showIcon ? icon : undefined })));
41
+ } }) })));
42
42
  }
43
43
  export default TextInputStep;
@@ -15,10 +15,10 @@ import MaterialTextInputStep from './MaterialTextInputStep/MaterialTextInputStep
15
15
  function TextInputStep(props) {
16
16
  switch (props.formStyle.type) {
17
17
  case FormStyleTypes.MATERIAL: {
18
- return _jsx(MaterialTextInputStep, __assign({}, props), void 0);
18
+ return _jsx(MaterialTextInputStep, __assign({}, props));
19
19
  }
20
20
  default: {
21
- return _jsx(MaterialTextInputStep, __assign({}, props), void 0);
21
+ return _jsx(MaterialTextInputStep, __assign({}, props));
22
22
  }
23
23
  }
24
24
  }
@@ -13,8 +13,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import styles from './MaterialTitleStep.module.css';
14
14
  function TitleStep(_a) {
15
15
  var step = _a.step, formStyle = _a.formStyle, widthStats = _a.widthStats;
16
- return (_jsxs("div", __assign({ className: styles.container, style: { color: formStyle.textColor } }, { children: [_jsx("div", __assign({ className: styles.titleLbl, style: { textAlign: widthStats.isMobile ? 'center' : 'start' } }, { children: step.title }), void 0), step.description && (_jsx("p", __assign({ className: styles.descriptionPar, style: {
16
+ return (_jsxs("div", __assign({ className: styles.container, style: { color: formStyle.textColor } }, { children: [_jsx("div", __assign({ className: styles.titleLbl, style: { textAlign: widthStats.isMobile ? 'center' : 'start' } }, { children: step.title })), step.description && (_jsx("p", __assign({ className: styles.descriptionPar, style: {
17
17
  margin: step.title ? '10px 0px' : '0px 0px 5px 0px',
18
- } }, { children: step.description }), void 0))] }), void 0));
18
+ } }, { children: step.description })))] })));
19
19
  }
20
20
  export default TitleStep;
@@ -27,10 +27,10 @@ function TitleStep(_a) {
27
27
  var step = _a.step, formStyle = _a.formStyle, others = __rest(_a, ["step", "formStyle"]);
28
28
  switch (formStyle.type) {
29
29
  case FormStyleTypes.MATERIAL: {
30
- return (_jsx(MaterialTitleStep, __assign({ step: step, formStyle: formStyle }, others), void 0));
30
+ return (_jsx(MaterialTitleStep, __assign({ step: step, formStyle: formStyle }, others)));
31
31
  }
32
32
  default: {
33
- return (_jsx(MaterialTitleStep, __assign({ step: step, formStyle: formStyle }, others), void 0));
33
+ return (_jsx(MaterialTitleStep, __assign({ step: step, formStyle: formStyle }, others)));
34
34
  }
35
35
  }
36
36
  }
@@ -56,22 +56,22 @@ function TermComponent(_a) {
56
56
  setShowDialog(false);
57
57
  }, open: showDialog }, { children: ((_b = term.clickEffect) === null || _b === void 0 ? void 0 : _b.type) === 'DIALOG' && (_jsxs("div", __assign({ className: styles.dialogContainer, style: { color: formStyle.textColor } }, { children: [_jsx("div", __assign({ className: styles.closeIcon, onClick: function () {
58
58
  setShowDialog(false);
59
- } }, { children: _jsx(CloseRoundedIcon, { fontSize: "inherit" }, void 0) }), void 0), _jsx("div", __assign({ className: styles.dialogTitle, style: {
59
+ } }, { children: _jsx(CloseRoundedIcon, { fontSize: "inherit" }) })), _jsx("div", __assign({ className: styles.dialogTitle, style: {
60
60
  borderBottom: '1px solid ' + formStyle.primaryColor,
61
- } }, { children: term.clickEffect.title }), void 0), _jsx("div", __assign({ className: styles.dialogContentContainer }, { children: term.clickEffect.text }), void 0), _jsx(RoundedButton, { text: 'Aceptar', padding: "20px 15px", backgroundColor: formStyle.primaryColor, color: formStyle.primaryContrastColor, fontSize: 20, onClick: function () {
61
+ } }, { children: term.clickEffect.title })), _jsx("div", __assign({ className: styles.dialogContentContainer }, { children: term.clickEffect.text })), _jsx(RoundedButton, { text: 'Aceptar', padding: "20px 15px", backgroundColor: formStyle.primaryColor, color: formStyle.primaryContrastColor, fontSize: 20, onClick: function () {
62
62
  setShowDialog(false);
63
63
  if (!postview) {
64
64
  setValue(term.id, true);
65
65
  }
66
- } }, void 0)] }), void 0)) }), void 0), _jsxs("div", __assign({ className: styles.container + ' noselect' }, { children: [_jsx("div", __assign({ className: styles.checkboxContainer }, { children: _jsx(Controller, { name: term.id, control: control, rules: {
66
+ } })] }))) })), _jsxs("div", __assign({ className: styles.container + ' noselect' }, { children: [_jsx("div", __assign({ className: styles.checkboxContainer }, { children: _jsx(Controller, { name: term.id, control: control, rules: {
67
67
  required: true,
68
68
  }, defaultValue: false, shouldUnregister: true, render: function (_a) {
69
69
  var field = _a.field;
70
- return (_jsx(RoundedCheckBox, { checked: field.value, onChange: field.onChange, cantEdit: postview, padding: "5px", checkedColor: formStyle.primaryColor, errorColor: formStyle.errorColor, size: "1.5rem", error: !!errors[term.id] }, void 0));
71
- } }, void 0) }), void 0), _jsx("div", __assign({ className: styles.messageContainer, style: {
70
+ return (_jsx(RoundedCheckBox, { checked: field.value, onChange: field.onChange, cantEdit: postview, padding: "5px", checkedColor: formStyle.primaryColor, errorColor: formStyle.errorColor, size: "1.5rem", error: !!errors[term.id] }));
71
+ } }) })), _jsx("div", __assign({ className: styles.messageContainer, style: {
72
72
  color: !!errors[term.id] && tempError
73
73
  ? formStyle.errorColor
74
74
  : 'inherit',
75
- } }, { children: renderText(term.message) }), void 0)] }), void 0)] }, void 0));
75
+ } }, { children: renderText(term.message) }))] }))] }));
76
76
  }
77
77
  export default TermComponent;
@@ -15,10 +15,10 @@ import MaterialTerm from './MaterialTerm/MaterialTerm';
15
15
  function TermComponent(props) {
16
16
  switch (props.formStyle.type) {
17
17
  case FormStyleTypes.MATERIAL: {
18
- return _jsx(MaterialTerm, __assign({}, props), void 0);
18
+ return _jsx(MaterialTerm, __assign({}, props));
19
19
  }
20
20
  default: {
21
- return _jsx(MaterialTerm, __assign({}, props), void 0);
21
+ return _jsx(MaterialTerm, __assign({}, props));
22
22
  }
23
23
  }
24
24
  }
package/dist/Widget.js CHANGED
@@ -54,4 +54,4 @@ if (element) {
54
54
  // eslint-disable-next-line no-console
55
55
  console.log(props);
56
56
  }
57
- ReactDOM.render(_jsx(App, __assign({ isWidget: true }, props), void 0), document.getElementById(WIDGET_ID));
57
+ ReactDOM.render(_jsx(App, __assign({ isWidget: true }, props)), document.getElementById(WIDGET_ID));
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
13
13
  function verb(n) { return function (v) { return step([n, v]); }; }
14
14
  function step(op) {
15
15
  if (f) throw new TypeError("Generator is already executing.");
16
- while (_) try {
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
17
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
18
  if (y = 0, t) op = [op[0] & 2, t.value];
19
19
  switch (op[0]) {
@@ -49,7 +49,7 @@ export function getUploadUrls(files, domain) {
49
49
  extension: file.name.split('.').pop(),
50
50
  }); });
51
51
  if (!domain) return [3 /*break*/, 2];
52
- return [4 /*yield*/, widgetInstance.post("/uploadfile?idOrganization=" + domain, filesArray)];
52
+ return [4 /*yield*/, widgetInstance.post("/uploadfile?idOrganization=".concat(domain), filesArray)];
53
53
  case 1:
54
54
  response = _b.sent();
55
55
  return [3 /*break*/, 4];
package/dist/index.js CHANGED
@@ -26,4 +26,4 @@ if (values) {
26
26
  console.error('Invalid data-values JSON', error);
27
27
  }
28
28
  }
29
- ReactDOM.render(_jsx("div", __assign({ className: styles.eurekaForm }, { children: _jsx(App, { isWidget: false, apiKey: window.location.pathname.replace('/', ''), valuesData: dataValues }, void 0) }), void 0), document.getElementById('eureka-root'));
29
+ ReactDOM.render(_jsx("div", __assign({ className: styles.eurekaForm }, { children: _jsx(App, { isWidget: false, apiKey: window.location.pathname.replace('/', ''), valuesData: dataValues }) })), document.getElementById('eureka-root'));
@@ -21,6 +21,6 @@ function Loader(_a) {
21
21
  backgroundColor: curtain ? 'rgb(0, 0, 0, 0.4)' : '',
22
22
  zIndex: zIndex,
23
23
  position: position,
24
- } }, { children: _jsx("div", __assign({ className: styles.loader }, { children: _jsx(CircularProgress, { size: size, style: { color: color } }, void 0) }), void 0) }), void 0));
24
+ } }, { children: _jsx("div", __assign({ className: styles.loader }, { children: _jsx(CircularProgress, { size: size, style: { color: color } }) })) })));
25
25
  }
26
26
  export default Loader;
@@ -13,6 +13,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import styles from './Navbar.module.css';
14
14
  function Navbar(_a) {
15
15
  var logo = _a.logo, color = _a.color;
16
- return (_jsx("div", __assign({ className: styles.navContainer, style: { backgroundColor: color } }, { children: _jsx("img", { src: logo, alt: "Organization Logo", className: styles.navImage }, void 0) }), void 0));
16
+ return (_jsx("div", __assign({ className: styles.navContainer, style: { backgroundColor: color } }, { children: _jsx("img", { src: logo, alt: "Organization Logo", className: styles.navImage }) })));
17
17
  }
18
18
  export default Navbar;
@@ -29,13 +29,13 @@ function Rating(_a) {
29
29
  var type = _a.type, others = __rest(_a, ["type"]);
30
30
  switch (type) {
31
31
  case RatingTypes.LIKE:
32
- return _jsx(LikeRating, __assign({}, others), void 0);
32
+ return _jsx(LikeRating, __assign({}, others));
33
33
  case RatingTypes.SATISFACTION:
34
- return _jsx(SatisfactionRating, __assign({}, others), void 0);
34
+ return _jsx(SatisfactionRating, __assign({}, others));
35
35
  case RatingTypes.SCALE:
36
- return _jsx(ScaleRating, __assign({}, others), void 0);
36
+ return _jsx(ScaleRating, __assign({}, others));
37
37
  default:
38
- return _jsx("div", {}, void 0);
38
+ return _jsx("div", {});
39
39
  }
40
40
  }
41
41
  export default Rating;
@@ -18,7 +18,7 @@ function LikeRating(_a) {
18
18
  return (_jsxs("div", __assign({ className: styles.ratingContainer, style: {
19
19
  '--eureka-primary': focusColor,
20
20
  '--eureka-outline': unSelectedColor,
21
- } }, { children: [_jsx("input", { ref: inputRef, className: styles.hiddenInput }, void 0), _jsx("div", __assign({ className: disabled
21
+ } }, { children: [_jsx("input", { ref: inputRef, className: styles.hiddenInput }), _jsx("div", __assign({ className: disabled
22
22
  ? styles.disabledLikeContainer
23
23
  : styles.likeContainer, onClick: function () {
24
24
  if (!disabled)
@@ -27,7 +27,7 @@ function LikeRating(_a) {
27
27
  ? {
28
28
  color: focusColor,
29
29
  }
30
- : {} }, void 0) }), void 0), _jsx("div", __assign({ className: disabled
30
+ : {} }) })), _jsx("div", __assign({ className: disabled
31
31
  ? styles.disabledLikeContainer
32
32
  : styles.likeContainer, onClick: function () {
33
33
  if (!disabled)
@@ -38,6 +38,6 @@ function LikeRating(_a) {
38
38
  marginTop: 14,
39
39
  marginLeft: 15,
40
40
  }
41
- : { marginTop: 14, marginLeft: 15 } }, void 0) }), void 0)] }), void 0));
41
+ : { marginTop: 14, marginLeft: 15 } }) }))] })));
42
42
  }
43
43
  export default LikeRating;
@@ -20,7 +20,7 @@ function SatisfactionRating(_a) {
20
20
  return (_jsxs("div", __assign({ className: styles.ratingContainer, style: {
21
21
  '--eureka-primary': focusColor,
22
22
  '--eureka-outline': unSelectedColor,
23
- } }, { children: [_jsx("input", { ref: inputRef, className: styles.hiddenInput }, void 0), _jsx("div", __assign({ className: disabled
23
+ } }, { children: [_jsx("input", { ref: inputRef, className: styles.hiddenInput }), _jsx("div", __assign({ className: disabled
24
24
  ? styles.disabledSentimentContainer
25
25
  : styles.sentimentContainer, onClick: function () {
26
26
  if (!disabled)
@@ -29,7 +29,7 @@ function SatisfactionRating(_a) {
29
29
  ? {
30
30
  color: focusColor,
31
31
  }
32
- : {} }, void 0) }), void 0), _jsx("div", __assign({ className: disabled
32
+ : {} }) })), _jsx("div", __assign({ className: disabled
33
33
  ? styles.disabledSentimentContainer
34
34
  : styles.sentimentContainer, onClick: function () {
35
35
  if (!disabled)
@@ -38,7 +38,7 @@ function SatisfactionRating(_a) {
38
38
  ? {
39
39
  color: focusColor,
40
40
  }
41
- : {} }, void 0) }), void 0), _jsx("div", __assign({ className: disabled
41
+ : {} }) })), _jsx("div", __assign({ className: disabled
42
42
  ? styles.disabledSentimentContainer
43
43
  : styles.sentimentContainer, onClick: function () {
44
44
  if (!disabled)
@@ -47,7 +47,7 @@ function SatisfactionRating(_a) {
47
47
  ? {
48
48
  color: focusColor,
49
49
  }
50
- : {} }, void 0) }), void 0), _jsx("div", __assign({ className: disabled
50
+ : {} }) })), _jsx("div", __assign({ className: disabled
51
51
  ? styles.disabledSentimentContainer
52
52
  : styles.sentimentContainer, onClick: function () {
53
53
  if (!disabled)
@@ -56,6 +56,6 @@ function SatisfactionRating(_a) {
56
56
  ? {
57
57
  color: focusColor,
58
58
  }
59
- : {} }, void 0) }), void 0)] }), void 0));
59
+ : {} }) }))] })));
60
60
  }
61
61
  export default SatisfactionRating;
@@ -47,17 +47,17 @@ function ScaleRating(_a) {
47
47
  unSelectedColor: unSelectedColor,
48
48
  focusColor: focusColor,
49
49
  })();
50
- return (_jsxs(React.Fragment, { children: [_jsx("input", { ref: inputRef, className: styles.hiddenInput }, void 0), _jsx(Rating, { value: value, onChange: function (_event, newValue) {
50
+ return (_jsxs(React.Fragment, { children: [_jsx("input", { ref: inputRef, className: styles.hiddenInput }), _jsx(Rating, { value: value, onChange: function (_event, newValue) {
51
51
  if (!disabled)
52
52
  onChange(newValue);
53
- }, disabled: disabled, classes: ratingClasses, name: name, size: "large", defaultValue: 0, getLabelText: function (value) { return value + '/5'; }, max: 5, IconContainerComponent: isMobile ? SmallIconContainer : IconContainer }, void 0)] }, void 0));
53
+ }, disabled: disabled, classes: ratingClasses, name: name, size: "large", defaultValue: 0, getLabelText: function (value) { return value + '/5'; }, max: 5, IconContainerComponent: isMobile ? SmallIconContainer : IconContainer })] }));
54
54
  }
55
55
  function IconContainer(_a) {
56
56
  var value = _a.value, other = __rest(_a, ["value"]);
57
- return (_jsx("span", __assign({ className: 'icon' + value }, other, { children: _jsx(GradeRoundedIcon, { style: { fontSize: 60 } }, void 0) }), void 0));
57
+ return (_jsx("span", __assign({ className: 'icon' + value }, other, { children: _jsx(GradeRoundedIcon, { style: { fontSize: 60 } }) })));
58
58
  }
59
59
  function SmallIconContainer(_a) {
60
60
  var value = _a.value, other = __rest(_a, ["value"]);
61
- return (_jsx("span", __assign({ className: 'icon' + value }, other, { children: _jsx(GradeRoundedIcon, { style: { fontSize: 50 } }, void 0) }), void 0));
61
+ return (_jsx("span", __assign({ className: 'icon' + value }, other, { children: _jsx(GradeRoundedIcon, { style: { fontSize: 50 } }) })));
62
62
  }
63
63
  export default ScaleRating;
@@ -40,6 +40,6 @@ function RoundedButton(_a) {
40
40
  fontWeight: bold ? 'bold' : 'normal',
41
41
  },
42
42
  })(Button);
43
- return (_jsx(CustomButton, __assign({ variant: "contained", onMouseDown: onClick, disabled: disabled }, { children: text }), void 0));
43
+ return (_jsx(CustomButton, __assign({ variant: "contained", onMouseDown: onClick, disabled: disabled }, { children: text })));
44
44
  }
45
45
  export default RoundedButton;
@@ -83,7 +83,7 @@ function CustomCheckBox(_a) {
83
83
  uncheckedColor: uncheckedColor,
84
84
  checkedHoverColor: checkedColor + '0a',
85
85
  })();
86
- return (_jsx(Checkbox, __assign({}, others, { disabled: cantEdit, classes: classes, checked: checked, onChange: onChange, required: true, icon: _jsx(CheckBoxOutlineBlankRoundedIcon, { fontSize: "inherit" }, void 0), checkedIcon: _jsx(CheckBoxRoundedIcon, { fontSize: "inherit" }, void 0) }), void 0));
86
+ return (_jsx(Checkbox, __assign({}, others, { disabled: cantEdit, classes: classes, checked: checked, onChange: onChange, required: true, icon: _jsx(CheckBoxOutlineBlankRoundedIcon, { fontSize: "inherit" }), checkedIcon: _jsx(CheckBoxRoundedIcon, { fontSize: "inherit" }) })));
87
87
  }
88
88
  /**
89
89
  * Generic datepicker with apps designs. Is class do to the use in the react-hook-forms library
@@ -94,7 +94,7 @@ var RoundedCheckBox = /** @class */ (function (_super) {
94
94
  return _super !== null && _super.apply(this, arguments) || this;
95
95
  }
96
96
  RoundedCheckBox.prototype.render = function () {
97
- return _jsx(CustomCheckBox, __assign({}, this.props), void 0);
97
+ return _jsx(CustomCheckBox, __assign({}, this.props));
98
98
  };
99
99
  return RoundedCheckBox;
100
100
  }(React.Component));
@@ -298,7 +298,7 @@ function CustomDatePicker(_a) {
298
298
  endAdornment: (_jsx(CalendarTodayRoundedIcon, { fontSize: "inherit", style: {
299
299
  color: '#757575',
300
300
  fontSize: 20,
301
- } }, void 0)),
301
+ } })),
302
302
  }, FormHelperTextProps: {
303
303
  classes: helperTextStyles,
304
304
  }, renderDay: function (day, selectedDate, dayInCurrentMonth, dayComponent) {
@@ -307,8 +307,8 @@ function CustomDatePicker(_a) {
307
307
  }
308
308
  return (_jsx("div", __assign({ onClick: function () {
309
309
  onChange(day);
310
- } }, { children: cloneElement(dayComponent) }), void 0));
311
- }, variant: "dialog" }), void 0));
310
+ } }, { children: cloneElement(dayComponent) })));
311
+ }, variant: "dialog" })));
312
312
  }
313
313
  else {
314
314
  return (_jsx(DatePicker, __assign({}, others, { inputVariant: "outlined", size: "small", disabled: cantEdit, fullWidth: true, onChange: onChange, placeholder: format(new Date(), 'P', { locale: getLocale() }), format: "P", required: required, InputLabelProps: { classes: labelClasses }, DialogProps: {
@@ -323,7 +323,7 @@ function CustomDatePicker(_a) {
323
323
  endAdornment: (_jsx(CalendarTodayRoundedIcon, { fontSize: "inherit", style: {
324
324
  color: '#757575',
325
325
  fontSize: 20,
326
- } }, void 0)),
326
+ } })),
327
327
  }, FormHelperTextProps: {
328
328
  classes: helperTextStyles,
329
329
  }, renderDay: function (day, selectedDate, dayInCurrentMonth, dayComponent) {
@@ -332,8 +332,8 @@ function CustomDatePicker(_a) {
332
332
  }
333
333
  return (_jsx("div", __assign({ onClick: function () {
334
334
  onChange(day);
335
- } }, { children: cloneElement(dayComponent) }), void 0));
336
- }, variant: "dialog" }), void 0));
335
+ } }, { children: cloneElement(dayComponent) })));
336
+ }, variant: "dialog" })));
337
337
  }
338
338
  }
339
339
  /**
@@ -345,7 +345,7 @@ var RoundedDatePicker = /** @class */ (function (_super) {
345
345
  return _super !== null && _super.apply(this, arguments) || this;
346
346
  }
347
347
  RoundedDatePicker.prototype.render = function () {
348
- return _jsx(CustomDatePicker, __assign({}, this.props), void 0);
348
+ return _jsx(CustomDatePicker, __assign({}, this.props));
349
349
  };
350
350
  return RoundedDatePicker;
351
351
  }(React.Component));
@@ -167,9 +167,9 @@ function CustomSelect(_a) {
167
167
  ? { minWidth: minWidth, outlineColor: outlineColor, margin: containerMargin }
168
168
  : {
169
169
  margin: containerMargin,
170
- }, fullWidth: true, required: required, error: error }, { children: [label && _jsx(InputLabel, __assign({ classes: labelClasses }, { children: label }), void 0), _jsx(Select, __assign({}, others, { value: value, onChange: handleUpdate }, (showIcon && iconComponent
170
+ }, fullWidth: true, required: required, error: error }, { children: [label && _jsx(InputLabel, __assign({ classes: labelClasses }, { children: label })), _jsx(Select, __assign({}, others, { value: value, onChange: handleUpdate }, (showIcon && iconComponent
171
171
  ? { IconComponent: iconComponent }
172
- : {}), { input: _jsx(OutlinedInput, { disabled: cantEdit, name: label, label: label ? label + (required ? ' *' : '') : undefined, classes: outlinedInputClasses }, void 0) }, { children: children }), void 0), helperText !== undefined && (_jsx(FormHelperText, __assign({ classes: helperTextClasses }, { children: helperText }), void 0))] }), void 0));
172
+ : {}), { input: _jsx(OutlinedInput, { disabled: cantEdit, name: label, label: label ? label + (required ? ' *' : '') : undefined, classes: outlinedInputClasses }) }, { children: children })), helperText !== undefined && (_jsx(FormHelperText, __assign({ classes: helperTextClasses }, { children: helperText })))] })));
173
173
  }
174
174
  /**
175
175
  * Generic textfield with apps designs. Is class do to the use in the react-hook-forms library
@@ -180,7 +180,7 @@ var RoundedSelect = /** @class */ (function (_super) {
180
180
  return _super !== null && _super.apply(this, arguments) || this;
181
181
  }
182
182
  RoundedSelect.prototype.render = function () {
183
- return _jsx(CustomSelect, __assign({}, this.props), void 0);
183
+ return _jsx(CustomSelect, __assign({}, this.props));
184
184
  };
185
185
  return RoundedSelect;
186
186
  }(React.Component));
@@ -144,7 +144,7 @@ export default function RoundedSmartSelect(_a) {
144
144
  };
145
145
  var textFieldClasses = useTextfieldStyles(props)();
146
146
  if (searchable) {
147
- return (_jsx(Autocomplete, { size: "small", fullWidth: true, openOnFocus: true, freeSolo: creatable, disabled: cantEdit || disabled, popupIcon: loading ? (_jsx(CircularProgress, { size: 22, style: { color: '#757575' } }, void 0)) : showIcon && icon ? (icon) : undefined, onOpen: function () { }, loading: loading, loadingText: 'Cargando...', closeIcon: false, options: options, getOptionLabel: function (option) {
147
+ return (_jsx(Autocomplete, { size: "small", fullWidth: true, openOnFocus: true, freeSolo: creatable, disabled: cantEdit || disabled, popupIcon: loading ? (_jsx(CircularProgress, { size: 22, style: { color: '#757575' } })) : showIcon && icon ? (icon) : undefined, onOpen: function () { }, loading: loading, loadingText: 'Cargando...', closeIcon: false, options: options, getOptionLabel: function (option) {
148
148
  var _a, _b;
149
149
  // Value selected with enter, right from the input
150
150
  if (typeof option === 'string') {
@@ -159,7 +159,7 @@ export default function RoundedSmartSelect(_a) {
159
159
  }
160
160
  }, getOptionSelected: getOptionSelected, PopperComponent: function (_a) {
161
161
  var style = _a.style, props = __rest(_a, ["style"]);
162
- return (_jsx(Popper, __assign({}, props, { style: __assign(__assign({}, style), { zIndex: 1305 }) }), void 0));
162
+ return (_jsx(Popper, __assign({}, props, { style: __assign(__assign({}, style), { zIndex: 1305 }) })));
163
163
  }, value: value ? value : null, onChange: function (event, newValue) {
164
164
  if (creatable) {
165
165
  if (typeof newValue === 'string') {
@@ -189,14 +189,14 @@ export default function RoundedSmartSelect(_a) {
189
189
  if (creatable && params.inputValue !== '') {
190
190
  filtered.push({
191
191
  inputValue: params.inputValue,
192
- label: "Crear \"" + params.inputValue + "\"",
192
+ label: "Crear \"".concat(params.inputValue, "\""),
193
193
  });
194
194
  }
195
195
  return filtered;
196
196
  }
197
197
  }, renderOption: function (option) {
198
198
  return typeof option === 'string' ? option : option.label;
199
- }, renderInput: function (params) { return (_jsx(TextField, __assign({ classes: textFieldClasses }, params, { inputRef: inputRef, onBlur: onBlur, name: name, variant: "outlined", label: label, required: required, error: error, helperText: helperText }), void 0)); }, style: { pointerEvents: 'none' }, noOptionsText: "No hay opciones" }, void 0));
199
+ }, renderInput: function (params) { return (_jsx(TextField, __assign({ classes: textFieldClasses }, params, { inputRef: inputRef, onBlur: onBlur, name: name, variant: "outlined", label: label, required: required, error: error, helperText: helperText }))); }, style: { pointerEvents: 'none' }, noOptionsText: "No hay opciones" }));
200
200
  }
201
201
  else {
202
202
  return (_jsxs(RoundedSelect, __assign({ onBlur: onBlur, inputRef: inputRef, name: name, fullWidth: true, handleUpdate: function (event) {
@@ -209,6 +209,6 @@ export default function RoundedSmartSelect(_a) {
209
209
  ? function (props) {
210
210
  return cloneElement(icon, props);
211
211
  }
212
- : undefined, showIcon: showIcon }, { children: [_jsx(MenuItem, __assign({ value: '', style: { whiteSpace: 'normal' } }, { children: _jsx("em", { children: "Sin Seleccionar" }, void 0) }), 'EMPTY'), options.map(function (option) { return (_jsx(MenuItem, __assign({ value: getValueString(option), style: { whiteSpace: 'normal' } }, { children: option.label }), getValueString(option))); })] }), void 0));
212
+ : undefined, showIcon: showIcon }, { children: [_jsx(MenuItem, __assign({ value: '', style: { whiteSpace: 'normal' } }, { children: _jsx("em", { children: "Sin Seleccionar" }) }), 'EMPTY'), options.map(function (option) { return (_jsx(MenuItem, __assign({ value: getValueString(option), style: { whiteSpace: 'normal' } }, { children: option.label }), getValueString(option))); })] })));
213
213
  }
214
214
  }
@@ -140,7 +140,7 @@ function CustomTextfield(_a) {
140
140
  if (maxLength) {
141
141
  inputProps.inputProps = { maxLength: maxLength };
142
142
  }
143
- return (_jsxs("div", __assign({ style: { position: 'relative', width: '100%', maxWidth: '100%' } }, { children: [_jsx(TextField, __assign({ classes: classes }, others, { value: value !== null && value !== void 0 ? value : '', multiline: multiline, variant: "outlined", size: "small", fullWidth: true, InputProps: inputProps }), void 0), length !== null && (_jsxs("div", __assign({ style: others.helperText
143
+ return (_jsxs("div", __assign({ style: { position: 'relative', width: '100%', maxWidth: '100%' } }, { children: [_jsx(TextField, __assign({ classes: classes }, others, { value: value !== null && value !== void 0 ? value : '', multiline: multiline, variant: "outlined", size: "small", fullWidth: true, InputProps: inputProps })), length !== null && (_jsxs("div", __assign({ style: others.helperText
144
144
  ? {
145
145
  position: 'absolute',
146
146
  bottom: '3px',
@@ -155,7 +155,7 @@ function CustomTextfield(_a) {
155
155
  paddingRight: '8px',
156
156
  paddingTop: '2px',
157
157
  paddingBottom: '2px',
158
- } }, { children: [length, "/", maxLength] }), void 0))] }), void 0));
158
+ } }, { children: [length, "/", maxLength] })))] })));
159
159
  }
160
160
  /**
161
161
  * Generic textfield with apps designs. Is class do to the use in the react-hook-forms library
@@ -166,7 +166,7 @@ var RoundedTextField = /** @class */ (function (_super) {
166
166
  return _super !== null && _super.apply(this, arguments) || this;
167
167
  }
168
168
  RoundedTextField.prototype.render = function () {
169
- return _jsx(CustomTextfield, __assign({}, this.props), void 0);
169
+ return _jsx(CustomTextfield, __assign({}, this.props));
170
170
  };
171
171
  return RoundedTextField;
172
172
  }(React.Component));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arquimedes.co/eureka-forms",
3
3
  "repository": "git://github.com/Arquimede5/Eureka-Forms.git",
4
- "version": "1.9.14",
4
+ "version": "1.9.15",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",
@@ -27,7 +27,7 @@
27
27
  "react-google-recaptcha": "^2.1.0",
28
28
  "react-hook-form": "^7.6.4",
29
29
  "react-router-dom": "^5.2.0",
30
- "react-scripts": "5.0.0-next.37",
30
+ "react-scripts": "5.0.1",
31
31
  "typescript": "^4.4.3"
32
32
  },
33
33
  "eslintConfig": {