@salesgenterp/ui-components 0.4.435 → 0.4.436
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/index.js +100 -33
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +103 -36
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@ var Cards = _interopDefault(require('react-credit-cards'));
|
|
|
32
32
|
var hi = require('react-icons/hi');
|
|
33
33
|
var bs = require('react-icons/bs');
|
|
34
34
|
require('react-icons/tfi');
|
|
35
|
-
require('react-icons/go');
|
|
35
|
+
var go = require('react-icons/go');
|
|
36
36
|
var ri = require('react-icons/ri');
|
|
37
37
|
var Checkbox = _interopDefault(require('@mui/material/Checkbox'));
|
|
38
38
|
var FormControl = _interopDefault(require('@mui/material/FormControl'));
|
|
@@ -59,6 +59,7 @@ var ReCAPTCHA = _interopDefault(require('react-google-recaptcha'));
|
|
|
59
59
|
var paramCase = require('param-case');
|
|
60
60
|
var cg = require('react-icons/cg');
|
|
61
61
|
var fi = require('react-icons/fi');
|
|
62
|
+
var fa6 = require('react-icons/fa6');
|
|
62
63
|
|
|
63
64
|
function _extends() {
|
|
64
65
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -13338,14 +13339,38 @@ var bottomTableTargetKeys = {
|
|
|
13338
13339
|
adjustmentValue: 'Adjustment'
|
|
13339
13340
|
};
|
|
13340
13341
|
var topCardTargetKeys = {
|
|
13341
|
-
id:
|
|
13342
|
-
|
|
13343
|
-
|
|
13344
|
-
|
|
13345
|
-
|
|
13346
|
-
|
|
13347
|
-
|
|
13348
|
-
|
|
13342
|
+
id: {
|
|
13343
|
+
label: 'PO ID',
|
|
13344
|
+
icon: /*#__PURE__*/React__default.createElement(md.MdOutlineNumbers, null)
|
|
13345
|
+
},
|
|
13346
|
+
vendorName: {
|
|
13347
|
+
label: 'Vendor',
|
|
13348
|
+
icon: /*#__PURE__*/React__default.createElement(md.MdDateRange, null)
|
|
13349
|
+
},
|
|
13350
|
+
insertedTimestamp: {
|
|
13351
|
+
label: 'PO Date',
|
|
13352
|
+
icon: /*#__PURE__*/React__default.createElement(io5.IoTimeOutline, null)
|
|
13353
|
+
},
|
|
13354
|
+
vendorCompanyName: {
|
|
13355
|
+
label: 'Company',
|
|
13356
|
+
icon: /*#__PURE__*/React__default.createElement(md.MdOutlineWarehouse, null)
|
|
13357
|
+
},
|
|
13358
|
+
trackingNumber: {
|
|
13359
|
+
label: 'Tracking Number',
|
|
13360
|
+
icon: /*#__PURE__*/React__default.createElement(go.GoNumber, null)
|
|
13361
|
+
},
|
|
13362
|
+
vendorInvoiceId: {
|
|
13363
|
+
label: 'Vendor Invoice',
|
|
13364
|
+
icon: /*#__PURE__*/React__default.createElement(md.MdOutlineNumbers, null)
|
|
13365
|
+
},
|
|
13366
|
+
statusName: {
|
|
13367
|
+
label: 'Status',
|
|
13368
|
+
icon: /*#__PURE__*/React__default.createElement(fa.FaCalendarCheck, null)
|
|
13369
|
+
},
|
|
13370
|
+
vendorNotes: {
|
|
13371
|
+
label: 'Vendor Notes',
|
|
13372
|
+
icon: /*#__PURE__*/React__default.createElement(fa6.FaRegNoteSticky, null)
|
|
13373
|
+
}
|
|
13349
13374
|
};
|
|
13350
13375
|
var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
|
|
13351
13376
|
var _topDtoData$slice, _topDtoData$slice2, _router$query;
|
|
@@ -13370,10 +13395,14 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
|
|
|
13370
13395
|
}).map(function (_ref3) {
|
|
13371
13396
|
var key = _ref3[0],
|
|
13372
13397
|
value = _ref3[1];
|
|
13398
|
+
var displayValue = key === 'insertedTimestamp' ? getLocalTime({
|
|
13399
|
+
time: value
|
|
13400
|
+
}) : value;
|
|
13373
13401
|
return {
|
|
13374
13402
|
key: key,
|
|
13375
|
-
label: topCardTargetKeys[key],
|
|
13376
|
-
value:
|
|
13403
|
+
label: topCardTargetKeys[key].label || topCardTargetKeys[key],
|
|
13404
|
+
value: displayValue,
|
|
13405
|
+
icon: topCardTargetKeys[key].icon
|
|
13377
13406
|
};
|
|
13378
13407
|
});
|
|
13379
13408
|
var bottomTableDtoData = Object.entries(poDto).filter(function (_ref4) {
|
|
@@ -13396,7 +13425,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
|
|
|
13396
13425
|
}
|
|
13397
13426
|
}, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
13398
13427
|
item: true,
|
|
13399
|
-
lg:
|
|
13428
|
+
lg: 8,
|
|
13400
13429
|
xs: 12
|
|
13401
13430
|
}, /*#__PURE__*/React__default.createElement(material.Card, {
|
|
13402
13431
|
variant: "outlined",
|
|
@@ -13422,34 +13451,55 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
|
|
|
13422
13451
|
}
|
|
13423
13452
|
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
13424
13453
|
display: "flex",
|
|
13425
|
-
alignItems: "center",
|
|
13426
13454
|
border: "1px solid #d9d9d9",
|
|
13427
13455
|
borderRadius: "8px",
|
|
13428
|
-
fontSize: "1rem"
|
|
13456
|
+
fontSize: "1rem",
|
|
13457
|
+
alignItems: "stretch"
|
|
13429
13458
|
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
13430
13459
|
style: {
|
|
13431
13460
|
padding: '0.5rem',
|
|
13432
|
-
|
|
13461
|
+
flex: 1,
|
|
13433
13462
|
background: '#f7f7f7',
|
|
13434
13463
|
borderTopLeftRadius: '8px',
|
|
13435
|
-
borderBottomLeftRadius: '8px'
|
|
13464
|
+
borderBottomLeftRadius: '8px',
|
|
13465
|
+
display: 'flex',
|
|
13466
|
+
alignItems: 'center',
|
|
13467
|
+
justifyContent: 'start'
|
|
13436
13468
|
}
|
|
13437
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
13469
|
+
}, (item === null || item === void 0 ? void 0 : item.icon) && /*#__PURE__*/React__default.createElement("span", {
|
|
13470
|
+
style: {
|
|
13471
|
+
marginRight: '0.5rem',
|
|
13472
|
+
marginTop: '0.2rem',
|
|
13473
|
+
fontSize: '1.2rem'
|
|
13474
|
+
}
|
|
13475
|
+
}, item.icon), /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
13438
13476
|
sx: {
|
|
13439
13477
|
fontWeight: 'bold',
|
|
13440
|
-
whiteSpace: 'nowrap'
|
|
13478
|
+
whiteSpace: 'nowrap',
|
|
13479
|
+
fontSize: '1.2rem',
|
|
13480
|
+
textAlign: 'center'
|
|
13441
13481
|
}
|
|
13442
13482
|
}, item === null || item === void 0 ? void 0 : item.label, ":")), /*#__PURE__*/React__default.createElement(material.Box, {
|
|
13443
13483
|
style: {
|
|
13444
13484
|
padding: '0.5rem',
|
|
13445
|
-
|
|
13485
|
+
flex: 1,
|
|
13486
|
+
display: 'flex',
|
|
13487
|
+
alignItems: 'center',
|
|
13488
|
+
justifyContent: 'start'
|
|
13446
13489
|
}
|
|
13447
13490
|
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
13448
|
-
variant: "body1"
|
|
13491
|
+
variant: "body1",
|
|
13492
|
+
fontSize: "1.2rem",
|
|
13493
|
+
sx: (item === null || item === void 0 ? void 0 : item.key) === 'statusName' && {
|
|
13494
|
+
background: '#fafafa',
|
|
13495
|
+
padding: '3px 7px',
|
|
13496
|
+
borderRadius: '4px',
|
|
13497
|
+
border: '1px solid #d9d9d9'
|
|
13498
|
+
}
|
|
13449
13499
|
}, item === null || item === void 0 ? void 0 : item.value)))));
|
|
13450
13500
|
})))))), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
13451
13501
|
item: true,
|
|
13452
|
-
lg:
|
|
13502
|
+
lg: 4,
|
|
13453
13503
|
xs: 12
|
|
13454
13504
|
}, /*#__PURE__*/React__default.createElement(material.Card, {
|
|
13455
13505
|
variant: "outlined",
|
|
@@ -13474,30 +13524,47 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
|
|
|
13474
13524
|
}
|
|
13475
13525
|
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
13476
13526
|
display: "flex",
|
|
13477
|
-
alignItems: "center",
|
|
13478
13527
|
border: "1px solid #d9d9d9",
|
|
13479
13528
|
borderRadius: "8px",
|
|
13480
|
-
fontSize: "1rem"
|
|
13529
|
+
fontSize: "1rem",
|
|
13530
|
+
alignItems: "stretch"
|
|
13481
13531
|
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
13482
13532
|
style: {
|
|
13483
13533
|
padding: '0.5rem',
|
|
13484
|
-
|
|
13534
|
+
flex: 1,
|
|
13485
13535
|
background: '#f7f7f7',
|
|
13486
13536
|
borderTopLeftRadius: '8px',
|
|
13487
|
-
borderBottomLeftRadius: '8px'
|
|
13537
|
+
borderBottomLeftRadius: '8px',
|
|
13538
|
+
display: 'flex',
|
|
13539
|
+
alignItems: 'center',
|
|
13540
|
+
justifyContent: 'start'
|
|
13488
13541
|
}
|
|
13489
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
13542
|
+
}, (item === null || item === void 0 ? void 0 : item.icon) && /*#__PURE__*/React__default.createElement("span", {
|
|
13543
|
+
style: {
|
|
13544
|
+
marginRight: '0.5rem',
|
|
13545
|
+
marginTop: '0.2rem',
|
|
13546
|
+
fontSize: '1.2rem'
|
|
13547
|
+
}
|
|
13548
|
+
}, item.icon), /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
13490
13549
|
sx: {
|
|
13491
13550
|
fontWeight: 'bold',
|
|
13492
|
-
whiteSpace: 'nowrap'
|
|
13551
|
+
whiteSpace: 'nowrap',
|
|
13552
|
+
fontSize: '1.2rem',
|
|
13553
|
+
textAlign: 'center'
|
|
13493
13554
|
}
|
|
13494
13555
|
}, item === null || item === void 0 ? void 0 : item.label, ":")), /*#__PURE__*/React__default.createElement(material.Box, {
|
|
13495
13556
|
style: {
|
|
13496
13557
|
padding: '0.5rem',
|
|
13497
|
-
|
|
13558
|
+
flex: 1,
|
|
13559
|
+
display: 'flex',
|
|
13560
|
+
alignItems: 'center',
|
|
13561
|
+
justifyContent: 'start'
|
|
13498
13562
|
}
|
|
13499
13563
|
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
13500
|
-
variant: "body1"
|
|
13564
|
+
variant: "body1",
|
|
13565
|
+
sx: {
|
|
13566
|
+
fontSize: '1.2rem'
|
|
13567
|
+
}
|
|
13501
13568
|
}, item === null || item === void 0 ? void 0 : item.value)))));
|
|
13502
13569
|
}))))))), /*#__PURE__*/React__default.createElement(TableContainer$2, null, /*#__PURE__*/React__default.createElement(APITable, {
|
|
13503
13570
|
cacheFilters: true,
|
|
@@ -13570,13 +13637,13 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
|
|
|
13570
13637
|
textAlign: 'left',
|
|
13571
13638
|
background: 'rgb(247, 247, 247)',
|
|
13572
13639
|
color: '#000',
|
|
13573
|
-
fontSize: '
|
|
13640
|
+
fontSize: '1.2rem'
|
|
13574
13641
|
}
|
|
13575
13642
|
}, item === null || item === void 0 ? void 0 : item.label), /*#__PURE__*/React__default.createElement(material.TableCell, {
|
|
13576
13643
|
sx: {
|
|
13577
13644
|
textAlign: 'left',
|
|
13578
13645
|
width: '50%',
|
|
13579
|
-
fontSize: '
|
|
13646
|
+
fontSize: '1.2rem'
|
|
13580
13647
|
}
|
|
13581
13648
|
}, item === null || item === void 0 ? void 0 : item.value));
|
|
13582
13649
|
}))))), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
@@ -13596,13 +13663,13 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
|
|
|
13596
13663
|
textAlign: 'left',
|
|
13597
13664
|
background: 'rgb(247, 247, 247)',
|
|
13598
13665
|
color: '#000',
|
|
13599
|
-
fontSize: '
|
|
13666
|
+
fontSize: '1.2rem'
|
|
13600
13667
|
}
|
|
13601
13668
|
}, item === null || item === void 0 ? void 0 : item.label), /*#__PURE__*/React__default.createElement(material.TableCell, {
|
|
13602
13669
|
sx: {
|
|
13603
13670
|
textAlign: 'left',
|
|
13604
13671
|
width: '50%',
|
|
13605
|
-
fontSize: '
|
|
13672
|
+
fontSize: '1.2rem'
|
|
13606
13673
|
}
|
|
13607
13674
|
}, item === null || item === void 0 ? void 0 : item.value));
|
|
13608
13675
|
})))))));
|