contentoh-components-library 21.1.29 → 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.
Files changed (158) hide show
  1. package/dist/components/atoms/Commentary/styles.js +1 -1
  2. package/dist/components/atoms/GeneralInput/styles.js +3 -3
  3. package/dist/components/atoms/InputFormatter/styles.js +1 -1
  4. package/dist/components/atoms/SliderToolTip/index.js +14 -9
  5. package/dist/components/atoms/SliderToolTip/styles.js +1 -1
  6. package/dist/components/atoms/StatusTag/index.js +2 -17
  7. package/dist/components/atoms/StatusTag/styles.js +1 -1
  8. package/dist/components/atoms/ValidationPanel/index.js +4 -3
  9. package/dist/components/molecules/AvatarAndValidation/index.js +4 -0
  10. package/dist/components/organisms/FullProductNameHeader/index.js +6 -2
  11. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +62 -74
  12. package/dist/components/pages/ProviderProductEdition/index.js +433 -323
  13. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +107 -71
  14. package/dist/components/pages/RetailerProductEdition/index.js +314 -194
  15. package/dist/global-files/data.js +10 -9
  16. package/package.json +1 -1
  17. package/src/components/atoms/Commentary/styles.js +2 -2
  18. package/src/components/atoms/GeneralInput/styles.js +5 -5
  19. package/src/components/atoms/InputFormatter/styles.js +3 -3
  20. package/src/components/atoms/SliderToolTip/index.js +20 -13
  21. package/src/components/atoms/SliderToolTip/styles.js +21 -25
  22. package/src/components/atoms/StatusTag/index.js +2 -12
  23. package/src/components/atoms/StatusTag/styles.js +11 -11
  24. package/src/components/atoms/ValidationPanel/index.js +5 -4
  25. package/src/components/molecules/AvatarAndValidation/index.js +5 -1
  26. package/src/components/organisms/FullProductNameHeader/index.js +6 -2
  27. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +63 -79
  28. package/src/components/pages/ProviderProductEdition/index.js +236 -168
  29. package/src/components/pages/ProviderProductEdition/styles.js +1 -1
  30. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +108 -70
  31. package/src/components/pages/RetailerProductEdition/index.js +238 -166
  32. package/src/global-files/data.js +10 -9
  33. package/dist/assets/fonts/avenirnext/AvenirNextLTPro-Bold.otf +0 -0
  34. package/dist/assets/fonts/avenirnext/AvenirNextLTPro-It.otf +0 -0
  35. package/dist/assets/fonts/avenirnext/AvenirNextLTPro-Regular.otf +0 -0
  36. package/dist/assets/fonts/lato/Lato-Bold.ttf +0 -0
  37. package/dist/assets/fonts/lato/Lato-Italic.ttf +0 -0
  38. package/dist/assets/fonts/lato/Lato-Light.ttf +0 -0
  39. package/dist/assets/fonts/lato/Lato-Regular.ttf +0 -0
  40. package/dist/assets/fonts/lato/Lato-Thin.ttf +0 -0
  41. package/dist/assets/fonts/lato/OFL.txt +0 -93
  42. package/dist/assets/fonts/raleway/Raleway-Black.ttf +0 -0
  43. package/dist/assets/fonts/raleway/Raleway-Bold.ttf +0 -0
  44. package/dist/assets/fonts/raleway/Raleway-ExtraBold.ttf +0 -0
  45. package/dist/assets/fonts/raleway/Raleway-Italic.ttf +0 -0
  46. package/dist/assets/fonts/raleway/Raleway-Medium.ttf +0 -0
  47. package/dist/assets/fonts/raleway/Raleway-Regular.ttf +0 -0
  48. package/dist/assets/fonts/raleway/Raleway-SemiBold.ttf +0 -0
  49. package/dist/assets/images/activedFilter/removeFilter.svg +0 -3
  50. package/dist/assets/images/arrow/arrowIcon.svg +0 -3
  51. package/dist/assets/images/arrow/polygon.svg +0 -3
  52. package/dist/assets/images/asignationOptions/availableIcon.svg +0 -3
  53. package/dist/assets/images/asignationOptions/removeAsigned.svg +0 -4
  54. package/dist/assets/images/asignationOptions/requestToProvider.svg +0 -3
  55. package/dist/assets/images/asignationOptions/requestToTeam.svg +0 -3
  56. package/dist/assets/images/card/masterCardIcon.svg +0 -5
  57. package/dist/assets/images/carouselImagesLogin/login2.svg +0 -117
  58. package/dist/assets/images/carouselImagesLogin/login3.svg +0 -147
  59. package/dist/assets/images/carouselImagesLogin/loginImage.svg +0 -301
  60. package/dist/assets/images/checkBox/checked.svg +0 -3
  61. package/dist/assets/images/checkBox/unchecked.svg +0 -3
  62. package/dist/assets/images/componentAssigned/assignedImage1.svg +0 -9
  63. package/dist/assets/images/componentAssigned/assignedImage2.svg +0 -9
  64. package/dist/assets/images/componentAssigned/clock.svg +0 -4
  65. package/dist/assets/images/componentAssigned/flag.svg +0 -3
  66. package/dist/assets/images/defaultImages/defaultProductImage.png +0 -0
  67. package/dist/assets/images/defaultImages/defaultProfileImage.svg +0 -13
  68. package/dist/assets/images/defaultImages/defaultUpdate.png +0 -0
  69. package/dist/assets/images/dropDownButton/dropDownArrowButton.svg +0 -3
  70. package/dist/assets/images/editField/editField.svg +0 -3
  71. package/dist/assets/images/editField/showPassword.png +0 -0
  72. package/dist/assets/images/flags/highPriority.svg +0 -3
  73. package/dist/assets/images/flags/lowPriority.svg +0 -3
  74. package/dist/assets/images/flags/mediumPriority.svg +0 -3
  75. package/dist/assets/images/flags/noPriority.svg +0 -3
  76. package/dist/assets/images/generalButton/acceptIcon.svg +0 -3
  77. package/dist/assets/images/generalButton/closeIcon.svg +0 -4
  78. package/dist/assets/images/generalButton/deleteIcon.svg +0 -13
  79. package/dist/assets/images/generalButton/deleteIconHover.svg +0 -13
  80. package/dist/assets/images/generalButton/downloadIcon.svg +0 -3
  81. package/dist/assets/images/generalButton/gridLayout.svg +0 -3
  82. package/dist/assets/images/generalButton/nullIcon.svg +0 -3
  83. package/dist/assets/images/generalButton/openModal.svg +0 -3
  84. package/dist/assets/images/generalButton/rejectIcon.svg +0 -3
  85. package/dist/assets/images/generalButton/rowLayout.svg +0 -3
  86. package/dist/assets/images/generalButton/saveIcon.svg +0 -3
  87. package/dist/assets/images/generalButton/saveIconHover.svg +0 -3
  88. package/dist/assets/images/generalImage/assigned.svg +0 -14
  89. package/dist/assets/images/generalImage/bags.svg +0 -25
  90. package/dist/assets/images/generalImage/clock.svg +0 -4
  91. package/dist/assets/images/generalImage/flag.svg +0 -3
  92. package/dist/assets/images/genericModal/closeWhite.svg +0 -3
  93. package/dist/assets/images/genericModal/errorModal.svg +0 -3
  94. package/dist/assets/images/genericModal/genericModalCheck.svg +0 -3
  95. package/dist/assets/images/genericModal/genericModalClose.svg +0 -3
  96. package/dist/assets/images/genericModal/genericModalDown.svg +0 -3
  97. package/dist/assets/images/genericModal/genericModalUp.svg +0 -3
  98. package/dist/assets/images/genericModal/genericModalWarning.svg +0 -12
  99. package/dist/assets/images/genericModal/yellowAlert.svg +0 -12
  100. package/dist/assets/images/logo/logoLogin.svg +0 -15
  101. package/dist/assets/images/menuNotification/menuNotificationComment.svg +0 -3
  102. package/dist/assets/images/menuNotification/menuNotificationProduct.svg +0 -3
  103. package/dist/assets/images/menuProfile/logOut.svg +0 -3
  104. package/dist/assets/images/menuProfile/myAccount.svg +0 -3
  105. package/dist/assets/images/menuProfile/settings.svg +0 -3
  106. package/dist/assets/images/modalsSVGs/attributesSent.svg +0 -208
  107. package/dist/assets/images/modalsSVGs/descriptionSent.svg +0 -237
  108. package/dist/assets/images/modalsSVGs/providerSent.svg +0 -445
  109. package/dist/assets/images/modalsSVGs/uploadingImages.svg +0 -148
  110. package/dist/assets/images/productImage/openModal.svg +0 -3
  111. package/dist/assets/images/productNotification/productNotification.svg +0 -3
  112. package/dist/assets/images/profileHeader/profilePicture.svg +0 -9
  113. package/dist/assets/images/providerAndCadena/Cadena.svg +0 -188
  114. package/dist/assets/images/providerAndCadena/LoginContentoh.svg +0 -15
  115. package/dist/assets/images/providerAndCadena/Proveedor.svg +0 -231
  116. package/dist/assets/images/sideMenuButton/contenoh.svg +0 -5
  117. package/dist/assets/images/sideMenuButton/dashboard.svg +0 -5
  118. package/dist/assets/images/sideMenuButton/products.svg +0 -10
  119. package/dist/assets/images/sideMenuButton/providers.svg +0 -10
  120. package/dist/assets/images/sideMenuButton/tasks.svg +0 -3
  121. package/dist/assets/images/sliderToolTip/infoIcon.svg +0 -4
  122. package/dist/assets/images/sliderToolTip/slide1.svg +0 -5
  123. package/dist/assets/images/sliderToolTip/slide2.svg +0 -9
  124. package/dist/assets/images/sliderToolTip/slide21.svg +0 -9
  125. package/dist/assets/images/sliderToolTip/slide22.svg +0 -9
  126. package/dist/assets/images/sliderToolTip/slide23.svg +0 -9
  127. package/dist/assets/images/sliderToolTip/slide3.svg +0 -9
  128. package/dist/assets/images/sliderToolTip/slide4.svg +0 -9
  129. package/dist/assets/images/sliderToolTip/slide5.svg +0 -40
  130. package/dist/assets/images/verticalSideMenuMainPage/closeMenu.svg +0 -4
  131. package/dist/assets/images/verticalSideMenuMainPage/iconFAQS.svg +0 -12
  132. package/dist/assets/images/verticalSideMenuMainPage/iconGroup.svg +0 -3
  133. package/dist/assets/images/verticalSideMenuMainPage/iconLogo.svg +0 -12
  134. package/dist/assets/images/verticalSideMenuMainPage/iconLogoContentoh.svg +0 -15
  135. package/dist/assets/images/verticalSideMenuMainPage/iconProduct.svg +0 -3
  136. package/dist/assets/images/verticalSideMenuMainPage/iconSpeedometer.svg +0 -12
  137. package/dist/assets/images/verticalSideMenuMainPage/iconTask.svg +0 -10
  138. package/dist/assets/images/verticalSideMenuMainPage/openMenu.svg +0 -4
  139. package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +0 -36
  140. package/dist/components/atoms/ListCommercialRetailers/index.js +0 -64
  141. package/dist/components/atoms/ListCommercialRetailers/styles.js +0 -20
  142. package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +0 -37
  143. package/dist/components/atoms/MenuCommercialRetailers/index.js +0 -25
  144. package/dist/components/atoms/MenuCommercialRetailers/styles.js +0 -20
  145. package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +0 -28
  146. package/dist/components/atoms/MenuProductImage/index.js +0 -88
  147. package/dist/components/atoms/MenuProductImage/styles.js +0 -20
  148. package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +0 -25
  149. package/dist/components/molecules/ApproveRejetPanel/index.js +0 -49
  150. package/dist/components/molecules/ApproveRejetPanel/styles.js +0 -18
  151. package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +0 -28
  152. package/dist/components/molecules/SignInLoginCreationApp/index.js +0 -270
  153. package/dist/components/molecules/SignInLoginCreationApp/styles.js +0 -20
  154. package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +0 -37
  155. package/dist/components/pages/RegistrationLoginFirstStep/index.js +0 -269
  156. package/dist/components/pages/RegistrationLoginFirstStep/styles.js +0 -20
  157. package/dist/global-files/fonts.css +0 -45
  158. 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("RF")) return "RF";
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("RC")) return "RC";
287
- if (lookupString.includes("UNASSIGNED")) return "IN_PROGRESS";
288
- if (lookupString.includes("IN_PROGRESS")) return "IN_PROGRESS";
289
- if (lookupString.includes("QF")) return "QF";
290
- if (lookupString.includes("AF")) return "AF";
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("AC")) return "AC";
294
- if (lookupString.includes("RECEIVED")) return "RECEIVED";
293
+ if (lookupString.includes("ACA")) return "ACA";
294
+ if (lookupString.includes("R")) return "R";
295
295
  if (lookupString.includes("NA")) return "NA";
