contentoh-components-library 21.3.39 → 21.3.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.
- package/dist/components/atoms/ButtonV2/styles.js +1 -1
- package/dist/components/atoms/Status/styles.js +1 -1
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +18 -23
- package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +4 -4
- package/dist/components/organisms/GlobalModal/styles.js +1 -1
- package/dist/components/organisms/TableResizable/index.js +6 -10
- package/dist/components/pages/Dashboard/Dashboard.stories.js +31 -50
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +138 -52
- package/dist/components/pages/ProviderProductEdition/index.js +191 -202
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +82 -118
- package/dist/components/pages/RetailerProductEdition/index.js +1 -1
- package/package.json +1 -1
- package/src/components/atoms/ButtonV2/styles.js +1 -1
- package/src/components/atoms/Status/styles.js +4 -0
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +18 -22
- package/src/components/atoms/VerticalSideMenuMainPage/styles.js +3 -4
- package/src/components/organisms/GlobalModal/styles.js +10 -0
- package/src/components/organisms/TableResizable/index.js +0 -2
- package/src/components/pages/Dashboard/Dashboard.stories.js +31 -55
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +157 -58
- package/src/components/pages/ProviderProductEdition/index.js +119 -121
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +87 -127
- package/src/components/pages/RetailerProductEdition/index.js +1 -1
|
@@ -15,7 +15,7 @@ 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 width: fit-content;\n padding: 0px;\n cursor: ", ";\n border-radius: ", ";\n border: none;\n\n .button {\n --size: ", "px;\n width: 100%;\n min-width: min-content;\n cursor: inherit;\n display: flex;\n flex-direction: ", ";\n gap: 7px;\n align-items: center;\n justify-content: center;\n padding: ", ";\n border-radius: inherit;\n border: ", ";\n font-family: ", ", sans-serif;\n font-size: var(--size);\n line-height: 1.2;\n text-transform: none;\n\n // tipos de botones fill\n &.fill {\n &.white {\n background-color: white;\n color: #e33aa9;\n border-color: #e33aa9;\n &:hover {\n background-color: #f4f4f4;\n }\n }\n &.whiteS2 {\n background-color: white;\n color: #7b7979;\n border-color: #f0f0f0;\n &:hover {\n background-color: #f4f4f4;\n }\n }\n &.whiteS3 {\n background-color: white;\n color: #262626;\n border-color: #f0f0f0;\n &:hover {\n background-color: #f4f4f4;\n }\n }\n &.whiteS4 {\n background-color: white;\n color: #8a6caa;\n border-color: #8a6caa;\n &:hover {\n background-color: #e0e0f1;\n }\n }\n &.pink {\n background-color: #e33aa9;\n color:
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n padding: 0px;\n cursor: ", ";\n border-radius: ", ";\n border: none;\n\n .button {\n --size: ", "px;\n width: 100%;\n min-width: min-content;\n cursor: inherit;\n display: flex;\n flex-direction: ", ";\n gap: 7px;\n align-items: center;\n justify-content: center;\n padding: ", ";\n border-radius: inherit;\n border: ", ";\n font-family: ", ", sans-serif;\n font-size: var(--size);\n line-height: 1.2;\n text-transform: none;\n\n // tipos de botones fill\n &.fill {\n &.white {\n background-color: white;\n color: #e33aa9;\n border-color: #e33aa9;\n &:hover {\n background-color: #f4f4f4;\n }\n }\n &.whiteS2 {\n background-color: white;\n color: #7b7979;\n border-color: #f0f0f0;\n &:hover {\n background-color: #f4f4f4;\n }\n }\n &.whiteS3 {\n background-color: white;\n color: #262626;\n border-color: #f0f0f0;\n &:hover {\n background-color: #f4f4f4;\n }\n }\n &.whiteS4 {\n background-color: white;\n color: #8a6caa;\n border-color: #8a6caa;\n &:hover {\n background-color: #e0e0f1;\n }\n }\n &.pink {\n background-color: #e33aa9;\n color: red;\n border-color: #e33aa9;\n &:hover {\n background-color: #b42983;\n }\n }\n &.gray {\n background-color: #e8e5e5;\n color: #262626;\n border-color: #7b7979;\n .icon,\n .iconLoading {\n color: #7b7979;\n }\n &:hover {\n background-color: #d6d3d3;\n }\n }\n &.purple {\n background-color: #f7f7fc;\n color: #8a6caa;\n border-color: #8a6caa;\n &:hover {\n background-color: #e0e0f1;\n }\n }\n &.purpleS2 {\n background-color: #8a6caa;\n color: white;\n border-color: #8a6caa;\n &:hover {\n background-color: #61467e;\n }\n }\n }\n\n // tipos de botones transparent\n &.transparent {\n &:hover {\n background-color: transparent;\n }\n &.white {\n color: white;\n border-color: #e33aa9;\n &:hover {\n color: #d6d4d4;\n }\n }\n &.pink {\n color: #e33aa9;\n border-color: #e33aa9;\n &:hover {\n color: #b42983;\n }\n }\n &.gray {\n color: #262626;\n border-color: #7b7979;\n .icon,\n .iconLoading {\n color: #7b7979;\n transition: inherit;\n }\n &:hover {\n color: #7b7979;\n .icon,\n .iconLoading {\n color: #bdbbbb;\n }\n }\n }\n &.purple {\n color: #8a6caa;\n border-color: #8a6caa;\n &:hover {\n color: #714f95;\n }\n }\n &.black {\n color: #262626;\n border-color: #262626;\n &:hover {\n color: #7b7979;\n }\n }\n }\n\n .icon,\n .iconLoading {\n display: grid;\n place-items: center;\n color: inherit;\n font-size: ", ";\n }\n .iconLoading {\n font-size: ", ";\n }\n\n // mismo estilo desabilitado para cualquier tipo de boton\n &:disabled {\n background-color: #fcebf7 !important;\n color: #7b7979 !important;\n border-color: #7b7979 !important;\n\n .icon {\n color: #9e9c9c !important;\n }\n .iconLoading {\n color: #9e2674 !important;\n }\n\n &:hover {\n background-color: #fcebf7 !important;\n }\n }\n }\n"])), function (_ref) {
|
|
19
19
|
var disabled = _ref.disabled,
|
|
20
20
|
isLoading = _ref.isLoading;
|
|
21
21
|
return disabled || isLoading ? "not-allowed" : "pointer";
|
|
@@ -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 width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-CA,\n &.status-IE {\n background-color: ", ";\n }\n\n &.status-R,\n &.status-AS,\n &.status-PA {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC,\n &.status-ACA {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RC,\n &.status-RP,\n &.status-RCA {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-CA,\n &.status-IE {\n background-color: ", ";\n }\n\n &.status-R,\n &.status-AS,\n &.status-SAC,\n &.status-PA {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC,\n &.status-AAC,\n &.status-ACA {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RC,\n &.status-RP,\n &.status-RAC,\n &.status-RCA {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-FAP,\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -11,16 +11,16 @@ exports.VerticalSideMenuMainPage = void 0;
|
|
|
11
11
|
|
|
12
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
13
13
|
|
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
+
|
|
16
|
+
var _reactRouterDom = require("react-router-dom");
|
|
17
|
+
|
|
14
18
|
var _styles = require("./styles");
|
|
15
19
|
|
|
16
20
|
var _iconLogoContentoh = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconLogoContentoh.svg"));
|
|
17
21
|
|
|
18
22
|
var _iconLogo = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconLogo.svg"));
|
|
19
23
|
|
|
20
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
21
|
-
|
|
22
|
-
var _reactRouterDom = require("react-router-dom");
|
|
23
|
-
|
|
24
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
25
|
|
|
26
26
|
var VerticalSideMenuMainPage = function VerticalSideMenuMainPage(_ref) {
|
|
@@ -28,7 +28,7 @@ var VerticalSideMenuMainPage = function VerticalSideMenuMainPage(_ref) {
|
|
|
28
28
|
menuoption = _ref$menuoption === void 0 ? [] : _ref$menuoption,
|
|
29
29
|
containerdash = _ref.containerdash;
|
|
30
30
|
|
|
31
|
-
var _useState = (0, _react.useState)(),
|
|
31
|
+
var _useState = (0, _react.useState)(false),
|
|
32
32
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
33
33
|
trueBar = _useState2[0],
|
|
34
34
|
setTrueBar = _useState2[1];
|
|
@@ -55,31 +55,26 @@ var VerticalSideMenuMainPage = function VerticalSideMenuMainPage(_ref) {
|
|
|
55
55
|
var _item$suboption;
|
|
56
56
|
|
|
57
57
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
58
|
-
bar: trueBar,
|
|
59
58
|
className: "option-div",
|
|
60
59
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.NavLinkOption, {
|
|
61
60
|
to: item.path,
|
|
62
|
-
bar: trueBar,
|
|
61
|
+
bar: trueBar.toString(),
|
|
63
62
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
64
63
|
src: item.icon,
|
|
65
64
|
alt: item.title
|
|
66
|
-
}), trueBar
|
|
65
|
+
}), trueBar ? /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
67
66
|
children: item.title
|
|
68
|
-
})]
|
|
69
|
-
}), item.suboption
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
})
|
|
80
|
-
})
|
|
81
|
-
});
|
|
82
|
-
})
|
|
67
|
+
}) : null]
|
|
68
|
+
}), item === null || item === void 0 ? void 0 : (_item$suboption = item.suboption) === null || _item$suboption === void 0 ? void 0 : _item$suboption.map(function (subitem, index) {
|
|
69
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
70
|
+
className: "sub-option",
|
|
71
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.NavLinkOption, {
|
|
72
|
+
to: subitem.path,
|
|
73
|
+
className: "sub-option-link",
|
|
74
|
+
bar: trueBar.toString(),
|
|
75
|
+
children: trueBar ? subitem.title : null
|
|
76
|
+
})
|
|
77
|
+
}, index);
|
|
83
78
|
})]
|
|
84
79
|
}, index);
|
|
85
80
|
})
|
|
@@ -17,13 +17,13 @@ var _reactRouterDom = require("react-router-dom");
|
|
|
17
17
|
|
|
18
18
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
19
19
|
|
|
20
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n box-sizing: border-box;\n padding: 23px 0 70px 0;\n flex-direction: column;\n justify-content: space-between;\n overflow: none;\n width: ", "
|
|
20
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n box-sizing: border-box;\n padding: 23px 0 70px 0;\n flex-direction: column;\n justify-content: space-between;\n overflow: none;\n width: ", ";\n background: linear-gradient(180deg, #e33aa9 0%, #3b1366 100%);\n scrollbar-width: none;\n display: flex;\n text-align: center;\n transition: width 0.3s linear;\n margin: 0;\n & + * {\n margin-left: 30px;\n }\n .navbar-top {\n .logo {\n height: 22px;\n }\n .option {\n .option-div {\n width: 100%;\n white-space: nowrap;\n }\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: 50px;\n .active {\n text-decoration: none;\n background: rgba(255, 255, 255, 0.1);\n }\n .sub-option {\n display: flex;\n flex-direction: column;\n padding-left: 32px;\n height: auto;\n width: auto;\n &:last-child {\n margin-bottom: 10px;\n }\n }\n }\n }\n"])), function (_ref) {
|
|
21
21
|
var bar = _ref.bar;
|
|
22
|
-
return bar ?
|
|
22
|
+
return bar ? "240px" : "66px";
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.Container = Container;
|
|
26
|
-
var NavLinkOption = (0, _styledComponents.default)(_reactRouterDom.NavLink)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n height: 42px;\n display: flex;\n justify-content: ", ";\n align-items: center;\n font-family: sans-serif;\n font-style: normal;\n font-weight: 400;\n font-size: 17px;\n line-height: 21px;\n letter-spacing: -0.015em;\n transition: color 0.3s linear;\n color: ", ";\n text-decoration: none;\n cursor: pointer;\n padding: ", "
|
|
26
|
+
var NavLinkOption = (0, _styledComponents.default)(_reactRouterDom.NavLink)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n height: 42px;\n display: flex;\n justify-content: ", ";\n align-items: center;\n font-family: sans-serif;\n font-style: normal;\n font-weight: 400;\n font-size: 17px;\n line-height: 21px;\n letter-spacing: -0.015em;\n transition: color 0.3s linear;\n color: ", ";\n text-decoration: none;\n cursor: pointer;\n padding: ", ";\n &:hover {\n background: rgba(255, 255, 255, 0.2);\n color: #fafafa;\n text-decoration: none;\n }\n p {\n cursor: pointer;\n margin: 0%;\n pointer-events: none;\n }\n img {\n height: 22px;\n position: absolute;\n left: 22px;\n & + * {\n margin-left: 30px;\n }\n }\n &.sub-option-link {\n display: flex;\n justify-content: flex-start;\n text-decoration: none;\n position: relative;\n font-size: 13px;\n border-left: 1px solid #f0eef2;\n border-radius: 0;\n transition: color 0.3s linear;\n color: ", ";\n height: 25px;\n margin: 0;\n padding-left: 12px;\n &::before {\n border-left: 1px solid #e33aa9;\n width: 10px;\n content: \"\";\n border-radius: 50%;\n height: 10px;\n background-color: white;\n position: absolute;\n top: 13;\n left: -6px;\n }\n &.active {\n background: none !important;\n text-decoration: none;\n transition: color 0.3s linear;\n color: ", ";\n &::before {\n background-color: #e33aa9;\n }\n }\n &:hover {\n background: none;\n }\n }\n"])), function (_ref2) {
|
|
27
27
|
var bar = _ref2.bar;
|
|
28
28
|
return bar ? "flex-start" : "center";
|
|
29
29
|
}, function (_ref3) {
|
|
@@ -31,7 +31,7 @@ var NavLinkOption = (0, _styledComponents.default)(_reactRouterDom.NavLink)(_tem
|
|
|
31
31
|
return bar ? "#fafafa" : "transparent";
|
|
32
32
|
}, function (_ref4) {
|
|
33
33
|
var bar = _ref4.bar;
|
|
34
|
-
return bar ? "0
|
|
34
|
+
return bar ? "0 22px" : "0 8px";
|
|
35
35
|
}, function (_ref5) {
|
|
36
36
|
var bar = _ref5.bar;
|
|
37
37
|
return bar ? "#f0eef2" : "transparent";
|
|
@@ -21,7 +21,7 @@ var Header = _styledComponents.default.div(_templateObject2 || (_templateObject2
|
|
|
21
21
|
|
|
22
22
|
exports.Header = Header;
|
|
23
23
|
|
|
24
|
-
var MessageContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n padding: 40px 20px;\n box-sizing: border-box;\n width: 600px;\n min-height: ", ";\n background: #281f33;\n border-radius: 39px;\n"])), function (props) {
|
|
24
|
+
var MessageContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n padding: 40px 20px;\n box-sizing: border-box;\n width: 600px;\n min-height: ", ";\n background: #281f33;\n border-radius: 39px;\n & > .generic-text {\n width: 100%;\n font-family: Raleway;\n font-style: normal;\n font-weight: normal;\n font-size: 16px;\n text-align: center;\n color: #f7f7f7;\n margin: 20px 0px;\n }\n"])), function (props) {
|
|
25
25
|
return props.height ? "300px" : "190px";
|
|
26
26
|
});
|
|
27
27
|
|
|
@@ -109,10 +109,8 @@ var TableResizable = function TableResizable(props) {
|
|
|
109
109
|
className: "resizeable-table",
|
|
110
110
|
ref: tableElement,
|
|
111
111
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("thead", {
|
|
112
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
113
|
-
children:
|
|
114
|
-
columns: columns
|
|
115
|
-
}), columns === null || columns === void 0 ? void 0 : columns.map(function (_ref, i) {
|
|
112
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("tr", {
|
|
113
|
+
children: columns === null || columns === void 0 ? void 0 : columns.map(function (_ref, i) {
|
|
116
114
|
var ref = _ref.ref,
|
|
117
115
|
text = _ref.text;
|
|
118
116
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("th", {
|
|
@@ -131,12 +129,10 @@ var TableResizable = function TableResizable(props) {
|
|
|
131
129
|
className: "resize-handle ".concat(activeIndex === i ? "active" : "idle")
|
|
132
130
|
})]
|
|
133
131
|
}, i);
|
|
134
|
-
})
|
|
132
|
+
})
|
|
135
133
|
})
|
|
136
|
-
}), /*#__PURE__*/(0, _jsxRuntime.
|
|
137
|
-
children:
|
|
138
|
-
tableContent: tableContent
|
|
139
|
-
}), tableContent.map(function (row) {
|
|
134
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("tbody", {
|
|
135
|
+
children: tableContent.map(function (row) {
|
|
140
136
|
var _row$columns;
|
|
141
137
|
|
|
142
138
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("tr", {
|
|
@@ -149,7 +145,7 @@ var TableResizable = function TableResizable(props) {
|
|
|
149
145
|
}, "".concat(row.key, "-").concat(indexColumn));
|
|
150
146
|
})
|
|
151
147
|
}, row.key);
|
|
152
|
-
})
|
|
148
|
+
})
|
|
153
149
|
})]
|
|
154
150
|
})
|
|
155
151
|
})]
|
|
@@ -27,76 +27,57 @@ var DashboardDeafult = Template.bind({});
|
|
|
27
27
|
exports.DashboardDeafult = DashboardDeafult;
|
|
28
28
|
DashboardDeafult.args = {
|
|
29
29
|
user: {
|
|
30
|
-
id_user:
|
|
31
|
-
name: "
|
|
32
|
-
last_name: "
|
|
33
|
-
email: "
|
|
34
|
-
position: "
|
|
35
|
-
telephone: "
|
|
36
|
-
country: "
|
|
37
|
-
id_company:
|
|
38
|
-
id_cognito: "
|
|
30
|
+
id_user: 51,
|
|
31
|
+
name: "ADMIN PRUEBA",
|
|
32
|
+
last_name: "",
|
|
33
|
+
email: "etc@contentoh.com",
|
|
34
|
+
position: "",
|
|
35
|
+
telephone: "",
|
|
36
|
+
country: "",
|
|
37
|
+
id_company: 2,
|
|
38
|
+
id_cognito: "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
|
|
39
39
|
birth_Date: null,
|
|
40
40
|
about_me: "",
|
|
41
41
|
zip_code: "",
|
|
42
42
|
address: "",
|
|
43
43
|
job: "",
|
|
44
44
|
id_stripe: "",
|
|
45
|
-
id_role:
|
|
45
|
+
id_role: 1,
|
|
46
46
|
active: 1,
|
|
47
|
-
is_retailer:
|
|
48
|
-
email_notify:
|
|
47
|
+
is_retailer: 0,
|
|
48
|
+
email_notify: 1,
|
|
49
49
|
is_user_tech: null,
|
|
50
50
|
membership: {
|
|
51
|
-
id:
|
|
52
|
-
start_date: "
|
|
53
|
-
end_date: "
|
|
54
|
-
planID:
|
|
55
|
-
plan: "
|
|
56
|
-
name: "Plan
|
|
57
|
-
user_limit: "
|
|
58
|
-
products_limit: "
|
|
51
|
+
id: 2,
|
|
52
|
+
start_date: "2021-11-05T02:35:12.000Z",
|
|
53
|
+
end_date: "2022-11-05T02:34:49.000Z",
|
|
54
|
+
planID: 1,
|
|
55
|
+
plan: "prod_KtkvuFFLpOdP6e",
|
|
56
|
+
name: "Plan Free",
|
|
57
|
+
user_limit: "1",
|
|
58
|
+
products_limit: "3",
|
|
59
59
|
type: "PyMES"
|
|
60
60
|
},
|
|
61
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
61
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1681499918721"
|
|
62
62
|
},
|
|
63
63
|
company: {
|
|
64
|
-
id_company:
|
|
65
|
-
trade_name: "
|
|
66
|
-
company_name: "
|
|
67
|
-
rfc:
|
|
68
|
-
adress:
|
|
64
|
+
id_company: 2,
|
|
65
|
+
trade_name: "Content-oh!",
|
|
66
|
+
company_name: "Content-oh!",
|
|
67
|
+
rfc: null,
|
|
68
|
+
adress: null,
|
|
69
69
|
about_company: null,
|
|
70
70
|
telephone: null,
|
|
71
71
|
web_site: null,
|
|
72
72
|
zip_code: null,
|
|
73
73
|
email: null,
|
|
74
74
|
social_link: null,
|
|
75
|
-
is_retailer:
|
|
76
|
-
financedRetailers: [{
|
|
77
|
-
id: 68,
|
|
78
|
-
name: "The Home Depot Merchants",
|
|
79
|
-
country: "México",
|
|
80
|
-
id_region: 1,
|
|
81
|
-
active: 1
|
|
82
|
-
}],
|
|
75
|
+
is_retailer: 0,
|
|
83
76
|
retailers: [{
|
|
84
|
-
id:
|
|
85
|
-
name:
|
|
86
|
-
country:
|
|
87
|
-
}, {
|
|
88
|
-
id: 60,
|
|
89
|
-
name: "The Home Depot Resizing",
|
|
90
|
-
country: "México"
|
|
91
|
-
}, {
|
|
92
|
-
id: 61,
|
|
93
|
-
name: "Home Depot TAB",
|
|
94
|
-
country: "México"
|
|
95
|
-
}, {
|
|
96
|
-
id: 68,
|
|
97
|
-
name: "The Home Depot Merchants",
|
|
98
|
-
country: "México"
|
|
77
|
+
id: null,
|
|
78
|
+
name: null,
|
|
79
|
+
country: null
|
|
99
80
|
}]
|
|
100
81
|
},
|
|
101
|
-
jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
82
|
+
jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhNmM0ZDNkNi0yNGE0LTQxZDQtYWQwZi1kMDg3NDM4YWI1YjYiLCJjb2duaXRvOmdyb3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ZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.eTJuJXGjCEOcOzJreoJQ3GA_3a7-7IR5sojvBwyEp360Z_Nd7LNDAA605jkRTx2c39zk9o3hkgzEZsK6RYwFrB-jOqlFA7E3dvkCaDC0fh6V1tAY3nKWvFE13VHMj08WAPmQOtr2glpzv0vcCNilOmbw8-D7E7zb2K6R63YdVyC1mSVPvlqJaecBVmiWu5OoHDRFjfdkx-tnxQacm3YeuqYPHho4hy18xU4NG4SmeqXQmuBD8lGMZuZ5Kkr9tkjgEQzjaY5wUik6MWDc43xG5pMhXsuluUnwxPWo3V4tc7MKsml6T6solr31JlL5qsVc4trqWMkLG2bbtUzRRxUUXg",
|
|
35
35
|
articleId: 238,
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
orderId: 15160,
|
|
40
|
+
article_status: "RAC",
|
|
41
|
+
datasheet_status: "AAC",
|
|
42
|
+
description_status: "RAC",
|
|
43
|
+
images_status: "AAC",
|
|
44
|
+
prio: "none",
|
|
45
|
+
version: 7,
|
|
46
|
+
brand: null,
|
|
47
|
+
article: {
|
|
48
|
+
category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
|
|
49
|
+
company_name: "Demo",
|
|
50
|
+
id_company: 924,
|
|
51
|
+
country: "México",
|
|
52
|
+
id_category: "2366",
|
|
53
|
+
id_article: 39290,
|
|
54
|
+
name: "MOLDURA MARCO MODER 11X4X244 CM",
|
|
55
|
+
upc: "100030"
|
|
56
|
+
},
|
|
57
|
+
retailers: [{
|
|
58
|
+
id: 58,
|
|
59
|
+
name: "The Home Depot Golden"
|
|
60
|
+
}, {
|
|
61
|
+
id: 68,
|
|
62
|
+
name: "The Home Depot Merchants"
|
|
63
|
+
}],
|
|
64
|
+
services: {
|
|
65
|
+
datasheets: 1,
|
|
66
|
+
descriptions: 1,
|
|
67
|
+
images: 1
|
|
68
|
+
},
|
|
69
|
+
statusByRetailer: {
|
|
70
|
+
58: {
|
|
71
|
+
datasheet: "AAC",
|
|
72
|
+
description: "RAC",
|
|
73
|
+
images: "AAC"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
retailersWithService: ["58"],
|
|
77
|
+
id_article: 39290,
|
|
47
78
|
retailersAvailable: [{
|
|
79
|
+
id: 58,
|
|
80
|
+
name: "The Home Depot Golden"
|
|
81
|
+
}, {
|
|
48
82
|
id: 68,
|
|
49
83
|
name: "The Home Depot Merchants"
|
|
50
84
|
}]
|
|
51
85
|
},
|
|
52
86
|
productToEdit: {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
product:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
87
|
+
ArticleId: 39290,
|
|
88
|
+
idCategory: "2366",
|
|
89
|
+
product: {
|
|
90
|
+
orderId: 15160,
|
|
91
|
+
article_status: "RAC",
|
|
92
|
+
datasheet_status: "AAC",
|
|
93
|
+
description_status: "RAC",
|
|
94
|
+
images_status: "AAC",
|
|
95
|
+
prio: "none",
|
|
96
|
+
version: 7,
|
|
97
|
+
brand: null,
|
|
98
|
+
article: {
|
|
99
|
+
category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
|
|
100
|
+
company_name: "Demo",
|
|
101
|
+
id_company: 924,
|
|
102
|
+
country: "México",
|
|
103
|
+
id_category: "2366",
|
|
104
|
+
id_article: 39290,
|
|
105
|
+
name: "MOLDURA MARCO MODER 11X4X244 CM",
|
|
106
|
+
upc: "100030"
|
|
107
|
+
},
|
|
108
|
+
retailers: [{
|
|
109
|
+
id: 58,
|
|
110
|
+
name: "The Home Depot Golden"
|
|
111
|
+
}, {
|
|
112
|
+
id: 68,
|
|
113
|
+
name: "The Home Depot Merchants"
|
|
114
|
+
}],
|
|
115
|
+
services: {
|
|
116
|
+
datasheets: 1,
|
|
117
|
+
descriptions: 1,
|
|
118
|
+
images: 1
|
|
119
|
+
},
|
|
120
|
+
statusByRetailer: {
|
|
121
|
+
58: {
|
|
122
|
+
datasheet: "AAC",
|
|
123
|
+
description: "RAC",
|
|
124
|
+
images: "AAC"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
retailersWithService: ["58"],
|
|
128
|
+
id_article: 39290,
|
|
64
129
|
retailersAvailable: [{
|
|
130
|
+
id: 58,
|
|
131
|
+
name: "The Home Depot Golden"
|
|
132
|
+
}, {
|
|
65
133
|
id: 68,
|
|
66
134
|
name: "The Home Depot Merchants"
|
|
67
135
|
}]
|
|
68
|
-
}
|
|
136
|
+
}
|
|
69
137
|
},
|
|
70
138
|
location: {
|
|
71
139
|
pathname: "/EditProducts",
|
|
@@ -77,38 +145,52 @@ ProviderProductEditionDefault.args = {
|
|
|
77
145
|
key: "24vwut"
|
|
78
146
|
},
|
|
79
147
|
user: {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
type: "PyMES"
|
|
148
|
+
orderId: 15160,
|
|
149
|
+
article_status: "RAC",
|
|
150
|
+
datasheet_status: "AAC",
|
|
151
|
+
description_status: "RAC",
|
|
152
|
+
images_status: "AAC",
|
|
153
|
+
prio: "none",
|
|
154
|
+
version: 7,
|
|
155
|
+
brand: null,
|
|
156
|
+
article: {
|
|
157
|
+
category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
|
|
158
|
+
company_name: "Demo",
|
|
159
|
+
id_company: 924,
|
|
160
|
+
country: "México",
|
|
161
|
+
id_category: "2366",
|
|
162
|
+
id_article: 39290,
|
|
163
|
+
name: "MOLDURA MARCO MODER 11X4X244 CM",
|
|
164
|
+
upc: "100030"
|
|
165
|
+
},
|
|
166
|
+
retailers: [{
|
|
167
|
+
id: 58,
|
|
168
|
+
name: "The Home Depot Golden"
|
|
169
|
+
}, {
|
|
170
|
+
id: 68,
|
|
171
|
+
name: "The Home Depot Merchants"
|
|
172
|
+
}],
|
|
173
|
+
services: {
|
|
174
|
+
datasheets: 1,
|
|
175
|
+
descriptions: 1,
|
|
176
|
+
images: 1
|
|
110
177
|
},
|
|
111
|
-
|
|
178
|
+
statusByRetailer: {
|
|
179
|
+
58: {
|
|
180
|
+
datasheet: "AAC",
|
|
181
|
+
description: "RAC",
|
|
182
|
+
images: "AAC"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
retailersWithService: ["58"],
|
|
186
|
+
id_article: 39290,
|
|
187
|
+
retailersAvailable: [{
|
|
188
|
+
id: 58,
|
|
189
|
+
name: "The Home Depot Golden"
|
|
190
|
+
}, {
|
|
191
|
+
id: 68,
|
|
192
|
+
name: "The Home Depot Merchants"
|
|
193
|
+
}]
|
|
112
194
|
},
|
|
113
195
|
company: {
|
|
114
196
|
id_company: 817,
|
|
@@ -146,6 +228,10 @@ ProviderProductEditionDefault.args = {
|
|
|
146
228
|
id: 68,
|
|
147
229
|
name: "The Home Depot Merchants",
|
|
148
230
|
country: "México"
|
|
231
|
+
}, {
|
|
232
|
+
id: 58,
|
|
233
|
+
name: "The Home Depot Golden",
|
|
234
|
+
country: "México"
|
|
149
235
|
}]
|
|
150
236
|
},
|
|
151
237
|
showSurvey: function showSurvey(v) {
|