contentoh-components-library 21.0.90 → 21.0.91
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/molecules/AvatarAndValidation/index.js +3 -2
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +38 -28
- package/package.json +1 -1
- package/src/components/molecules/AvatarAndValidation/index.js +4 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +38 -27
|
@@ -62,8 +62,9 @@ var AvatarAndValidation = function AvatarAndValidation(_ref) {
|
|
|
62
62
|
setActiveRetailer: setActiveRetailer
|
|
63
63
|
}), showValidationButtons && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
64
64
|
buttonType: "circular-button ".concat(buttonType),
|
|
65
|
-
onClick: function onClick() {
|
|
66
|
-
|
|
65
|
+
onClick: function onClick(e) {
|
|
66
|
+
e.stopPropagation();
|
|
67
|
+
setShowValidationPanel(true);
|
|
67
68
|
}
|
|
68
69
|
})]
|
|
69
70
|
}), showValidationPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ValidationPanel.ValidationPanel, {
|
|
@@ -41,7 +41,7 @@ RetailerProductEditionDefault.args = {
|
|
|
41
41
|
descriptions: 1,
|
|
42
42
|
images: 1
|
|
43
43
|
},
|
|
44
|
-
orderId:
|
|
44
|
+
orderId: 9,
|
|
45
45
|
status: "QF",
|
|
46
46
|
datasheet_status: "QF",
|
|
47
47
|
prio: "none",
|
|
@@ -49,18 +49,18 @@ RetailerProductEditionDefault.args = {
|
|
|
49
49
|
description_status: "QF",
|
|
50
50
|
images_status: "QF",
|
|
51
51
|
article: {
|
|
52
|
-
id_article:
|
|
53
|
-
id_category: "
|
|
54
|
-
name: "
|
|
55
|
-
upc: "
|
|
56
|
-
timestamp: "2022-06-
|
|
57
|
-
id_user:
|
|
52
|
+
id_article: 35698,
|
|
53
|
+
id_category: "2143",
|
|
54
|
+
name: "FOCO LED A19 (60W) LUZ AMARILLA",
|
|
55
|
+
upc: "12087311",
|
|
56
|
+
timestamp: "2022-06-15T14:35:46.000Z",
|
|
57
|
+
id_user: 59,
|
|
58
58
|
status: "NULL",
|
|
59
59
|
active: 1,
|
|
60
60
|
company_id: 1,
|
|
61
|
-
company_name: "
|
|
61
|
+
company_name: "Cadena Ismael",
|
|
62
62
|
country: "México",
|
|
63
|
-
id_order:
|
|
63
|
+
id_order: 9,
|
|
64
64
|
id_datasheet_especialist: 54,
|
|
65
65
|
id_datasheet_facilitator: 52,
|
|
66
66
|
id_description_especialist: 54,
|
|
@@ -69,28 +69,38 @@ RetailerProductEditionDefault.args = {
|
|
|
69
69
|
id_images_facilitator: 53,
|
|
70
70
|
id_auditor: 30,
|
|
71
71
|
id_recepcionist: null,
|
|
72
|
-
category: "
|
|
73
|
-
missingAttributes:
|
|
74
|
-
missingDescriptions:
|
|
75
|
-
missingImages:
|
|
72
|
+
category: "ILUMINACIÓN|FOCOS|FOCOS",
|
|
73
|
+
missingAttributes: 0,
|
|
74
|
+
missingDescriptions: 0,
|
|
75
|
+
missingImages: -1
|
|
76
76
|
},
|
|
77
77
|
retailers: [{
|
|
78
|
-
id:
|
|
79
|
-
name: "
|
|
78
|
+
id: 58,
|
|
79
|
+
name: "The Home Depot Golden",
|
|
80
80
|
country: "México",
|
|
81
81
|
id_region: 1,
|
|
82
|
-
active: 1
|
|
83
|
-
percentage: 100
|
|
82
|
+
active: 1
|
|
84
83
|
}, {
|
|
85
|
-
id:
|
|
86
|
-
name: "
|
|
84
|
+
id: 59,
|
|
85
|
+
name: "The Home Depot Platinum",
|
|
87
86
|
country: "México",
|
|
88
87
|
id_region: 1,
|
|
89
|
-
active: 1
|
|
90
|
-
|
|
88
|
+
active: 1
|
|
89
|
+
}, {
|
|
90
|
+
id: 60,
|
|
91
|
+
name: "The Home Depot Resizing",
|
|
92
|
+
country: "México",
|
|
93
|
+
id_region: 1,
|
|
94
|
+
active: 1
|
|
95
|
+
}, {
|
|
96
|
+
id: 61,
|
|
97
|
+
name: "Home Depot TAB",
|
|
98
|
+
country: "México",
|
|
99
|
+
id_region: 1,
|
|
100
|
+
active: 1
|
|
91
101
|
}],
|
|
92
102
|
country: "México",
|
|
93
|
-
upc: "
|
|
103
|
+
upc: "12087311"
|
|
94
104
|
},
|
|
95
105
|
location: {
|
|
96
106
|
product: {
|
|
@@ -99,22 +109,22 @@ RetailerProductEditionDefault.args = {
|
|
|
99
109
|
}
|
|
100
110
|
},
|
|
101
111
|
user: {
|
|
102
|
-
id_user:
|
|
103
|
-
name: "FACILITADOR
|
|
112
|
+
id_user: 52,
|
|
113
|
+
name: "FACILITADOR TXT PRUEBA",
|
|
104
114
|
last_name: "",
|
|
105
|
-
email: "
|
|
115
|
+
email: "azarate@contentoh.com",
|
|
106
116
|
position: null,
|
|
107
117
|
telephone: null,
|
|
108
118
|
country: null,
|
|
109
119
|
id_company: 2,
|
|
110
|
-
id_cognito: "
|
|
120
|
+
id_cognito: "b2ce5b2a-609c-4e79-9ea9-2f74cff43889",
|
|
111
121
|
birth_Date: null,
|
|
112
122
|
about_me: null,
|
|
113
123
|
zip_code: null,
|
|
114
124
|
address: null,
|
|
115
125
|
job: null,
|
|
116
126
|
id_stripe: null,
|
|
117
|
-
id_role:
|
|
127
|
+
id_role: 4,
|
|
118
128
|
active: 1,
|
|
119
129
|
is_retailer: 0,
|
|
120
130
|
membership: {
|
|
@@ -128,6 +138,6 @@ RetailerProductEditionDefault.args = {
|
|
|
128
138
|
products_limit: "3",
|
|
129
139
|
type: "PyMES"
|
|
130
140
|
},
|
|
131
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
141
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-52/52.png?1655320339846"
|
|
132
142
|
}
|
|
133
143
|
};
|
package/package.json
CHANGED
|
@@ -48,7 +48,10 @@ export const AvatarAndValidation = ({
|
|
|
48
48
|
{showValidationButtons && (
|
|
49
49
|
<Button
|
|
50
50
|
buttonType={`circular-button ${buttonType}`}
|
|
51
|
-
onClick={() =>
|
|
51
|
+
onClick={(e) => {
|
|
52
|
+
e.stopPropagation();
|
|
53
|
+
setShowValidationPanel(true);
|
|
54
|
+
}}
|
|
52
55
|
/>
|
|
53
56
|
)}
|
|
54
57
|
</div>
|
|
@@ -26,7 +26,7 @@ RetailerProductEditionDefault.args = {
|
|
|
26
26
|
descriptions: 1,
|
|
27
27
|
images: 1,
|
|
28
28
|
},
|
|
29
|
-
orderId:
|
|
29
|
+
orderId: 9,
|
|
30
30
|
status: "QF",
|
|
31
31
|
datasheet_status: "QF",
|
|
32
32
|
prio: "none",
|
|
@@ -34,18 +34,18 @@ RetailerProductEditionDefault.args = {
|
|
|
34
34
|
description_status: "QF",
|
|
35
35
|
images_status: "QF",
|
|
36
36
|
article: {
|
|
37
|
-
id_article:
|
|
38
|
-
id_category: "
|
|
39
|
-
name: "
|
|
40
|
-
upc: "
|
|
41
|
-
timestamp: "2022-06-
|
|
42
|
-
id_user:
|
|
37
|
+
id_article: 35698,
|
|
38
|
+
id_category: "2143",
|
|
39
|
+
name: "FOCO LED A19 (60W) LUZ AMARILLA",
|
|
40
|
+
upc: "12087311",
|
|
41
|
+
timestamp: "2022-06-15T14:35:46.000Z",
|
|
42
|
+
id_user: 59,
|
|
43
43
|
status: "NULL",
|
|
44
44
|
active: 1,
|
|
45
45
|
company_id: 1,
|
|
46
|
-
company_name: "
|
|
46
|
+
company_name: "Cadena Ismael",
|
|
47
47
|
country: "México",
|
|
48
|
-
id_order:
|
|
48
|
+
id_order: 9,
|
|
49
49
|
id_datasheet_especialist: 54,
|
|
50
50
|
id_datasheet_facilitator: 52,
|
|
51
51
|
id_description_especialist: 54,
|
|
@@ -54,53 +54,64 @@ RetailerProductEditionDefault.args = {
|
|
|
54
54
|
id_images_facilitator: 53,
|
|
55
55
|
id_auditor: 30,
|
|
56
56
|
id_recepcionist: null,
|
|
57
|
-
category:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
missingImages: null,
|
|
57
|
+
category: "ILUMINACIÓN|FOCOS|FOCOS",
|
|
58
|
+
missingAttributes: 0,
|
|
59
|
+
missingDescriptions: 0,
|
|
60
|
+
missingImages: -1,
|
|
62
61
|
},
|
|
63
62
|
retailers: [
|
|
64
63
|
{
|
|
65
|
-
id:
|
|
66
|
-
name: "
|
|
64
|
+
id: 58,
|
|
65
|
+
name: "The Home Depot Golden",
|
|
67
66
|
country: "México",
|
|
68
67
|
id_region: 1,
|
|
69
68
|
active: 1,
|
|
70
|
-
percentage: 100,
|
|
71
69
|
},
|
|
72
70
|
{
|
|
73
|
-
id:
|
|
74
|
-
name: "
|
|
71
|
+
id: 59,
|
|
72
|
+
name: "The Home Depot Platinum",
|
|
73
|
+
country: "México",
|
|
74
|
+
id_region: 1,
|
|
75
|
+
active: 1,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: 60,
|
|
79
|
+
name: "The Home Depot Resizing",
|
|
80
|
+
country: "México",
|
|
81
|
+
id_region: 1,
|
|
82
|
+
active: 1,
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: 61,
|
|
86
|
+
name: "Home Depot TAB",
|
|
75
87
|
country: "México",
|
|
76
88
|
id_region: 1,
|
|
77
89
|
active: 1,
|
|
78
|
-
percentage: 100,
|
|
79
90
|
},
|
|
80
91
|
],
|
|
81
92
|
country: "México",
|
|
82
|
-
upc: "
|
|
93
|
+
upc: "12087311",
|
|
83
94
|
},
|
|
84
95
|
location: {
|
|
85
96
|
product: { articleId: 109485, versionId: 3 },
|
|
86
97
|
},
|
|
87
98
|
user: {
|
|
88
|
-
id_user:
|
|
89
|
-
name: "FACILITADOR
|
|
99
|
+
id_user: 52,
|
|
100
|
+
name: "FACILITADOR TXT PRUEBA",
|
|
90
101
|
last_name: "",
|
|
91
|
-
email: "
|
|
102
|
+
email: "azarate@contentoh.com",
|
|
92
103
|
position: null,
|
|
93
104
|
telephone: null,
|
|
94
105
|
country: null,
|
|
95
106
|
id_company: 2,
|
|
96
|
-
id_cognito: "
|
|
107
|
+
id_cognito: "b2ce5b2a-609c-4e79-9ea9-2f74cff43889",
|
|
97
108
|
birth_Date: null,
|
|
98
109
|
about_me: null,
|
|
99
110
|
zip_code: null,
|
|
100
111
|
address: null,
|
|
101
112
|
job: null,
|
|
102
113
|
id_stripe: null,
|
|
103
|
-
id_role:
|
|
114
|
+
id_role: 4,
|
|
104
115
|
active: 1,
|
|
105
116
|
is_retailer: 0,
|
|
106
117
|
membership: {
|
|
@@ -114,6 +125,6 @@ RetailerProductEditionDefault.args = {
|
|
|
114
125
|
products_limit: "3",
|
|
115
126
|
type: "PyMES",
|
|
116
127
|
},
|
|
117
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
128
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-52/52.png?1655320339846",
|
|
118
129
|
},
|
|
119
130
|
};
|