contentoh-components-library 21.1.42 → 21.1.44

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.
@@ -280,21 +280,20 @@ var getNewStatus = function getNewStatus(statusArray) {
280
280
  statusArray.forEach(function (element) {
281
281
  return lookupString += element + "/";
282
282
  });
283
- if (lookupString.includes("RCA")) return "RCA";
284
- if (lookupString.includes("RC")) return "RC";
283
+ if (lookupString.includes("RF")) return "RF";
285
284
  if (lookupString.includes("RA")) return "RA";
286
285
  if (lookupString.includes("RP")) return "RP";
287
- if (lookupString.includes("ACA")) return "ACA";
288
- if (lookupString.includes("UNASSIGNED")) return "CA";
289
- if (lookupString.includes("CA")) return "CA";
290
- if (lookupString.includes("IE")) return "IE";
291
- if (lookupString.includes("AC")) return "AC";
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";
292
291
  if (lookupString.includes("AA")) return "AA";
293
292
  if (lookupString.includes("AP")) return "AP";
294
- if (lookupString.includes("R")) return "R";
293
+ if (lookupString.includes("AC")) return "AC";
294
+ if (lookupString.includes("RECEIVED")) return "RECEIVED";
295
295
  if (lookupString.includes("NA")) return "NA";
296
- console.log("Status not found");
297
- return "NA";
296
+ return new Error("Status not found");
298
297
  };
299
298
 
300
299
  exports.getNewStatus = getNewStatus;
package/dist/index.js CHANGED
@@ -784,6 +784,19 @@ Object.keys(_OnboardPlan).forEach(function (key) {
784
784
  });
785
785
  });
786
786
 
787
+ var _RegistrationLoginFirstStep = require("./components/pages/RegistrationLoginFirstStep");
788
+
789
+ Object.keys(_RegistrationLoginFirstStep).forEach(function (key) {
790
+ if (key === "default" || key === "__esModule") return;
791
+ if (key in exports && exports[key] === _RegistrationLoginFirstStep[key]) return;
792
+ Object.defineProperty(exports, key, {
793
+ enumerable: true,
794
+ get: function get() {
795
+ return _RegistrationLoginFirstStep[key];
796
+ }
797
+ });
798
+ });
799
+
787
800
  var _RegistrationLoginSecondStep = require("./components/pages/RegistrationLoginSecondStep");
788
801
 
