@evenicanpm/portal-table-ui 2.3.2 → 2.3.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evenicanpm/portal-table-ui",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "",
|
|
@@ -42,10 +42,9 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@arrows/multimethod": "^2.1.0",
|
|
45
|
-
"@evenicanpm/ui": "
|
|
45
|
+
"@evenicanpm/ui": "file:../../../common/@evenicanpm/ui",
|
|
46
46
|
"@mui/lab": "^7.0.1-beta.19",
|
|
47
47
|
"date-fns": "^4.1.0",
|
|
48
48
|
"zod": "^4.4.3"
|
|
49
|
-
}
|
|
50
|
-
"gitHead": "213ad422feec74815e682bd9950ef94893e5ecda"
|
|
49
|
+
}
|
|
51
50
|
}
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
TableContainer,
|
|
14
14
|
TableHead,
|
|
15
15
|
TableRow,
|
|
16
|
+
Tooltip,
|
|
16
17
|
Typography,
|
|
17
18
|
useMediaQuery,
|
|
18
19
|
useTheme,
|
|
@@ -441,18 +442,8 @@ export const InvoiceDetailsTemplate = ({
|
|
|
441
442
|
{/* Line Items Section */}
|
|
442
443
|
{items.length > 0 ? (
|
|
443
444
|
<>
|
|
444
|
-
<TableContainer>
|
|
445
|
-
<Table
|
|
446
|
-
sx={{
|
|
447
|
-
minWidth: totalTableWidth,
|
|
448
|
-
"@media print": {
|
|
449
|
-
p: 0,
|
|
450
|
-
scrollbarWidth: "none !important",
|
|
451
|
-
msOverflowStyle: "none !important",
|
|
452
|
-
overflow: "visible !important",
|
|
453
|
-
},
|
|
454
|
-
}}
|
|
455
|
-
>
|
|
445
|
+
<TableContainer className="invoice-details-table-container">
|
|
446
|
+
<Table className="invoice-details-table">
|
|
456
447
|
<TableHead>
|
|
457
448
|
<TableRow>
|
|
458
449
|
{columns.map((col) => (
|
|
@@ -536,15 +527,27 @@ export const InvoiceDetailsTemplate = ({
|
|
|
536
527
|
<TableCell
|
|
537
528
|
sx={{
|
|
538
529
|
width: "100%",
|
|
539
|
-
textAlign: "
|
|
530
|
+
textAlign: "left",
|
|
531
|
+
px: 0,
|
|
540
532
|
"@media print": { width: "auto", minWidth: 0 },
|
|
541
533
|
}}
|
|
542
534
|
align="center"
|
|
543
535
|
>
|
|
544
536
|
{item.HasDiscount && (
|
|
545
|
-
<
|
|
546
|
-
|
|
547
|
-
|
|
537
|
+
<Tooltip
|
|
538
|
+
title="Indicates the line item has savings."
|
|
539
|
+
arrow
|
|
540
|
+
disableHoverListener={isMobile}
|
|
541
|
+
>
|
|
542
|
+
<Typography
|
|
543
|
+
component="span"
|
|
544
|
+
color="error.main"
|
|
545
|
+
fontWeight={700}
|
|
546
|
+
sx={{ cursor: "pointer" }}
|
|
547
|
+
>
|
|
548
|
+
*
|
|
549
|
+
</Typography>
|
|
550
|
+
</Tooltip>
|
|
548
551
|
)}
|
|
549
552
|
</TableCell>
|
|
550
553
|
</TableRow>
|
|
@@ -554,6 +557,14 @@ export const InvoiceDetailsTemplate = ({
|
|
|
554
557
|
</Table>
|
|
555
558
|
</TableContainer>
|
|
556
559
|
|
|
560
|
+
{isMobile && items.some((item) => item.HasDiscount) && (
|
|
561
|
+
<Box>
|
|
562
|
+
<Typography variant="caption" color="text.secondary">
|
|
563
|
+
* Indicates the line item has savings.
|
|
564
|
+
</Typography>
|
|
565
|
+
</Box>
|
|
566
|
+
)}
|
|
567
|
+
|
|
557
568
|
{/* Totals */}
|
|
558
569
|
<Box mt={3} display="flex" justifyContent="flex-end">
|
|
559
570
|
<Box width={{ xs: "100%", sm: 300 }}>
|
|
@@ -336,8 +336,12 @@ export default function DocumentTable({
|
|
|
336
336
|
);
|
|
337
337
|
})}
|
|
338
338
|
</FlexBox>
|
|
339
|
-
<TableContainer>
|
|
340
|
-
<Table
|
|
339
|
+
<TableContainer className="invoice-list-table-container">
|
|
340
|
+
<Table
|
|
341
|
+
className="invoice-list-table"
|
|
342
|
+
aria-label="simple table"
|
|
343
|
+
sx={{ tableLayout: { md: "fixed" } }}
|
|
344
|
+
>
|
|
341
345
|
<TableHeader
|
|
342
346
|
columns={visibleCols}
|
|
343
347
|
loading={configPending}
|