@natoora-libs/core 0.1.13-dev-doug-3 → 0.1.13-dev-doug-4
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/index.js
CHANGED
|
@@ -6596,7 +6596,7 @@ import {
|
|
|
6596
6596
|
FormControlLabel as FormControlLabel3,
|
|
6597
6597
|
Menu as Menu4,
|
|
6598
6598
|
Skeleton as Skeleton3,
|
|
6599
|
-
Tooltip as
|
|
6599
|
+
Tooltip as Tooltip7
|
|
6600
6600
|
} from "@mui/material";
|
|
6601
6601
|
import classNames3 from "classnames";
|
|
6602
6602
|
import { makeStyles as makeStyles48 } from "tss-react/mui";
|
|
@@ -6611,11 +6611,11 @@ import {
|
|
|
6611
6611
|
import {
|
|
6612
6612
|
Paper as Paper10,
|
|
6613
6613
|
Table,
|
|
6614
|
-
TableBody
|
|
6614
|
+
TableBody,
|
|
6615
6615
|
TableContainer,
|
|
6616
6616
|
Skeleton as Skeleton2,
|
|
6617
|
-
TableRow as
|
|
6618
|
-
TableCell as
|
|
6617
|
+
TableRow as TableRow3,
|
|
6618
|
+
TableCell as TableCell3
|
|
6619
6619
|
} from "@mui/material";
|
|
6620
6620
|
import { makeStyles as makeStyles47 } from "tss-react/mui";
|
|
6621
6621
|
|
|
@@ -6628,6 +6628,7 @@ import {
|
|
|
6628
6628
|
TableHead,
|
|
6629
6629
|
TableRow,
|
|
6630
6630
|
TableSortLabel,
|
|
6631
|
+
Tooltip as Tooltip6,
|
|
6631
6632
|
Typography as Typography25
|
|
6632
6633
|
} from "@mui/material";
|
|
6633
6634
|
import { makeStyles as makeStyles45 } from "tss-react/mui";
|
|
@@ -6729,7 +6730,7 @@ var SmartTableHeader = ({
|
|
|
6729
6730
|
flexDirection: "row",
|
|
6730
6731
|
gap: headCell.disableSort ? 1 : 0,
|
|
6731
6732
|
children: [
|
|
6732
|
-
headCell.disableSort ? /* @__PURE__ */ jsx108(Typography25, { variant: "subtitle2", mt: 0.25, fontWeight: 600, children: headCell.label }) : /* @__PURE__ */ jsxs73(
|
|
6733
|
+
headCell.disableSort ? headCell.RenderHeader ?? /* @__PURE__ */ jsx108(Tooltip6, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ jsx108(Typography25, { variant: "subtitle2", mt: 0.25, fontWeight: 600, children: headCell.label }) }) : /* @__PURE__ */ jsx108(Tooltip6, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ jsxs73(
|
|
6733
6734
|
TableSortLabel,
|
|
6734
6735
|
{
|
|
6735
6736
|
"data-testid": "table-sort-label",
|
|
@@ -6741,7 +6742,7 @@ var SmartTableHeader = ({
|
|
|
6741
6742
|
orderBy === headCell.id ? /* @__PURE__ */ jsx108("span", { className: classes.visuallyHidden, children: order === "desc" ? "sorted descending" : "sorted ascending" }) : null
|
|
6742
6743
|
]
|
|
6743
6744
|
}
|
|
6744
|
-
),
|
|
6745
|
+
) }),
|
|
6745
6746
|
headCell.refetchFilterOptions ? /* @__PURE__ */ jsx108(
|
|
6746
6747
|
SmartTableHeaderFilterMenu_default,
|
|
6747
6748
|
{
|
|
@@ -6762,39 +6763,10 @@ var SmartTableHeader = ({
|
|
|
6762
6763
|
};
|
|
6763
6764
|
var SmartTableHeader_default = memo20(SmartTableHeader);
|
|
6764
6765
|
|
|
6765
|
-
// src/components/TableDesktopNoColumnsMessage/TableDesktopNoColumnsMessage.tsx
|
|
6766
|
-
import TableBody from "@mui/material/TableBody";
|
|
6767
|
-
import TableCell2 from "@mui/material/TableCell";
|
|
6768
|
-
import TableRow2 from "@mui/material/TableRow";
|
|
6769
|
-
import Typography26 from "@mui/material/Typography";
|
|
6770
|
-
import { jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
6771
|
-
var TableDesktopNoColumnsMessage = () => /* @__PURE__ */ jsx109(TableBody, { children: /* @__PURE__ */ jsx109(TableRow2, { children: /* @__PURE__ */ jsxs74(
|
|
6772
|
-
TableCell2,
|
|
6773
|
-
{
|
|
6774
|
-
sx: {
|
|
6775
|
-
py: 8,
|
|
6776
|
-
gap: 2,
|
|
6777
|
-
borderBottom: "none",
|
|
6778
|
-
display: "flex",
|
|
6779
|
-
flexDirection: "column",
|
|
6780
|
-
justifyContent: "center",
|
|
6781
|
-
alignItems: "center"
|
|
6782
|
-
},
|
|
6783
|
-
children: [
|
|
6784
|
-
/* @__PURE__ */ jsx109(Typography26, { variant: "subtitle2", fontSize: 16, children: "Customise your view" }),
|
|
6785
|
-
/* @__PURE__ */ jsxs74(Typography26, { variant: "subtitle1", align: "center", color: "textSecondary", children: [
|
|
6786
|
-
"Use the column selector on the right to choose which fields",
|
|
6787
|
-
/* @__PURE__ */ jsx109("br", {}),
|
|
6788
|
-
"you want to display in the table"
|
|
6789
|
-
] })
|
|
6790
|
-
]
|
|
6791
|
-
}
|
|
6792
|
-
) }) });
|
|
6793
|
-
|
|
6794
6766
|
// src/components/TableEmptyResult/TableEmptyResult.tsx
|
|
6795
|
-
import { TableCell as
|
|
6767
|
+
import { TableCell as TableCell2, TableRow as TableRow2, Typography as Typography26 } from "@mui/material";
|
|
6796
6768
|
import { makeStyles as makeStyles46 } from "tss-react/mui";
|
|
6797
|
-
import { jsx as
|
|
6769
|
+
import { jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
6798
6770
|
var useStyles46 = makeStyles46()(() => ({
|
|
6799
6771
|
tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
|
|
6800
6772
|
tableCellDefault: { padding: 24 }
|
|
@@ -6806,17 +6778,17 @@ var TableEmptyResult = ({
|
|
|
6806
6778
|
}
|
|
6807
6779
|
}) => {
|
|
6808
6780
|
const { classes } = useStyles46();
|
|
6809
|
-
return showClearFilterButton ? /* @__PURE__ */
|
|
6810
|
-
|
|
6781
|
+
return showClearFilterButton ? /* @__PURE__ */ jsx109(TableRow2, { children: /* @__PURE__ */ jsxs74(
|
|
6782
|
+
TableCell2,
|
|
6811
6783
|
{
|
|
6812
6784
|
className: classes.tableCellIcon,
|
|
6813
6785
|
colSpan,
|
|
6814
6786
|
align: "center",
|
|
6815
6787
|
children: [
|
|
6816
|
-
/* @__PURE__ */
|
|
6817
|
-
/* @__PURE__ */
|
|
6818
|
-
/* @__PURE__ */
|
|
6819
|
-
/* @__PURE__ */
|
|
6788
|
+
/* @__PURE__ */ jsx109(EmptyGlassIcon_default, {}),
|
|
6789
|
+
/* @__PURE__ */ jsx109(Typography26, { variant: "h6", children: "No results found." }),
|
|
6790
|
+
/* @__PURE__ */ jsx109(Typography26, { variant: "subtitle1", children: "Search without applied filters?" }),
|
|
6791
|
+
/* @__PURE__ */ jsx109(
|
|
6820
6792
|
FilledButton_default,
|
|
6821
6793
|
{
|
|
6822
6794
|
copy: "Search",
|
|
@@ -6827,8 +6799,8 @@ var TableEmptyResult = ({
|
|
|
6827
6799
|
)
|
|
6828
6800
|
]
|
|
6829
6801
|
}
|
|
6830
|
-
) }) : /* @__PURE__ */
|
|
6831
|
-
|
|
6802
|
+
) }) : /* @__PURE__ */ jsx109(TableRow2, { children: /* @__PURE__ */ jsx109(
|
|
6803
|
+
TableCell2,
|
|
6832
6804
|
{
|
|
6833
6805
|
className: classes.tableCellDefault,
|
|
6834
6806
|
colSpan,
|
|
@@ -6840,7 +6812,7 @@ var TableEmptyResult = ({
|
|
|
6840
6812
|
var TableEmptyResult_default = TableEmptyResult;
|
|
6841
6813
|
|
|
6842
6814
|
// src/components/TableDesktop/TableDesktop.tsx
|
|
6843
|
-
import {
|
|
6815
|
+
import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
6844
6816
|
var ROW_HEIGHT = 56;
|
|
6845
6817
|
var useStyles47 = makeStyles47()((theme) => ({
|
|
6846
6818
|
root: {
|
|
@@ -6979,7 +6951,7 @@ var TableDesktop = ({
|
|
|
6979
6951
|
);
|
|
6980
6952
|
const renderTableRows = useMemo2(() => {
|
|
6981
6953
|
if (isLoading) {
|
|
6982
|
-
return [...Array(Math.min(numRows, rowsPerPage))].map((_, rowIndex) => /* @__PURE__ */
|
|
6954
|
+
return [...Array(Math.min(numRows, rowsPerPage))].map((_, rowIndex) => /* @__PURE__ */ jsx110(TableRow3, { children: [...Array(visibleHeadCells.length)].map((_2, cellIndex) => /* @__PURE__ */ jsx110(TableCell3, { children: /* @__PURE__ */ jsx110(
|
|
6983
6955
|
Skeleton2,
|
|
6984
6956
|
{
|
|
6985
6957
|
animation: "pulse",
|
|
@@ -6993,7 +6965,7 @@ var TableDesktop = ({
|
|
|
6993
6965
|
const sortedData = disableInternalSort ? data : stableSort(data, getComparator(order, orderBy));
|
|
6994
6966
|
return sortedData.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((row, index) => {
|
|
6995
6967
|
const isItemSelected = selected.has(row[keyField]);
|
|
6996
|
-
return /* @__PURE__ */
|
|
6968
|
+
return /* @__PURE__ */ jsx110(
|
|
6997
6969
|
RenderItem,
|
|
6998
6970
|
{
|
|
6999
6971
|
...{
|
|
@@ -7033,16 +7005,16 @@ var TableDesktop = ({
|
|
|
7033
7005
|
setSelected(/* @__PURE__ */ new Set());
|
|
7034
7006
|
}
|
|
7035
7007
|
}, [enableCheckboxSelection]);
|
|
7036
|
-
return /* @__PURE__ */
|
|
7037
|
-
/* @__PURE__ */
|
|
7008
|
+
return /* @__PURE__ */ jsx110("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ jsxs75(Paper10, { className: classes.paper, children: [
|
|
7009
|
+
/* @__PURE__ */ jsx110(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsxs75(
|
|
7038
7010
|
Table,
|
|
7039
7011
|
{
|
|
7040
7012
|
stickyHeader: true,
|
|
7041
7013
|
"aria-labelledby": "tableTitle",
|
|
7042
7014
|
"aria-label": "sticky table",
|
|
7043
7015
|
style: { tableLayout },
|
|
7044
|
-
children:
|
|
7045
|
-
/* @__PURE__ */
|
|
7016
|
+
children: [
|
|
7017
|
+
/* @__PURE__ */ jsx110(
|
|
7046
7018
|
SmartTableHeader_default,
|
|
7047
7019
|
{
|
|
7048
7020
|
headCells: visibleHeadCells,
|
|
@@ -7058,7 +7030,7 @@ var TableDesktop = ({
|
|
|
7058
7030
|
shouldShowCheckOnFilter
|
|
7059
7031
|
}
|
|
7060
7032
|
),
|
|
7061
|
-
/* @__PURE__ */
|
|
7033
|
+
/* @__PURE__ */ jsx110(TableBody, { children: rowsPerPage !== emptyRows ? renderTableRows : /* @__PURE__ */ jsx110(
|
|
7062
7034
|
TableEmptyResult_default,
|
|
7063
7035
|
{
|
|
7064
7036
|
colSpan: enableCheckboxSelection ? visibleHeadCells.length + 1 : visibleHeadCells.length,
|
|
@@ -7066,7 +7038,7 @@ var TableDesktop = ({
|
|
|
7066
7038
|
handleClickOnClearFiltersButton
|
|
7067
7039
|
}
|
|
7068
7040
|
) })
|
|
7069
|
-
]
|
|
7041
|
+
]
|
|
7070
7042
|
}
|
|
7071
7043
|
) }),
|
|
7072
7044
|
children
|
|
@@ -7075,7 +7047,7 @@ var TableDesktop = ({
|
|
|
7075
7047
|
var TableDesktop_default = TableDesktop;
|
|
7076
7048
|
|
|
7077
7049
|
// src/components/SmartTableHeaderFilterMenu/SmartTableHeaderFilterMenu.tsx
|
|
7078
|
-
import { Fragment as
|
|
7050
|
+
import { Fragment as Fragment11, jsx as jsx111, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
7079
7051
|
var useStyles48 = makeStyles48()((theme) => ({
|
|
7080
7052
|
filterMenu: {
|
|
7081
7053
|
display: "flex",
|
|
@@ -7187,18 +7159,18 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7187
7159
|
const isOptionChecked = useMemo3(() => (resolvedOption) => !!selectedFilters?.some(
|
|
7188
7160
|
(value) => resolveOptionType(value, headCell.fieldName ?? "") === resolvedOption
|
|
7189
7161
|
), [selectedFilters]);
|
|
7190
|
-
const loadingSkeletons = /* @__PURE__ */
|
|
7191
|
-
/* @__PURE__ */
|
|
7192
|
-
/* @__PURE__ */
|
|
7193
|
-
/* @__PURE__ */
|
|
7194
|
-
/* @__PURE__ */
|
|
7195
|
-
/* @__PURE__ */
|
|
7196
|
-
/* @__PURE__ */
|
|
7197
|
-
/* @__PURE__ */
|
|
7198
|
-
/* @__PURE__ */
|
|
7162
|
+
const loadingSkeletons = /* @__PURE__ */ jsxs76(Box29, { "data-testid": "loading-skeletons", width: 272, children: [
|
|
7163
|
+
/* @__PURE__ */ jsx111(Skeleton3, { variant: "rounded", className: classes.skeleton }),
|
|
7164
|
+
/* @__PURE__ */ jsx111(Divider9, {}),
|
|
7165
|
+
/* @__PURE__ */ jsx111(Skeleton3, { variant: "rounded", className: classes.skeleton }),
|
|
7166
|
+
/* @__PURE__ */ jsx111(Skeleton3, { variant: "rounded", className: classes.skeleton }),
|
|
7167
|
+
/* @__PURE__ */ jsx111(Skeleton3, { variant: "rounded", className: classes.skeleton }),
|
|
7168
|
+
/* @__PURE__ */ jsx111(Skeleton3, { variant: "rounded", className: classes.skeleton }),
|
|
7169
|
+
/* @__PURE__ */ jsx111(Divider9, {}),
|
|
7170
|
+
/* @__PURE__ */ jsx111(Skeleton3, { variant: "rounded", className: classes.skeleton })
|
|
7199
7171
|
] });
|
|
7200
|
-
return /* @__PURE__ */
|
|
7201
|
-
/* @__PURE__ */
|
|
7172
|
+
return /* @__PURE__ */ jsxs76(Fragment11, { children: [
|
|
7173
|
+
/* @__PURE__ */ jsx111(
|
|
7202
7174
|
ActiveFiltersIconButton_default,
|
|
7203
7175
|
{
|
|
7204
7176
|
numActiveFilters,
|
|
@@ -7208,7 +7180,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7208
7180
|
})
|
|
7209
7181
|
}
|
|
7210
7182
|
),
|
|
7211
|
-
/* @__PURE__ */
|
|
7183
|
+
/* @__PURE__ */ jsx111(
|
|
7212
7184
|
Menu4,
|
|
7213
7185
|
{
|
|
7214
7186
|
open: !!anchorEl,
|
|
@@ -7217,12 +7189,12 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7217
7189
|
"data-testid": "filter-menu",
|
|
7218
7190
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
7219
7191
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
7220
|
-
children: headCell.isFetchingFilterOptions ? loadingSkeletons : /* @__PURE__ */
|
|
7221
|
-
/* @__PURE__ */
|
|
7192
|
+
children: headCell.isFetchingFilterOptions ? loadingSkeletons : /* @__PURE__ */ jsxs76(Box29, { className: classes.filterMenu, children: [
|
|
7193
|
+
/* @__PURE__ */ jsx111(Box29, { px: 3, mb: 0.5, children: /* @__PURE__ */ jsx111(
|
|
7222
7194
|
FormControlLabel3,
|
|
7223
7195
|
{
|
|
7224
7196
|
label: "Select All",
|
|
7225
|
-
control: /* @__PURE__ */
|
|
7197
|
+
control: /* @__PURE__ */ jsx111(
|
|
7226
7198
|
Checkbox5,
|
|
7227
7199
|
{
|
|
7228
7200
|
disableRipple: true,
|
|
@@ -7239,20 +7211,20 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7239
7211
|
)
|
|
7240
7212
|
}
|
|
7241
7213
|
) }),
|
|
7242
|
-
/* @__PURE__ */
|
|
7243
|
-
/* @__PURE__ */
|
|
7214
|
+
/* @__PURE__ */ jsx111(Divider9, { sx: { mb: 0.5 } }),
|
|
7215
|
+
/* @__PURE__ */ jsx111(Box29, { className: classes.filterOptions, children: filterOptionsData?.map(
|
|
7244
7216
|
(option) => {
|
|
7245
7217
|
const resolvedOption = resolveOptionType(option, headCell.fieldName ?? "");
|
|
7246
|
-
return /* @__PURE__ */
|
|
7218
|
+
return /* @__PURE__ */ jsxs76(
|
|
7247
7219
|
Box29,
|
|
7248
7220
|
{
|
|
7249
7221
|
className: classes.filter,
|
|
7250
7222
|
children: [
|
|
7251
|
-
/* @__PURE__ */
|
|
7223
|
+
/* @__PURE__ */ jsx111(
|
|
7252
7224
|
FormControlLabel3,
|
|
7253
7225
|
{
|
|
7254
7226
|
label: resolvedOption,
|
|
7255
|
-
control: /* @__PURE__ */
|
|
7227
|
+
control: /* @__PURE__ */ jsx111(
|
|
7256
7228
|
Checkbox5,
|
|
7257
7229
|
{
|
|
7258
7230
|
disableRipple: true,
|
|
@@ -7263,16 +7235,16 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7263
7235
|
},
|
|
7264
7236
|
resolvedOption
|
|
7265
7237
|
),
|
|
7266
|
-
shouldShowCheckOnFilter?.(headCell.id, option) ? /* @__PURE__ */
|
|
7238
|
+
shouldShowCheckOnFilter?.(headCell.id, option) ? /* @__PURE__ */ jsx111(Tooltip7, { title: "This filter is saved as default", children: /* @__PURE__ */ jsx111(CheckIcon, { fontSize: "small", color: "action" }) }) : null
|
|
7267
7239
|
]
|
|
7268
7240
|
},
|
|
7269
7241
|
resolvedOption
|
|
7270
7242
|
);
|
|
7271
7243
|
}
|
|
7272
7244
|
) }),
|
|
7273
|
-
/* @__PURE__ */
|
|
7274
|
-
/* @__PURE__ */
|
|
7275
|
-
/* @__PURE__ */
|
|
7245
|
+
/* @__PURE__ */ jsx111(Divider9, { sx: { mb: 0.5 } }),
|
|
7246
|
+
/* @__PURE__ */ jsxs76(Box29, { className: classes.applyFilterButtonsContainer, children: [
|
|
7247
|
+
/* @__PURE__ */ jsx111(
|
|
7276
7248
|
ExtendedButton_default,
|
|
7277
7249
|
{
|
|
7278
7250
|
copy: "Save as Default",
|
|
@@ -7283,7 +7255,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7283
7255
|
onClick: () => handleApplyFilters(true)
|
|
7284
7256
|
}
|
|
7285
7257
|
),
|
|
7286
|
-
/* @__PURE__ */
|
|
7258
|
+
/* @__PURE__ */ jsx111(
|
|
7287
7259
|
ExtendedButton_default,
|
|
7288
7260
|
{
|
|
7289
7261
|
copy: "Apply",
|
|
@@ -7307,11 +7279,11 @@ import {
|
|
|
7307
7279
|
Box as Box31,
|
|
7308
7280
|
Paper as Paper11,
|
|
7309
7281
|
Table as MUITable,
|
|
7310
|
-
TableBody as
|
|
7311
|
-
TableCell as
|
|
7282
|
+
TableBody as TableBody2,
|
|
7283
|
+
TableCell as TableCell4,
|
|
7312
7284
|
TableContainer as TableContainer2,
|
|
7313
7285
|
TableHead as TableHead2,
|
|
7314
|
-
TableRow as
|
|
7286
|
+
TableRow as TableRow4,
|
|
7315
7287
|
TableSortLabel as TableSortLabel2
|
|
7316
7288
|
} from "@mui/material";
|
|
7317
7289
|
import { makeStyles as makeStyles49 } from "tss-react/mui";
|
|
@@ -7319,11 +7291,11 @@ import { v4 as uuidv4 } from "uuid";
|
|
|
7319
7291
|
|
|
7320
7292
|
// src/components/TableLoading/TableLoading.tsx
|
|
7321
7293
|
import { Box as Box30, Skeleton as Skeleton4 } from "@mui/material";
|
|
7322
|
-
import { jsx as
|
|
7294
|
+
import { jsx as jsx112 } from "react/jsx-runtime";
|
|
7323
7295
|
var TableLoading = ({
|
|
7324
7296
|
rowsPerPage,
|
|
7325
7297
|
rowHeight
|
|
7326
|
-
}) => /* @__PURE__ */
|
|
7298
|
+
}) => /* @__PURE__ */ jsx112(Box30, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx112(
|
|
7327
7299
|
Skeleton4,
|
|
7328
7300
|
{
|
|
7329
7301
|
animation: "pulse",
|
|
@@ -7372,7 +7344,7 @@ function calculateRowsPerPage(rowHeight) {
|
|
|
7372
7344
|
}
|
|
7373
7345
|
|
|
7374
7346
|
// src/components/Table/Table.tsx
|
|
7375
|
-
import { jsx as
|
|
7347
|
+
import { jsx as jsx113, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
7376
7348
|
var useStyles49 = makeStyles49()(() => ({
|
|
7377
7349
|
root: {
|
|
7378
7350
|
height: "calc(100vh - 262px)",
|
|
@@ -7450,24 +7422,24 @@ var Table2 = ({
|
|
|
7450
7422
|
);
|
|
7451
7423
|
const rowsComponents = rows.map((row) => {
|
|
7452
7424
|
if (RenderItem) {
|
|
7453
|
-
return /* @__PURE__ */
|
|
7425
|
+
return /* @__PURE__ */ jsx113(RenderItem, { ...row }, row.id);
|
|
7454
7426
|
}
|
|
7455
|
-
return /* @__PURE__ */
|
|
7427
|
+
return /* @__PURE__ */ jsx113(TableRow4, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ jsx113(TableCell4, { children: row[column.id] }, column.id)) }, row.id);
|
|
7456
7428
|
});
|
|
7457
7429
|
if (emptyRows > 0 && rowsPerPage > emptyRows) {
|
|
7458
7430
|
rowsComponents.push(
|
|
7459
|
-
/* @__PURE__ */
|
|
7431
|
+
/* @__PURE__ */ jsx113(TableRow4, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx113(TableCell4, { colSpan: 8 }) }, uuidv4())
|
|
7460
7432
|
);
|
|
7461
7433
|
}
|
|
7462
7434
|
return rowsComponents;
|
|
7463
7435
|
};
|
|
7464
|
-
return /* @__PURE__ */
|
|
7465
|
-
/* @__PURE__ */
|
|
7466
|
-
|
|
7436
|
+
return /* @__PURE__ */ jsx113(Paper11, { className: classes.root, children: /* @__PURE__ */ jsx113(Box31, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx113(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ jsx113(TableContainer2, { className: classes.container, children: /* @__PURE__ */ jsxs77(MUITable, { size: "medium", stickyHeader: true, children: [
|
|
7437
|
+
/* @__PURE__ */ jsx113(TableHead2, { className: classes.header, children: /* @__PURE__ */ jsx113(TableRow4, { children: headCells?.map((headCell) => /* @__PURE__ */ jsx113(
|
|
7438
|
+
TableCell4,
|
|
7467
7439
|
{
|
|
7468
7440
|
align: "left",
|
|
7469
7441
|
sortDirection: orderBy === headCell.id ? order : void 0,
|
|
7470
|
-
children: /* @__PURE__ */
|
|
7442
|
+
children: /* @__PURE__ */ jsx113(
|
|
7471
7443
|
TableSortLabel2,
|
|
7472
7444
|
{
|
|
7473
7445
|
active: orderBy === headCell.id,
|
|
@@ -7479,9 +7451,9 @@ var Table2 = ({
|
|
|
7479
7451
|
},
|
|
7480
7452
|
headCell.id
|
|
7481
7453
|
)) }) }),
|
|
7482
|
-
/* @__PURE__ */
|
|
7454
|
+
/* @__PURE__ */ jsxs77(TableBody2, { children: [
|
|
7483
7455
|
getTableRows(),
|
|
7484
|
-
rowsPerPage === emptyRows && /* @__PURE__ */
|
|
7456
|
+
rowsPerPage === emptyRows && /* @__PURE__ */ jsx113(TableRow4, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx113(TableCell4, { colSpan: 8, align: "center", children: "Nothing to display" }) })
|
|
7485
7457
|
] })
|
|
7486
7458
|
] }) }) }) });
|
|
7487
7459
|
};
|
|
@@ -7489,8 +7461,8 @@ var Table_default = Table2;
|
|
|
7489
7461
|
|
|
7490
7462
|
// src/components/TableDesktopFooter/TableDesktopFooter.tsx
|
|
7491
7463
|
import Refresh3 from "@mui/icons-material/Refresh";
|
|
7492
|
-
import { Box as Box32, Button as Button13, MenuItem as MenuItem4, Pagination as Pagination2, Select as Select4, Stack, Typography as
|
|
7493
|
-
import { jsx as
|
|
7464
|
+
import { Box as Box32, Button as Button13, MenuItem as MenuItem4, Pagination as Pagination2, Select as Select4, Stack, Typography as Typography27 } from "@mui/material";
|
|
7465
|
+
import { jsx as jsx114, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
7494
7466
|
var TableDesktopFooter = ({
|
|
7495
7467
|
numPages,
|
|
7496
7468
|
page,
|
|
@@ -7501,7 +7473,7 @@ var TableDesktopFooter = ({
|
|
|
7501
7473
|
refetch,
|
|
7502
7474
|
isFetching
|
|
7503
7475
|
}) => {
|
|
7504
|
-
return /* @__PURE__ */
|
|
7476
|
+
return /* @__PURE__ */ jsxs78(
|
|
7505
7477
|
Box32,
|
|
7506
7478
|
{
|
|
7507
7479
|
py: 1,
|
|
@@ -7512,7 +7484,7 @@ var TableDesktopFooter = ({
|
|
|
7512
7484
|
borderTop: `1px solid ${colors.neutral300}`,
|
|
7513
7485
|
bgcolor: (theme) => theme.palette.background.default,
|
|
7514
7486
|
children: [
|
|
7515
|
-
/* @__PURE__ */
|
|
7487
|
+
/* @__PURE__ */ jsxs78(
|
|
7516
7488
|
Button13,
|
|
7517
7489
|
{
|
|
7518
7490
|
disableRipple: true,
|
|
@@ -7527,7 +7499,7 @@ var TableDesktopFooter = ({
|
|
|
7527
7499
|
borderColor: colors.neutral600
|
|
7528
7500
|
},
|
|
7529
7501
|
children: [
|
|
7530
|
-
/* @__PURE__ */
|
|
7502
|
+
/* @__PURE__ */ jsx114(
|
|
7531
7503
|
Refresh3,
|
|
7532
7504
|
{
|
|
7533
7505
|
fontSize: "small",
|
|
@@ -7538,21 +7510,21 @@ var TableDesktopFooter = ({
|
|
|
7538
7510
|
]
|
|
7539
7511
|
}
|
|
7540
7512
|
),
|
|
7541
|
-
/* @__PURE__ */
|
|
7542
|
-
/* @__PURE__ */
|
|
7543
|
-
/* @__PURE__ */
|
|
7544
|
-
/* @__PURE__ */
|
|
7513
|
+
/* @__PURE__ */ jsxs78(Box32, { display: "flex", children: [
|
|
7514
|
+
/* @__PURE__ */ jsxs78(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
7515
|
+
/* @__PURE__ */ jsx114(Typography27, { children: "Rows per page:" }),
|
|
7516
|
+
/* @__PURE__ */ jsx114(
|
|
7545
7517
|
Select4,
|
|
7546
7518
|
{
|
|
7547
7519
|
value: pageSize,
|
|
7548
7520
|
onChange: handlePageSizeChange,
|
|
7549
7521
|
size: "small",
|
|
7550
7522
|
variant: "standard",
|
|
7551
|
-
children: pageSizeOptions.map((size) => /* @__PURE__ */
|
|
7523
|
+
children: pageSizeOptions.map((size) => /* @__PURE__ */ jsx114(MenuItem4, { value: size, children: size }, size))
|
|
7552
7524
|
}
|
|
7553
7525
|
)
|
|
7554
7526
|
] }),
|
|
7555
|
-
/* @__PURE__ */
|
|
7527
|
+
/* @__PURE__ */ jsx114(
|
|
7556
7528
|
Pagination2,
|
|
7557
7529
|
{
|
|
7558
7530
|
color: "standard",
|
|
@@ -7569,11 +7541,14 @@ var TableDesktopFooter = ({
|
|
|
7569
7541
|
|
|
7570
7542
|
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7571
7543
|
import { useEffect as useEffect13, useRef as useRef5, useState as useState20 } from "react";
|
|
7572
|
-
import
|
|
7544
|
+
import CheckIcon2 from "@mui/icons-material/Check";
|
|
7545
|
+
import Close2 from "@mui/icons-material/Close";
|
|
7546
|
+
import Edit3 from "@mui/icons-material/Edit";
|
|
7547
|
+
import { Box as Box33, Checkbox as Checkbox6, IconButton as IconButton4, TableCell as TableCell5, TextField as TextField9, Tooltip as Tooltip8 } from "@mui/material";
|
|
7573
7548
|
|
|
7574
7549
|
// src/components/TableDesktopRowCell/TableDesktopSmartSelect.tsx
|
|
7575
7550
|
import { useState as useState18, memo as memo22, useEffect as useEffect12 } from "react";
|
|
7576
|
-
import { jsx as
|
|
7551
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
7577
7552
|
var resolveValue = (value) => {
|
|
7578
7553
|
if (typeof value === "string") {
|
|
7579
7554
|
return value;
|
|
@@ -7605,7 +7580,7 @@ var TableDesktopSmartSelect = memo22(({
|
|
|
7605
7580
|
setOptions(parsedOptions);
|
|
7606
7581
|
}
|
|
7607
7582
|
}, [filterOptions]);
|
|
7608
|
-
return /* @__PURE__ */
|
|
7583
|
+
return /* @__PURE__ */ jsx115(
|
|
7609
7584
|
SmartSelect_default,
|
|
7610
7585
|
{
|
|
7611
7586
|
ref,
|
|
@@ -7627,13 +7602,10 @@ var TableDesktopSmartSelect = memo22(({
|
|
|
7627
7602
|
);
|
|
7628
7603
|
});
|
|
7629
7604
|
|
|
7630
|
-
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7631
|
-
import CheckIcon2 from "@mui/icons-material/Check";
|
|
7632
|
-
|
|
7633
7605
|
// src/components/TableDesktopRowCell/TableDesktopTextField.tsx
|
|
7634
|
-
import TextField8 from "@mui/material/TextField";
|
|
7635
7606
|
import { useMemo as useMemo4, useState as useState19 } from "react";
|
|
7636
|
-
import {
|
|
7607
|
+
import { TextField as TextField8 } from "@mui/material";
|
|
7608
|
+
import { jsx as jsx116 } from "react/jsx-runtime";
|
|
7637
7609
|
var TableDesktopTextField = ({
|
|
7638
7610
|
rowId,
|
|
7639
7611
|
editInitialValue,
|
|
@@ -7642,34 +7614,54 @@ var TableDesktopTextField = ({
|
|
|
7642
7614
|
validateInput,
|
|
7643
7615
|
onUpdateEditableCell
|
|
7644
7616
|
}) => {
|
|
7645
|
-
const [
|
|
7646
|
-
const
|
|
7647
|
-
|
|
7617
|
+
const [input, setInput] = useState19(editInitialValue);
|
|
7618
|
+
const hasValidationError = useMemo4(() => !validateInput?.(input), [input, validateInput]);
|
|
7619
|
+
const commitValue = (value) => {
|
|
7620
|
+
if (hasValidationError) {
|
|
7621
|
+
return;
|
|
7622
|
+
}
|
|
7623
|
+
onUpdateEditableCell?.(rowId, value);
|
|
7624
|
+
};
|
|
7625
|
+
const handleKeyDown = (e) => {
|
|
7626
|
+
if (e.key === "Enter") {
|
|
7627
|
+
e.preventDefault();
|
|
7628
|
+
commitValue(input);
|
|
7629
|
+
}
|
|
7630
|
+
};
|
|
7631
|
+
return /* @__PURE__ */ jsx116(
|
|
7648
7632
|
TextField8,
|
|
7649
7633
|
{
|
|
7650
7634
|
fullWidth: true,
|
|
7651
7635
|
variant: "standard",
|
|
7652
|
-
|
|
7636
|
+
value: input,
|
|
7653
7637
|
label: inputLabel,
|
|
7654
|
-
error:
|
|
7638
|
+
error: hasValidationError,
|
|
7655
7639
|
disabled,
|
|
7656
|
-
|
|
7657
|
-
|
|
7640
|
+
onKeyDown: handleKeyDown,
|
|
7641
|
+
onChange: ({ target: { value } }) => {
|
|
7642
|
+
setInput(value);
|
|
7658
7643
|
},
|
|
7659
|
-
onBlur: ({ target: { value
|
|
7660
|
-
|
|
7661
|
-
return;
|
|
7662
|
-
}
|
|
7663
|
-
onUpdateEditableCell?.(rowId, value2);
|
|
7644
|
+
onBlur: ({ target: { value } }) => {
|
|
7645
|
+
commitValue(value);
|
|
7664
7646
|
}
|
|
7665
7647
|
}
|
|
7666
7648
|
);
|
|
7667
7649
|
};
|
|
7668
7650
|
|
|
7669
7651
|
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7670
|
-
import
|
|
7671
|
-
|
|
7672
|
-
|
|
7652
|
+
import { jsx as jsx117, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
7653
|
+
var getReadOnlyBooleanIcon = (value) => {
|
|
7654
|
+
if (value) {
|
|
7655
|
+
return /* @__PURE__ */ jsx117(CheckIcon2, { sx: { fontSize: 16 } });
|
|
7656
|
+
}
|
|
7657
|
+
return "-";
|
|
7658
|
+
};
|
|
7659
|
+
var renderReadOnlyValue = (value) => {
|
|
7660
|
+
if (typeof value === "boolean") {
|
|
7661
|
+
return getReadOnlyBooleanIcon(value);
|
|
7662
|
+
}
|
|
7663
|
+
return value;
|
|
7664
|
+
};
|
|
7673
7665
|
var TableDesktopRowCell = ({
|
|
7674
7666
|
inputLabel,
|
|
7675
7667
|
editInitialValue,
|
|
@@ -7710,7 +7702,7 @@ var TableDesktopRowCell = ({
|
|
|
7710
7702
|
};
|
|
7711
7703
|
}, [isEditMode]);
|
|
7712
7704
|
const editableComponents = {
|
|
7713
|
-
"select": /* @__PURE__ */
|
|
7705
|
+
"select": /* @__PURE__ */ jsx117(
|
|
7714
7706
|
TableDesktopSmartSelect,
|
|
7715
7707
|
{
|
|
7716
7708
|
rowId,
|
|
@@ -7724,7 +7716,7 @@ var TableDesktopRowCell = ({
|
|
|
7724
7716
|
onUpdateEditableCell
|
|
7725
7717
|
}
|
|
7726
7718
|
),
|
|
7727
|
-
"checkbox": /* @__PURE__ */
|
|
7719
|
+
"checkbox": /* @__PURE__ */ jsx117(
|
|
7728
7720
|
Checkbox6,
|
|
7729
7721
|
{
|
|
7730
7722
|
disableRipple: true,
|
|
@@ -7735,7 +7727,7 @@ var TableDesktopRowCell = ({
|
|
|
7735
7727
|
}
|
|
7736
7728
|
}
|
|
7737
7729
|
),
|
|
7738
|
-
"text": /* @__PURE__ */
|
|
7730
|
+
"text": /* @__PURE__ */ jsx117(
|
|
7739
7731
|
TableDesktopTextField,
|
|
7740
7732
|
{
|
|
7741
7733
|
rowId,
|
|
@@ -7746,7 +7738,7 @@ var TableDesktopRowCell = ({
|
|
|
7746
7738
|
onUpdateEditableCell
|
|
7747
7739
|
}
|
|
7748
7740
|
),
|
|
7749
|
-
"numeric": /* @__PURE__ */
|
|
7741
|
+
"numeric": /* @__PURE__ */ jsx117(
|
|
7750
7742
|
TextField9,
|
|
7751
7743
|
{
|
|
7752
7744
|
fullWidth: true,
|
|
@@ -7768,18 +7760,12 @@ var TableDesktopRowCell = ({
|
|
|
7768
7760
|
}
|
|
7769
7761
|
)
|
|
7770
7762
|
};
|
|
7771
|
-
const getReadOnlyBooleanIcon = (value) => {
|
|
7772
|
-
if (value) {
|
|
7773
|
-
return /* @__PURE__ */ jsx118(CheckIcon2, { sx: { fontSize: 16 } });
|
|
7774
|
-
}
|
|
7775
|
-
return "-";
|
|
7776
|
-
};
|
|
7777
7763
|
const handleEditClick = (e) => {
|
|
7778
7764
|
e.stopPropagation();
|
|
7779
7765
|
setIsEditMode((prev) => !prev);
|
|
7780
7766
|
};
|
|
7781
|
-
return /* @__PURE__ */
|
|
7782
|
-
|
|
7767
|
+
return /* @__PURE__ */ jsx117(Tooltip8, { title: isOverflowed ? String(readOnlyValue) : "", arrow: true, children: /* @__PURE__ */ jsx117(
|
|
7768
|
+
TableCell5,
|
|
7783
7769
|
{
|
|
7784
7770
|
align: "left",
|
|
7785
7771
|
onMouseEnter: () => editableCellType && !disabled && setIsCellHovered(true),
|
|
@@ -7796,7 +7782,7 @@ var TableDesktopRowCell = ({
|
|
|
7796
7782
|
},
|
|
7797
7783
|
background: isEditMode ? colors.lightBlueBackground : (theme) => theme.palette.background.default
|
|
7798
7784
|
},
|
|
7799
|
-
children: /* @__PURE__ */
|
|
7785
|
+
children: /* @__PURE__ */ jsxs79(
|
|
7800
7786
|
Box33,
|
|
7801
7787
|
{
|
|
7802
7788
|
p: 1,
|
|
@@ -7805,7 +7791,7 @@ var TableDesktopRowCell = ({
|
|
|
7805
7791
|
textOverflow: "ellipsis",
|
|
7806
7792
|
whiteSpace: "nowrap",
|
|
7807
7793
|
children: [
|
|
7808
|
-
isCellHovered ? /* @__PURE__ */
|
|
7794
|
+
isCellHovered ? /* @__PURE__ */ jsx117(Tooltip8, { title: isEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ jsx117(
|
|
7809
7795
|
IconButton4,
|
|
7810
7796
|
{
|
|
7811
7797
|
onClick: handleEditClick,
|
|
@@ -7820,10 +7806,10 @@ var TableDesktopRowCell = ({
|
|
|
7820
7806
|
backgroundColor: isEditMode ? colors.lightBlueBackground : colors.neutral150
|
|
7821
7807
|
}
|
|
7822
7808
|
},
|
|
7823
|
-
children: isEditMode ? /* @__PURE__ */
|
|
7809
|
+
children: isEditMode ? /* @__PURE__ */ jsx117(Close2, { fontSize: "small", color: "error" }) : /* @__PURE__ */ jsx117(Edit3, { fontSize: "small" })
|
|
7824
7810
|
}
|
|
7825
7811
|
) }) : null,
|
|
7826
|
-
isEditMode && editableCellType ? editableComponents[editableCellType] :
|
|
7812
|
+
isEditMode && editableCellType ? editableComponents[editableCellType] : renderReadOnlyValue(readOnlyValue)
|
|
7827
7813
|
]
|
|
7828
7814
|
}
|
|
7829
7815
|
)
|
|
@@ -7834,9 +7820,9 @@ var TableDesktopRowCell = ({
|
|
|
7834
7820
|
// src/components/TableHeader/TableHeader.tsx
|
|
7835
7821
|
import { memo as memo23, useEffect as useEffect14, useState as useState21 } from "react";
|
|
7836
7822
|
import { ImportExport as ImportExportIcon } from "@mui/icons-material";
|
|
7837
|
-
import { TableCell as
|
|
7823
|
+
import { TableCell as TableCell6, TableHead as TableHead3, TableRow as TableRow5, TableSortLabel as TableSortLabel3 } from "@mui/material";
|
|
7838
7824
|
import { makeStyles as makeStyles50 } from "tss-react/mui";
|
|
7839
|
-
import { jsx as
|
|
7825
|
+
import { jsx as jsx118 } from "react/jsx-runtime";
|
|
7840
7826
|
var useStyles50 = makeStyles50()(() => ({
|
|
7841
7827
|
sortLabel: {
|
|
7842
7828
|
"& .MuiTableSortLabel-icon": {
|
|
@@ -7881,7 +7867,7 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
7881
7867
|
});
|
|
7882
7868
|
setSortableCells(sortedCells);
|
|
7883
7869
|
};
|
|
7884
|
-
return /* @__PURE__ */
|
|
7870
|
+
return /* @__PURE__ */ jsx118(TableHead3, { children: /* @__PURE__ */ jsx118(TableRow5, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx118(TableCell6, { children: cell.isSortable ? /* @__PURE__ */ jsx118(
|
|
7885
7871
|
TableSortLabel3,
|
|
7886
7872
|
{
|
|
7887
7873
|
className: classes.sortLabel,
|
|
@@ -7895,9 +7881,9 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
7895
7881
|
var TableHeader_default = memo23(TableHeader);
|
|
7896
7882
|
|
|
7897
7883
|
// src/components/TextDivider/TextDivider.tsx
|
|
7898
|
-
import { Box as Box34, Typography as
|
|
7884
|
+
import { Box as Box34, Typography as Typography28, Divider as Divider10, Button as Button14 } from "@mui/material";
|
|
7899
7885
|
import { makeStyles as makeStyles51 } from "tss-react/mui";
|
|
7900
|
-
import { jsx as
|
|
7886
|
+
import { jsx as jsx119, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
7901
7887
|
var useStyles51 = makeStyles51()(() => ({
|
|
7902
7888
|
icon: {
|
|
7903
7889
|
fontSize: 20
|
|
@@ -7934,7 +7920,7 @@ var TextDivider = ({
|
|
|
7934
7920
|
}) => {
|
|
7935
7921
|
const { classes } = useStyles51();
|
|
7936
7922
|
const iconColor = color ?? colors.neutral900;
|
|
7937
|
-
return /* @__PURE__ */
|
|
7923
|
+
return /* @__PURE__ */ jsxs80(
|
|
7938
7924
|
Box34,
|
|
7939
7925
|
{
|
|
7940
7926
|
display: "flex",
|
|
@@ -7942,11 +7928,11 @@ var TextDivider = ({
|
|
|
7942
7928
|
justifyContent: "space-between",
|
|
7943
7929
|
className: classes.container,
|
|
7944
7930
|
children: [
|
|
7945
|
-
/* @__PURE__ */
|
|
7946
|
-
/* @__PURE__ */
|
|
7947
|
-
Icon2 && iconPosition === "left" && /* @__PURE__ */
|
|
7948
|
-
/* @__PURE__ */
|
|
7949
|
-
|
|
7931
|
+
/* @__PURE__ */ jsx119(Divider10, { className: classes.leftDivider }),
|
|
7932
|
+
/* @__PURE__ */ jsx119(Button14, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs80(Box34, { className: classes.center, children: [
|
|
7933
|
+
Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx119(Icon2, { className: classes.icon, style: { color: iconColor } }),
|
|
7934
|
+
/* @__PURE__ */ jsx119(
|
|
7935
|
+
Typography28,
|
|
7950
7936
|
{
|
|
7951
7937
|
color: "textSecondary",
|
|
7952
7938
|
className: classes.title,
|
|
@@ -7954,9 +7940,9 @@ var TextDivider = ({
|
|
|
7954
7940
|
children: title
|
|
7955
7941
|
}
|
|
7956
7942
|
),
|
|
7957
|
-
Icon2 && iconPosition === "right" && /* @__PURE__ */
|
|
7943
|
+
Icon2 && iconPosition === "right" && /* @__PURE__ */ jsx119(Icon2, { className: classes.icon, style: { color: iconColor } })
|
|
7958
7944
|
] }) }),
|
|
7959
|
-
/* @__PURE__ */
|
|
7945
|
+
/* @__PURE__ */ jsx119(Divider10, { className: classes.rightDivider })
|
|
7960
7946
|
]
|
|
7961
7947
|
}
|
|
7962
7948
|
);
|
|
@@ -7968,7 +7954,7 @@ import { DateRangePicker } from "react-dates";
|
|
|
7968
7954
|
import { makeStyles as makeStyles52 } from "tss-react/mui";
|
|
7969
7955
|
import "react-dates/initialize";
|
|
7970
7956
|
import "react-dates/lib/css/_datepicker.css";
|
|
7971
|
-
import { jsx as
|
|
7957
|
+
import { jsx as jsx120 } from "react/jsx-runtime";
|
|
7972
7958
|
var useStyles52 = makeStyles52()((theme) => ({
|
|
7973
7959
|
wrapper: {
|
|
7974
7960
|
"& .DateRangePicker": {
|
|
@@ -8064,7 +8050,7 @@ var ThemedDateRangePicker = ({
|
|
|
8064
8050
|
...props
|
|
8065
8051
|
}) => {
|
|
8066
8052
|
const { classes, cx } = useStyles52();
|
|
8067
|
-
return /* @__PURE__ */
|
|
8053
|
+
return /* @__PURE__ */ jsx120("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ jsx120(DateRangePicker, { ...props }) });
|
|
8068
8054
|
};
|
|
8069
8055
|
var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
8070
8056
|
|
|
@@ -8072,7 +8058,7 @@ var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
|
8072
8058
|
import { memo as memo24 } from "react";
|
|
8073
8059
|
import { AppBar, Box as Box35, Toolbar } from "@mui/material";
|
|
8074
8060
|
import { makeStyles as makeStyles53 } from "tss-react/mui";
|
|
8075
|
-
import { jsx as
|
|
8061
|
+
import { jsx as jsx121, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
8076
8062
|
var useStyles53 = makeStyles53()((theme) => ({
|
|
8077
8063
|
menuButton: {
|
|
8078
8064
|
color: theme.palette.primary.contrastText
|
|
@@ -8092,9 +8078,9 @@ var TheToolbar = ({
|
|
|
8092
8078
|
rightSection
|
|
8093
8079
|
}) => {
|
|
8094
8080
|
const { classes } = useStyles53();
|
|
8095
|
-
return /* @__PURE__ */
|
|
8096
|
-
/* @__PURE__ */
|
|
8097
|
-
/* @__PURE__ */
|
|
8081
|
+
return /* @__PURE__ */ jsxs81(Box35, { children: [
|
|
8082
|
+
/* @__PURE__ */ jsx121(AppBar, { children: /* @__PURE__ */ jsxs81(Toolbar, { className: classes.topBar, children: [
|
|
8083
|
+
/* @__PURE__ */ jsx121(
|
|
8098
8084
|
RoundButton_default,
|
|
8099
8085
|
{
|
|
8100
8086
|
className: classes.menuButton,
|
|
@@ -8103,7 +8089,7 @@ var TheToolbar = ({
|
|
|
8103
8089
|
onClick: handleOpen
|
|
8104
8090
|
}
|
|
8105
8091
|
),
|
|
8106
|
-
/* @__PURE__ */
|
|
8092
|
+
/* @__PURE__ */ jsx121(
|
|
8107
8093
|
CompanyLogo_default,
|
|
8108
8094
|
{
|
|
8109
8095
|
size: "small",
|
|
@@ -8112,8 +8098,8 @@ var TheToolbar = ({
|
|
|
8112
8098
|
imageLogoLightSmall
|
|
8113
8099
|
}
|
|
8114
8100
|
),
|
|
8115
|
-
/* @__PURE__ */
|
|
8116
|
-
/* @__PURE__ */
|
|
8101
|
+
/* @__PURE__ */ jsx121(Box35, { ml: 2, children: leftSection }),
|
|
8102
|
+
/* @__PURE__ */ jsx121(Box35, { ml: "auto", children: rightSection })
|
|
8117
8103
|
] }) }),
|
|
8118
8104
|
LeftDrawer
|
|
8119
8105
|
] });
|
|
@@ -8122,20 +8108,20 @@ var TheToolbar_default = memo24(TheToolbar);
|
|
|
8122
8108
|
|
|
8123
8109
|
// src/components/ToastMessage/ToastMessage.tsx
|
|
8124
8110
|
import { Alert as MuiAlert, Snackbar } from "@mui/material";
|
|
8125
|
-
import { jsx as
|
|
8111
|
+
import { jsx as jsx122 } from "react/jsx-runtime";
|
|
8126
8112
|
var ToastMessage = ({
|
|
8127
8113
|
toastType,
|
|
8128
8114
|
toastMessage,
|
|
8129
8115
|
open,
|
|
8130
8116
|
onClose
|
|
8131
|
-
}) => /* @__PURE__ */
|
|
8117
|
+
}) => /* @__PURE__ */ jsx122(
|
|
8132
8118
|
Snackbar,
|
|
8133
8119
|
{
|
|
8134
8120
|
open,
|
|
8135
8121
|
autoHideDuration: 1500,
|
|
8136
8122
|
onClose,
|
|
8137
8123
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
8138
|
-
children: /* @__PURE__ */
|
|
8124
|
+
children: /* @__PURE__ */ jsx122(
|
|
8139
8125
|
MuiAlert,
|
|
8140
8126
|
{
|
|
8141
8127
|
elevation: 6,
|
|
@@ -8163,7 +8149,7 @@ var ToastMessage_default = ToastMessage;
|
|
|
8163
8149
|
|
|
8164
8150
|
// src/components/TwoButtonDialog/TwoButtonDialog.tsx
|
|
8165
8151
|
import {
|
|
8166
|
-
Typography as
|
|
8152
|
+
Typography as Typography29,
|
|
8167
8153
|
Dialog as Dialog5,
|
|
8168
8154
|
Backdrop,
|
|
8169
8155
|
Box as Box36,
|
|
@@ -8172,7 +8158,7 @@ import {
|
|
|
8172
8158
|
Fade as Fade2
|
|
8173
8159
|
} from "@mui/material";
|
|
8174
8160
|
import { makeStyles as makeStyles54 } from "tss-react/mui";
|
|
8175
|
-
import { jsx as
|
|
8161
|
+
import { jsx as jsx123, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
8176
8162
|
var useStyles54 = makeStyles54()((theme) => ({
|
|
8177
8163
|
paper: {
|
|
8178
8164
|
padding: theme.spacing(2)
|
|
@@ -8202,7 +8188,7 @@ var TwoButtonDialog = ({
|
|
|
8202
8188
|
cancelButton
|
|
8203
8189
|
}) => {
|
|
8204
8190
|
const { classes } = useStyles54();
|
|
8205
|
-
return /* @__PURE__ */
|
|
8191
|
+
return /* @__PURE__ */ jsx123(
|
|
8206
8192
|
Dialog5,
|
|
8207
8193
|
{
|
|
8208
8194
|
open,
|
|
@@ -8212,9 +8198,9 @@ var TwoButtonDialog = ({
|
|
|
8212
8198
|
closeAfterTransition: true,
|
|
8213
8199
|
BackdropComponent: Backdrop,
|
|
8214
8200
|
BackdropProps: { timeout: 500 },
|
|
8215
|
-
children: /* @__PURE__ */
|
|
8216
|
-
/* @__PURE__ */
|
|
8217
|
-
/* @__PURE__ */
|
|
8201
|
+
children: /* @__PURE__ */ jsx123(Fade2, { in: open, children: /* @__PURE__ */ jsxs82(Paper12, { className: classes.paper, children: [
|
|
8202
|
+
/* @__PURE__ */ jsxs82(Box36, { className: classes.mb, children: [
|
|
8203
|
+
/* @__PURE__ */ jsx123(Typography29, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx123(
|
|
8218
8204
|
Box36,
|
|
8219
8205
|
{
|
|
8220
8206
|
sx: {
|
|
@@ -8223,7 +8209,7 @@ var TwoButtonDialog = ({
|
|
|
8223
8209
|
children: title
|
|
8224
8210
|
}
|
|
8225
8211
|
) }),
|
|
8226
|
-
/* @__PURE__ */
|
|
8212
|
+
/* @__PURE__ */ jsxs82(
|
|
8227
8213
|
Box36,
|
|
8228
8214
|
{
|
|
8229
8215
|
className: classes.mt,
|
|
@@ -8231,15 +8217,15 @@ var TwoButtonDialog = ({
|
|
|
8231
8217
|
fontWeight: 600
|
|
8232
8218
|
},
|
|
8233
8219
|
children: [
|
|
8234
|
-
subtitle1 && /* @__PURE__ */
|
|
8235
|
-
subtitle2 && /* @__PURE__ */
|
|
8220
|
+
subtitle1 && /* @__PURE__ */ jsx123(Typography29, { variant: "subtitle1", children: subtitle1 }),
|
|
8221
|
+
subtitle2 && /* @__PURE__ */ jsx123(Typography29, { variant: "subtitle1", children: subtitle2 })
|
|
8236
8222
|
]
|
|
8237
8223
|
}
|
|
8238
8224
|
)
|
|
8239
8225
|
] }),
|
|
8240
|
-
/* @__PURE__ */
|
|
8241
|
-
/* @__PURE__ */
|
|
8242
|
-
/* @__PURE__ */
|
|
8226
|
+
/* @__PURE__ */ jsx123(Divider11, {}),
|
|
8227
|
+
/* @__PURE__ */ jsxs82(Box36, { className: classes.buttonContainer, children: [
|
|
8228
|
+
/* @__PURE__ */ jsx123(
|
|
8243
8229
|
FilledButton_default,
|
|
8244
8230
|
{
|
|
8245
8231
|
copy: cancelLabel,
|
|
@@ -8252,7 +8238,7 @@ var TwoButtonDialog = ({
|
|
|
8252
8238
|
}
|
|
8253
8239
|
}
|
|
8254
8240
|
),
|
|
8255
|
-
/* @__PURE__ */
|
|
8241
|
+
/* @__PURE__ */ jsx123(
|
|
8256
8242
|
FilledButton_default,
|
|
8257
8243
|
{
|
|
8258
8244
|
color: "primary",
|
|
@@ -8261,7 +8247,7 @@ var TwoButtonDialog = ({
|
|
|
8261
8247
|
}
|
|
8262
8248
|
)
|
|
8263
8249
|
] }),
|
|
8264
|
-
/* @__PURE__ */
|
|
8250
|
+
/* @__PURE__ */ jsx123(Loading_default, { isLoading: dialogLoading })
|
|
8265
8251
|
] }) })
|
|
8266
8252
|
}
|
|
8267
8253
|
);
|
|
@@ -8270,10 +8256,10 @@ var TwoButtonDialog_default = TwoButtonDialog;
|
|
|
8270
8256
|
|
|
8271
8257
|
// src/components/UserBust/UserBust.tsx
|
|
8272
8258
|
import { memo as memo25 } from "react";
|
|
8273
|
-
import { Avatar as Avatar2, Typography as
|
|
8274
|
-
import { jsx as
|
|
8275
|
-
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */
|
|
8276
|
-
/* @__PURE__ */
|
|
8259
|
+
import { Avatar as Avatar2, Typography as Typography30 } from "@mui/material";
|
|
8260
|
+
import { jsx as jsx124, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
8261
|
+
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs83("div", { children: [
|
|
8262
|
+
/* @__PURE__ */ jsx124(
|
|
8277
8263
|
Avatar2,
|
|
8278
8264
|
{
|
|
8279
8265
|
src: user.profile_picture,
|
|
@@ -8281,18 +8267,18 @@ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs8
|
|
|
8281
8267
|
style: { width: avatarProps.width, height: avatarProps.height }
|
|
8282
8268
|
}
|
|
8283
8269
|
),
|
|
8284
|
-
/* @__PURE__ */
|
|
8285
|
-
/* @__PURE__ */
|
|
8286
|
-
/* @__PURE__ */
|
|
8270
|
+
/* @__PURE__ */ jsxs83("div", { style: { paddingTop: 16 }, children: [
|
|
8271
|
+
/* @__PURE__ */ jsx124(Typography30, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
|
|
8272
|
+
/* @__PURE__ */ jsx124(Typography30, { ...typographyProps.username, children: user.username })
|
|
8287
8273
|
] })
|
|
8288
8274
|
] });
|
|
8289
8275
|
var UserBust_default = memo25(UserBust);
|
|
8290
8276
|
|
|
8291
8277
|
// src/components/icons/IconChart.tsx
|
|
8292
|
-
import { jsx as
|
|
8278
|
+
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
8293
8279
|
var SvgIconChart = (props) => {
|
|
8294
8280
|
const { fill } = props;
|
|
8295
|
-
return /* @__PURE__ */
|
|
8281
|
+
return /* @__PURE__ */ jsx125(
|
|
8296
8282
|
"svg",
|
|
8297
8283
|
{
|
|
8298
8284
|
width: "20",
|
|
@@ -8301,7 +8287,7 @@ var SvgIconChart = (props) => {
|
|
|
8301
8287
|
fill: "none",
|
|
8302
8288
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8303
8289
|
...props,
|
|
8304
|
-
children: /* @__PURE__ */
|
|
8290
|
+
children: /* @__PURE__ */ jsx125(
|
|
8305
8291
|
"path",
|
|
8306
8292
|
{
|
|
8307
8293
|
d: "M2.49967 11.6667L2.91634 11.725L6.72467 7.91667C6.57467 7.375 6.71634 6.75833 7.15801 6.325C7.80801 5.66667 8.85801 5.66667 9.50801 6.325C9.94967 6.75833 10.0913 7.375 9.94134 7.91667L12.083 10.0583L12.4997 10C12.6497 10 12.7913 10 12.9163 10.0583L15.8913 7.08333C15.833 6.95833 15.833 6.81667 15.833 6.66667C15.833 6.22464 16.0086 5.80072 16.3212 5.48816C16.6337 5.17559 17.0576 5 17.4997 5C17.9417 5 18.3656 5.17559 18.6782 5.48816C18.9907 5.80072 19.1663 6.22464 19.1663 6.66667C19.1663 7.10869 18.9907 7.53262 18.6782 7.84518C18.3656 8.15774 17.9417 8.33333 17.4997 8.33333C17.3497 8.33333 17.208 8.33333 17.083 8.275L14.108 11.25C14.1663 11.375 14.1663 11.5167 14.1663 11.6667C14.1663 12.1087 13.9907 12.5326 13.6782 12.8452C13.3656 13.1577 12.9417 13.3333 12.4997 13.3333C12.0576 13.3333 11.6337 13.1577 11.3212 12.8452C11.0086 12.5326 10.833 12.1087 10.833 11.6667L10.8913 11.25L8.74967 9.10833C8.48301 9.16667 8.18301 9.16667 7.91634 9.10833L4.10801 12.9167L4.16634 13.3333C4.16634 13.7754 3.99075 14.1993 3.67819 14.5118C3.36563 14.8244 2.9417 15 2.49967 15C2.05765 15 1.63372 14.8244 1.32116 14.5118C1.0086 14.1993 0.833008 13.7754 0.833008 13.3333C0.833008 12.8913 1.0086 12.4674 1.32116 12.1548C1.63372 11.8423 2.05765 11.6667 2.49967 11.6667Z",
|