@natoora-libs/core 0.1.13 → 0.1.14
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.cjs +152 -123
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +170 -141
- package/dist/components/index.js.map +1 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -617,7 +617,7 @@ var ExtendedButton = ({
|
|
|
617
617
|
buttonType = "button",
|
|
618
618
|
color = "noOutline",
|
|
619
619
|
disabled = false,
|
|
620
|
-
href
|
|
620
|
+
href,
|
|
621
621
|
tooltip = "",
|
|
622
622
|
component = "button",
|
|
623
623
|
type,
|
|
@@ -654,7 +654,7 @@ var ExtendedButton = ({
|
|
|
654
654
|
component,
|
|
655
655
|
"data-testid": copy ? `extended-button-${copy.toLowerCase()}` : "extended-button",
|
|
656
656
|
disabled,
|
|
657
|
-
href,
|
|
657
|
+
href: href ? href : void 0,
|
|
658
658
|
onClick,
|
|
659
659
|
type: buttonType,
|
|
660
660
|
variant,
|
|
@@ -6611,11 +6611,11 @@ import {
|
|
|
6611
6611
|
import {
|
|
6612
6612
|
Paper as Paper10,
|
|
6613
6613
|
Table,
|
|
6614
|
-
TableBody,
|
|
6614
|
+
TableBody as TableBody2,
|
|
6615
6615
|
TableContainer,
|
|
6616
6616
|
Skeleton as Skeleton2,
|
|
6617
|
-
TableRow as
|
|
6618
|
-
TableCell as
|
|
6617
|
+
TableRow as TableRow4,
|
|
6618
|
+
TableCell as TableCell4
|
|
6619
6619
|
} from "@mui/material";
|
|
6620
6620
|
import { makeStyles as makeStyles47 } from "tss-react/mui";
|
|
6621
6621
|
|
|
@@ -6762,10 +6762,39 @@ var SmartTableHeader = ({
|
|
|
6762
6762
|
};
|
|
6763
6763
|
var SmartTableHeader_default = memo20(SmartTableHeader);
|
|
6764
6764
|
|
|
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
|
+
|
|
6765
6794
|
// src/components/TableEmptyResult/TableEmptyResult.tsx
|
|
6766
|
-
import { TableCell as
|
|
6795
|
+
import { TableCell as TableCell3, TableRow as TableRow3, Typography as Typography27 } from "@mui/material";
|
|
6767
6796
|
import { makeStyles as makeStyles46 } from "tss-react/mui";
|
|
6768
|
-
import { jsx as
|
|
6797
|
+
import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
6769
6798
|
var useStyles46 = makeStyles46()(() => ({
|
|
6770
6799
|
tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
|
|
6771
6800
|
tableCellDefault: { padding: 24 }
|
|
@@ -6777,17 +6806,17 @@ var TableEmptyResult = ({
|
|
|
6777
6806
|
}
|
|
6778
6807
|
}) => {
|
|
6779
6808
|
const { classes } = useStyles46();
|
|
6780
|
-
return showClearFilterButton ? /* @__PURE__ */
|
|
6781
|
-
|
|
6809
|
+
return showClearFilterButton ? /* @__PURE__ */ jsx110(TableRow3, { children: /* @__PURE__ */ jsxs75(
|
|
6810
|
+
TableCell3,
|
|
6782
6811
|
{
|
|
6783
6812
|
className: classes.tableCellIcon,
|
|
6784
6813
|
colSpan,
|
|
6785
6814
|
align: "center",
|
|
6786
6815
|
children: [
|
|
6787
|
-
/* @__PURE__ */
|
|
6788
|
-
/* @__PURE__ */
|
|
6789
|
-
/* @__PURE__ */
|
|
6790
|
-
/* @__PURE__ */
|
|
6816
|
+
/* @__PURE__ */ jsx110(EmptyGlassIcon_default, {}),
|
|
6817
|
+
/* @__PURE__ */ jsx110(Typography27, { variant: "h6", children: "No results found." }),
|
|
6818
|
+
/* @__PURE__ */ jsx110(Typography27, { variant: "subtitle1", children: "Search without applied filters?" }),
|
|
6819
|
+
/* @__PURE__ */ jsx110(
|
|
6791
6820
|
FilledButton_default,
|
|
6792
6821
|
{
|
|
6793
6822
|
copy: "Search",
|
|
@@ -6798,8 +6827,8 @@ var TableEmptyResult = ({
|
|
|
6798
6827
|
)
|
|
6799
6828
|
]
|
|
6800
6829
|
}
|
|
6801
|
-
) }) : /* @__PURE__ */
|
|
6802
|
-
|
|
6830
|
+
) }) : /* @__PURE__ */ jsx110(TableRow3, { children: /* @__PURE__ */ jsx110(
|
|
6831
|
+
TableCell3,
|
|
6803
6832
|
{
|
|
6804
6833
|
className: classes.tableCellDefault,
|
|
6805
6834
|
colSpan,
|
|
@@ -6811,7 +6840,7 @@ var TableEmptyResult = ({
|
|
|
6811
6840
|
var TableEmptyResult_default = TableEmptyResult;
|
|
6812
6841
|
|
|
6813
6842
|
// src/components/TableDesktop/TableDesktop.tsx
|
|
6814
|
-
import { jsx as
|
|
6843
|
+
import { Fragment as Fragment11, jsx as jsx111, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
6815
6844
|
var ROW_HEIGHT = 56;
|
|
6816
6845
|
var useStyles47 = makeStyles47()((theme) => ({
|
|
6817
6846
|
root: {
|
|
@@ -6950,7 +6979,7 @@ var TableDesktop = ({
|
|
|
6950
6979
|
);
|
|
6951
6980
|
const renderTableRows = useMemo2(() => {
|
|
6952
6981
|
if (isLoading) {
|
|
6953
|
-
return [...Array(Math.min(numRows, rowsPerPage))].map((_, rowIndex) => /* @__PURE__ */
|
|
6982
|
+
return [...Array(Math.min(numRows, rowsPerPage))].map((_, rowIndex) => /* @__PURE__ */ jsx111(TableRow4, { children: [...Array(visibleHeadCells.length)].map((_2, cellIndex) => /* @__PURE__ */ jsx111(TableCell4, { children: /* @__PURE__ */ jsx111(
|
|
6954
6983
|
Skeleton2,
|
|
6955
6984
|
{
|
|
6956
6985
|
animation: "pulse",
|
|
@@ -6964,7 +6993,7 @@ var TableDesktop = ({
|
|
|
6964
6993
|
const sortedData = disableInternalSort ? data : stableSort(data, getComparator(order, orderBy));
|
|
6965
6994
|
return sortedData.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((row, index) => {
|
|
6966
6995
|
const isItemSelected = selected.has(row[keyField]);
|
|
6967
|
-
return /* @__PURE__ */
|
|
6996
|
+
return /* @__PURE__ */ jsx111(
|
|
6968
6997
|
RenderItem,
|
|
6969
6998
|
{
|
|
6970
6999
|
...{
|
|
@@ -7004,16 +7033,16 @@ var TableDesktop = ({
|
|
|
7004
7033
|
setSelected(/* @__PURE__ */ new Set());
|
|
7005
7034
|
}
|
|
7006
7035
|
}, [enableCheckboxSelection]);
|
|
7007
|
-
return /* @__PURE__ */
|
|
7008
|
-
/* @__PURE__ */
|
|
7036
|
+
return /* @__PURE__ */ jsx111("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ jsxs76(Paper10, { className: classes.paper, children: [
|
|
7037
|
+
/* @__PURE__ */ jsx111(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsx111(
|
|
7009
7038
|
Table,
|
|
7010
7039
|
{
|
|
7011
7040
|
stickyHeader: true,
|
|
7012
7041
|
"aria-labelledby": "tableTitle",
|
|
7013
7042
|
"aria-label": "sticky table",
|
|
7014
7043
|
style: { tableLayout },
|
|
7015
|
-
children: [
|
|
7016
|
-
/* @__PURE__ */
|
|
7044
|
+
children: visibleHeadCells.length === 0 ? /* @__PURE__ */ jsx111(TableDesktopNoColumnsMessage, {}) : /* @__PURE__ */ jsxs76(Fragment11, { children: [
|
|
7045
|
+
/* @__PURE__ */ jsx111(
|
|
7017
7046
|
SmartTableHeader_default,
|
|
7018
7047
|
{
|
|
7019
7048
|
headCells: visibleHeadCells,
|
|
@@ -7029,7 +7058,7 @@ var TableDesktop = ({
|
|
|
7029
7058
|
shouldShowCheckOnFilter
|
|
7030
7059
|
}
|
|
7031
7060
|
),
|
|
7032
|
-
/* @__PURE__ */
|
|
7061
|
+
/* @__PURE__ */ jsx111(TableBody2, { children: rowsPerPage !== emptyRows ? renderTableRows : /* @__PURE__ */ jsx111(
|
|
7033
7062
|
TableEmptyResult_default,
|
|
7034
7063
|
{
|
|
7035
7064
|
colSpan: enableCheckboxSelection ? visibleHeadCells.length + 1 : visibleHeadCells.length,
|
|
@@ -7037,7 +7066,7 @@ var TableDesktop = ({
|
|
|
7037
7066
|
handleClickOnClearFiltersButton
|
|
7038
7067
|
}
|
|
7039
7068
|
) })
|
|
7040
|
-
]
|
|
7069
|
+
] })
|
|
7041
7070
|
}
|
|
7042
7071
|
) }),
|
|
7043
7072
|
children
|
|
@@ -7046,7 +7075,7 @@ var TableDesktop = ({
|
|
|
7046
7075
|
var TableDesktop_default = TableDesktop;
|
|
7047
7076
|
|
|
7048
7077
|
// src/components/SmartTableHeaderFilterMenu/SmartTableHeaderFilterMenu.tsx
|
|
7049
|
-
import { Fragment as
|
|
7078
|
+
import { Fragment as Fragment12, jsx as jsx112, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
7050
7079
|
var useStyles48 = makeStyles48()((theme) => ({
|
|
7051
7080
|
filterMenu: {
|
|
7052
7081
|
display: "flex",
|
|
@@ -7158,18 +7187,18 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7158
7187
|
const isOptionChecked = useMemo3(() => (resolvedOption) => !!selectedFilters?.some(
|
|
7159
7188
|
(value) => resolveOptionType(value, headCell.fieldName ?? "") === resolvedOption
|
|
7160
7189
|
), [selectedFilters]);
|
|
7161
|
-
const loadingSkeletons = /* @__PURE__ */
|
|
7162
|
-
/* @__PURE__ */
|
|
7163
|
-
/* @__PURE__ */
|
|
7164
|
-
/* @__PURE__ */
|
|
7165
|
-
/* @__PURE__ */
|
|
7166
|
-
/* @__PURE__ */
|
|
7167
|
-
/* @__PURE__ */
|
|
7168
|
-
/* @__PURE__ */
|
|
7169
|
-
/* @__PURE__ */
|
|
7190
|
+
const loadingSkeletons = /* @__PURE__ */ jsxs77(Box29, { "data-testid": "loading-skeletons", width: 272, children: [
|
|
7191
|
+
/* @__PURE__ */ jsx112(Skeleton3, { variant: "rounded", className: classes.skeleton }),
|
|
7192
|
+
/* @__PURE__ */ jsx112(Divider9, {}),
|
|
7193
|
+
/* @__PURE__ */ jsx112(Skeleton3, { variant: "rounded", className: classes.skeleton }),
|
|
7194
|
+
/* @__PURE__ */ jsx112(Skeleton3, { variant: "rounded", className: classes.skeleton }),
|
|
7195
|
+
/* @__PURE__ */ jsx112(Skeleton3, { variant: "rounded", className: classes.skeleton }),
|
|
7196
|
+
/* @__PURE__ */ jsx112(Skeleton3, { variant: "rounded", className: classes.skeleton }),
|
|
7197
|
+
/* @__PURE__ */ jsx112(Divider9, {}),
|
|
7198
|
+
/* @__PURE__ */ jsx112(Skeleton3, { variant: "rounded", className: classes.skeleton })
|
|
7170
7199
|
] });
|
|
7171
|
-
return /* @__PURE__ */
|
|
7172
|
-
/* @__PURE__ */
|
|
7200
|
+
return /* @__PURE__ */ jsxs77(Fragment12, { children: [
|
|
7201
|
+
/* @__PURE__ */ jsx112(
|
|
7173
7202
|
ActiveFiltersIconButton_default,
|
|
7174
7203
|
{
|
|
7175
7204
|
numActiveFilters,
|
|
@@ -7179,7 +7208,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7179
7208
|
})
|
|
7180
7209
|
}
|
|
7181
7210
|
),
|
|
7182
|
-
/* @__PURE__ */
|
|
7211
|
+
/* @__PURE__ */ jsx112(
|
|
7183
7212
|
Menu4,
|
|
7184
7213
|
{
|
|
7185
7214
|
open: !!anchorEl,
|
|
@@ -7188,12 +7217,12 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7188
7217
|
"data-testid": "filter-menu",
|
|
7189
7218
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
7190
7219
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
7191
|
-
children: headCell.isFetchingFilterOptions ? loadingSkeletons : /* @__PURE__ */
|
|
7192
|
-
/* @__PURE__ */
|
|
7220
|
+
children: headCell.isFetchingFilterOptions ? loadingSkeletons : /* @__PURE__ */ jsxs77(Box29, { className: classes.filterMenu, children: [
|
|
7221
|
+
/* @__PURE__ */ jsx112(Box29, { px: 3, mb: 0.5, children: /* @__PURE__ */ jsx112(
|
|
7193
7222
|
FormControlLabel3,
|
|
7194
7223
|
{
|
|
7195
7224
|
label: "Select All",
|
|
7196
|
-
control: /* @__PURE__ */
|
|
7225
|
+
control: /* @__PURE__ */ jsx112(
|
|
7197
7226
|
Checkbox5,
|
|
7198
7227
|
{
|
|
7199
7228
|
disableRipple: true,
|
|
@@ -7210,20 +7239,20 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7210
7239
|
)
|
|
7211
7240
|
}
|
|
7212
7241
|
) }),
|
|
7213
|
-
/* @__PURE__ */
|
|
7214
|
-
/* @__PURE__ */
|
|
7242
|
+
/* @__PURE__ */ jsx112(Divider9, { sx: { mb: 0.5 } }),
|
|
7243
|
+
/* @__PURE__ */ jsx112(Box29, { className: classes.filterOptions, children: filterOptionsData?.map(
|
|
7215
7244
|
(option) => {
|
|
7216
7245
|
const resolvedOption = resolveOptionType(option, headCell.fieldName ?? "");
|
|
7217
|
-
return /* @__PURE__ */
|
|
7246
|
+
return /* @__PURE__ */ jsxs77(
|
|
7218
7247
|
Box29,
|
|
7219
7248
|
{
|
|
7220
7249
|
className: classes.filter,
|
|
7221
7250
|
children: [
|
|
7222
|
-
/* @__PURE__ */
|
|
7251
|
+
/* @__PURE__ */ jsx112(
|
|
7223
7252
|
FormControlLabel3,
|
|
7224
7253
|
{
|
|
7225
7254
|
label: resolvedOption,
|
|
7226
|
-
control: /* @__PURE__ */
|
|
7255
|
+
control: /* @__PURE__ */ jsx112(
|
|
7227
7256
|
Checkbox5,
|
|
7228
7257
|
{
|
|
7229
7258
|
disableRipple: true,
|
|
@@ -7234,16 +7263,16 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7234
7263
|
},
|
|
7235
7264
|
resolvedOption
|
|
7236
7265
|
),
|
|
7237
|
-
shouldShowCheckOnFilter?.(headCell.id, option) ? /* @__PURE__ */
|
|
7266
|
+
shouldShowCheckOnFilter?.(headCell.id, option) ? /* @__PURE__ */ jsx112(Tooltip6, { title: "This filter is saved as default", children: /* @__PURE__ */ jsx112(CheckIcon, { fontSize: "small", color: "action" }) }) : null
|
|
7238
7267
|
]
|
|
7239
7268
|
},
|
|
7240
7269
|
resolvedOption
|
|
7241
7270
|
);
|
|
7242
7271
|
}
|
|
7243
7272
|
) }),
|
|
7244
|
-
/* @__PURE__ */
|
|
7245
|
-
/* @__PURE__ */
|
|
7246
|
-
/* @__PURE__ */
|
|
7273
|
+
/* @__PURE__ */ jsx112(Divider9, { sx: { mb: 0.5 } }),
|
|
7274
|
+
/* @__PURE__ */ jsxs77(Box29, { className: classes.applyFilterButtonsContainer, children: [
|
|
7275
|
+
/* @__PURE__ */ jsx112(
|
|
7247
7276
|
ExtendedButton_default,
|
|
7248
7277
|
{
|
|
7249
7278
|
copy: "Save as Default",
|
|
@@ -7254,7 +7283,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7254
7283
|
onClick: () => handleApplyFilters(true)
|
|
7255
7284
|
}
|
|
7256
7285
|
),
|
|
7257
|
-
/* @__PURE__ */
|
|
7286
|
+
/* @__PURE__ */ jsx112(
|
|
7258
7287
|
ExtendedButton_default,
|
|
7259
7288
|
{
|
|
7260
7289
|
copy: "Apply",
|
|
@@ -7278,11 +7307,11 @@ import {
|
|
|
7278
7307
|
Box as Box31,
|
|
7279
7308
|
Paper as Paper11,
|
|
7280
7309
|
Table as MUITable,
|
|
7281
|
-
TableBody as
|
|
7282
|
-
TableCell as
|
|
7310
|
+
TableBody as TableBody3,
|
|
7311
|
+
TableCell as TableCell5,
|
|
7283
7312
|
TableContainer as TableContainer2,
|
|
7284
7313
|
TableHead as TableHead2,
|
|
7285
|
-
TableRow as
|
|
7314
|
+
TableRow as TableRow5,
|
|
7286
7315
|
TableSortLabel as TableSortLabel2
|
|
7287
7316
|
} from "@mui/material";
|
|
7288
7317
|
import { makeStyles as makeStyles49 } from "tss-react/mui";
|
|
@@ -7290,11 +7319,11 @@ import { v4 as uuidv4 } from "uuid";
|
|
|
7290
7319
|
|
|
7291
7320
|
// src/components/TableLoading/TableLoading.tsx
|
|
7292
7321
|
import { Box as Box30, Skeleton as Skeleton4 } from "@mui/material";
|
|
7293
|
-
import { jsx as
|
|
7322
|
+
import { jsx as jsx113 } from "react/jsx-runtime";
|
|
7294
7323
|
var TableLoading = ({
|
|
7295
7324
|
rowsPerPage,
|
|
7296
7325
|
rowHeight
|
|
7297
|
-
}) => /* @__PURE__ */
|
|
7326
|
+
}) => /* @__PURE__ */ jsx113(Box30, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx113(
|
|
7298
7327
|
Skeleton4,
|
|
7299
7328
|
{
|
|
7300
7329
|
animation: "pulse",
|
|
@@ -7343,7 +7372,7 @@ function calculateRowsPerPage(rowHeight) {
|
|
|
7343
7372
|
}
|
|
7344
7373
|
|
|
7345
7374
|
// src/components/Table/Table.tsx
|
|
7346
|
-
import { jsx as
|
|
7375
|
+
import { jsx as jsx114, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
7347
7376
|
var useStyles49 = makeStyles49()(() => ({
|
|
7348
7377
|
root: {
|
|
7349
7378
|
height: "calc(100vh - 262px)",
|
|
@@ -7421,24 +7450,24 @@ var Table2 = ({
|
|
|
7421
7450
|
);
|
|
7422
7451
|
const rowsComponents = rows.map((row) => {
|
|
7423
7452
|
if (RenderItem) {
|
|
7424
|
-
return /* @__PURE__ */
|
|
7453
|
+
return /* @__PURE__ */ jsx114(RenderItem, { ...row }, row.id);
|
|
7425
7454
|
}
|
|
7426
|
-
return /* @__PURE__ */
|
|
7455
|
+
return /* @__PURE__ */ jsx114(TableRow5, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ jsx114(TableCell5, { children: row[column.id] }, column.id)) }, row.id);
|
|
7427
7456
|
});
|
|
7428
7457
|
if (emptyRows > 0 && rowsPerPage > emptyRows) {
|
|
7429
7458
|
rowsComponents.push(
|
|
7430
|
-
/* @__PURE__ */
|
|
7459
|
+
/* @__PURE__ */ jsx114(TableRow5, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx114(TableCell5, { colSpan: 8 }) }, uuidv4())
|
|
7431
7460
|
);
|
|
7432
7461
|
}
|
|
7433
7462
|
return rowsComponents;
|
|
7434
7463
|
};
|
|
7435
|
-
return /* @__PURE__ */
|
|
7436
|
-
/* @__PURE__ */
|
|
7437
|
-
|
|
7464
|
+
return /* @__PURE__ */ jsx114(Paper11, { className: classes.root, children: /* @__PURE__ */ jsx114(Box31, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx114(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ jsx114(TableContainer2, { className: classes.container, children: /* @__PURE__ */ jsxs78(MUITable, { size: "medium", stickyHeader: true, children: [
|
|
7465
|
+
/* @__PURE__ */ jsx114(TableHead2, { className: classes.header, children: /* @__PURE__ */ jsx114(TableRow5, { children: headCells?.map((headCell) => /* @__PURE__ */ jsx114(
|
|
7466
|
+
TableCell5,
|
|
7438
7467
|
{
|
|
7439
7468
|
align: "left",
|
|
7440
7469
|
sortDirection: orderBy === headCell.id ? order : void 0,
|
|
7441
|
-
children: /* @__PURE__ */
|
|
7470
|
+
children: /* @__PURE__ */ jsx114(
|
|
7442
7471
|
TableSortLabel2,
|
|
7443
7472
|
{
|
|
7444
7473
|
active: orderBy === headCell.id,
|
|
@@ -7450,9 +7479,9 @@ var Table2 = ({
|
|
|
7450
7479
|
},
|
|
7451
7480
|
headCell.id
|
|
7452
7481
|
)) }) }),
|
|
7453
|
-
/* @__PURE__ */
|
|
7482
|
+
/* @__PURE__ */ jsxs78(TableBody3, { children: [
|
|
7454
7483
|
getTableRows(),
|
|
7455
|
-
rowsPerPage === emptyRows && /* @__PURE__ */
|
|
7484
|
+
rowsPerPage === emptyRows && /* @__PURE__ */ jsx114(TableRow5, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx114(TableCell5, { colSpan: 8, align: "center", children: "Nothing to display" }) })
|
|
7456
7485
|
] })
|
|
7457
7486
|
] }) }) }) });
|
|
7458
7487
|
};
|
|
@@ -7460,8 +7489,8 @@ var Table_default = Table2;
|
|
|
7460
7489
|
|
|
7461
7490
|
// src/components/TableDesktopFooter/TableDesktopFooter.tsx
|
|
7462
7491
|
import Refresh3 from "@mui/icons-material/Refresh";
|
|
7463
|
-
import { Box as Box32, Button as Button13, MenuItem as MenuItem4, Pagination as Pagination2, Select as Select4, Stack, Typography as
|
|
7464
|
-
import { jsx as
|
|
7492
|
+
import { Box as Box32, Button as Button13, MenuItem as MenuItem4, Pagination as Pagination2, Select as Select4, Stack, Typography as Typography28 } from "@mui/material";
|
|
7493
|
+
import { jsx as jsx115, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
7465
7494
|
var TableDesktopFooter = ({
|
|
7466
7495
|
numPages,
|
|
7467
7496
|
page,
|
|
@@ -7472,7 +7501,7 @@ var TableDesktopFooter = ({
|
|
|
7472
7501
|
refetch,
|
|
7473
7502
|
isFetching
|
|
7474
7503
|
}) => {
|
|
7475
|
-
return /* @__PURE__ */
|
|
7504
|
+
return /* @__PURE__ */ jsxs79(
|
|
7476
7505
|
Box32,
|
|
7477
7506
|
{
|
|
7478
7507
|
py: 1,
|
|
@@ -7483,7 +7512,7 @@ var TableDesktopFooter = ({
|
|
|
7483
7512
|
borderTop: `1px solid ${colors.neutral300}`,
|
|
7484
7513
|
bgcolor: (theme) => theme.palette.background.default,
|
|
7485
7514
|
children: [
|
|
7486
|
-
/* @__PURE__ */
|
|
7515
|
+
/* @__PURE__ */ jsxs79(
|
|
7487
7516
|
Button13,
|
|
7488
7517
|
{
|
|
7489
7518
|
disableRipple: true,
|
|
@@ -7498,7 +7527,7 @@ var TableDesktopFooter = ({
|
|
|
7498
7527
|
borderColor: colors.neutral600
|
|
7499
7528
|
},
|
|
7500
7529
|
children: [
|
|
7501
|
-
/* @__PURE__ */
|
|
7530
|
+
/* @__PURE__ */ jsx115(
|
|
7502
7531
|
Refresh3,
|
|
7503
7532
|
{
|
|
7504
7533
|
fontSize: "small",
|
|
@@ -7509,21 +7538,21 @@ var TableDesktopFooter = ({
|
|
|
7509
7538
|
]
|
|
7510
7539
|
}
|
|
7511
7540
|
),
|
|
7512
|
-
/* @__PURE__ */
|
|
7513
|
-
/* @__PURE__ */
|
|
7514
|
-
/* @__PURE__ */
|
|
7515
|
-
/* @__PURE__ */
|
|
7541
|
+
/* @__PURE__ */ jsxs79(Box32, { display: "flex", children: [
|
|
7542
|
+
/* @__PURE__ */ jsxs79(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
7543
|
+
/* @__PURE__ */ jsx115(Typography28, { children: "Rows per page:" }),
|
|
7544
|
+
/* @__PURE__ */ jsx115(
|
|
7516
7545
|
Select4,
|
|
7517
7546
|
{
|
|
7518
7547
|
value: pageSize,
|
|
7519
7548
|
onChange: handlePageSizeChange,
|
|
7520
7549
|
size: "small",
|
|
7521
7550
|
variant: "standard",
|
|
7522
|
-
children: pageSizeOptions.map((size) => /* @__PURE__ */
|
|
7551
|
+
children: pageSizeOptions.map((size) => /* @__PURE__ */ jsx115(MenuItem4, { value: size, children: size }, size))
|
|
7523
7552
|
}
|
|
7524
7553
|
)
|
|
7525
7554
|
] }),
|
|
7526
|
-
/* @__PURE__ */
|
|
7555
|
+
/* @__PURE__ */ jsx115(
|
|
7527
7556
|
Pagination2,
|
|
7528
7557
|
{
|
|
7529
7558
|
color: "standard",
|
|
@@ -7540,11 +7569,11 @@ var TableDesktopFooter = ({
|
|
|
7540
7569
|
|
|
7541
7570
|
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7542
7571
|
import { useEffect as useEffect13, useRef as useRef5, useState as useState20 } from "react";
|
|
7543
|
-
import { Box as Box33, Checkbox as Checkbox6, IconButton as IconButton4, TableCell as
|
|
7572
|
+
import { Box as Box33, Checkbox as Checkbox6, IconButton as IconButton4, TableCell as TableCell6, TextField as TextField9, Tooltip as Tooltip7 } from "@mui/material";
|
|
7544
7573
|
|
|
7545
7574
|
// src/components/TableDesktopRowCell/TableDesktopSmartSelect.tsx
|
|
7546
7575
|
import { useState as useState18, memo as memo22, useEffect as useEffect12 } from "react";
|
|
7547
|
-
import { jsx as
|
|
7576
|
+
import { jsx as jsx116 } from "react/jsx-runtime";
|
|
7548
7577
|
var resolveValue = (value) => {
|
|
7549
7578
|
if (typeof value === "string") {
|
|
7550
7579
|
return value;
|
|
@@ -7576,7 +7605,7 @@ var TableDesktopSmartSelect = memo22(({
|
|
|
7576
7605
|
setOptions(parsedOptions);
|
|
7577
7606
|
}
|
|
7578
7607
|
}, [filterOptions]);
|
|
7579
|
-
return /* @__PURE__ */
|
|
7608
|
+
return /* @__PURE__ */ jsx116(
|
|
7580
7609
|
SmartSelect_default,
|
|
7581
7610
|
{
|
|
7582
7611
|
ref,
|
|
@@ -7604,7 +7633,7 @@ import CheckIcon2 from "@mui/icons-material/Check";
|
|
|
7604
7633
|
// src/components/TableDesktopRowCell/TableDesktopTextField.tsx
|
|
7605
7634
|
import TextField8 from "@mui/material/TextField";
|
|
7606
7635
|
import { useMemo as useMemo4, useState as useState19 } from "react";
|
|
7607
|
-
import { jsx as
|
|
7636
|
+
import { jsx as jsx117 } from "react/jsx-runtime";
|
|
7608
7637
|
var TableDesktopTextField = ({
|
|
7609
7638
|
rowId,
|
|
7610
7639
|
editInitialValue,
|
|
@@ -7615,7 +7644,7 @@ var TableDesktopTextField = ({
|
|
|
7615
7644
|
}) => {
|
|
7616
7645
|
const [value, setValue] = useState19(editInitialValue);
|
|
7617
7646
|
const hasError = useMemo4(() => !validateInput?.(value), [value, validateInput]);
|
|
7618
|
-
return /* @__PURE__ */
|
|
7647
|
+
return /* @__PURE__ */ jsx117(
|
|
7619
7648
|
TextField8,
|
|
7620
7649
|
{
|
|
7621
7650
|
fullWidth: true,
|
|
@@ -7640,7 +7669,7 @@ var TableDesktopTextField = ({
|
|
|
7640
7669
|
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7641
7670
|
import Close2 from "@mui/icons-material/Close";
|
|
7642
7671
|
import Edit3 from "@mui/icons-material/Edit";
|
|
7643
|
-
import { jsx as
|
|
7672
|
+
import { jsx as jsx118, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
7644
7673
|
var TableDesktopRowCell = ({
|
|
7645
7674
|
inputLabel,
|
|
7646
7675
|
editInitialValue,
|
|
@@ -7681,7 +7710,7 @@ var TableDesktopRowCell = ({
|
|
|
7681
7710
|
};
|
|
7682
7711
|
}, [isEditMode]);
|
|
7683
7712
|
const editableComponents = {
|
|
7684
|
-
"select": /* @__PURE__ */
|
|
7713
|
+
"select": /* @__PURE__ */ jsx118(
|
|
7685
7714
|
TableDesktopSmartSelect,
|
|
7686
7715
|
{
|
|
7687
7716
|
rowId,
|
|
@@ -7695,7 +7724,7 @@ var TableDesktopRowCell = ({
|
|
|
7695
7724
|
onUpdateEditableCell
|
|
7696
7725
|
}
|
|
7697
7726
|
),
|
|
7698
|
-
"checkbox": /* @__PURE__ */
|
|
7727
|
+
"checkbox": /* @__PURE__ */ jsx118(
|
|
7699
7728
|
Checkbox6,
|
|
7700
7729
|
{
|
|
7701
7730
|
disableRipple: true,
|
|
@@ -7706,7 +7735,7 @@ var TableDesktopRowCell = ({
|
|
|
7706
7735
|
}
|
|
7707
7736
|
}
|
|
7708
7737
|
),
|
|
7709
|
-
"text": /* @__PURE__ */
|
|
7738
|
+
"text": /* @__PURE__ */ jsx118(
|
|
7710
7739
|
TableDesktopTextField,
|
|
7711
7740
|
{
|
|
7712
7741
|
rowId,
|
|
@@ -7717,7 +7746,7 @@ var TableDesktopRowCell = ({
|
|
|
7717
7746
|
onUpdateEditableCell
|
|
7718
7747
|
}
|
|
7719
7748
|
),
|
|
7720
|
-
"numeric": /* @__PURE__ */
|
|
7749
|
+
"numeric": /* @__PURE__ */ jsx118(
|
|
7721
7750
|
TextField9,
|
|
7722
7751
|
{
|
|
7723
7752
|
fullWidth: true,
|
|
@@ -7741,7 +7770,7 @@ var TableDesktopRowCell = ({
|
|
|
7741
7770
|
};
|
|
7742
7771
|
const getReadOnlyBooleanIcon = (value) => {
|
|
7743
7772
|
if (value) {
|
|
7744
|
-
return /* @__PURE__ */
|
|
7773
|
+
return /* @__PURE__ */ jsx118(CheckIcon2, { sx: { fontSize: 16 } });
|
|
7745
7774
|
}
|
|
7746
7775
|
return "-";
|
|
7747
7776
|
};
|
|
@@ -7749,8 +7778,8 @@ var TableDesktopRowCell = ({
|
|
|
7749
7778
|
e.stopPropagation();
|
|
7750
7779
|
setIsEditMode((prev) => !prev);
|
|
7751
7780
|
};
|
|
7752
|
-
return /* @__PURE__ */
|
|
7753
|
-
|
|
7781
|
+
return /* @__PURE__ */ jsx118(Tooltip7, { title: isOverflowed ? String(readOnlyValue) : "", arrow: true, children: /* @__PURE__ */ jsx118(
|
|
7782
|
+
TableCell6,
|
|
7754
7783
|
{
|
|
7755
7784
|
align: "left",
|
|
7756
7785
|
onMouseEnter: () => editableCellType && !disabled && setIsCellHovered(true),
|
|
@@ -7767,7 +7796,7 @@ var TableDesktopRowCell = ({
|
|
|
7767
7796
|
},
|
|
7768
7797
|
background: isEditMode ? colors.lightBlueBackground : (theme) => theme.palette.background.default
|
|
7769
7798
|
},
|
|
7770
|
-
children: /* @__PURE__ */
|
|
7799
|
+
children: /* @__PURE__ */ jsxs80(
|
|
7771
7800
|
Box33,
|
|
7772
7801
|
{
|
|
7773
7802
|
p: 1,
|
|
@@ -7776,7 +7805,7 @@ var TableDesktopRowCell = ({
|
|
|
7776
7805
|
textOverflow: "ellipsis",
|
|
7777
7806
|
whiteSpace: "nowrap",
|
|
7778
7807
|
children: [
|
|
7779
|
-
isCellHovered ? /* @__PURE__ */
|
|
7808
|
+
isCellHovered ? /* @__PURE__ */ jsx118(Tooltip7, { title: isEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ jsx118(
|
|
7780
7809
|
IconButton4,
|
|
7781
7810
|
{
|
|
7782
7811
|
onClick: handleEditClick,
|
|
@@ -7791,7 +7820,7 @@ var TableDesktopRowCell = ({
|
|
|
7791
7820
|
backgroundColor: isEditMode ? colors.lightBlueBackground : colors.neutral150
|
|
7792
7821
|
}
|
|
7793
7822
|
},
|
|
7794
|
-
children: isEditMode ? /* @__PURE__ */
|
|
7823
|
+
children: isEditMode ? /* @__PURE__ */ jsx118(Close2, { fontSize: "small", color: "error" }) : /* @__PURE__ */ jsx118(Edit3, { fontSize: "small" })
|
|
7795
7824
|
}
|
|
7796
7825
|
) }) : null,
|
|
7797
7826
|
isEditMode && editableCellType ? editableComponents[editableCellType] : typeof readOnlyValue === "boolean" ? getReadOnlyBooleanIcon(readOnlyValue) : readOnlyValue
|
|
@@ -7805,9 +7834,9 @@ var TableDesktopRowCell = ({
|
|
|
7805
7834
|
// src/components/TableHeader/TableHeader.tsx
|
|
7806
7835
|
import { memo as memo23, useEffect as useEffect14, useState as useState21 } from "react";
|
|
7807
7836
|
import { ImportExport as ImportExportIcon } from "@mui/icons-material";
|
|
7808
|
-
import { TableCell as
|
|
7837
|
+
import { TableCell as TableCell7, TableHead as TableHead3, TableRow as TableRow6, TableSortLabel as TableSortLabel3 } from "@mui/material";
|
|
7809
7838
|
import { makeStyles as makeStyles50 } from "tss-react/mui";
|
|
7810
|
-
import { jsx as
|
|
7839
|
+
import { jsx as jsx119 } from "react/jsx-runtime";
|
|
7811
7840
|
var useStyles50 = makeStyles50()(() => ({
|
|
7812
7841
|
sortLabel: {
|
|
7813
7842
|
"& .MuiTableSortLabel-icon": {
|
|
@@ -7852,7 +7881,7 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
7852
7881
|
});
|
|
7853
7882
|
setSortableCells(sortedCells);
|
|
7854
7883
|
};
|
|
7855
|
-
return /* @__PURE__ */
|
|
7884
|
+
return /* @__PURE__ */ jsx119(TableHead3, { children: /* @__PURE__ */ jsx119(TableRow6, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx119(TableCell7, { children: cell.isSortable ? /* @__PURE__ */ jsx119(
|
|
7856
7885
|
TableSortLabel3,
|
|
7857
7886
|
{
|
|
7858
7887
|
className: classes.sortLabel,
|
|
@@ -7866,9 +7895,9 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
7866
7895
|
var TableHeader_default = memo23(TableHeader);
|
|
7867
7896
|
|
|
7868
7897
|
// src/components/TextDivider/TextDivider.tsx
|
|
7869
|
-
import { Box as Box34, Typography as
|
|
7898
|
+
import { Box as Box34, Typography as Typography29, Divider as Divider10, Button as Button14 } from "@mui/material";
|
|
7870
7899
|
import { makeStyles as makeStyles51 } from "tss-react/mui";
|
|
7871
|
-
import { jsx as
|
|
7900
|
+
import { jsx as jsx120, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
7872
7901
|
var useStyles51 = makeStyles51()(() => ({
|
|
7873
7902
|
icon: {
|
|
7874
7903
|
fontSize: 20
|
|
@@ -7905,7 +7934,7 @@ var TextDivider = ({
|
|
|
7905
7934
|
}) => {
|
|
7906
7935
|
const { classes } = useStyles51();
|
|
7907
7936
|
const iconColor = color ?? colors.neutral900;
|
|
7908
|
-
return /* @__PURE__ */
|
|
7937
|
+
return /* @__PURE__ */ jsxs81(
|
|
7909
7938
|
Box34,
|
|
7910
7939
|
{
|
|
7911
7940
|
display: "flex",
|
|
@@ -7913,11 +7942,11 @@ var TextDivider = ({
|
|
|
7913
7942
|
justifyContent: "space-between",
|
|
7914
7943
|
className: classes.container,
|
|
7915
7944
|
children: [
|
|
7916
|
-
/* @__PURE__ */
|
|
7917
|
-
/* @__PURE__ */
|
|
7918
|
-
Icon2 && iconPosition === "left" && /* @__PURE__ */
|
|
7919
|
-
/* @__PURE__ */
|
|
7920
|
-
|
|
7945
|
+
/* @__PURE__ */ jsx120(Divider10, { className: classes.leftDivider }),
|
|
7946
|
+
/* @__PURE__ */ jsx120(Button14, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs81(Box34, { className: classes.center, children: [
|
|
7947
|
+
Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx120(Icon2, { className: classes.icon, style: { color: iconColor } }),
|
|
7948
|
+
/* @__PURE__ */ jsx120(
|
|
7949
|
+
Typography29,
|
|
7921
7950
|
{
|
|
7922
7951
|
color: "textSecondary",
|
|
7923
7952
|
className: classes.title,
|
|
@@ -7925,9 +7954,9 @@ var TextDivider = ({
|
|
|
7925
7954
|
children: title
|
|
7926
7955
|
}
|
|
7927
7956
|
),
|
|
7928
|
-
Icon2 && iconPosition === "right" && /* @__PURE__ */
|
|
7957
|
+
Icon2 && iconPosition === "right" && /* @__PURE__ */ jsx120(Icon2, { className: classes.icon, style: { color: iconColor } })
|
|
7929
7958
|
] }) }),
|
|
7930
|
-
/* @__PURE__ */
|
|
7959
|
+
/* @__PURE__ */ jsx120(Divider10, { className: classes.rightDivider })
|
|
7931
7960
|
]
|
|
7932
7961
|
}
|
|
7933
7962
|
);
|
|
@@ -7939,7 +7968,7 @@ import { DateRangePicker } from "react-dates";
|
|
|
7939
7968
|
import { makeStyles as makeStyles52 } from "tss-react/mui";
|
|
7940
7969
|
import "react-dates/initialize";
|
|
7941
7970
|
import "react-dates/lib/css/_datepicker.css";
|
|
7942
|
-
import { jsx as
|
|
7971
|
+
import { jsx as jsx121 } from "react/jsx-runtime";
|
|
7943
7972
|
var useStyles52 = makeStyles52()((theme) => ({
|
|
7944
7973
|
wrapper: {
|
|
7945
7974
|
"& .DateRangePicker": {
|
|
@@ -8035,7 +8064,7 @@ var ThemedDateRangePicker = ({
|
|
|
8035
8064
|
...props
|
|
8036
8065
|
}) => {
|
|
8037
8066
|
const { classes, cx } = useStyles52();
|
|
8038
|
-
return /* @__PURE__ */
|
|
8067
|
+
return /* @__PURE__ */ jsx121("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ jsx121(DateRangePicker, { ...props }) });
|
|
8039
8068
|
};
|
|
8040
8069
|
var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
8041
8070
|
|
|
@@ -8043,7 +8072,7 @@ var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
|
8043
8072
|
import { memo as memo24 } from "react";
|
|
8044
8073
|
import { AppBar, Box as Box35, Toolbar } from "@mui/material";
|
|
8045
8074
|
import { makeStyles as makeStyles53 } from "tss-react/mui";
|
|
8046
|
-
import { jsx as
|
|
8075
|
+
import { jsx as jsx122, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
8047
8076
|
var useStyles53 = makeStyles53()((theme) => ({
|
|
8048
8077
|
menuButton: {
|
|
8049
8078
|
color: theme.palette.primary.contrastText
|
|
@@ -8063,9 +8092,9 @@ var TheToolbar = ({
|
|
|
8063
8092
|
rightSection
|
|
8064
8093
|
}) => {
|
|
8065
8094
|
const { classes } = useStyles53();
|
|
8066
|
-
return /* @__PURE__ */
|
|
8067
|
-
/* @__PURE__ */
|
|
8068
|
-
/* @__PURE__ */
|
|
8095
|
+
return /* @__PURE__ */ jsxs82(Box35, { children: [
|
|
8096
|
+
/* @__PURE__ */ jsx122(AppBar, { children: /* @__PURE__ */ jsxs82(Toolbar, { className: classes.topBar, children: [
|
|
8097
|
+
/* @__PURE__ */ jsx122(
|
|
8069
8098
|
RoundButton_default,
|
|
8070
8099
|
{
|
|
8071
8100
|
className: classes.menuButton,
|
|
@@ -8074,7 +8103,7 @@ var TheToolbar = ({
|
|
|
8074
8103
|
onClick: handleOpen
|
|
8075
8104
|
}
|
|
8076
8105
|
),
|
|
8077
|
-
/* @__PURE__ */
|
|
8106
|
+
/* @__PURE__ */ jsx122(
|
|
8078
8107
|
CompanyLogo_default,
|
|
8079
8108
|
{
|
|
8080
8109
|
size: "small",
|
|
@@ -8083,8 +8112,8 @@ var TheToolbar = ({
|
|
|
8083
8112
|
imageLogoLightSmall
|
|
8084
8113
|
}
|
|
8085
8114
|
),
|
|
8086
|
-
/* @__PURE__ */
|
|
8087
|
-
/* @__PURE__ */
|
|
8115
|
+
/* @__PURE__ */ jsx122(Box35, { ml: 2, children: leftSection }),
|
|
8116
|
+
/* @__PURE__ */ jsx122(Box35, { ml: "auto", children: rightSection })
|
|
8088
8117
|
] }) }),
|
|
8089
8118
|
LeftDrawer
|
|
8090
8119
|
] });
|
|
@@ -8093,20 +8122,20 @@ var TheToolbar_default = memo24(TheToolbar);
|
|
|
8093
8122
|
|
|
8094
8123
|
// src/components/ToastMessage/ToastMessage.tsx
|
|
8095
8124
|
import { Alert as MuiAlert, Snackbar } from "@mui/material";
|
|
8096
|
-
import { jsx as
|
|
8125
|
+
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
8097
8126
|
var ToastMessage = ({
|
|
8098
8127
|
toastType,
|
|
8099
8128
|
toastMessage,
|
|
8100
8129
|
open,
|
|
8101
8130
|
onClose
|
|
8102
|
-
}) => /* @__PURE__ */
|
|
8131
|
+
}) => /* @__PURE__ */ jsx123(
|
|
8103
8132
|
Snackbar,
|
|
8104
8133
|
{
|
|
8105
8134
|
open,
|
|
8106
8135
|
autoHideDuration: 1500,
|
|
8107
8136
|
onClose,
|
|
8108
8137
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
8109
|
-
children: /* @__PURE__ */
|
|
8138
|
+
children: /* @__PURE__ */ jsx123(
|
|
8110
8139
|
MuiAlert,
|
|
8111
8140
|
{
|
|
8112
8141
|
elevation: 6,
|
|
@@ -8134,7 +8163,7 @@ var ToastMessage_default = ToastMessage;
|
|
|
8134
8163
|
|
|
8135
8164
|
// src/components/TwoButtonDialog/TwoButtonDialog.tsx
|
|
8136
8165
|
import {
|
|
8137
|
-
Typography as
|
|
8166
|
+
Typography as Typography30,
|
|
8138
8167
|
Dialog as Dialog5,
|
|
8139
8168
|
Backdrop,
|
|
8140
8169
|
Box as Box36,
|
|
@@ -8143,7 +8172,7 @@ import {
|
|
|
8143
8172
|
Fade as Fade2
|
|
8144
8173
|
} from "@mui/material";
|
|
8145
8174
|
import { makeStyles as makeStyles54 } from "tss-react/mui";
|
|
8146
|
-
import { jsx as
|
|
8175
|
+
import { jsx as jsx124, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
8147
8176
|
var useStyles54 = makeStyles54()((theme) => ({
|
|
8148
8177
|
paper: {
|
|
8149
8178
|
padding: theme.spacing(2)
|
|
@@ -8173,7 +8202,7 @@ var TwoButtonDialog = ({
|
|
|
8173
8202
|
cancelButton
|
|
8174
8203
|
}) => {
|
|
8175
8204
|
const { classes } = useStyles54();
|
|
8176
|
-
return /* @__PURE__ */
|
|
8205
|
+
return /* @__PURE__ */ jsx124(
|
|
8177
8206
|
Dialog5,
|
|
8178
8207
|
{
|
|
8179
8208
|
open,
|
|
@@ -8183,9 +8212,9 @@ var TwoButtonDialog = ({
|
|
|
8183
8212
|
closeAfterTransition: true,
|
|
8184
8213
|
BackdropComponent: Backdrop,
|
|
8185
8214
|
BackdropProps: { timeout: 500 },
|
|
8186
|
-
children: /* @__PURE__ */
|
|
8187
|
-
/* @__PURE__ */
|
|
8188
|
-
/* @__PURE__ */
|
|
8215
|
+
children: /* @__PURE__ */ jsx124(Fade2, { in: open, children: /* @__PURE__ */ jsxs83(Paper12, { className: classes.paper, children: [
|
|
8216
|
+
/* @__PURE__ */ jsxs83(Box36, { className: classes.mb, children: [
|
|
8217
|
+
/* @__PURE__ */ jsx124(Typography30, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx124(
|
|
8189
8218
|
Box36,
|
|
8190
8219
|
{
|
|
8191
8220
|
sx: {
|
|
@@ -8194,7 +8223,7 @@ var TwoButtonDialog = ({
|
|
|
8194
8223
|
children: title
|
|
8195
8224
|
}
|
|
8196
8225
|
) }),
|
|
8197
|
-
/* @__PURE__ */
|
|
8226
|
+
/* @__PURE__ */ jsxs83(
|
|
8198
8227
|
Box36,
|
|
8199
8228
|
{
|
|
8200
8229
|
className: classes.mt,
|
|
@@ -8202,15 +8231,15 @@ var TwoButtonDialog = ({
|
|
|
8202
8231
|
fontWeight: 600
|
|
8203
8232
|
},
|
|
8204
8233
|
children: [
|
|
8205
|
-
subtitle1 && /* @__PURE__ */
|
|
8206
|
-
subtitle2 && /* @__PURE__ */
|
|
8234
|
+
subtitle1 && /* @__PURE__ */ jsx124(Typography30, { variant: "subtitle1", children: subtitle1 }),
|
|
8235
|
+
subtitle2 && /* @__PURE__ */ jsx124(Typography30, { variant: "subtitle1", children: subtitle2 })
|
|
8207
8236
|
]
|
|
8208
8237
|
}
|
|
8209
8238
|
)
|
|
8210
8239
|
] }),
|
|
8211
|
-
/* @__PURE__ */
|
|
8212
|
-
/* @__PURE__ */
|
|
8213
|
-
/* @__PURE__ */
|
|
8240
|
+
/* @__PURE__ */ jsx124(Divider11, {}),
|
|
8241
|
+
/* @__PURE__ */ jsxs83(Box36, { className: classes.buttonContainer, children: [
|
|
8242
|
+
/* @__PURE__ */ jsx124(
|
|
8214
8243
|
FilledButton_default,
|
|
8215
8244
|
{
|
|
8216
8245
|
copy: cancelLabel,
|
|
@@ -8223,7 +8252,7 @@ var TwoButtonDialog = ({
|
|
|
8223
8252
|
}
|
|
8224
8253
|
}
|
|
8225
8254
|
),
|
|
8226
|
-
/* @__PURE__ */
|
|
8255
|
+
/* @__PURE__ */ jsx124(
|
|
8227
8256
|
FilledButton_default,
|
|
8228
8257
|
{
|
|
8229
8258
|
color: "primary",
|
|
@@ -8232,7 +8261,7 @@ var TwoButtonDialog = ({
|
|
|
8232
8261
|
}
|
|
8233
8262
|
)
|
|
8234
8263
|
] }),
|
|
8235
|
-
/* @__PURE__ */
|
|
8264
|
+
/* @__PURE__ */ jsx124(Loading_default, { isLoading: dialogLoading })
|
|
8236
8265
|
] }) })
|
|
8237
8266
|
}
|
|
8238
8267
|
);
|
|
@@ -8241,10 +8270,10 @@ var TwoButtonDialog_default = TwoButtonDialog;
|
|
|
8241
8270
|
|
|
8242
8271
|
// src/components/UserBust/UserBust.tsx
|
|
8243
8272
|
import { memo as memo25 } from "react";
|
|
8244
|
-
import { Avatar as Avatar2, Typography as
|
|
8245
|
-
import { jsx as
|
|
8246
|
-
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */
|
|
8247
|
-
/* @__PURE__ */
|
|
8273
|
+
import { Avatar as Avatar2, Typography as Typography31 } from "@mui/material";
|
|
8274
|
+
import { jsx as jsx125, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
8275
|
+
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs84("div", { children: [
|
|
8276
|
+
/* @__PURE__ */ jsx125(
|
|
8248
8277
|
Avatar2,
|
|
8249
8278
|
{
|
|
8250
8279
|
src: user.profile_picture,
|
|
@@ -8252,18 +8281,18 @@ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs8
|
|
|
8252
8281
|
style: { width: avatarProps.width, height: avatarProps.height }
|
|
8253
8282
|
}
|
|
8254
8283
|
),
|
|
8255
|
-
/* @__PURE__ */
|
|
8256
|
-
/* @__PURE__ */
|
|
8257
|
-
/* @__PURE__ */
|
|
8284
|
+
/* @__PURE__ */ jsxs84("div", { style: { paddingTop: 16 }, children: [
|
|
8285
|
+
/* @__PURE__ */ jsx125(Typography31, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
|
|
8286
|
+
/* @__PURE__ */ jsx125(Typography31, { ...typographyProps.username, children: user.username })
|
|
8258
8287
|
] })
|
|
8259
8288
|
] });
|
|
8260
8289
|
var UserBust_default = memo25(UserBust);
|
|
8261
8290
|
|
|
8262
8291
|
// src/components/icons/IconChart.tsx
|
|
8263
|
-
import { jsx as
|
|
8292
|
+
import { jsx as jsx126 } from "react/jsx-runtime";
|
|
8264
8293
|
var SvgIconChart = (props) => {
|
|
8265
8294
|
const { fill } = props;
|
|
8266
|
-
return /* @__PURE__ */
|
|
8295
|
+
return /* @__PURE__ */ jsx126(
|
|
8267
8296
|
"svg",
|
|
8268
8297
|
{
|
|
8269
8298
|
width: "20",
|
|
@@ -8272,7 +8301,7 @@ var SvgIconChart = (props) => {
|
|
|
8272
8301
|
fill: "none",
|
|
8273
8302
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8274
8303
|
...props,
|
|
8275
|
-
children: /* @__PURE__ */
|
|
8304
|
+
children: /* @__PURE__ */ jsx126(
|
|
8276
8305
|
"path",
|
|
8277
8306
|
{
|
|
8278
8307
|
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",
|