contentoh-components-library 21.4.36 → 21.4.38
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/assets/images/Icons/delete.svg +8 -0
- package/dist/assets/images/Icons/edit.svg +3 -0
- package/dist/assets/images/Icons/info.svg +8 -0
- package/dist/components/molecules/BoxAttribute/BoxAttribute.stories.js +33 -0
- package/dist/components/molecules/BoxAttribute/index.js +73 -0
- package/dist/components/molecules/BoxAttribute/styles.js +23 -0
- package/dist/components/molecules/BoxButtons/BoxButtons.stories.js +31 -0
- package/dist/components/molecules/BoxButtons/index.js +56 -0
- package/dist/components/molecules/BoxButtons/styles.js +24 -0
- package/dist/components/molecules/ButtonsAssignation/ButtonsAssignation.stories.js +34 -0
- package/dist/components/molecules/ButtonsAssignation/index.js +142 -0
- package/dist/components/molecules/ButtonsAssignation/styles.js +20 -0
- package/dist/components/molecules/ButtonsEdition/ButtonsEdition.stories.js +34 -0
- package/dist/components/molecules/ButtonsEdition/index.js +182 -0
- package/dist/components/molecules/ButtonsEdition/styles.js +24 -0
- package/dist/components/molecules/ProductSkuStatus/ProductSkuStatus.stories.js +64 -0
- package/dist/components/molecules/ProductSkuStatus/index.js +36 -0
- package/dist/components/molecules/ProductSkuStatus/styles.js +18 -0
- package/dist/components/molecules/Validation/Validation.stories.js +28 -0
- package/dist/components/molecules/Validation/index.js +77 -0
- package/dist/components/molecules/Validation/styles.js +18 -0
- package/dist/components/organisms/BarButtons/BarButtons.stories.js +30 -0
- package/dist/components/organisms/BarButtons/index.js +61 -0
- package/dist/components/organisms/BarButtons/styles.js +18 -0
- package/dist/components/organisms/Box/Box.stories.js +37 -0
- package/dist/components/organisms/Box/index.js +99 -0
- package/dist/components/organisms/Box/styles.js +20 -0
- package/dist/components/organisms/BoxOnboarding/BoxOnboarding.stories.js +37 -0
- package/dist/components/organisms/BoxOnboarding/index.js +69 -0
- package/dist/components/organisms/BoxOnboarding/styles.js +20 -0
- package/dist/components/organisms/InputGroup/index.js +66 -48
- package/dist/components/pages/ProviderProductEdition/index.js +1 -1
- package/dist/components/pages/ProviderProductEdition1/ProviderProductEdition.stories.js +222 -0
- package/dist/components/pages/ProviderProductEdition1/index.js +2339 -0
- package/dist/components/pages/ProviderProductEdition1/styles.js +23 -0
- package/dist/global-files/data.js +8 -4
- package/dist/global-files/variables.js +5 -1
- package/package.json +1 -1
- package/src/assets/images/Icons/info.svg +8 -0
- package/src/components/molecules/BoxAttribute/BoxAttribute.stories.js +17 -0
- package/src/components/molecules/BoxAttribute/index.js +71 -0
- package/src/components/molecules/BoxAttribute/styles.js +35 -0
- package/src/components/molecules/BoxButtons/BoxButtons.stories.js +15 -0
- package/src/components/molecules/BoxButtons/index.js +32 -0
- package/src/components/molecules/BoxButtons/styles.js +43 -0
- package/src/components/organisms/Box/Box.stories.js +17 -0
- package/src/components/organisms/Box/index.js +61 -0
- package/src/components/organisms/Box/styles.js +48 -0
- package/src/components/organisms/BoxOnboarding/BoxOnboarding.stories.js +17 -0
- package/src/components/organisms/BoxOnboarding/index.js +63 -0
- package/src/components/organisms/BoxOnboarding/styles.js +44 -0
- package/src/components/organisms/InputGroup/index.js +22 -0
- package/src/components/pages/ProviderProductEdition/index.js +2 -1
- package/src/global-files/data.js +11 -2
- package/src/global-files/variables.js +4 -0
- package/dist/assets/fonts/roboto/LICENSE.txt +0 -202
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.Box = void 0;
|
|
11
|
+
|
|
12
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
|
|
13
|
+
|
|
14
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
15
|
+
|
|
16
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
17
|
+
|
|
18
|
+
var _styles = require("./styles");
|
|
19
|
+
|
|
20
|
+
var _variables = require("../../../global-files/variables");
|
|
21
|
+
|
|
22
|
+
var _BoxOnboarding = require("../BoxOnboarding");
|
|
23
|
+
|
|
24
|
+
var _BoxButtons = require("../../molecules/BoxButtons");
|
|
25
|
+
|
|
26
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
|
+
|
|
28
|
+
var Box = function Box() {
|
|
29
|
+
var _useState = (0, _react.useState)(true),
|
|
30
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
31
|
+
isDeleteDisabled = _useState2[0],
|
|
32
|
+
setIsDeleteDisabled = _useState2[1];
|
|
33
|
+
|
|
34
|
+
var _useState3 = (0, _react.useState)(false),
|
|
35
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
36
|
+
isEditEnabled = _useState4[0],
|
|
37
|
+
setIsEditEnabled = _useState4[1];
|
|
38
|
+
|
|
39
|
+
var _useState5 = (0, _react.useState)([{
|
|
40
|
+
showAdd: true
|
|
41
|
+
}]),
|
|
42
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
43
|
+
boxOnboardingList = _useState6[0],
|
|
44
|
+
setBoxOnboardingList = _useState6[1];
|
|
45
|
+
|
|
46
|
+
var handleAddBoxOnboarding = function handleAddBoxOnboarding() {
|
|
47
|
+
var newBoxOnboarding = {
|
|
48
|
+
showAdd: false
|
|
49
|
+
};
|
|
50
|
+
setBoxOnboardingList([].concat((0, _toConsumableArray2.default)(boxOnboardingList), [newBoxOnboarding]));
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
var handleDeleteBoxOnboarding = function handleDeleteBoxOnboarding(index) {
|
|
54
|
+
if (index !== 0) {
|
|
55
|
+
var updatedBoxOnboardingList = (0, _toConsumableArray2.default)(boxOnboardingList);
|
|
56
|
+
updatedBoxOnboardingList.splice(index, 1);
|
|
57
|
+
setBoxOnboardingList(updatedBoxOnboardingList);
|
|
58
|
+
} else {
|
|
59
|
+
setIsDeleteDisabled(true);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
var handleToggleEdit = function handleToggleEdit() {
|
|
64
|
+
setIsEditEnabled(!isEditEnabled);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
68
|
+
fontFamily: _variables.FontFamily.Raleway,
|
|
69
|
+
color: _variables.GlobalColors.original_magenta,
|
|
70
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("h1", {
|
|
71
|
+
fontFamily: _variables.FontFamily.Raleway,
|
|
72
|
+
children: "Cajas"
|
|
73
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
74
|
+
className: "container-box",
|
|
75
|
+
children: boxOnboardingList.map(function (boxOnboarding, index) {
|
|
76
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
77
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
78
|
+
className: "container-buttons",
|
|
79
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_BoxOnboarding.BoxOnboarding, {
|
|
80
|
+
showAdd: boxOnboarding.showAdd,
|
|
81
|
+
isEditEnabled: isEditEnabled
|
|
82
|
+
}, index), /*#__PURE__*/(0, _jsxRuntime.jsx)(_BoxButtons.BoxButtons, {
|
|
83
|
+
showAdd: boxOnboarding.showAdd,
|
|
84
|
+
onAdd: handleAddBoxOnboarding,
|
|
85
|
+
onDelete: function onDelete() {
|
|
86
|
+
return handleDeleteBoxOnboarding(index);
|
|
87
|
+
},
|
|
88
|
+
isDeleteDisabled: isDeleteDisabled,
|
|
89
|
+
onToggleEdit: handleToggleEdit,
|
|
90
|
+
isEditEnabled: isEditEnabled
|
|
91
|
+
})]
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
})
|
|
95
|
+
})]
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
exports.Box = Box;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Container = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _templateObject;
|
|
17
|
+
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-family: ", ", sans-serif;\n font-weight: 400;\n display: flex;\n flex-direction: column;\n gap: 10px;\n font-size: var(--size);\n line-height: 1.2;\n height: auto;\n border-radius: 10px;\n background: white;\n position: relative;\n overflow: hidden;\n width: 100%;\n text-align: center;\n .container-buttons {\n display: flex;\n gap:10px;\n }\n .container-box{\n display: flex;\n flex-direction:column-reverse;\n gap:10px;\n }\n #contenedor-caja {\n display: flex;\n justify-content: space-between;\n color: #262626;\n white-space: nowrap;\n gap: 10px;\n }\n #atr-alto {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 6px;\n }\n h1 {\n font-family: ", ", sans-serif;\n font-size: 17px;\n line-height: 1.2;\n font-weight: 500;\n text-align: left;\n }\n"])), _variables.FontFamily.Roboto, _variables.FontFamily.RobotoMedium);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.BoxOnboardingDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _index = require("./index");
|
|
13
|
+
|
|
14
|
+
var _loginImage = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/loginImage.svg"));
|
|
15
|
+
|
|
16
|
+
var _login = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/login2.svg"));
|
|
17
|
+
|
|
18
|
+
var _login2 = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/login3.svg"));
|
|
19
|
+
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
+
|
|
22
|
+
var _default = {
|
|
23
|
+
title: "Components/organisms/BoxOnboarding",
|
|
24
|
+
component: _index.BoxOnboarding
|
|
25
|
+
};
|
|
26
|
+
exports.default = _default;
|
|
27
|
+
|
|
28
|
+
var Template = function Template(args) {
|
|
29
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxOnboarding, (0, _objectSpread2.default)({}, args));
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
var BoxOnboardingDefault = Template.bind({});
|
|
33
|
+
exports.BoxOnboardingDefault = BoxOnboardingDefault;
|
|
34
|
+
BoxOnboardingDefault.args = {
|
|
35
|
+
panelImg: [_loginImage.default, _login.default, _login2.default],
|
|
36
|
+
panelText: "Elige la plataforma que conecta proovedores y retailers"
|
|
37
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.BoxOnboarding = void 0;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _styles = require("./styles");
|
|
13
|
+
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _BoxAttribute = require("../../molecules/BoxAttribute");
|
|
17
|
+
|
|
18
|
+
var _react = require("react");
|
|
19
|
+
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
+
|
|
22
|
+
var BoxOnboarding = function BoxOnboarding(_ref) {
|
|
23
|
+
var panelColor = _ref.panelColor,
|
|
24
|
+
isEditEnabled = _ref.isEditEnabled;
|
|
25
|
+
|
|
26
|
+
var _useState = (0, _react.useState)(true),
|
|
27
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
28
|
+
boxAttributesActive = _useState2[0],
|
|
29
|
+
setBoxAttributesActive = _useState2[1];
|
|
30
|
+
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
32
|
+
panelColor: panelColor,
|
|
33
|
+
fontFamily: _variables.FontFamily.Raleway,
|
|
34
|
+
color: _variables.GlobalColors.original_magenta,
|
|
35
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
36
|
+
id: "contenedor-caja",
|
|
37
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
38
|
+
fontFamily: _variables.FontFamily.Raleway,
|
|
39
|
+
children: "Caja 1, chica"
|
|
40
|
+
}), boxAttributesActive && /*#__PURE__*/(0, _jsxRuntime.jsx)(_BoxAttribute.BoxAttribute, {
|
|
41
|
+
id: "atr-alto",
|
|
42
|
+
borderType: "rectangle",
|
|
43
|
+
className: "caja",
|
|
44
|
+
text: "Largo",
|
|
45
|
+
isEditEnabled: isEditEnabled
|
|
46
|
+
}), boxAttributesActive && /*#__PURE__*/(0, _jsxRuntime.jsx)(_BoxAttribute.BoxAttribute, {
|
|
47
|
+
id: "atr-alto",
|
|
48
|
+
borderType: "rectangle",
|
|
49
|
+
className: "caja",
|
|
50
|
+
text: "Alto",
|
|
51
|
+
isEditEnabled: isEditEnabled
|
|
52
|
+
}), boxAttributesActive && /*#__PURE__*/(0, _jsxRuntime.jsx)(_BoxAttribute.BoxAttribute, {
|
|
53
|
+
id: "atr-alto",
|
|
54
|
+
borderType: "rectangle",
|
|
55
|
+
className: "caja",
|
|
56
|
+
text: "Ancho",
|
|
57
|
+
isEditEnabled: isEditEnabled
|
|
58
|
+
}), boxAttributesActive && /*#__PURE__*/(0, _jsxRuntime.jsx)(_BoxAttribute.BoxAttribute, {
|
|
59
|
+
id: "atr-alto",
|
|
60
|
+
borderType: "rectangle",
|
|
61
|
+
className: "caja",
|
|
62
|
+
text: "Peso",
|
|
63
|
+
isEditEnabled: isEditEnabled
|
|
64
|
+
})]
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
exports.BoxOnboarding = BoxOnboarding;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Container = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _templateObject;
|
|
17
|
+
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-family: ", ", sans-serif;\n font-weight: 400;\n font-size: var(--size);\n line-height: 1.2;\n background: white;\n position: relative;\n overflow: hidden;\n width: 80%;\n height: 100%;\n text-align: center;\n #contenedor-caja {\n display: flex;\n justify-content: space-between;\n color: #262626;\n }\n #atr-alto {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n p {\n font-family: ", ", sans-serif;\n font-size: 12px;\n line-height: 1.2;\n font-weight: 600;\n align-self: center;\n }\n }\n .icon-red {\n color: #B64545;\n height:18px;\n }\n .icon-gray {\n color: #707070;\n }\n .icon-gray-l {\n color: #707070;\n height:18px;\n }\n"])), _variables.FontFamily.Roboto, _variables.FontFamily.RobotoMedium);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -11,6 +11,10 @@ var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
|
11
11
|
|
|
12
12
|
var _TagAndInput = require("../../molecules/TagAndInput");
|
|
13
13
|
|
|
14
|
+
var _BoxOnboarding = require("../BoxOnboarding");
|
|
15
|
+
|
|
16
|
+
var _Box = require("../Box");
|
|
17
|
+
|
|
14
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
19
|
|
|
16
20
|
var InputGroup = function InputGroup(_ref) {
|
|
@@ -31,7 +35,9 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
31
35
|
articleId = _ref.articleId,
|
|
32
36
|
version = _ref.version,
|
|
33
37
|
dinamicHeight = _ref.dinamicHeight,
|
|
34
|
-
compare = _ref.compare
|
|
38
|
+
compare = _ref.compare,
|
|
39
|
+
_ref$dataGroup = _ref.dataGroup,
|
|
40
|
+
dataGroup = _ref$dataGroup === void 0 ? 12 : _ref$dataGroup;
|
|
35
41
|
|
|
36
42
|
var inputTypeValue = function inputTypeValue(type) {
|
|
37
43
|
switch (type) {
|
|
@@ -46,58 +52,70 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
46
52
|
}
|
|
47
53
|
};
|
|
48
54
|
|
|
55
|
+
var isOnboarding = function isOnboarding(dataGroup, group) {
|
|
56
|
+
var result = dataGroup === group;
|
|
57
|
+
return result;
|
|
58
|
+
};
|
|
59
|
+
|
|
49
60
|
var isEquals = function isEquals(dataInputsVal, auditInputsVal) {
|
|
50
61
|
var result = dataInputsVal === auditInputsVal;
|
|
51
62
|
return result;
|
|
52
63
|
};
|
|
53
64
|
|
|
54
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
65
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
66
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
67
|
+
className: activeSection === "Ficha técnica" ? "datasheets-layout" : "descriptions-layout",
|
|
68
|
+
children: [(inputGroup === null || inputGroup === void 0 ? void 0 : inputGroup.dataGroup) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
69
|
+
headerType: "retailer-name-header",
|
|
70
|
+
text: inputGroup === null || inputGroup === void 0 ? void 0 : inputGroup.dataGroup
|
|
71
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
72
|
+
className: "inputs-container",
|
|
73
|
+
children: inputGroup === null || inputGroup === void 0 ? void 0 : (_inputGroup$inputs = inputGroup.inputs) === null || _inputGroup$inputs === void 0 ? void 0 : _inputGroup$inputs.map(function (input, index) {
|
|
74
|
+
var _dataInputs$input, _dataInputs$input2, _dataInputs$input3, _dataInputs$input4, _dataInputs$input5, _dataInputs$input6, _auditInputs$input, _dataInputs$input7, _dataInputs$input8, _dataInputs$input9, _dataInputs$input10, _dataInputs$input11, _dataInputs$input12, _auditInputGroup$inpu, _auditInputGroup$inpu2;
|
|
75
|
+
|
|
76
|
+
return activeSection === "Ficha técnica" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
77
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
78
|
+
//disabled={input === 40001}
|
|
79
|
+
disabled: false,
|
|
80
|
+
inputId: (_dataInputs$input3 = dataInputs[input]) === null || _dataInputs$input3 === void 0 ? void 0 : _dataInputs$input3.id,
|
|
81
|
+
version: version,
|
|
82
|
+
inputType: inputTypeValue((_dataInputs$input4 = dataInputs[input]) === null || _dataInputs$input4 === void 0 ? void 0 : _dataInputs$input4.type),
|
|
83
|
+
label: ((_dataInputs$input5 = dataInputs[input]) === null || _dataInputs$input5 === void 0 ? void 0 : _dataInputs$input5.name) + ((_dataInputs$input6 = dataInputs[input]) !== null && _dataInputs$input6 !== void 0 && _dataInputs$input6.required ? "*" : ""),
|
|
84
|
+
value: compare ? (_auditInputs$input = auditInputs[input]) === null || _auditInputs$input === void 0 ? void 0 : _auditInputs$input.value : (_dataInputs$input7 = dataInputs[input]) === null || _dataInputs$input7 === void 0 ? void 0 : _dataInputs$input7.value,
|
|
85
|
+
inputPlaceHolder: input === null || input === void 0 ? void 0 : input.placeholder,
|
|
86
|
+
articleId: articleId,
|
|
87
|
+
isRequired: (_dataInputs$input8 = dataInputs[input]) === null || _dataInputs$input8 === void 0 ? void 0 : _dataInputs$input8.required,
|
|
88
|
+
updatedDatasheets: updatedDatasheets,
|
|
89
|
+
setUpdatedDatasheets: setUpdatedDatasheets,
|
|
90
|
+
maxChar: (_dataInputs$input9 = dataInputs[input]) !== null && _dataInputs$input9 !== void 0 && _dataInputs$input9.max_chars ? (_dataInputs$input10 = dataInputs[input]) === null || _dataInputs$input10 === void 0 ? void 0 : _dataInputs$input10.max_chars : 999,
|
|
91
|
+
optionList: (_dataInputs$input11 = dataInputs[input]) === null || _dataInputs$input11 === void 0 ? void 0 : _dataInputs$input11.option_list,
|
|
92
|
+
description: (_dataInputs$input12 = dataInputs[input]) === null || _dataInputs$input12 === void 0 ? void 0 : _dataInputs$input12.description,
|
|
93
|
+
showTooltip: true,
|
|
94
|
+
auditClass: compare && !isEquals(dataInputs[input].value, auditInputs[input].value) ? "audit-class" : ""
|
|
95
|
+
}, index + "-" + ((_dataInputs$input = dataInputs[input]) === null || _dataInputs$input === void 0 ? void 0 : _dataInputs$input.value) + "-" + ((_dataInputs$input2 = dataInputs[input]) === null || _dataInputs$input2 === void 0 ? void 0 : _dataInputs$input2.id) + "-" + compare)
|
|
96
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
97
|
+
inputId: input.id,
|
|
98
|
+
index: index,
|
|
99
|
+
inputType: "textarea",
|
|
100
|
+
label: (input === null || input === void 0 ? void 0 : input.name) + (input.required ? "*" : ""),
|
|
101
|
+
value: compare ? auditInputGroup === null || auditInputGroup === void 0 ? void 0 : (_auditInputGroup$inpu = auditInputGroup.inputs[index]) === null || _auditInputGroup$inpu === void 0 ? void 0 : _auditInputGroup$inpu.value : input === null || input === void 0 ? void 0 : input.value,
|
|
102
|
+
isRequired: input.required,
|
|
103
|
+
maxChar: input.max_chars,
|
|
104
|
+
inputPlaceHolder: input === null || input === void 0 ? void 0 : input.placeholder,
|
|
105
|
+
updatedDescriptions: updatedDescriptions,
|
|
106
|
+
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
107
|
+
articleId: articleId,
|
|
108
|
+
version: version,
|
|
109
|
+
dinamicHeight: dinamicHeight,
|
|
110
|
+
description: input === null || input === void 0 ? void 0 : input.description,
|
|
111
|
+
showTooltip: true,
|
|
112
|
+
auditClass: compare && !isEquals(input === null || input === void 0 ? void 0 : input.value, auditInputGroup === null || auditInputGroup === void 0 ? void 0 : (_auditInputGroup$inpu2 = auditInputGroup.inputs[index]) === null || _auditInputGroup$inpu2 === void 0 ? void 0 : _auditInputGroup$inpu2.value) ? "audit-class" : ""
|
|
113
|
+
}, index + "-" + (input === null || input === void 0 ? void 0 : input.value) + "-" + compare);
|
|
114
|
+
})
|
|
115
|
+
})]
|
|
116
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
117
|
+
className: activeSection === "Ficha técnica" ? "datasheets-layout" : "descriptions-layout",
|
|
118
|
+
children: isOnboarding && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.Box, {})
|
|
101
119
|
})]
|
|
102
120
|
});
|
|
103
121
|
};
|
|
@@ -886,7 +886,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
886
886
|
switch (_context8.prev = _context8.next) {
|
|
887
887
|
case 0:
|
|
888
888
|
_context8.next = 2;
|
|
889
|
-
return (0, _data.getRetailerServices)((product === null || product === void 0 ? void 0 : product.id_article) || (product === null || product === void 0 ? void 0 : (_product$article = product.article) === null || _product$article === void 0 ? void 0 : _product$article.id_article), (product === null || product === void 0 ? void 0 : (_product$article2 = product.article) === null || _product$article2 === void 0 ? void 0 : _product$article2.company_name) || (product === null || product === void 0 ? void 0 : product.categoryName), parseInt((product === null || product === void 0 ? void 0 : (_product$article3 = product.article) === null || _product$article3 === void 0 ? void 0 : _product$article3.id_category) || (product === null || product === void 0 ? void 0 : product.id_category)), version);
|
|
889
|
+
return (0, _data.getRetailerServices)((product === null || product === void 0 ? void 0 : product.id_article) || (product === null || product === void 0 ? void 0 : (_product$article = product.article) === null || _product$article === void 0 ? void 0 : _product$article.id_article), (product === null || product === void 0 ? void 0 : (_product$article2 = product.article) === null || _product$article2 === void 0 ? void 0 : _product$article2.company_name) || (product === null || product === void 0 ? void 0 : product.categoryName), parseInt((product === null || product === void 0 ? void 0 : (_product$article3 = product.article) === null || _product$article3 === void 0 ? void 0 : _product$article3.id_category) || (product === null || product === void 0 ? void 0 : product.id_category)), version, token);
|
|
890
890
|
|
|
891
891
|
case 2:
|
|
892
892
|
services = _context8.sent;
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.ProviderProductEdition1Default = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _index = require("./index");
|
|
13
|
+
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
title: "Components/pages/ProviderProductEdition1",
|
|
18
|
+
component: _index.ProviderProductEdition1
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ProviderProductEdition1, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var ProviderProductEdition1Default = Template.bind({});
|
|
27
|
+
exports.ProviderProductEdition1Default = ProviderProductEdition1Default;
|
|
28
|
+
ProviderProductEdition1Default.args = {
|
|
29
|
+
tabsSections: {
|
|
30
|
+
Descripción: true,
|
|
31
|
+
"Ficha técnica": false,
|
|
32
|
+
Imágenes: false
|
|
33
|
+
},
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyM2Q1NTlmYi1jMzIwLTRhMjItYjJmNy1lOThhYTFhZGEyNmYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkyNjgyMSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2ODM5MzA0MjEsImlhdCI6MTY4MzkyNjgyMSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.TvCoaKoctj5mypXWMz3NyV1Vm1ToBV0vJmpVyZSQw4-ikTChkxcZ5tFYvqhk1GdvNCFttfSQIqM-14dAYYBc28YwwKP86gqOuzB1fG41rN5x1Yx3tkJq6hiVRgiBbSHWtThA9c8VnxNQbrJiaRTvvkDiM5KNTEst1oxQHL5Ct9_iKQMJMRFie7Xv0xnyS0qZ6QHK4Q2A9OHsnDkAuumALZJcE19Zh6VgSitgWrZiz3x5Text4Q-U-R48NUAzUFirAzYZzJN_fCme5pGf1AnUaZjeUjPsmrV5TBVzPEYwXO0KG8lYjL8id80D7tbGs28ZIK6B4rf3-eqI_ngmBB4CjQ",
|
|
35
|
+
articleId: 238,
|
|
36
|
+
category: 846,
|
|
37
|
+
version: 2,
|
|
38
|
+
productSelected: {
|
|
39
|
+
orderId: 15275,
|
|
40
|
+
status: "AA",
|
|
41
|
+
datasheet_status: "AA",
|
|
42
|
+
prio: "none",
|
|
43
|
+
version: 3,
|
|
44
|
+
description_status: "AA",
|
|
45
|
+
images_status: "AA",
|
|
46
|
+
brand: null,
|
|
47
|
+
retailerOrder: 0,
|
|
48
|
+
missing: {
|
|
49
|
+
datasheet: null,
|
|
50
|
+
descriptions: null,
|
|
51
|
+
images: null
|
|
52
|
+
},
|
|
53
|
+
services: {
|
|
54
|
+
datasheets: 1,
|
|
55
|
+
descriptions: 1,
|
|
56
|
+
images: 1
|
|
57
|
+
},
|
|
58
|
+
article: {
|
|
59
|
+
category: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
60
|
+
company_name: "GRUPO BRAHMA",
|
|
61
|
+
country: "México",
|
|
62
|
+
id_category: "11",
|
|
63
|
+
id_datasheet_especialist: 54,
|
|
64
|
+
id_datasheet_facilitator: 52,
|
|
65
|
+
id_description_especialist: 54,
|
|
66
|
+
id_description_facilitator: 52,
|
|
67
|
+
id_images_especialist: 55,
|
|
68
|
+
id_images_facilitator: 53,
|
|
69
|
+
id_order: 15275,
|
|
70
|
+
id_article: 39485,
|
|
71
|
+
id_auditor: 37,
|
|
72
|
+
name: "Mix de nueces",
|
|
73
|
+
timestamp: "2023-07-14T21:03:19.000Z",
|
|
74
|
+
upc: "7543453453"
|
|
75
|
+
},
|
|
76
|
+
retailers: [{
|
|
77
|
+
id: 34,
|
|
78
|
+
name: "San Pablo"
|
|
79
|
+
}],
|
|
80
|
+
statusByRetailer: {
|
|
81
|
+
34: {
|
|
82
|
+
datasheet: "AA",
|
|
83
|
+
description: "AA",
|
|
84
|
+
images: "AA"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
retailersAvailable: [{
|
|
88
|
+
id: 34,
|
|
89
|
+
name: "San Pablo"
|
|
90
|
+
}],
|
|
91
|
+
categoryName: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
92
|
+
upc: "7543453453",
|
|
93
|
+
id_article: 39485,
|
|
94
|
+
id_order: 15275
|
|
95
|
+
},
|
|
96
|
+
productToEdit: {
|
|
97
|
+
ArticleId: 39485,
|
|
98
|
+
idCategory: "11",
|
|
99
|
+
product: {
|
|
100
|
+
orderId: 15275,
|
|
101
|
+
status: "AA",
|
|
102
|
+
datasheet_status: "AA",
|
|
103
|
+
prio: "none",
|
|
104
|
+
version: 3,
|
|
105
|
+
description_status: "AA",
|
|
106
|
+
images_status: "AA",
|
|
107
|
+
brand: null,
|
|
108
|
+
retailerOrder: 0,
|
|
109
|
+
missing: {
|
|
110
|
+
datasheet: null,
|
|
111
|
+
descriptions: null,
|
|
112
|
+
images: null
|
|
113
|
+
},
|
|
114
|
+
services: {
|
|
115
|
+
datasheets: 1,
|
|
116
|
+
descriptions: 1,
|
|
117
|
+
images: 1
|
|
118
|
+
},
|
|
119
|
+
article: {
|
|
120
|
+
category: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
121
|
+
company_name: "GRUPO BRAHMA",
|
|
122
|
+
country: "México",
|
|
123
|
+
id_category: "11",
|
|
124
|
+
id_datasheet_especialist: 54,
|
|
125
|
+
id_datasheet_facilitator: 52,
|
|
126
|
+
id_description_especialist: 54,
|
|
127
|
+
id_description_facilitator: 52,
|
|
128
|
+
id_images_especialist: 55,
|
|
129
|
+
id_images_facilitator: 53,
|
|
130
|
+
id_order: 15275,
|
|
131
|
+
id_article: 39485,
|
|
132
|
+
id_auditor: 37,
|
|
133
|
+
name: "Mix de nueces",
|
|
134
|
+
timestamp: "2023-07-14T21:03:19.000Z",
|
|
135
|
+
upc: "7543453453"
|
|
136
|
+
},
|
|
137
|
+
retailers: [{
|
|
138
|
+
id: 34,
|
|
139
|
+
name: "San Pablo"
|
|
140
|
+
}],
|
|
141
|
+
statusByRetailer: {
|
|
142
|
+
34: {
|
|
143
|
+
datasheet: "AA",
|
|
144
|
+
description: "AA",
|
|
145
|
+
images: "AA"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
retailersAvailable: [{
|
|
149
|
+
id: 34,
|
|
150
|
+
name: "San Pablo"
|
|
151
|
+
}],
|
|
152
|
+
categoryName: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
153
|
+
upc: "7543453453",
|
|
154
|
+
id_article: 39485,
|
|
155
|
+
id_order: 15275
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
location: {
|
|
159
|
+
pathname: "/EditProducts",
|
|
160
|
+
search: "",
|
|
161
|
+
hash: "",
|
|
162
|
+
state: {
|
|
163
|
+
withChat: true,
|
|
164
|
+
chatType: "product_status",
|
|
165
|
+
origin: "RequestWithContentoh"
|
|
166
|
+
},
|
|
167
|
+
key: "24vwut"
|
|
168
|
+
},
|
|
169
|
+
user: {
|
|
170
|
+
id_user: 28,
|
|
171
|
+
name: "Ismael",
|
|
172
|
+
last_name: "López",
|
|
173
|
+
email: "ilopez@contentoh.com",
|
|
174
|
+
position: "Test States",
|
|
175
|
+
telephone: "+523111366336",
|
|
176
|
+
country: "México",
|
|
177
|
+
id_company: 1,
|
|
178
|
+
id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
|
|
179
|
+
birth_Date: null,
|
|
180
|
+
about_me: "",
|
|
181
|
+
zip_code: "",
|
|
182
|
+
address: "",
|
|
183
|
+
job: "",
|
|
184
|
+
id_stripe: "cus_KuEt6R6vwmN09f",
|
|
185
|
+
id_role: 0,
|
|
186
|
+
active: 1,
|
|
187
|
+
is_retailer: 0,
|
|
188
|
+
email_notify: 1,
|
|
189
|
+
is_user_tech: "ADMIN-AS",
|
|
190
|
+
membership: {
|
|
191
|
+
id: 76,
|
|
192
|
+
start_date: "2022-01-18T17:25:35.000Z",
|
|
193
|
+
end_date: "2023-01-18T17:25:35.000Z",
|
|
194
|
+
planID: 8,
|
|
195
|
+
plan: "prod_KtlhECVSFG2iro",
|
|
196
|
+
name: "Plan Pro",
|
|
197
|
+
user_limit: "50",
|
|
198
|
+
products_limit: "5000",
|
|
199
|
+
type: "Enterprise"
|
|
200
|
+
},
|
|
201
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1693338334183"
|
|
202
|
+
},
|
|
203
|
+
company: {
|
|
204
|
+
id_company: 1,
|
|
205
|
+
trade_name: "GRUPO BRAHMA",
|
|
206
|
+
company_name: "GRUPO BRAHMA",
|
|
207
|
+
rfc: "XAXX010101000",
|
|
208
|
+
adress: "AA",
|
|
209
|
+
about_company: "",
|
|
210
|
+
telephone: "",
|
|
211
|
+
web_site: "",
|
|
212
|
+
zip_code: "",
|
|
213
|
+
email: null,
|
|
214
|
+
social_link: "",
|
|
215
|
+
is_retailer: 0,
|
|
216
|
+
financedRetailers: [],
|
|
217
|
+
retailers: []
|
|
218
|
+
},
|
|
219
|
+
showSurvey: function showSurvey(v) {
|
|
220
|
+
return v && alert("se muestra");
|
|
221
|
+
}
|
|
222
|
+
};
|