contentoh-components-library 21.4.83 → 21.4.85
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/components/atoms/TabSection/styles.js +1 -1
- package/dist/components/molecules/ProductNameHeader/index.js +8 -3
- package/dist/components/organisms/EditGroup/index.js +0 -11
- package/dist/components/organisms/FullProductNameHeader/index.js +3 -1
- package/dist/components/organisms/VersionSelector/index.js +101 -169
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +55 -74
- package/dist/components/pages/ProviderProductEdition/index.js +88 -66
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +47 -52
- package/dist/components/pages/RetailerProductEdition/index.js +101 -177
- package/dist/global-files/data.js +11 -26
- package/package.json +2 -1
- package/src/components/atoms/GeneralButton/styles.js +1 -0
- package/src/components/atoms/ObservationFlag/ObservationFlag.stories.js +20 -0
- package/src/components/atoms/ObservationFlag/index.js +33 -0
- package/src/components/atoms/ObservationFlag/styles.js +3 -0
- package/src/components/atoms/TabSection/index.js +1 -1
- package/src/components/atoms/TabSection/styles.js +1 -4
- package/src/components/molecules/ProductNameHeader/index.js +5 -1
- package/src/components/organisms/EditGroup/index.js +0 -8
- package/src/components/organisms/FullProductNameHeader/index.js +2 -0
- package/src/components/organisms/VersionSelector/index.js +100 -100
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +73 -86
- package/src/components/pages/ProviderProductEdition/index.js +38 -23
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +48 -52
- package/src/components/pages/RetailerProductEdition/index.js +32 -144
- package/src/global-files/data.js +7 -33
|
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-family: ", ";\n color: ", ";\n font-size: 14px;\n line-height: 21px;\n border-bottom: 2px solid ", ";\n width: 149px;\n padding-bottom: 5px;\n transition: 0.1s all;\n cursor: pointer;\n
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-family: ", ";\n color: ", ";\n font-size: 14px;\n line-height: 21px;\n border-bottom: 2px solid ", ";\n width: 149px;\n padding-bottom: 5px;\n transition: 0.1s all;\n cursor: pointer;\n &.active {\n font-size: 18px;\n border-bottom: 2px solid ", ";\n }\n & + * {\n margin-left: 10px;\n }\n"])), _variables.FontFamily.Raleway_500, _variables.GlobalColors.s5, _variables.GlobalColors.s3, _variables.GlobalColors.magenta_s2);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -15,6 +15,8 @@ var _index3 = require("../../atoms/ProgressBar/index");
|
|
|
15
15
|
|
|
16
16
|
var _index4 = require("../../atoms/PriorityFlag/index");
|
|
17
17
|
|
|
18
|
+
var _index5 = require("../../atoms/ObservationFlag/index");
|
|
19
|
+
|
|
18
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
21
|
|
|
20
22
|
var ProductNameHeader = function ProductNameHeader(_ref) {
|
|
@@ -22,7 +24,9 @@ var ProductNameHeader = function ProductNameHeader(_ref) {
|
|
|
22
24
|
statusType = _ref.statusType,
|
|
23
25
|
priority = _ref.priority,
|
|
24
26
|
date = _ref.date,
|
|
25
|
-
percentRequired = _ref.percentRequired
|
|
27
|
+
percentRequired = _ref.percentRequired,
|
|
28
|
+
productObservation = _ref.productObservation;
|
|
29
|
+
var typeFlag = productObservation !== null && productObservation !== "" ? "high" : "low";
|
|
26
30
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
27
31
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
28
32
|
headerType: "product-name-header",
|
|
@@ -33,8 +37,9 @@ var ProductNameHeader = function ProductNameHeader(_ref) {
|
|
|
33
37
|
percent: percentRequired,
|
|
34
38
|
progressBarType: statusType,
|
|
35
39
|
percentRequired: percentRequired
|
|
36
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
37
|
-
|
|
40
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index5.ObservationFlag, {
|
|
41
|
+
observation: typeFlag,
|
|
42
|
+
contentObservation: productObservation
|
|
38
43
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
39
44
|
headerType: "date-header",
|
|
40
45
|
text: date
|
|
@@ -130,20 +130,10 @@ var EditGroup = function EditGroup(_ref) {
|
|
|
130
130
|
inputValue = _useState18[0],
|
|
131
131
|
setInputValue = _useState18[1];
|
|
132
132
|
|
|
133
|
-
var _useState19 = (0, _react.useState)(false),
|
|
134
|
-
_useState20 = (0, _slicedToArray2.default)(_useState19, 2),
|
|
135
|
-
shouldClose = _useState20[0],
|
|
136
|
-
setShouldClose = _useState20[1];
|
|
137
|
-
|
|
138
133
|
(0, _react.useEffect)(function () {}, [groups]);
|
|
139
134
|
(0, _react.useEffect)(function () {
|
|
140
135
|
loadData();
|
|
141
136
|
}, []);
|
|
142
|
-
(0, _react.useEffect)(function () {
|
|
143
|
-
if (shouldClose) {
|
|
144
|
-
onClose && onClose();
|
|
145
|
-
}
|
|
146
|
-
}, [shouldClose, onClose]);
|
|
147
137
|
|
|
148
138
|
var loadData = /*#__PURE__*/function () {
|
|
149
139
|
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
@@ -451,7 +441,6 @@ var EditGroup = function EditGroup(_ref) {
|
|
|
451
441
|
backgroundColor: "transparent",
|
|
452
442
|
zIndex: 10
|
|
453
443
|
},
|
|
454
|
-
onClick: onClose,
|
|
455
444
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Fade, {
|
|
456
445
|
in: show,
|
|
457
446
|
timeout: 400,
|
|
@@ -34,7 +34,8 @@ var FullProductNameHeader = function FullProductNameHeader(_ref) {
|
|
|
34
34
|
approveAll = _ref.approveAll,
|
|
35
35
|
rejectAll = _ref.rejectAll,
|
|
36
36
|
servicesData = _ref.servicesData,
|
|
37
|
-
showApproveRejectAll = _ref.showApproveRejectAll
|
|
37
|
+
showApproveRejectAll = _ref.showApproveRejectAll,
|
|
38
|
+
productObservation = _ref.productObservation;
|
|
38
39
|
|
|
39
40
|
var _useState = (0, _react.useState)([]),
|
|
40
41
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -68,6 +69,7 @@ var FullProductNameHeader = function FullProductNameHeader(_ref) {
|
|
|
68
69
|
percentRequired: percent,
|
|
69
70
|
percent: percent === null || percent === void 0 ? void 0 : percent.toFixed(0),
|
|
70
71
|
priority: headerData === null || headerData === void 0 ? void 0 : headerData.prio,
|
|
72
|
+
productObservation: productObservation,
|
|
71
73
|
date: getTime((headerData === null || headerData === void 0 ? void 0 : (_headerData$article2 = headerData.article) === null || _headerData$article2 === void 0 ? void 0 : _headerData$article2.timestamp) || (headerData === null || headerData === void 0 ? void 0 : headerData.timestamp))
|
|
72
74
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
73
75
|
className: "features-bar-container",
|
|
@@ -1,169 +1,101 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
101
|
-
|
|
102
|
-
return _ref2.apply(this, arguments);
|
|
103
|
-
};
|
|
104
|
-
}();
|
|
105
|
-
|
|
106
|
-
(0, _react.useEffect)(function () {
|
|
107
|
-
var ac = new AbortController();
|
|
108
|
-
loadProductVersions(articleId);
|
|
109
|
-
return function () {
|
|
110
|
-
setVersions([]);
|
|
111
|
-
setShowCreateVersion(false);
|
|
112
|
-
return function () {
|
|
113
|
-
return ac.abort();
|
|
114
|
-
}; // Abort both fetches on unmount
|
|
115
|
-
};
|
|
116
|
-
}, [reload]);
|
|
117
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
118
|
-
id: modalId,
|
|
119
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
120
|
-
className: "versions-header",
|
|
121
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
122
|
-
text: "Versión del producto",
|
|
123
|
-
headerType: "input-name-header",
|
|
124
|
-
color: _variables.GlobalColors.white,
|
|
125
|
-
fontFamily: _variables2.FontFamily.Lato
|
|
126
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
127
|
-
className: "buttons-container",
|
|
128
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
129
|
-
image: _addVersion.default,
|
|
130
|
-
buttonType: "circular-button",
|
|
131
|
-
onClick: function onClick() {
|
|
132
|
-
return setShowCreateVersion(true);
|
|
133
|
-
},
|
|
134
|
-
id: "add-version"
|
|
135
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
136
|
-
image: _closeVersionSelector.default,
|
|
137
|
-
buttonType: "circular-button",
|
|
138
|
-
onClick: function onClick() {
|
|
139
|
-
return setShowVersionSelector(false);
|
|
140
|
-
},
|
|
141
|
-
id: "close-button"
|
|
142
|
-
})]
|
|
143
|
-
})]
|
|
144
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
145
|
-
className: "versions-container",
|
|
146
|
-
children: versions === null || versions === void 0 ? void 0 : versions.map(function (item) {
|
|
147
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_VersionItem.VersionItem, {
|
|
148
|
-
version: item.version,
|
|
149
|
-
articleStatus: item.article_status,
|
|
150
|
-
currentVersion: item.version === currentVersion,
|
|
151
|
-
productOwner: companyName,
|
|
152
|
-
setVersion: setVersion,
|
|
153
|
-
timestamp: item.timestamp
|
|
154
|
-
}, item.version);
|
|
155
|
-
})
|
|
156
|
-
}), showCreateVersion && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CreateVersion.CreateVersion, {
|
|
157
|
-
articleId: articleId,
|
|
158
|
-
version: currentVersion,
|
|
159
|
-
versionsList: versions,
|
|
160
|
-
setShowCreateVersion: setShowCreateVersion,
|
|
161
|
-
realoadVersion: function realoadVersion() {
|
|
162
|
-
return setReload(!reload);
|
|
163
|
-
},
|
|
164
|
-
jwt: jwt
|
|
165
|
-
})]
|
|
166
|
-
});
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
exports.VersionSelector = VersionSelector;
|
|
1
|
+
// import { Container } from "./styles";
|
|
2
|
+
// import axios from "axios";
|
|
3
|
+
// import { useEffect, useState } from "react";
|
|
4
|
+
// import { ScreenHeader } from "../../atoms/ScreenHeader";
|
|
5
|
+
// import { Button } from "../../atoms/GeneralButton";
|
|
6
|
+
// import addVersion from "../../../assets/images/versionSelector/addVersion.svg";
|
|
7
|
+
// import closeIcon from "../../../assets/images/versionSelector/closeVersionSelector.svg";
|
|
8
|
+
// import { GlobalColors } from "../../../../dist/global-files/variables";
|
|
9
|
+
// import { FontFamily } from "../../../global-files/variables";
|
|
10
|
+
// import { VersionItem } from "../../molecules/VersionItem";
|
|
11
|
+
// import { CreateVersion } from "../../organisms/CreateVersion";
|
|
12
|
+
// import { useCloseModal } from "../../../global-files/customHooks";
|
|
13
|
+
// export const VersionSelector = ({
|
|
14
|
+
// modalId,
|
|
15
|
+
// articleId,
|
|
16
|
+
// setVersion,
|
|
17
|
+
// companyName,
|
|
18
|
+
// currentVersion,
|
|
19
|
+
// setShowVersionSelector,
|
|
20
|
+
// jwt,
|
|
21
|
+
// }) => {
|
|
22
|
+
// const [versions, setVersions] = useState([]);
|
|
23
|
+
// const [showCreateVersion, setShowCreateVersion] =
|
|
24
|
+
// useCloseModal("create-version");
|
|
25
|
+
// const [reload, setReload] = useState(false);
|
|
26
|
+
// const loadProductVersions = async (articleId) => {
|
|
27
|
+
// try {
|
|
28
|
+
// const response = await axios.get(
|
|
29
|
+
// `${process.env.REACT_APP_VERSIONS_ENDPOINT}?articleId=${articleId}&provider=true`,
|
|
30
|
+
// {
|
|
31
|
+
// headers: {
|
|
32
|
+
// Authorization: jwt,
|
|
33
|
+
// },
|
|
34
|
+
// }
|
|
35
|
+
// );
|
|
36
|
+
// const versionList = JSON.parse(response.data.body).data;
|
|
37
|
+
// setVersions(versionList);
|
|
38
|
+
// } catch (error) {
|
|
39
|
+
// console.log(error);
|
|
40
|
+
// }
|
|
41
|
+
// };
|
|
42
|
+
// useEffect(() => {
|
|
43
|
+
// const ac = new AbortController();
|
|
44
|
+
// loadProductVersions(articleId);
|
|
45
|
+
// return () => {
|
|
46
|
+
// setVersions([]);
|
|
47
|
+
// setShowCreateVersion(false);
|
|
48
|
+
// return () => ac.abort(); // Abort both fetches on unmount
|
|
49
|
+
// };
|
|
50
|
+
// }, [reload]);
|
|
51
|
+
// return (
|
|
52
|
+
// <Container id={modalId}>
|
|
53
|
+
// <div className="versions-header">
|
|
54
|
+
// <ScreenHeader
|
|
55
|
+
// text={"Versión del producto"}
|
|
56
|
+
// headerType={"input-name-header"}
|
|
57
|
+
// color={GlobalColors.white}
|
|
58
|
+
// fontFamily={FontFamily.Lato}
|
|
59
|
+
// />
|
|
60
|
+
// <div className="buttons-container">
|
|
61
|
+
// <Button
|
|
62
|
+
// image={addVersion}
|
|
63
|
+
// buttonType={"circular-button"}
|
|
64
|
+
// onClick={() => setShowCreateVersion(true)}
|
|
65
|
+
// id="add-version"
|
|
66
|
+
// />
|
|
67
|
+
// <Button
|
|
68
|
+
// image={closeIcon}
|
|
69
|
+
// buttonType={"circular-button"}
|
|
70
|
+
// onClick={() => setShowVersionSelector(false)}
|
|
71
|
+
// id="close-button"
|
|
72
|
+
// />
|
|
73
|
+
// </div>
|
|
74
|
+
// </div>
|
|
75
|
+
// <div className="versions-container">
|
|
76
|
+
// {versions?.map((item) => (
|
|
77
|
+
// <VersionItem
|
|
78
|
+
// key={item.version}
|
|
79
|
+
// version={item.version}
|
|
80
|
+
// articleStatus={item.article_status}
|
|
81
|
+
// currentVersion={item.version === currentVersion}
|
|
82
|
+
// productOwner={companyName}
|
|
83
|
+
// setVersion={setVersion}
|
|
84
|
+
// timestamp={item.timestamp}
|
|
85
|
+
// />
|
|
86
|
+
// ))}
|
|
87
|
+
// </div>
|
|
88
|
+
// {showCreateVersion && (
|
|
89
|
+
// <CreateVersion
|
|
90
|
+
// articleId={articleId}
|
|
91
|
+
// version={currentVersion}
|
|
92
|
+
// versionsList={versions}
|
|
93
|
+
// setShowCreateVersion={setShowCreateVersion}
|
|
94
|
+
// realoadVersion={() => setReload(!reload)}
|
|
95
|
+
// jwt={jwt}
|
|
96
|
+
// />
|
|
97
|
+
// )}
|
|
98
|
+
// </Container>
|
|
99
|
+
// );
|
|
100
|
+
// };
|
|
101
|
+
"use strict";
|
|
@@ -27,8 +27,8 @@ var ProviderProductEditionDefault = Template.bind({});
|
|
|
27
27
|
exports.ProviderProductEditionDefault = ProviderProductEditionDefault;
|
|
28
28
|
ProviderProductEditionDefault.args = {
|
|
29
29
|
tabsSections: {
|
|
30
|
-
Descripción:
|
|
31
|
-
"Ficha técnica":
|
|
30
|
+
Descripción: false,
|
|
31
|
+
"Ficha técnica": true,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
34
|
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyM2Q1NTlmYi1jMzIwLTRhMjItYjJmNy1lOThhYTFhZGEyNmYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkyNjgyMSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2ODM5MzA0MjEsImlhdCI6MTY4MzkyNjgyMSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.TvCoaKoctj5mypXWMz3NyV1Vm1ToBV0vJmpVyZSQw4-ikTChkxcZ5tFYvqhk1GdvNCFttfSQIqM-14dAYYBc28YwwKP86gqOuzB1fG41rN5x1Yx3tkJq6hiVRgiBbSHWtThA9c8VnxNQbrJiaRTvvkDiM5KNTEst1oxQHL5Ct9_iKQMJMRFie7Xv0xnyS0qZ6QHK4Q2A9OHsnDkAuumALZJcE19Zh6VgSitgWrZiz3x5Text4Q-U-R48NUAzUFirAzYZzJN_fCme5pGf1AnUaZjeUjPsmrV5TBVzPEYwXO0KG8lYjL8id80D7tbGs28ZIK6B4rf3-eqI_ngmBB4CjQ",
|
|
@@ -36,43 +36,38 @@ ProviderProductEditionDefault.args = {
|
|
|
36
36
|
category: 287,
|
|
37
37
|
version: 1,
|
|
38
38
|
productSelected: {
|
|
39
|
-
id_article:
|
|
40
|
-
upc:
|
|
41
|
-
name: "
|
|
42
|
-
timestamp: "
|
|
43
|
-
categoryName: "
|
|
44
|
-
id_category:
|
|
39
|
+
id_article: 121067,
|
|
40
|
+
upc: "2342341",
|
|
41
|
+
name: "asd",
|
|
42
|
+
timestamp: "2024-01-03T19:42:59.000Z",
|
|
43
|
+
categoryName: "Abarrotes|Abarrotes Secos|Alimentos Deshidratados",
|
|
44
|
+
id_category: 4,
|
|
45
45
|
version: 1,
|
|
46
|
+
value: null,
|
|
46
47
|
retailersAvailable: [{
|
|
47
|
-
name: "
|
|
48
|
-
id:
|
|
49
|
-
}, {
|
|
50
|
-
name: "The Home Depot Onboarding",
|
|
51
|
-
id: 68
|
|
48
|
+
"name": "Walmart Marketplace",
|
|
49
|
+
"id": 75
|
|
52
50
|
}],
|
|
53
|
-
percentage:
|
|
51
|
+
percentage: 1.33
|
|
54
52
|
},
|
|
55
53
|
productToEdit: {
|
|
56
|
-
idCategory:
|
|
57
|
-
ArticleId:
|
|
54
|
+
idCategory: 4,
|
|
55
|
+
ArticleId: 121067,
|
|
58
56
|
product: [{
|
|
59
|
-
id_article:
|
|
60
|
-
upc:
|
|
61
|
-
name: "
|
|
62
|
-
timestamp: "
|
|
63
|
-
categoryName: "
|
|
64
|
-
id_category:
|
|
57
|
+
id_article: 121067,
|
|
58
|
+
upc: "2342341",
|
|
59
|
+
name: "asd",
|
|
60
|
+
timestamp: "2024-01-03T19:42:59.000Z",
|
|
61
|
+
categoryName: "Abarrotes|Abarrotes Secos|Alimentos Deshidratados",
|
|
62
|
+
id_category: 4,
|
|
65
63
|
version: 1,
|
|
64
|
+
value: null,
|
|
66
65
|
retailersAvailable: [{
|
|
67
|
-
name: "
|
|
68
|
-
id:
|
|
69
|
-
percentage:
|
|
70
|
-
}, {
|
|
71
|
-
name: "The Home Depot Onboarding",
|
|
72
|
-
id: 68,
|
|
73
|
-
percentage: 78
|
|
66
|
+
name: "Walmart Marketplace",
|
|
67
|
+
id: 75,
|
|
68
|
+
percentage: 1.33
|
|
74
69
|
}],
|
|
75
|
-
percentage:
|
|
70
|
+
percentage: 1.33
|
|
76
71
|
}]
|
|
77
72
|
},
|
|
78
73
|
location: {
|
|
@@ -87,30 +82,30 @@ ProviderProductEditionDefault.args = {
|
|
|
87
82
|
key: "24vwut"
|
|
88
83
|
},
|
|
89
84
|
user: {
|
|
90
|
-
id_user:
|
|
91
|
-
name: "
|
|
92
|
-
last_name: "
|
|
93
|
-
email: "
|
|
94
|
-
position: "Test",
|
|
95
|
-
telephone: "+
|
|
85
|
+
id_user: 28,
|
|
86
|
+
name: "Ismael",
|
|
87
|
+
last_name: "López",
|
|
88
|
+
email: "ilopez@contentoh.com",
|
|
89
|
+
position: "Test States",
|
|
90
|
+
telephone: "+523111366336",
|
|
96
91
|
country: "México",
|
|
97
|
-
id_company:
|
|
98
|
-
id_cognito: "
|
|
92
|
+
id_company: 1,
|
|
93
|
+
id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
|
|
99
94
|
birth_Date: null,
|
|
100
|
-
about_me:
|
|
101
|
-
zip_code:
|
|
102
|
-
address:
|
|
103
|
-
job:
|
|
104
|
-
id_stripe:
|
|
95
|
+
about_me: "",
|
|
96
|
+
zip_code: "",
|
|
97
|
+
address: "",
|
|
98
|
+
job: "",
|
|
99
|
+
id_stripe: "cus_KuEt6R6vwmN09f",
|
|
105
100
|
id_role: 0,
|
|
106
101
|
active: 1,
|
|
107
102
|
is_retailer: 0,
|
|
108
103
|
email_notify: 1,
|
|
109
|
-
is_user_tech:
|
|
104
|
+
is_user_tech: "ADMIN-AS",
|
|
110
105
|
membership: {
|
|
111
|
-
id:
|
|
112
|
-
start_date: "
|
|
113
|
-
end_date: "
|
|
106
|
+
id: 76,
|
|
107
|
+
start_date: "2022-01-18T17:25:35.000Z",
|
|
108
|
+
end_date: "2023-01-18T17:25:35.000Z",
|
|
114
109
|
planID: 8,
|
|
115
110
|
plan: "prod_KtlhECVSFG2iro",
|
|
116
111
|
name: "Plan Pro",
|
|
@@ -118,37 +113,23 @@ ProviderProductEditionDefault.args = {
|
|
|
118
113
|
products_limit: "5000",
|
|
119
114
|
type: "Enterprise"
|
|
120
115
|
},
|
|
121
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
116
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1704310718113"
|
|
122
117
|
},
|
|
123
118
|
company: {
|
|
124
|
-
id_company:
|
|
125
|
-
trade_name: "
|
|
126
|
-
company_name: "
|
|
127
|
-
rfc: "
|
|
128
|
-
adress: "
|
|
129
|
-
about_company:
|
|
130
|
-
telephone:
|
|
131
|
-
web_site:
|
|
132
|
-
zip_code:
|
|
119
|
+
id_company: 1,
|
|
120
|
+
trade_name: "GRUPO BRAHMA",
|
|
121
|
+
company_name: "GRUPO BRAHMA",
|
|
122
|
+
rfc: "XAXX010101000",
|
|
123
|
+
adress: "AA",
|
|
124
|
+
about_company: "",
|
|
125
|
+
telephone: "",
|
|
126
|
+
web_site: "",
|
|
127
|
+
zip_code: "",
|
|
133
128
|
email: null,
|
|
134
|
-
social_link:
|
|
129
|
+
social_link: "",
|
|
135
130
|
is_retailer: 0,
|
|
136
|
-
financedRetailers: [
|
|
137
|
-
|
|
138
|
-
name: "The Home Depot Onboarding",
|
|
139
|
-
country: "México",
|
|
140
|
-
id_region: 1,
|
|
141
|
-
active: 1,
|
|
142
|
-
flow: 1
|
|
143
|
-
}],
|
|
144
|
-
retailers: [{
|
|
145
|
-
id: 68,
|
|
146
|
-
name: "The Home Depot Onboarding",
|
|
147
|
-
country: "México",
|
|
148
|
-
id_region: 1,
|
|
149
|
-
active: 1,
|
|
150
|
-
flow: 1
|
|
151
|
-
}]
|
|
131
|
+
financedRetailers: [],
|
|
132
|
+
retailers: []
|
|
152
133
|
},
|
|
153
134
|
showSurvey: function showSurvey(v) {
|
|
154
135
|
return v && alert("se muestra");
|