@bygd/nc-report-ui 0.1.35 → 0.1.37
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/default/cjs/index.cjs +1 -1
- package/dist/default/esm/index.js +194 -170
- package/package.json +1 -2
|
@@ -1,31 +1,27 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { useEffect, useMemo, useState, useRef, useContext, createContext } from 'react';
|
|
3
|
-
import Paper from '@material
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import Paper from '@mui/material/Paper';
|
|
4
|
+
import Box from '@mui/material/Box';
|
|
5
|
+
import CircularProgress from '@mui/material/CircularProgress';
|
|
6
6
|
import { Chart as Chart$1 } from 'react-google-charts';
|
|
7
7
|
import numeral from 'numeral';
|
|
8
8
|
import axios from 'axios';
|
|
9
|
-
import Typography from '@material
|
|
10
|
-
import Link from '@material
|
|
9
|
+
import Typography from '@mui/material/Typography';
|
|
10
|
+
import Link from '@mui/material/Link';
|
|
11
|
+
import OpenInNewIcon from '@mui/icons-material/OpenInNew';
|
|
11
12
|
import nunjucks from 'nunjucks';
|
|
12
|
-
import FormControl$
|
|
13
|
-
import Select
|
|
14
|
-
import MenuItem
|
|
13
|
+
import FormControl$1 from '@mui/material/FormControl';
|
|
14
|
+
import Select from '@mui/material/Select';
|
|
15
|
+
import MenuItem from '@mui/material/MenuItem';
|
|
15
16
|
import { useInView } from 'react-intersection-observer';
|
|
16
|
-
import { FormControl, Autocomplete, TextField, CircularProgress as CircularProgress$1, Chip, Checkbox, FormHelperText, Snackbar, Alert, Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions, Button, Box as Box$
|
|
17
|
+
import { FormControl, Autocomplete, TextField, CircularProgress as CircularProgress$1, Chip, Checkbox, FormHelperText, Snackbar, Alert, Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions, Button, Box as Box$1, Typography as Typography$1, Tooltip as Tooltip$1, IconButton as IconButton$1, Paper as Paper$1, Tabs, Tab, Badge } from '@mui/material';
|
|
17
18
|
import CheckBoxOutlineBlankIcon from '@mui/icons-material/CheckBoxOutlineBlank';
|
|
18
19
|
import CheckBoxIcon from '@mui/icons-material/CheckBox';
|
|
19
|
-
import Box from '@mui/material/Box';
|
|
20
|
-
import MenuItem from '@mui/material/MenuItem';
|
|
21
|
-
import FormControl$1 from '@mui/material/FormControl';
|
|
22
|
-
import Select from '@mui/material/Select';
|
|
23
20
|
import EventEmitter from 'eventemitter3';
|
|
24
|
-
import Grid from '@material
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import Container from '@material-ui/core/Container';
|
|
21
|
+
import Grid from '@mui/material/Grid';
|
|
22
|
+
import IconButton from '@mui/material/IconButton';
|
|
23
|
+
import Tooltip from '@mui/material/Tooltip';
|
|
24
|
+
import Container from '@mui/material/Container';
|
|
29
25
|
import InsertChartOutlinedIcon from '@mui/icons-material/InsertChartOutlined';
|
|
30
26
|
import FormatListBulletedIcon from '@mui/icons-material/FormatListBulleted';
|
|
31
27
|
import TableChartOutlinedIcon from '@mui/icons-material/TableChartOutlined';
|
|
@@ -79,19 +75,16 @@ function _extends() {
|
|
|
79
75
|
}, _extends.apply(null, arguments);
|
|
80
76
|
}
|
|
81
77
|
|
|
82
|
-
const useStyles$1 = makeStyles(theme => ({
|
|
83
|
-
root: {
|
|
84
|
-
width: "100%",
|
|
85
|
-
"& > * + *": {
|
|
86
|
-
marginTop: theme.spacing(2)
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}));
|
|
90
78
|
function LinearIndeterminate(props) {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
79
|
+
return /*#__PURE__*/React__default.createElement(Box, _extends({}, props, {
|
|
80
|
+
sx: {
|
|
81
|
+
width: "100%",
|
|
82
|
+
"& > * + *": {
|
|
83
|
+
mt: 2
|
|
84
|
+
},
|
|
85
|
+
...(props?.sx || {})
|
|
86
|
+
}
|
|
87
|
+
}), /*#__PURE__*/React__default.createElement(CircularProgress, {
|
|
95
88
|
style: {
|
|
96
89
|
color: "rgb(70, 134, 128)"
|
|
97
90
|
} // custom color
|
|
@@ -469,55 +462,44 @@ const Api = {
|
|
|
469
462
|
}
|
|
470
463
|
};
|
|
471
464
|
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
tableRow: {
|
|
488
|
-
fontFamily: theme.typography.fontFamily,
|
|
489
|
-
fontSize: 14,
|
|
490
|
-
backgroundColor: "#ffffff",
|
|
491
|
-
"& a": {
|
|
492
|
-
color: "#468682",
|
|
493
|
-
textDecoration: "underline"
|
|
494
|
-
},
|
|
495
|
-
"& a:hover": {
|
|
496
|
-
color: "#305f5c"
|
|
497
|
-
}
|
|
498
|
-
},
|
|
499
|
-
oddTableRow: {
|
|
500
|
-
fontFamily: theme.typography.fontFamily,
|
|
501
|
-
fontSize: 14,
|
|
502
|
-
backgroundColor: "#ffffff",
|
|
503
|
-
"& a": {
|
|
504
|
-
color: "#468682",
|
|
505
|
-
textDecoration: "underline"
|
|
506
|
-
},
|
|
507
|
-
"& a:hover": {
|
|
508
|
-
color: "#305f5c"
|
|
465
|
+
function styleInject(css, ref) {
|
|
466
|
+
if ( ref === void 0 ) ref = {};
|
|
467
|
+
var insertAt = ref.insertAt;
|
|
468
|
+
|
|
469
|
+
if (typeof document === 'undefined') { return; }
|
|
470
|
+
|
|
471
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
472
|
+
var style = document.createElement('style');
|
|
473
|
+
style.type = 'text/css';
|
|
474
|
+
|
|
475
|
+
if (insertAt === 'top') {
|
|
476
|
+
if (head.firstChild) {
|
|
477
|
+
head.insertBefore(style, head.firstChild);
|
|
478
|
+
} else {
|
|
479
|
+
head.appendChild(style);
|
|
509
480
|
}
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
color: "#1f2937"
|
|
481
|
+
} else {
|
|
482
|
+
head.appendChild(style);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
if (style.styleSheet) {
|
|
486
|
+
style.styleSheet.cssText = css;
|
|
487
|
+
} else {
|
|
488
|
+
style.appendChild(document.createTextNode(css));
|
|
519
489
|
}
|
|
520
|
-
}
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
var css_248z = "/* Google Charts Table styling — class names here are referenced from\n * GoogleChart.js via the `cssClassNames` option and must stay in sync. */\n\n.ncGcHeaderRow {\n font-size: 13px;\n}\n\n.ncGcHeaderCell {\n background-color: #ffffff !important;\n padding: 12px 16px !important;\n border-bottom: 1px solid #e5e7eb !important;\n border-right: none !important;\n font-weight: 600 !important;\n color: #6b7280 !important;\n text-align: left !important;\n white-space: nowrap;\n}\n\n.ncGcTableRow,\n.ncGcOddTableRow {\n font-size: 14px;\n background-color: #ffffff;\n}\n\n.ncGcTableRow a,\n.ncGcOddTableRow a {\n color: #468682;\n text-decoration: underline;\n}\n\n.ncGcTableRow a:hover,\n.ncGcOddTableRow a:hover {\n color: #305f5c;\n}\n\n.ncGcHoverTableRow {\n background-color: #f9fafb !important;\n}\n\n.ncGcTableCell {\n padding: 12px 16px !important;\n border-bottom: 1px solid #f1f2f4 !important;\n border-right: none !important;\n color: #1f2937;\n}\n";
|
|
493
|
+
styleInject(css_248z);
|
|
494
|
+
|
|
495
|
+
const tableClassNames = {
|
|
496
|
+
headerRow: "ncGcHeaderRow",
|
|
497
|
+
headerCell: "ncGcHeaderCell",
|
|
498
|
+
tableRow: "ncGcTableRow",
|
|
499
|
+
oddTableRow: "ncGcOddTableRow",
|
|
500
|
+
hoverTableRow: "ncGcHoverTableRow",
|
|
501
|
+
tableCell: "ncGcTableCell"
|
|
502
|
+
};
|
|
521
503
|
const dateRangeFormats = {
|
|
522
504
|
none: "YYYY-MM-dd",
|
|
523
505
|
day: "MMM dd",
|
|
@@ -536,7 +518,6 @@ function GoogleChart({
|
|
|
536
518
|
params
|
|
537
519
|
}) {
|
|
538
520
|
const [data, setData] = React__default.useState([]);
|
|
539
|
-
const classes = useStyles();
|
|
540
521
|
const [dateRanges, setDateRanges] = React__default.useState([]);
|
|
541
522
|
useEffect(() => {
|
|
542
523
|
(async () => {
|
|
@@ -558,7 +539,7 @@ function GoogleChart({
|
|
|
558
539
|
if (chart?.doc.chart?.type === "Table") {
|
|
559
540
|
return {
|
|
560
541
|
...chart?.doc.chart?.options,
|
|
561
|
-
cssClassNames:
|
|
542
|
+
cssClassNames: tableClassNames,
|
|
562
543
|
allowHtml: true
|
|
563
544
|
};
|
|
564
545
|
} else if (chart?.doc.chart?.type === "AreaChart") {
|
|
@@ -679,6 +660,7 @@ function LabelChart({
|
|
|
679
660
|
view,
|
|
680
661
|
report,
|
|
681
662
|
schema,
|
|
663
|
+
onViewChange,
|
|
682
664
|
onNavigate
|
|
683
665
|
}) {
|
|
684
666
|
const [data, setData] = React__default.useState([]);
|
|
@@ -705,7 +687,25 @@ function LabelChart({
|
|
|
705
687
|
}
|
|
706
688
|
}, [chart, source, view, report, schema]);
|
|
707
689
|
const nextView = chart?.doc?.chart?.options?.nextView;
|
|
708
|
-
const
|
|
690
|
+
const canChangeView = typeof nextView === "number" && typeof onViewChange === "function";
|
|
691
|
+
const navTarget = chart?.doc?.chart?.options?.onNavigate;
|
|
692
|
+
const canNavigate = !!navTarget?.url && typeof onNavigate === "function";
|
|
693
|
+
const handleNavigate = () => {
|
|
694
|
+
let ctx;
|
|
695
|
+
if (navTarget?.ctx != null) {
|
|
696
|
+
if (typeof navTarget.ctx === "string") {
|
|
697
|
+
try {
|
|
698
|
+
ctx = JSON.parse(navTarget.ctx);
|
|
699
|
+
} catch (e) {
|
|
700
|
+
console.warn("LabelChart onNavigate: failed to parse ctx as JSON", e);
|
|
701
|
+
ctx = navTarget.ctx;
|
|
702
|
+
}
|
|
703
|
+
} else {
|
|
704
|
+
ctx = navTarget.ctx;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
onNavigate(navTarget.url, ctx);
|
|
708
|
+
};
|
|
709
709
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
710
710
|
style: {
|
|
711
711
|
display: "flex",
|
|
@@ -723,15 +723,26 @@ function LabelChart({
|
|
|
723
723
|
}
|
|
724
724
|
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
725
725
|
variant: "h6"
|
|
726
|
-
}, value?.f || value),
|
|
726
|
+
}, value?.f || value), canChangeView && /*#__PURE__*/React__default.createElement(Link, {
|
|
727
727
|
component: "button",
|
|
728
728
|
variant: "h6",
|
|
729
|
-
onClick: () =>
|
|
729
|
+
onClick: () => onViewChange(nextView),
|
|
730
730
|
style: {
|
|
731
731
|
lineHeight: 1,
|
|
732
732
|
fontSize: "2rem"
|
|
733
733
|
}
|
|
734
|
-
}, "\xBB")
|
|
734
|
+
}, "\xBB"), canNavigate && /*#__PURE__*/React__default.createElement(Link, {
|
|
735
|
+
component: "button",
|
|
736
|
+
onClick: handleNavigate,
|
|
737
|
+
style: {
|
|
738
|
+
lineHeight: 1,
|
|
739
|
+
display: "inline-flex",
|
|
740
|
+
alignItems: "center"
|
|
741
|
+
},
|
|
742
|
+
"aria-label": "navigate"
|
|
743
|
+
}, /*#__PURE__*/React__default.createElement(OpenInNewIcon, {
|
|
744
|
+
fontSize: "small"
|
|
745
|
+
}))), /*#__PURE__*/React__default.createElement(Typography, {
|
|
735
746
|
variant: "caption"
|
|
736
747
|
}, subText));
|
|
737
748
|
}
|
|
@@ -1295,6 +1306,7 @@ var Chart = ({
|
|
|
1295
1306
|
dashboard: dashboard,
|
|
1296
1307
|
query: currentQuery,
|
|
1297
1308
|
params: props.params,
|
|
1309
|
+
onViewChange: props.onViewChange,
|
|
1298
1310
|
onNavigate: props.onNavigate
|
|
1299
1311
|
}));
|
|
1300
1312
|
};
|
|
@@ -1456,7 +1468,10 @@ var Chart = ({
|
|
|
1456
1468
|
style: {
|
|
1457
1469
|
flexGrow: 1
|
|
1458
1470
|
}
|
|
1459
|
-
}), /*#__PURE__*/React__default.createElement("div", null, chart?.doc?.view?.length > 1 && /*#__PURE__*/React__default.createElement(FormControl$
|
|
1471
|
+
}), /*#__PURE__*/React__default.createElement("div", null, chart?.doc?.view?.length > 1 && /*#__PURE__*/React__default.createElement(FormControl$1, {
|
|
1472
|
+
variant: "standard"
|
|
1473
|
+
}, /*#__PURE__*/React__default.createElement(Select, {
|
|
1474
|
+
variant: "standard",
|
|
1460
1475
|
labelId: "date-range-select-label",
|
|
1461
1476
|
id: "date-range-select",
|
|
1462
1477
|
value: activeViewIndex,
|
|
@@ -1465,7 +1480,7 @@ var Chart = ({
|
|
|
1465
1480
|
fontSize: "12px"
|
|
1466
1481
|
},
|
|
1467
1482
|
disableUnderline: true
|
|
1468
|
-
}, chart.doc.view.map((item, index) => /*#__PURE__*/React__default.createElement(MenuItem
|
|
1483
|
+
}, chart.doc.view.map((item, index) => /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
1469
1484
|
key: index,
|
|
1470
1485
|
value: index
|
|
1471
1486
|
}, item.title)))))), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -1588,14 +1603,15 @@ function ColumnItem({
|
|
|
1588
1603
|
cache,
|
|
1589
1604
|
dashboard,
|
|
1590
1605
|
schema,
|
|
1591
|
-
params
|
|
1606
|
+
params,
|
|
1607
|
+
onNavigate
|
|
1592
1608
|
}) {
|
|
1593
1609
|
const views = Array.isArray(column.views) ? column.views : null;
|
|
1594
1610
|
const [activeIndex, setActiveIndex] = React__default.useState(0);
|
|
1595
1611
|
if (views && views.length > 0) {
|
|
1596
1612
|
const safeIndex = Math.min(activeIndex, views.length - 1);
|
|
1597
1613
|
const active = views[safeIndex];
|
|
1598
|
-
const toolbar = /*#__PURE__*/React__default.createElement(Box
|
|
1614
|
+
const toolbar = /*#__PURE__*/React__default.createElement(Box, {
|
|
1599
1615
|
display: "flex"
|
|
1600
1616
|
}, views.map((v, i) => {
|
|
1601
1617
|
const Icon = resolveViewIcon(v.icon);
|
|
@@ -1616,9 +1632,10 @@ function ColumnItem({
|
|
|
1616
1632
|
})));
|
|
1617
1633
|
}));
|
|
1618
1634
|
return /*#__PURE__*/React__default.createElement(Grid, {
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1635
|
+
size: {
|
|
1636
|
+
xs: 12,
|
|
1637
|
+
md
|
|
1638
|
+
}
|
|
1622
1639
|
}, /*#__PURE__*/React__default.createElement(Chart, {
|
|
1623
1640
|
api: api,
|
|
1624
1641
|
cache: cache,
|
|
@@ -1629,15 +1646,17 @@ function ColumnItem({
|
|
|
1629
1646
|
filter: active.filter,
|
|
1630
1647
|
params: params,
|
|
1631
1648
|
headerActions: toolbar,
|
|
1632
|
-
|
|
1649
|
+
onViewChange: i => {
|
|
1633
1650
|
if (typeof i === "number" && i >= 0 && i < views.length) setActiveIndex(i);
|
|
1634
|
-
}
|
|
1651
|
+
},
|
|
1652
|
+
onNavigate: onNavigate
|
|
1635
1653
|
}));
|
|
1636
1654
|
}
|
|
1637
1655
|
return /*#__PURE__*/React__default.createElement(Grid, {
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1656
|
+
size: {
|
|
1657
|
+
xs: 12,
|
|
1658
|
+
md
|
|
1659
|
+
}
|
|
1641
1660
|
}, /*#__PURE__*/React__default.createElement(Chart, {
|
|
1642
1661
|
api: api,
|
|
1643
1662
|
cache: cache,
|
|
@@ -1646,13 +1665,15 @@ function ColumnItem({
|
|
|
1646
1665
|
schema: schema,
|
|
1647
1666
|
title: column.title,
|
|
1648
1667
|
filter: column.filter,
|
|
1649
|
-
params: params
|
|
1668
|
+
params: params,
|
|
1669
|
+
onNavigate: onNavigate
|
|
1650
1670
|
}));
|
|
1651
1671
|
}
|
|
1652
1672
|
function Dashboard({
|
|
1653
1673
|
id,
|
|
1654
1674
|
api,
|
|
1655
|
-
params
|
|
1675
|
+
params,
|
|
1676
|
+
onNavigate
|
|
1656
1677
|
}) {
|
|
1657
1678
|
const dashboardId = id || "dynamic_dashboard";
|
|
1658
1679
|
const reportingContext = useReportingContextOptional();
|
|
@@ -1770,8 +1791,9 @@ function Dashboard({
|
|
|
1770
1791
|
/*#__PURE__*/
|
|
1771
1792
|
// Row 2 is special: nested grid inside a full-width container
|
|
1772
1793
|
React__default.createElement(Grid, {
|
|
1773
|
-
|
|
1774
|
-
|
|
1794
|
+
size: {
|
|
1795
|
+
xs: 12
|
|
1796
|
+
}
|
|
1775
1797
|
}, /*#__PURE__*/React__default.createElement(Grid, {
|
|
1776
1798
|
container: true,
|
|
1777
1799
|
spacing: 3
|
|
@@ -1783,7 +1805,8 @@ function Dashboard({
|
|
|
1783
1805
|
cache: cache.current,
|
|
1784
1806
|
dashboard: dashboard,
|
|
1785
1807
|
schema: schema,
|
|
1786
|
-
params: finalParams
|
|
1808
|
+
params: finalParams,
|
|
1809
|
+
onNavigate: onNavigate
|
|
1787
1810
|
})))) :
|
|
1788
1811
|
// All other rows behave normally
|
|
1789
1812
|
row.columns.map((column, i) => /*#__PURE__*/React__default.createElement(ColumnItem, {
|
|
@@ -1794,7 +1817,8 @@ function Dashboard({
|
|
|
1794
1817
|
cache: cache.current,
|
|
1795
1818
|
dashboard: dashboard,
|
|
1796
1819
|
schema: schema,
|
|
1797
|
-
params: finalParams
|
|
1820
|
+
params: finalParams,
|
|
1821
|
+
onNavigate: onNavigate
|
|
1798
1822
|
})));
|
|
1799
1823
|
})))
|
|
1800
1824
|
);
|
|
@@ -2063,7 +2087,7 @@ const ReportDefinitionsList = ({
|
|
|
2063
2087
|
disableColumnMenu: true,
|
|
2064
2088
|
renderCell: params => {
|
|
2065
2089
|
const isUserOverride = params.row.source === "user-override";
|
|
2066
|
-
return /*#__PURE__*/React__default.createElement(Box$
|
|
2090
|
+
return /*#__PURE__*/React__default.createElement(Box$1, {
|
|
2067
2091
|
sx: {
|
|
2068
2092
|
display: "flex",
|
|
2069
2093
|
gap: 1
|
|
@@ -2120,7 +2144,7 @@ const ReportDefinitionsList = ({
|
|
|
2120
2144
|
onSelectReport(params.row.id);
|
|
2121
2145
|
};
|
|
2122
2146
|
if (loading) {
|
|
2123
|
-
return /*#__PURE__*/React__default.createElement(Box$
|
|
2147
|
+
return /*#__PURE__*/React__default.createElement(Box$1, {
|
|
2124
2148
|
display: "flex",
|
|
2125
2149
|
justifyContent: "center",
|
|
2126
2150
|
alignItems: "center",
|
|
@@ -2128,7 +2152,7 @@ const ReportDefinitionsList = ({
|
|
|
2128
2152
|
}, /*#__PURE__*/React__default.createElement(CircularProgress$1, null));
|
|
2129
2153
|
}
|
|
2130
2154
|
if (error) {
|
|
2131
|
-
return /*#__PURE__*/React__default.createElement(Box$
|
|
2155
|
+
return /*#__PURE__*/React__default.createElement(Box$1, {
|
|
2132
2156
|
display: "flex",
|
|
2133
2157
|
flexDirection: "column",
|
|
2134
2158
|
justifyContent: "center",
|
|
@@ -2143,14 +2167,14 @@ const ReportDefinitionsList = ({
|
|
|
2143
2167
|
onClick: loadReportDefinitions
|
|
2144
2168
|
}, "Retry"));
|
|
2145
2169
|
}
|
|
2146
|
-
return /*#__PURE__*/React__default.createElement(Box$
|
|
2170
|
+
return /*#__PURE__*/React__default.createElement(Box$1, {
|
|
2147
2171
|
sx: {
|
|
2148
2172
|
p: 3,
|
|
2149
2173
|
display: "flex",
|
|
2150
2174
|
flexDirection: "column",
|
|
2151
2175
|
fontFamily: "system-ui"
|
|
2152
2176
|
}
|
|
2153
|
-
}, /*#__PURE__*/React__default.createElement(Box$
|
|
2177
|
+
}, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
2154
2178
|
sx: {
|
|
2155
2179
|
display: "flex",
|
|
2156
2180
|
justifyContent: "flex-end",
|
|
@@ -2170,7 +2194,7 @@ const ReportDefinitionsList = ({
|
|
|
2170
2194
|
},
|
|
2171
2195
|
startIcon: /*#__PURE__*/React__default.createElement(AddIcon, null),
|
|
2172
2196
|
onClick: onAddNew
|
|
2173
|
-
}, "Add New Report")), /*#__PURE__*/React__default.createElement(Box$
|
|
2197
|
+
}, "Add New Report")), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
2174
2198
|
sx: {
|
|
2175
2199
|
flex: 1,
|
|
2176
2200
|
width: "100%",
|
|
@@ -2412,11 +2436,11 @@ const ProviderSelection = ({
|
|
|
2412
2436
|
}
|
|
2413
2437
|
return dropdowns;
|
|
2414
2438
|
};
|
|
2415
|
-
return /*#__PURE__*/React__default.createElement(Box$
|
|
2439
|
+
return /*#__PURE__*/React__default.createElement(Box$1, null, selectionChain.length > 0 && /*#__PURE__*/React__default.createElement(Box$1, {
|
|
2416
2440
|
sx: {
|
|
2417
2441
|
marginBottom: 2
|
|
2418
2442
|
}
|
|
2419
|
-
}, /*#__PURE__*/React__default.createElement(Box$
|
|
2443
|
+
}, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
2420
2444
|
sx: {
|
|
2421
2445
|
display: "flex",
|
|
2422
2446
|
alignItems: "center",
|
|
@@ -2599,7 +2623,7 @@ const SortableChip$1 = ({
|
|
|
2599
2623
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
2600
2624
|
ref: setNodeRef,
|
|
2601
2625
|
style: style
|
|
2602
|
-
}, attributes), /*#__PURE__*/React__default.createElement(Box$
|
|
2626
|
+
}, attributes), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
2603
2627
|
ref: containerRef,
|
|
2604
2628
|
sx: {
|
|
2605
2629
|
display: "flex",
|
|
@@ -2616,7 +2640,7 @@ const SortableChip$1 = ({
|
|
|
2616
2640
|
opacity: 1 // show icons on hover
|
|
2617
2641
|
}
|
|
2618
2642
|
}
|
|
2619
|
-
}, /*#__PURE__*/React__default.createElement(Box$
|
|
2643
|
+
}, /*#__PURE__*/React__default.createElement(Box$1, _extends({}, listeners, {
|
|
2620
2644
|
sx: {
|
|
2621
2645
|
display: "flex",
|
|
2622
2646
|
alignItems: "center",
|
|
@@ -2630,7 +2654,7 @@ const SortableChip$1 = ({
|
|
|
2630
2654
|
cursor: "grab",
|
|
2631
2655
|
color: "rgba(110, 110, 110, 0.62)"
|
|
2632
2656
|
}
|
|
2633
|
-
})), !isEditing ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Box$
|
|
2657
|
+
})), !isEditing ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
2634
2658
|
sx: {
|
|
2635
2659
|
minWidth: 0
|
|
2636
2660
|
}
|
|
@@ -2649,7 +2673,7 @@ const SortableChip$1 = ({
|
|
|
2649
2673
|
overflow: "hidden",
|
|
2650
2674
|
textOverflow: "ellipsis"
|
|
2651
2675
|
}
|
|
2652
|
-
}, displayLabel))), /*#__PURE__*/React__default.createElement(Box$
|
|
2676
|
+
}, displayLabel))), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
2653
2677
|
className: "hover-icons",
|
|
2654
2678
|
sx: {
|
|
2655
2679
|
display: "flex",
|
|
@@ -2689,11 +2713,11 @@ const SortableChip$1 = ({
|
|
|
2689
2713
|
}
|
|
2690
2714
|
}, /*#__PURE__*/React__default.createElement(GridDeleteIcon, {
|
|
2691
2715
|
fontSize: "small"
|
|
2692
|
-
})))), /*#__PURE__*/React__default.createElement(Box$
|
|
2716
|
+
})))), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
2693
2717
|
sx: {
|
|
2694
2718
|
flex: 1
|
|
2695
2719
|
}
|
|
2696
|
-
}), /*#__PURE__*/React__default.createElement(Box$
|
|
2720
|
+
}), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
2697
2721
|
className: "hover-icons",
|
|
2698
2722
|
sx: {
|
|
2699
2723
|
display: "flex",
|
|
@@ -2725,7 +2749,7 @@ const SortableChip$1 = ({
|
|
|
2725
2749
|
minWidth: '200px',
|
|
2726
2750
|
maxWidth: '400px'
|
|
2727
2751
|
}
|
|
2728
|
-
}), /*#__PURE__*/React__default.createElement(Box$
|
|
2752
|
+
}), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
2729
2753
|
className: "hover-icons",
|
|
2730
2754
|
sx: {
|
|
2731
2755
|
display: "flex",
|
|
@@ -2764,7 +2788,7 @@ const SortableChip$1 = ({
|
|
|
2764
2788
|
"aria-label": "reset title"
|
|
2765
2789
|
}, /*#__PURE__*/React__default.createElement(RestartAltIcon, {
|
|
2766
2790
|
fontSize: "small"
|
|
2767
|
-
})))), /*#__PURE__*/React__default.createElement(Box$
|
|
2791
|
+
})))), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
2768
2792
|
sx: {
|
|
2769
2793
|
flex: 1
|
|
2770
2794
|
}
|
|
@@ -3019,7 +3043,7 @@ const Dimensions = ({
|
|
|
3019
3043
|
}
|
|
3020
3044
|
return pathParts.join(" → ");
|
|
3021
3045
|
};
|
|
3022
|
-
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Box$
|
|
3046
|
+
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3023
3047
|
sx: {
|
|
3024
3048
|
display: "flex",
|
|
3025
3049
|
justifyContent: "flex-start",
|
|
@@ -3061,7 +3085,7 @@ const Dimensions = ({
|
|
|
3061
3085
|
mb: 1.5,
|
|
3062
3086
|
color: "rgb(37, 37, 37)"
|
|
3063
3087
|
}
|
|
3064
|
-
}, "Select Provider Path"), /*#__PURE__*/React__default.createElement(Box$
|
|
3088
|
+
}, "Select Provider Path"), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3065
3089
|
sx: {
|
|
3066
3090
|
mb: 3
|
|
3067
3091
|
}
|
|
@@ -3079,7 +3103,7 @@ const Dimensions = ({
|
|
|
3079
3103
|
mb: 1.5,
|
|
3080
3104
|
color: "rgb(37, 37, 37)"
|
|
3081
3105
|
}
|
|
3082
|
-
}, "Select Dimension"), /*#__PURE__*/React__default.createElement(Box$
|
|
3106
|
+
}, "Select Dimension"), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3083
3107
|
sx: {
|
|
3084
3108
|
display: "flex",
|
|
3085
3109
|
alignItems: "center",
|
|
@@ -3115,7 +3139,7 @@ const Dimensions = ({
|
|
|
3115
3139
|
opacity: 0.5
|
|
3116
3140
|
}
|
|
3117
3141
|
}
|
|
3118
|
-
}, /*#__PURE__*/React__default.createElement(PlaylistAddIcon, null))))), /*#__PURE__*/React__default.createElement(Box$
|
|
3142
|
+
}, /*#__PURE__*/React__default.createElement(PlaylistAddIcon, null))))), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3119
3143
|
sx: {
|
|
3120
3144
|
display: "flex",
|
|
3121
3145
|
justifyContent: "flex-end",
|
|
@@ -3158,7 +3182,7 @@ const Dimensions = ({
|
|
|
3158
3182
|
boxShadow: "none"
|
|
3159
3183
|
}
|
|
3160
3184
|
}
|
|
3161
|
-
}, "Save Dimension"))), savedDimensions.length > 0 && /*#__PURE__*/React__default.createElement(Box$
|
|
3185
|
+
}, "Save Dimension"))), savedDimensions.length > 0 && /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3162
3186
|
sx: {
|
|
3163
3187
|
marginTop: 0
|
|
3164
3188
|
}
|
|
@@ -3183,7 +3207,7 @@ const Dimensions = ({
|
|
|
3183
3207
|
}, /*#__PURE__*/React__default.createElement(SortableContext, {
|
|
3184
3208
|
items: savedDimensions.map((_, index) => index),
|
|
3185
3209
|
strategy: verticalListSortingStrategy
|
|
3186
|
-
}, /*#__PURE__*/React__default.createElement(Box$
|
|
3210
|
+
}, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3187
3211
|
sx: {
|
|
3188
3212
|
display: "flex",
|
|
3189
3213
|
flexDirection: "column",
|
|
@@ -3351,7 +3375,7 @@ const SortableChip = ({
|
|
|
3351
3375
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
3352
3376
|
ref: setNodeRef,
|
|
3353
3377
|
style: style
|
|
3354
|
-
}, attributes), /*#__PURE__*/React__default.createElement(Box$
|
|
3378
|
+
}, attributes), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3355
3379
|
ref: containerRef,
|
|
3356
3380
|
sx: {
|
|
3357
3381
|
display: "flex",
|
|
@@ -3368,7 +3392,7 @@ const SortableChip = ({
|
|
|
3368
3392
|
opacity: 1 // show icons on hover
|
|
3369
3393
|
}
|
|
3370
3394
|
}
|
|
3371
|
-
}, /*#__PURE__*/React__default.createElement(Box$
|
|
3395
|
+
}, /*#__PURE__*/React__default.createElement(Box$1, _extends({}, listeners, {
|
|
3372
3396
|
sx: {
|
|
3373
3397
|
display: "flex",
|
|
3374
3398
|
alignItems: "center",
|
|
@@ -3382,7 +3406,7 @@ const SortableChip = ({
|
|
|
3382
3406
|
cursor: "grab",
|
|
3383
3407
|
color: "rgba(110, 110, 110, 0.62)"
|
|
3384
3408
|
}
|
|
3385
|
-
})), !isEditing ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, source && /*#__PURE__*/React__default.createElement(Box$
|
|
3409
|
+
})), !isEditing ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, source && /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3386
3410
|
sx: {
|
|
3387
3411
|
display: 'flex',
|
|
3388
3412
|
alignItems: 'center',
|
|
@@ -3390,7 +3414,7 @@ const SortableChip = ({
|
|
|
3390
3414
|
}
|
|
3391
3415
|
}, /*#__PURE__*/React__default.createElement(MetricSourceIcon, {
|
|
3392
3416
|
source: source
|
|
3393
|
-
})), /*#__PURE__*/React__default.createElement(Box$
|
|
3417
|
+
})), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3394
3418
|
sx: {
|
|
3395
3419
|
minWidth: 0
|
|
3396
3420
|
}
|
|
@@ -3409,7 +3433,7 @@ const SortableChip = ({
|
|
|
3409
3433
|
overflow: "hidden",
|
|
3410
3434
|
textOverflow: "ellipsis"
|
|
3411
3435
|
}
|
|
3412
|
-
}, displayLabel))), /*#__PURE__*/React__default.createElement(Box$
|
|
3436
|
+
}, displayLabel))), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3413
3437
|
className: "hover-icons",
|
|
3414
3438
|
sx: {
|
|
3415
3439
|
display: "flex",
|
|
@@ -3440,11 +3464,11 @@ const SortableChip = ({
|
|
|
3440
3464
|
}
|
|
3441
3465
|
}, /*#__PURE__*/React__default.createElement(GridDeleteIcon, {
|
|
3442
3466
|
fontSize: "small"
|
|
3443
|
-
})))), /*#__PURE__*/React__default.createElement(Box$
|
|
3467
|
+
})))), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3444
3468
|
sx: {
|
|
3445
3469
|
flex: 1
|
|
3446
3470
|
}
|
|
3447
|
-
}), /*#__PURE__*/React__default.createElement(Box$
|
|
3471
|
+
}), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3448
3472
|
className: "hover-icons",
|
|
3449
3473
|
sx: {
|
|
3450
3474
|
display: "flex",
|
|
@@ -3476,7 +3500,7 @@ const SortableChip = ({
|
|
|
3476
3500
|
minWidth: '200px',
|
|
3477
3501
|
maxWidth: '400px'
|
|
3478
3502
|
}
|
|
3479
|
-
}), /*#__PURE__*/React__default.createElement(Box$
|
|
3503
|
+
}), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3480
3504
|
className: "hover-icons",
|
|
3481
3505
|
sx: {
|
|
3482
3506
|
display: "flex",
|
|
@@ -3515,7 +3539,7 @@ const SortableChip = ({
|
|
|
3515
3539
|
"aria-label": "reset title"
|
|
3516
3540
|
}, /*#__PURE__*/React__default.createElement(RestartAltIcon, {
|
|
3517
3541
|
fontSize: "small"
|
|
3518
|
-
})))), /*#__PURE__*/React__default.createElement(Box$
|
|
3542
|
+
})))), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3519
3543
|
sx: {
|
|
3520
3544
|
flex: 1
|
|
3521
3545
|
}
|
|
@@ -3756,7 +3780,7 @@ const Metrics = ({
|
|
|
3756
3780
|
}
|
|
3757
3781
|
return pathParts.join(' → ');
|
|
3758
3782
|
};
|
|
3759
|
-
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Box$
|
|
3783
|
+
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3760
3784
|
sx: {
|
|
3761
3785
|
display: "flex",
|
|
3762
3786
|
justifyContent: "flex-start",
|
|
@@ -3798,7 +3822,7 @@ const Metrics = ({
|
|
|
3798
3822
|
mb: 1.5,
|
|
3799
3823
|
color: "rgb(37, 37, 37)"
|
|
3800
3824
|
}
|
|
3801
|
-
}, "Select Provider Path"), /*#__PURE__*/React__default.createElement(Box$
|
|
3825
|
+
}, "Select Provider Path"), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3802
3826
|
sx: {
|
|
3803
3827
|
mb: 3
|
|
3804
3828
|
}
|
|
@@ -3816,7 +3840,7 @@ const Metrics = ({
|
|
|
3816
3840
|
mb: 1.5,
|
|
3817
3841
|
color: "rgb(37, 37, 37)"
|
|
3818
3842
|
}
|
|
3819
|
-
}, "Select Metric"), /*#__PURE__*/React__default.createElement(Box$
|
|
3843
|
+
}, "Select Metric"), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3820
3844
|
sx: {
|
|
3821
3845
|
display: 'flex',
|
|
3822
3846
|
alignItems: 'center',
|
|
@@ -3852,7 +3876,7 @@ const Metrics = ({
|
|
|
3852
3876
|
opacity: 0.5
|
|
3853
3877
|
}
|
|
3854
3878
|
}
|
|
3855
|
-
}, /*#__PURE__*/React__default.createElement(PlaylistAddIcon, null))))), /*#__PURE__*/React__default.createElement(Box$
|
|
3879
|
+
}, /*#__PURE__*/React__default.createElement(PlaylistAddIcon, null))))), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3856
3880
|
sx: {
|
|
3857
3881
|
display: "flex",
|
|
3858
3882
|
justifyContent: "flex-end",
|
|
@@ -3895,7 +3919,7 @@ const Metrics = ({
|
|
|
3895
3919
|
boxShadow: "none"
|
|
3896
3920
|
}
|
|
3897
3921
|
}
|
|
3898
|
-
}, "Save Metric"))), savedMetrics.length > 0 && /*#__PURE__*/React__default.createElement(Box$
|
|
3922
|
+
}, "Save Metric"))), savedMetrics.length > 0 && /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3899
3923
|
sx: {
|
|
3900
3924
|
marginTop: 0
|
|
3901
3925
|
}
|
|
@@ -3914,7 +3938,7 @@ const Metrics = ({
|
|
|
3914
3938
|
}, /*#__PURE__*/React__default.createElement(SortableContext, {
|
|
3915
3939
|
items: savedMetrics.map((_, index) => index),
|
|
3916
3940
|
strategy: verticalListSortingStrategy
|
|
3917
|
-
}, /*#__PURE__*/React__default.createElement(Box$
|
|
3941
|
+
}, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
3918
3942
|
sx: {
|
|
3919
3943
|
display: 'flex',
|
|
3920
3944
|
flexDirection: 'column',
|
|
@@ -4535,7 +4559,7 @@ const Filters = ({
|
|
|
4535
4559
|
|
|
4536
4560
|
// Convert savedFilters object to array for display
|
|
4537
4561
|
const filterEntries = Object.entries(savedFilters);
|
|
4538
|
-
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Box$
|
|
4562
|
+
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
4539
4563
|
sx: {
|
|
4540
4564
|
display: "flex",
|
|
4541
4565
|
justifyContent: "flex-start",
|
|
@@ -4598,7 +4622,7 @@ const Filters = ({
|
|
|
4598
4622
|
mb: 1.5,
|
|
4599
4623
|
color: "rgb(37, 37, 37)"
|
|
4600
4624
|
}
|
|
4601
|
-
}, "Select Provider Path"), /*#__PURE__*/React__default.createElement(Box$
|
|
4625
|
+
}, "Select Provider Path"), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
4602
4626
|
sx: {
|
|
4603
4627
|
mb: 3
|
|
4604
4628
|
}
|
|
@@ -4616,7 +4640,7 @@ const Filters = ({
|
|
|
4616
4640
|
mb: 1.5,
|
|
4617
4641
|
color: "rgb(37, 37, 37)"
|
|
4618
4642
|
}
|
|
4619
|
-
}, "Select Dimension for Filter"), /*#__PURE__*/React__default.createElement(Box$
|
|
4643
|
+
}, "Select Dimension for Filter"), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
4620
4644
|
sx: {
|
|
4621
4645
|
mb: 3
|
|
4622
4646
|
}
|
|
@@ -4643,7 +4667,7 @@ const Filters = ({
|
|
|
4643
4667
|
}
|
|
4644
4668
|
}, isDate ? 'Select Date Range' : 'Select Filter Values'), isDate ? /*#__PURE__*/React__default.createElement(LocalizationProvider, {
|
|
4645
4669
|
dateAdapter: AdapterDayjs
|
|
4646
|
-
}, /*#__PURE__*/React__default.createElement(Box$
|
|
4670
|
+
}, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
4647
4671
|
sx: {
|
|
4648
4672
|
display: 'flex',
|
|
4649
4673
|
gap: 2,
|
|
@@ -4675,7 +4699,7 @@ const Filters = ({
|
|
|
4675
4699
|
clearable: true
|
|
4676
4700
|
}
|
|
4677
4701
|
}
|
|
4678
|
-
}))) : /*#__PURE__*/React__default.createElement(Box$
|
|
4702
|
+
}))) : /*#__PURE__*/React__default.createElement(Box$1, {
|
|
4679
4703
|
sx: {
|
|
4680
4704
|
width: '400px'
|
|
4681
4705
|
}
|
|
@@ -4692,7 +4716,7 @@ const Filters = ({
|
|
|
4692
4716
|
helperText: selectedFilterValues.length > 0 ? `${selectedFilterValues.length} value(s) selected` : 'Select at least one value',
|
|
4693
4717
|
debounceMs: 1000
|
|
4694
4718
|
})));
|
|
4695
|
-
})(), /*#__PURE__*/React__default.createElement(Box$
|
|
4719
|
+
})(), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
4696
4720
|
sx: {
|
|
4697
4721
|
display: "flex",
|
|
4698
4722
|
justifyContent: "flex-end",
|
|
@@ -4760,7 +4784,7 @@ const Filters = ({
|
|
|
4760
4784
|
mb: 1.5,
|
|
4761
4785
|
color: "rgb(37, 37, 37)"
|
|
4762
4786
|
}
|
|
4763
|
-
}, "Select Dimension from Report"), /*#__PURE__*/React__default.createElement(Box$
|
|
4787
|
+
}, "Select Dimension from Report"), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
4764
4788
|
sx: {
|
|
4765
4789
|
mb: 3
|
|
4766
4790
|
}
|
|
@@ -4789,7 +4813,7 @@ const Filters = ({
|
|
|
4789
4813
|
}
|
|
4790
4814
|
}, isDate ? 'Select Date Range' : 'Select Filter Values'), isDate ? /*#__PURE__*/React__default.createElement(LocalizationProvider, {
|
|
4791
4815
|
dateAdapter: AdapterDayjs
|
|
4792
|
-
}, /*#__PURE__*/React__default.createElement(Box$
|
|
4816
|
+
}, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
4793
4817
|
sx: {
|
|
4794
4818
|
display: 'flex',
|
|
4795
4819
|
gap: 2,
|
|
@@ -4821,7 +4845,7 @@ const Filters = ({
|
|
|
4821
4845
|
clearable: true
|
|
4822
4846
|
}
|
|
4823
4847
|
}
|
|
4824
|
-
}))) : /*#__PURE__*/React__default.createElement(Box$
|
|
4848
|
+
}))) : /*#__PURE__*/React__default.createElement(Box$1, {
|
|
4825
4849
|
sx: {
|
|
4826
4850
|
width: '400px'
|
|
4827
4851
|
}
|
|
@@ -4838,7 +4862,7 @@ const Filters = ({
|
|
|
4838
4862
|
helperText: selectedFilterValues.length > 0 ? `${selectedFilterValues.length} value(s) selected` : 'Select at least one value',
|
|
4839
4863
|
debounceMs: 1000
|
|
4840
4864
|
})));
|
|
4841
|
-
})(), /*#__PURE__*/React__default.createElement(Box$
|
|
4865
|
+
})(), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
4842
4866
|
sx: {
|
|
4843
4867
|
display: "flex",
|
|
4844
4868
|
justifyContent: "flex-end",
|
|
@@ -4887,7 +4911,7 @@ const Filters = ({
|
|
|
4887
4911
|
boxShadow: "none"
|
|
4888
4912
|
}
|
|
4889
4913
|
}
|
|
4890
|
-
}, "Save Filter"))), filterEntries.length > 0 && /*#__PURE__*/React__default.createElement(Box$
|
|
4914
|
+
}, "Save Filter"))), filterEntries.length > 0 && /*#__PURE__*/React__default.createElement(Box$1, {
|
|
4891
4915
|
sx: {
|
|
4892
4916
|
marginTop: 0
|
|
4893
4917
|
}
|
|
@@ -4899,7 +4923,7 @@ const Filters = ({
|
|
|
4899
4923
|
marginBottom: 1,
|
|
4900
4924
|
color: "rgb(37, 37, 37)"
|
|
4901
4925
|
}
|
|
4902
|
-
}, "Saved Filters"), /*#__PURE__*/React__default.createElement(Box$
|
|
4926
|
+
}, "Saved Filters"), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
4903
4927
|
sx: {
|
|
4904
4928
|
display: 'flex',
|
|
4905
4929
|
flexDirection: 'column',
|
|
@@ -4932,9 +4956,9 @@ const Filters = ({
|
|
|
4932
4956
|
// Use filter title override if exists, otherwise use dimension title override, otherwise use default dimension title
|
|
4933
4957
|
const displayLabel = titleOverrides[fullPath] || dimensionTitleOverrides[fullPath] || filter.dimensionTitle;
|
|
4934
4958
|
const hasCustomTitle = !!titleOverrides[fullPath];
|
|
4935
|
-
return /*#__PURE__*/React__default.createElement(Box$
|
|
4959
|
+
return /*#__PURE__*/React__default.createElement(Box$1, {
|
|
4936
4960
|
key: fullPath
|
|
4937
|
-
}, /*#__PURE__*/React__default.createElement(Box$
|
|
4961
|
+
}, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
4938
4962
|
sx: {
|
|
4939
4963
|
display: "flex",
|
|
4940
4964
|
alignItems: "center",
|
|
@@ -4950,7 +4974,7 @@ const Filters = ({
|
|
|
4950
4974
|
opacity: 1
|
|
4951
4975
|
}
|
|
4952
4976
|
}
|
|
4953
|
-
}, !isEditingTitle ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Box$
|
|
4977
|
+
}, !isEditingTitle ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
4954
4978
|
sx: {
|
|
4955
4979
|
display: 'flex',
|
|
4956
4980
|
alignItems: 'center',
|
|
@@ -4966,7 +4990,7 @@ const Filters = ({
|
|
|
4966
4990
|
color: "#1a1a1a",
|
|
4967
4991
|
fontSize: "14px"
|
|
4968
4992
|
}
|
|
4969
|
-
}, displayLabel), /*#__PURE__*/React__default.createElement(Box$
|
|
4993
|
+
}, displayLabel), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
4970
4994
|
className: "hover-icons",
|
|
4971
4995
|
sx: {
|
|
4972
4996
|
display: "flex",
|
|
@@ -5025,7 +5049,7 @@ const Filters = ({
|
|
|
5025
5049
|
sx: {
|
|
5026
5050
|
flex: 1
|
|
5027
5051
|
}
|
|
5028
|
-
}), /*#__PURE__*/React__default.createElement(Box$
|
|
5052
|
+
}), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
5029
5053
|
sx: {
|
|
5030
5054
|
display: "flex",
|
|
5031
5055
|
gap: 0.5
|
|
@@ -5074,7 +5098,7 @@ const Filters = ({
|
|
|
5074
5098
|
}
|
|
5075
5099
|
}, "Edit ", isDate ? 'Date Range' : 'Values', " for: ", dimensionTitleOverrides[fullPath] || filter.dimensionTitle), isDate ? /*#__PURE__*/React__default.createElement(LocalizationProvider, {
|
|
5076
5100
|
dateAdapter: AdapterDayjs
|
|
5077
|
-
}, /*#__PURE__*/React__default.createElement(Box$
|
|
5101
|
+
}, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
5078
5102
|
sx: {
|
|
5079
5103
|
display: 'flex',
|
|
5080
5104
|
gap: 2,
|
|
@@ -5107,7 +5131,7 @@ const Filters = ({
|
|
|
5107
5131
|
clearable: true
|
|
5108
5132
|
}
|
|
5109
5133
|
}
|
|
5110
|
-
}))) : /*#__PURE__*/React__default.createElement(Box$
|
|
5134
|
+
}))) : /*#__PURE__*/React__default.createElement(Box$1, {
|
|
5111
5135
|
sx: {
|
|
5112
5136
|
width: '400px',
|
|
5113
5137
|
marginBottom: 2
|
|
@@ -5124,7 +5148,7 @@ const Filters = ({
|
|
|
5124
5148
|
loading: loadingFilterValues,
|
|
5125
5149
|
helperText: selectedFilterValues.length > 0 ? `${selectedFilterValues.length} value(s) selected` : 'Select at least one value',
|
|
5126
5150
|
debounceMs: 1000
|
|
5127
|
-
})), /*#__PURE__*/React__default.createElement(Box$
|
|
5151
|
+
})), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
5128
5152
|
sx: {
|
|
5129
5153
|
display: 'flex',
|
|
5130
5154
|
gap: 1,
|
|
@@ -5261,7 +5285,7 @@ const ReportDataGrid = ({
|
|
|
5261
5285
|
flex: 1,
|
|
5262
5286
|
minWidth: 150,
|
|
5263
5287
|
type: metricDef?.type === 'integer' || metricDef?.type === 'currency' ? 'number' : 'string',
|
|
5264
|
-
renderHeader: () => /*#__PURE__*/React__default.createElement(Box$
|
|
5288
|
+
renderHeader: () => /*#__PURE__*/React__default.createElement(Box$1, {
|
|
5265
5289
|
sx: {
|
|
5266
5290
|
display: 'flex',
|
|
5267
5291
|
alignItems: 'center',
|
|
@@ -5316,7 +5340,7 @@ const ReportDataGrid = ({
|
|
|
5316
5340
|
}
|
|
5317
5341
|
};
|
|
5318
5342
|
if (loading) {
|
|
5319
|
-
return /*#__PURE__*/React__default.createElement(Box$
|
|
5343
|
+
return /*#__PURE__*/React__default.createElement(Box$1, {
|
|
5320
5344
|
display: "flex",
|
|
5321
5345
|
justifyContent: "center",
|
|
5322
5346
|
alignItems: "center",
|
|
@@ -5324,7 +5348,7 @@ const ReportDataGrid = ({
|
|
|
5324
5348
|
}, /*#__PURE__*/React__default.createElement(CircularProgress$1, null));
|
|
5325
5349
|
}
|
|
5326
5350
|
if (!reportData || reportData.length === 0) {
|
|
5327
|
-
return /*#__PURE__*/React__default.createElement(Box$
|
|
5351
|
+
return /*#__PURE__*/React__default.createElement(Box$1, {
|
|
5328
5352
|
display: "flex",
|
|
5329
5353
|
justifyContent: "center",
|
|
5330
5354
|
alignItems: "center",
|
|
@@ -5334,7 +5358,7 @@ const ReportDataGrid = ({
|
|
|
5334
5358
|
color: "textSecondary"
|
|
5335
5359
|
}, "No data available. Run a report to see results."));
|
|
5336
5360
|
}
|
|
5337
|
-
return /*#__PURE__*/React__default.createElement(Box$
|
|
5361
|
+
return /*#__PURE__*/React__default.createElement(Box$1, {
|
|
5338
5362
|
sx: {
|
|
5339
5363
|
height: 600,
|
|
5340
5364
|
width: '100%'
|
|
@@ -5372,7 +5396,7 @@ function TabPanel({
|
|
|
5372
5396
|
hidden: value !== index,
|
|
5373
5397
|
id: `report-tabpanel-${index}`,
|
|
5374
5398
|
"aria-labelledby": `report-tab-${index}`
|
|
5375
|
-
}, value === index && /*#__PURE__*/React__default.createElement(Box$
|
|
5399
|
+
}, value === index && /*#__PURE__*/React__default.createElement(Box$1, {
|
|
5376
5400
|
sx: {
|
|
5377
5401
|
py: 3
|
|
5378
5402
|
}
|
|
@@ -6229,12 +6253,12 @@ const ReportBuilder = ({
|
|
|
6229
6253
|
}
|
|
6230
6254
|
};
|
|
6231
6255
|
const canSaveReport = selectedProvider && reportTitle.trim() && (report.dimensions.length > 0 || report.metrics.length > 0);
|
|
6232
|
-
return /*#__PURE__*/React__default.createElement(Box$
|
|
6256
|
+
return /*#__PURE__*/React__default.createElement(Box$1, {
|
|
6233
6257
|
sx: {
|
|
6234
6258
|
p: 3,
|
|
6235
6259
|
fontFamily: "system-ui"
|
|
6236
6260
|
}
|
|
6237
|
-
}, /*#__PURE__*/React__default.createElement(Box$
|
|
6261
|
+
}, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
6238
6262
|
sx: {
|
|
6239
6263
|
display: "flex",
|
|
6240
6264
|
justifyContent: "space-between",
|
|
@@ -6247,7 +6271,7 @@ const ReportBuilder = ({
|
|
|
6247
6271
|
variant: "outlined",
|
|
6248
6272
|
startIcon: /*#__PURE__*/React__default.createElement(ArrowBackIcon, null),
|
|
6249
6273
|
onClick: onBackToList
|
|
6250
|
-
}, "Back to List")), /*#__PURE__*/React__default.createElement(Box$
|
|
6274
|
+
}, "Back to List")), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
6251
6275
|
sx: {
|
|
6252
6276
|
mt: 2,
|
|
6253
6277
|
p: 3,
|
|
@@ -6260,7 +6284,7 @@ const ReportBuilder = ({
|
|
|
6260
6284
|
gap: 3,
|
|
6261
6285
|
boxShadow: "0px 2px 4px rgba(0,0,0,0.02)"
|
|
6262
6286
|
}
|
|
6263
|
-
}, /*#__PURE__*/React__default.createElement(Box$
|
|
6287
|
+
}, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
6264
6288
|
sx: {
|
|
6265
6289
|
display: "flex",
|
|
6266
6290
|
gap: 4,
|
|
@@ -6303,7 +6327,7 @@ const ReportBuilder = ({
|
|
|
6303
6327
|
fontFamily: "system-ui"
|
|
6304
6328
|
},
|
|
6305
6329
|
disabled: !!reportDefinitionId
|
|
6306
|
-
}))), /*#__PURE__*/React__default.createElement(Box$
|
|
6330
|
+
}))), /*#__PURE__*/React__default.createElement(Box$1, {
|
|
6307
6331
|
sx: {
|
|
6308
6332
|
display: "flex",
|
|
6309
6333
|
gap: 2,
|
|
@@ -6371,7 +6395,7 @@ const ReportBuilder = ({
|
|
|
6371
6395
|
backgroundColor: "rgba(46, 125, 50, 0.04)"
|
|
6372
6396
|
}
|
|
6373
6397
|
}
|
|
6374
|
-
}, saving ? "Saving..." : reportDefinitionId ? "Update Report" : "Save Report"))), selectedProvider && /*#__PURE__*/React__default.createElement(Box$
|
|
6398
|
+
}, saving ? "Saving..." : reportDefinitionId ? "Update Report" : "Save Report"))), selectedProvider && /*#__PURE__*/React__default.createElement(Box$1, {
|
|
6375
6399
|
sx: {
|
|
6376
6400
|
mt: 2,
|
|
6377
6401
|
fontFamily: "system-ui",
|
|
@@ -6380,7 +6404,7 @@ const ReportBuilder = ({
|
|
|
6380
6404
|
py: 2,
|
|
6381
6405
|
borderRadius: "8px"
|
|
6382
6406
|
}
|
|
6383
|
-
}, /*#__PURE__*/React__default.createElement(Box$
|
|
6407
|
+
}, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
6384
6408
|
sx: {
|
|
6385
6409
|
borderBottom: 1,
|
|
6386
6410
|
borderColor: "rgba(70, 134, 127, 0.27)"
|