contentoh-components-library 21.4.39 → 21.4.41
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.
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.InputGroup = void 0;
|
|
9
7
|
|
|
10
|
-
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/typeof"));
|
|
11
|
-
|
|
12
8
|
var _styles = require("./styles");
|
|
13
9
|
|
|
14
10
|
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
@@ -40,10 +36,8 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
40
36
|
version = _ref.version,
|
|
41
37
|
dinamicHeight = _ref.dinamicHeight,
|
|
42
38
|
compare = _ref.compare,
|
|
43
|
-
_ref$
|
|
44
|
-
|
|
45
|
-
console.log('groupData: ', (0, _typeof2.default)(groupData));
|
|
46
|
-
console.log('groupData: ', groupData);
|
|
39
|
+
_ref$dataGroup = _ref.dataGroup,
|
|
40
|
+
dataGroup = _ref$dataGroup === void 0 ? 12 : _ref$dataGroup;
|
|
47
41
|
|
|
48
42
|
var inputTypeValue = function inputTypeValue(type) {
|
|
49
43
|
switch (type) {
|
|
@@ -58,17 +52,6 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
58
52
|
}
|
|
59
53
|
};
|
|
60
54
|
|
|
61
|
-
var contentBoxAttribute = groupData.find(function (_ref2) {
|
|
62
|
-
var dataGroup = _ref2.dataGroup;
|
|
63
|
-
return dataGroup === 'Caja';
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
if (contentBoxAttribute) {
|
|
67
|
-
console.log('content box attribute');
|
|
68
|
-
} else {
|
|
69
|
-
console.log('dont content box attribute');
|
|
70
|
-
}
|
|
71
|
-
|
|
72
55
|
var isOnboarding = function isOnboarding(dataGroup, group) {
|
|
73
56
|
var result = dataGroup === group;
|
|
74
57
|
return result;
|
|
@@ -132,7 +115,7 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
132
115
|
})]
|
|
133
116
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
134
117
|
className: activeSection === "Ficha técnica" ? "datasheets-layout" : "descriptions-layout",
|
|
135
|
-
children:
|
|
118
|
+
children: isOnboarding && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.Box, {})
|
|
136
119
|
})]
|
|
137
120
|
});
|
|
138
121
|
};
|
|
@@ -1083,7 +1083,6 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1083
1083
|
|
|
1084
1084
|
if ((_services$0$activeRet = services[0][activeRetailer.id]) !== null && _services$0$activeRet !== void 0 && _services$0$activeRet.data) services[0][activeRetailer.id].data = Object.values(services[0][activeRetailer.id].data);
|
|
1085
1085
|
setActivePercentage(Math.round(activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.percentage, 0));
|
|
1086
|
-
console.log("loadInputs: ", services[0]);
|
|
1087
1086
|
var datagroups = services[0][activeRetailer.id];
|
|
1088
1087
|
var inputs = (_services$2 = services[0]) === null || _services$2 === void 0 ? void 0 : _services$2.inputs;
|
|
1089
1088
|
|
|
@@ -2196,8 +2195,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
2196
2195
|
inputGroup: dataGroup,
|
|
2197
2196
|
dataInputs: datasheets[1],
|
|
2198
2197
|
updatedDatasheets: updatedDatasheets,
|
|
2199
|
-
setUpdatedDatasheets: setUpdatedDatasheets
|
|
2200
|
-
groupData: services[0][activeRetailer.id].data //enableActions={enableActions(product.version_status)} ADD THIS VALIDATION
|
|
2198
|
+
setUpdatedDatasheets: setUpdatedDatasheets //enableActions={enableActions(product.version_status)} ADD THIS VALIDATION
|
|
2201
2199
|
|
|
2202
2200
|
}, index + "-" + activeRetailer.name);
|
|
2203
2201
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
package/package.json
CHANGED
|
@@ -18,11 +18,8 @@ export const InputGroup = ({
|
|
|
18
18
|
version,
|
|
19
19
|
dinamicHeight,
|
|
20
20
|
compare,
|
|
21
|
-
|
|
21
|
+
dataGroup=12,
|
|
22
22
|
}) => {
|
|
23
|
-
|
|
24
|
-
console.log('groupData: ', typeof groupData);
|
|
25
|
-
console.log('groupData: ', groupData);
|
|
26
23
|
const inputTypeValue = (type) => {
|
|
27
24
|
switch (type) {
|
|
28
25
|
case "Booleano":
|
|
@@ -34,12 +31,6 @@ export const InputGroup = ({
|
|
|
34
31
|
}
|
|
35
32
|
};
|
|
36
33
|
|
|
37
|
-
let contentBoxAttribute = groupData.find(({dataGroup}) => dataGroup === 'Caja')
|
|
38
|
-
if(contentBoxAttribute) {
|
|
39
|
-
console.log('content box attribute');
|
|
40
|
-
} else {
|
|
41
|
-
console.log('dont content box attribute');
|
|
42
|
-
}
|
|
43
34
|
const isOnboarding = (dataGroup, group) => {
|
|
44
35
|
const result = dataGroup === group;
|
|
45
36
|
return result;
|
|
@@ -151,7 +142,7 @@ export const InputGroup = ({
|
|
|
151
142
|
? "datasheets-layout"
|
|
152
143
|
: "descriptions-layout"
|
|
153
144
|
}>
|
|
154
|
-
{
|
|
145
|
+
{ isOnboarding && <Box/>}
|
|
155
146
|
</Container>
|
|
156
147
|
</>
|
|
157
148
|
);
|
|
@@ -596,7 +596,6 @@ export const ProviderProductEdition = ({
|
|
|
596
596
|
);
|
|
597
597
|
setActivePercentage(Math.round(activeRetailer?.percentage, 0));
|
|
598
598
|
|
|
599
|
-
console.log("loadInputs: ", services[0]);
|
|
600
599
|
const datagroups = services[0][activeRetailer.id];
|
|
601
600
|
const inputs = services[0]?.inputs;
|
|
602
601
|
const descriptions = services[1]?.filter(
|
|
@@ -1463,7 +1462,6 @@ export const ProviderProductEdition = ({
|
|
|
1463
1462
|
dataInputs={datasheets[1]}
|
|
1464
1463
|
updatedDatasheets={updatedDatasheets}
|
|
1465
1464
|
setUpdatedDatasheets={setUpdatedDatasheets}
|
|
1466
|
-
groupData = { services[0][activeRetailer.id].data }
|
|
1467
1465
|
//enableActions={enableActions(product.version_status)} ADD THIS VALIDATION
|
|
1468
1466
|
/>
|
|
1469
1467
|
))
|