296
- return new Error("Status not found");
296
+ console.log("Status not found");
297
+ return "NA";
297
298
  };
298
299
 
299
300
  exports.getNewStatus = getNewStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.1.29",
3
+ "version": "21.1.32",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -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.s4};
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.s4};
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.s4};
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: 11px;
58
- color: ${GlobalColors.s4};
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.s4};
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.s4};
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 className="container-slider">
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={slidefront[index].slide} />
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>{slidefront[index].title}</span>
74
- <p>{slidefront[index].description}</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
- {slidefront[index].title !== undefined ? (
93
- <span>{slidefront[index].title}</span>
89
+ {item.title !== undefined ? (
90
+ <span>{item.title}</span>
94
91
  ) : null}
95
- <p>{slidefront[index].description}</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
- left: calc(100% - 738px);
41
+ left: calc(100% - 175px);
41
42
  }
42
43
  &.bottom-slide {
43
- top: calc(100%);
44
- left: calc(-280px / 2);
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-As,
20
- &.status-P,
21
- &.status-IN_PROGRESS,
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-Pr,
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-AC,
35
- &.status-AF {
31
+ &.status-ACA,
32
+ &.status-AC {
36
33
  background-color: ${GlobalColors.finished};
37
34
  }
38
35
 
39
36
  &.status-RA,
40
- &.status-RF,
37
+ &.status-RC,
41
38
  &.status-RP,
42
- &.status-RC {
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
  `;
@@ -9,9 +9,10 @@ export const ValidationPanel = ({
9
9
  setShowValidationPanel,
10
10
  approve,
11
11
  reject,
12
+ approveAll,
13
+ rejectAll,
12
14
  showApproveRejectAll,
13
15
  }) => {
14
- console.log(showApproveRejectAll);
15
16
  return (
16
17
  <Container id={id}>
17
18
  <button
@@ -36,7 +37,7 @@ export const ValidationPanel = ({
36
37
  <>
37
38
  <button
38
39
  onClick={() => {
39
- approve && approve();
40
+ approveAll && approveAll();
40
41
  }}
41
42
  className="validation-option"
42
43
  >
@@ -45,7 +46,7 @@ export const ValidationPanel = ({
45
46
  </button>
46
47
  <button
47
48
  onClick={() => {
48
- reject && reject();
49
+ rejectAll && rejectAll();
49
50
  }}
50
51
  className="validation-option"
51
52
  >
@@ -56,4 +57,4 @@ export const ValidationPanel = ({
56
57
  )}
57
58
  </Container>
58
59
  );
59
- };
60
+ };
@@ -15,6 +15,8 @@ export const AvatarAndValidation = ({
15
15
  showValidationButtons,
16
16
  approve,
17
17
  reject,
18
+ approveAll,
19
+ rejectAll,
18
20
  showApproveRejectAll,
19
21
  }) => {
20
22
  const [showValidationPanel, setShowValidationPanel] = useState(false);
@@ -63,9 +65,11 @@ export const AvatarAndValidation = ({
63
65
  setShowValidationPanel={setShowValidationPanel}
64
66
  approve={approve}
65
67
  reject={reject}
68
+ approveAll={approveAll}
69
+ rejectAll={rejectAll}
66
70
  showApproveRejectAll={showApproveRejectAll}
67
71
  />
68
72
  )}
69
73
  </Container>
70
74
  );
71
- };
75
+ };
@@ -13,6 +13,8 @@ export const FullProductNameHeader = ({
13
13
  showValidationButtons,
14
14
  approve,
15
15
  reject,
16
+ approveAll,
17
+ rejectAll,
16
18
  servicesData,
17
19
  showApproveRejectAll,
18
20
  }) => {
@@ -24,7 +26,7 @@ export const FullProductNameHeader = ({
24
26
  const element = [];
25
27
  servicesData.forEach((sd) => {
26
28
  if (sd.id_retailer === rt.id) {
27
- element.push(sd.status ? sd.status : "RECEIVED");
29
+ element.push(sd.status ? sd.status : "R");
28
30
  } else element.push("NA");
29
31
  rt["services"] = element;
30
32
  });
@@ -73,8 +75,10 @@ export const FullProductNameHeader = ({
73
75
  showApproveRejectAll={showApproveRejectAll}
74
76
  approve={approve}
75
77
  reject={reject}
78
+ approveAll={approveAll}
79
+ rejectAll={rejectAll}
76
80
  />
77
81
  </div>
78
82
  </Container>
79
83
  );
80
- };
84
+ };
@@ -16,24 +16,24 @@ ProviderProductEditionDefault.args = {
16
16
  Imágenes: false,
17
17
  },
18
18
  token:
19
- "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI5ZmM5YThiNC1mYWViLTQ3ZDUtYjEyYS05NzcxNThmNWUzMWUiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NjA4NzIzOSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2NTYwOTA4MzksImlhdCI6MTY1NjA4NzIzOSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.P4HmwNMwF6r9BuH-9onpbU7_iiXwSw1TOEux9seeVwHiEJytl6BOcHkKJEnUZ2dfarK2CRMiYVLVycbT3O4MCVyFb8hWnos_eTBAVIOD9kxd7FMLOL_v5JP6Vw4XxWx2xsut9Jvcw0M-_QipxvAKdHtNcC-pOYs0W2IvyXf0JbYgkthZwRwIOUYhqF2yMtKFFzAX2kZO5_QMNeTLamFoexDU_0heba7sToE_oLyovhPTTRobXQcss8mmiilEfnnGZ_YNlwf-0myAMMJkllESl0tff1YQpHLn1sUN6sA-DotQvYhaGbxNebgQ_sMfPNy8cEFOIrNLP_QMjEC_RCu_tw",
20
- articleId: 238,
21
- category: 846,
22
- version: 2,
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: 64,
25
- status: "AP",
24
+ orderId: 89,
25
+ status: "AA",
26
26
  datasheet_status: "AP",
27
27
  prio: "none",
28
- version: 7,
29
- description_status: "AP",
28
+ version: 3,
29
+ description_status: "AA",
30
30
  images_status: "AP",
31
- brand: "1",
31
+ brand: "123",
32
32
  retailerOrder: 0,
33
33
  missing: {
34
- datasheet: null,
35
- descriptions: null,
36
- images: null,
34
+ datasheet: 17,
35
+ descriptions: 4,
36
+ images: 3,
37
37
  },
38
38
  services: {
39
39
  datasheets: 1,
@@ -41,64 +41,56 @@ ProviderProductEditionDefault.args = {
41
41
  images: 1,
42
42
  },
43
43
  article: {
44
- category: "ABARROTES|BOTANAS, GOLOSINAS Y CHOCOLATES|BOTANAS",
44
+ category: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
45
45
  company_name: "COMPANY DEV",
46
46
  country: "México",
47
- id_category: "41",
47
+ id_category: "4",
48
48
  id_datasheet_especialist: 54,
49
49
  id_datasheet_facilitator: 52,
50
50
  id_description_especialist: 54,
51
51
  id_description_facilitator: 52,
52
52
  id_images_especialist: 55,
53
53
  id_images_facilitator: 53,
54
- id_order: 64,
55
- id_article: 35707,
54
+ id_order: 89,
55
+ id_article: 55157,
56
56
  id_auditor: 37,
57
- name: "chetos",
58
- upc: "1010101010",
57
+ name: "testing",
58
+ upc: "807526",
59
59
  },
60
60
  retailers: [
61
61
  {
62
62
  id: 3,
63
63
  name: "Sam´s Club",
64
64
  },
65
- {
66
- id: 8,
67
- name: "Fragua",
68
- },
69
65
  ],
70
66
  retailersAvailable: [
71
67
  {
72
68
  id: 3,
73
69
  name: "Sam´s Club",
74
70
  },
75
- {
76
- id: 8,
77
- name: "Fragua",
78
- },
79
71
  ],
80
- categoryName: "ABARROTES|BOTANAS, GOLOSINAS Y CHOCOLATES|BOTANAS",
81
- upc: "1010101010",
82
- id_article: 35707,
83
- id_order: 64,
72
+ categoryName: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
73
+ upc: "807526",
74
+ id_article: 55157,
75
+ id_order: 89,
84
76
  },
85
77
  productToEdit: {
86
- ArticleId: 35707,
87
- idCategory: "41",
78
+ ArticleId: 55157,
79
+ idCategory: "4",
88
80
  product: {
89
- orderId: 64,
90
- status: "AP",
81
+ orderId: 89,
82
+ status: "AA",
91
83
  datasheet_status: "AP",
92
84
  prio: "none",
93
- version: 7,
94
- description_status: "AP",
85
+ version: 3,
86
+ description_status: "AA",
95
87
  images_status: "AP",
96
- brand: "1",
88
+ brand: "123",
97
89
  retailerOrder: 0,
98
90
  missing: {
99
- datasheet: null,
100
- descriptions: null,
101
- images: null,
91
+ datasheet: 17,
92
+ descriptions: 4,
93
+ images: 3,
102
94
  },
103
95
  services: {
104
96
  datasheets: 1,
@@ -106,83 +98,75 @@ ProviderProductEditionDefault.args = {
106
98
  images: 1,
107
99
  },
108
100
  article: {
109
- category: "ABARROTES|BOTANAS, GOLOSINAS Y CHOCOLATES|BOTANAS",
101
+ category: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
110
102
  company_name: "COMPANY DEV",
111
103
  country: "México",
112
- id_category: "41",
104
+ id_category: "4",
113
105
  id_datasheet_especialist: 54,
114
106
  id_datasheet_facilitator: 52,
115
107
  id_description_especialist: 54,
116
108
  id_description_facilitator: 52,
117
109
  id_images_especialist: 55,
118
110
  id_images_facilitator: 53,
119
- id_order: 64,
120
- id_article: 35707,
111
+ id_order: 89,
112
+ id_article: 55157,
121
113
  id_auditor: 37,
122
- name: "chetos",
123
- upc: "1010101010",
114
+ name: "testing",
115
+ upc: "807526",
124
116
  },
125
117
  retailers: [
126
118
  {
127
119
  id: 3,
128
120
  name: "Sam´s Club",
129
121
  },
130
- {
131
- id: 8,
132
- name: "Fragua",
133
- },
134
122
  ],
135
123
  retailersAvailable: [
136
124
  {
137
125
  id: 3,
138
126
  name: "Sam´s Club",
139
127
  },
140
- {
141
- id: 8,
142
- name: "Fragua",
143
- },
144
128
  ],
145
- categoryName: "ABARROTES|BOTANAS, GOLOSINAS Y CHOCOLATES|BOTANAS",
146
- upc: "1010101010",
147
- id_article: 35707,
148
- id_order: 64,
129
+ categoryName: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
130
+ upc: "807526",
131
+ id_article: 55157,
132
+ id_order: 89,
149
133
  },
150
134
  },
151
135
  location: {
152
- product: { articleId: 109485, versionId: 3 },
136
+ product: { articleId: 55157, versionId: 3 },
153
137
  state: { origin: "Contentoh" },
154
138
  },
155
139
  user: {
156
- id_user: 1236,
157
- name: "THD",
158
- last_name: "Proveedor",
159
- email: "thd@allfreemail.net",
160
- position: "Prod test",
161
- telephone: "+523111111111",
140
+ id_user: 28,
141
+ name: "Proveedor",
142
+ last_name: "Colgate",
143
+ email: "ilopez@contentoh.com",
144
+ position: "Prueba Admin",
145
+ telephone: "+523111366336",
162
146
  country: "México",
163
- id_company: 816,
164
- id_cognito: "d660ccca-f906-4970-892c-6d152e832e5d",
147
+ id_company: 1,
148
+ id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
165
149
  birth_Date: null,
166
150
  about_me: null,
167
151
  zip_code: null,
168
152
  address: null,
169
153
  job: null,
170
- id_stripe: null,
154
+ id_stripe: "cus_KuEt6R6vwmN09f",
171
155
  id_role: 0,
172
156
  active: 1,
173
- is_retailer: 1,
157
+ is_retailer: 0,
174
158
  email_notify: 0,
175
159
  membership: {
176
- id: 797,
177
- start_date: "2022-06-19T04:18:39.000Z",
178
- end_date: "2023-06-19T04:18:39.000Z",
179
- planID: 6,
180
- plan: "prod_KvGd6YSTJyR3AP",
181
- name: "Plan Small",
182
- user_limit: "10",
183
- products_limit: "1000",
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",
184
168
  type: "Enterprise",
185
169
  },
186
- src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1656087239674",
170
+ src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1656607722122",
187
171
  },
188
- };
172
+ };