@arquimedes.co/eureka-forms 1.8.0-test → 1.8.2-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.module.css +1 -0
- package/dist/FormComponents/Form/Form.js +7 -4
- package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.js +2 -2
- package/dist/FormComponents/Step/@Construction/CBRLocativasStep/CBRLocativasStep.js +9 -7
- package/dist/FormComponents/Step/CBRStepMapper.js +34 -26
- package/dist/index.css +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -0
- package/dist/index.module.css +6 -0
- package/package.json +1 -1
package/dist/App.module.css
CHANGED
|
@@ -87,13 +87,16 @@ function FormComponent(_a) {
|
|
|
87
87
|
//If currently displaying internal or form is standalone
|
|
88
88
|
if ((postview || internal || !form.isStandAlone) &&
|
|
89
89
|
widthStats !== undefined) {
|
|
90
|
-
return (_jsx("div", __assign({
|
|
90
|
+
return (_jsx("div", __assign({ style: {
|
|
91
91
|
backgroundColor: internal || postview
|
|
92
92
|
? InternalFormStyle.backgroundColor
|
|
93
93
|
: form.style.backgroundColor,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
minHeight: '100%',
|
|
95
|
+
} }, { children: _jsx("div", __assign({ className: styles.widgetFormContainer, ref: containerRef }, { children: _jsx(FormTypeComponent, __assign({}, others, { handleLoaded: function () {
|
|
96
|
+
setLoaded(true);
|
|
97
|
+
}, widthStats: widthStats, form: form, internal: internal, postview: postview, organization: organization, formStyle: internal || postview
|
|
98
|
+
? InternalFormStyle
|
|
99
|
+
: form.style }), void 0) }), void 0) }), void 0));
|
|
97
100
|
}
|
|
98
101
|
else if (organization && widthStats !== undefined) {
|
|
99
102
|
//Standalone cant have widget
|
|
@@ -57,8 +57,8 @@ function Incidents(_a) {
|
|
|
57
57
|
num: current.length + 1,
|
|
58
58
|
};
|
|
59
59
|
var newSteps = __assign({}, localForm.steps);
|
|
60
|
-
newSteps[newIncident.idSpaceStep] = __assign({ id: newIncident.idSpaceStep, type: CBRFormStepTypes.CBR_TIPO_ESPACIO, dependencies: step.dependencies }
|
|
61
|
-
newSteps[newIncident.idCommentStep] = __assign({ id: newIncident.idCommentStep, type: CBRFormStepTypes.CBR_COMENTARIO }
|
|
60
|
+
newSteps[newIncident.idSpaceStep] = __assign(__assign({}, step.spaceStep), { id: newIncident.idSpaceStep, type: CBRFormStepTypes.CBR_TIPO_ESPACIO, dependencies: step.dependencies });
|
|
61
|
+
newSteps[newIncident.idCommentStep] = __assign(__assign({}, step.commentStep), { id: newIncident.idCommentStep, type: CBRFormStepTypes.CBR_COMENTARIO });
|
|
62
62
|
var deps = __assign({}, dependencyStore);
|
|
63
63
|
addRecursiveElementStep(newIncident.idElementStep, step.elementStep, null, newSteps, deps, (_b = (_a = step.dependencies) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : '');
|
|
64
64
|
onChange(__spreadArray(__spreadArray([], incidents, true), [newIncident], false));
|
|
@@ -95,7 +95,7 @@ function LeakIconComponent(props) {
|
|
|
95
95
|
} }, void 0));
|
|
96
96
|
}
|
|
97
97
|
var getLocativasOptions = function (idOrganization, step, dependencyStore) { return __awaiter(void 0, void 0, void 0, function () {
|
|
98
|
-
var idProyecto, response, father_1, locativasList;
|
|
98
|
+
var idProyecto, response, father_1, locativasList, data;
|
|
99
99
|
var _a;
|
|
100
100
|
return __generator(this, function (_b) {
|
|
101
101
|
switch (_b.label) {
|
|
@@ -121,12 +121,14 @@ var getLocativasOptions = function (idOrganization, step, dependencyStore) { ret
|
|
|
121
121
|
return locativa.Id.length === 2;
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
124
|
+
data = locativasList.map(function (option) {
|
|
125
|
+
return {
|
|
126
|
+
label: option.Descripcion,
|
|
127
|
+
id: option.Id,
|
|
128
|
+
};
|
|
129
|
+
});
|
|
130
|
+
data.sort(function (a, b) { return a.label.localeCompare(b.label); });
|
|
131
|
+
return [2 /*return*/, data];
|
|
130
132
|
case 2: return [2 /*return*/, null];
|
|
131
133
|
}
|
|
132
134
|
});
|
|
@@ -59,37 +59,41 @@ var baseUrl = "https://integrations." + process.env.REACT_APP_DOMAIN + "/sinco/c
|
|
|
59
59
|
function CBRStepMapper(props) {
|
|
60
60
|
var _this = this;
|
|
61
61
|
var getTipoDocOptions = function (idOrganization) { return __awaiter(_this, void 0, void 0, function () {
|
|
62
|
-
var response;
|
|
62
|
+
var response, data;
|
|
63
63
|
return __generator(this, function (_a) {
|
|
64
64
|
switch (_a.label) {
|
|
65
65
|
case 0: return [4 /*yield*/, axios.get(baseUrl + 'ConsultaTiposDoc?idOrganization=' + idOrganization)];
|
|
66
66
|
case 1:
|
|
67
67
|
response = (_a.sent()).data;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
data = response.map(function (option) {
|
|
69
|
+
return { label: option.Descripcion, id: option.Id };
|
|
70
|
+
});
|
|
71
|
+
data.sort(function (a, b) { return a.label.localeCompare(b.label); });
|
|
72
|
+
return [2 /*return*/, data];
|
|
71
73
|
}
|
|
72
74
|
});
|
|
73
75
|
}); };
|
|
74
76
|
var getProyectoOptions = function (idOrganization) { return __awaiter(_this, void 0, void 0, function () {
|
|
75
|
-
var response;
|
|
77
|
+
var response, data;
|
|
76
78
|
return __generator(this, function (_a) {
|
|
77
79
|
switch (_a.label) {
|
|
78
80
|
case 0: return [4 /*yield*/, axios.get(baseUrl + 'Consultaproyectos?idOrganization=' + idOrganization)];
|
|
79
81
|
case 1:
|
|
80
82
|
response = (_a.sent()).data;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
data = response.map(function (option) {
|
|
84
|
+
return {
|
|
85
|
+
label: option.NombreProyecto,
|
|
86
|
+
id: option.IdProyecto,
|
|
87
|
+
idMacroProyecto: option.IdMacroproyecto,
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
data.sort(function (a, b) { return a.label.localeCompare(b.label); });
|
|
91
|
+
return [2 /*return*/, data];
|
|
88
92
|
}
|
|
89
93
|
});
|
|
90
94
|
}); };
|
|
91
95
|
var getTipoSolicitanteOptions = function (idOrganization) { return __awaiter(_this, void 0, void 0, function () {
|
|
92
|
-
var response;
|
|
96
|
+
var response, data;
|
|
93
97
|
return __generator(this, function (_a) {
|
|
94
98
|
switch (_a.label) {
|
|
95
99
|
case 0: return [4 /*yield*/, axios.get(baseUrl +
|
|
@@ -97,17 +101,19 @@ function CBRStepMapper(props) {
|
|
|
97
101
|
idOrganization)];
|
|
98
102
|
case 1:
|
|
99
103
|
response = (_a.sent()).data;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
data = response.map(function (option) {
|
|
105
|
+
return {
|
|
106
|
+
label: option.Descripcion,
|
|
107
|
+
id: option.Id,
|
|
108
|
+
};
|
|
109
|
+
});
|
|
110
|
+
data.sort(function (a, b) { return a.label.localeCompare(b.label); });
|
|
111
|
+
return [2 /*return*/, data];
|
|
106
112
|
}
|
|
107
113
|
});
|
|
108
114
|
}); };
|
|
109
115
|
var getTipoEspaciosOptions = function (idOrganization, step, dependencyStore) { return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var idProyecto, response;
|
|
116
|
+
var idProyecto, response, data;
|
|
111
117
|
var _a;
|
|
112
118
|
return __generator(this, function (_b) {
|
|
113
119
|
switch (_b.label) {
|
|
@@ -124,12 +130,14 @@ function CBRStepMapper(props) {
|
|
|
124
130
|
idOrganization)];
|
|
125
131
|
case 1:
|
|
126
132
|
response = (_b.sent()).data;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
+
data = response.map(function (option) {
|
|
134
|
+
return {
|
|
135
|
+
label: option.Descripcion,
|
|
136
|
+
id: option.Id,
|
|
137
|
+
};
|
|
138
|
+
});
|
|
139
|
+
data.sort(function (a, b) { return a.label.localeCompare(b.label); });
|
|
140
|
+
return [2 /*return*/, data];
|
|
133
141
|
case 2: return [2 /*return*/, null];
|
|
134
142
|
}
|
|
135
143
|
});
|
package/dist/index.css
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import './index.css';
|
package/dist/index.js
CHANGED
|
@@ -13,6 +13,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import * as ReactDOM from 'react-dom';
|
|
14
14
|
import App from './App';
|
|
15
15
|
import styles from './index.module.css';
|
|
16
|
+
import './index.css';
|
|
16
17
|
var urlParams = new URLSearchParams(window.location.search);
|
|
17
18
|
var values = urlParams.get('data-values');
|
|
18
19
|
var dataValues = undefined;
|
package/dist/index.module.css
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap');
|
|
2
2
|
|
|
3
|
+
html {
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
3
7
|
body {
|
|
4
8
|
font-family: 'Nunito';
|
|
9
|
+
height: 100%;
|
|
5
10
|
}
|
|
6
11
|
|
|
7
12
|
.eurekaForm {
|
|
8
13
|
min-height: 100vh;
|
|
9
14
|
width: 100%;
|
|
15
|
+
height: 100%;
|
|
10
16
|
scroll-behavior: smooth;
|
|
11
17
|
overflow: hidden;
|
|
12
18
|
overflow-x: hidden;
|
package/package.json
CHANGED