contentoh-components-library 21.1.61 → 21.1.62
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/InputFormatter/index.js +1 -2
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +30 -42
- package/package.json +1 -1
- package/src/components/atoms/InputFormatter/index.js +1 -2
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +30 -44
|
@@ -79,7 +79,6 @@ var InputFormatter = function InputFormatter(_ref) {
|
|
|
79
79
|
|
|
80
80
|
var _onChange = function onChange(valueInput, delta, user, h) {
|
|
81
81
|
var value = "";
|
|
82
|
-
console.log(valueInput, "valueInput");
|
|
83
82
|
|
|
84
83
|
try {
|
|
85
84
|
if (h.getLength() - 1 <= maxLength) {
|
|
@@ -155,7 +154,7 @@ var InputFormatter = function InputFormatter(_ref) {
|
|
|
155
154
|
ref: function ref(el) {
|
|
156
155
|
return setQuill(el);
|
|
157
156
|
},
|
|
158
|
-
|
|
157
|
+
defaultValue: getValue(inputValue) //disabled={!props.enableInputs}
|
|
159
158
|
,
|
|
160
159
|
modules: {
|
|
161
160
|
toolbar: ["bold"]
|
|
@@ -31,49 +31,49 @@ RetailerProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.
|
|
34
|
+
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5ZDBjYzVjOC1hODllLTRiZGQtOWUyZC0zNThhMDFjYzlhNjIiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjp0cnVlLCJjb2duaXRvOnVzZXJuYW1lIjoiOWQwY2M1YzgtYTg5ZS00YmRkLTllMmQtMzU4YTAxY2M5YTYyIiwiYXVkIjoiNTJkOXNra2RjZzhxanA4OG9vazF1c2U2bWsiLCJldmVudF9pZCI6IjBkNmZjYzMxLTBkZTctNGU1NC1iYTYzLWU1YzU3ODE4MzZkNSIsInRva2VuX3VzZSI6ImlkIiwiYXV0aF90aW1lIjoxNjU4OTQzMjk0LCJuYW1lIjoiSXNtYWVsIExvcGV6IiwicGhvbmVfbnVtYmVyIjoiKzUyMzExMTM2NjMzNiIsImV4cCI6MTY1ODk0Njg5NCwiaWF0IjoxNjU4OTQzMjk0LCJlbWFpbCI6Imlsb3BlekBjb250ZW50b2guY29tIn0.qO6HSA8-g0XQSKbvZfJfrKeztVmBUE4yBm_1Vb9QpQaNF_KYQi2onyxTCViMpN4yxtwN0ToBTpZO4h5oK0qZl0Ua2qo64eKh1_-pLoHQnlaELVgkL33eYcigZG78W9zhrC2Eregcp62dlrzV-SLDBadZoiIy5Ywn4t_NrYhSpHXpRxRsr5it1DAumMQ6hQhnZwrJmXa7mTZ9OoK4MJTI19LC15c6xXwq-GzZ0olI5mkrdZsfC7Ginf5PhXMHIsx-rx0GTFSzMq4sfYf0ggZp7L5hHGtSMoIIOSSJGaL5xrgCb7D7bFqS7oG54OO2z6BgIkaEZT2dSHfvCZgD94k_jg",
|
|
35
35
|
productSelected: {
|
|
36
36
|
services: {
|
|
37
|
-
datasheets:
|
|
38
|
-
descriptions:
|
|
37
|
+
datasheets: 1,
|
|
38
|
+
descriptions: 1,
|
|
39
39
|
images: 1
|
|
40
40
|
},
|
|
41
|
-
orderId:
|
|
42
|
-
status: "
|
|
43
|
-
datasheet_status: "
|
|
41
|
+
orderId: 2012,
|
|
42
|
+
status: "QF",
|
|
43
|
+
datasheet_status: "QF",
|
|
44
44
|
prio: "none",
|
|
45
45
|
version: 2,
|
|
46
|
-
description_status: "
|
|
47
|
-
images_status:
|
|
46
|
+
description_status: "QF",
|
|
47
|
+
images_status: "AF",
|
|
48
48
|
article: {
|
|
49
|
-
id_article:
|
|
50
|
-
id_category: "
|
|
51
|
-
name:
|
|
52
|
-
upc: "
|
|
53
|
-
timestamp: "2022-
|
|
54
|
-
id_user:
|
|
49
|
+
id_article: 76958,
|
|
50
|
+
id_category: "2627",
|
|
51
|
+
name: "COLGANTE MAGIC NAVIDAD",
|
|
52
|
+
upc: "163963",
|
|
53
|
+
timestamp: "2022-07-07T17:01:17.000Z",
|
|
54
|
+
id_user: 1195,
|
|
55
55
|
status: "NULL",
|
|
56
56
|
active: 1,
|
|
57
|
-
company_id:
|
|
57
|
+
company_id: 657,
|
|
58
58
|
SKU: null,
|
|
59
59
|
Descripcion: null,
|
|
60
60
|
Proveedor: null,
|
|
61
61
|
id_proveedor: 0,
|
|
62
|
-
company_name: "
|
|
62
|
+
company_name: "",
|
|
63
63
|
country: null,
|
|
64
|
-
id_order:
|
|
65
|
-
id_datasheet_especialist:
|
|
66
|
-
id_datasheet_facilitator:
|
|
67
|
-
id_description_especialist:
|
|
68
|
-
id_description_facilitator:
|
|
69
|
-
id_images_especialist:
|
|
70
|
-
id_images_facilitator:
|
|
71
|
-
id_auditor:
|
|
64
|
+
id_order: 2012,
|
|
65
|
+
id_datasheet_especialist: 1248,
|
|
66
|
+
id_datasheet_facilitator: 1252,
|
|
67
|
+
id_description_especialist: 334,
|
|
68
|
+
id_description_facilitator: 1252,
|
|
69
|
+
id_images_especialist: 1251,
|
|
70
|
+
id_images_facilitator: 1286,
|
|
71
|
+
id_auditor: 1254,
|
|
72
72
|
id_recepcionist: null,
|
|
73
|
-
category: "
|
|
74
|
-
missingAttributes:
|
|
75
|
-
missingDescriptions:
|
|
76
|
-
missingImages:
|
|
73
|
+
category: "Navidad|Esferas y Colgantes|Colgantes",
|
|
74
|
+
missingAttributes: 3,
|
|
75
|
+
missingDescriptions: 0,
|
|
76
|
+
missingImages: 0
|
|
77
77
|
},
|
|
78
78
|
retailers: [{
|
|
79
79
|
id: 58,
|
|
@@ -81,21 +81,9 @@ RetailerProductEditionDefault.args = {
|
|
|
81
81
|
country: "México",
|
|
82
82
|
id_region: 1,
|
|
83
83
|
active: 1
|
|
84
|
-
}, {
|
|
85
|
-
id: 59,
|
|
86
|
-
name: "The Home Depot Platinum",
|
|
87
|
-
country: "México",
|
|
88
|
-
id_region: 1,
|
|
89
|
-
active: 1
|
|
90
|
-
}, {
|
|
91
|
-
id: 61,
|
|
92
|
-
name: "Home Depot TAB",
|
|
93
|
-
country: "México",
|
|
94
|
-
id_region: 1,
|
|
95
|
-
active: 1
|
|
96
84
|
}],
|
|
97
85
|
country: null,
|
|
98
|
-
upc: "
|
|
86
|
+
upc: "163963"
|
|
99
87
|
},
|
|
100
88
|
location: {
|
|
101
89
|
product: {
|
|
@@ -134,6 +122,6 @@ RetailerProductEditionDefault.args = {
|
|
|
134
122
|
products_limit: "1000",
|
|
135
123
|
type: "Enterprise"
|
|
136
124
|
},
|
|
137
|
-
src: "https://content-management-profile-prod.s3.amazonaws.com/id-460/460.png?
|
|
125
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-460/460.png?1658943295529"
|
|
138
126
|
}
|
|
139
127
|
};
|
package/package.json
CHANGED
|
@@ -42,7 +42,6 @@ export const InputFormatter = ({
|
|
|
42
42
|
|
|
43
43
|
const onChange = (valueInput, delta, user, h) => {
|
|
44
44
|
let value = "";
|
|
45
|
-
console.log(valueInput, "valueInput");
|
|
46
45
|
try {
|
|
47
46
|
if (h.getLength() - 1 <= maxLength) {
|
|
48
47
|
let unformattedText = valueInput
|
|
@@ -113,7 +112,7 @@ export const InputFormatter = ({
|
|
|
113
112
|
<ReactQuill
|
|
114
113
|
id={inputId + ""}
|
|
115
114
|
ref={(el) => setQuill(el)}
|
|
116
|
-
|
|
115
|
+
defaultValue={getValue(inputValue)}
|
|
117
116
|
//disabled={!props.enableInputs}
|
|
118
117
|
modules={{ toolbar: ["bold"] }}
|
|
119
118
|
onKeyPress={(e) => {
|
|
@@ -16,49 +16,49 @@ RetailerProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5ZDBjYzVjOC1hODllLTRiZGQtOWUyZC0zNThhMDFjYzlhNjIiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjp0cnVlLCJjb2duaXRvOnVzZXJuYW1lIjoiOWQwY2M1YzgtYTg5ZS00YmRkLTllMmQtMzU4YTAxY2M5YTYyIiwiYXVkIjoiNTJkOXNra2RjZzhxanA4OG9vazF1c2U2bWsiLCJldmVudF9pZCI6IjBkNmZjYzMxLTBkZTctNGU1NC1iYTYzLWU1YzU3ODE4MzZkNSIsInRva2VuX3VzZSI6ImlkIiwiYXV0aF90aW1lIjoxNjU4OTQzMjk0LCJuYW1lIjoiSXNtYWVsIExvcGV6IiwicGhvbmVfbnVtYmVyIjoiKzUyMzExMTM2NjMzNiIsImV4cCI6MTY1ODk0Njg5NCwiaWF0IjoxNjU4OTQzMjk0LCJlbWFpbCI6Imlsb3BlekBjb250ZW50b2guY29tIn0.qO6HSA8-g0XQSKbvZfJfrKeztVmBUE4yBm_1Vb9QpQaNF_KYQi2onyxTCViMpN4yxtwN0ToBTpZO4h5oK0qZl0Ua2qo64eKh1_-pLoHQnlaELVgkL33eYcigZG78W9zhrC2Eregcp62dlrzV-SLDBadZoiIy5Ywn4t_NrYhSpHXpRxRsr5it1DAumMQ6hQhnZwrJmXa7mTZ9OoK4MJTI19LC15c6xXwq-GzZ0olI5mkrdZsfC7Ginf5PhXMHIsx-rx0GTFSzMq4sfYf0ggZp7L5hHGtSMoIIOSSJGaL5xrgCb7D7bFqS7oG54OO2z6BgIkaEZT2dSHfvCZgD94k_jg",
|
|
20
20
|
productSelected: {
|
|
21
21
|
services: {
|
|
22
|
-
datasheets:
|
|
23
|
-
descriptions:
|
|
22
|
+
datasheets: 1,
|
|
23
|
+
descriptions: 1,
|
|
24
24
|
images: 1,
|
|
25
25
|
},
|
|
26
|
-
orderId:
|
|
27
|
-
status: "
|
|
28
|
-
datasheet_status: "
|
|
26
|
+
orderId: 2012,
|
|
27
|
+
status: "QF",
|
|
28
|
+
datasheet_status: "QF",
|
|
29
29
|
prio: "none",
|
|
30
30
|
version: 2,
|
|
31
|
-
description_status: "
|
|
32
|
-
images_status:
|
|
31
|
+
description_status: "QF",
|
|
32
|
+
images_status: "AF",
|
|
33
33
|
article: {
|
|
34
|
-
id_article:
|
|
35
|
-
id_category: "
|
|
36
|
-
name:
|
|
37
|
-
upc: "
|
|
38
|
-
timestamp: "2022-
|
|
39
|
-
id_user:
|
|
34
|
+
id_article: 76958,
|
|
35
|
+
id_category: "2627",
|
|
36
|
+
name: "COLGANTE MAGIC NAVIDAD",
|
|
37
|
+
upc: "163963",
|
|
38
|
+
timestamp: "2022-07-07T17:01:17.000Z",
|
|
39
|
+
id_user: 1195,
|
|
40
40
|
status: "NULL",
|
|
41
41
|
active: 1,
|
|
42
|
-
company_id:
|
|
42
|
+
company_id: 657,
|
|
43
43
|
SKU: null,
|
|
44
44
|
Descripcion: null,
|
|
45
45
|
Proveedor: null,
|
|
46
46
|
id_proveedor: 0,
|
|
47
|
-
company_name: "
|
|
47
|
+
company_name: "",
|
|
48
48
|
country: null,
|
|
49
|
-
id_order:
|
|
50
|
-
id_datasheet_especialist:
|
|
51
|
-
id_datasheet_facilitator:
|
|
52
|
-
id_description_especialist:
|
|
53
|
-
id_description_facilitator:
|
|
54
|
-
id_images_especialist:
|
|
55
|
-
id_images_facilitator:
|
|
56
|
-
id_auditor:
|
|
49
|
+
id_order: 2012,
|
|
50
|
+
id_datasheet_especialist: 1248,
|
|
51
|
+
id_datasheet_facilitator: 1252,
|
|
52
|
+
id_description_especialist: 334,
|
|
53
|
+
id_description_facilitator: 1252,
|
|
54
|
+
id_images_especialist: 1251,
|
|
55
|
+
id_images_facilitator: 1286,
|
|
56
|
+
id_auditor: 1254,
|
|
57
57
|
id_recepcionist: null,
|
|
58
|
-
category: "
|
|
59
|
-
missingAttributes:
|
|
60
|
-
missingDescriptions:
|
|
61
|
-
missingImages:
|
|
58
|
+
category: "Navidad|Esferas y Colgantes|Colgantes",
|
|
59
|
+
missingAttributes: 3,
|
|
60
|
+
missingDescriptions: 0,
|
|
61
|
+
missingImages: 0,
|
|
62
62
|
},
|
|
63
63
|
retailers: [
|
|
64
64
|
{
|
|
@@ -68,23 +68,9 @@ RetailerProductEditionDefault.args = {
|
|
|
68
68
|
id_region: 1,
|
|
69
69
|
active: 1,
|
|
70
70
|
},
|
|
71
|
-
{
|
|
72
|
-
id: 59,
|
|
73
|
-
name: "The Home Depot Platinum",
|
|
74
|
-
country: "México",
|
|
75
|
-
id_region: 1,
|
|
76
|
-
active: 1,
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
id: 61,
|
|
80
|
-
name: "Home Depot TAB",
|
|
81
|
-
country: "México",
|
|
82
|
-
id_region: 1,
|
|
83
|
-
active: 1,
|
|
84
|
-
},
|
|
85
71
|
],
|
|
86
72
|
country: null,
|
|
87
|
-
upc: "
|
|
73
|
+
upc: "163963",
|
|
88
74
|
},
|
|
89
75
|
location: {
|
|
90
76
|
product: { articleId: 109485, versionId: 3 },
|
|
@@ -120,6 +106,6 @@ RetailerProductEditionDefault.args = {
|
|
|
120
106
|
products_limit: "1000",
|
|
121
107
|
type: "Enterprise",
|
|
122
108
|
},
|
|
123
|
-
src: "https://content-management-profile-prod.s3.amazonaws.com/id-460/460.png?
|
|
109
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-460/460.png?1658943295529",
|
|
124
110
|
},
|
|
125
111
|
};
|