contentoh-components-library 21.1.31 → 21.1.32
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/Commentary/styles.js +1 -1
- package/dist/components/atoms/GeneralInput/styles.js +3 -3
- package/dist/components/atoms/InputFormatter/styles.js +1 -1
- package/dist/components/atoms/SliderToolTip/index.js +14 -9
- package/dist/components/atoms/SliderToolTip/styles.js +1 -1
- package/dist/components/atoms/StatusTag/index.js +2 -17
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/organisms/FullProductNameHeader/index.js +1 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +103 -105
- package/dist/components/pages/ProviderProductEdition/index.js +349 -323
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +83 -38
- package/dist/components/pages/RetailerProductEdition/index.js +207 -196
- package/dist/global-files/data.js +10 -9
- package/package.json +1 -1
- package/src/components/atoms/Commentary/styles.js +2 -2
- package/src/components/atoms/GeneralInput/styles.js +5 -5
- package/src/components/atoms/InputFormatter/styles.js +3 -3
- package/src/components/atoms/SliderToolTip/index.js +20 -13
- package/src/components/atoms/SliderToolTip/styles.js +20 -24
- package/src/components/atoms/StatusTag/index.js +2 -12
- package/src/components/atoms/StatusTag/styles.js +11 -11
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +103 -117
- package/src/components/pages/ProviderProductEdition/index.js +165 -171
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +82 -33
- package/src/components/pages/RetailerProductEdition/index.js +137 -165
- package/src/global-files/data.js +10 -9
- package/dist/assets/fonts/avenirnext/AvenirNextLTPro-Bold.otf +0 -0
- package/dist/assets/fonts/avenirnext/AvenirNextLTPro-It.otf +0 -0
- package/dist/assets/fonts/avenirnext/AvenirNextLTPro-Regular.otf +0 -0
- package/dist/assets/fonts/lato/Lato-Bold.ttf +0 -0
- package/dist/assets/fonts/lato/Lato-Italic.ttf +0 -0
- package/dist/assets/fonts/lato/Lato-Light.ttf +0 -0
- package/dist/assets/fonts/lato/Lato-Regular.ttf +0 -0
- package/dist/assets/fonts/lato/Lato-Thin.ttf +0 -0
- package/dist/assets/fonts/lato/OFL.txt +0 -93
- package/dist/assets/fonts/raleway/Raleway-Black.ttf +0 -0
- package/dist/assets/fonts/raleway/Raleway-Bold.ttf +0 -0
- package/dist/assets/fonts/raleway/Raleway-ExtraBold.ttf +0 -0
- package/dist/assets/fonts/raleway/Raleway-Italic.ttf +0 -0
- package/dist/assets/fonts/raleway/Raleway-Medium.ttf +0 -0
- package/dist/assets/fonts/raleway/Raleway-Regular.ttf +0 -0
- package/dist/assets/fonts/raleway/Raleway-SemiBold.ttf +0 -0
- package/dist/assets/images/activedFilter/removeFilter.svg +0 -3
- package/dist/assets/images/arrow/arrowIcon.svg +0 -3
- package/dist/assets/images/arrow/polygon.svg +0 -3
- package/dist/assets/images/asignationOptions/availableIcon.svg +0 -3
- package/dist/assets/images/asignationOptions/removeAsigned.svg +0 -4
- package/dist/assets/images/asignationOptions/requestToProvider.svg +0 -3
- package/dist/assets/images/asignationOptions/requestToTeam.svg +0 -3
- package/dist/assets/images/card/masterCardIcon.svg +0 -5
- package/dist/assets/images/carouselImagesLogin/login2.svg +0 -117
- package/dist/assets/images/carouselImagesLogin/login3.svg +0 -147
- package/dist/assets/images/carouselImagesLogin/loginImage.svg +0 -301
- package/dist/assets/images/checkBox/checked.svg +0 -3
- package/dist/assets/images/checkBox/unchecked.svg +0 -3
- package/dist/assets/images/componentAssigned/assignedImage1.svg +0 -9
- package/dist/assets/images/componentAssigned/assignedImage2.svg +0 -9
- package/dist/assets/images/componentAssigned/clock.svg +0 -4
- package/dist/assets/images/componentAssigned/flag.svg +0 -3
- package/dist/assets/images/defaultImages/defaultProductImage.png +0 -0
- package/dist/assets/images/defaultImages/defaultProfileImage.svg +0 -13
- package/dist/assets/images/defaultImages/defaultUpdate.png +0 -0
- package/dist/assets/images/dropDownButton/dropDownArrowButton.svg +0 -3
- package/dist/assets/images/editField/editField.svg +0 -3
- package/dist/assets/images/editField/showPassword.png +0 -0
- package/dist/assets/images/flags/highPriority.svg +0 -3
- package/dist/assets/images/flags/lowPriority.svg +0 -3
- package/dist/assets/images/flags/mediumPriority.svg +0 -3
- package/dist/assets/images/flags/noPriority.svg +0 -3
- package/dist/assets/images/generalButton/acceptIcon.svg +0 -3
- package/dist/assets/images/generalButton/closeIcon.svg +0 -4
- package/dist/assets/images/generalButton/deleteIcon.svg +0 -13
- package/dist/assets/images/generalButton/deleteIconHover.svg +0 -13
- package/dist/assets/images/generalButton/downloadIcon.svg +0 -3
- package/dist/assets/images/generalButton/gridLayout.svg +0 -3
- package/dist/assets/images/generalButton/nullIcon.svg +0 -3
- package/dist/assets/images/generalButton/openModal.svg +0 -3
- package/dist/assets/images/generalButton/rejectIcon.svg +0 -3
- package/dist/assets/images/generalButton/rowLayout.svg +0 -3
- package/dist/assets/images/generalButton/saveIcon.svg +0 -3
- package/dist/assets/images/generalButton/saveIconHover.svg +0 -3
- package/dist/assets/images/generalImage/assigned.svg +0 -14
- package/dist/assets/images/generalImage/bags.svg +0 -25
- package/dist/assets/images/generalImage/clock.svg +0 -4
- package/dist/assets/images/generalImage/flag.svg +0 -3
- package/dist/assets/images/genericModal/closeWhite.svg +0 -3
- package/dist/assets/images/genericModal/errorModal.svg +0 -3
- package/dist/assets/images/genericModal/genericModalCheck.svg +0 -3
- package/dist/assets/images/genericModal/genericModalClose.svg +0 -3
- package/dist/assets/images/genericModal/genericModalDown.svg +0 -3
- package/dist/assets/images/genericModal/genericModalUp.svg +0 -3
- package/dist/assets/images/genericModal/genericModalWarning.svg +0 -12
- package/dist/assets/images/genericModal/yellowAlert.svg +0 -12
- package/dist/assets/images/logo/logoLogin.svg +0 -15
- package/dist/assets/images/menuNotification/menuNotificationComment.svg +0 -3
- package/dist/assets/images/menuNotification/menuNotificationProduct.svg +0 -3
- package/dist/assets/images/menuProfile/logOut.svg +0 -3
- package/dist/assets/images/menuProfile/myAccount.svg +0 -3
- package/dist/assets/images/menuProfile/settings.svg +0 -3
- package/dist/assets/images/modalsSVGs/attributesSent.svg +0 -208
- package/dist/assets/images/modalsSVGs/descriptionSent.svg +0 -237
- package/dist/assets/images/modalsSVGs/providerSent.svg +0 -445
- package/dist/assets/images/modalsSVGs/uploadingImages.svg +0 -148
- package/dist/assets/images/productImage/openModal.svg +0 -3
- package/dist/assets/images/productNotification/productNotification.svg +0 -3
- package/dist/assets/images/profileHeader/profilePicture.svg +0 -9
- package/dist/assets/images/providerAndCadena/Cadena.svg +0 -188
- package/dist/assets/images/providerAndCadena/LoginContentoh.svg +0 -15
- package/dist/assets/images/providerAndCadena/Proveedor.svg +0 -231
- package/dist/assets/images/sideMenuButton/contenoh.svg +0 -5
- package/dist/assets/images/sideMenuButton/dashboard.svg +0 -5
- package/dist/assets/images/sideMenuButton/products.svg +0 -10
- package/dist/assets/images/sideMenuButton/providers.svg +0 -10
- package/dist/assets/images/sideMenuButton/tasks.svg +0 -3
- package/dist/assets/images/sliderToolTip/infoIcon.svg +0 -4
- package/dist/assets/images/sliderToolTip/slide1.svg +0 -5
- package/dist/assets/images/sliderToolTip/slide2.svg +0 -9
- package/dist/assets/images/sliderToolTip/slide21.svg +0 -9
- package/dist/assets/images/sliderToolTip/slide22.svg +0 -9
- package/dist/assets/images/sliderToolTip/slide23.svg +0 -9
- package/dist/assets/images/sliderToolTip/slide3.svg +0 -9
- package/dist/assets/images/sliderToolTip/slide4.svg +0 -9
- package/dist/assets/images/sliderToolTip/slide5.svg +0 -40
- package/dist/assets/images/verticalSideMenuMainPage/closeMenu.svg +0 -4
- package/dist/assets/images/verticalSideMenuMainPage/iconFAQS.svg +0 -12
- package/dist/assets/images/verticalSideMenuMainPage/iconGroup.svg +0 -3
- package/dist/assets/images/verticalSideMenuMainPage/iconLogo.svg +0 -12
- package/dist/assets/images/verticalSideMenuMainPage/iconLogoContentoh.svg +0 -15
- package/dist/assets/images/verticalSideMenuMainPage/iconProduct.svg +0 -3
- package/dist/assets/images/verticalSideMenuMainPage/iconSpeedometer.svg +0 -12
- package/dist/assets/images/verticalSideMenuMainPage/iconTask.svg +0 -10
- package/dist/assets/images/verticalSideMenuMainPage/openMenu.svg +0 -4
- package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +0 -36
- package/dist/components/atoms/ListCommercialRetailers/index.js +0 -64
- package/dist/components/atoms/ListCommercialRetailers/styles.js +0 -20
- package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +0 -37
- package/dist/components/atoms/MenuCommercialRetailers/index.js +0 -25
- package/dist/components/atoms/MenuCommercialRetailers/styles.js +0 -20
- package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +0 -28
- package/dist/components/atoms/MenuProductImage/index.js +0 -88
- package/dist/components/atoms/MenuProductImage/styles.js +0 -20
- package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +0 -25
- package/dist/components/molecules/ApproveRejetPanel/index.js +0 -49
- package/dist/components/molecules/ApproveRejetPanel/styles.js +0 -18
- package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +0 -28
- package/dist/components/molecules/SignInLoginCreationApp/index.js +0 -270
- package/dist/components/molecules/SignInLoginCreationApp/styles.js +0 -20
- package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +0 -37
- package/dist/components/pages/RegistrationLoginFirstStep/index.js +0 -269
- package/dist/components/pages/RegistrationLoginFirstStep/styles.js +0 -20
- package/dist/global-files/fonts.css +0 -45
- package/dist/global-files/global-styles.css +0 -40
|
@@ -280,20 +280,21 @@ var getNewStatus = function getNewStatus(statusArray) {
|
|
|
280
280
|
statusArray.forEach(function (element) {
|
|
281
281
|
return lookupString += element + "/";
|
|
282
282
|
});
|
|
283
|
-
if (lookupString.includes("
|
|
283
|
+
if (lookupString.includes("RC")) return "RC";
|
|
284
284
|
if (lookupString.includes("RA")) return "RA";
|
|
285
285
|
if (lookupString.includes("RP")) return "RP";
|
|
286
|
-
if (lookupString.includes("
|
|
287
|
-
if (lookupString.includes("UNASSIGNED")) return "
|
|
288
|
-
if (lookupString.includes("
|
|
289
|
-
if (lookupString.includes("
|
|
290
|
-
if (lookupString.includes("
|
|
286
|
+
if (lookupString.includes("RCA")) return "RCA";
|
|
287
|
+
if (lookupString.includes("UNASSIGNED")) return "CA";
|
|
288
|
+
if (lookupString.includes("CA")) return "CA";
|
|
289
|
+
if (lookupString.includes("IE")) return "IE";
|
|
290
|
+
if (lookupString.includes("AC")) return "AC";
|
|
291
291
|
if (lookupString.includes("AA")) return "AA";
|
|
292
292
|
if (lookupString.includes("AP")) return "AP";
|
|
293
|
-
if (lookupString.includes("
|
|
294
|
-
if (lookupString.includes("
|
|
293
|
+
if (lookupString.includes("ACA")) return "ACA";
|
|
294
|
+
if (lookupString.includes("R")) return "R";
|
|
295
295
|
if (lookupString.includes("NA")) return "NA";
|
|
296
|
-
|
|
296
|
+
console.log("Status not found");
|
|
297
|
+
return "NA";
|
|
297
298
|
};
|
|
298
299
|
|
|
299
300
|
exports.getNewStatus = getNewStatus;
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ export const Container = styled.div`
|
|
|
10
10
|
font-family: ${FontFamily.AvenirNext};
|
|
11
11
|
font-size: 12px;
|
|
12
12
|
line-height: 15px;
|
|
13
|
-
color: ${GlobalColors.
|
|
13
|
+
color: ${GlobalColors.deep_gray};
|
|
14
14
|
text-decoration: ${({ reviewed }) => (reviewed ? "line-through" : "none")};
|
|
15
15
|
}
|
|
16
|
-
`;
|
|
16
|
+
`;
|
|
@@ -19,7 +19,7 @@ export const Container = styled.div`
|
|
|
19
19
|
${({ isRequired }) => (isRequired ? "red" : `${GlobalColors.s2}`)};
|
|
20
20
|
|
|
21
21
|
font-family: ${FontFamily.AvenirNext};
|
|
22
|
-
color: ${GlobalColors.
|
|
22
|
+
color: ${GlobalColors.deep_gray};
|
|
23
23
|
font-weight: normal;
|
|
24
24
|
font-size: 12px;
|
|
25
25
|
line-height: 15px;
|
|
@@ -41,7 +41,7 @@ export const Container = styled.div`
|
|
|
41
41
|
width: 100%;
|
|
42
42
|
cursor: pointer;
|
|
43
43
|
font-family: ${FontFamily.AvenirNext};
|
|
44
|
-
color: ${GlobalColors.
|
|
44
|
+
color: ${GlobalColors.deep_gray};
|
|
45
45
|
font-size: 12px;
|
|
46
46
|
line-height: 21px;
|
|
47
47
|
padding: 10px;
|
|
@@ -54,7 +54,7 @@ export const Container = styled.div`
|
|
|
54
54
|
|
|
55
55
|
p {
|
|
56
56
|
font-family: ${FontFamily.Raleway};
|
|
57
|
-
font-size:
|
|
58
|
-
color: ${GlobalColors.
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
color: ${GlobalColors.deep_gray};
|
|
59
59
|
}
|
|
60
|
-
`;
|
|
60
|
+
`;
|
|
@@ -26,7 +26,7 @@ export const Container = styled.div`
|
|
|
26
26
|
.ql-container {
|
|
27
27
|
border: none;
|
|
28
28
|
font-family: ${FontFamily.AvenirNext};
|
|
29
|
-
color: ${GlobalColors.
|
|
29
|
+
color: ${GlobalColors.deep_gray};
|
|
30
30
|
strong {
|
|
31
31
|
font-family: ${FontFamily.Raleway_900};
|
|
32
32
|
}
|
|
@@ -35,7 +35,7 @@ export const Container = styled.div`
|
|
|
35
35
|
.description-limit {
|
|
36
36
|
font-size: 12px;
|
|
37
37
|
font-family: ${FontFamily.AvenirNext};
|
|
38
|
-
color: ${GlobalColors.
|
|
38
|
+
color: ${GlobalColors.deep_gray};
|
|
39
39
|
text-align: right;
|
|
40
40
|
}
|
|
41
|
-
`;
|
|
41
|
+
`;
|
|
@@ -8,6 +8,7 @@ export const SliderToolTip = ({
|
|
|
8
8
|
slidePosition,
|
|
9
9
|
}) => {
|
|
10
10
|
const [showMenu, setShowMenu] = useState(false);
|
|
11
|
+
|
|
11
12
|
const closeMenu = (e) => {
|
|
12
13
|
if (!e.target.closest("#div-slider") && showMenu) {
|
|
13
14
|
document.removeEventListener("click", closeMenu, false);
|
|
@@ -36,7 +37,7 @@ export const SliderToolTip = ({
|
|
|
36
37
|
|
|
37
38
|
return (
|
|
38
39
|
<>
|
|
39
|
-
<Container
|
|
40
|
+
<Container>
|
|
40
41
|
<img
|
|
41
42
|
src={infoIcon}
|
|
42
43
|
alt="info icon"
|
|
@@ -49,11 +50,7 @@ export const SliderToolTip = ({
|
|
|
49
50
|
}}
|
|
50
51
|
/>
|
|
51
52
|
{showMenu && (
|
|
52
|
-
<Slider
|
|
53
|
-
id="div-slider"
|
|
54
|
-
className={slidePosition}
|
|
55
|
-
length={slidefront.length}
|
|
56
|
-
>
|
|
53
|
+
<Slider id="div-slider" className={slidePosition}>
|
|
57
54
|
<ul className="slider">
|
|
58
55
|
{slidefront.map((item, index) => (
|
|
59
56
|
<li
|
|
@@ -65,13 +62,13 @@ export const SliderToolTip = ({
|
|
|
65
62
|
}
|
|
66
63
|
>
|
|
67
64
|
<div>
|
|
68
|
-
<img src={
|
|
65
|
+
<img src={item.slide} />
|
|
69
66
|
</div>
|
|
70
67
|
{`slide${index + 1}` === `slide${slidefront.length}` ? (
|
|
71
68
|
<>
|
|
72
69
|
<div className="lema-end">
|
|
73
|
-
<span>{
|
|
74
|
-
<p>{
|
|
70
|
+
<span>{item.title}</span>
|
|
71
|
+
<p>{item.description}</p>
|
|
75
72
|
</div>
|
|
76
73
|
<button
|
|
77
74
|
id="button-slide"
|
|
@@ -89,10 +86,10 @@ export const SliderToolTip = ({
|
|
|
89
86
|
</>
|
|
90
87
|
) : (
|
|
91
88
|
<>
|
|
92
|
-
{
|
|
93
|
-
<span>{
|
|
89
|
+
{item.title !== undefined ? (
|
|
90
|
+
<span>{item.title}</span>
|
|
94
91
|
) : null}
|
|
95
|
-
<p>{
|
|
92
|
+
<p>{item.description}</p>
|
|
96
93
|
</>
|
|
97
94
|
)}
|
|
98
95
|
</li>
|
|
@@ -102,10 +99,20 @@ export const SliderToolTip = ({
|
|
|
102
99
|
{slidefront.map((item, index) => (
|
|
103
100
|
<li>
|
|
104
101
|
<a
|
|
105
|
-
href={`#slide${index + 1}`}
|
|
106
102
|
id={`slidea${index + 1}`}
|
|
107
103
|
onClick={(e) => {
|
|
108
104
|
color(`slidea${index + 1}`);
|
|
105
|
+
for (let i = 1; i <= slidefront.length; i++) {
|
|
106
|
+
if (index + 1 === i) {
|
|
107
|
+
document.getElementById(
|
|
108
|
+
`slide${index + 1}`
|
|
109
|
+
).style.opacity = 1;
|
|
110
|
+
} else if (index + 1 > i || index + 1 < i) {
|
|
111
|
+
document.getElementById(
|
|
112
|
+
`slide${i}`
|
|
113
|
+
).style.opacity = 0;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
109
116
|
}}
|
|
110
117
|
></a>
|
|
111
118
|
</li>
|
|
@@ -35,16 +35,14 @@ export const Slider = styled.div`
|
|
|
35
35
|
position: absolute;
|
|
36
36
|
cursor: default;
|
|
37
37
|
z-index: 2;
|
|
38
|
+
width: 310px;
|
|
38
39
|
&.top-slide {
|
|
39
40
|
top: calc(100% - 370px);
|
|
40
41
|
left: calc(100% - 175px);
|
|
41
42
|
}
|
|
42
43
|
&.bottom-slide {
|
|
43
|
-
top:
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
#div-slider {
|
|
47
|
-
width: 310px;
|
|
44
|
+
top: 100%;
|
|
45
|
+
right: calc(100% + -70px);
|
|
48
46
|
}
|
|
49
47
|
ul,
|
|
50
48
|
li {
|
|
@@ -58,22 +56,6 @@ export const Slider = styled.div`
|
|
|
58
56
|
width: 100%;
|
|
59
57
|
height: 270px;
|
|
60
58
|
margin: 0;
|
|
61
|
-
span {
|
|
62
|
-
font-family: "Avenir Next";
|
|
63
|
-
font-style: normal;
|
|
64
|
-
font-weight: 500;
|
|
65
|
-
font-size: 15px;
|
|
66
|
-
line-height: 15px;
|
|
67
|
-
text-align: center;
|
|
68
|
-
letter-spacing: -0.015em;
|
|
69
|
-
color: #fafafa;
|
|
70
|
-
display: flex;
|
|
71
|
-
justify-content: center;
|
|
72
|
-
background-color: #281f33;
|
|
73
|
-
& + * {
|
|
74
|
-
margin-top: 10px;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
59
|
li {
|
|
78
60
|
position: absolute;
|
|
79
61
|
left: 0px;
|
|
@@ -118,6 +100,22 @@ export const Slider = styled.div`
|
|
|
118
100
|
margin-top: 13px;
|
|
119
101
|
}
|
|
120
102
|
}
|
|
103
|
+
span {
|
|
104
|
+
font-family: "Avenir Next";
|
|
105
|
+
font-style: normal;
|
|
106
|
+
font-weight: 500;
|
|
107
|
+
font-size: 15px;
|
|
108
|
+
line-height: 15px;
|
|
109
|
+
text-align: center;
|
|
110
|
+
letter-spacing: -0.015em;
|
|
111
|
+
color: #fafafa;
|
|
112
|
+
display: flex;
|
|
113
|
+
justify-content: center;
|
|
114
|
+
background-color: #281f33;
|
|
115
|
+
& + * {
|
|
116
|
+
margin-top: 10px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
121
119
|
}
|
|
122
120
|
.end-div {
|
|
123
121
|
div {
|
|
@@ -169,9 +167,6 @@ export const Slider = styled.div`
|
|
|
169
167
|
li:first-child {
|
|
170
168
|
opacity: 1;
|
|
171
169
|
}
|
|
172
|
-
li:target {
|
|
173
|
-
opacity: 1;
|
|
174
|
-
}
|
|
175
170
|
.menu {
|
|
176
171
|
margin: 0;
|
|
177
172
|
text-align: center;
|
|
@@ -188,6 +183,7 @@ export const Slider = styled.div`
|
|
|
188
183
|
width: 10px;
|
|
189
184
|
height: 10px;
|
|
190
185
|
border-radius: 100%;
|
|
186
|
+
cursor: pointer;
|
|
191
187
|
}
|
|
192
188
|
#slidea1 {
|
|
193
189
|
background-color: #e33aa9;
|
|
@@ -5,20 +5,10 @@ export const StatusTag = ({ statusType, ovalForm }) => {
|
|
|
5
5
|
switch (status) {
|
|
6
6
|
case "COMPLETED":
|
|
7
7
|
return "C";
|
|
8
|
-
case "RECEPTION":
|
|
9
|
-
return "Pr";
|
|
10
8
|
case "NULL":
|
|
11
|
-
return "
|
|
12
|
-
case "RECEIVED":
|
|
13
|
-
return "Rc";
|
|
14
|
-
case "IN_PROGRESS":
|
|
15
|
-
return "P";
|
|
16
|
-
case "ASSIGNED":
|
|
17
|
-
return "As";
|
|
9
|
+
return "--";
|
|
18
10
|
case "APPROVED":
|
|
19
11
|
return "Ap";
|
|
20
|
-
case "VALIDATING":
|
|
21
|
-
return "V";
|
|
22
12
|
case "PAID_OUT":
|
|
23
13
|
return "Po";
|
|
24
14
|
default:
|
|
@@ -27,7 +17,7 @@ export const StatusTag = ({ statusType, ovalForm }) => {
|
|
|
27
17
|
};
|
|
28
18
|
return (
|
|
29
19
|
<Container
|
|
30
|
-
className={`status-${getShortStatus(statusType)} ${
|
|
20
|
+
className={`status-${getShortStatus(statusType?.replace(/\/.*/, ""))} ${
|
|
31
21
|
ovalForm && "oval-form"
|
|
32
22
|
}`}
|
|
33
23
|
>
|
|
@@ -16,30 +16,27 @@ export const Container = styled.div`
|
|
|
16
16
|
line-height: 20px;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
&.status-
|
|
20
|
-
&.status-
|
|
21
|
-
&.status-
|
|
22
|
-
&.status-QF {
|
|
19
|
+
&.status-AS,
|
|
20
|
+
&.status-CA,
|
|
21
|
+
&.status-IE {
|
|
23
22
|
background-color: ${GlobalColors.in_progress};
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
&.status-
|
|
27
|
-
&.status-Rr,
|
|
28
|
-
&.status-Rc {
|
|
25
|
+
&.status-R {
|
|
29
26
|
background-color: ${GlobalColors.reception};
|
|
30
27
|
}
|
|
31
28
|
|
|
32
29
|
&.status-AA,
|
|
33
30
|
&.status-AP,
|
|
34
|
-
&.status-
|
|
35
|
-
&.status-
|
|
31
|
+
&.status-ACA,
|
|
32
|
+
&.status-AC {
|
|
36
33
|
background-color: ${GlobalColors.finished};
|
|
37
34
|
}
|
|
38
35
|
|
|
39
36
|
&.status-RA,
|
|
40
|
-
&.status-
|
|
37
|
+
&.status-RC,
|
|
41
38
|
&.status-RP,
|
|
42
|
-
&.status-
|
|
39
|
+
&.status-RCA {
|
|
43
40
|
background-color: ${GlobalColors.rejected_status};
|
|
44
41
|
}
|
|
45
42
|
|
|
@@ -73,4 +70,7 @@ export const Container = styled.div`
|
|
|
73
70
|
&.oval-form {
|
|
74
71
|
border-radius: 10px;
|
|
75
72
|
}
|
|
73
|
+
&.delThis {
|
|
74
|
+
color: red;
|
|
75
|
+
}
|
|
76
76
|
`;
|
|
@@ -26,7 +26,7 @@ export const FullProductNameHeader = ({
|
|
|
26
26
|
const element = [];
|
|
27
27
|
servicesData.forEach((sd) => {
|
|
28
28
|
if (sd.id_retailer === rt.id) {
|
|
29
|
-
element.push(sd.status ? sd.status : "
|
|
29
|
+
element.push(sd.status ? sd.status : "R");
|
|
30
30
|
} else element.push("NA");
|
|
31
31
|
rt["services"] = element;
|
|
32
32
|
});
|
|
@@ -16,171 +16,157 @@ ProviderProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
20
|
-
articleId:
|
|
21
|
-
category:
|
|
22
|
-
version:
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIwOWQ1MDUzMy05NjA3LTQ5YTQtODRkNC0zMDk1OWNmNmY4NjUiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NjYwNzcyMSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2NTY2MTEzMjEsImlhdCI6MTY1NjYwNzcyMSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.Xung-7vGoB-YllkTIOn0DrNRd-GBD4lbQemGdMxRPFbE-nvvGXQsTWLstJ-8yQ4zoyGUoOIoGsRwuI127kUkg4hhel6pXDINfxdWsdI1QXk6SzGulkcmhD8gUFnXMc8rvBkMizNYHF9d_7dUsJRhjAxQWmVew8m7W8dTPrAht_xjfk1ZmTQVD4O6IVwLJEX3FncXj1tAXgknksUGj-vGDen5HkuVEv8jJlKFiz72cV07H66jk3-BReu0e_gpq2RRz8wGu18HOaPzjWvzmiYcm5FqGKOTAWM5JSgWCOm9r5ixh5m_pM3EjKbWpVb3joELRQ2DVkPFp2fzGmS028-9XQ",
|
|
20
|
+
articleId: 55157,
|
|
21
|
+
category: 4,
|
|
22
|
+
version: 3,
|
|
23
23
|
productSelected: {
|
|
24
|
-
orderId:
|
|
25
|
-
|
|
24
|
+
orderId: 89,
|
|
25
|
+
status: "AA",
|
|
26
26
|
datasheet_status: "AP",
|
|
27
|
-
description_status: "AP",
|
|
28
|
-
images_status: "AP",
|
|
29
27
|
prio: "none",
|
|
30
|
-
version:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
upc: "145582",
|
|
28
|
+
version: 3,
|
|
29
|
+
description_status: "AA",
|
|
30
|
+
images_status: "AP",
|
|
31
|
+
brand: "123",
|
|
32
|
+
retailerOrder: 0,
|
|
33
|
+
missing: {
|
|
34
|
+
datasheet: 17,
|
|
35
|
+
descriptions: 4,
|
|
36
|
+
images: 3,
|
|
40
37
|
},
|
|
41
|
-
retailers: [
|
|
42
|
-
{
|
|
43
|
-
id: 58,
|
|
44
|
-
name: "The Home Depot Golden",
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
id: 59,
|
|
48
|
-
name: "The Home Depot Platinum",
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
id: 60,
|
|
52
|
-
name: "The Home Depot Resizing",
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
id: 61,
|
|
56
|
-
name: "Home Depot TAB",
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
38
|
services: {
|
|
60
39
|
datasheets: 1,
|
|
61
40
|
descriptions: 1,
|
|
62
41
|
images: 1,
|
|
63
42
|
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
43
|
+
article: {
|
|
44
|
+
category: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
|
|
45
|
+
company_name: "COMPANY DEV",
|
|
46
|
+
country: "México",
|
|
47
|
+
id_category: "4",
|
|
48
|
+
id_datasheet_especialist: 54,
|
|
49
|
+
id_datasheet_facilitator: 52,
|
|
50
|
+
id_description_especialist: 54,
|
|
51
|
+
id_description_facilitator: 52,
|
|
52
|
+
id_images_especialist: 55,
|
|
53
|
+
id_images_facilitator: 53,
|
|
54
|
+
id_order: 89,
|
|
55
|
+
id_article: 55157,
|
|
56
|
+
id_auditor: 37,
|
|
57
|
+
name: "testing",
|
|
58
|
+
upc: "807526",
|
|
59
|
+
},
|
|
60
|
+
retailers: [
|
|
74
61
|
{
|
|
75
|
-
id:
|
|
76
|
-
name: "
|
|
62
|
+
id: 3,
|
|
63
|
+
name: "Sam´s Club",
|
|
77
64
|
},
|
|
65
|
+
],
|
|
66
|
+
retailersAvailable: [
|
|
78
67
|
{
|
|
79
|
-
id:
|
|
80
|
-
name: "
|
|
68
|
+
id: 3,
|
|
69
|
+
name: "Sam´s Club",
|
|
81
70
|
},
|
|
82
71
|
],
|
|
72
|
+
categoryName: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
|
|
73
|
+
upc: "807526",
|
|
74
|
+
id_article: 55157,
|
|
75
|
+
id_order: 89,
|
|
83
76
|
},
|
|
84
77
|
productToEdit: {
|
|
85
|
-
ArticleId:
|
|
86
|
-
idCategory: "
|
|
78
|
+
ArticleId: 55157,
|
|
79
|
+
idCategory: "4",
|
|
87
80
|
product: {
|
|
88
|
-
orderId:
|
|
89
|
-
|
|
81
|
+
orderId: 89,
|
|
82
|
+
status: "AA",
|
|
90
83
|
datasheet_status: "AP",
|
|
91
|
-
description_status: "AP",
|
|
92
|
-
images_status: "AP",
|
|
93
84
|
prio: "none",
|
|
94
|
-
version:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
upc: "145582",
|
|
85
|
+
version: 3,
|
|
86
|
+
description_status: "AA",
|
|
87
|
+
images_status: "AP",
|
|
88
|
+
brand: "123",
|
|
89
|
+
retailerOrder: 0,
|
|
90
|
+
missing: {
|
|
91
|
+
datasheet: 17,
|
|
92
|
+
descriptions: 4,
|
|
93
|
+
images: 3,
|
|
104
94
|
},
|
|
105
|
-
retailers: [
|
|
106
|
-
{
|
|
107
|
-
id: 58,
|
|
108
|
-
name: "The Home Depot Golden",
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
id: 59,
|
|
112
|
-
name: "The Home Depot Platinum",
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
id: 60,
|
|
116
|
-
name: "The Home Depot Resizing",
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
id: 61,
|
|
120
|
-
name: "Home Depot TAB",
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
95
|
services: {
|
|
124
96
|
datasheets: 1,
|
|
125
97
|
descriptions: 1,
|
|
126
98
|
images: 1,
|
|
127
99
|
},
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
100
|
+
article: {
|
|
101
|
+
category: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
|
|
102
|
+
company_name: "COMPANY DEV",
|
|
103
|
+
country: "México",
|
|
104
|
+
id_category: "4",
|
|
105
|
+
id_datasheet_especialist: 54,
|
|
106
|
+
id_datasheet_facilitator: 52,
|
|
107
|
+
id_description_especialist: 54,
|
|
108
|
+
id_description_facilitator: 52,
|
|
109
|
+
id_images_especialist: 55,
|
|
110
|
+
id_images_facilitator: 53,
|
|
111
|
+
id_order: 89,
|
|
112
|
+
id_article: 55157,
|
|
113
|
+
id_auditor: 37,
|
|
114
|
+
name: "testing",
|
|
115
|
+
upc: "807526",
|
|
116
|
+
},
|
|
117
|
+
retailers: [
|
|
138
118
|
{
|
|
139
|
-
id:
|
|
140
|
-
name: "
|
|
119
|
+
id: 3,
|
|
120
|
+
name: "Sam´s Club",
|
|
141
121
|
},
|
|
122
|
+
],
|
|
123
|
+
retailersAvailable: [
|
|
142
124
|
{
|
|
143
|
-
id:
|
|
144
|
-
name: "
|
|
125
|
+
id: 3,
|
|
126
|
+
name: "Sam´s Club",
|
|
145
127
|
},
|
|
146
128
|
],
|
|
129
|
+
categoryName: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
|
|
130
|
+
upc: "807526",
|
|
131
|
+
id_article: 55157,
|
|
132
|
+
id_order: 89,
|
|
147
133
|
},
|
|
148
134
|
},
|
|
149
135
|
location: {
|
|
150
|
-
product: { articleId:
|
|
136
|
+
product: { articleId: 55157, versionId: 3 },
|
|
151
137
|
state: { origin: "Contentoh" },
|
|
152
138
|
},
|
|
153
139
|
user: {
|
|
154
|
-
id_user:
|
|
155
|
-
name: "
|
|
156
|
-
last_name: "
|
|
157
|
-
email: "
|
|
158
|
-
position: "Admin",
|
|
140
|
+
id_user: 28,
|
|
141
|
+
name: "Proveedor",
|
|
142
|
+
last_name: "Colgate",
|
|
143
|
+
email: "ilopez@contentoh.com",
|
|
144
|
+
position: "Prueba Admin",
|
|
159
145
|
telephone: "+523111366336",
|
|
160
146
|
country: "México",
|
|
161
|
-
id_company:
|
|
162
|
-
id_cognito: "
|
|
147
|
+
id_company: 1,
|
|
148
|
+
id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
|
|
163
149
|
birth_Date: null,
|
|
164
150
|
about_me: null,
|
|
165
151
|
zip_code: null,
|
|
166
152
|
address: null,
|
|
167
153
|
job: null,
|
|
168
|
-
id_stripe: "",
|
|
154
|
+
id_stripe: "cus_KuEt6R6vwmN09f",
|
|
169
155
|
id_role: 0,
|
|
170
156
|
active: 1,
|
|
171
157
|
is_retailer: 0,
|
|
172
|
-
email_notify:
|
|
158
|
+
email_notify: 0,
|
|
173
159
|
membership: {
|
|
174
|
-
id:
|
|
175
|
-
start_date: "
|
|
176
|
-
end_date: "
|
|
177
|
-
planID:
|
|
178
|
-
plan: "
|
|
179
|
-
name: "Plan
|
|
180
|
-
user_limit: "
|
|
181
|
-
products_limit: "
|
|
160
|
+
id: 38,
|
|
161
|
+
start_date: "2022-01-18T17:25:35.000Z",
|
|
162
|
+
end_date: "2023-01-18T17:25:35.000Z",
|
|
163
|
+
planID: 8,
|
|
164
|
+
plan: "prod_KtlhECVSFG2iro",
|
|
165
|
+
name: "Plan Pro",
|
|
166
|
+
user_limit: "20",
|
|
167
|
+
products_limit: "5000",
|
|
182
168
|
type: "Enterprise",
|
|
183
169
|
},
|
|
184
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
170
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1656607722122",
|
|
185
171
|
},
|
|
186
172
|
};
|