contentoh-components-library 21.2.6 → 21.2.7
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/.env.development +1 -3
- package/.env.production +1 -3
- package/dist/components/atoms/FeatureTag/styles.js +1 -1
- package/dist/components/atoms/Graphic/Graphic.stories.js +1 -9
- package/dist/components/atoms/Graphic/index.js +9 -4
- package/dist/components/atoms/Graphic/styles.js +1 -1
- package/dist/components/molecules/VersionItem/index.js +11 -1
- package/dist/components/organisms/FullProductNameHeader/index.js +1 -1
- package/dist/components/organisms/VersionSelector/index.js +2 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +121 -73
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +55 -55
- package/dist/components/pages/RetailerProductEdition/index.js +3 -3
- package/dist/index.js +0 -13
- package/package.json +1 -2
- package/src/components/atoms/FeatureTag/styles.js +0 -6
- package/src/components/atoms/Graphic/Graphic.stories.js +0 -8
- package/src/components/atoms/Graphic/index.js +9 -3
- package/src/components/atoms/Graphic/styles.js +2 -1
- package/src/components/molecules/VersionItem/index.js +8 -0
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/VersionSelector/index.js +2 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +146 -80
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +58 -58
- package/src/components/pages/RetailerProductEdition/index.js +2 -3
- package/src/index.js +0 -1
- package/dist/components/atoms/MetricCard/MetricCard.stories.js +0 -31
- package/dist/components/atoms/MetricCard/index.js +0 -24
- package/dist/components/atoms/MetricCard/styles.js +0 -20
- package/dist/components/atoms/MetricSelect/MetricSelect.stories.js +0 -46
- package/dist/components/atoms/MetricSelect/index.js +0 -37
- package/dist/components/atoms/MetricSelect/styles.js +0 -20
- package/dist/components/organisms/Calendar/Calendar.stories.js +0 -28
- package/dist/components/organisms/Calendar/index.js +0 -33
- package/dist/components/organisms/Calendar/styles.js +0 -20
- package/dist/components/organisms/DashboardMetric/DashboardMetric.stories.js +0 -45
- package/dist/components/organisms/DashboardMetric/index.js +0 -168
- package/dist/components/organisms/DashboardMetric/styles.js +0 -20
- package/dist/components/pages/Dashboard/Dashboard.stories.js +0 -28
- package/dist/components/pages/Dashboard/index.js +0 -292
- package/dist/components/pages/Dashboard/styles.js +0 -18
- package/src/components/atoms/MetricCard/MetricCard.stories.js +0 -14
- package/src/components/atoms/MetricCard/index.js +0 -10
- package/src/components/atoms/MetricCard/styles.js +0 -30
- package/src/components/atoms/MetricSelect/MetricSelect.stories.js +0 -37
- package/src/components/atoms/MetricSelect/index.js +0 -22
- package/src/components/atoms/MetricSelect/styles.js +0 -20
- package/src/components/organisms/Calendar/Calendar.stories.js +0 -10
- package/src/components/organisms/Calendar/index.js +0 -17
- package/src/components/organisms/Calendar/styles.js +0 -851
- package/src/components/organisms/DashboardMetric/DashboardMetric.stories.js +0 -28
- package/src/components/organisms/DashboardMetric/index.js +0 -128
- package/src/components/organisms/DashboardMetric/styles.js +0 -60
- package/src/components/pages/Dashboard/Dashboard.stories.js +0 -10
- package/src/components/pages/Dashboard/index.js +0 -146
- package/src/components/pages/Dashboard/styles.js +0 -24
package/.env.development
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
REACT_APP_ARTICLE_DATA_ENDPOINT=https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/articles-data
|
|
2
|
+
|
|
2
3
|
REACT_APP_ARTICLE_DATA_DATASHEET_ENDPOINT=https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/articles-data/datasheets
|
|
3
4
|
REACT_APP_ARTICLE_DATA_DESCRIPTION_ENDPOINT=https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/articles-data/descriptions
|
|
4
5
|
REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT=https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/articles-data/images
|
|
@@ -15,9 +16,6 @@ REACT_APP_USER_TASKS_ENDPOINT = https://lqrc8jfjqi.execute-api.us-east-1.amazona
|
|
|
15
16
|
REACT_APP_CART = https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/cart
|
|
16
17
|
REACT_APP_RETAILER_REQUEST = https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/retailers-request
|
|
17
18
|
REACT_APP_VERSIONS_ENDPOINT = https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/versions
|
|
18
|
-
REACT_APP_RETAILER_ENDPOINT=https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/retailers
|
|
19
|
-
REACT_APP_READ_ORDERS_BY_STATUS=https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/read-orders-by-status
|
|
20
|
-
REACT_APP_READ_REQUIRED_ORDERS=https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/read-required-orders
|
|
21
19
|
|
|
22
20
|
REACT_APP_IMAGES_BUCKET=content-management-images
|
|
23
21
|
REACT_APP_KEY_UPLOAD_TO_S3=AKIA5CPHLQTT46EQ5TIK
|
package/.env.production
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
REACT_APP_ARTICLE_DATA_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data
|
|
2
|
+
|
|
2
3
|
REACT_APP_ARTICLE_DATA_DATASHEET_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data/datasheets
|
|
3
4
|
REACT_APP_ARTICLE_DATA_DESCRIPTION_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data/descriptions
|
|
4
5
|
REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data/images
|
|
@@ -15,9 +16,6 @@ REACT_APP_USER_TASKS_ENDPOINT = https://6jqnpjf841.execute-api.us-east-1.amazona
|
|
|
15
16
|
REACT_APP_CART = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/cart
|
|
16
17
|
REACT_APP_RETAILER_REQUEST = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/retailers-request
|
|
17
18
|
REACT_APP_VERSIONS_ENDPOINT = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/versions
|
|
18
|
-
REACT_APP_RETAILER_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/retailers
|
|
19
|
-
REACT_APP_READ_ORDERS_BY_STATUS=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/read-orders-by-status
|
|
20
|
-
REACT_APP_READ_REQUIRED_ORDERS=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/read-required-orders
|
|
21
19
|
|
|
22
20
|
REACT_APP_IMAGES_BUCKET=content-management-images-prod
|
|
23
21
|
REACT_APP_KEY_UPLOAD_TO_S3=AKIA5CPHLQTT46EQ5TIK
|
|
@@ -17,6 +17,6 @@ var _variables = require("../../../global-files/variables");
|
|
|
17
17
|
|
|
18
18
|
var _templateObject;
|
|
19
19
|
|
|
20
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: #f0eef2;\n border-radius: 3px;\n display: flex;\n width: fit-content;\n height: 26px;\n padding: 5px;\n align-items: center;\n\n .feature-name {\n font-size: 14px;\n font-family: ", ";\n font-style: normal;\n font-weight: 500;\n font-size: 14px;\n line-height: 18px;\n color: ", ";\n\n & + * {\n margin-left: 5px;\n }\n }\n .feature-value {\n font-family: ", ";\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n height: 12px;\n letter-spacing: -0.015em;\n color: ", ";\n }\n
|
|
20
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: #f0eef2;\n border-radius: 3px;\n display: flex;\n width: fit-content;\n height: 26px;\n padding: 5px;\n align-items: center;\n\n .feature-name {\n font-size: 14px;\n font-family: ", ";\n font-style: normal;\n font-weight: 500;\n font-size: 14px;\n line-height: 18px;\n color: ", ";\n\n & + * {\n margin-left: 5px;\n }\n }\n .feature-value {\n font-family: ", ";\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n height: 12px;\n letter-spacing: -0.015em;\n color: ", ";\n }\n"])), _variables.FontFamily.Raleway_500, _variables.GlobalColors.original_magenta, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4);
|
|
21
21
|
|
|
22
22
|
exports.Container = Container;
|
|
@@ -14,12 +14,17 @@ require("chart.js/auto");
|
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
|
|
16
16
|
var Graphic = function Graphic(_ref) {
|
|
17
|
-
var data = _ref.data
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
var data = _ref.data;
|
|
18
|
+
var options = {
|
|
19
|
+
plugins: {
|
|
20
|
+
legend: {
|
|
21
|
+
position: "left"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
20
25
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
21
26
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactChartjs.Chart, {
|
|
22
|
-
type:
|
|
27
|
+
type: "doughnut",
|
|
23
28
|
data: data,
|
|
24
29
|
options: options
|
|
25
30
|
})
|
|
@@ -13,6 +13,6 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _templateObject;
|
|
15
15
|
|
|
16
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)([""])));
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n"])));
|
|
17
17
|
|
|
18
18
|
exports.Container = Container;
|
|
@@ -32,7 +32,15 @@ var VersionItem = function VersionItem(_ref) {
|
|
|
32
32
|
currentVersion = _ref.currentVersion,
|
|
33
33
|
_ref$productOwner = _ref.productOwner,
|
|
34
34
|
productOwner = _ref$productOwner === void 0 ? "owner test" : _ref$productOwner,
|
|
35
|
-
setVersion = _ref.setVersion
|
|
35
|
+
setVersion = _ref.setVersion,
|
|
36
|
+
timestamp = _ref.timestamp;
|
|
37
|
+
var textExportedDate = "";
|
|
38
|
+
|
|
39
|
+
if (timestamp !== null) {
|
|
40
|
+
var exportedDate = new Date(timestamp).toLocaleDateString();
|
|
41
|
+
textExportedDate = "\xD9ltima vez exportado: ".concat(exportedDate);
|
|
42
|
+
}
|
|
43
|
+
|
|
36
44
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
37
45
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
38
46
|
className: "header",
|
|
@@ -52,6 +60,8 @@ var VersionItem = function VersionItem(_ref) {
|
|
|
52
60
|
text: "Version " + version,
|
|
53
61
|
headerType: "input-name-header",
|
|
54
62
|
color: _variables.GlobalColors.magenta_s2
|
|
63
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
64
|
+
children: textExportedDate
|
|
55
65
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
56
66
|
children: currentVersion ? "Version actual" : articleStatus ? "Edición Content-oh!" : "Version de " + productOwner
|
|
57
67
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
@@ -72,7 +72,7 @@ var FullProductNameHeader = function FullProductNameHeader(_ref) {
|
|
|
72
72
|
feature: "Prov",
|
|
73
73
|
value: headerData === null || headerData === void 0 ? void 0 : (_headerData$article4 = headerData.article) === null || _headerData$article4 === void 0 ? void 0 : _headerData$article4.company_name
|
|
74
74
|
}, {
|
|
75
|
-
feature: "
|
|
75
|
+
feature: "UPC",
|
|
76
76
|
value: (headerData === null || headerData === void 0 ? void 0 : (_headerData$article5 = headerData.article) === null || _headerData$article5 === void 0 ? void 0 : _headerData$article5.upc) || (headerData === null || headerData === void 0 ? void 0 : headerData.upc)
|
|
77
77
|
}]
|
|
78
78
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_AvatarAndValidation.AvatarAndValidation, {
|
|
@@ -127,7 +127,8 @@ var VersionSelector = function VersionSelector(_ref) {
|
|
|
127
127
|
articleStatus: item.article_status,
|
|
128
128
|
currentVersion: item.version === currentVersion,
|
|
129
129
|
productOwner: companyName,
|
|
130
|
-
setVersion: setVersion
|
|
130
|
+
setVersion: setVersion,
|
|
131
|
+
timestamp: item.timestamp
|
|
131
132
|
}, item.version);
|
|
132
133
|
})
|
|
133
134
|
})]
|
|
@@ -36,98 +36,146 @@ ProviderProductEditionDefault.args = {
|
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
description_status: "AP",
|
|
43
|
-
images_status: "ACA",
|
|
44
|
-
prio: "none",
|
|
45
|
-
version: 2,
|
|
46
|
-
brand: null,
|
|
39
|
+
articleStatus: "ACA",
|
|
40
|
+
version: 5,
|
|
41
|
+
missing: {},
|
|
47
42
|
article: {
|
|
48
|
-
category: "
|
|
49
|
-
company_name: "
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
upc: "168462"
|
|
43
|
+
category: "Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
|
|
44
|
+
company_name: "SIKA MEXICANA S.A. DE C.V.",
|
|
45
|
+
company_id: 383,
|
|
46
|
+
id_category: "2249",
|
|
47
|
+
id_article: 29457,
|
|
48
|
+
name: "SIKA TECHO FRESCO SUPER 15",
|
|
49
|
+
upc: "111187"
|
|
56
50
|
},
|
|
51
|
+
asignations: [],
|
|
57
52
|
retailers: [{
|
|
58
53
|
id: 58,
|
|
59
|
-
name: "The Home Depot Golden"
|
|
54
|
+
name: "The Home Depot Golden",
|
|
55
|
+
country: "México",
|
|
56
|
+
id_region: 1,
|
|
57
|
+
active: 1
|
|
58
|
+
}, {
|
|
59
|
+
id: 59,
|
|
60
|
+
name: "The Home Depot Platinum",
|
|
61
|
+
country: "México",
|
|
62
|
+
id_region: 1,
|
|
63
|
+
active: 1
|
|
64
|
+
}, {
|
|
65
|
+
id: 61,
|
|
66
|
+
name: "Home Depot TAB",
|
|
67
|
+
country: "México",
|
|
68
|
+
id_region: 1,
|
|
69
|
+
active: 1
|
|
60
70
|
}],
|
|
61
|
-
|
|
62
|
-
datasheets: 1,
|
|
63
|
-
descriptions: 1,
|
|
64
|
-
images: 1
|
|
65
|
-
},
|
|
66
|
-
statusByRetailer: {
|
|
67
|
-
58: {
|
|
68
|
-
datasheet: "AP",
|
|
69
|
-
description: "AP",
|
|
70
|
-
images: "ACA"
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
retailersWithService: ["58"],
|
|
74
|
-
id_article: 78773,
|
|
71
|
+
percentage: 33.35,
|
|
75
72
|
retailersAvailable: [{
|
|
76
73
|
id: 58,
|
|
77
|
-
name: "The Home Depot Golden"
|
|
74
|
+
name: "The Home Depot Golden",
|
|
75
|
+
country: "México",
|
|
76
|
+
id_region: 1,
|
|
77
|
+
active: 1
|
|
78
|
+
}, {
|
|
79
|
+
id: 59,
|
|
80
|
+
name: "The Home Depot Platinum",
|
|
81
|
+
country: "México",
|
|
82
|
+
id_region: 1,
|
|
83
|
+
active: 1
|
|
84
|
+
}, {
|
|
85
|
+
id: 61,
|
|
86
|
+
name: "Home Depot TAB",
|
|
87
|
+
country: "México",
|
|
88
|
+
id_region: 1,
|
|
89
|
+
active: 1
|
|
90
|
+
}],
|
|
91
|
+
upc: "111187",
|
|
92
|
+
name: "SIKA TECHO FRESCO SUPER 15",
|
|
93
|
+
categoryName: "Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
|
|
94
|
+
id_category: "2249",
|
|
95
|
+
id_article: 29457,
|
|
96
|
+
services: [{
|
|
97
|
+
id_article: 29457,
|
|
98
|
+
service: "datasheet",
|
|
99
|
+
quantity: 1,
|
|
100
|
+
price: 0,
|
|
101
|
+
id_user: 1237,
|
|
102
|
+
datasheet_common: null,
|
|
103
|
+
discount: null
|
|
78
104
|
}]
|
|
79
105
|
},
|
|
80
106
|
productToEdit: {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
product: {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
description_status: "AP",
|
|
88
|
-
images_status: "ACA",
|
|
89
|
-
prio: "none",
|
|
90
|
-
version: 2,
|
|
91
|
-
brand: null,
|
|
107
|
+
idCategory: "2249",
|
|
108
|
+
ArticleId: 29457,
|
|
109
|
+
product: [{
|
|
110
|
+
articleStatus: "ACA",
|
|
111
|
+
version: 5,
|
|
112
|
+
missing: {},
|
|
92
113
|
article: {
|
|
93
|
-
category: "
|
|
94
|
-
company_name: "
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
upc: "168462"
|
|
114
|
+
category: "Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
|
|
115
|
+
company_name: "SIKA MEXICANA S.A. DE C.V.",
|
|
116
|
+
company_id: 383,
|
|
117
|
+
id_category: "2249",
|
|
118
|
+
id_article: 29457,
|
|
119
|
+
name: "SIKA TECHO FRESCO SUPER 15",
|
|
120
|
+
upc: "111187"
|
|
101
121
|
},
|
|
122
|
+
asignations: [],
|
|
102
123
|
retailers: [{
|
|
103
124
|
id: 58,
|
|
104
|
-
name: "The Home Depot Golden"
|
|
125
|
+
name: "The Home Depot Golden",
|
|
126
|
+
country: "México",
|
|
127
|
+
id_region: 1,
|
|
128
|
+
active: 1
|
|
129
|
+
}, {
|
|
130
|
+
id: 59,
|
|
131
|
+
name: "The Home Depot Platinum",
|
|
132
|
+
country: "México",
|
|
133
|
+
id_region: 1,
|
|
134
|
+
active: 1
|
|
135
|
+
}, {
|
|
136
|
+
id: 61,
|
|
137
|
+
name: "Home Depot TAB",
|
|
138
|
+
country: "México",
|
|
139
|
+
id_region: 1,
|
|
140
|
+
active: 1
|
|
105
141
|
}],
|
|
106
|
-
|
|
107
|
-
datasheets: 1,
|
|
108
|
-
descriptions: 1,
|
|
109
|
-
images: 1
|
|
110
|
-
},
|
|
111
|
-
statusByRetailer: {
|
|
112
|
-
58: {
|
|
113
|
-
datasheet: "AP",
|
|
114
|
-
description: "AP",
|
|
115
|
-
images: "ACA"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
retailersWithService: ["58"],
|
|
119
|
-
id_article: 78773,
|
|
142
|
+
percentage: 33.35,
|
|
120
143
|
retailersAvailable: [{
|
|
121
144
|
id: 58,
|
|
122
|
-
name: "The Home Depot Golden"
|
|
145
|
+
name: "The Home Depot Golden",
|
|
146
|
+
country: "México",
|
|
147
|
+
id_region: 1,
|
|
148
|
+
active: 1
|
|
149
|
+
}, {
|
|
150
|
+
id: 59,
|
|
151
|
+
name: "The Home Depot Platinum",
|
|
152
|
+
country: "México",
|
|
153
|
+
id_region: 1,
|
|
154
|
+
active: 1
|
|
155
|
+
}, {
|
|
156
|
+
id: 61,
|
|
157
|
+
name: "Home Depot TAB",
|
|
158
|
+
country: "México",
|
|
159
|
+
id_region: 1,
|
|
160
|
+
active: 1
|
|
161
|
+
}],
|
|
162
|
+
upc: "111187",
|
|
163
|
+
name: "SIKA TECHO FRESCO SUPER 15",
|
|
164
|
+
categoryName: "Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
|
|
165
|
+
id_category: "2249",
|
|
166
|
+
id_article: 29457,
|
|
167
|
+
services: [{
|
|
168
|
+
id_article: 29457,
|
|
169
|
+
service: "datasheet",
|
|
170
|
+
quantity: 1,
|
|
171
|
+
price: 0,
|
|
172
|
+
id_user: 1237,
|
|
173
|
+
datasheet_common: null,
|
|
174
|
+
discount: null
|
|
123
175
|
}]
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
location: {
|
|
127
|
-
state: {
|
|
128
|
-
origin: "Contentoh"
|
|
129
|
-
}
|
|
176
|
+
}]
|
|
130
177
|
},
|
|
178
|
+
location: {},
|
|
131
179
|
user: {
|
|
132
180
|
id_user: 1237,
|
|
133
181
|
name: "The Home",
|
|
@@ -31,59 +31,59 @@ RetailerProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.
|
|
34
|
+
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIwYjY2YTRhOS03NzkwLTQwMzQtYTMwYS1jMDA4MDg5NjI4NjciLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6IjBiNjZhNGE5LTc3OTAtNDAzNC1hMzBhLWMwMDgwODk2Mjg2NyIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiI4ZjA2YmU0NC04ZWEzLTQ5OWMtOGFjZC0xMDlmMDZiZWI1MjAiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2MDA3NjQ5MywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2MDA4MDA5MywiaWF0IjoxNjYwMDc2NDkzLCJlbWFpbCI6ImJheWFkaTE1MzhAbW5xbG0uY29tIn0.aw_x1A8WR2MCp_Kz-T2Jcg0ZtuKwyzQ23yT_OoKr-aGJmEjSPihmksWgLZr9hJXyfvU0JndaVMM_3DRly1TdtJ264zwH4dZ7Cp9gF4TSXG16HQxIIPUA4NnwdpOnlBdE9E27mCXs4XYnCZ7dRMXnkjpRL4PVbrGji9qbEEJR6TxCJafR-zes1o4HC1KfQ5QF4s5I_LYQYbD-Ot0A1zDiJg34HR9tTILu5f4uc_2Nj8bqqYJsEdKg982WWO9ac2uKRPXQqNL6CsdltnSeQQcnS6Wj5DJTRRoc-lRdE6ekpAvDGPo0Dyj1Q8GYH3uxvM-pVu8J1Z_JOtO5j5mPN9krpA",
|
|
35
35
|
productSelected: {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
services: {
|
|
37
|
+
datasheets: 0,
|
|
38
|
+
descriptions: 0,
|
|
39
|
+
images: 1
|
|
40
40
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
41
|
+
orderId: 1789,
|
|
42
|
+
status: "ACA",
|
|
43
|
+
datasheet_status: "NS",
|
|
44
|
+
prio: "none",
|
|
45
|
+
version: 2,
|
|
46
|
+
description_status: "NS",
|
|
47
|
+
images_status: "ACA",
|
|
48
|
+
article: {
|
|
49
|
+
id_article: 68865,
|
|
50
|
+
id_category: "2999",
|
|
51
|
+
name: "RESIZE",
|
|
52
|
+
upc: "169955",
|
|
53
|
+
timestamp: "2022-06-21T16:03:10.000Z",
|
|
54
|
+
id_user: 1238,
|
|
55
|
+
status: "NULL",
|
|
56
|
+
active: 0,
|
|
57
|
+
company_id: 819,
|
|
58
|
+
SKU: null,
|
|
59
|
+
Descripcion: null,
|
|
60
|
+
Proveedor: null,
|
|
61
|
+
id_proveedor: 0,
|
|
62
|
+
company_name: "The Home Depot Resize",
|
|
63
|
+
country: "México",
|
|
64
|
+
id_order: 1789,
|
|
65
|
+
id_datasheet_especialist: null,
|
|
66
|
+
id_datasheet_facilitator: null,
|
|
67
|
+
id_description_especialist: null,
|
|
68
|
+
id_description_facilitator: null,
|
|
69
|
+
id_images_especialist: 1250,
|
|
70
|
+
id_images_facilitator: 424,
|
|
71
|
+
id_auditor: null,
|
|
72
|
+
id_recepcionist: null,
|
|
73
|
+
category: "Resizing|Resizing|Resizing",
|
|
74
|
+
missingAttributes: null,
|
|
75
|
+
missingDescriptions: null,
|
|
76
|
+
missingImages: null
|
|
77
77
|
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
78
|
+
retailers: [{
|
|
79
|
+
id: 60,
|
|
80
|
+
name: "The Home Depot Resizing",
|
|
81
|
+
country: "México",
|
|
82
|
+
id_region: 1,
|
|
83
|
+
active: 1
|
|
84
84
|
}],
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
country: "México",
|
|
86
|
+
upc: "169955"
|
|
87
87
|
},
|
|
88
88
|
location: {
|
|
89
89
|
product: {
|
|
@@ -92,22 +92,22 @@ RetailerProductEditionDefault.args = {
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
user: {
|
|
95
|
-
id_user:
|
|
96
|
-
name: "
|
|
95
|
+
id_user: 425,
|
|
96
|
+
name: "Auditor QA",
|
|
97
97
|
last_name: " ",
|
|
98
|
-
email: "
|
|
98
|
+
email: "ladiboh785@mi166.com",
|
|
99
99
|
position: "Tester",
|
|
100
100
|
telephone: null,
|
|
101
101
|
country: null,
|
|
102
102
|
id_company: 254,
|
|
103
|
-
id_cognito: "
|
|
103
|
+
id_cognito: "23a3f496-4e38-4e12-9bf5-7f90b77a2f35",
|
|
104
104
|
birth_Date: null,
|
|
105
105
|
about_me: null,
|
|
106
106
|
zip_code: null,
|
|
107
107
|
address: null,
|
|
108
108
|
job: null,
|
|
109
109
|
id_stripe: null,
|
|
110
|
-
id_role:
|
|
110
|
+
id_role: 1,
|
|
111
111
|
active: 1,
|
|
112
112
|
is_retailer: 0,
|
|
113
113
|
email_notify: null,
|
|
@@ -122,6 +122,6 @@ RetailerProductEditionDefault.args = {
|
|
|
122
122
|
products_limit: "1000",
|
|
123
123
|
type: "Enterprise"
|
|
124
124
|
},
|
|
125
|
-
src: "https://content-management-profile-prod.s3.amazonaws.com/id-
|
|
125
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-425/425.png?1659649029658"
|
|
126
126
|
}
|
|
127
127
|
};
|
|
@@ -118,7 +118,7 @@ var reducerImages = function reducerImages(state, action) {
|
|
|
118
118
|
|
|
119
119
|
case "changeAttrValue":
|
|
120
120
|
var index = attrForImgs.general.findIndex(function (f) {
|
|
121
|
-
return f.id
|
|
121
|
+
return f.id = action.id;
|
|
122
122
|
});
|
|
123
123
|
|
|
124
124
|
if (index !== -1) {
|
|
@@ -1101,7 +1101,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1101
1101
|
return statusArray.includes(srvActive) && (["RA", "RC"].includes(product === null || product === void 0 ? void 0 : product.status) || srv.filter(function (serv) {
|
|
1102
1102
|
var _serv$status;
|
|
1103
1103
|
|
|
1104
|
-
return
|
|
1104
|
+
return statusArray.includes((_serv$status = serv.status) === null || _serv$status === void 0 ? void 0 : _serv$status.replace(/.*\//, ""));
|
|
1105
1105
|
}).length === srv.length);
|
|
1106
1106
|
|
|
1107
1107
|
case 4:
|
|
@@ -1897,7 +1897,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1897
1897
|
headerType: "input-name-header"
|
|
1898
1898
|
}))]
|
|
1899
1899
|
})
|
|
1900
|
-
}),
|
|
1900
|
+
}), (userAssigned(activeTab) || auditorAssigned()) && product["".concat(getConcept(activeTab), "_status")] !== "NS" && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1901
1901
|
className: "commentary-box",
|
|
1902
1902
|
children: [!comment ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1903
1903
|
className: "commentary",
|
package/dist/index.js
CHANGED
|
@@ -758,19 +758,6 @@ Object.keys(_CustomerType).forEach(function (key) {
|
|
|
758
758
|
});
|
|
759
759
|
});
|
|
760
760
|
|
|
761
|
-
var _Dashboard = require("./components/pages/Dashboard");
|
|
762
|
-
|
|
763
|
-
Object.keys(_Dashboard).forEach(function (key) {
|
|
764
|
-
if (key === "default" || key === "__esModule") return;
|
|
765
|
-
if (key in exports && exports[key] === _Dashboard[key]) return;
|
|
766
|
-
Object.defineProperty(exports, key, {
|
|
767
|
-
enumerable: true,
|
|
768
|
-
get: function get() {
|
|
769
|
-
return _Dashboard[key];
|
|
770
|
-
}
|
|
771
|
-
});
|
|
772
|
-
});
|
|
773
|
-
|
|
774
761
|
var _EmailResetPassword = require("./components/pages/EmailResetPassword");
|
|
775
762
|
|
|
776
763
|
Object.keys(_EmailResetPassword).forEach(function (key) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentoh-components-library",
|
|
3
|
-
"version": "21.2.
|
|
3
|
+
"version": "21.2.7",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@aws-amplify/auth": "^4.5.3",
|
|
6
6
|
"@aws-amplify/datastore": "^3.11.0",
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"prop-types": "^15.7.2",
|
|
23
23
|
"react": "^17.0.2",
|
|
24
24
|
"react-chartjs-2": "^4.0.1",
|
|
25
|
-
"react-datepicker": "^4.8.0",
|
|
26
25
|
"react-dom": "^17.0.2",
|
|
27
26
|
"react-draft-wysiwyg": "^1.14.7",
|
|
28
27
|
"react-dropzone": "^12.0.4",
|
|
@@ -2,11 +2,17 @@ import { Container } from "./styles";
|
|
|
2
2
|
import { Chart } from "react-chartjs-2";
|
|
3
3
|
import "chart.js/auto";
|
|
4
4
|
|
|
5
|
-
export const Graphic = ({ data
|
|
6
|
-
|
|
5
|
+
export const Graphic = ({ data }) => {
|
|
6
|
+
const options = {
|
|
7
|
+
plugins: {
|
|
8
|
+
legend: {
|
|
9
|
+
position: "left",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
};
|
|
7
13
|
return (
|
|
8
14
|
<Container>
|
|
9
|
-
<Chart type=
|
|
15
|
+
<Chart type="doughnut" data={data} options={options} />
|
|
10
16
|
</Container>
|
|
11
17
|
);
|
|
12
18
|
};
|
|
@@ -13,7 +13,14 @@ export const VersionItem = ({
|
|
|
13
13
|
currentVersion,
|
|
14
14
|
productOwner = "owner test",
|
|
15
15
|
setVersion,
|
|
16
|
+
timestamp,
|
|
16
17
|
}) => {
|
|
18
|
+
let textExportedDate = "";
|
|
19
|
+
if (timestamp !== null) {
|
|
20
|
+
const exportedDate = new Date(timestamp).toLocaleDateString();
|
|
21
|
+
textExportedDate = `Ùltima vez exportado: ${exportedDate}`;
|
|
22
|
+
}
|
|
23
|
+
|
|
17
24
|
return (
|
|
18
25
|
<Container>
|
|
19
26
|
<div className="header">
|
|
@@ -33,6 +40,7 @@ export const VersionItem = ({
|
|
|
33
40
|
headerType={"input-name-header"}
|
|
34
41
|
color={GlobalColors.magenta_s2}
|
|
35
42
|
/>
|
|
43
|
+
<p>{textExportedDate}</p>
|
|
36
44
|
<p>
|
|
37
45
|
{currentVersion
|
|
38
46
|
? "Version actual"
|