contentoh-components-library 21.3.54 → 21.3.56
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 +0 -2
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +11 -68
- package/dist/components/organisms/Chat/Chat.stories.js +1 -21
- package/dist/components/organisms/Chat/ContainerItems/index.js +3 -19
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +191 -343
- package/dist/components/organisms/Chat/Footer/index.js +39 -48
- package/dist/components/organisms/Chat/index.js +3 -48
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/pages/Dashboard/Dashboard.stories.js +41 -34
- package/dist/components/pages/Dashboard/index.js +2 -2
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +127 -172
- package/dist/components/pages/ProviderProductEdition/index.js +129 -188
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +78 -75
- package/dist/components/pages/RetailerProductEdition/index.js +296 -287
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
- package/package.json +1 -1
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/HeaderTop/index.js +6 -52
- package/src/components/organisms/Chat/Chat.stories.js +0 -21
- package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
- package/src/components/organisms/Chat/ContainerItems/styles.js +2 -10
- package/src/components/organisms/Chat/ContentChat/index.js +6 -81
- package/src/components/organisms/Chat/Footer/index.js +0 -11
- package/src/components/organisms/Chat/index.js +3 -47
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/OrderDetail/index.js +0 -1
- package/src/components/pages/Dashboard/Dashboard.stories.js +43 -34
- package/src/components/pages/Dashboard/index.js +2 -2
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +130 -177
- package/src/components/pages/ProviderProductEdition/index.js +55 -105
- package/src/components/pages/ProviderProductEdition/styles.js +1 -5
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +74 -69
- package/src/components/pages/RetailerProductEdition/index.js +157 -129
- package/src/components/pages/RetailerProductEdition/styles.js +0 -4
- package/src/components/pages/RetailerProductEdition/utils.js +0 -37
|
@@ -7,12 +7,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.RetailerProductEditionDefault = void 0;
|
|
9
9
|
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
|
11
|
+
|
|
10
12
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
13
|
|
|
12
14
|
var _index = require("./index");
|
|
13
15
|
|
|
14
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
17
|
|
|
18
|
+
var _productSelected;
|
|
19
|
+
|
|
16
20
|
var _default = {
|
|
17
21
|
title: "Components/pages/RetailerProductEdition",
|
|
18
22
|
component: _index.RetailerProductEdition
|
|
@@ -31,102 +35,101 @@ RetailerProductEditionDefault.args = {
|
|
|
31
35
|
"Ficha técnica": false,
|
|
32
36
|
Imágenes: false
|
|
33
37
|
},
|
|
34
|
-
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
35
|
-
productSelected: {
|
|
36
|
-
orderId:
|
|
37
|
-
status: "
|
|
38
|
-
datasheet_status: "
|
|
38
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhNmM0ZDNkNi0yN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LdlP6lA",
|
|
39
|
+
productSelected: (_productSelected = {
|
|
40
|
+
orderId: 15160,
|
|
41
|
+
status: "SAC",
|
|
42
|
+
datasheet_status: "SAC",
|
|
39
43
|
prio: "none",
|
|
40
|
-
version:
|
|
41
|
-
description_status: "
|
|
42
|
-
images_status: "
|
|
43
|
-
brand:
|
|
44
|
-
retailerOrder:
|
|
44
|
+
version: 7,
|
|
45
|
+
description_status: "SAC",
|
|
46
|
+
images_status: "SAC",
|
|
47
|
+
brand: null,
|
|
48
|
+
retailerOrder: 1,
|
|
45
49
|
missing: {
|
|
46
50
|
datasheet: null,
|
|
47
51
|
descriptions: null,
|
|
48
52
|
images: null
|
|
53
|
+
}
|
|
54
|
+
}, (0, _defineProperty2.default)(_productSelected, "orderId", 14606), (0, _defineProperty2.default)(_productSelected, "status", "AC"), (0, _defineProperty2.default)(_productSelected, "datasheet_status", "AC"), (0, _defineProperty2.default)(_productSelected, "prio", "none"), (0, _defineProperty2.default)(_productSelected, "version", 3), (0, _defineProperty2.default)(_productSelected, "description_status", "AC"), (0, _defineProperty2.default)(_productSelected, "images_status", "AC"), (0, _defineProperty2.default)(_productSelected, "statusByRetailer", {
|
|
55
|
+
4: {
|
|
56
|
+
datasheet: "AC",
|
|
57
|
+
description: "AC",
|
|
58
|
+
images: "AC"
|
|
49
59
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
images:
|
|
60
|
+
5: {
|
|
61
|
+
datasheet: "AC",
|
|
62
|
+
description: "AC",
|
|
63
|
+
images: "AC"
|
|
54
64
|
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
id_category: "697",
|
|
60
|
-
id_datasheet_especialist: 54,
|
|
61
|
-
id_datasheet_facilitator: 52,
|
|
62
|
-
id_description_especialist: 54,
|
|
63
|
-
id_description_facilitator: 52,
|
|
64
|
-
id_images_especialist: 55,
|
|
65
|
-
id_images_facilitator: 53,
|
|
66
|
-
id_order: 15142,
|
|
67
|
-
id_article: 39270,
|
|
68
|
-
id_auditor: 37,
|
|
69
|
-
name: "Acondicionador Garnier Fructis 650 ml",
|
|
70
|
-
timestamp: "2023-03-27T18:37:48.000Z",
|
|
71
|
-
upc: "750955287656712"
|
|
65
|
+
6: {
|
|
66
|
+
description: "AC",
|
|
67
|
+
images: "AC",
|
|
68
|
+
datasheet: "AC"
|
|
72
69
|
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
image: "https://content-management-images.s3.amazonaws.com/retailers/29.png",
|
|
83
|
-
services: ["NA", "NA", "NA", "CA", "CA", "CA", "NA", "NA", "NA"],
|
|
84
|
-
percentage: 100
|
|
85
|
-
}, {
|
|
86
|
-
id: 63,
|
|
87
|
-
name: "DAX",
|
|
88
|
-
image: "https://content-management-images.s3.amazonaws.com/retailers/63.png",
|
|
89
|
-
services: ["NA", "NA", "NA", "NA", "NA", "NA", "AC", "AC", "CA"],
|
|
90
|
-
percentage: 83
|
|
91
|
-
}],
|
|
92
|
-
statusByRetailer: {
|
|
93
|
-
12: {
|
|
94
|
-
datasheet: "CA",
|
|
95
|
-
description: "CA"
|
|
96
|
-
},
|
|
97
|
-
29: {
|
|
98
|
-
datasheet: "CA",
|
|
99
|
-
description: "CA"
|
|
100
|
-
}
|
|
70
|
+
12: {
|
|
71
|
+
datasheet: "AC",
|
|
72
|
+
description: "AC",
|
|
73
|
+
images: "AC"
|
|
74
|
+
},
|
|
75
|
+
17: {
|
|
76
|
+
datasheet: "AC",
|
|
77
|
+
description: "AC",
|
|
78
|
+
images: "AC"
|
|
101
79
|
}
|
|
102
|
-
},
|
|
80
|
+
}), (0, _defineProperty2.default)(_productSelected, "article", {
|
|
81
|
+
category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
|
|
82
|
+
company_name: "Demo",
|
|
83
|
+
country: "México",
|
|
84
|
+
id_category: "2366",
|
|
85
|
+
id_datasheet_especialist: null,
|
|
86
|
+
id_datasheet_facilitator: null,
|
|
87
|
+
id_description_especialist: null,
|
|
88
|
+
id_description_facilitator: null,
|
|
89
|
+
id_images_especialist: null,
|
|
90
|
+
id_images_facilitator: null,
|
|
91
|
+
id_order: 15160,
|
|
92
|
+
id_article: 39290,
|
|
93
|
+
id_auditor: 37,
|
|
94
|
+
name: "MOLDURA MARCO MODER 11X4X244 CM",
|
|
95
|
+
timestamp: "2023-04-19T21:36:02.000Z",
|
|
96
|
+
upc: "100030"
|
|
97
|
+
}), (0, _defineProperty2.default)(_productSelected, "retailers", [{
|
|
98
|
+
id: 58,
|
|
99
|
+
name: "The Home Depot Golden"
|
|
100
|
+
}, {
|
|
101
|
+
id: 68,
|
|
102
|
+
name: "The Home Depot Merchants"
|
|
103
|
+
}]), (0, _defineProperty2.default)(_productSelected, "statusByRetailer", {
|
|
104
|
+
58: {
|
|
105
|
+
datasheet: "SAC",
|
|
106
|
+
description: "SAC",
|
|
107
|
+
images: "SAC"
|
|
108
|
+
}
|
|
109
|
+
}), _productSelected),
|
|
103
110
|
location: {
|
|
104
111
|
product: {
|
|
105
|
-
articleId:
|
|
106
|
-
versionId:
|
|
107
|
-
},
|
|
108
|
-
state: {
|
|
109
|
-
withChat: true,
|
|
110
|
-
chatType: "product_status"
|
|
112
|
+
articleId: 39290,
|
|
113
|
+
versionId: 7
|
|
111
114
|
}
|
|
112
115
|
},
|
|
113
116
|
user: {
|
|
114
|
-
id_user:
|
|
115
|
-
name: "
|
|
116
|
-
last_name: "
|
|
117
|
-
email: "
|
|
118
|
-
position: "
|
|
117
|
+
id_user: 51,
|
|
118
|
+
name: "ADMIN PRUEBA",
|
|
119
|
+
last_name: "",
|
|
120
|
+
email: "etc@contentoh.com",
|
|
121
|
+
position: "",
|
|
119
122
|
telephone: "",
|
|
120
|
-
country: "
|
|
123
|
+
country: "",
|
|
121
124
|
id_company: 2,
|
|
122
|
-
id_cognito: "
|
|
125
|
+
id_cognito: "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
|
|
123
126
|
birth_Date: null,
|
|
124
127
|
about_me: "",
|
|
125
128
|
zip_code: "",
|
|
126
129
|
address: "",
|
|
127
130
|
job: "",
|
|
128
131
|
id_stripe: "",
|
|
129
|
-
id_role:
|
|
132
|
+
id_role: 1,
|
|
130
133
|
active: 1,
|
|
131
134
|
is_retailer: 0,
|
|
132
135
|
email_notify: 1,
|
|
@@ -142,6 +145,6 @@ RetailerProductEditionDefault.args = {
|
|
|
142
145
|
products_limit: "3",
|
|
143
146
|
type: "PyMES"
|
|
144
147
|
},
|
|
145
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
148
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1682016291518"
|
|
146
149
|
}
|
|
147
150
|
};
|