contentoh-components-library 21.1.86 → 21.1.87
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/AsignationOption/index.js +1 -1
- package/dist/components/atoms/Status/index.js +1 -1
- package/dist/components/molecules/StatusAsignationInfo/index.js +0 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +57 -50
- package/dist/global-files/data.js +1 -0
- package/package.json +1 -1
- package/src/components/atoms/AsignationOption/index.js +1 -1
- package/src/components/atoms/Status/index.js +1 -1
- package/src/components/molecules/StatusAsignationInfo/index.js +0 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +58 -50
- package/src/global-files/data.js +1 -0
|
@@ -21,7 +21,7 @@ var _availableIcon = _interopRequireDefault(require("../../../assets/images/asig
|
|
|
21
21
|
|
|
22
22
|
var _data = require("../../../global-files/data");
|
|
23
23
|
|
|
24
|
-
var _Status = require("
|
|
24
|
+
var _Status = require("../../atoms/Status");
|
|
25
25
|
|
|
26
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
27
|
|
|
@@ -15,7 +15,7 @@ var Status = function Status(_ref) {
|
|
|
15
15
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
16
16
|
className: "status-".concat(statusType === null || statusType === void 0 ? void 0 : statusType.replace(/\/.*/, ""), " ").concat(ovalForm && "oval-form"),
|
|
17
17
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
18
|
-
children: statusType !== null && statusType !== void 0 ? statusType :
|
|
18
|
+
children: statusType !== null && statusType !== void 0 ? statusType : "NS"
|
|
19
19
|
})
|
|
20
20
|
});
|
|
21
21
|
};
|
|
@@ -149,7 +149,6 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
149
149
|
onClick: function onClick(e) {
|
|
150
150
|
e.preventDefault();
|
|
151
151
|
e.stopPropagation();
|
|
152
|
-
console.log(e.target);
|
|
153
152
|
setShowAsignationPanel(true);
|
|
154
153
|
setAssignationType(assignation === null || assignation === void 0 ? void 0 : assignation.collaboratorType);
|
|
155
154
|
}
|
|
@@ -38,45 +38,52 @@ RetailerProductEditionDefault.args = {
|
|
|
38
38
|
descriptions: 1,
|
|
39
39
|
images: 1
|
|
40
40
|
},
|
|
41
|
-
orderId:
|
|
42
|
-
status: "
|
|
43
|
-
datasheet_status: "
|
|
41
|
+
orderId: 2426,
|
|
42
|
+
status: "AS",
|
|
43
|
+
datasheet_status: "AS",
|
|
44
44
|
prio: "none",
|
|
45
45
|
version: 2,
|
|
46
|
-
description_status: "
|
|
47
|
-
images_status: "
|
|
46
|
+
description_status: "AS",
|
|
47
|
+
images_status: "AS",
|
|
48
48
|
article: {
|
|
49
|
-
id_article:
|
|
50
|
-
id_category: "
|
|
51
|
-
name: "
|
|
52
|
-
upc: "
|
|
53
|
-
timestamp: "2022-
|
|
54
|
-
id_user:
|
|
49
|
+
id_article: 78738,
|
|
50
|
+
id_category: "2427",
|
|
51
|
+
name: "INTERRUPTOR TERMOMAGNETICO IUSA 2P 15A",
|
|
52
|
+
upc: "157126",
|
|
53
|
+
timestamp: "2022-08-01T18:28:05.000Z",
|
|
54
|
+
id_user: 651,
|
|
55
55
|
status: "NULL",
|
|
56
56
|
active: 1,
|
|
57
|
-
company_id:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
57
|
+
company_id: 388,
|
|
58
|
+
SKU: null,
|
|
59
|
+
Descripcion: null,
|
|
60
|
+
Proveedor: null,
|
|
61
|
+
id_proveedor: 0,
|
|
62
|
+
company_name: "",
|
|
63
|
+
country: null,
|
|
64
|
+
id_order: 2426,
|
|
65
|
+
id_datasheet_especialist: 1248,
|
|
66
|
+
id_datasheet_facilitator: 1252,
|
|
67
|
+
id_description_especialist: 1248,
|
|
68
|
+
id_description_facilitator: 1252,
|
|
69
|
+
id_images_especialist: 1251,
|
|
70
|
+
id_images_facilitator: 1286,
|
|
71
|
+
id_auditor: 1254,
|
|
68
72
|
id_recepcionist: null,
|
|
69
|
-
category: "
|
|
70
|
-
missingAttributes:
|
|
71
|
-
missingDescriptions:
|
|
72
|
-
missingImages:
|
|
73
|
+
category: "Eléctrico|Centros de Carga e Interruptores|Interruptores de Seguridad",
|
|
74
|
+
missingAttributes: null,
|
|
75
|
+
missingDescriptions: null,
|
|
76
|
+
missingImages: null
|
|
73
77
|
},
|
|
74
78
|
retailers: [{
|
|
75
|
-
id:
|
|
76
|
-
name: "
|
|
79
|
+
id: 58,
|
|
80
|
+
name: "The Home Depot Golden",
|
|
81
|
+
country: "México",
|
|
82
|
+
id_region: 1,
|
|
83
|
+
active: 1
|
|
77
84
|
}],
|
|
78
|
-
country:
|
|
79
|
-
upc: "
|
|
85
|
+
country: null,
|
|
86
|
+
upc: "157126"
|
|
80
87
|
},
|
|
81
88
|
location: {
|
|
82
89
|
product: {
|
|
@@ -85,16 +92,16 @@ RetailerProductEditionDefault.args = {
|
|
|
85
92
|
}
|
|
86
93
|
},
|
|
87
94
|
user: {
|
|
88
|
-
id_user:
|
|
89
|
-
name: "
|
|
90
|
-
last_name: "",
|
|
91
|
-
email: "
|
|
92
|
-
position:
|
|
95
|
+
id_user: 460,
|
|
96
|
+
name: "Ismael",
|
|
97
|
+
last_name: "López",
|
|
98
|
+
email: "ilopez@contentoh.com",
|
|
99
|
+
position: "Desarrollador",
|
|
93
100
|
telephone: null,
|
|
94
|
-
country:
|
|
95
|
-
id_company:
|
|
96
|
-
id_cognito: "
|
|
97
|
-
birth_Date:
|
|
101
|
+
country: "México",
|
|
102
|
+
id_company: 254,
|
|
103
|
+
id_cognito: "9d0cc5c8-a89e-4bdd-9e2d-358a01cc9a62",
|
|
104
|
+
birth_Date: "1997-08-15T00:00:00.000Z",
|
|
98
105
|
about_me: null,
|
|
99
106
|
zip_code: null,
|
|
100
107
|
address: null,
|
|
@@ -103,18 +110,18 @@ RetailerProductEditionDefault.args = {
|
|
|
103
110
|
id_role: 1,
|
|
104
111
|
active: 1,
|
|
105
112
|
is_retailer: 0,
|
|
106
|
-
email_notify:
|
|
113
|
+
email_notify: null,
|
|
107
114
|
membership: {
|
|
108
|
-
id:
|
|
109
|
-
start_date: "
|
|
110
|
-
end_date: "
|
|
111
|
-
planID:
|
|
112
|
-
plan: "
|
|
113
|
-
name: "Plan
|
|
114
|
-
user_limit: "
|
|
115
|
-
products_limit: "
|
|
116
|
-
type: "
|
|
115
|
+
id: 750,
|
|
116
|
+
start_date: "2022-01-07T21:32:54.000Z",
|
|
117
|
+
end_date: "2023-01-07T21:32:54.000Z",
|
|
118
|
+
planID: 6,
|
|
119
|
+
plan: "prod_KvGd6YSTJyR3AP",
|
|
120
|
+
name: "Plan Small",
|
|
121
|
+
user_limit: "10",
|
|
122
|
+
products_limit: "1000",
|
|
123
|
+
type: "Enterprise"
|
|
117
124
|
},
|
|
118
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
125
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-460/460.png?1659463389000"
|
|
119
126
|
}
|
|
120
127
|
};
|
|
@@ -280,6 +280,7 @@ var getNewStatus = function getNewStatus(statusArray) {
|
|
|
280
280
|
statusArray.forEach(function (element) {
|
|
281
281
|
return lookupString += element + "/";
|
|
282
282
|
});
|
|
283
|
+
if (lookupString.includes("AS")) return "AS";
|
|
283
284
|
if (lookupString.includes("RCA")) return "RCA";
|
|
284
285
|
if (lookupString.includes("RC")) return "RC";
|
|
285
286
|
if (lookupString.includes("RA")) return "RA";
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import requesToProvider from "../../../assets/images/asignationOptions/requestTo
|
|
|
6
6
|
import requestToTeam from "../../../assets/images/asignationOptions/requestToTeam.svg";
|
|
7
7
|
import availableIcon from "../../../assets/images/asignationOptions/availableIcon.svg";
|
|
8
8
|
import { getNewStatus } from "../../../global-files/data";
|
|
9
|
-
import { Status } from "
|
|
9
|
+
import { Status } from "../../atoms/Status";
|
|
10
10
|
|
|
11
11
|
export const AsignationOption = ({
|
|
12
12
|
profileImage,
|
|
@@ -23,62 +23,70 @@ RetailerProductEditionDefault.args = {
|
|
|
23
23
|
descriptions: 1,
|
|
24
24
|
images: 1,
|
|
25
25
|
},
|
|
26
|
-
orderId:
|
|
27
|
-
status: "
|
|
28
|
-
datasheet_status: "
|
|
26
|
+
orderId: 2426,
|
|
27
|
+
status: "AS",
|
|
28
|
+
datasheet_status: "AS",
|
|
29
29
|
prio: "none",
|
|
30
30
|
version: 2,
|
|
31
|
-
description_status: "
|
|
32
|
-
images_status: "
|
|
31
|
+
description_status: "AS",
|
|
32
|
+
images_status: "AS",
|
|
33
33
|
article: {
|
|
34
|
-
id_article:
|
|
35
|
-
id_category: "
|
|
36
|
-
name: "
|
|
37
|
-
upc: "
|
|
38
|
-
timestamp: "2022-
|
|
39
|
-
id_user:
|
|
34
|
+
id_article: 78738,
|
|
35
|
+
id_category: "2427",
|
|
36
|
+
name: "INTERRUPTOR TERMOMAGNETICO IUSA 2P 15A",
|
|
37
|
+
upc: "157126",
|
|
38
|
+
timestamp: "2022-08-01T18:28:05.000Z",
|
|
39
|
+
id_user: 651,
|
|
40
40
|
status: "NULL",
|
|
41
41
|
active: 1,
|
|
42
|
-
company_id:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
company_id: 388,
|
|
43
|
+
SKU: null,
|
|
44
|
+
Descripcion: null,
|
|
45
|
+
Proveedor: null,
|
|
46
|
+
id_proveedor: 0,
|
|
47
|
+
company_name: "",
|
|
48
|
+
country: null,
|
|
49
|
+
id_order: 2426,
|
|
50
|
+
id_datasheet_especialist: 1248,
|
|
51
|
+
id_datasheet_facilitator: 1252,
|
|
52
|
+
id_description_especialist: 1248,
|
|
53
|
+
id_description_facilitator: 1252,
|
|
54
|
+
id_images_especialist: 1251,
|
|
55
|
+
id_images_facilitator: 1286,
|
|
56
|
+
id_auditor: 1254,
|
|
53
57
|
id_recepcionist: null,
|
|
54
|
-
category:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
category:
|
|
59
|
+
"Eléctrico|Centros de Carga e Interruptores|Interruptores de Seguridad",
|
|
60
|
+
missingAttributes: null,
|
|
61
|
+
missingDescriptions: null,
|
|
62
|
+
missingImages: null,
|
|
58
63
|
},
|
|
59
64
|
retailers: [
|
|
60
65
|
{
|
|
61
|
-
id:
|
|
62
|
-
name: "
|
|
66
|
+
id: 58,
|
|
67
|
+
name: "The Home Depot Golden",
|
|
68
|
+
country: "México",
|
|
69
|
+
id_region: 1,
|
|
70
|
+
active: 1,
|
|
63
71
|
},
|
|
64
72
|
],
|
|
65
|
-
country:
|
|
66
|
-
upc: "
|
|
73
|
+
country: null,
|
|
74
|
+
upc: "157126",
|
|
67
75
|
},
|
|
68
76
|
location: {
|
|
69
77
|
product: { articleId: 109485, versionId: 3 },
|
|
70
78
|
},
|
|
71
79
|
user: {
|
|
72
|
-
id_user:
|
|
73
|
-
name: "
|
|
74
|
-
last_name: "",
|
|
75
|
-
email: "
|
|
76
|
-
position:
|
|
80
|
+
id_user: 460,
|
|
81
|
+
name: "Ismael",
|
|
82
|
+
last_name: "López",
|
|
83
|
+
email: "ilopez@contentoh.com",
|
|
84
|
+
position: "Desarrollador",
|
|
77
85
|
telephone: null,
|
|
78
|
-
country:
|
|
79
|
-
id_company:
|
|
80
|
-
id_cognito: "
|
|
81
|
-
birth_Date:
|
|
86
|
+
country: "México",
|
|
87
|
+
id_company: 254,
|
|
88
|
+
id_cognito: "9d0cc5c8-a89e-4bdd-9e2d-358a01cc9a62",
|
|
89
|
+
birth_Date: "1997-08-15T00:00:00.000Z",
|
|
82
90
|
about_me: null,
|
|
83
91
|
zip_code: null,
|
|
84
92
|
address: null,
|
|
@@ -87,18 +95,18 @@ RetailerProductEditionDefault.args = {
|
|
|
87
95
|
id_role: 1,
|
|
88
96
|
active: 1,
|
|
89
97
|
is_retailer: 0,
|
|
90
|
-
email_notify:
|
|
98
|
+
email_notify: null,
|
|
91
99
|
membership: {
|
|
92
|
-
id:
|
|
93
|
-
start_date: "
|
|
94
|
-
end_date: "
|
|
95
|
-
planID:
|
|
96
|
-
plan: "
|
|
97
|
-
name: "Plan
|
|
98
|
-
user_limit: "
|
|
99
|
-
products_limit: "
|
|
100
|
-
type: "
|
|
100
|
+
id: 750,
|
|
101
|
+
start_date: "2022-01-07T21:32:54.000Z",
|
|
102
|
+
end_date: "2023-01-07T21:32:54.000Z",
|
|
103
|
+
planID: 6,
|
|
104
|
+
plan: "prod_KvGd6YSTJyR3AP",
|
|
105
|
+
name: "Plan Small",
|
|
106
|
+
user_limit: "10",
|
|
107
|
+
products_limit: "1000",
|
|
108
|
+
type: "Enterprise",
|
|
101
109
|
},
|
|
102
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
110
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-460/460.png?1659463389000",
|
|
103
111
|
},
|
|
104
112
|
};
|
package/src/global-files/data.js
CHANGED
|
@@ -195,6 +195,7 @@ export const fetchUsers = async (auth) => {
|
|
|
195
195
|
export const getNewStatus = (statusArray) => {
|
|
196
196
|
let lookupString = "";
|
|
197
197
|
statusArray.forEach((element) => (lookupString += element + "/"));
|
|
198
|
+
if (lookupString.includes("AS")) return "AS";
|
|
198
199
|
if (lookupString.includes("RCA")) return "RCA";
|
|
199
200
|
if (lookupString.includes("RC")) return "RC";
|
|
200
201
|
if (lookupString.includes("RA")) return "RA";
|