789
802
  Object.keys(_RegistrationLoginSecondStep).forEach(function (key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.1.42",
3
+ "version": "21.1.44",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "scripts": {
36
36
  "start": "start-storybook -p 6006",
37
- "build": "cross-env BABEL_ENV=production babel src -d dist && cp -a src/assets dist/ && cp -a src/global-files/*.css dist/global-files",
37
+ "build": "cross-env BABEL_ENV=production babel src -d dist",
38
38
  "chromatic": "npx chromatic --project-token=d7bb0c8ba831",
39
39
  "release": "auto shipit --base-branch=main"
40
40
  },
@@ -5,10 +5,20 @@ export const StatusTag = ({ statusType, ovalForm }) => {
5
5
  switch (status) {
6
6
  case "COMPLETED":
7
7
  return "C";
8
+ case "RECEPTION":
9
+ return "Pr";
8
10
  case "NULL":
9
- return "--";
11
+ return "-";
12
+ case "RECEIVED":
13
+ return "Rc";
14
+ case "IN_PROGRESS":
15
+ return "P";
16
+ case "ASSIGNED":
17
+ return "As";
10
18
  case "APPROVED":
11
19
  return "Ap";
20
+ case "VALIDATING":
21
+ return "V";
12
22
  case "PAID_OUT":
13
23
  return "Po";
14
24
  default:
@@ -17,7 +27,7 @@ export const StatusTag = ({ statusType, ovalForm }) => {
17
27
  };
18
28
  return (
19
29
  <Container
20
- className={`status-${getShortStatus(statusType?.replace(/\/.*/, ""))} ${
30
+ className={`status-${getShortStatus(statusType)} ${
21
31
  ovalForm && "oval-form"
22
32
  }`}
23
33
  >
@@ -16,27 +16,30 @@ export const Container = styled.div`
16
16
  line-height: 20px;
17
17
  }
18
18
 
19
- &.status-AS,
20
- &.status-CA,
21
- &.status-IE {
19
+ &.status-As,
20
+ &.status-P,
21
+ &.status-IN_PROGRESS,
22
+ &.status-QF {
22
23
  background-color: ${GlobalColors.in_progress};
23
24
  }
24
25
 
25
- &.status-R {
26
+ &.status-Pr,
27
+ &.status-Rr,
28
+ &.status-Rc {
26
29
  background-color: ${GlobalColors.reception};
27
30
  }
28
31
 
29
32
  &.status-AA,
30
33
  &.status-AP,
31
- &.status-ACA,
32
- &.status-AC {
34
+ &.status-AC,
35
+ &.status-AF {
33
36
  background-color: ${GlobalColors.finished};
34
37
  }
35
38
 
36
39
  &.status-RA,
37
- &.status-RC,
40
+ &.status-RF,
38
41
  &.status-RP,
39
- &.status-RCA {
42
+ &.status-RC {
40
43
  background-color: ${GlobalColors.rejected_status};
41
44
  }
42
45
 
@@ -70,7 +73,4 @@ export const Container = styled.div`
70
73
  &.oval-form {
71
74
  border-radius: 10px;
72
75
  }
73
- &.delThis {
74
- color: red;
75
- }
76
76
  `;
@@ -70,7 +70,7 @@ export const StatusAsignationInfo = ({
70
70
  slidefront={slidefront}
71
71
  iconSize={"medium-image"}
72
72
  slidePosition={"bottom-slide"}
73
- />
73
+ ></SliderToolTip>
74
74
  {status !== "-" && <StatusTag statusType={status} ovalForm={true} />}
75
75
  {showSaveButton && (
76
76
  <Button
@@ -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 : "R");
29
+ element.push(sd.status ? sd.status : "RECEIVED");
30
30
  } else element.push("NA");
31
31
  rt["services"] = element;
32
32
  });
@@ -12,42 +12,48 @@ export const ProviderProductEditionDefault = Template.bind({});
12
12
  ProviderProductEditionDefault.args = {
13
13
  tabsSections: {
14
14
  Descripción: true,
15
- "Ficha técnica": true,
16
- Imágenes: true,
15
+ "Ficha técnica": false,
16
+ Imágenes: false,
17
17
  },
18
18
  token:
19
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E2NzQ2LCJpYXQiOjE2NTYxMTMxNDYsImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.kfMoKcxYDkpNZJibGdw50oOkRwPVl26YNAwwDoLEfQjOZB6WRCY95iHfU1maYcTTvA5KlT5ali8XZ-nLnxh60vZoLGTDOfCvEnwd1t94JtfE5CsWDr_jfH1U0AVidxihqKnkwvCezkHwU1DUFlbu2iBNo7MHQw4ydiK2sx4q0-QGltmE7W2JJ0sayRDuNchy2S6FQoyIWhsP3oaKTvJGDKCaJxwkFEKk-3antoMtfua9H8V4p2Kkqa_eDbFk8pLYGaYgImLlaia2orGgETkHZIWEMr4WJq1V_7qOg4lYq2BUUuMhWdmK6XUL_Jhmv05TUJ3Rp_Ti4_J2WE4zQqhbfQ",
20
+ articleId: 238,
21
+ category: 846,
22
+ version: 2,
23
23
  productSelected: {
24
- orderId: 96,
24
+ orderId: 55,
25
25
  article_status: "AP",
26
- datasheet_status: "ACA",
27
- description_status: "ACA",
28
- images_status: "ACA",
26
+ datasheet_status: "AP",
27
+ description_status: "AP",
28
+ images_status: "AP",
29
29
  prio: "none",
30
- version: 3,
30
+ version: 2,
31
31
  brand: null,
32
32
  article: {
33
- category: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
34
- company_name: "COMPANY DEV",
33
+ category: "ILUMINACIÓN|FOCOS|FOCOS",
34
+ company_name: "THD Proveedor",
35
35
  country: "México",
36
- id_category: "2568",
37
- id_article: 55154,
38
- name: "Prueba 12312",
39
- upc: "977812",
36
+ id_category: "2143",
37
+ id_article: 55118,
38
+ name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
39
+ upc: "145582",
40
40
  },
41
41
  retailers: [
42
42
  {
43
43
  id: 58,
44
44
  name: "The Home Depot Golden",
45
- services: ["ACA", "ACA", "ACA", "NA"],
46
45
  },
47
46
  {
48
47
  id: 59,
49
48
  name: "The Home Depot Platinum",
50
- services: ["NA", "NA", "NA", "AP"],
49
+ },
50
+ {
51
+ id: 60,
52
+ name: "The Home Depot Resizing",
53
+ },
54
+ {
55
+ id: 61,
56
+ name: "Home Depot TAB",
51
57
  },
52
58
  ],
53
59
  services: {
@@ -55,62 +61,63 @@ ProviderProductEditionDefault.args = {
55
61
  descriptions: 1,
56
62
  images: 1,
57
63
  },
58
- statusByRetailer: {
59
- 58: {
60
- datasheet: "ACA",
61
- description: "ACA",
62
- images: "ACA",
63
- },
64
- 59: {
65
- images: "ACA",
66
- },
67
- },
68
- id_article: 55154,
64
+ id_article: 55118,
69
65
  retailersAvailable: [
70
66
  {
71
67
  id: 58,
72
68
  name: "The Home Depot Golden",
73
- percentage: 100,
74
69
  },
75
70
  {
76
71
  id: 59,
77
72
  name: "The Home Depot Platinum",
78
- percentage: 100,
73
+ },
74
+ {
75
+ id: 60,
76
+ name: "The Home Depot Resizing",
77
+ },
78
+ {
79
+ id: 61,
80
+ name: "Home Depot TAB",
79
81
  },
80
82
  ],
81
- status: "ACA",
82
83
  },
83
84
  productToEdit: {
84
- ArticleId: 55154,
85
- idCategory: "2568",
85
+ ArticleId: 55118,
86
+ idCategory: "2143",
86
87
  product: {
87
- orderId: 96,
88
+ orderId: 55,
88
89
  article_status: "AP",
89
- datasheet_status: "ACA",
90
- description_status: "ACA",
91
- images_status: "ACA",
90
+ datasheet_status: "AP",
91
+ description_status: "AP",
92
+ images_status: "AP",
92
93
  prio: "none",
93
- version: 3,
94
+ version: 2,
94
95
  brand: null,
95
96
  article: {
96
- category: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
97
- company_name: "COMPANY DEV",
97
+ category: "ILUMINACIÓN|FOCOS|FOCOS",
98
+ company_name: "THD Proveedor",
98
99
  country: "México",
99
- id_category: "2568",
100
- id_article: 55154,
101
- name: "Prueba 12312",
102
- upc: "977812",
100
+ id_category: "2143",
101
+ id_article: 55118,
102
+ name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
103
+ upc: "145582",
103
104
  },
104
105
  retailers: [
105
106
  {
106
107
  id: 58,
107
108
  name: "The Home Depot Golden",
108
- services: ["ACA", "ACA", "ACA", "NA"],
109
109
  },
110
110
  {
111
111
  id: 59,
112
112
  name: "The Home Depot Platinum",
113
- services: ["NA", "NA", "NA", "AP"],
113
+ },
114
+ {
115
+ id: 60,
116
+ name: "The Home Depot Resizing",
117
+ },
118
+ {
119
+ id: 61,
120
+ name: "Home Depot TAB",
114
121
  },
115
122
  ],
116
123
  services: {
@@ -118,34 +125,29 @@ ProviderProductEditionDefault.args = {
118
125
  descriptions: 1,
119
126
  images: 1,
120
127
  },
121
- statusByRetailer: {
122
- 58: {
123
- datasheet: "ACA",
124
- description: "ACA",
125
- images: "ACA",
126
- },
127
- 59: {
128
- images: "ACA",
129
- },
130
- },
131
- id_article: 55154,
128
+ id_article: 55118,
132
129
  retailersAvailable: [
133
130
  {
134
131
  id: 58,
135
132
  name: "The Home Depot Golden",
136
- percentage: 100,
137
133
  },
138
134
  {
139
135
  id: 59,
140
136
  name: "The Home Depot Platinum",
141
- percentage: 100,
137
+ },
138
+ {
139
+ id: 60,
140
+ name: "The Home Depot Resizing",
141
+ },
142
+ {
143
+ id: 61,
144
+ name: "Home Depot TAB",
142
145
  },
143
146
  ],
144
- status: "ACA",
145
147
  },
146
148
  },
147
149
  location: {
148
- product: { articleId: 55157, versionId: 3 },
150
+ product: { articleId: 109485, versionId: 3 },
149
151
  state: { origin: "Contentoh" },
150
152
  },
151
153
  user: {
@@ -166,7 +168,7 @@ ProviderProductEditionDefault.args = {
166
168
  id_stripe: "",
167
169
  id_role: 0,
168
170
  active: 1,
169
- is_retailer: 1,
171
+ is_retailer: 0,
170
172
  email_notify: 1,
171
173
  membership: {
172
174
  id: 24,
@@ -179,6 +181,6 @@ ProviderProductEditionDefault.args = {
179
181
  products_limit: "10000",
180
182
  type: "Enterprise",
181
183
  },
182
- src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1657069378649",
184
+ src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1656113146885",
183
185
  },
184
- };
186
+ };