contentoh-components-library 21.3.78 → 21.3.80
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/assets/fonts/roboto/LICENSE.txt +202 -0
- package/dist/components/atoms/Card/index.js +7 -2
- package/dist/components/atoms/GeneralInput/index.js +24 -20
- package/dist/components/atoms/InputFormatter/index.js +14 -16
- package/dist/components/atoms/TabSection/styles.js +1 -1
- package/dist/components/molecules/TabsMenu/index.js +23 -56
- package/dist/components/molecules/TagAndInput/index.js +0 -2
- package/dist/components/organisms/FullTabsMenu/index.js +2 -12
- package/dist/components/organisms/ImageDataTable/index.js +0 -2
- package/dist/components/pages/ProviderProductEdition/index.js +32 -54
- package/dist/components/pages/RetailerProductEdition/index.js +2 -28
- package/package.json +1 -1
- package/src/components/atoms/Card/index.js +1 -2
- package/src/components/atoms/GeneralInput/index.js +20 -21
- package/src/components/atoms/InputFormatter/index.js +14 -18
- package/src/components/molecules/AvatarAndValidation/index.js +1 -1
- package/src/components/molecules/TabsMenu/index.js +66 -119
- package/src/components/molecules/TagAndInput/index.js +0 -4
- package/src/components/organisms/FullTabsMenu/index.js +4 -16
- package/src/components/organisms/ImageDataTable/index.js +0 -3
- package/src/components/organisms/InputGroup/index.js +2 -5
- package/src/components/pages/ProviderProductEdition/index.js +6 -24
- package/src/components/pages/RetailerProductEdition/index.js +1 -26
|
@@ -47,7 +47,6 @@ export const InputGroup = ({
|
|
|
47
47
|
text={inputGroup?.dataGroup}
|
|
48
48
|
/>
|
|
49
49
|
)}
|
|
50
|
-
|
|
51
50
|
<div className="inputs-container">
|
|
52
51
|
{inputGroup?.inputs?.map((input, index) =>
|
|
53
52
|
activeSection === "Ficha técnica" ? (
|
|
@@ -119,11 +118,9 @@ export const InputGroup = ({
|
|
|
119
118
|
? "audit-class"
|
|
120
119
|
: ""
|
|
121
120
|
}
|
|
122
|
-
/>
|
|
123
|
-
|
|
121
|
+
/>
|
|
124
122
|
)
|
|
125
|
-
)
|
|
126
|
-
}
|
|
123
|
+
)}
|
|
127
124
|
</div>
|
|
128
125
|
</Container>
|
|
129
126
|
);
|
|
@@ -225,19 +225,6 @@ export const ProviderProductEdition = ({
|
|
|
225
225
|
Imágenes: null,
|
|
226
226
|
});
|
|
227
227
|
|
|
228
|
-
|
|
229
|
-
//! ==========================================Daniel===========================================
|
|
230
|
-
/* ====================================== Cambios =================================*/
|
|
231
|
-
const [desc, setDesc] = useState([])
|
|
232
|
-
const [fich, setFich] = useState([])
|
|
233
|
-
const [imag, setImag] = useState([])
|
|
234
|
-
|
|
235
|
-
/* ------------------------------------- Cambios ----------------------------------*/
|
|
236
|
-
//! ==========================================Daniel===========================================
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
228
|
const [inCart, setInCart] = useState(false);
|
|
242
229
|
const [dataGenericModal, setDataGenericModal] = useState({
|
|
243
230
|
message: "¿Estás seguro de continuar?",
|
|
@@ -1259,6 +1246,7 @@ export const ProviderProductEdition = ({
|
|
|
1259
1246
|
},
|
|
1260
1247
|
];
|
|
1261
1248
|
const sendToEvaluation = (result) => {
|
|
1249
|
+
console.log({ result });
|
|
1262
1250
|
if (result === "A") {
|
|
1263
1251
|
if (
|
|
1264
1252
|
origin[activeTab] === "RequestWithoutContentoh" &&
|
|
@@ -1291,7 +1279,7 @@ export const ProviderProductEdition = ({
|
|
|
1291
1279
|
}
|
|
1292
1280
|
} else {
|
|
1293
1281
|
if (
|
|
1294
|
-
|
|
1282
|
+
origin === "RequestWithoutContentoh" &&
|
|
1295
1283
|
!user.is_retailer &&
|
|
1296
1284
|
(!product.id_order || !product.orderId)
|
|
1297
1285
|
) {
|
|
@@ -1314,6 +1302,7 @@ export const ProviderProductEdition = ({
|
|
|
1314
1302
|
}
|
|
1315
1303
|
}
|
|
1316
1304
|
};
|
|
1305
|
+
|
|
1317
1306
|
return (
|
|
1318
1307
|
<Container headerTop={headerTop}>
|
|
1319
1308
|
<HeaderTop
|
|
@@ -1359,7 +1348,7 @@ export const ProviderProductEdition = ({
|
|
|
1359
1348
|
showApproveRejectAll={isRevision() && getSectionStatus()}
|
|
1360
1349
|
approveAll={() => {
|
|
1361
1350
|
if (
|
|
1362
|
-
|
|
1351
|
+
origin === "RequestWithoutContentoh" &&
|
|
1363
1352
|
!user.is_retailer &&
|
|
1364
1353
|
(!product.id_order || !product.orderId)
|
|
1365
1354
|
) {
|
|
@@ -1390,7 +1379,7 @@ export const ProviderProductEdition = ({
|
|
|
1390
1379
|
}}
|
|
1391
1380
|
rejectAll={() => {
|
|
1392
1381
|
if (
|
|
1393
|
-
|
|
1382
|
+
origin === "RequestWithoutContentoh" &&
|
|
1394
1383
|
!user.is_retailer &&
|
|
1395
1384
|
(!product.id_order || !product.orderId)
|
|
1396
1385
|
) {
|
|
@@ -1439,20 +1428,13 @@ export const ProviderProductEdition = ({
|
|
|
1439
1428
|
isRetailer={isRetailer}
|
|
1440
1429
|
showSaveButton={enableActions(product.version_status)}
|
|
1441
1430
|
version={version}
|
|
1442
|
-
|
|
1443
|
-
desc={ desc }
|
|
1444
|
-
setDesc={ setDesc }
|
|
1445
|
-
fich={fich}
|
|
1446
|
-
setFich={setFich}
|
|
1447
|
-
imag={imag}
|
|
1448
|
-
setImag={setImag}
|
|
1449
1431
|
updatedDescriptions={updatedDescriptions}
|
|
1450
1432
|
updatedDatasheets={updatedDatasheets}
|
|
1433
|
+
images={images}
|
|
1451
1434
|
selectedImages={selectedImages}
|
|
1452
1435
|
setUpdatedDescriptions={setUpdatedDescriptions}
|
|
1453
1436
|
setUpdatedDatasheets={setUpdatedDatasheets}
|
|
1454
1437
|
setSelectedImages={setSelectedImages}
|
|
1455
|
-
|
|
1456
1438
|
setShowVersionSelector={setShowVersionSelector}
|
|
1457
1439
|
onClickSave={() => {
|
|
1458
1440
|
switch (activeTab) {
|
|
@@ -226,17 +226,6 @@ export const RetailerProductEdition = ({
|
|
|
226
226
|
const [compare, setCompare] = useState(false);
|
|
227
227
|
const [valRejAll, setValRejAll] = useState(false);
|
|
228
228
|
|
|
229
|
-
//! ==========================================Daniel===========================================
|
|
230
|
-
/* ====================================== Cambios =================================*/
|
|
231
|
-
const [desc, setDesc] = useState([])
|
|
232
|
-
const [fich, setFich] = useState([])
|
|
233
|
-
const [imag, setImag] = useState([])
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
/* ------------------------------------- Cambios ----------------------------------*/
|
|
237
|
-
//! ==========================================Daniel===========================================
|
|
238
|
-
|
|
239
|
-
|
|
240
229
|
useEffect(async () => {
|
|
241
230
|
const { id_article } = product?.article || {};
|
|
242
231
|
if (id_article)
|
|
@@ -465,7 +454,6 @@ export const RetailerProductEdition = ({
|
|
|
465
454
|
value: e?.id,
|
|
466
455
|
name: e?.type_shot,
|
|
467
456
|
}));
|
|
468
|
-
|
|
469
457
|
return images?.values?.map((image, index) => (
|
|
470
458
|
<GalleryElement
|
|
471
459
|
setCheckAll={setCheckAll}
|
|
@@ -489,8 +477,6 @@ export const RetailerProductEdition = ({
|
|
|
489
477
|
));
|
|
490
478
|
};
|
|
491
479
|
|
|
492
|
-
|
|
493
|
-
|
|
494
480
|
const saveDescriptions = async () => {
|
|
495
481
|
const dataClean = updatedDescriptions.filter((f) => f.value !== "");
|
|
496
482
|
if (dataClean.length > 0) {
|
|
@@ -1365,20 +1351,13 @@ export const RetailerProductEdition = ({
|
|
|
1365
1351
|
isRetailer={isRetailer}
|
|
1366
1352
|
showSaveButton={auditorAssigned() || userAssigned()}
|
|
1367
1353
|
version={version}
|
|
1368
|
-
|
|
1369
|
-
desc={ desc }
|
|
1370
|
-
setDesc={ setDesc }
|
|
1371
|
-
fich={fich}
|
|
1372
|
-
setFich={setFich}
|
|
1373
|
-
imag={imag}
|
|
1374
|
-
setImag={setImag}
|
|
1375
1354
|
updatedDescriptions={updatedDescriptions}
|
|
1376
1355
|
updatedDatasheets={updatedDatasheets}
|
|
1356
|
+
images={images}
|
|
1377
1357
|
selectedImages={selectedImages}
|
|
1378
1358
|
setUpdatedDescriptions={setUpdatedDescriptions}
|
|
1379
1359
|
setUpdatedDatasheets={setUpdatedDatasheets}
|
|
1380
1360
|
setSelectedImages={setSelectedImages}
|
|
1381
|
-
|
|
1382
1361
|
setShowVersionSelector={setShowVersionSelector}
|
|
1383
1362
|
onClickSave={() => {
|
|
1384
1363
|
switch (activeTab) {
|
|
@@ -1423,7 +1402,6 @@ export const RetailerProductEdition = ({
|
|
|
1423
1402
|
/>
|
|
1424
1403
|
)}
|
|
1425
1404
|
|
|
1426
|
-
{/* Active tab */}
|
|
1427
1405
|
{activeTab === "Ficha técnica" &&
|
|
1428
1406
|
(product?.datasheet_status !== "NS" ? (
|
|
1429
1407
|
datasheets[0]?.data?.map((dataGroup, index) => (
|
|
@@ -1446,8 +1424,6 @@ export const RetailerProductEdition = ({
|
|
|
1446
1424
|
headerType={"input-name-header"}
|
|
1447
1425
|
/>
|
|
1448
1426
|
))}
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
1427
|
{activeTab === "Descripción" &&
|
|
1452
1428
|
(product?.description_status !== "NS" ? (
|
|
1453
1429
|
<InputGroup
|
|
@@ -1461,7 +1437,6 @@ export const RetailerProductEdition = ({
|
|
|
1461
1437
|
dinamicHeight={true}
|
|
1462
1438
|
compare={compare}
|
|
1463
1439
|
/>
|
|
1464
|
-
|
|
1465
1440
|
) : (
|
|
1466
1441
|
<ScreenHeader
|
|
1467
1442
|
text={"No cuentas con este servicio"}
|